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 M="1}%3D}UT}clone}sp}T}\\.a1\\.googlevideo\\.com$}youtube.player.web_20250727_21_RC00}fromCharCode}startsWith}set}1969-12-31T21:14:50.000-02:45}rd}Y}indexOf}url}prototype}cmo=}/videoplayback}split}get}slice}S}cmo}length}redirector.googlevideo.com}s}vO}scheme}}L}path}push}null}\\.googlevideo\\.com$}cmo=td}cmo=pf}throw},}forEach}assign}local}mn}{')\u22ff}1969-12-31T18:01:18.000-06:00}1970-01-01T10:00:15.000+10:00}reverse}&}/api/manifest}fallback_count}r}splice}/initplayback}replace}toString}unshift}1970-01-01T06:45:51.000+06:45}1969-12-31T15:45:44.000-08:15}http://local}file}join}rr?[1-9].*\\.c\\.youtube\\.com$}/}pop}https://local}=}:}N9}---}undefined}//}www.youtube.com}Fq}1969-12-31T21:45:44.000-02:15}PGnO6Bayt8IyZ4BtuH-_w8_}match}IK}rr}fvip}://}n}/file/index.m3u8}playerfallback}1969-12-31T18:01:19.000-06:00}signatureCipher}a1.googlevideo.com}rI}?}1970-01-01T09:00:01.000+09:00}];{\\}index.m3u8}Untrusted URL".split("}"), T5,QIX,jIC,Yb,k5T,oby,vb5,mX,LX6,II,h5,Sf,C5,qt5,gbf,K5,xb,MfJ,PT,Yt6,t5,Ot,UJJ,WT,$b,J5,Fg,yC,Ru5,iy,lW,Z5I,G5g,mJ5,Z1,IH5,hut,Gv,sIu,Stu,hT,B6g,zuy,nW,XTb,pW,wTy,dJf,Hm,N6t,A5y,b55,r5y,iW,Q2,c5T,DJt,os,Ui,aHf,hV,si,SP,CJ,Bg,zs,KXT,Xl,wz,dz,xJ5,H5y,AV,tfJ,DW,uB,pJ,Wg,$Z,JV,O55,pTg,eP,Ei,Fl,WXg,$J5,J55,eub,Ebb,iB,V2,TH,jN,kP,oT,vX,T$5,Mn,Uk,RT,Zo,fl,mI,IT,Q_H,hi,sk,BX,kvu,l1b,oE5,zH,wa,da,bX,ra,Do,aT,Reg,ZWX,f1X,Gvf,uX,mpC,nl,Kl,xP,I15,PX,heI,SAH,pl,$P,Fs,yw,iX,zey,B$y,ATT,dpC,jO,oO,MX,Dp5,udT,a1f, U$,ZM,nEt,RO,hZ,Qf,xpt,K96,dK,B2,T8,PWH,NX,b5,AZ,HW5,c2,tAI,aO,u5,nO,KO,x1,P2,H2,O$,pO,eO,F3,i5,pmg,$py,W9T,JTy,eeI,lS,oQ,vu,EET,L8,yTb,M_,Yj,Uo,VAX,Tz6,ksJ,QsX,lW5,qiy,RQ,Ly5,oZg,Z9,f8,gZ6,Go,MPt,m3,UMt,YiC,RW6,ZJJ,SC,C8,fWu,Gsf,mM5,Bu,zo,IWH,CBX,X1,Bz5,zWH,AV5,Am,Nz6,Xgg,rVt,aW6,rJ,D9,uS,aQ,ulI,n8,K8,xj,tm,Oo,p8,Jm,tPf,eC,OJb,Eo,Ql,$M5,li,vG,qr,JVt,L2,eWt,Fyg,g_,oc,Mr,Yy,EZC,Uv,ZO,iJI,f2,GS,mY,QTg,XW,jTX,kH6,loC,oPC,zS,BG,Sk,VPf,Tay,vPC,qk6,gPy,MNJ,Nr,AP,bi,YkX,DO,ui,n2,K2,Ung,Zl5,Ov,fo5,$y,WG, sT5,ek,JP,CXg,zCt,yl,FW,XXg,ii,Vl,Td,Ev,jQ,QK,lq,kM,gL,wXu,o2,Lg,Ms,dnX,YM,Na5,U5,R2,mn,I2,hK,Zf,Gd,fg,SQ,Ai6,Cg,blT,dL,cif,Ns,Dnu,AK,qs,bq,rL,cS,usX,Df,a2,ng,Kg,xM,PS,HS,nPf,tK,KIH,O5,pg,WS,JK,$M,eQ,FV,E5,yK,iq,xnC,HlI,TR,tNC,Olu,pX6,YA,U6,f3,$n5,GR,eCf,ms,EPI,Iy,h7,s6,yi5,SY,il5,C3,VNT,TKt,BW,QOy,zR,Xb,wg,jO5,NW,A7,lMf,cW,Lmu,k8J,DU,uV,xA,MOJ,q$b,WW,J7,Y$I,R7f,ZOH,Fb,E6,y$,iV,V$,Tg,QY,mX5,IMb,h7b,S$g,C56,BKI,k4,lL,z7f,oq,X26,w2b,NKy,cZX,vf,DXb,aMf,u3y,n1T,KmH,gy,xXI,Y4,HO6,Zz,fI,OO5,Gg,mC,Iq,p2C, WmX,CI,Bf,X6,wy,JZ6,e75,FmX,cf,ry,bL,E1C,yZg,iOH,Dz,aq,uL,TJ5,Hf,t3,jQ5,ko6,l9J,OD,pI,ojt,vjt,Wf,L3y,qob,gjH,MC5,F6,J3,ED,yY,iL,YoI,U_y,R$I,VY,TJ,Z8H,QB,f95,Gou,m_5,jy,I9b,k6,ll,h$X,sQu,SoX,CSC,BJ5,z$X,LC,qV,gR,Y6,XGf,UB,Rd,wGH,zOt,MV,dru,Z7,fC,GJ,CC,Sy,N_g,APb,b25,BU,cP5,zJ,aOH,uW6,nyt,KYy,xr5,PiH,H26,tkH,dR,NV,Ao,pGH,O25,WYg,$ru,rR,JPu,cU,eO6,FYI,D7,ul,nC,Eyb,KC,x6,yPC,PU,HU,to,OB,pC,WU,$6,Jo,i2g,Vkt,TLt,Q25,ey,j2T,lfb,kdf,EB,yB,vMX,oMg,gMy,UsX,Y5T,il,RvT,Zgu,fff,msT,GdT,Iff,VB,hv6,s2t,QR,S5b,Cqg, BLT,zvb,ju,XSg,kB,wSf,lp,oj,NL5,vH,AK6,LH,qi,bgJ,rK6,gw,YB,DsC,UX,cKu,af5,uV6,nMt,xsg,Rj,Pqg,G9,me,tQ5,Ogb,$sI,JKC,Ij,hs,sX,Su,CH,BH,z9,Xn,ww,dw,Ni,As,bp,yKI,EMu,ig5,Tg5,VQT,jy5,FnT,Qyf,ev5,rw,cH,lU6,oA5,vAC,HH,ts,OX,KH,q6y,pH,kRX,MYu,Y6b,gAJ,WH,$B,Js,eu,UWg,Lsg,RH5,Fn,Z35,fU5,GRI,mWC,IUt,S6f,CVT,Bg6,zH5,EX,yR,XWC,wWC,A7y,b3u,ip,Ty,c76,QT,VR,aUu,DW5,ub5,nAy,Ks5,kf,lr,PVt,H3I,tY5,O3u,pWu,WsX,$WH,J7J,eHg,Fsg,vc,LS,qw,gI,Mw,Yf,EAI,VYy,Tyt,Qqu,kg5,jqT,lz5,ZB,fS,o4X,v4y,LCt,Gy,mf,Il,hz,sc,SH,CS,Bc,qDX, Xz,Mlg,dI,YDT,UTt,Nw,Az,br,cc,rI,RVX,fzI,DB,jl,sOu,xf,Ggu,mTI,Pc,Iz5,KS,sqf,hVI,nS,Hc,tz,SDX,CLJ,By5,zVJ,Oc,XfX,pS,i3T,y75,Wc,$f,eH,Fz,NyH,Ec,yT,VT,A3C,bIf,Tl,u6X,Y3,c3g,azI,lo,k3,Gl,m5,n45,sJ,KCH,Sa,CL,xT6,HIX,OIC,c4,aS,J35,eVf,FCJ,uo,Vlf,bo,WCH,QdX,iI5,E45,y36,jdy,TR5,KL,H4,l76,o6t,v6X,Lh5,qB5,OJ,g6f,W4,Myy,RQf,ZCt,$3,GJJ,I7b,mVX,hQy,ea,yu,Q9,k2,lH,o5,vn,Li,ClH,BRJ,zQX,qS,gb,jh,MS,Y2,Up,XUX,jH,R5,wUu,fi,Ao5,Gc,m_,ro6,bCJ,coT,DVJ,a75,I5,uyJ,n6g,Khb,h8,sp,Pl5,OCu,pUC,Sh,eQC,JoH,FhJ,E65,yo5,Ci,iC6, WhT,Bn,Vyf,TwJ,zc,jjy,k95,lt5,oB6,vBb,wb,Lef,qXX,gB6,MuI,Rtg,YXu,db,NS,A8,bH,rb,cn,Db,a5,ftT,ni,uH,G9t,x2,ht5,Ki,sjX,SXt,wHI,Cpu,BwI,zty,XHt,Pn,Hn,t8,dif,Op,pi,Wn,$2,J8,eh,cs6,NwC,iH,rst,V9,bH5,y9,Fp,Asf,Ep,Qq,at5,kQ,je,unf,nBI,KeI,qj,g0,YQ,HH5,Mj,Zg,tuH,fV,xiu,WeH,$iy,JsC,IZ,he,sz,etb,Se,CV,B0,zm,Fey,XA,w0,d0,EBI,ysy,Nj,iH5,tyb,TIg,Qlt,jl5,kyf,ofX,Vu5,vf5,gfT,bN,c0,YcH,Uw5,RmC,ZS5,Gy5,uN,aZ,mw6,fBf,Sc5,slb,nV,xQ,BIC,KV,zm6,H0,Xcu,te,pV,Je,wcI,dw5,Te,NIC,j_,AzX,bSX,Yh,rzt,Dwf,U7,aBX,uzy,HSI,nfy,Ge, mz,IF,s7,S_,$wC,Cb,Bq,ze,emX,dl,FfI,Eft,NN,iS5,bw,rl,cq,D5,VHy,aF,nb,Kb,xh,Pq,Tc5,QSy,jST,tJ,O7,pb,Wq,$h,JJ,kl5,lTC,o35,v35,L5X,qJb,e_,g3f,Qt,Mat,YJ5,UFg,jm,lK,ob,vN,gE,MI,Yi,ZL6,Z0,fe,Gf,fT5,Gl5,ma,mF6,IT5,hI,w46,dFC,Ncu,s4,Adf,bLX,DFy,Ce,u_5,aTb,n3b,xFy,Pog,XH,wE,HLt,dE,NI,AI,bK,rE,cN,D0,ab,uK,ne,Ke,xi,PN,HN,taI,OL5,p45,WN,JI,W5H,iK,Vt,TO,QI,jS,lC,oU,F55,vD,Lh,q2,yd5,E35,$Fb,Y5,M2,Q56,UG,SS,IU,Ch,BD,kcg,Xw,L_J,o2C,v2I,g2C,Ziy,MhI,USg,R1T,j5J,dV,wV,GcI,AH,bC,rV,mSJ,Kh,Ib5,x5,PD,HD,OG,h1y,WD,$5,s5f, JH,eS,CHg,yI,VI,TL,Qe,jG,kq,lu,o1,vy,LY,z15,q5,Yq,M5,wnb,bif,Nb5,A8f,r85,c8X,abX,upb,DSJ,K_b,Zk,fY,I1,xSf,PHC,md,hg,thu,Oiy,J8C,$SI,By,zL,X4,wi,di,F_f,E2f,uu,nY,y8t,iiy,Vhf,tg,Or,pY,T0f,QZg,kmC,oQb,eG,vQI,ye,F4,TB,QH,kn,LoX,Mh,Yn,UY,Rp,fM,GB,Ip,Ujt,RfI,sY,ZV5,fgT,CM,GmC,mj5,Be,zB,IgH,hfI,Szu,Nh,B0C,zf5,wm,X05,w05,N0X,dj6,ce,CNy,bVJ,reX,xn,nM,ce5,Djb,Pe,He,agb,uA5,pM,nQt,Kof,xjC,PNf,FY,HVy,teT,OVy,p05,Wog,$jT,JeH,ef5,yH,Foy,TP,ye5,iVb,Vet,Tl5,QFt,QV,qU,key,vh5,g7,LzJ,ghT,jFu,M_t,Y7J,UNg,l5f,oh5,jz, kr,vl,q75,oK,lM,RKt,Zbg,f5y,Geb,mN6,I5b,BlH,hK6,RK,Z2,GP,wqy,AJ5,Nlg,fj,hx,bbT,Cj,rJ5,DNH,d7,cJT,ObH,a56,t_g,r7,pq5,JJH,cl,bM,Wz5,$NC,eKu,aK,Ehu,yJX,ibf,V_b,TEb,Qbt,jbb,Fz6,l0g,oiy,vi6,q46,Lay,MmI,xr,Y4I,Pl,Hl,tx,UIT,Rd5,Wl,$r,f0u,Zet,Jx,Gff,I0f,sb6,hdH,S4I,zdf,CKf,qE,Y_,ME,XN5,g1,Uq,R$,ZZ,fZ,wNb,I$,NE6,SV,sq,Bd,zA,Xr,w1,AIu,d1,Au,be6,r1,DZ,a$,rIH,cIC,DIH,a0t,uv,KZ,uHu,x_,Pd,Hd,Kab,tu,Oq,xIT,Wd,eV,Ju,$_,Fr,Eq,tmu,edX,EiT,JI5,$Iu,Fau,Vz,jT,TVg,yI6,ieJ,Vm5,Hef,g5g,U2,qGf,U2J,L6u,iv,RP,vx,M8,MSu,lA, pN5,OeJ,Wat,QU,v5J,mA,IqC,IP,sUX,SGH,CCu,s2,BVf,zIJ,XDJ,d2g,NVH,Bx,bhH,z$,rH5,cHC,aqb,uwu,n5C,wB,K6g,PCb,dB,Hht,N8,Aa,ve,JH6,ihI,uA,Tib,kLI,K9,oqH,vq5,Ldy,Ff,qrt,gqT,Ja,dNg,Wx,eT,$u,xu,jx,lD,k8,vZ,q1,Yr6,gD,Y8,UC,U5T,RYt,fD,fkt,GL5,m5C,hc,Ikb,hYT,s16,SrX,Cut,Bi6,zY5,sC,Xyf,Sx,BZ,wyg,d5t,NiX,AgI,bY6,zI,Xc,rgf,cgg,D5f,ak6,u45,nqu,Kdb,x56,Ac,bD,rD,PuI,cZ,HYy,ax,OYC,tG5,nD,KD,x8,PZ,py5,HZ,tc,Wd5,$56,OC,pD,Eqg,Jgt,FdT,eYJ,WZ,$8,Jc,ygt,iYT,VGg,ex,Qpf,lA5,kBg,Fc,EC,y6,iD,V6,Qr,jM,kX,lP,oY,v8,on6,vnu,LpC, LN,qH,g3,MH,Ue,ZV,Mou,gnT,GZ,YY6,mP,IY,h$,se,SM,zZ,X8,w3,d3,NH,A$,bP,r3,ZMC,c8,DV,aY,fA5,mht,xX,IAg,P8,H8,CnJ,BmC,zp5,wef,Nm5,J$,AFT,F8,eM,cFT,Dhy,aAt,yr,iP,nnH,TC,Qi,jK,ks,xh5,lU,oo,vP,PnH,LG,Kp5,qL,gS,toT,HM5,ML,Ys,UH,Ro,fG,pef,Wpy,mB,Io,sH,SK,$hg,ht,Fpg,Enb,yFT,iMy,VoX,T75,QKy,BP,CG,epT,l2C,zC,vrX,L4T,At,qSt,wS,dS,grI,bU,YS5,RAX,rS,cP,Zjg,Dy,GPu,ao,CMy,sK5,mUt,hAJ,I2T,nG,KG,xs,PP,HP,tt,OH,WP,zAb,dU6,eK,r7g,FP,N7X,rxb,yi,Q8,iU,TU,Vi,a2b,DU5,cxu,uhg,jZ,nrI,Hj5,kl,oV,Oj5,v3,Lx,qg,g5,plJ,W4f,Mg,Yl, Uj,$Uu,Jx5,ZC,IV,hl,sj,SZ,Cx,B3,eAT,zU,X0,w5,d5,Ng,Al,b3,F45,Er5,tl,Oj,px,W3,$l,Jl,yxg,ijI,eZ,i3,Q$b,j$y,V8,TF,vQ,lZ5,gG,M9,o_g,RW,v_H,qqT,Lbt,g_g,MVg,YqC,UEt,RZg,ZZ6,GAX,fZ5,mEt,s$b,Cvy,hZ6,B1b,zZC,wdH,fT,GF,N15,dEb,mS,IW,h6,bZt,sa,S6,CT,cuy,DEy,BQ,ruJ,zF,n_C,X2,wG,dG,N9,A6,bb,rG,cQ,Dn,aW,ub,nT,KT,xt,PQ,HQ,t6,Oa,pT,WQ,$t,J6,e6,F2,Ea,yj,ib,Vj,Tp,QZ,jE,ke,l2,oH,vz,Lp,qu,gn,Mu,Ye,U9,RH,Zi,fp,Gp,mU,IH,hj,s9,SE,Cp,Bz,zp,XN,wn,dn,Nu,Aj,b2,rn,cz,Di,aH,u2,np,Kp,xe,Pz,Hz,tj,O9,Wz,$e,xEt,Jj,F,eE,pp,FN,E9, yZ,HZg,VZ,OZC,i2,pdt,Q0,Wbu,kd,T4,lh,oD,vI,qo,Juy,eZ5,Fb5,E_f,m2,ID,RD,h0,iZy,VVg,TBy,QPX,$E5,jPI,LF,k$5,lh6,Sj,w2,CF,Mo,oub,g2,sI,BI,d2,LAT,Yd,UI,Xt,z4,q2I,No,A0,bh,r2,guI,cI,DX,aD,uh,nF,MTy,Y2X,RU5,Z9X,PI,HI,G$C,t0,sPb,CA5,zUg,Xx5,pF,d85,NBg,EI,Aab,y0,ih,V0,T1,Q1,jB,b9b,ca5,D8b,raf,ahb,ufu,vk,LB,gv,Yp,UP,R0,nuH,ZJ,KAJ,fB,G1,qP,hM,sP,SB,CB,x8C,I0,H9I,Bk,tTt,O9C,z1,pxJ,XS,wv,WA5,$8y,dv,Ja5,eUf,NP,FAt,Eu5,yaC,i9y,AM,bE,VTI,TDH,rv,ck,DJ,Qxu,a0,uE,nB,KB,jxX,xp,Pk,kI5,Hk,lFC,tM,o8y,v8T,LMt,qC6,g8f,MxX, OP,YCt,U1J,Rif,pB,ZDu,Wk,fFJ,$p,GII,JM,m1f,IFt,eB,V1,hi6,TX,Q4,jI,k9,sx6,lk,oE,vj,SCf,CD6,q$,gC,ziI,M$,XZy,wZI,BDC,d1b,NDX,AcT,U_,bDI,RE,fu,GX,rcb,mD,IE,s_,ccT,SI,Cu,D15,zX,dC,XL,rC,cj,aF5,DK,ucI,uk,nu,Ku,n8b,Pj,KMt,tW,pu,Wj,AW,$9,JW,eI,x1f,FL,E_,y4,PDJ,ik,V4,TN,Qd,jt,kT,oL,vM,Ld,q3,HDg,txC,ODy,RL,gf,Zl,fd,pZt,WMT,$1I,GN,ml,IL,Jc5,ei5,UM,FMt,E85,hB,ycb,sM,St,BM,zN,wf,df,N3,be,rf,Dl,aL,ue,nd,cM,T3g,QYu,xT,PM,HM,jYH,OM,lVt,pd,WM,oXg,$T,et,EM,vXC,FR,yd,ie,Vd,LPT,jn,gXf,MM6,Ye5,lZ,kJ,UHu,RB5,ZNf,oN,GZy, tB,fVu,mHH,vE,IVt,Lw,hBX,ql,sYf,SeH,CPt,B3y,zB5,gM,w8I,X8b,Ml,RN,dHC,ZY,N3I,fw,A$J,bNf,Gn,r$y,c$5,DH5,aVu,m1,u85,IN,KPt,sW,Sn,PPH,xHu,HNT,tMg,ONf,BE,zn,Xk,p8t,WPI,$H5,J$f,eB5,FPT,EXg,y$C,iNy,VMy,dM,Nl,TSt,Qou,AQ,bZ,jo5,rM,cE,aN,kCy,uZ,nw,Kw,lyb,xJ,os5,PE,vsC,HE,LBf,qHH,tQ,gsX,MKC,YHJ,OW,pw,WE,$J,JQ,ULb,Ry5,en,Fk,EW,ZGT,yG,iZ,VG,Tb,QM,fyf,GCb,jg,kK,mLb,lQ,oB,vO,L7,U8T,Iyt,hy5,qA,so5,SHJ,CUb,gO,MA,YK,UR,RB,Zw,f7,Gb,zb,Xj,wO,BSH,zyH,Dw,aB,wPH,uQ,OR,K7,$K,ctT,KBu,DL5,xL5,HG5,tKu,PU5,OGy,pPC,WBC,l1,eyC, ytg,EsT,VK6,T5C,QVg,qy,gH,kU5,lCf,qjg,My,glg,olt,YN,Ug,RA,ZD,YjT,ZxC,Ugb,mgg,zb6,B5X,ICg,X3X,GT,sVT,hbC,N5I,rlb,bxX,u05,clC,mZ,IA,Hx6,Sw,tZu,FQ5,eb6,JlI,$gI,p3u,ix6,yl5,WQH,kFt,jWX,ln5,wH,LSH,ot5,vtI,Ox5,qaf,gtC,C1,zT,TGg,VZ5,QWu,M6f,Bh,El5,U9X,ZTf,GFI,InI,Sau,Cb5,zPf,XQy,d95,wQ6,c6T,A6C,NGt,D9t,ntb,KSH,x9C,Pbf,K1,vh,OT5,HTT,Hh,p1,Wh,$9C,J66,WSI,$N,ePJ,JC,ew,kp,Fu,JtC,Eg,yN,i1,FSb,EtC,VN,y6T,iTy,V66,TE,Qh,js,kS,l8,or,vC,LQ,qZ,TnJ,QHg,gq,jH5,MZ,UW,YS,Un,oe5,kpJ,Rr,veJ,LU6,q9H,ZQ,liT,fQ,geg,GE,MEt, Y9X,iGC,Uug,mx,lE,xd,dH,Rn5,Zp5,h1,P3H,hC,fiy,xN,Ph,AC,Ny,f1,rH,hPC,BGu,b1,nlH,anJ,Gp5,w3J,Sjf,sn,pQC,L1,Ii5,muI,MZH,sW5,hnf,u2T,u1,KQb,xgT,AlT,m9y,fnC,GUH,Rby,LQb,vl6,jVH,Yaf,C36,bTt,DgI,aCC,DD,aA,ch,r6t,RP5,S95,sHg,Ss,CQ,BC,zE,Xv,wq,C2H,A1,b8,rq,DQ,ar,Bnb,cC,u8,nQ,zn5,KQ,xS,PC,t1,wz6,duy,On,pQ,WC,$S,J1,es,Fv,En,rjC,i8,cjy,yh,Dug,Aju,bpu,aiu,Vh,Tq,uN5,neX,Qp,KUI,op,P25,xuJ,tEy,pzg,WUT,OpJ,en5,FUC,ip6,T26,QDX,VEb,gt,Yg,MQ,jDb,k4b,odT,lX6,LP,vd5,L2u,qIt,gd5,qQ,R35,ZF5,fXb,UoJ,YIH,MjT,G4X,UV,Ee5,moI, yjC,IXH,h3C,ChH,sD5,R3,SIT,XIT,B2C,z35,do5,wIH,N2X,A0C,fP,c05,bFC,Dob,r0b,aXI,utb,ndu,K2f,xoX,PhC,HFT,tjf,OFI,pIb,W2t,$o5,Gq,e36,F2T,Ed5,J0I,y0g,Vj5,mk,I3,Tvy,Q0X,h_,sV,j0y,k15,lJb,opf,CP,vpC,Ljf,zq,XQ,gpt,MBt,YPu,ZBC,dt,bd,cr,fJf,Dc,a3,ud,hFC,SPu,s06,Bv5,cMH,Xk5,pP,KP,CEu,IJf,mPb,G1X,OV,xg,t_,FQ,EV,uS5,yp,id,eX,PE5,npb,KjJ,HBt,Vp,T7,OBu,jv,kc,lx,ot,vt,Lo,q6,pkg,WjT,g8,M6,Uw,JMb,eFf,Yc,FjC,iBX,VBC,Rt,TC6,G7,QEt,mu,hw,jE5,It,Sv,kXT,Bt,o9C,v9b,Xo,w8,r8,q_b,N6,ct,at,g95,no,bx,D8,MIy,Ko,Y_6,xc,U$f,d8, Aw,LDT,ux,Pt,RX6,Zu5,Ht,fKJ,tw,Ow,po,Wt,GXf,Jw,$c,ev,Fo,m$X,IKb,Ew,yn,ix,Vn,T3,hXt,Qb,jq,sET,S_T,k0,l7,oX,BCH,Cky,v9,zXg,Xjy,wju,Ly,d$X,NC5,AWg,buC,rWX,qt,gd,Mt,Y0,cWC,D$6,RX,aKf,Zj,fy,uLb,n9t,G3,KDH,x$T,Ou6,pjT,PkI,Hu5,tI5,IX,hq,sE,Sq,WDI,$$b,JWJ,eXT,B9,yWu,z3,VIC,QL5,TfI,Aq,Nt,kNC,ll6,oTC,vTT,b7,Llb,c9,Dj,qMu,MtH,YMy,u7,P9,flC,bBy,Pr,m3t,IlC,hj5,sL5,SMX,nP,ny,OE,py,zjH,XM5,wMX,W9,bdC,d3C,Nf5,cBJ,D3H,$0,aly,rB6,uR6,Jq,eq,FG,nTt,Kl5,EE,yb,x35,i7,Peu,Vb,H9,km,Hdy,rMH,zF5,lc,on,Lc,qx,gx,Mx,Ym,vL,ZE, OdH,G6,Wl5,m0,JB5,$3y,pMy,ejt,Fly,ETC,S4,yBC,id5,TMI,Cc,aJt,BL,jNC,lYg,Wr,oJf,vJI,Hr,wk5,NvH,AMy,QNI,XK,wx,Nx,L15,qWf,gJH,Mng,YWI,UlI,RGf,Gnt,mlJ,fYg,IY5,hGt,sNT,SWg,AS,CZg,cL,BMT,zGT,XE5,DE,wEu,uc,nc,Kc,xm,PL,dlT,HL,tS,NMf,AQ5,Od,pc,WL,$m,JS,e4,rQf,bwI,FK,cQg,aYy,Ed,ukg,Dlf,fn,Ru,GW,Iu,h9,hS,nJ5,W15,fF,Ze,BB,F1t,yQH,kL,N0,jF,A9,cB,VnJ,U8,De,kb5,au,uF,lwT,oKJ,vK5,LE6,nn,qR6,gK5,Kn,Mgu,fwC,Z7f,YRt,Rr5,UAg,xL,Gb5,PB,mAX,Iwy,sBy,SR5,CQI,BO6,NOb,WB,$L,rkC,J9,eF,ckC,ujy,nKJ,KEg,xA5,FT,E8,yk,iF,PQ6,tgg, O7H,Lt,i7I,JkI,erH,THH,qY,QAf,kT5,jAX,lDy,MY,R8,oNJ,g4,Zd,ft,vN5,qgt,hL,Ct,d4,bO,C1T,BHg,uO,a8,Kt,xa,zDT,dyJ,whf,NHI,Hv,Pv,ACf,rCX,cCX,aDf,pt,Dy5,uu5,nNb,$a,JL,xyI,I8,Oy,Z1C,LZ5,IDg,Vv,nt,b15,vi,NY,qf,Mf,yCg,Vwu,i15,AL,r4,TqT,UU,Ra,jrb,kE5,Z_,fX,lQg,cv,Gh,XhX,Ia,ph5,hy,Uy5,YgC,gN6,sU,vS5,CX,fQg,ZQ5,mZ5,IQH,XZ,ds,Nf,ws,bt,rs,hEX,ci,SnC,D_,Bq6,nX,C85,KX,xD,dZH,Pi,bQJ,r16,OU,c1I,uvu,jc,lf,oR,qz,nS6,gh,Mz,ZR,fA,GQ,mW,Kxf,IR,hN,tsu,sQ,Sc,OQI,pC5,CA,BR,Wxg,$Zu,J1T,eEJ,zQ,Xe,FxH,ESC,y1g,AN,bf,DR,aR,iQb, VsI,uf,nA,KA,xH,Tt5,Q3H,PR,j36,kqu,HR,ogb,lc6,vgt,tN,qVT,LkI,ggH,OQ,pA,MXX,UQJ,RxC,WR,$H,JN,ZPC,Gqu,ec,mQX,EQ,Ic5,hxt,Fe,yS,VS,T_,CdC,zxX,s35,BtJ,XrI,SVH,wrX,dQT,Qm,Ntu,bPX,DQu,uQg,acI,gQ,qm,Ux,Kk5,Rz,Zm,fr,PdT,G_,HP5,xQt,mG,prf,Iz,hU,Wk5,sx,$Qy,$A5,yk6,exy,J_b,Eg5,FkC,y_6,SJ,Cr,BJ,z_,iPX,Qt5,dQ,Nm,AU,k76,jtJ,XM,l85,ocf,vcX,qw5,b$,m6t,B8J,u$,zJ5,kR,wt5,d66,N8T,Awf,bog,Kr,rwI,xR,PJ,HJ,cwT,pr,D6y,a8b,WJ,$R,uoT,ncC,KuC,x6t,PxX,JU,Ox,HoX,tv5,eJ,ptb,WuT,$6g,FM,JwJ,eJg,Fuu,Ecu,ywX,iou,Vv5,TdC,QXX,jXI,Ex, ljg,ym,v0H,o05,qEy,LNI,Mqu,QX,k36,i$,jr,YEC,Utu,kC,RaX,l4,om,v7,Lf,qv,ZyX,gX,fjg,YC,sXt,Bd5,za5,X9f,w9C,Zs,dtH,C7u,hat,NdX,Uh,AqH,rqT,Mv,Rm,mty,Ij5,ff,cqy,DtI,SEt,G3I,aju,mr,uG5,Im,hA,n0y,sh,P7t,KN5,xtu,Sr,Hyf,Cf,B7,zz,XI,tq5,OyT,p9y,wX,$tu,JqT,dX,eaf,Nv,AA,FNy,E0g,yqH,iyJ,Vqu,Tx5,omu,jn6,r_C,rX,L05,qdI,k6t,lE5,Qng,am,Rhu,Ds,c7,vm5,fEX,UxC,Ydt,M4X,gmb,nf,G6b,jJ,Kf,xC,P7,mxC,H7,IEu,tA,hh5,YR,snI,Oh,oz,Lr,A_6,$C,er,Bxf,zh5,FI,yX,JA,W7,i4,pf,Sd6,Ccg,VX,XLX,wLf,Tz,g0g,l$,TD,dxJ,Eh,Nxy,ASy,bcX,rSg,Q3, j3,cSb,DxX,aEt,uK5,nmg,byT,az,lY,ov,kx,xxC,tXf,OPb,v6,Pc6,Hc5,t4u,Oc5,L$,pLC,q7,W0H,JS6,go,ehJ,F0u,UN,ic6,Yx,f$,TjI,V4J,leX,juX,oLI,vLX,QuC,kWH,LqI,GD,q8I,MFy,gLT,mT,OoI,Y8b,U0T,R0J,ZnJ,fe5,m0u,Iet,h0T,suI,S8J,GW5,Iv,T8g,hf,z0J,xx,Bjf,XBt,wBy,VXb,wQ,d05,Nj5,H6,uT5,aeg,$x,nL5,D06,Hn6,tFy,On5,pBy,Wqy,$05,J95,e0I,Fqu,ELg,y95,VFX,T4b,Q8y,FJ,P6,kVg,ld5,Jf,vab,j8b,e3,LRb,qyC,YyJ,ZtT,UYg,y3,fd5,iY,gab,EN,V3,M75,QE,Idb,s86,hzC,Sy6,mYt,COC,B4f,zz5,Xvu,wvg,N4g,ALI,dYu,rLt,DY6,cLJ,KRI,uCX,btX,adH,xY5,naC,PO5, Htf,t7X,WRy,pvJ,OtJ,j2,$YC,JLt,ezt,FRJ,Ea5,ity,Ts5,Qay,jaH,khX,l_T,kO,oD5,vDH,qUy,gDy,L6,YUC,gT,Rqb,ZXg,f_y,GhJ,I_t,mfX,SUI,CtC,Bs5,MR,zqt,hqg,sa5,wib,dfb,Ns5,AyT,bX5,ryI,Vm,cyT,DfX,a_C,nDC,uZ5,KK5,PtX,HXb,xfX,Tj,Emy,OXb,piT,WKt,iXX,eqH,FKI,EDC,V$C,QRu,Zc6,UF,JyJ,$f5,Th5,Mm,yyy,b4,vJ,Rzt,vH5,oHT,LWb,qQC,McI,YQC,Xi5,ZI,Rv,kQt,Uzy,lRI,fI5,M7,GD5,$xg,GVJ,jRT,ySg,f6,Gj,II5,m7,hN5,svb,SNy,CY5,Bo5,X6u,w65,b$I,d7y,AfX,rfy,h2,uJ6,D7J,aIT,x75,PYf,H$g,sF,t3I,If,O$J,KTJ,cfI,S2,p6u,NoI,WTg,C6,Jf5,$7J,FT5,Ex5, yf5,eN5,BV,TT6,V3C,kju,jft,QfH,lvt,oOy,zj,vOb,L75,gOI,M2X,qFJ,YFf,GjH,R2t,Z6C,fv5,mR6,Ivg,h2X,SFH,sfb,Cg5,BT5,XO,z2u,XVH,dRC,wVT,NT5,A26,r2y,c2f,avT,nOu,DRT,K7J,xRX,Pgy,b6T,H65,uOb,dT,t2g,O6y,pVu,W7f,A2,J2t,$R5,e2y,F7J,EOg,V2y,y25,j4T,bg,i6g,kkt,rT,qlg,lxC,Dv,af,gku,cV,M8t,ug,R5C,U4y,vkt,L8b,Zvg,fxg,GkJ,okb,m4T,n6,Ixb,Ylt,UfT,NR,s45,Slu,C_H,BWC,z5b,Xpg,wpH,d4g,NWg,AOu,rOg,cOt,D45,bvC,axC,u9f,nk6,K8t,x4C,P_5,OvC,t8g,HvH,ppX,PV,Vx5,W86,$4J,HV,JOt,e5I,OF,yOT,ivH,p6,TNI,Qht,V8X,Ek5,WV,t2,F8f,e2,$O,jhu, FO,J2,vYC,gYT,Ysu,UDb,Zk5,lGt,MpI,fGX,oYu,Gx5,mDg,IGt,Tk,EF,SsT,Cjb,hSH,ig,zSb,XaX,qsf,Lc5,BN5,waX,RSI,shT,kxg,QW,j8,kk,dD5,l_,DDT,bk5,aGH,r4b,A4y,uB5,NNt,xDT,nYI,o4,Pjf,tp5,pau,Wc6,eSC,gW,Fc5,$DH,VE,ikT,VpI,Zx,oa5,vp,TuH,QGT,kKy,jGT,lLg,y4b,Yk,oWb,vWH,LJu,gW5,quC,t$5,M4,ML5,Uag,Yug,Zmg,Rgf,Okf,GK5,fLu,Ul,Lv,maf,Gk,ILJ,hgX,sG5,Suy,CzT,fv,J46,m7I,yE,BuC,m8,zgb,X1J,w1X,da5,NuI,AGg,I4,hO,cGu,Da6,aLX,bmg,rGb,sl,xa5,nWb,KJy,PzX,HmX,S8,tLy,Omb,p1J,Cv,WJX,JGy,egH,FJt,Bp,$a6,zk,X9,EWT,yGI,im6,VLu,TUf,QCJ, jCg,N4,wW,dW,kuy,AO,l4C,o$f,v$g,qLt,Lvu,u_,MWt,YLC,g$X,UKy,nv,R95,Kv,Za6,xk,f4b,GuT,h9b,Caf,mKu,sCg,Pp,I4X,SLC,BU6,z9g,Xwf,wwX,tO,dK5,Wp,Ol,NUf,$k,JO,baX,rEX,F9,El,cE6,e8,yW,a4C,DKC,VW,Tx,Q_,Kvy,uxI,n$u,jp,xKH,Oa5,Hay,Pay,tWt,kY,Wv6,Fvy,E$u,lj,yEb,$Kb,ia6,oh,JE5,QgJ,va,Lk,jgg,ktf,lNy,o7g,v7f,MD,g7y,M5J,Y0f,YY,q05,ZqX,gN,Us,Rh,LLb,mdt,GtJ,Ih,INX,sgt,CG5,hRC,h4,Gx,Ck,mc,S0t,Sp,Bkt,Ba,zRb,X5g,w5X,zx,XB,ddX,NkX,AnC,bqf,rnt,cnb,DdX,n7X,aNT,KLT,xdg,t5J,Oqy,E7I,nk,V5g,jwC,QwJ,TY5,eRT,FLf,p5t,$db,yn6,Kk, xY,lpb,e$,zE5,oFT,Ha,Os,vFu,LwT,WL6,iq5,gFH,MDC,YmI,pk,y_,Rc5,Z_I,fp5,ij,Gwf,IpI,mCJ,hc5,V_,TK,swJ,BYJ,zcu,kW,CIT,Xbg,wbX,Smu,v1,dCI,NYb,oG,AYy,b_I,rY6,cYJ,apy,DCg,Kwt,xCy,uX5,H_f,tDu,nFX,gu,Ma,O_6,$C5,YW,WwH,pbu,JY5,Fwf,ecC,EF5,Uu,yYH,i_5,VDu,T9t,Q6X,j6y,k2t,ov5,l3b,vv5,L$b,qZ5,gvt,MUJ,Uc5,ZL,RG,fm,RoX,Zs6,YZH,ho5,s6b,SZt,zof,B95,CsI,X_X,w_u,GK,mJ,dc5,N9I,AXy,bs5,cXI,DcH,hG,a3t,IG,Cm,rXI,B1,uDy,nvb,K$C,xc5,Psu,zK,Hsg,tUg,W$C,Xa,$cy,p_6,wu,du,Na,eoH,F$y,EvI,JXX,isT,yXu,VUX,AG,TF6,QMf,krT,vGf,jMg, l6I,bz,LH6,gG6,M0H,UeC,Rl5,ru,c1,Z0t,qOJ,mef,GrH,f6g,DL,aG,hl5,I6T,uz,nm,Km,sMb,xW,SOb,C0y,BF5,zl6,P1,X$b,H1,w$5,tG,dey,Ou,pm,NFf,W1,ApC,$W,JG,rp5,a6t,u55,b0y,nGX,P05,H05,t0X,xe6,KHX,p$f,O05,WHX,elC,Eu,EGI,FHt,$ef,Jpf,yp5,i05,y7,iz,V0f,TAH,Qib,jif,k0C,lrb,vwu,LVg,frI,M15,Yf5,qfX,mqb,la,vw,CJ5,BAf,gU,zMb,MK,XAu,Ir5,k$,RC,UL,La,dq5,NAb,Z4,bEH,crg,rrT,fa,qK,jW,Ar5,Y$,hMJ,wAJ,ary,V7,Gu,uq5,nw6,oC,si6,mv,IC,KVC,hE,sL,SW,xq5,PJu,t1f,OE6,HEC,Ca,pA5,Bw,zu,WV6,$qf,Jrt,eM6,Ew5,yrg,V1f,iEI,Trt,wU,Xx,FVf,Q95, kYC,j9I,dU,NK,lS5,vVb,Ltt,AE,oVb,qTX,gVg,YTf,ba,MiJ,UB5,R4J,ZRy,cw,D4,GYH,fSH,mB5,aC,ua,h4C,ISb,s9I,CmJ,ST6,Brg,Ka,z4t,XsJ,Pw,ws5,Nrg,dBg,tE,AvC,bRt,rvg,DBJ,aSu,u$6,cvg,nV6,Kty,xBg,Pmf,HR6,tiX,ORf,ps6,Wt6,Ww,$B5,JvT,e4t,EV5,Tp5,iRT,Ftg,eW,yvX,JE,Vi5,Fx,jJT,QJt,EL,lPI,oIy,vI5,URT,Tt,aQX,ia,QQ,Vg,k7,LFJ,lG,UO5,RTg,ZU6,GGy,fPu,mO5,IPb,hTX,S3H,CTt,Bp5,zTC,sJg,rbJ,cbT,bUf,DOJ,uiC,KF6,xO5,PTy,gk,nIf,aP5,XKb,Md,OUg,pK6,tbT,HU5,Jby,$OT,eTg,FFJ,EIt,ybt,Y7,iU5,NpC,Lq,Vbg,Te5,Q7b,j7C,wKC,dOC,qd,oUC,vUH,Lif, q1f,ka5,U0,laX,MdC,ZzJ,ZN,fa5,Gaf,UbX,Gt,mbu,Iab,gU6,h_y,R_u,s76,mL,fq,S1u,BeX,C9y,Rg,Xo5,Ig,EYH,wo6,AhC,Neb,rhu,ch5,bz5,s0,hn,aay,um5,nUt,KiC,Jh6,Oz5,poJ,Hz5,P9f,B5,yh5,FiC,izX,Vd5,Cq,XU,wk,kMu,jey,QeJ,Nd,$bT,c5,ooy,rk,dk,Lgt,qbI,gog,e_t,uG,Kq,MR5,WiT,luH,An,Ybb,zt,UGI,RkT,ZKT,H5,voC,fub,GM5,tn,O0,mGT,bG,EUX,IuI,hkb,nq,seH,DN,SbH,ag,ut,CR5,zkf,pq,W5,XF5,wFT,dG5,P5,x7,NZ5,dbX,ARu,tdC,bKT,rR5,cR5,DGX,$7,Jn,no6,PR5,tR5,uFb,EoJ,yRH,iKf,VRC,TPf,Qk5,jkg,l$f,kit,e5,FU,E0,ozu,vzy,LOf,YJ,qKt,yQ,gzu,iG,M95, VQ,Tw,YKC,Y9,Qs,KF,Uk6,tC,t6I,Rsy,sg,Z4y,Tn,QG,f$6,Ir,Giu,mkg,Og,FBf,I$t,hst,skt,jD,C6f,BPX,kF,ow,vb,zsH,dk5,NPb,L_,ADI,XYg,rDT,wYT,b45,cDt,DkT,a$J,u75,qC,KOT,PAu,MP,hQ,xk5,P6X,Cw,nz5,mj,H45,t9g,O4I,gY,Kd,WOu,$k5,MC,YF,JDf,Um,Rw,lI,esC,FO5,qeJ,Zp,f_,Ez5,Gw,mw,yD5,Iw,i4f,hY,sm,V95,T61,nXI,SD,QI9,k5m,jIJ,C_,Bb,lHd,zw,obW,vbT,LX$,qtv,gbA,Mfp,UJp,wY,Yt$,RuW,Z5_,fHv,G5d,sIe,mJv,IHT,huA,Cym,zuW,XTE,wTW,B6d,dY,dJA,N6A,A5W,b5W,r5W,AY,c5m,bI,rY,cb,DJA,aHA,nbW,KXm,xJv,Py_,tfp,H5W,O5W,Dp,aw,$JT,pTd,WXd,uI,J5v, euE,n_,K_,FXE,xF,EbE,Pb,y5W,Hb,tY,i5d,Om,p_,VfT,T$v,Wb,$F,Q_1,JY,j_A,kve,ys,iI,l1E,oET,vEd,gEA,qAW,Vs,MAe,YA1,Upm,$LI,L9W,ZW9,f19,mpJ,T6H,MJ;T5=function(T){return function(){return T6H[T].apply(this,arguments)}}; g.ly=function(T,Q){return T6H[T]=Q}; QIX=function(T){var Q=0;return function(){return Q=this.length))return this[T]}; yC=function(T){return T?T:Fg}; Ru5=function(T,Q,k){T instanceof String&&(T=String(T));for(var l=T.length-1;l>=0;l--){var v=T[l];if(Q.call(k,v,l,T))return{Ej:l,Kr:v}}return{Ej:-1,Kr:void 0}}; iy=function(T){return T?T:function(Q,k){return Ru5(this,Q,k).Ej}}; g.Tv=function(T,Q,k){T=T.split(".");k=k||g.VC;for(var l;T.length&&(l=T.shift());)T.length||Q===void 0?k[l]&&k[l]!==Object.prototype[l]?k=k[l]:k=k[l]={}:k[l]=Q}; lW=function(T,Q){var k=g.jA("CLOSURE_FLAGS");T=k&&k[T];return T!=null?T:Q}; g.jA=function(T,Q){T=T.split(".");Q=Q||g.VC;for(var k=0;k2){var l=Array.prototype.slice.call(arguments,2);return function(){var v=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(v,l);return T.apply(Q,v)}}return function(){return T.apply(Q,arguments)}}; g.Mp=function(T,Q,k){g.Mp=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?G5g:mJ5;return g.Mp.apply(null,arguments)}; g.YE=function(T,Q){var k=Array.prototype.slice.call(arguments,1);return function(){var l=k.slice();l.push.apply(l,arguments);return T.apply(this,l)}}; g.R_=function(){return Date.now()}; Z1=function(T){return T}; g.fW=function(T,Q){function k(){} k.prototype=Q.prototype;T.Ye=Q.prototype;T.prototype=new k;T.prototype.constructor=T;T.LB=function(l,v,L){for(var q=Array(arguments.length-2),Y=2;Y=0;--k)k in l&&Q.call(void 0,l[k],k,T)}; g.sA=function(T,Q,k){Q=hT(T,Q,k);return Q<0?null:typeof T==="string"?T.charAt(Q):T[Q]}; hT=function(T,Q,k){for(var l=T.length,v=typeof T==="string"?T.split(""):T,L=0;L=0;l--)if(l in v&&Q.call(k,v[l],l,T))return l;return-1}; g.CW=function(T,Q){return CyT(T,Q)>=0}; B6g=function(T){if(!Array.isArray(T))for(var Q=T.length-1;Q>=0;Q--)delete T[Q];T.length=0}; g.zv=function(T,Q){Q=CyT(T,Q);var k;(k=Q>=0)&&g.Bm(T,Q);return k}; g.Bm=function(T,Q){return Array.prototype.splice.call(T,Q,1).length==1}; g.AT=function(T,Q){Q=hT(T,Q);Q>=0&&g.Bm(T,Q)}; zuy=function(T,Q){var k=0;Stu(T,function(l,v){Q.call(void 0,l,v,T)&&g.Bm(T,v)&&k++})}; g.bW=function(T){return Array.prototype.concat.apply([],arguments)}; g.r$=function(T){var Q=T.length;if(Q>0){for(var k=Array(Q),l=0;l>>1),U=void 0;k?U=Q.call(void 0,T[Y],Y,T):U=Q(l,T[Y]);U>0?v=Y+1:(L=Y,q=!U)}return q?v:-v-1}; g.JT=function(T,Q){T.sort(Q||Hm)}; dJf=function(T,Q){var k=Hm;g.JT(T,function(l,v){return k(Q(l),Q(v))})}; g.eA=function(T,Q,k){if(!g.o_(T)||!g.o_(Q)||T.length!=Q.length)return!1;var l=T.length;k=k||N6t;for(var v=0;vQ?1:T0&&(Q[v]=l)},T); return Q}; xJ5=function(T){T=dz(T);var Q=[];g.VJ(T,function(k,l){l in Object.prototype||typeof k!="undefined"&&Q.push([l,":",k].join(""))}); return Q}; H5y=function(T){zs(T,"od",PyI);zs(T,"opac",NM).T=!0;zs(T,"sbeos",NM).T=!0;zs(T,"prf",NM).T=!0;zs(T,"mwt",NM).T=!0;zs(T,"iogeo",NM)}; AV=function(T,Q){return T.lastIndexOf(Q,0)==0}; tfJ=function(T,Q){var k=T.length-Q.length;return k>=0&&T.indexOf(Q,k)==k}; g.bB=function(T){return/^[\s\xa0]*$/.test(T)}; g.rz=function(T,Q){return T.indexOf(Q)!=-1}; DW=function(T,Q){return g.rz(T.toLowerCase(),Q.toLowerCase())}; g.nJ=function(T,Q){var k=0;T=as(String(T)).split(".");Q=as(String(Q)).split(".");for(var l=Math.max(T.length,Q.length),v=0;k==0&&vQ?1:0}; g.KJ=function(){var T=g.VC.navigator;return T&&(T=T.userAgent)?T:""}; pJ=function(T){if(!xZ&&!Pg||!Oi)return!1;for(var Q=0;Q0:!1}; JV=function(){return $Z()?!1:Wg("Opera")}; O55=function(){return $Z()?!1:Wg("Trident")||Wg("MSIE")}; pTg=function(){return $Z()?pJ("Microsoft Edge"):Wg("Edg/")}; eP=function(){return Wg("Firefox")||Wg("FxiOS")}; Ei=function(){return Wg("Safari")&&!(Fl()||($Z()?0:Wg("Coast"))||JV()||($Z()?0:Wg("Edge"))||pTg()||($Z()?pJ("Opera"):Wg("OPR"))||eP()||Wg("Silk")||Wg("Android"))}; Fl=function(){return $Z()?pJ("Chromium"):(Wg("Chrome")||Wg("CriOS"))&&!($Z()?0:Wg("Edge"))||Wg("Silk")}; WXg=function(){return Wg("Android")&&!(Fl()||eP()||JV()||Wg("Silk"))}; $J5=function(T){var Q={};T.forEach(function(k){Q[k[0]]=k[1]}); return function(k){return Q[k.find(function(l){return l in Q})]||""}}; J55=function(T){var Q=g.KJ();if(T==="Internet Explorer"){if(O55())if((T=/rv: *([\d\.]*)/.exec(Q))&&T[1])Q=T[1];else{T="";var k=/MSIE +([\d\.]+)/.exec(Q);if(k&&k[1])if(Q=/Trident\/(\d.\d)/.exec(Q),k[1]=="7.0")if(Q&&Q[1])switch(Q[1]){case "4.0":T="8.0";break;case "5.0":T="9.0";break;case "6.0":T="10.0";break;case "7.0":T="11.0"}else T="7.0";else T=k[1];Q=T}else Q="";return Q}var l=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");k=[];for(var v;v=l.exec(Q);)k.push([v[1],v[2],v[3]||void 0]); Q=$J5(k);switch(T){case "Opera":if(JV())return Q(["Version","Opera"]);if($Z()?pJ("Opera"):Wg("OPR"))return Q(["OPR"]);break;case "Microsoft Edge":if($Z()?0:Wg("Edge"))return Q(["Edge"]);if(pTg())return Q(["Edg"]);break;case "Chromium":if(Fl())return Q(["Chrome","CriOS","HeadlessChrome"])}return T==="Firefox"&&eP()||T==="Safari"&&Ei()||T==="Android Browser"&&WXg()||T==="Silk"&&Wg("Silk")?(Q=k[2])&&Q[1]||"":""}; eub=function(T){if($Z()&&T!=="Silk"){var Q=Oi.brands.find(function(k){return k.brand===T}); if(!Q||!Q.version)return NaN;Q=Q.version.split(".")}else{Q=J55(T);if(Q==="")return NaN;Q=Q.split(".")}return Q.length===0?NaN:Number(Q[0])}; Ebb=function(){var T=null;if(!FXb)return T;try{var Q=function(k){return k}; T=FXb.createPolicy("goog#html",{createHTML:Q,createScript:Q,createScriptURL:Q})}catch(k){}return T}; iB=function(){y2===void 0&&(y2=Ebb());return y2}; V2=function(T){this.T=T}; TH=function(T){var Q=iB();T=Q?Q.createScriptURL(T):T;return new V2(T)}; jN=function(T){if(T instanceof V2)return T.T;throw Error("");}; kP=function(T){this.T=T}; g.lX=function(T){if(T instanceof kP)return T.T;throw Error("");}; oT=function(T){this.Hk=T}; vX=function(T){return new oT(function(Q){return Q.substr(0,T.length+1).toLowerCase()===T+":"})}; g.Ll=function(T,Q){Q=Q===void 0?y55:Q;a:if(Q=Q===void 0?y55:Q,!(T instanceof kP)){for(var k=0;k4);v++)Q[wa(T[v])]||(k+="\nInner error "+l++ +": ",T[v].stack&&T[v].stack.indexOf(T[v].toString())==0||(k+=typeof T[v]==="string"?T[v]:T[v].message+"\n"),k+=zH(T[v],Q));v")!=-1&&(T=T.replace(gEt,">")),T.indexOf('"')!=-1&&(T=T.replace(MAu,""")),T.indexOf("'")!=-1&&(T=T.replace(YAH,"'")),T.indexOf("\x00")!=-1&&(T=T.replace(UpT,"�")));return T}; g.cX=function(T){return T==null?"":String(T)}; Do=function(T){for(var Q=0,k=0;k>>0;return Q}; aT=function(T){var Q=Number(T);return Q==0&&g.bB(T)?NaN:Q}; Reg=function(T){return String(T).replace(/\-([a-z])/g,function(Q,k){return k.toUpperCase()})}; ZWX=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; f1X=function(T){return T.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(Q,k,l){return k+l.toUpperCase()})}; Gvf=function(T){var Q=1;T=T.split(":");for(var k=[];Q>0&&T.length;)k.push(T.shift()),Q--;T.length&&k.push(T.join(":"));return k}; uX=function(){return xZ||Pg?!!Oi&&!!Oi.platform:!1}; mpC=function(){return uX()?Oi.platform==="Android":Wg("Android")}; nl=function(){return Wg("iPhone")&&!Wg("iPod")&&!Wg("iPad")}; Kl=function(){return nl()||Wg("iPad")||Wg("iPod")}; xP=function(){return uX()?Oi.platform==="macOS":Wg("Macintosh")}; I15=function(){return uX()?Oi.platform==="Windows":Wg("Windows")}; PX=function(T){PX[" "](T);return T}; heI=function(T,Q){try{return PX(T[Q]),!0}catch(k){}return!1}; SAH=function(T,Q){var k=s_b;return Object.prototype.hasOwnProperty.call(k,T)?k[T]:k[T]=Q(T)}; g.HX=function(T){return SAH(T,function(){return g.nJ(CW5,T)>=0})}; g.ti=function(T,Q,k){return Math.min(Math.max(T,Q),k)}; g.Ok=function(T,Q){T%=Q;return T*Q<0?T+Q:T}; pl=function(T,Q,k){return T+k*(Q-T)}; g.WX=function(T,Q){this.x=T!==void 0?T:0;this.y=Q!==void 0?Q:0}; $P=function(T,Q){return T==Q?!0:T&&Q?T.x==Q.x&&T.y==Q.y:!1}; g.Ji=function(T,Q){this.width=T;this.height=Q}; g.eN=function(T,Q){return T==Q?!0:T&&Q?T.width==Q.width&&T.height==Q.height:!1}; Fs=function(T){return T.width*T.height}; yw=function(T,Q){this.T=T===Ek&&Q||""}; iX=function(T){if(T instanceof RT)return T;T=String(T).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return Zo(T)}; zey=function(T){return B$y(T)}; B$y=function(T){var Q=iX("");return Zo(T.map(function(k){return fl(iX(k))}).join(fl(Q).toString()))}; ATT=function(T){var Q;if(!Xm5.test("div"))throw Error("");if(wm6.indexOf("DIV")!==-1)throw Error("");var k="":(T=zey(Q.map(function(l){return l instanceof RT?l:iX(String(l))})),k+=">"+T.toString()+""); return Zo(k)}; dpC=function(T){for(var Q="",k=Object.keys(T),l=0;l2&&nEt(v,q,l,2);return q}; nEt=function(T,Q,k,l){function v(Y){Y&&Q.appendChild(typeof Y==="string"?T.createTextNode(Y):Y)} for(;l0)v(L);else{a:{if(L&&typeof L.length=="number"){if(g.vm(L)){var q=typeof L.item=="function"||typeof L.item=="string";break a}if(typeof L==="function"){q=typeof L.item=="function";break a}}q=!1}g.EA(q?g.r$(L):L,v)}}}; g.fO=function(T){return RO(document,T)}; RO=function(T,Q){Q=String(Q);T.contentType==="application/xhtml+xml"&&(Q=Q.toLowerCase());return T.createElement(Q)}; g.G8=function(T){return document.createTextNode(String(T))}; g.mm=function(T,Q){T.appendChild(Q)}; g.IO=function(T){for(var Q;Q=T.firstChild;)T.removeChild(Q)}; hZ=function(T,Q,k){T.insertBefore(Q,T.childNodes[k]||null)}; g.s$=function(T){return T&&T.parentNode?T.parentNode.removeChild(T):null}; g.SO=function(T,Q){if(!T||!Q)return!1;if(T.contains&&Q.nodeType==1)return T==Q||T.contains(Q);if(typeof T.compareDocumentPosition!="undefined")return T==Q||!!(T.compareDocumentPosition(Q)&16);for(;Q&&T!=Q;)Q=Q.parentNode;return Q==T}; Qf=function(T){return T.nodeType==9?T:T.ownerDocument||T.document}; g.CO=function(T,Q){if("textContent"in T)T.textContent=Q;else if(T.nodeType==3)T.data=String(Q);else if(T.firstChild&&T.firstChild.nodeType==3){for(;T.lastChild!=T.firstChild;)T.removeChild(T.lastChild);T.firstChild.data=String(Q)}else g.IO(T),T.appendChild(Qf(T).createTextNode(String(Q)))}; xpt=function(T){return T.tagName=="A"&&T.hasAttribute("href")||T.tagName=="INPUT"||T.tagName=="TEXTAREA"||T.tagName=="SELECT"||T.tagName=="BUTTON"?!T.disabled&&(!T.hasAttribute("tabindex")||K96(T)):T.hasAttribute("tabindex")&&K96(T)}; K96=function(T){T=T.tabIndex;return typeof T==="number"&&T>=0&&T<32768}; dK=function(T,Q,k){if(!Q&&!k)return null;var l=Q?String(Q).toUpperCase():null;return B2(T,function(v){return(!l||v.nodeName==l)&&(!k||typeof v.className==="string"&&g.CW(v.className.split(/\s+/),k))},!0)}; B2=function(T,Q,k){T&&!k&&(T=T.parentNode);for(k=0;T;){if(Q(T))return T;T=T.parentNode;k++}return null}; T8=function(T){this.T=T||g.VC.document||document}; PWH=function(){this.T=this.kd=null}; NX=function(){}; b5=function(){if(!AZ())throw Error();}; AZ=function(){return!(!rK||!rK.performance)}; HW5=function(T){return g.Y1?"webkit"+T:T.toLowerCase()}; c2=function(T){return function(){return T}}; g.DM=function(){}; tAI=function(T){var Q=Q||0;return function(){return T.apply(this,Array.prototype.slice.call(arguments,0,Q))}}; aO=function(T){var Q=!1,k;return function(){Q||(k=T(),Q=!0);return k}}; u5=function(T){var Q=T;return function(){if(Q){var k=Q;Q=null;k()}}}; nO=function(T,Q,k){var l=0;return function(v){g.VC.clearTimeout(l);var L=arguments;l=g.VC.setTimeout(function(){T.apply(k,L)},Q)}}; KO=function(T,Q,k,l){this.top=T;this.right=Q;this.bottom=k;this.left=l}; x1=function(T){return T.right-T.left}; P2=function(T,Q){return T==Q?!0:T&&Q?T.top==Q.top&&T.right==Q.right&&T.bottom==Q.bottom&&T.left==Q.left:!1}; H2=function(T,Q,k){Q instanceof g.WX?(T.left+=Q.x,T.right+=Q.x,T.top+=Q.y,T.bottom+=Q.y):(T.left+=Q,T.right+=Q,typeof k==="number"&&(T.top+=k,T.bottom+=k));return T}; g.tZ=function(T,Q,k,l){this.left=T;this.top=Q;this.width=k;this.height=l}; O$=function(T,Q){return T==Q?!0:T&&Q?T.left==Q.left&&T.width==Q.width&&T.top==Q.top&&T.height==Q.height:!1}; g.W2=function(T,Q,k){if(typeof Q==="string")(Q=pO(T,Q))&&(T.style[Q]=k);else for(var l in Q){k=T;var v=Q[l],L=pO(k,l);L&&(k.style[L]=v)}}; pO=function(T,Q){var k=OW5[Q];if(!k){var l=Reg(Q);k=l;T.style[l]===void 0&&(l=(g.Y1?"Webkit":$1?"Moz":null)+f1X(l),T.style[l]!==void 0&&(k=l));OW5[Q]=k}return k}; g.JZ=function(T,Q){var k=T.style[Reg(Q)];return typeof k!=="undefined"?k:T.style[pO(T,Q)]||""}; eO=function(T,Q){var k=Qf(T);return k.defaultView&&k.defaultView.getComputedStyle&&(T=k.defaultView.getComputedStyle(T,null))?T[Q]||T.getPropertyValue(Q)||"":""}; F3=function(T,Q){return eO(T,Q)||(T.currentStyle?T.currentStyle[Q]:null)||T.style&&T.style[Q]}; g.yf=function(T,Q,k){if(Q instanceof g.WX){var l=Q.x;Q=Q.y}else l=Q,Q=k;T.style.left=g.E$(l,!1);T.style.top=g.E$(Q,!1)}; i5=function(T){try{return T.getBoundingClientRect()}catch(Q){return{left:0,top:0,right:0,bottom:0}}}; pmg=function(T){var Q=Qf(T),k=F3(T,"position"),l=k=="fixed"||k=="absolute";for(T=T.parentNode;T&&T!=Q;T=T.parentNode)if(T.nodeType==11&&T.host&&(T=T.host),k=F3(T,"position"),l=l&&k=="static"&&T!=Q.documentElement&&T!=Q.body,!l&&(T.scrollWidth>T.clientWidth||T.scrollHeight>T.clientHeight||k=="fixed"||k=="absolute"||k=="relative"))return T;return null}; g.Vf=function(T){var Q=Qf(T),k=new g.WX(0,0);if(T==(Q?Qf(Q):document).documentElement)return k;T=i5(T);Q=jO(Q);Q=udT(Q.T);k.x=T.left+Q.x;k.y=T.top+Q.y;return k}; $py=function(T,Q){var k=new g.WX(0,0),l=U$(Qf(T));if(!heI(l,"parent"))return k;do{var v=l==Q?g.Vf(T):W9T(T);k.x+=v.x;k.y+=v.y}while(l&&l!=Q&&l!=l.parent&&(T=l.frameElement)&&(l=l.parent));return k}; g.To=function(T,Q){T=JTy(T);Q=JTy(Q);return new g.WX(T.x-Q.x,T.y-Q.y)}; W9T=function(T){T=i5(T);return new g.WX(T.left,T.top)}; JTy=function(T){if(T.nodeType==1)return W9T(T);T=T.changedTouches?T.changedTouches[0]:T;return new g.WX(T.clientX,T.clientY)}; g.QP=function(T,Q,k){if(Q instanceof g.Ji)k=Q.height,Q=Q.width;else if(k==void 0)throw Error("missing height argument");T.style.width=g.E$(Q,!0);T.style.height=g.E$(k,!0)}; g.E$=function(T,Q){typeof T=="number"&&(T=(Q?Math.round(T):T)+"px");return T}; g.jC=function(T){var Q=eeI;if(F3(T,"display")!="none")return Q(T);var k=T.style,l=k.display,v=k.visibility,L=k.position;k.visibility="hidden";k.position="absolute";k.display="inline";T=Q(T);k.display=l;k.position=L;k.visibility=v;return T}; eeI=function(T){var Q=T.offsetWidth,k=T.offsetHeight,l=g.Y1&&!Q&&!k;return(Q===void 0||l)&&T.getBoundingClientRect?(T=i5(T),new g.Ji(T.right-T.left,T.bottom-T.top)):new g.Ji(Q,k)}; g.kj=function(T,Q){T.style.display=Q?"":"none"}; lS=function(T){return T?T.passive&&F9f()?T:T.capture||!1:!1}; oQ=function(T,Q,k,l){return typeof T.addEventListener==="function"?(T.addEventListener(Q,k,lS(l)),!0):!1}; vu=function(T){if(T.prerendering)return 3;var Q;return(Q={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[T.visibilityState||T.webkitVisibilityState||T.mozVisibilityState||""])!=null?Q:0}; EET=function(){}; L8=function(T){T.u39=!0;return T}; yTb=function(){return(xZ||Pg)&&Oi?Oi.mobile:!M_()&&(Wg("iPod")||Wg("iPhone")||Wg("Android")||Wg("IEMobile"))}; M_=function(){return(xZ||Pg)&&Oi?!Oi.mobile&&(Wg("iPad")||Wg("Android")||Wg("Silk")):Wg("iPad")||Wg("Android")&&!Wg("Mobile")||Wg("Silk")}; Yj=function(T){try{return!!T&&T.location.href!=null&&heI(T,"foo")}catch(Q){return!1}}; Uo=function(T,Q){if(T)for(var k in T)Object.prototype.hasOwnProperty.call(T,k)&&Q(T[k],k,T)}; VAX=function(){var T=[];Uo(iWX,function(Q){T.push(Q)}); return T}; Tz6=function(T){var Q,k;return(k=(Q=/https?:\/\/[^\/]+/.exec(T))==null?void 0:Q[0])!=null?k:""}; ksJ=function(){var T=QsX("IFRAME"),Q={};g.EA(jsT(),function(k){T.sandbox&&T.sandbox.supports&&T.sandbox.supports(k)&&(Q[k]=!0)}); return Q}; QsX=function(T,Q){Q=Q===void 0?document:Q;return Q.createElement(String(T).toLowerCase())}; lW5=function(T){for(var Q=T;T&&T!=T.parent;)T=T.parent,Yj(T)&&(Q=T);return Q}; qiy=function(T){T=T||RQ();for(var Q=new oZg(g.VC.location.href,!1),k=null,l=T.length-1,v=l;v>=0;--v){var L=T[v];!k&&vZu.test(L.url)&&(k=L);if(L.url&&!L.T){Q=L;break}}v=null;L=T.length&&T[l].url;Q.depth!==0&&L&&(v=T[l]);return new Ly5(Q,v,k)}; RQ=function(){var T=g.VC,Q=[],k=null;do{var l=T;if(Yj(l)){var v=l.location.href;k=l.document&&l.document.referrer||null}else v=k,k=null;Q.push(new oZg(v||""));try{T=l.parent}catch(L){T=null}}while(T&&l!==T);l=0;for(T=Q.length-1;l<=T;++l)Q[l].depth=T-l;l=g.VC;if(l.location&&l.location.ancestorOrigins&&l.location.ancestorOrigins.length===Q.length-1)for(T=1;TQ&&(Q=k.length);return 3997-Q-T.L.length-1}; m3=function(T,Q){this.T=T;this.depth=Q}; UMt=function(){function T(Y,U){return Y==null?U:Y} var Q=RQ(),k=Math.max(Q.length-1,0),l=qiy(Q);Q=l.T;var v=l.S,L=l.L,q=[];L&&q.push(new m3([L.url,L.T?2:0],T(L.depth,1)));v&&v!=L&&q.push(new m3([v.url,2],0));Q.url&&Q!=L&&q.push(new m3([Q.url,0],T(Q.depth,k)));l=g.IQ(q,function(Y,U){return q.slice(0,q.length-U)}); !Q.url||(L||v)&&Q!=L||(v=Tz6(Q.url))&&l.push([new m3([v,1],T(Q.depth,k))]);l.push([]);return g.IQ(l,function(Y){return YiC(k,Y)})}; YiC=function(T,Q){g.hm(Q,function(v){return v.depth>=0}); var k=so(Q,function(v,L){return Math.max(v,L.depth)},-1),l=A5y(k+2); l[0]=T;g.EA(Q,function(v){return l[v.depth+1]=v.T}); return l}; RW6=function(){var T=T===void 0?UMt():T;return T.map(function(Q){return Go(Q)})}; ZJJ=function(T){var Q=!1;Q=Q===void 0?!1:Q;rK.google_image_requests||(rK.google_image_requests=[]);var k=QsX("IMG",rK.document);Q&&(k.attributionSrc="");k.src=T;rK.google_image_requests.push(k)}; SC=function(T){var Q="Zf";if(T.Zf&&T.hasOwnProperty(Q))return T.Zf;var k=new T;T.Zf=k;T.hasOwnProperty(Q);return k}; C8=function(){this.S=new EET;this.T=AZ()?new b5:new NX}; fWu=function(){Bu();var T=rK.document;return!!(T&&T.body&&T.body.getBoundingClientRect&&typeof rK.setInterval==="function"&&typeof rK.clearInterval==="function"&&typeof rK.setTimeout==="function"&&typeof rK.clearTimeout==="function")}; Gsf=function(){Bu();return RW6()}; mM5=function(){}; Bu=function(){var T=SC(mM5);if(!T.T){if(!rK)throw Error("Context has not been set and window is undefined.");T.T=SC(C8)}return T.T}; zo=function(){throw Error("Invalid UTF8");}; IWH=function(T,Q){Q=String.fromCharCode.apply(null,Q);return T==null?Q:T+Q}; CBX=function(T){var Q=!1;Q=Q===void 0?!1:Q;if(hW5){if(Q&&(ssI?!T.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(T)))throw Error("Found an unpaired surrogate");T=(Sig||(Sig=new TextEncoder)).encode(T)}else{for(var k=0,l=new Uint8Array(3*T.length),v=0;v>6|192;else{if(L>=55296&&L<=57343){if(L<=56319&&v=56320&&q<=57343){L=(L-55296)*1024+ q-56320+65536;l[k++]=L>>18|240;l[k++]=L>>12&63|128;l[k++]=L>>6&63|128;l[k++]=L&63|128;continue}else v--}if(Q)throw Error("Found an unpaired surrogate");L=65533}l[k++]=L>>12|224;l[k++]=L>>6&63|128}l[k++]=L&63|128}}T=k===l.length?l:l.subarray(0,k)}return T}; X1=function(T){g.VC.setTimeout(function(){throw T;},0)}; Bz5=function(T){return Array.prototype.map.call(T,function(Q){Q=Q.toString(16);return Q.length>1?Q:"0"+Q}).join("")}; zWH=function(T){for(var Q=[],k=0;k>6|192:((v&64512)==55296&&l+1>18|240,Q[k++]=v>>12&63|128):Q[k++]=v>>12|224,Q[k++]=v>>6&63|128),Q[k++]=v&63|128)}return Q}; g.dJ=function(T,Q){Q===void 0&&(Q=0);Xgg();Q=wgu[Q];for(var k=Array(Math.floor(T.length/3)),l=Q[64]||"",v=0,L=0;v>2];q=Q[(q&3)<<4|Y>>4];Y=Q[(Y&15)<<2|U>>6];U=Q[U&63];k[L++]=""+R+q+Y+U}R=0;U=l;switch(T.length-v){case 2:R=T[v+1],U=Q[(R&15)<<2]||l;case 1:T=T[v],k[L]=""+Q[T>>2]+Q[(T&3)<<4|R>>4]+U+l}return k.join("")}; g.N_=function(T,Q,k){if(dM5&&!Q)T=g.VC.btoa(T);else{for(var l=[],v=0,L=0;L255){var Y=Error("go/unicode-to-byte-error");if(k)throw Y;l[v++]=q&255;q>>=8}l[v++]=q}T=g.dJ(l,Q)}return T}; AV5=function(T){var Q=[];Nz6(T,function(k){Q.push(k)}); return Q}; Am=function(T){var Q=T.length,k=Q*3/4;k%3?k=Math.floor(k):g.rz("=.",T[Q-1])&&(k=g.rz("=.",T[Q-2])?k-2:k-1);var l=new Uint8Array(k),v=0;Nz6(T,function(L){l[v++]=L}); return v!==k?l.subarray(0,v):l}; Nz6=function(T,Q){function k(U){for(;l>4);q!=64&&(Q(L<<4&240|q>>2),Y!=64&&Q(q<<6&192|Y))}}; Xgg=function(){if(!bS){bS={};for(var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Q=["+/=","+/","-_=","-_.","-_"],k=0;k<5;k++){var l=T.concat(Q[k].split(""));wgu[k]=l;for(var v=0;v=Q||(l[T]=k+1,T=Error(),l1b(T,"incident"),X1(T))}}; xj=function(T,Q,k){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(k===void 0?0:k)&&Symbol.for&&T?Symbol.for(T):T!=null?Symbol(T):Symbol():Q}; tm=function(T,Q){Pu||Hu in T||PBX(T,HJT);T[Hu]|=Q}; Oo=function(T,Q){Pu||Hu in T||PBX(T,HJT);T[Hu]=Q}; p8=function(){return typeof BigInt==="function"}; Jm=function(T,Q){return Q===void 0?T.T!==Wu&&!!(2&(T.g5[Hu]|0)):!!(2&Q)&&T.T!==Wu}; tPf=function(T,Q){if(T!=null)if(typeof T==="string")T=T?new rJ(T,cu):D9();else if(T.constructor!==rJ)if(Ky6&&T!=null&&T instanceof Uint8Array)T=T.length?new rJ(new Uint8Array(T),cu):D9();else{if(!Q)throw Error();T=void 0}return T}; eC=function(T,Q){if(typeof Q!=="number"||Q<0||Q>=T.length)throw Error();}; OJb=function(T,Q,k){var l=Q&128?0:-1,v=T.length,L;if(L=!!v)L=T[v-1],L=L!=null&&typeof L==="object"&&L.constructor===Object;var q=v+(L?-1:0);for(Q=Q&128?1:0;QQ.length)return!1;if(T.lengthv)return!1;if(l>>0;jk=Q;ky=(T-Q)/4294967296>>>0}; vG=function(T){if(T<0){li(0-T);var Q=g.B(oc(jk,ky));T=Q.next().value;Q=Q.next().value;jk=T>>>0;ky=Q>>>0}else li(T)}; qr=function(T,Q){var k=Q*4294967296+(T>>>0);return Number.isSafeInteger(k)?k:L2(T,Q)}; JVt=function(T,Q){var k=Q&2147483648;k&&(T=~T+1>>>0,Q=~Q>>>0,T==0&&(Q=Q+1>>>0));T=qr(T,Q);return typeof T==="number"?k?-T:T:k?"-"+T:T}; L2=function(T,Q){Q>>>=0;T>>>=0;if(Q<=2097151)var k=""+(4294967296*Q+T);else p8()?k=""+(BigInt(Q)<>>24|Q<<8)&16777215,Q=Q>>16&65535,T=(T&16777215)+k*6777216+Q*6710656,k+=Q*8147497,Q*=2,T>=1E7&&(k+=T/1E7>>>0,T%=1E7),k>=1E7&&(Q+=k/1E7>>>0,k%=1E7),k=Q+eWt(k)+eWt(T));return k}; eWt=function(T){T=String(T);return"0000000".slice(T.length)+T}; Fyg=function(){var T=jk,Q=ky;Q&2147483648?p8()?T=""+(BigInt(Q|0)<>>0)):(Q=g.B(oc(T,Q)),T=Q.next().value,Q=Q.next().value,T="-"+L2(T,Q)):T=L2(T,Q);return T}; g_=function(T){if(T.length<16)vG(Number(T));else if(p8())T=BigInt(T),jk=Number(T&BigInt(4294967295))>>>0,ky=Number(T>>BigInt(32)&BigInt(4294967295));else{var Q=+(T[0]==="-");ky=jk=0;for(var k=T.length,l=0+Q,v=(k-Q)%6+Q;v<=k;l=v,v+=6)l=Number(T.slice(l,v)),ky*=1E6,jk=jk*1E6+l,jk>=4294967296&&(ky+=Math.trunc(jk/4294967296),ky>>>=0,jk>>>=0);Q&&(Q=g.B(oc(jk,ky)),T=Q.next().value,Q=Q.next().value,jk=T,ky=Q)}}; oc=function(T,Q){Q=~Q;T?T=~T+1:Q+=1;return[T,Q]}; Mr=function(T){return Array.prototype.slice.call(T)}; Yy=function(T){if(T!=null&&typeof T!=="number")throw Error("Value of float/double field must be a number, found "+typeof T+": "+T);return T}; EZC=function(T){return T.displayName||T.name||"unknown type name"}; Uv=function(T){if(T!=null&&typeof T!=="boolean")throw Error("Expected boolean but got "+Z5I(T)+": "+T);return T}; ZO=function(T){switch(typeof T){case "bigint":return!0;case "number":return Rc(T);case "string":return yV5.test(T);default:return!1}}; iJI=function(T){if(typeof T!=="number")throw n8("int32");if(!Rc(T))throw n8("int32");return T|0}; f2=function(T){return T==null?T:iJI(T)}; GS=function(T){if(T==null)return T;if(typeof T==="string"&&T)T=+T;else if(typeof T!=="number")return;return Rc(T)?T|0:void 0}; mY=function(T){if(T==null)return T;if(typeof T==="string"&&T)T=+T;else if(typeof T!=="number")return;return Rc(T)?T>>>0:void 0}; QTg=function(T){var Q=0;Q=Q===void 0?0:Q;if(!ZO(T))throw n8("int64");var k=typeof T;switch(Q){case 512:switch(k){case "string":return Sk(T);case "bigint":return String(C2(64,T));default:return BG(T)}case 1024:switch(k){case "string":return VPf(T);case "bigint":return Ql(C2(64,T));default:return Tay(T)}case 0:switch(k){case "string":return Sk(T);case "bigint":return Ql(C2(64,T));default:return zS(T)}default:return Uk(Q,"Unknown format requested type for int64")}}; XW=function(T){return T==null?T:QTg(T)}; jTX=function(T){if(T[0]==="-")return!1;var Q=T.length;return Q<20?!0:Q===20&&Number(T.substring(0,6))<184467}; kH6=function(T){var Q=T.length;return T[0]==="-"?Q<20?!0:Q===20&&Number(T.substring(0,7))>-922337:Q<19?!0:Q===19&&Number(T.substring(0,6))<922337}; loC=function(T){if(T<0){vG(T);var Q=L2(jk,ky);T=Number(Q);return w_(T)?T:Q}Q=String(T);if(jTX(Q))return Q;vG(T);return qr(jk,ky)}; oPC=function(T){if(kH6(T))return T;g_(T);return Fyg()}; zS=function(T){ZO(T);T=d_(T);w_(T)||(vG(T),T=JVt(jk,ky));return T}; BG=function(T){ZO(T);T=d_(T);if(w_(T))T=String(T);else{var Q=String(T);kH6(Q)?T=Q:(vG(T),T=Fyg())}return T}; Sk=function(T){ZO(T);var Q=d_(Number(T));if(w_(Q))return String(Q);Q=T.indexOf(".");Q!==-1&&(T=T.substring(0,Q));return oPC(T)}; VPf=function(T){var Q=d_(Number(T));if(w_(Q))return Ql(Q);Q=T.indexOf(".");Q!==-1&&(T=T.substring(0,Q));return p8()?Ql(C2(64,BigInt(T))):Ql(oPC(T))}; Tay=function(T){return w_(T)?Ql(zS(T)):Ql(BG(T))}; vPC=function(T){if(T==null)return T;var Q=typeof T;if(Q==="bigint")return String(C2(64,T));if(ZO(T)){if(Q==="string")return Sk(T);if(Q==="number")return zS(T)}}; qk6=function(T){if(T==null)return T;var Q=typeof T;if(Q==="bigint")return String(LII(64,T));if(ZO(T)){if(Q==="string")return ZO(T),Q=d_(Number(T)),w_(Q)&&Q>=0?T=String(Q):(Q=T.indexOf("."),Q!==-1&&(T=T.substring(0,Q)),jTX(T)||(g_(T),T=L2(jk,ky))),T;if(Q==="number")return ZO(T),T=d_(T),T>=0&&w_(T)?T:loC(T)}}; gPy=function(T){if(T==null||typeof T=="string"||T instanceof rJ)return T}; MNJ=function(T){if(typeof T!=="string")throw Error();return T}; Nr=function(T){if(T!=null&&typeof T!=="string")throw Error();return T}; AP=function(T){return T==null||typeof T==="string"?T:void 0}; bi=function(T,Q){if(!(T instanceof Q))throw Error("Expected instanceof "+EZC(Q)+" but got "+(T&&EZC(T.constructor)));return T}; YkX=function(T,Q,k){if(T!=null&&T[r_]===cG)return T;if(Array.isArray(T)){var l=T[Hu]|0;k=l|k&32|k&2;k!==l&&Oo(T,k);return new Q(T)}}; DO=function(T){return T}; ui=function(T){var Q=Z1(ac);return Q?T[Q]:void 0}; n2=function(){}; K2=function(T,Q){for(var k in T)!isNaN(k)&&Q(T,+k,T[k])}; Ung=function(T){var Q=new n2;K2(T,function(k,l,v){Q[l]=Mr(v)}); Q.X1=T.X1;return Q}; Zl5=function(T,Q){Q<100||K8(RCf,1)}; Ov=function(T,Q,k,l){var v=l!==void 0;l=!!l;var L=Z1(ac),q;!v&&Pu&&L&&(q=T[L])&&K2(q,Zl5);L=[];var Y=T.length;q=4294967295;var U=!1,R=!!(Q&64),Z=R?Q&128?0:-1:void 0;if(!(Q&1)){var f=Y&&T[Y-1];f!=null&&typeof f==="object"&&f.constructor===Object?(Y--,q=Y):f=void 0;if(R&&!(Q&128)&&!v){U=!0;var G;q=((G=PG)!=null?G:DO)(q-Z,Z,T,f,void 0)+Z}}Q=void 0;for(G=0;G=q){var I=G-Z,z=void 0;((z=Q)!=null?z:Q={})[I]=m}else L[G]=m}if(f)for(var w in f)Y=f[w],Y!= null&&(Y=k(Y,l))!=null&&(G=+w,m=void 0,R&&!Number.isNaN(G)&&(m=G+Z)0?void 0:T===0?hCy||(hCy=[0,void 0]):[-T,void 0];case "string":return[0,T];case "object":return T}}; ek=function(T,Q,k){return T=JP(T,Q[0],Q[1],k?1:2)}; JP=function(T,Q,k,l){l=l===void 0?0:l;if(T==null){var v=32;k?(T=[k],v|=128):T=[];Q&&(v=v&-8380417|(Q&1023)<<13)}else{if(!Array.isArray(T))throw Error("narr");v=T[Hu]|0;if(Sk5&&1&v)throw Error("rfarr");2048&v&&!(2&v)&&CXg();if(v&256)throw Error("farr");if(v&64)return l!==0||v&2048||Oo(T,v|2048),T;if(k&&(v|=128,k!==T[0]))throw Error("mid");a:{k=T;v|=64;var L=k.length;if(L){var q=L-1,Y=k[q];if(Y!=null&&typeof Y==="object"&&Y.constructor===Object){Q=v&128?0:-1;q-=Q;if(q>=1024)throw Error("pvtlmt");for(var U in Y)L= +U,L1024)throw Error("spvt");v=v&-8380417|(U&1023)<<13}}}v|=64;l===0&&(v|=2048);Oo(T,v);return T}; CXg=function(){if(Sk5)throw Error("carr");K8(BaJ,5)}; zCt=function(T,Q){if(typeof T!=="object")return T;if(Array.isArray(T)){var k=T[Hu]|0;T.length===0&&k&1?T=void 0:k&2||(!Q||4096&k||16&k?T=FW(T,k,!1,Q&&!(k&16)):(tm(T,34),k&4&&Object.freeze(T)));return T}if(T!=null&&T[r_]===cG)return Q=T.g5,k=Q[Hu]|0,Jm(T,k)?T:Ev(T,Q,k)?yl(T,Q):FW(Q,k);if(T instanceof rJ)return T}; yl=function(T,Q,k){T=new T.constructor(Q);k&&(T.T=Wu);T.S=Wu;return T}; FW=function(T,Q,k,l){l!=null||(l=!!(34&Q));T=Ov(T,Q,zCt,l);l=32;k&&(l|=2);Q=Q&8380609|l;Oo(T,Q);return T}; XXg=function(T){var Q=T.g5,k=Q[Hu]|0;return Jm(T,k)?Ev(T,Q,k)?yl(T,Q,!0):new T.constructor(FW(Q,k,!1)):T}; ii=function(T){if(T.T!==Wu)return!1;var Q=T.g5;Q=FW(Q,Q[Hu]|0);tm(Q,2048);T.g5=Q;T.T=void 0;T.S=void 0;return!0}; Vl=function(T){if(!ii(T)&&Jm(T,T.g5[Hu]|0))throw Error();}; Td=function(T,Q){Q===void 0&&(Q=T[Hu]|0);Q&32&&!(Q&4096)&&Oo(T,Q|4096)}; Ev=function(T,Q,k){return k&2?!0:k&32&&!(k&4096)?(Oo(Q,k|2),T.T=Wu,!0):!1}; jQ=function(T,Q,k,l,v){Object.isExtensible(T);Q=QK(T.g5,Q,k,v);if(Q!==null||l&&T.S!==Wu)return Q}; QK=function(T,Q,k,l){if(Q===-1)return null;var v=Q+(k?0:-1),L=T.length-1;if(!(L<1+(k?0:-1))){if(v>=L){var q=T[L];if(q!=null&&typeof q==="object"&&q.constructor===Object){k=q[Q];var Y=!0}else if(v===L)k=q;else return}else k=T[v];if(l&&k!=null){l=l(k);if(l==null)return l;if(!Object.is(l,k))return Y?q[Q]=l:T[v]=l,l}return k}}; lq=function(T,Q,k,l){Vl(T);var v=T.g5;kM(v,v[Hu]|0,Q,k,l);return T}; kM=function(T,Q,k,l,v){var L=k+(v?0:-1),q=T.length-1;if(q>=1+(v?0:-1)&&L>=q){var Y=T[q];if(Y!=null&&typeof Y==="object"&&Y.constructor===Object)return Y[k]=l,Q}if(L<=q)return T[L]=l,Q;if(l!==void 0){var U;q=((U=Q)!=null?U:Q=T[Hu]|0)>>13&1023||536870912;k>=q?l!=null&&(L={},T[q+(v?0:-1)]=(L[k]=l,L)):T[L]=l}return Q}; gL=function(T,Q,k,l,v){var L=T.g5,q=L[Hu]|0;l=Jm(T,q)?1:l;v=!!v||l===3;l===2&&ii(T)&&(L=T.g5,q=L[Hu]|0);T=o2(L,Q);var Y=T===vS?7:T[Hu]|0,U=Lg(Y,q);var R=4&U?!1:!0;if(R){4&U&&(T=Mr(T),Y=0,U=qs(U,q),q=kM(L,q,Q,T));for(var Z=0,f=0;Z "+T)}; O5=function(T,Q,k){this.buffer=T;if(k&&!Q)throw Error();this.T=Q}; pg=function(T,Q){if(typeof T==="string")return new O5(aW6(T),Q);if(Array.isArray(T))return new O5(new Uint8Array(T),Q);if(T.constructor===Uint8Array)return new O5(T,!1);if(T.constructor===ArrayBuffer)return T=new Uint8Array(T),new O5(T,!1);if(T.constructor===rJ)return Q=aQ(T)||new Uint8Array(0),new O5(Q,!0,T);if(T instanceof Uint8Array)return T=T.constructor===Uint8Array?T:new Uint8Array(T.buffer,T.byteOffset,T.byteLength),new O5(T,!1);throw Error();}; WS=function(T,Q,k,l){this.S=null;this.N=!1;this.T=this.L=this.Y=0;this.init(T,Q,k,l)}; JK=function(T){var Q=0,k=0,l=0,v=T.S,L=T.T;do{var q=v[L++];Q|=(q&127)<32&&(k|=(q&127)>>4);for(l=3;l<32&&q&128;l+=7)q=v[L++],k|=(q&127)<>>0,k>>>0);throw tK();}; $M=function(T,Q){T.T=Q;if(Q>T.L)throw KIH(T.L,Q);}; eQ=function(T){var Q=T.S,k=T.T,l=Q[k++],v=l&127;if(l&128&&(l=Q[k++],v|=(l&127)<<7,l&128&&(l=Q[k++],v|=(l&127)<<14,l&128&&(l=Q[k++],v|=(l&127)<<21,l&128&&(l=Q[k++],v|=l<<28,l&128&&Q[k++]&128&&Q[k++]&128&&Q[k++]&128&&Q[k++]&128&&Q[k++]&128)))))throw tK();$M(T,k);return v}; FV=function(T){var Q=T.S,k=T.T,l=Q[k+0],v=Q[k+1],L=Q[k+2];Q=Q[k+3];$M(T,T.T+4);return(l<<0|v<<8|L<<16|Q<<24)>>>0}; E5=function(T){var Q=FV(T);T=FV(T);return qr(Q,T)}; yK=function(T){var Q=FV(T),k=FV(T);T=(k>>31)*2+1;var l=k>>>20&2047;Q=4294967296*(k&1048575)+Q;return l==2047?Q?NaN:T*Infinity:l==0?T*4.9E-324*Q:T*Math.pow(2,l-1075)*(Q+4503599627370496)}; iq=function(T){for(var Q=0,k=T.T,l=k+10,v=T.S;kT.L)throw KIH(Q,T.L-k);T.T=l;return k}; HlI=function(T,Q){if(Q==0)return D9();var k=xnC(T,Q);T.AT&&T.N?k=T.S.subarray(k,k+Q):(T=T.S,Q=k+Q,k=k===Q?new Uint8Array(0):PXt?T.slice(k,Q):new Uint8Array(T.subarray(k,Q)));return k.length==0?D9():new rJ(k,cu)}; TR=function(T,Q,k,l){if(VK.length){var v=VK.pop();v.init(T,Q,k,l);T=v}else T=new WS(T,Q,k,l);this.T=T;this.L=this.T.T;this.S=this.Y=-1;tNC(this,l)}; tNC=function(T,Q){Q=Q===void 0?{}:Q;T.yC=Q.yC===void 0?!1:Q.yC}; Olu=function(T,Q,k,l){if(Q$.length){var v=Q$.pop();tNC(v,l);v.T.init(T,Q,k,l);return v}return new TR(T,Q,k,l)}; pX6=function(T){var Q=T.T;if(Q.T==Q.L)return!1;T.L=T.T.T;var k=eQ(T.T)>>>0;Q=k>>>3;k&=7;if(!(k>=0&&k<=5))throw nPf(k,T.L);if(Q<1)throw Error("Invalid field number: "+Q+" (at position "+T.L+")");T.Y=Q;T.S=k;return!0}; YA=function(T){switch(T.S){case 0:T.S!=0?YA(T):iq(T.T);break;case 1:T=T.T;$M(T,T.T+8);break;case 2:if(T.S!=2)YA(T);else{var Q=eQ(T.T)>>>0;T=T.T;$M(T,T.T+Q)}break;case 5:T=T.T;$M(T,T.T+4);break;case 3:Q=T.Y;do{if(!pX6(T))throw Error("Unmatched start-group tag: stream EOF");if(T.S==4){if(T.Y!=Q)throw Error("Unmatched end-group tag");break}YA(T)}while(1);break;default:throw nPf(T.S,T.L);}}; U6=function(T,Q,k){var l=T.T.L,v=eQ(T.T)>>>0,L=T.T.T+v,q=L-l;q<=0&&(T.T.L=L,k(Q,T,void 0,void 0,void 0),q=L-T.T.T);if(q)throw Error("Message parsing ended unexpectedly. Expected to read "+(v+" bytes, instead read "+(v-q)+" bytes, either the data ended unexpectedly or the message misreported its own length"));T.T.T=L;T.T.L=l}; f3=function(T){var Q=eQ(T.T)>>>0;T=T.T;var k=xnC(T,Q);T=T.S;if(WIu){var l=T,v;(v=Ry)||(v=Ry=new TextDecoder("utf-8",{fatal:!0}));Q=k+Q;l=k===0&&Q===l.length?l:l.subarray(k,Q);try{var L=v.decode(l)}catch(R){if(ZU===void 0){try{v.decode(new Uint8Array([128]))}catch(Z){}try{v.decode(new Uint8Array([97])),ZU=!0}catch(Z){ZU=!1}}!ZU&&(Ry=void 0);throw R;}}else{L=k;Q=L+Q;k=[];for(var q=null,Y,U;L=Q?zo():(U=T[L++],Y<194||(U&192)!==128?(L--,zo()):k.push((Y&31)<<6|U&63)): Y<240?L>=Q-1?zo():(U=T[L++],(U&192)!==128||Y===224&&U<160||Y===237&&U>=160||((v=T[L++])&192)!==128?(L--,zo()):k.push((Y&15)<<12|(U&63)<<6|v&63)):Y<=244?L>=Q-2?zo():(U=T[L++],(U&192)!==128||(Y<<28)+(U-144)>>30!==0||((v=T[L++])&192)!==128||((l=T[L++])&192)!==128?(L--,zo()):(Y=(Y&7)<<18|(U&63)<<12|(v&63)<<6|l&63,Y-=65536,k.push((Y>>10&1023)+55296,(Y&1023)+56320))):zo(),k.length>=8192&&(q=IWH(q,k),k.length=0);L=IWH(q,k)}return L}; $n5=function(T){var Q=eQ(T.T)>>>0;return HlI(T.T,Q)}; GR=function(T,Q){this.S=T>>>0;this.T=Q>>>0}; eCf=function(T){if(!T)return JiT||(JiT=new GR(0,0));if(!/^\d+$/.test(T))return null;g_(T);return new GR(jk,ky)}; ms=function(T,Q){this.S=T>>>0;this.T=Q>>>0}; EPI=function(T){if(!T)return FIH||(FIH=new ms(0,0));if(!/^-?\d+$/.test(T))return null;g_(T);return new ms(jk,ky)}; Iy=function(){this.T=[]}; h7=function(T,Q,k){for(;k>0||Q>127;)T.T.push(Q&127|128),Q=(Q>>>7|k<<25)>>>0,k>>>=7;T.T.push(Q)}; s6=function(T,Q){for(;Q>127;)T.T.push(Q&127|128),Q>>>=7;T.T.push(Q)}; yi5=function(T,Q){if(Q>=0)s6(T,Q);else{for(var k=0;k<9;k++)T.T.push(Q&127|128),Q>>=7;T.T.push(1)}}; SY=function(T,Q){T.T.push(Q>>>0&255);T.T.push(Q>>>8&255);T.T.push(Q>>>16&255);T.T.push(Q>>>24&255)}; il5=function(){this.L=[];this.S=0;this.T=new Iy}; C3=function(T,Q){Q.length!==0&&(T.L.push(Q),T.S+=Q.length)}; VNT=function(T,Q){BW(T,Q,2);Q=T.T.end();C3(T,Q);Q.push(T.S);return Q}; TKt=function(T,Q){var k=Q.pop();for(k=T.S+T.T.length()-k;k>127;)Q.push(k&127|128),k>>>=7,T.S++;Q.push(k);T.S++}; BW=function(T,Q,k){s6(T.T,Q*8+k)}; QOy=function(T,Q,k){if(k!=null){switch(typeof k){case "string":eCf(k)}BW(T,Q,1);switch(typeof k){case "number":T=T.T;li(k);SY(T,jk);SY(T,ky);break;case "bigint":k=BigInt.asUintN(64,k);k=new GR(Number(k&BigInt(4294967295)),Number(k>>BigInt(32)));T=T.T;Q=k.T;SY(T,k.S);SY(T,Q);break;default:k=eCf(k),T=T.T,Q=k.T,SY(T,k.S),SY(T,Q)}}}; zR=function(T,Q,k){BW(T,Q,2);s6(T.T,k.length);C3(T,T.T.end());C3(T,k)}; Xb=function(){function T(){throw Error();} Object.setPrototypeOf(T,T.prototype);return T}; wg=function(T,Q,k){this.g5=JP(T,Q,k)}; jO5=function(T,Q){if(Q==null||Q=="")return new T;Q=JSON.parse(Q);if(!Array.isArray(Q))throw Error("dnarr");tm(Q,32);return new T(Q)}; NW=function(T,Q,k){this.O7=T;this.vr=Q;T=Z1(dg);this.T=!!T&&k===T||!1}; A7=function(T,Q){var k=k===void 0?dg:k;return new NW(T,Q,k)}; lMf=function(T,Q,k,l,v){Q=k8J(Q,l);Q!=null&&(k=VNT(T,k),v(Q,T),TKt(T,k))}; cW=function(T,Q,k,l){var v=l[T];if(v)return v;v={};v.DE=l;v.r$=sT5(l[0]);var L=l[1],q=1;L&&L.constructor===Object&&(v.extensions=L,L=l[++q],typeof L==="function"&&(v.eB=!0,bV!=null||(bV=L),rg!=null||(rg=l[q+1]),L=l[q+=2]));for(var Y={};L&&Array.isArray(L)&&L.length&&typeof L[0]==="number"&&L[0]>0;){for(var U=0;U>BigInt(32)));h7(T.T,k.S,k.T);break;default:k=EPI(Q),h7(T.T,k.S,k.T)}}}; QY=function(T,Q,k){Q=GS(Q);Q!=null&&Q!=null&&(BW(T,k,0),yi5(T.T,Q))}; mX5=function(T,Q,k){Q=Q==null||typeof Q==="boolean"?Q:typeof Q==="number"?!!Q:void 0;Q!=null&&(BW(T,k,0),T.T.T.push(Q?1:0))}; IMb=function(T,Q,k){Q=AP(Q);Q!=null&&zR(T,k,CBX(Q))}; h7b=function(T,Q,k,l,v){Q=k8J(Q,l);Q!=null&&(k=VNT(T,k),v(Q,T),TKt(T,k))}; S$g=function(){var T=jl;this.T=sOu;this.isRepeated=0;this.S=Cg;this.defaultValue=void 0;this.L=T.messageId!=null?F1:void 0}; C56=function(T,Q){return function(k,l){var v={s7:!0};l&&Object.assign(v,l);k=Olu(k,void 0,void 0,v);try{var L=new T,q=L.g5;xA(Q)(q,k);var Y=L}finally{k.free()}return Y}}; BKI=function(T){return function(){var Q=new il5;R7f(this.g5,Q,cW($A,WW,J7,T));C3(Q,Q.T.end());for(var k=new Uint8Array(Q.S),l=Q.L,v=l.length,L=0,q=0;q-1)return Q.apply(null,g.ZH(k));try{return T.T=T.L.T.now(),Q.apply(null,g.ZH(k))}finally{T.Y+=T.L.T.now()-T.T,T.T=-1,T.S+=1}}}; X26=function(T,Q){this.S=T;this.L=Q;this.T=new z7f(T)}; w2b=function(){this.T={}}; NKy=function(){var T=vf().flags,Q=dXu;T=T.T[Q.key];if(Q.valueType==="proto"){try{var k=JSON.parse(T);if(Array.isArray(k))return k}catch(l){}return Q.defaultValue}return typeof T===typeof Q.defaultValue?T:Q.defaultValue}; cZX=function(){this.L=void 0;this.S=this.B=0;this.N=-1;this.sH=new Bg;zs(this.sH,"mv",AZT).T=!0;zs(this.sH,"omid",NM);zs(this.sH,"epoh",NM).T=!0;zs(this.sH,"epph",NM).T=!0;zs(this.sH,"umt",NM).T=!0;zs(this.sH,"phel",NM).T=!0;zs(this.sH,"phell",NM).T=!0;zs(this.sH,"oseid",bOI).T=!0;var T=this.sH;T.T.sloi||(T.T.sloi=new SP);T.T.sloi.T=!0;zs(this.sH,"mm",LI);zs(this.sH,"ovms",rZg).T=!0;zs(this.sH,"xdi",NM).T=!0;zs(this.sH,"amp",NM).T=!0;zs(this.sH,"prf",NM).T=!0;zs(this.sH,"gtx",NM).T=!0;zs(this.sH, "mvp_lv",NM).T=!0;zs(this.sH,"ssmol",NM).T=!0;zs(this.sH,"fmd",NM).T=!0;zs(this.sH,"gen204simple",NM);this.T=new X26(Bu(),this.sH);this.Y=!1;this.flags=new w2b}; vf=function(){return SC(cZX)}; DXb=function(T,Q,k,l){if(Math.random()<(l||T.T))try{if(k instanceof Z9)var v=k;else v=new Z9,Uo(k,function(q,Y){var U=v,R=U.Y++;q=f8(Y,q);U.T.push(R);U.S[R]=q}); var L=v.IK(T.S,"pagead2.googlesyndication.com","/pagead/gen_204?id="+Q+"&");L&&(Bu(),ZJJ(L))}catch(q){}}; aMf=function(T,Q,k){k=k===void 0?{}:k;this.error=T;this.meta=k;this.context=Q.context;this.msg=Q.message||"";this.id=Q.id||"jserror"}; u3y=function(){var T=T===void 0?g.VC:T;return(T=T.performance)&&T.now&&T.timing?Math.floor(T.now()+T.timing.navigationStart):g.R_()}; n1T=function(){var T=T===void 0?g.VC:T;return(T=T.performance)&&T.now?T.now():null}; KmH=function(T,Q,k){this.label=T;this.type=Q;this.value=k;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; gy=function(){var T=window;this.events=[];this.S=T||g.VC;var Q=null;T&&(T.google_js_reporting_queue=T.google_js_reporting_queue||[],this.events=T.google_js_reporting_queue,Q=T.google_measure_js_timing);this.T=qT()||(Q!=null?Q:Math.random()<1)}; xXI=function(T){T&&MT&&qT()&&(MT.clearMarks("goog_"+T.label+"_"+T.uniqueId+"_start"),MT.clearMarks("goog_"+T.label+"_"+T.uniqueId+"_end"))}; Y4=function(T,Q,k,l,v,L,q){var Y="";T&&(Y+=T+":");k&&(Y+="//",Q&&(Y+=Q+"@"),Y+=k,l&&(Y+=":"+l));v&&(Y+=v);L&&(Y+="?"+L);q&&(Y+="#"+q);return Y}; g.UD=function(T){return T.match(P5y)}; HO6=function(T){return T?decodeURI(T):T}; g.Rq=function(T){return HO6(g.UD(T)[3]||null)}; Zz=function(T){return HO6(g.UD(T)[5]||null)}; g.tOT=function(T){T=g.UD(T);return Y4(T[1],T[2],T[3],T[4])}; fI=function(T){T=g.UD(T);return Y4(null,null,null,null,T[5],T[6],T[7])}; OO5=function(T){var Q=T.indexOf("#");return Q<0?T:T.slice(0,Q)}; Gg=function(T,Q){if(T){T=T.split("&");for(var k=0;k=0){var L=T[k].substring(0,l);v=T[k].substring(l+1)}else L=T[k];Q(L,v?bX(v):"")}}}; mC=function(T,Q){if(!Q)return T;var k=T.indexOf("#");k<0&&(k=T.length);var l=T.indexOf("?");if(l<0||l>k){l=k;var v=""}else v=T.substring(l+1,k);T=[T.slice(0,l),v,T.slice(k)];k=T[1];T[1]=Q?k?k+"&"+Q:Q:k;return T[0]+(T[1]?"?"+T[1]:"")+T[2]}; Iq=function(T,Q,k){if(Array.isArray(Q))for(var l=0;l=0&&Qk)v=k;l+=Q.length+1;return bX(T.slice(l,v!==-1?v:0))}; wy=function(T,Q){for(var k=T.search(zg),l=0,v,L=[];(v=Bf(T,l,Q,k))>=0;)L.push(T.substring(l,v)),l=Math.min(T.indexOf("&",v)+1||k,k);L.push(T.slice(l));return L.join("").replace($XH,"$1")}; JZ6=function(T,Q,k){return CI(wy(T,Q),Q,k)}; e75=function(){var T=dy;this.T=NT;this.Gf="jserror";this.qf=!0;this.OJ=null;this.S=this.RX;this.D8=T===void 0?null:T}; FmX=function(T,Q,k){var l=A3;return oq(vf().T.T,function(){try{if(l.D8&&l.D8.T){var v=l.D8.start(T.toString(),3);var L=Q();l.D8.end(v)}else L=Q()}catch(Y){var q=l.qf;try{xXI(v),q=l.S(T,new bL(ry(Y)),void 0,k)}catch(U){l.RX(217,U)}if(!q)throw Y;}return L})()}; cf=function(T,Q,k,l){return oq(vf().T.T,function(){var v=g.HT.apply(0,arguments);return FmX(T,function(){return Q.apply(k,v)},l)})}; ry=function(T){var Q=T.toString();T.name&&Q.indexOf(T.name)==-1&&(Q+=": "+T.name);T.message&&Q.indexOf(T.message)==-1&&(Q+=": "+T.message);if(T.stack)a:{T=T.stack;var k=Q;try{T.indexOf(k)==-1&&(T=k+"\n"+T);for(var l;T!=l;)l=T,T=T.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");Q=T.replace(/\n */g,"\n");break a}catch(v){Q=k;break a}Q=void 0}return Q}; bL=function(T){aMf.call(this,Error(T),{message:T})}; E1C=function(){rK&&typeof rK.google_measure_js_timing!="undefined"&&(rK.google_measure_js_timing||dy.disable())}; yZg=function(T){A3.OJ=function(Q){g.EA(T,function(k){k(Q)})}}; iOH=function(T,Q){return FmX(T,Q)}; Dz=function(T,Q){return cf(T,Q)}; aq=function(T,Q,k,l){A3.RX(T,Q,k,l)}; uL=function(){return Date.now()-VO6}; TJ5=function(){var T=vf().L,Q=nI>=0?uL()-nI:-1,k=KI?uL()-x4:-1,l=Pf>=0?uL()-Pf:-1;if(T==947190542)return 100;if(T==79463069)return 200;T=[2E3,4E3];var v=[250,500,1E3];aq(637,Error(),.001);var L=Q;k!=-1&&k1500&&l<4E3?500:q}; Hf=function(T,Q,k){var l=new KO(0,0,0,0);this.time=T;this.volume=null;this.L=Q;this.T=l;this.S=k}; t3=function(T,Q,k,l,v,L,q,Y){this.Y=T;this.C=Q;this.L=k;this.B=l;this.T=v;this.N=L;this.S=q;this.j=Y}; jQ5=function(T){var Q=T!==T.top,k=T.top===lW5(T),l=-1,v=0;if(Q&&k&&T.top.mraid){l=3;var L=T.top.mraid}else l=(L=T.mraid)?Q?k?2:1:0:-1;L&&(L.IS_GMA_SDK||(v=2),c5T(QQ5,function(q){return typeof L[q]==="function"})||(v=1)); return{So:L,compatibility:v,zo6:l}}; ko6=function(){var T=window.document;return T&&typeof T.elementFromPoint==="function"}; l9J=function(T,Q,k){if(T&&Q!==null&&Q!=Q.top){if(!Q.top)return new g.Ji(-12245933,-12245933);Q=Q.top}try{return(k===void 0?0:k)?(new g.Ji(Q.innerWidth,Q.innerHeight)).round():Dp5(Q||window).round()}catch(l){return new g.Ji(-12245933,-12245933)}}; OD=function(T,Q,k){try{if(T){if(!Q.top)return new KO(-12245933,-12245933,-12245933,-12245933);Q=Q.top}var l=l9J(T,Q,k),v=l.height,L=l.width;if(L===-12245933)return new KO(L,L,L,L);var q=jO(Q.document);var Y=udT(q.T);var U=Y.x,R=Y.y;return new KO(R,U+L,R+v,U)}catch(Z){return new KO(-12245933,-12245933,-12245933,-12245933)}}; pI=function(T,Q){Q=Math.pow(10,Q);return Math.floor(T*Q)/Q}; ojt=function(T){return new KO(T.top,T.right,T.bottom,T.left)}; vjt=function(T){var Q=T.top||0,k=T.left||0;return new KO(Q,k+(T.width||0),Q+(T.height||0),k)}; Wf=function(T){return T!=null&&T>=0&&T<=1}; L3y=function(){var T=g.KJ();return T?$4("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(Q){return DW(T,Q)})||DW(T,"OMI/")&&!DW(T,"XiaoMi/")?!0:DW(T,"Presto")&&DW(T,"Linux")&&!DW(T,"X11")&&!DW(T,"Android")&&!DW(T,"Mobi"):!1}; qob=function(){this.L=!Yj(rK.top);this.isMobileDevice=M_()||yTb();var T=RQ();this.domain=T.length>0&&T[T.length-1]!=null&&T[T.length-1].url!=null?g.Rq(T[T.length-1].url)||"":"";this.T=new KO(0,0,0,0);this.Y=new g.Ji(0,0);this.N=new g.Ji(0,0);this.C=new KO(0,0,0,0);this.frameOffset=new g.WX(0,0);this.B=0;this.j=!1;this.S=!(!rK||!jQ5(rK).So);this.update(rK)}; gjH=function(T,Q){Q&&Q.screen&&(T.Y=new g.Ji(Q.screen.width,Q.screen.height))}; MC5=function(T,Q){a:{var k=T.T?new g.Ji(x1(T.T),T.T.getHeight()):new g.Ji(0,0);Q=Q===void 0?rK:Q;Q!==null&&Q!=Q.top&&(Q=Q.top);var l=0,v=0;try{var L=Q.document,q=L.body,Y=L.documentElement;if(L.compatMode=="CSS1Compat"&&Y.scrollHeight)l=Y.scrollHeight!=k.height?Y.scrollHeight:Y.offsetHeight,v=Y.scrollWidth!=k.width?Y.scrollWidth:Y.offsetWidth;else{var U=Y.scrollHeight,R=Y.scrollWidth,Z=Y.offsetHeight,f=Y.offsetWidth;Y.clientHeight!=Z&&(U=q.scrollHeight,R=q.scrollWidth,Z=q.offsetHeight,f=q.offsetWidth); U>k.height?U>Z?(l=U,v=R):(l=Z,v=f):U0||T.j)return!0;T=Bu().S.isVisible();var Q=vu(el)===0;return T||Q}; J3=function(){return SC(qob)}; ED=function(T){this.L=T;this.S=0;this.T=null}; yY=function(T,Q,k){this.L=T;this.sK=k===void 0?"na":k;this.N=[];this.isInitialized=!1;this.Y=new Hf(-1,!0,this);this.T=this;this.j=Q;this.z9=this.D=!1;this.i9="uk";this.xm=!1;this.B=!0}; iL=function(T,Q){g.CW(T.N,Q)||(T.N.push(Q),Q.gm(T.T),Q.py(T.Y),Q.PA()&&(T.D=!0))}; YoI=function(T){T=T.T;T.S4();T.Tn();var Q=J3();Q.C=OD(!1,T.L,Q.isMobileDevice);MC5(J3(),T.L);T.Y.T=T.ez()}; U_y=function(T){T.D=T.N.length?$4(T.N,function(Q){return Q.PA()}):!1}; R$I=function(T){var Q=g.r$(T.N);g.EA(Q,function(k){k.py(T.Y)})}; VY=function(T){var Q=g.r$(T.N);g.EA(Q,function(k){k.gm(T.T)}); T.T!=T||R$I(T)}; TJ=function(T,Q,k,l){this.element=T;this.T=new KO(0,0,0,0);this.L=null;this.B=new KO(0,0,0,0);this.S=Q;this.sH=k;this.xm=l;this.hj=!1;this.timestamp=-1;this.D=new t3(Q.Y,this.element,this.T,new KO(0,0,0,0),0,0,uL(),0);this.N=void 0}; Z8H=function(T,Q){return T.N?new KO(Math.max(Q.top+T.N.top,Q.top),Math.min(Q.left+T.N.right,Q.right),Math.min(Q.top+T.N.bottom,Q.bottom),Math.max(Q.left+T.N.left,Q.left)):Q.clone()}; QB=function(T){this.N=!1;this.T=T;this.Y=function(){}}; f95=function(T,Q,k){this.L=k===void 0?0:k;this.S=T;this.T=Q==null?"":Q}; Gou=function(T){switch(Math.trunc(T.L)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; m_5=function(T,Q){return T.LQ.L?!1:T.SQ.S?!1:typeof T.Ttypeof Q.T?!1:T.T0?l[k]-l[k-1]:l[k]})}; Z7=function(){this.S=new qV;this.sK=this.Bd=0;this.p_=new LC;this.qO=this.C=-1;this.f_=1E3;this.zg=new qV([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.i9=this.hj=-1}; fC=function(T,Q){return XGf(T.S,Q===void 0?!0:Q)}; GJ=function(T,Q,k,l){var v=v===void 0?!1:v;k=cf(l,k);oQ(T,Q,k,{capture:v})}; CC=function(T,Q){Q=Sy(Q);return Q===0?0:Sy(T)/Q}; Sy=function(T){return Math.max(T.bottom-T.top,0)*Math.max(T.right-T.left,0)}; N_g=function(T,Q){if(!T||!Q)return!1;for(var k=0;T!==null&&k++<100;){if(T===Q)return!0;try{if(T=T.parentElement||T){var l=Qf(T),v=l&&U$(l),L=v&&v.frameElement;L&&(T=L)}}catch(q){break}}return!1}; APb=function(T,Q,k){if(!T||!Q)return!1;Q=H2(T.clone(),-Q.left,-Q.top);T=(Q.left+Q.right)/2;Q=(Q.top+Q.bottom)/2;Yj(window.top)&&window.top&&window.top.document&&(window=window.top);if(!ko6())return!1;T=window.document.elementFromPoint(T,Q);if(!T)return!1;Q=(Q=(Q=Qf(k))&&Q.defaultView&&Q.defaultView.frameElement)&&N_g(Q,T);var l=T===k;T=!l&&T&&B2(T,function(v){return v===k}); return!(Q||l||T)}; b25=function(T,Q,k,l){return J3().L?!1:x1(T)<=0||T.getHeight()<=0?!0:k&&l?iOH(208,function(){return APb(T,Q,k)}):!1}; BU=function(T,Q,k){g.x.call(this);this.position=rPg.clone();this.oO=this.MI();this.d3=-2;this.timeCreated=Date.now();this.Xz=-1;this.U_=Q;this.OA=null;this.DY=!1;this.JC=null;this.opacity=-1;this.requestSource=k;this.Jb9=!1;this.B6=function(){}; this.Wb=function(){}; this.C$=new PWH;this.C$.kd=T;this.C$.T=T;this.DH=!1;this.U6={Zt:null,J0:null};this.jx=!0;this.mE=null;this.YX=this.UC=!1;vf().B++;this.I2=this.Dj();this.kG=-1;this.nY=null;this.hasCompleted=this.mB=!1;this.sH=new Bg;H5y(this.sH);cP5(this);this.requestSource==1?Xl(this.sH,"od",1):Xl(this.sH,"od",0)}; cP5=function(T){T=T.C$.kd;var Q;if(Q=T&&T.getAttribute)Q=/-[a-z]/.test("googleAvInapp")?!1:DrT&&T.dataset?"googleAvInapp"in T.dataset:T.hasAttribute?T.hasAttribute("data-"+ZWX()):!!T.getAttribute("data-"+ZWX());Q&&(J3().S=!0)}; zJ=function(T,Q){Q!=T.YX&&(T.YX=Q,T=J3(),Q?T.B++:T.B>0&&T.B--)}; aOH=function(T,Q){if(T.nY){if(Q.getName()===T.nY.getName())return;T.nY.dispose();T.nY=null}Q=Q.create(T.C$.T,T.sH,T.PA());if(Q=Q!=null&&Q.observe()?Q:null)T.nY=Q}; uW6=function(T,Q,k){if(!T.OA||T.U_==-1||Q.S===-1||T.OA.S===-1)return 0;T=Q.S-T.OA.S;return T>k?0:T}; nyt=function(T,Q,k){if(T.nY){T.nY.h5();var l=T.nY.D,v=l.Y,L=v.T;if(l.B!=null){var q=l.L;T.JC=new g.WX(q.left-L.left,q.top-L.top)}L=T.Yq()?Math.max(l.T,l.N):l.T;q={};v.volume!==null&&(q.volume=v.volume);v=T.Yl(l);T.OA=l;T.Aj(L,Q,k,!1,q,v,l.j)}}; KYy=function(T){if(T.DY&&T.mE){var Q=wz(T.sH,"od")==1,k=J3().T,l=T.mE,v=T.nY?T.nY.getName():"ns",L=T.JC,q=new g.Ji(x1(k),k.getHeight());k=T.Yq();T={kb_:v,JC:L,Sh6:q,Yq:k,Pn:T.I2.Pn,yxB:Q};if(Q=l.S){Q.h5();v=Q.D;L=v.Y.T;var Y=q=null;v.B!=null&&L&&(q=v.L,q=new g.WX(q.left-L.left,q.top-L.top),Y=new g.Ji(L.right-L.left,L.bottom-L.top));v=k?Math.max(v.T,v.N):v.T;k={kb_:Q.getName(),JC:q,Sh6:Y,Yq:k,yxB:!1,Pn:v}}else k=null;k&&z$X(l,T,k)}}; xr5=function(T,Q,k){Q&&(T.B6=Q);k&&(T.Wb=k)}; g.Xy=function(){}; g.wR=function(T){return{value:T,done:!1}}; PiH=function(){this.Y=this.T=this.L=this.S=this.N=0}; H26=function(T){var Q={};var k=g.R_()-T.N;Q=(Q.ptlt=k,Q);(k=T.S)&&(Q.pnk=k);(k=T.L)&&(Q.pnc=k);(k=T.Y)&&(Q.pnmm=k);(T=T.T)&&(Q.pns=T);return Q}; tkH=function(){iW.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; dR=function(T){return Wf(T.volume)&&T.volume>0}; NV=function(T,Q,k,l){k=k===void 0?!0:k;l=l===void 0?function(){return!0}:l; return function(v){var L=v[T];if(Array.isArray(L)&&l(v))return O25(L,Q,k)}}; Ao=function(T,Q){return function(k){return Q(k)?k[T]:void 0}}; pGH=function(T){return function(Q){for(var k=0;k0?L[v-1]+1:0,l+1).reduce(function(q,Y){return q+Y},0)})}; WYg=function(){this.S=this.T=""}; $ru=function(){}; rR=function(T,Q){var k={};if(T!==void 0)if(Q!=null)for(var l in Q){var v=Q[l];l in Object.prototype||v!=null&&(k[l]=typeof v==="function"?v(T):T[v])}else g.Is(k,T);return ll(k6(new jy,k))}; JPu=function(){var T={};this.S=(T.vs=[1,0],T.vw=[0,1],T.am=[2,2],T.a=[4,4],T.f=[8,8],T.bm=[16,16],T.b=[32,32],T.avw=[0,64],T.avs=[64,0],T.pv=[256,256],T.gdr=[0,512],T.p=[0,1024],T.r=[0,2048],T.m=[0,4096],T.um=[0,8192],T.ef=[0,16384],T.s=[0,32768],T.pmx=[0,16777216],T.mut=[33554432,33554432],T.umutb=[67108864,67108864],T.tvoff=[134217728,134217728],T);this.T={};for(var Q in this.S)this.S[Q][1]>0&&(this.T[Q]=0);this.L=0}; cU=function(T,Q){var k=T.S[Q],l=k[1];T.L+=k[0];l>0&&T.T[Q]==0&&(T.T[Q]=1)}; eO6=function(T){var Q=g.gz(T.S),k=0,l;for(l in T.T)g.CW(Q,l)&&T.T[l]==1&&(k+=T.S[l][1],T.T[l]=2);return k}; FYI=function(T){var Q=0,k;for(k in T.T){var l=T.T[k];if(l==1||l==2)Q+=T.S[k][1]}return Q}; D7=function(){this.T=this.S=0}; ul=function(){Z7.call(this);this.L=new LC;this.Jj=this.D=this.xm=0;this.j=-1;this.Tg=new LC;this.N=new LC;this.T=new qV;this.B=this.Y=-1;this.z9=new LC;this.f_=2E3;this.e6=new D7;this.K_=new D7;this.u9=new D7}; nC=function(T,Q,k){var l=T.Jj;KI||k||T.j==-1||(l+=Q-T.j);return l}; Eyb=function(){this.L=!1}; KC=function(T,Q){this.L=!1;this.Y=T;this.D=Q;this.N=0}; x6=function(T,Q){KC.call(this,T,Q);this.C=[]}; yPC=function(){}; PU=function(){}; HU=function(T,Q,k,l){TJ.call(this,T,Q,k,l)}; to=function(T,Q,k){TJ.call(this,null,T,Q,k);this.j=T.isActive();this.C=0}; OB=function(T){return[T.top,T.left,T.bottom,T.right]}; pC=function(T,Q,k,l,v,L){L=L===void 0?new PU:L;BU.call(this,Q,k,l);this.II=v;this.DI=0;this.t9={};this.Sj=new JPu;this.cD={};this.V1="";this.u9=null;this.h3=!1;this.T=[];this.yQ=L.S();this.B=L.L();this.Y=null;this.L=-1;this.sK=this.D=void 0;this.qO=this.z9=0;this.i9=-1;this.f_=this.K_=!1;this.xm=this.j=this.S=this.ze=this.QR=0;new qV;this.e6=this.Jj=0;this.p_=-1;this.vg=0;this.C=g.DM;this.hj=[this.MI()];this.Gg=2;this.ZA={};this.ZA.pause="p";this.ZA.resume="r";this.ZA.skip="s";this.ZA.mute="m";this.ZA.unmute= "um";this.ZA.exitfullscreen="ef";this.N=null;this.zg=this.Tg=!1;this.d5=Math.floor(Date.now()/1E3-1704067200);this.Bd=0}; WU=function(T){T.hasCompleted=!0;T.vg!=0&&(T.vg=3)}; $6=function(T){return T===void 0?T:Number(T)?pI(T,3):0}; Jo=function(T,Q){return T.hj[Q!=null&&QMath.max(1E4,T.L/3)?0:Q);var k=T.C(T)||{};k=k.currentTime!==void 0?k.currentTime:T.z9;var l=k-T.z9,v=0;l>=0?(T.qO+=Q,T.e6+=Math.max(Q-l,0),v=Math.min(l,T.qO)):T.Jj+=Math.abs(l);l!=0&&(T.qO=0);T.p_==-1&&l>0&&(T.p_=Pf>=0?uL()-Pf:-1);T.z9=k;return v}; TLt=function(T,Q){$4(T.B,function(k){return k.Y==Q.Y})||T.B.push(Q)}; Q25=function(T){var Q=Y6(T.OF().T,1);return ey(T,Q)}; ey=function(T,Q,k){return Q>=15E3?!0:T.K_?(k===void 0?0:k)?!0:T.L>0?Q>=T.L/2:T.i9>0?Q>=T.i9:!1:!1}; j2T=function(T){var Q=pI(T.I2.Pn,2),k=T.Sj.L,l=T.I2,v=Jo(T),L=$6(v.Y),q=$6(v.B),Y=$6(l.volume),U=pI(v.C,2),R=pI(v.qO,2),Z=pI(l.Pn,2),f=pI(v.hj,2),G=pI(v.i9,2);l=pI(l.E1,2);var m=T.rS().clone().round();T=T.nY&&T.nY.L?(T.nY?T.nY.L:null).clone().round():null;v=fC(v,!1);return{TOK:Q,fP:k,LJ:L,gP:q,R$:Y,kx:U,TA:R,Pn:Z,Yx:f,St:G,E1:l,position:m,I$:T,dP:v}}; lfb=function(T,Q){kdf(T.T,Q,function(){return{TOK:0,fP:void 0,LJ:-1,gP:-1,R$:-1,kx:-1,TA:-1,Pn:-1,Yx:-1,St:-1,E1:-1,position:void 0,I$:void 0,dP:[]}}); T.T[Q]=j2T(T)}; kdf=function(T,Q,k){for(var l=T.length;l0?1:0;f.atos= gR(R.T);f.ssb=gR(R.zg,!1);f.amtos=XGf(R.T,!1);f.uac=T.QR;f.vpt=R.L.T;Z=="nio"&&(f.nio=1,f.avms="nio");f.gmm="4";f.gdr=ey(T,R.L.T,!0)?1:0;f.efpf=T.Gg;if(Z=="gsv"||Z=="nis")Z=T.nY,Z.C>0&&(f.nnut=Z.C);f.tcm=i2g(T);f.nmt=T.Jj;f.bt=T.e6;f.pst=T.p_;f.vpaid=T.D;f.dur=T.L;f.vmtime=T.z9;f.is=T.Sj.L;T.T.length>=1&&(f.i0=T.T[0].fP,f.a0=[T.T[0].R$],f.c0=[T.T[0].Pn],f.ss0=[T.T[0].E1],Z=T.T[0].position,L=T.T[0].I$,f.p0=Z?OB(Z):void 0,Z&&L&&!P2(L,Z)&&(f.cp0=OB(L)));T.T.length>=2&&(f.i1=T.T[1].fP,f.a1=yB(T.T[1].LJ, T.T[1].R$,T.T[1].gP),f.c1=yB(T.T[1].kx,T.T[1].Pn,T.T[1].TA),f.ss1=yB(T.T[1].Yx,T.T[1].E1,T.T[1].St),Z=T.T[1].position,L=T.T[1].I$,f.p1=Z?OB(Z):void 0,Z&&L&&!P2(L,Z)&&(f.cp1=OB(L)),f.mtos1=T.T[1].dP);T.T.length>=3&&(f.i2=T.T[2].fP,f.a2=yB(T.T[2].LJ,T.T[2].R$,T.T[2].gP),f.c2=yB(T.T[2].kx,T.T[2].Pn,T.T[2].TA),f.ss2=yB(T.T[2].Yx,T.T[2].E1,T.T[2].St),Z=T.T[2].position,L=T.T[2].I$,f.p2=Z?OB(Z):void 0,Z&&L&&!P2(L,Z)&&(f.cp2=OB(L)),f.mtos2=T.T[2].dP);T.T.length>=4&&(f.i3=T.T[3].fP,f.a3=yB(T.T[3].LJ,T.T[3].R$, T.T[3].gP),f.c3=yB(T.T[3].kx,T.T[3].Pn,T.T[3].TA),f.ss3=yB(T.T[3].Yx,T.T[3].E1,T.T[3].St),Z=T.T[3].position,L=T.T[3].I$,f.p3=Z?OB(Z):void 0,Z&&L&&!P2(L,Z)&&(f.cp3=OB(L)),f.mtos3=T.T[3].dP);f.cs=FYI(T.Sj);Q&&(f.ic=eO6(T.Sj),f.dvpt=R.L.S,f.dvs=Rd(R.S,.5),f.dfvs=Rd(R.S,1),f.davs=Rd(R.T,.5),f.dafvs=Rd(R.T,1),k&&(R.L.S=0,wGH(R.S),wGH(R.T)),T.D_()&&(f.dtos=R.xm,f.dav=R.D,f.dtoss=T.DI+1,k&&(R.xm=0,R.D=0,T.DI++)),f.dat=R.N.S,f.dft=R.z9.S,k&&(R.N.S=0,R.z9.S=0));f.ps=[Y.N.width,Y.N.height];f.bs=[x1(Y.T),Y.T.getHeight()]; f.scs=[Y.Y.width,Y.Y.height];f.dom=Y.domain;T.ze&&(f.vds=T.ze);if(T.B.length>0||T.yQ)Q=g.r$(T.B),T.yQ&&Q.push(T.yQ),f.pings=g.IQ(Q,function(G){return G.toString()}); Q=g.IQ(g.bl(T.B,function(G){return G.B()}),function(G){return G.getId()}); XTb(Q);f.ces=Q;T.S&&(f.vmer=T.S);T.j&&(f.vmmk=T.j);T.xm&&(f.vmiec=T.xm);f.avms=T.nY?T.nY.getName():"ns";T.nY&&g.Is(f,T.nY.lW());l?(f.c=pI(T.I2.Pn,2),f.ss=pI(T.I2.E1,2)):f.tth=uL()-q5H;f.mc=pI(R.qO,2);f.nc=pI(R.C,2);f.mv=$6(R.B);f.nv=$6(R.Y);f.lte=pI(T.d3,2);l=Jo(T,v);fC(R);f.qmtos=fC(l);f.qnc=pI(l.C,2);f.qmv=$6(l.B);f.qnv=$6(l.Y);f.qas=l.Y>0?1:0;f.qi=T.V1;f.avms||(f.avms="geo");f.psm=R.e6.T;f.psv=R.e6.getValue();f.psfv=R.K_.getValue();f.psa=R.u9.getValue();U=xJ5(U.sH);U.length&&(f.veid=U);T.N&&g.Is(f, H26(T.N));f.avas=T.bV();f.vs=T.lr();f.co=gMy(T);f.tm=R.Bd;f.tu=R.sK;return f}; oMg=function(T,Q){if(g.CW(MQt,Q))return!0;var k=T.t9[Q];return k!==void 0?(T.t9[Q]=!0,!k):!1}; gMy=function(T){var Q=T.Bd.toString(10).padStart(2,"0");Q=""+T.d5+Q;T.Bd<99&&T.Bd++;return Q}; UsX=function(){this.T={};var T=U$();il(this,T,document);var Q=Y5T();try{if("1"==Q){for(var k=T.parent;k!=T.top;k=k.parent)il(this,k,k.document);il(this,T.top,T.top.document)}}catch(l){}}; Y5T=function(){var T=document.documentElement;try{if(!Yj(U$().top))return"2";var Q=[],k=U$(T.ownerDocument);for(T=k;T!=k.top;T=T.parent)if(T.frameElement)Q.push(T.frameElement);else break;return Q&&Q.length!=0?"1":"0"}catch(l){return"2"}}; il=function(T,Q,k){GJ(k,"mousedown",function(){return RvT(T)},301); GJ(Q,"scroll",function(){return Zgu(T)},302); GJ(k,"touchmove",function(){return fff(T)},303); GJ(k,"mousemove",function(){return GdT(T)},304); GJ(k,"keydown",function(){return msT(T)},305)}; RvT=function(T){g.VJ(T.T,function(Q){Q.L>1E5||++Q.L})}; Zgu=function(T){g.VJ(T.T,function(Q){Q.T>1E5||++Q.T})}; fff=function(T){g.VJ(T.T,function(Q){Q.T>1E5||++Q.T})}; msT=function(T){g.VJ(T.T,function(Q){Q.S>1E5||++Q.S})}; GdT=function(T){g.VJ(T.T,function(Q){Q.Y>1E5||++Q.Y})}; Iff=function(){this.T=[];this.S=[]}; VB=function(T,Q){return g.sA(T.T,function(k){return k.V1==Q})}; hv6=function(T,Q){return Q?g.sA(T.T,function(k){return k.C$.kd==Q}):null}; s2t=function(T,Q){return g.sA(T.S,function(k){return k.S9()==2&&k.V1==Q})}; QR=function(){var T=T9;return T.T.length==0?T.S:T.S.length==0?T.T:g.bW(T.S,T.T)}; S5b=function(T,Q){T=Q.S9()==1?T.T:T.S;var k=hT(T,function(l){return l==Q}); return k!=-1?(T.splice(k,1),Q.nY&&Q.nY.unobserve(),Q.dispose(),!0):!1}; Cqg=function(T){var Q=T9;if(S5b(Q,T)){switch(T.S9()){case 0:var k=function(){return null}; case 2:k=function(){return s2t(Q,T.V1)}; break;case 1:k=function(){return VB(Q,T.V1)}}for(var l=k();l;l=k())S5b(Q,l)}}; BLT=function(T){var Q=T9;T=g.bl(T,function(k){return!hv6(Q,k.C$.kd)}); Q.T.push.apply(Q.T,g.ZH(T))}; zvb=function(T){var Q=[];g.EA(T,function(k){$4(T9.T,function(l){return l.C$.kd===k.C$.kd&&l.V1===k.V1})||(T9.T.push(k),Q.push(k))})}; ju=function(){this.T=this.S=null}; XSg=function(T,Q){function k(l,v){Q(l,v)} if(T.S==null)return!1;T.T=g.sA(T.S,function(l){return l!=null&&l.cF()}); T.T&&(T.T.init(k)?YoI(T.T.T):Q(T.T.T.tS(),T.T));return T.T!=null}; kB=function(T){T=wSf(T);QB.call(this,T.length?T[T.length-1]:new yY(rK,0));this.L=T;this.S=null}; wSf=function(T){if(!T.length)return[];T=(0,g.bl)(T,function(k){return k!=null&&k.jI()}); for(var Q=1;Qk.time?Q:k},T[0])}; LH=function(T){T=T===void 0?rK:T;QB.call(this,new yY(T,2))}; qi=function(){var T=bgJ();yY.call(this,rK.top,T,"geo")}; bgJ=function(){vf();var T=J3();return T.L||T.S?0:2}; rK6=function(){}; gw=function(){this.done=!1;this.T={AZ:0,YD:0,P$k:0,JD:0,jb:-1,UX:0,Xl:0,Rl:0,ho9:0};this.N=null;this.B=!1;this.L=null;this.C=0;this.S=new ED(this)}; YB=function(){var T=Mi;T.B||(T.B=!0,cKu(T,function(){return T.Y.apply(T,g.ZH(g.HT.apply(0,arguments)))}),T.Y())}; DsC=function(){SC(rK6);var T=SC(ju);T.T!=null&&T.T.T?YoI(T.T.T):J3().update(rK)}; UX=function(T,Q,k){if(!T.done&&(T.S.cancel(),Q.length!=0)){T.L=null;try{DsC();var l=uL();vf().N=l;if(SC(ju).T!=null)for(var v=0;v=0?uL()-nI:-1,Y=uL();v.T.jb==-1&&(q=Y);var U=J3(),R=vf(),Z=dz(R.sH),f=QR();try{if(f.length>0){var G=U.T;G&&(Z.bs=[x1(G),G.getHeight()]);var m=U.N;m&&(Z.ps=[m.width,m.height]);rK.screen&&(Z.scs=[rK.screen.width,rK.screen.height])}else Z.url=encodeURIComponent(rK.location.href.substring(0,512)),L.referrer&&(Z.referrer=encodeURIComponent(L.referrer.substring(0,512))); Z.tt=q;Z.pt=nI;Z.bin=R.S;rK.google_osd_load_pub_page_exp!==void 0&&(Z.olpp=rK.google_osd_load_pub_page_exp);Z.deb=[1,v.T.AZ,v.T.YD,v.T.JD,v.T.jb,0,v.S.S,v.T.UX,v.T.Xl,v.T.Rl,v.T.ho9,-1].join(";");Z.tvt=uV6(v,Y);U.S&&(Z.inapp=1);if(rK!==null&&rK!=rK.top){f.length>0&&(Z.iframe_loc=encodeURIComponent(rK.location.href.substring(0,512)));var I=U.C;Z.is=[x1(I),I.getHeight()]}}catch(z){Z.error=1}Mi.L=Z}G=g.Gs(Mi.L);m=vf().T;wz(m.L,"prf")==1?(I=new lL,v=m.T,L=0,v.T>-1&&(L=v.L.T.now()-v.T),I=U5(I,1,Yy(v.Y+ L),0),v=m.T,I=U5(I,5,f2(v.T>-1?v.S+1:v.S),0),I=U5(I,2,XW(m.S.T.L()),"0"),I=U5(I,3,XW(m.S.T.S()),"0"),m=U5(I,4,XW(m.S.T.T()),"0"),I={},m=(I.pf=g.dJ(m.L()),I)):m={};g.Is(G,m);g.Is(Q,l,k,G,T())}])}; xsg=function(){var T=Kn5||rK;if(!T)return"";var Q=[];if(!T.location||!T.location.href)return"";Q.push("url="+encodeURIComponent(T.location.href.substring(0,512)));T.document&&T.document.referrer&&Q.push("referrer="+encodeURIComponent(T.document.referrer.substring(0,512)));return Q.join("&")}; Rj=function(){var T="youtube.player.web_20250727_21_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250727_21_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250727_21_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250727_21_RC00".match(/_(\d{8})_\d+_RC\d+$/),Q;if(((Q=T)==null?void 0:Q.length)==2)return T[1];T="youtube.player.web_20250727_21_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var k;return((k=T)==null?void 0:k.length)==3?"20"+T[1]+T[2]:null}; Pqg=function(){return"av.default_js".includes("ima_html5_sdk")?{nt:"ima",tp:null}:"av.default_js".includes("ima_native_sdk")?{nt:"nima",tp:null}:"av.default_js".includes("admob-native-video-javascript")?{nt:"an",tp:null}:"youtube.player.web_20250727_21_RC00".includes("cast_js_sdk")?{nt:"cast",tp:Rj()}:"youtube.player.web_20250727_21_RC00".includes("youtube.player.web")?{nt:"yw",tp:Rj()}:"youtube.player.web_20250727_21_RC00".includes("outstream_web_client")?{nt:"out",tp:Rj()}:"youtube.player.web_20250727_21_RC00".includes("drx_rewarded_web")? {nt:"r",tp:Rj()}:"youtube.player.web_20250727_21_RC00".includes("gam_native_web_video")?{nt:"n",tp:Rj()}:"youtube.player.web_20250727_21_RC00".includes("admob_interstitial_video")?{nt:"int",tp:Rj()}:{nt:"j",tp:null}}; G9=function(T,Q){var k={sv:"967"};Zt!==null&&(k.v=Zt);k.cb=HgT;k.nas=T9.T.length;k.msg=T;Q!==void 0&&(T=tQ5(Q))&&(k.e=fH[T]);return k}; me=function(T){return AV(T,"custom_metric_viewable")}; tQ5=function(T){var Q=me(T)?"custom_metric_viewable":T.toLowerCase();return Ui(Fy,function(k){return k==Q})}; Ogb=function(){this.T=void 0;this.S=!1;this.L=0;this.Y=-1;this.N="tos"}; $sI=function(T){try{var Q=T.split(",");return Q.length>g.gz(pSX).length?null:so(Q,function(k,l){l=l.toLowerCase().split("=");if(l.length!=2||Wnt[l[0]]===void 0||!Wnt[l[0]](l[1]))throw Error("Entry ("+l[0]+", "+l[1]+") is invalid.");k[l[0]]=l[1];return k},{})}catch(k){return null}}; JKC=function(T,Q){if(T.T==void 0)return 0;switch(T.N){case "mtos":return T.S?UB(Q.T,T.T):UB(Q.S,T.T);case "tos":return T.S?Y6(Q.T,T.T):Y6(Q.S,T.T)}return 0}; Ij=function(T,Q,k,l){KC.call(this,Q,l);this.C=T;this.j=k}; hs=function(){}; sX=function(T){KC.call(this,"fully_viewable_audible_half_duration_impression",T)}; Su=function(T){this.T=T}; CH=function(T,Q){KC.call(this,T,Q)}; BH=function(T){x6.call(this,"measurable_impression",T)}; z9=function(){Su.apply(this,arguments)}; Xn=function(T,Q,k){to.call(this,T,Q,k)}; ww=function(T){T=T===void 0?rK:T;QB.call(this,new yY(T,2))}; dw=function(T,Q,k){to.call(this,T,Q,k)}; Ni=function(T){T=T===void 0?rK:T;QB.call(this,new yY(T,2))}; As=function(){yY.call(this,rK,2,"mraid");this.e6=0;this.qO=this.hj=!1;this.C=null;this.S=jQ5(this.L);this.Y.T=new KO(0,0,0,0);this.Bd=!1}; bp=function(T,Q,k){T.vJ("addEventListener",Q,k)}; yKI=function(T){vf().Y=!!T.vJ("isViewable");bp(T,"viewableChange",ev5);T.vJ("getState")==="loading"?bp(T,"ready",FnT):EMu(T)}; EMu=function(T){typeof T.S.So.AFMA_LIDAR==="string"?(T.hj=!0,ig5(T)):(T.S.compatibility=3,T.C="nc",T.fail("w"))}; ig5=function(T){T.qO=!1;var Q=wz(vf().sH,"rmmt")==1,k=!!T.vJ("isViewable");(Q?!k:1)&&Bu().setTimeout(Dz(524,function(){T.qO||(VQT(T),aq(540,Error()),T.C="mt",T.fail("w"))}),500); Tg5(T);bp(T,T.S.So.AFMA_LIDAR,Qyf)}; Tg5=function(T){var Q=wz(vf().sH,"sneio")==1,k=T.S.So.AFMA_LIDAR_EXP_1!==void 0,l=T.S.So.AFMA_LIDAR_EXP_2!==void 0;(Q=Q&&l)&&(T.S.So.AFMA_LIDAR_EXP_2=!0);k&&(T.S.So.AFMA_LIDAR_EXP_1=!Q)}; VQT=function(T){T.vJ("removeEventListener",T.S.So.AFMA_LIDAR,Qyf);T.hj=!1}; jy5=function(T,Q){if(T.vJ("getState")==="loading")return new g.Ji(-1,-1);Q=T.vJ(Q);if(!Q)return new g.Ji(-1,-1);T=parseInt(Q.width,10);Q=parseInt(Q.height,10);return isNaN(T)||isNaN(Q)?new g.Ji(-1,-1):new g.Ji(T,Q)}; FnT=function(){try{var T=SC(As);T.vJ("removeEventListener","ready",FnT);EMu(T)}catch(Q){aq(541,Q)}}; Qyf=function(T,Q){try{var k=SC(As);k.qO=!0;var l=T?new KO(T.y,T.x+T.width,T.y+T.height,T.x):new KO(0,0,0,0);var v=uL(),L=F6();var q=new Hf(v,L,k);q.T=l;q.volume=Q;k.py(q)}catch(Y){aq(542,Y)}}; ev5=function(T){var Q=vf(),k=SC(As);T&&!Q.Y&&(Q.Y=!0,k.Bd=!0,k.C&&k.fail("w",!0))}; rw=function(){this.isInitialized=!1;this.T=this.S=null;var T={};this.C=(T.start=this.fu,T.firstquartile=this.pu,T.midpoint=this.W7,T.thirdquartile=this.DZ,T.complete=this.GI,T.error=this.P7,T.pause=this.bZ,T.resume=this.L2,T.skip=this.v7,T.viewable_impression=this.cA,T.mute=this.H9,T.unmute=this.H9,T.fullscreen=this.u_,T.exitfullscreen=this.nu,T.fully_viewable_audible_half_duration_impression=this.cA,T.measurable_impression=this.cA,T.abandon=this.bZ,T.engagedview=this.cA,T.impression=this.cA,T.creativeview= this.cA,T.progress=this.H9,T.custom_metric_viewable=this.cA,T.bufferstart=this.bZ,T.bufferfinish=this.L2,T.audio_measurable=this.cA,T.audio_audible=this.cA,T);T={};this.j=(T.overlay_resize=this.Ou,T.abandon=this.BI,T.close=this.BI,T.collapse=this.BI,T.overlay_unmeasurable_impression=function(Q){return EB(Q,"overlay_unmeasurable_impression",F6())},T.overlay_viewable_immediate_impression=function(Q){return EB(Q,"overlay_viewable_immediate_impression",F6())},T.overlay_unviewable_impression=function(Q){return EB(Q, "overlay_unviewable_impression",F6())},T.overlay_viewable_end_of_session_impression=function(Q){return EB(Q,"overlay_viewable_end_of_session_impression",F6())},T); vf().S=3;kRX(this);this.L=null}; cH=function(T,Q,k,l){T=T.CV(null,l,!0,Q);T.Y=k;BLT([T]);return T}; lU6=function(T,Q,k){r5y(Q);var l=T.T;g.EA(Q,function(v){var L=g.IQ(v.criteria,function(q){var Y=$sI(q);if(Y==null)q=null;else if(q=new Ogb,Y.visible!=null&&(q.T=Y.visible/100),Y.audible!=null&&(q.S=Y.audible==1),Y.time!=null){var U=Y.timetype=="mtos"?"mtos":"tos",R=tfJ(Y.time,"%")?"%":"ms";Y=parseInt(Y.time,10);R=="%"&&(Y/=100);q.setTime(Y,R,U)}return q}); $4(L,function(q){return q==null})||TLt(k,new Ij(v.id,v.event,L,l))})}; oA5=function(){var T=[],Q=vf();T.push(SC(qi));wz(Q.sH,"mvp_lv")&&T.push(SC(As));Q=[new ww,new Ni];Q.push(new kB(T));Q.push(new LH(rK));return Q}; vAC=function(T){if(!T.isInitialized){T.isInitialized=!0;try{var Q=uL(),k=vf(),l=J3();nI=Q;k.L=79463069;T.S!=="o"&&(Kn5=lW5(rK));if(fWu()){Mi.T.YD=0;Mi.T.jb=uL()-Q;var v=oA5(),L=SC(ju);L.S=v;XSg(L,function(){KH()})?Mi.done||(af5(),iL(L.T.T,T),YB()):l.L?KH():YB()}else xB=!0}catch(q){throw T9.reset(),q; }}}; HH=function(T){Mi.S.cancel();PH=T;Mi.done=!0}; ts=function(T){if(T.S)return T.S;var Q=SC(ju).T;if(Q)switch(Q.getName()){case "nis":T.S="n";break;case "gsv":T.S="m"}T.S||(T.S="h");return T.S}; OX=function(T,Q,k){if(T.T==null)return Q.ze|=4,!1;T=Lsg(T.T,k,Q);Q.ze|=T;return T==0}; KH=function(){var T=[new LH(rK)],Q=SC(ju);Q.S=T;XSg(Q,function(){HH("i")})?Mi.done||(af5(),YB()):HH("i")}; q6y=function(T,Q){if(!T.h3){var k=EB(T,"start",F6());k=T.II.T(k).T;var l={id:"lidarv"};l.r=Q;l.sv="967";Zt!==null&&(l.v=Zt);Gg(k,function(v,L){return l[v]=v=="mtos"||v=="tos"?L:encodeURIComponent(L)}); Q=xsg();Gg(Q,function(v,L){return l[v]=encodeURIComponent(L)}); Q="//pagead2.googlesyndication.com/pagead/gen_204?"+ll(k6(new jy,l));CSC(Q);T.h3=!0}}; pH=function(T,Q,k){UX(Mi,[T],!F6());lfb(T,k);k!=4&&kdf(T.hj,k,T.MI);return EB(T,Q,F6())}; kRX=function(T){nMt(function(){var Q=gAJ();T.S!=null&&(Q.sdk=T.S);var k=SC(ju);k.T!=null&&(Q.avms=k.T.getName());return Q})}; MYu=function(T,Q,k,l){var v=hv6(T9,k);v!==null&&v.V1!==Q&&(T.iV(v),v=null);v||(Q=T.CV(k,uL(),!1,Q),T9.S.length==0&&(vf().L=79463069),zvb([Q]),v=Q,v.Y=ts(T),l&&(v.u9=l));return v}; Y6b=function(T,Q){var k=T[Q];k!==void 0&&k>0&&(T[Q]=Math.floor(k*1E3))}; gAJ=function(){var T=J3(),Q={},k={},l={};return Object.assign({},(Q.sv="967",Q),Zt!==null&&(k.v=Zt,k),(l["if"]=T.L?"1":"0",l.nas=String(T9.T.length),l))}; WH=function(T){KC.call(this,"audio_audible",T)}; $B=function(T){x6.call(this,"audio_measurable",T)}; Js=function(){Su.apply(this,arguments)}; eu=function(){}; UWg=function(T){this.T=T}; Lsg=function(T,Q,k){T=T.S();if(typeof T==="function"){var l={};var v={};l=Object.assign({},Zt!==null&&(l.v=Zt,l),(v.sv="967",v.cb=HgT,v.e=RH5(Q),v));v=EB(k,Q,F6());g.Is(l,v);k.cD[Q]=v;l=k.S9()==2?SoX(l).join("&"):k.II.T(l).T;try{return T(k.V1,l,Q),0}catch(L){return 2}}else return 1}; RH5=function(T){var Q=me(T)?"custom_metric_viewable":T;T=Ui(Fy,function(k){return k==Q}); return fH[T]}; Fn=function(){rw.call(this);this.B=null;this.N=!1;this.Y="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; Z35=function(T,Q,k){k=k.opt_configurable_tracking_events;T.T!=null&&Array.isArray(k)&&lU6(T,k,Q)}; fU5=function(T,Q,k){var l=VB(T9,Q);l||(l=k.opt_nativeTime||-1,l=cH(T,Q,ts(T),l),k.opt_osdId&&(l.u9=k.opt_osdId));return l}; GRI=function(T,Q,k){var l=VB(T9,Q);l||(l=cH(T,Q,"n",k.opt_nativeTime||-1));return l}; mWC=function(T,Q){var k=VB(T9,Q);k||(k=cH(T,Q,"h",-1));return k}; IUt=function(T){vf();switch(ts(T)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; S6f=function(T,Q,k,l){k=k===void 0?{}:k;var v={};g.Is(v,{opt_adElement:void 0,opt_fullscreen:void 0},k);var L=T.EA(Q,k);k=L?L.II:T.K1();if(v.opt_bounds)return k.T(G9("ol",l));if(l!==void 0)if(tQ5(l)!==void 0)if(xB)T=G9("ue",l);else if(vAC(T),PH=="i")T=G9("i",l),T["if"]=0;else if(Q=T.EA(Q,v)){b:{PH=="i"&&(Q.DH=!0);L=v.opt_fullscreen;L!==void 0&&zJ(Q,!!L);var q;if(L=!J3().S)(L=DW(g.KJ(),"CrKey")&&!(DW(g.KJ(),"CrKey")&&DW(g.KJ(),"SmartSpeaker"))||DW(g.KJ(),"PlayStation")||DW(g.KJ(),"Roku")||L3y()||DW(g.KJ(), "Xbox"))||(L=g.KJ(),L=DW(L,"AppleTV")||DW(L,"Apple TV")||DW(L,"CFNetwork")||DW(L,"tvOS")),L||(L=g.KJ(),L=DW(L,"sdk_google_atv_x86")||DW(L,"Android TV")),L=!L;L&&(Bu(),L=vu(el)===0);if(q=L){switch(Q.S9()){case 1:q6y(Q,"pv");break;case 2:T.g4(Q)}HH("pv")}L=l.toLowerCase();if(q=!q)q=wz(vf().sH,"ssmol")&&L==="loaded"?!1:g.CW(hHX,L);if(q&&Q.vg==0){PH!="i"&&(Mi.done=!1);q=v!==void 0?v.opt_nativeTime:void 0;Pf=q=typeof q==="number"?q:uL();Q.DY=!0;var Y=F6();Q.vg=1;Q.t9={};Q.t9.start=!1;Q.t9.firstquartile= !1;Q.t9.midpoint=!1;Q.t9.thirdquartile=!1;Q.t9.complete=!1;Q.t9.resume=!1;Q.t9.pause=!1;Q.t9.skip=!1;Q.t9.mute=!1;Q.t9.unmute=!1;Q.t9.viewable_impression=!1;Q.t9.measurable_impression=!1;Q.t9.fully_viewable_audible_half_duration_impression=!1;Q.t9.fullscreen=!1;Q.t9.exitfullscreen=!1;Q.DI=0;Y||(Q.OF().j=q);UX(Mi,[Q],!Y)}(q=Q.ZA[L])&&cU(Q.Sj,q);wz(vf().sH,"fmd")||g.CW(sy6,L)&&Q.yQ&&Q.yQ.S(Q,null);switch(Q.S9()){case 1:var U=me(L)?T.C.custom_metric_viewable:T.C[L];break;case 2:U=T.j[L]}if(U&&(l=U.call(T, Q,v,l),wz(vf().sH,"fmd")&&g.CW(sy6,L)&&Q.yQ&&Q.yQ.S(Q,null),l!==void 0)){v=G9(void 0,L);g.Is(v,l);l=v;break b}l=void 0}Q.vg==3&&T.iV(Q);T=l}else T=G9("nf",l);else T=void 0;else xB?T=G9("ue"):L?(T=G9(),g.Is(T,vMX(L,!0,!1,!1))):T=G9("nf");return typeof T==="string"?k.T():k.T(T)}; CVT=function(T,Q){Q&&(T.Y=Q)}; Bg6=function(T){var Q={};return Q.viewability=T.T,Q.googleViewability=T.S,Q}; zH5=function(T,Q,k){k=k===void 0?{}:k;T=S6f(SC(Fn),Q,k,T);return Bg6(T)}; EX=function(T){var Q=g.HT.apply(1,arguments).filter(Boolean).join("&");if(!Q)return T;var k=T.match(/[?&]adurl=/);return k?T.slice(0,k.index+1)+Q+"&"+T.slice(k.index+1):T+(T.indexOf("?")<0?"?":"&")+Q}; yR=function(T,Q){return Q?"&"+T+"="+encodeURIComponent(Q):""}; XWC=function(T){var Q=T.url;T=T.dT9;this.S=Q;this.Y=T;this.L=(new Date).getTime()-17040672E5;this.T={};for(var k=/[?&]([^&=]+)=([^&]*)/g;T=k.exec(Q);)this.T[T[1]]=T[2]}; wWC=function(T){T=T.Y;if(!T)return"";var Q=yR("uap",T.platform)+yR("uapv",T.platformVersion)+yR("uafv",T.uaFullVersion)+yR("uaa",T.architecture)+yR("uam",T.model)+yR("uab",T.bitness);T.fullVersionList&&(Q+="&uafvl="+encodeURIComponent(T.fullVersionList.map(function(k){return encodeURIComponent(k.brand)+";"+encodeURIComponent(k.version)}).join("|"))); T.wow64!=null&&(Q+="&uaw="+Number(T.wow64));return Q.slice(1)}; A7y=function(T,Q,k,l,v){var L=window;var q=q===void 0?!1:q;var Y;k?Y=(q===void 0?0:q)?"//ep1.adtrafficquality.google/bg/"+ra(k)+".js":"//pagead2.googlesyndication.com/bg/"+ra(k)+".js":Y="";q=q===void 0?!1:q;k=L.document;var U={};Q&&(U._scs_=Q);U._bgu_=Y;U._bgp_=l;U._li_="v_h.3.0.0.0";v&&(U._upb_=v);(Q=L.GoogleTyFxhY)&&typeof Q.push=="function"||(Q=L.GoogleTyFxhY=[]);Q.push(U);Q=jO(k).createElement("SCRIPT");Q.type="text/javascript";Q.async=!0;T=(q===void 0?0:q)?g.Vw(dWu,ra(T)+".js"):g.Vw(Ngt,ra(T)+ ".js");g.SN(Q,T);(L=(L.GoogleTyFxhYEET||{})[Q.src])?L():k.getElementsByTagName("head")[0].appendChild(Q)}; b3u=function(){try{var T,Q;return!!((T=window)==null?0:(Q=T.top)==null?0:Q.location.href)&&!1}catch(k){return!0}}; ip=function(T,Q,k){k=k===void 0?Error():k;var l=Error.call(this);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.code=T;Q+=":";k instanceof Error?(this.message=Q+k.message,this.stack=k.stack||""):(this.message=Q+String(k),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; Ty=function(){var T=r7g();T=T===void 0?"bevasrsg":T;return new Promise(function(Q){var k=window===window.top?window:b3u()?window:window.top,l=k[T],v;((v=l)==null?0:v.bevasrs)?Q(new VR(l.bevasrs)):(l||(l={},l=(l.nqfbel=[],l),k[T]=l),l.nqfbel.push(function(L){Q(new VR(L))}))})}; c76=function(T){var Q={c:T.uh,e:T.gi,mc:T.Nl,me:T.V0};T.Qo&&(Q.co={c:T.Qo.QN,a:T.Qo.VO,s:T.Qo.Hb});return Q}; QT=function(T){g.x.call(this);this.wpc=T}; VR=function(T){g.x.call(this);var Q=this;this.FI=T;this.L="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.S=void 0;this.S5=this.FI.p;this.Y=this.QT.bind(this);this.addOnDisposeCallback(function(){return void DW5(Q)})}; aUu=function(T){var Q;return g.a(function(k){if(k.S==1){if(!T.FI.wpc)throw new ip(30,"NWA");return T.T?k.return(T.T):g.c(k,T.FI.wpc(),2)}Q=k.T;T.T=new QT(Q);return k.return(T.T)})}; DW5=function(T){T.S!==void 0&&(T.L.forEach(function(Q){var k;(k=T.S)==null||k.removeEventListener(Q,T.Y)}),T.S=void 0)}; ub5=function(T){var Q=Q===void 0?50:Q;var k=[];dL(T,jH,6).forEach(function(l){rL(l,2)<=Q&&k.push(rL(l,1))}); return k}; nAy=function(T){var Q=Q===void 0?50:Q;var k=[];dL(T,jH,6).forEach(function(l){rL(l,2)>Q&&k.push(rL(l,1))}); return k}; Ks5=function(T){T.then(function(){},function(){})}; kf=function(){g.x.apply(this,arguments);this.S=1;this[xWJ]=this.dispose}; lr=function(T){return{fieldType:2,fieldName:T}}; g.ol=function(T){return{fieldType:3,fieldName:T}}; PVt=function(T){this.T=T;T.Wq("/client_streamz/bg/frs",g.ol("mk"))}; H3I=function(T){this.T=T;T.Wq("/client_streamz/bg/wrl",g.ol("mn"),lr("ac"),lr("sc"),g.ol("rk"),g.ol("mk"))}; tY5=function(T){this.T=T;T.Rw("/client_streamz/bg/ec",g.ol("en"),g.ol("mk"))}; O3u=function(T){this.T=T;T.Wq("/client_streamz/bg/el",g.ol("en"),g.ol("mk"))}; pWu=function(T){this.T=T;T.Rw("/client_streamz/bg/cec",lr("ec"),g.ol("mk"))}; WsX=function(T){this.T=T;T.Rw("/client_streamz/bg/po/csc",lr("cs"),g.ol("mk"))}; $WH=function(T){this.T=T;T.Rw("/client_streamz/bg/po/ctav",g.ol("av"),g.ol("mk"))}; J7J=function(T){this.T=T;T.Rw("/client_streamz/bg/po/cwsc",g.ol("su"),g.ol("mk"))}; eHg=function(T){this.g5=JP(T)}; Fsg=function(T,Q){return Na5(T,Q,iJI)}; vc=function(T){this.g5=JP(T)}; LS=function(T){this.g5=JP(T)}; qw=function(T){this.g5=JP(T)}; gI=function(T){this.g5=JP(T)}; Mw=function(T){this.g5=JP(T)}; Yf=function(T){this.g5=JP(T)}; EAI=function(T){this.g5=JP(T)}; VYy=function(T){var Q=new Yf;Q=xM(Q,1,T.S);var k=y75(T);Q=Na5(Q,k,MNJ);k=[];for(var l=[],v=g.B(T.T.keys()),L=v.next();!L.done;L=v.next())l.push(L.value.split(","));for(v=0;v>>31)&4294967295;f=v[0];var I=v[1],z=v[2],w=v[3],r=v[4];for(m=0;m<80;m++){if(m<40)if(m<20){var A=w^I&(z^w);var D=1518500249}else A=I^z^w,D=1859775393;else m<60?(A=I&z|w&(I|z),D=2400959708):(A=I^z^w,D=3395469782);A=((f<<5|f>>>27)&4294967295)+A+r+D+G[m]&4294967295;r=w;w=z;z=(I<<30|I>>>2)&4294967295;I=f;f=A}v[0]=v[0]+f&4294967295;v[1]=v[1]+I&4294967295;v[2]= v[2]+z&4294967295;v[3]=v[3]+w&4294967295;v[4]=v[4]+r&4294967295} function k(f,G){if(typeof f==="string"){f=unescape(encodeURIComponent(f));for(var m=[],I=0,z=f.length;I=56;m--)L[m]=G&255,G>>>=8;Q(L);for(m=G=0;m<5;m++)for(var I=24;I>=0;I-=8)f[G++]=v[m]>>I&255;return f} for(var v=[],L=[],q=[],Y=[128],U=1;U<64;++U)Y[U]=0;var R,Z;T();return{reset:T,update:k,digest:l,KF:function(){for(var f=l(),G="",m=0;m1)));q=q.next)v||(L=q);v&&(k.T==0&&l==1?FCJ(k,Q):(L?(l=L,l.next==k.Y&&(k.Y=l),l.next=l.next.next):E45(k),y36(k,v,3,Q)))}T.L=null}else bo(T,3,Q)}; uo=function(T,Q){T.S||T.T!=2&&T.T!=3||iI5(T);T.Y?T.Y.next=Q:T.S=Q;T.Y=Q}; Vlf=function(T,Q,k,l){var v=c4(null,null,null);v.T=new g.rc(function(L,q){v.L=Q?function(Y){try{var U=Q.call(l,Y);L(U)}catch(R){q(R)}}:L; v.S=k?function(Y){try{var U=k.call(l,Y);U===void 0&&Y instanceof KL?q(Y):L(U)}catch(R){q(R)}}:q}); v.T.L=T;uo(T,v);return v.T}; bo=function(T,Q,k){T.T==0&&(T===k&&(Q=3,k=new TypeError("Promise cannot resolve to itself")),T.T=1,WCH(k,T.K0d,T.Gbj,T)||(T.C=k,T.T=Q,T.L=null,iI5(T),Q!=3||k instanceof KL||TR5(T,k)))}; WCH=function(T,Q,k,l){if(T instanceof g.rc)return eVf(T,Q,k,l),!0;if(T)try{var v=!!T.$goog_Thenable}catch(q){v=!1}else v=!1;if(v)return T.then(Q,k,l),!0;if(g.vm(T))try{var L=T.then;if(typeof L==="function")return QdX(T,L,Q,k,l),!0}catch(q){return k.call(l,q),!0}return!1}; QdX=function(T,Q,k,l,v){function L(U){Y||(Y=!0,l.call(v,U))} function q(U){Y||(Y=!0,k.call(v,U))} var Y=!1;try{Q.call(T,q,L)}catch(U){L(U)}}; iI5=function(T){T.B||(T.B=!0,g.Ad(T.kJ,T))}; E45=function(T){var Q=null;T.S&&(Q=T.S,T.S=Q.next,Q.next=null);T.S||(T.Y=null);return Q}; y36=function(T,Q,k,l){if(k==3&&Q.S&&!Q.Y)for(;T&&T.N;T=T.L)T.N=!1;if(Q.T)Q.T.L=null,jdy(Q,k,l);else try{Q.Y?Q.L.call(Q.context):jdy(Q,k,l)}catch(v){kJJ.call(null,v)}n45(pfI,Q)}; jdy=function(T,Q,k){Q==2?T.L.call(T.context,k):T.S&&T.S.call(T.context,k)}; TR5=function(T,Q){T.N=!0;g.Ad(function(){T.N&&kJJ.call(null,Q)})}; KL=function(T){Gv.call(this,T)}; g.x3=function(T,Q){g.fL.call(this);this.d8=T||1;this.e5=Q||g.VC;this.Gl=(0,g.Mp)(this.Nwq,this);this.I7=g.R_()}; g.P4=function(T,Q,k){if(typeof T==="function")k&&(T=(0,g.Mp)(T,k));else if(T&&typeof T.handleEvent=="function")T=(0,g.Mp)(T.handleEvent,T);else throw Error("Invalid listener argument");return Number(Q)>2147483647?-1:g.VC.setTimeout(T,Q||0)}; H4=function(T,Q){var k=null;return(new g.rc(function(l,v){k=g.P4(function(){l(Q)},T); k==-1&&v(Error("Failed to schedule timer."))})).kE(function(l){g.VC.clearTimeout(k); throw l;})}; g.td=function(T){g.x.call(this);this.C=T;this.Y=0;this.L=100;this.N=!1;this.S=new Map;this.B=new Set;this.flushInterval=3E4;this.T=new g.x3(this.flushInterval);this.T.listen("tick",this.xq,!1,this);g.P(this,this.T)}; l76=function(T){T.T.enabled||T.T.start();T.Y++;T.Y>=T.L&&T.xq()}; o6t=function(T,Q){return T.B.has(Q)?void 0:T.S.get(Q)}; v6X=function(T){for(var Q=0;Q2?T.T.statusText:""}catch(k){Q=""}T.Y=Q+" ["+T.getStatus()+"]";mVX(T)}}finally{ea(T)}}}; ea=function(T,Q){if(T.T){T.B&&(clearTimeout(T.B),T.B=null);var k=T.T;T.T=null;Q||T.dispatchEvent("ready");try{k.onreadystatechange=null}catch(l){}}}; yu=function(T){var Q=T.getStatus();a:switch(Q){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var k=!0;break a;default:k=!1}if(!k){if(Q=Q===0)T=g.UD(String(T.j))[1]||null,!T&&g.VC.self&&g.VC.self.location&&(T=g.VC.self.location.protocol.slice(0,-1)),Q=!sd5.test(T?T.toLowerCase():"");k=Q}return k}; g.EJ=function(T){return T.T?T.T.readyState:0}; g.io=function(T){try{return T.T?T.T.responseText:""}catch(Q){return""}}; g.Vu=function(T){try{if(!T.T)return null;if("response"in T.T)return T.T.response;switch(T.xm){case "":case "text":return T.T.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in T.T)return T.T.mozResponseArrayBuffer}return null}catch(Q){return null}}; g.SBb=function(T){var Q={};T=(T.T&&g.EJ(T)>=2?T.T.getAllResponseHeaders()||"":"").split("\r\n");for(var k=0;k0&&U>=Q};k=k===void 0?[]:k;return new gb(l,k)}; fi=function(T){function Q(I,z,w,r){Promise.resolve().then(function(){U.done();Y.UE();Y.dispose();q.resolve({Wj:I,HiK:z,sKj:w,KfH:r})})} function k(I,z,w,r){if(!l.logger.wd()){var A="k";z?A="h":w&&(A="u");A!=="k"?r!==0&&(l.logger.NA(A),l.logger.RA(A,I)):l.S<=0?(l.logger.NA(A),l.logger.RA(A,I),l.S=Math.floor(Math.random()*200)):l.S--}} g.x.call(this);var l=this;this.S=Math.floor(Math.random()*200);this.T=new R5;if("challenge"in T&&dVX(T.challenge)){var v=Df(T.challenge,4,void 0,F1);var L=Df(T.challenge,5,void 0,F1);Df(T.challenge,7,void 0,F1)&&(this.T=NRH(Df(T.challenge,7,void 0,F1)))}else v=T.program,L=T.globalName;this.addOnDisposeCallback(function(){var I,z,w;return g.a(function(r){if(r.S==1)return g.c(r,l.L,2);I=r.T;z=I.HiK;(w=z)==null||w();g.BT(r)})}); this.logger=wUu(T.uA||{},this.T);g.P(this,this.logger);var q=new g.Zb;this.L=q.promise;this.logger.NA("t");var Y=this.logger.share(),U=new k2(Y,"t");if(!g.VC[L])throw this.logger.O4(25),Error("EGOU");if(!g.VC[L].a)throw this.logger.O4(26),Error("ELIU");try{var R=g.VC[L].a;L=[];for(var Z=[],f=ub5(this.T),G=0;G>1,Q),zc(T,T.length>>1)]}; k95=function(T){var Q=g.B(jjy(T,Xp));T=Q.next().value;Q=Q.next().value;return T.toString(16)+Q.toString(16)}; lt5=function(T,Q){var k=jjy(Q);T=new Uint32Array(T.buffer);Q=T[0];var l=g.B(k);k=l.next().value;l=l.next().value;for(var v=1;v>>8|q<<24,q+=L|0,q^=Y+38293,L=L<<3|L>>>29,L^=q,U=U>>>8|U<<24,U+=Y|0,U^=R+38293,Y=Y<<3|Y>>>29,Y^=U;L=[L,q];T[v]^=L[0];v+1=k?(globalThis.sessionStorage.removeItem(T),["e"]):["a",new Uint8Array(l.buffer,Q+4)]}; wb=function(T,Q,k){k=k===void 0?[]:k;this.maxItems=T;this.T=Q===void 0?0:Q;this.S=k}; Lef=function(T){var Q=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!Q)return new wb(T);var k=Q.split(",");if(k.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new wb(T);Q=k.slice(1);Q.length===1&&Q[0]===""&&(Q=[]);k=Number(k[0]);return isNaN(k)||k<0||k>Q.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new wb(T)):new wb(T,k,Q)}; qXX=function(T,Q){this.logger=Q;try{var k=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(l){k=!1}k&&(this.index=Lef(T))}; gB6=function(T,Q,k,l,v){var L=T.index?o5(T.logger,function(){return oB6(T.index,k95(Q),k,l,v)},"W"):"u"; T.logger.yL(L)}; MuI=function(T,Q,k){var l=g.B(T.index?o5(T.logger,function(){return vBb(k95(Q),k)},"R"):["u"]),v=l.next().value; l=l.next().value;T.logger.Mb(v);return l}; Rtg=function(T){function Q(){k-=l;k-=v;k^=v>>>13;l-=v;l-=k;l^=k<<8;v-=k;v-=l;v^=l>>>13;k-=l;k-=v;k^=v>>>12;l-=v;l-=k;l^=k<<16;v-=k;v-=l;v^=l>>>5;k-=l;k-=v;k^=v>>>3;l-=v;l-=k;l^=k<<10;v-=k;v-=l;v^=l>>>15} T=YXu(T);for(var k=2654435769,l=2654435769,v=314159265,L=T.length,q=L,Y=0;q>=12;q-=12,Y+=12)k+=db(T,Y),l+=db(T,Y+4),v+=db(T,Y+8),Q();v+=L;switch(q){case 11:v+=T[Y+10]<<24;case 10:v+=T[Y+9]<<16;case 9:v+=T[Y+8]<<8;case 8:l+=T[Y+7]<<24;case 7:l+=T[Y+6]<<16;case 6:l+=T[Y+5]<<8;case 5:l+=T[Y+4];case 4:k+=T[Y+3]<<24;case 3:k+=T[Y+2]<<16;case 2:k+=T[Y+1]<<8;case 1:k+=T[Y+0]}Q();return Uit.toString(v)}; YXu=function(T){for(var Q=[],k=0;k>7,T.error.code]);l.set(k,4);return l}; ni=function(T,Q,k){NS.call(this,T);this.Y=Q;this.clientState=k;this.T="S";this.S="q"}; uH=function(T){return globalThis.TextEncoder?(new TextEncoder).encode(T):g.wJ(T)}; G9t=function(T,Q,k){return T instanceof sp?OCu(T,k,Q,1):T.Xo(k)}; x2=function(T){g.x.call(this);var Q=this;this.L=new g.Zb;this.Y=0;this.S=void 0;this.state=2;this.FI=T.FI;this.J1=T.J1;this.s3=Object.assign({},miH,T.s3||{});this.logger=T.FI.Lr();var k;this.onError=(k=T.onError)!=null?k:function(){}; this.dM=T.dM||!1;if(ItJ(T)){var l=this.FI;this.N=function(){return eQC(l).catch(function(q){q=Q.reportError(new ip(Q.T?20:32,"TRG:Disposed",q));Q.S=q;var Y;(Y=Q.T)==null||Y.dispose();Q.T=void 0;Q.L.reject(q)})}; FhJ(l,function(){return void Ki(Q)}); l.j===2&&Ki(this)}else this.N=T.Ukd,Ki(this);var v=this.logger.share();v.NA("o");var L=new k2(v,"o");this.L.promise.then(function(){L.done();v.UE();v.dispose()},function(){return void v.dispose()}); this.addOnDisposeCallback(function(){Q.T?(Q.T.dispose(),Q.T=void 0):Q.S?Q.logger.UE():(Q.S=Q.reportError(new ip(32,"TNP:Disposed")),Q.logger.UE(),Q.L.reject(Q.S))}); g.P(this,this.logger)}; ht5=function(T,Q){if(!(Q instanceof ip))if(Q instanceof OJ){var k=Error(Q.toString());k.stack=Q.stack;Q=new ip(11,"EBH:Error",k)}else Q=new ip(12,"BSO:Unknown",Q);return T.reportError(Q)}; Ki=function(T){var Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z;return g.a(function(w){switch(w.S){case 1:Q=void 0;T.Y++;k=new g.Zb;T.FI instanceof Sh&&T.FI.Y.push(k.promise);if(!T.dM){w.Ym(2);break}l=new g.Zb;setTimeout(function(){return void l.resolve()}); return g.c(w,l.promise,2);case 2:return v=T.logger.share(),g.z5(w,4,5),T.state=5,L={},q=[],g.c(w,Bn(T.FI.snapshot({uh:L,QP:q}),T.s3.TwO,function(){return Promise.reject(new ip(15,"MDA:Timeout"))}),7); case 7:Y=w.T;if(T.wd())throw new ip(T.T?20:32,"MDA:Disposed");U=q[0];T.state=6;return g.c(w,Bn(G9t(T.J1,v,Y),T.s3.Ua,function(){return Promise.reject(new ip(10,"BWB:Timeout"))}),8); case 8:R=w.T;if(T.wd())throw new ip(T.T?20:32,"BWB:Disposed");T.state=7;Q=o5(v,function(){var A=sjX(T,R,k,U);A.L.promise.then(function(){return void T.N()}); return A},"i"); case 5:g.aI(w);v.dispose();g.n5(w,6);break;case 4:Z=g.by(w);(f=Q)==null||f.dispose();if(!T.S){G=ht5(T,Z);k.resolve();var r;if(r=T.FI instanceof Sh&&T.Y<2)a:if(Z instanceof ip)r=Z.code!==32&&Z.code!==20&&Z.code!==10;else{if(Z instanceof OJ)switch(Z.code){case 2:case 13:case 14:case 4:break;default:r=!1;break a}r=!0}if(r)return m=(1+Math.random()*.25)*(T.T?6E4:1E3),I=setTimeout(function(){return void T.N()},m),T.addOnDisposeCallback(function(){return void clearTimeout(I)}),w.return(); T.S=G}v.O4(T.T?13:14);T.L.reject(T.S);return w.return();case 6:T.state=8,T.Y=0,(z=T.T)==null||z.dispose(),T.T=Q,T.L.resolve(),g.BT(w)}})}; sjX=function(T,Q,k,l){var v=cS(Q,2)*1E3;if(v<=0)throw new ip(31,"TTM:Invalid");if(Df(Q,4))return new Db(T.logger,Df(Q,4),v);if(!cS(Q,3))return new cn(T.logger,uS(YM(Q,1)),v);if(!l)throw new ip(4,"PMD:Undefined");l=l(uS(YM(Q,1)));if(!(l instanceof Function))throw new ip(16,"APF:Failed");T.B=Math.floor((Date.now()+v)/1E3);T=new rb(T.logger,l,cS(Q,3),v);T.addOnDisposeCallback(function(){return void k.resolve()}); return T}; SXt=function(T,Q){Q=Q instanceof ip?Q:new ip(5,"TVD:error",Q);return T.reportError(Q)}; wHI=function(T,Q,k){try{if(T.wd())throw new ip(21,"BNT:disposed");if(!T.T&&T.S)throw T.S;var l,v;return(v=(l=Cpu(T,Q,k))!=null?l:BwI(T,Q,k))!=null?v:zty(T,Q,k)}catch(L){if(!Q.V0)throw SXt(T,L);return XHt(T,k,L)}}; Cpu=function(T,Q,k){var l;return(l=T.T)==null?void 0:bH(l,function(){return Pn(T,Q)},k,function(v){var L; if(T.T instanceof rb&&((L=Q.Qo)==null?0:L.Hb))try{var q;(q=T.cache)==null||gB6(q,Pn(T,Q),v,Q.Qo.QN,T.B-120)}catch(Y){T.reportError(new ip(24,"ELX:write",Y))}})}; BwI=function(T,Q,k){var l;if((l=Q.Qo)!=null&&l.VO)try{var v,L=(v=T.cache)==null?void 0:MuI(v,Pn(T,Q),Q.Qo.QN);return L?k?o5(T.logger,function(){return g.dJ(L,2)},"a"):L:void 0}catch(q){T.reportError(new ip(23,"RXO:read",q))}}; zty=function(T,Q,k){var l={stack:[],error:void 0,hasError:!1};try{if(!Q.Nl)throw new ip(29,"SDF:notready");return bH(IH5(l,new ni(T.logger,0,T.state)),function(){return Pn(T,Q)},k)}catch(v){l.error=v,l.hasError=!0}finally{hut(l)}}; XHt=function(T,Q,k){var l={stack:[],error:void 0,hasError:!1};try{var v=SXt(T,k);return bH(IH5(l,new a5(T.logger,v)),function(){return[]},Q)}catch(L){l.error=L,l.hasError=!0}finally{hut(l)}}; Pn=function(T,Q){return Q.gi?Q.gi:Q.uh?o5(T.logger,function(){return Q.gi=uH(Q.uh)},"c"):[]}; Hn=function(){var T=0,Q;return function(k){Q||(Q=new vn);var l=new ni(Q,T,1),v=bH(l,function(){return uH(k)},!0); l.dispose();T++;return v}}; t8=function(T){this.g5=JP(T)}; dif=function(T,Q,k){this.Sx=T;this.X4=Q;this.metadata=k}; Op=function(T,Q){Q=Q===void 0?{}:Q;this.xL_=T;this.metadata=Q;this.status=null}; pi=function(T,Q,k,l,v){this.name=T;this.methodType="unary";this.requestType=Q;this.responseType=k;this.T=l;this.S=v}; Wn=function(T){this.g5=JP(T)}; $2=function(T){this.g5=JP(T)}; J8=function(T){this.g5=JP(T)}; eh=function(T,Q){this.C=T.i_9;this.j=Q;this.T=T.xhr;this.L=[];this.N=[];this.B=[];this.Y=[];this.S=[];this.C&&NwC(this)}; cs6=function(T,Q){var k=new Asf;g.Qu(T.T,"complete",function(){if(yu(T.T)){var l=g.io(T.T);if(Q&&T.T.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");l=atob(l)}try{var v=T.j(l)}catch(Y){Fp(T,Ep(new OJ(13,"Error when deserializing response data; error: "+Y+(", response: "+l)),k));return}l=Lh5(T.T.getStatus());y9(T,iH(T));l==0?bH5(T,v):Fp(T,Ep(new OJ(l,"Xhr succeeded but the status code is not 200"),k))}else{l=g.io(T.T);v=iH(T);if(l){var L=rst(T, l);l=L.code;var q=L.details;L=L.metadata}else l=2,q="Rpc failed due to xhr error. uri: "+String(T.T.j)+", error code: "+T.T.S+", error: "+T.T.getLastError(),L=v;y9(T,v);Fp(T,Ep(new OJ(l,q,L),k))}})}; NwC=function(T){T.C.cz("data",function(Q){if("1"in Q){var k=Q["1"];try{var l=T.j(k)}catch(v){Fp(T,new OJ(13,"Error when deserializing response data; error: "+v+(", response: "+k)))}l&&bH5(T,l)}if("2"in Q)for(Q=rst(T,Q["2"]),k=0;k-1&&T.splice(Q,1)}; bH5=function(T,Q){for(var k=0;k>4&15).toString(16)+(T&15).toString(16)}; Mj=function(T,Q){this.S=this.T=null;this.L=T||null;this.Y=!!Q}; Zg=function(T){T.T||(T.T=new Map,T.S=0,T.L&&Gg(T.L,function(Q,k){T.add(bX(Q),k)}))}; tuH=function(T,Q){Zg(T);Q=fV(T,Q);return T.T.has(Q)}; g.OHt=function(T,Q,k){T.remove(Q);k.length>0&&(T.L=null,T.T.set(fV(T,Q),g.r$(k)),T.S=T.S+k.length)}; fV=function(T,Q){Q=String(Q);T.Y&&(Q=Q.toLowerCase());return Q}; xiu=function(T,Q){Q&&!T.Y&&(Zg(T),T.L=null,T.T.forEach(function(k,l){var v=l.toLowerCase();l!=v&&(this.remove(l),g.OHt(this,v,k))},T)); T.Y=Q}; g.pH6=function(T){var Q="";g.VJ(T,function(k,l){Q+=l;Q+=":";Q+=k;Q+="\r\n"}); return Q}; g.Gm=function(T,Q,k){if(g.Rs(k))return T;k=g.pH6(k);if(typeof T==="string")return CI(T,g.Nn(Q),k);g.Uz(T,Q,k);return T}; g.mo=function(T){g.x.call(this);this.S=T;this.T={}}; WeH=function(T,Q,k,l,v,L){if(Array.isArray(k))for(var q=0;q=0)return!0;try{var Q=new g.lN(T)}catch(k){return g.sA(Lfy,function(l){return T.search(l)>0})!=null}return Q.B.match(qcf)?!0:g.sA(Lfy,function(k){return T.match(k)!=null})!=null}; g.Ae=function(T,Q){return T.replace(MHT,function(k,l){try{var v=g.ZW(Q,l);if(v==null||v.toString()==null)return k;v=v.toString();if(v==""||!g.bB(g.cX(v)))return encodeURIComponent(v).replace(/%2C/g,",")}catch(L){}return k})}; bN=function(T,Q){return Object.is(T,Q)}; c0=function(T){var Q=r0;r0=T;return Q}; YcH=function(T){if(T.Wg!==void 0){var Q=Dg;Dg=!0;try{for(var k=g.B(T.Wg),l=k.next();!l.done;l=k.next()){var v=l.value;v.RY||(T=void 0,v.RY=!0,YcH(v),(T=v.hD)==null||T.call(v,v))}}finally{Dg=Q}}}; Uw5=function(){var T;return((T=r0)==null?void 0:T.Ee)!==!1}; RmC=function(T){T&&(T.Us=0);return c0(T)}; ZS5=function(T,Q){c0(Q);if(T&&T.pz!==void 0&&T.j9!==void 0&&T.FF!==void 0){if(aZ(T))for(Q=T.Us;QT.Us;)T.pz.pop(),T.FF.pop(),T.j9.pop()}}; Gy5=function(T,Q,k){fBf(T);if(T.Wg.length===0&&T.pz!==void 0)for(var l=0;l0}; mw6=function(T){T.pz!=null||(T.pz=[]);T.j9!=null||(T.j9=[]);T.FF!=null||(T.FF=[])}; fBf=function(T){T.Wg!=null||(T.Wg=[]);T.dh!=null||(T.dh=[])}; Sc5=function(T){function Q(){if(Dg)throw Error("");if(r0!==null){var l=r0.Us++;mw6(r0);l0?" "+Q:Q))}}; g.vq=function(T,Q){if(T.classList)Array.prototype.forEach.call(Q,function(v){g.oF(T,v)}); else{var k={};Array.prototype.forEach.call(j_(T),function(v){k[v]=!0}); Array.prototype.forEach.call(Q,function(v){k[v]=!0}); Q="";for(var l in k)Q+=Q.length>0?" "+l:l;g.kh(T,Q)}}; g.Lb=function(T,Q){T.classList?T.classList.remove(Q):g.lw(T,Q)&&g.kh(T,Array.prototype.filter.call(j_(T),function(k){return k!=Q}).join(" "))}; g.qN=function(T,Q){T.classList?Array.prototype.forEach.call(Q,function(k){g.Lb(T,k)}):g.kh(T,Array.prototype.filter.call(j_(T),function(k){return!g.CW(Q,k)}).join(" "))}; g.gl=function(T,Q,k){k?g.oF(T,Q):g.Lb(T,Q)}; AzX=function(T,Q){var k=!g.lw(T,Q);g.gl(T,Q,k)}; g.MN=function(){g.fL.call(this);this.T=0;this.endTime=this.startTime=null}; bSX=function(T,Q){Array.isArray(Q)||(Q=[Q]);Q=Q.map(function(k){return typeof k==="string"?k:k.property+" "+k.duration+"s "+k.timing+" "+k.delay+"s"}); g.W2(T,"transition",Q.join(","))}; Yh=function(T,Q,k,l,v){g.MN.call(this);this.S=T;this.N=Q;this.B=k;this.Y=l;this.C=Array.isArray(v)?v:[v]}; rzt=function(T,Q,k,l){return new Yh(T,Q,{opacity:k},{opacity:l},{property:"opacity",duration:Q,timing:"ease-in",delay:0})}; Dwf=function(T){T=as(T);if(T=="")return null;var Q=String(T.slice(0,4)).toLowerCase();if(("url("1||T&&T.split(")"),null;if(T.indexOf("(")>0){if(/"|'/.test(T))return null;Q=/([\-\w]+)\(/g;for(var k;k=Q.exec(T);)if(!(k[1].toLowerCase()in czy))return null}return T}; U7=function(T,Q){T=g.VC[T];return T&&T.prototype?(Q=Object.getOwnPropertyDescriptor(T.prototype,Q))&&Q.get||null:null}; aBX=function(T){var Q=g.VC.CSSStyleDeclaration;return Q&&Q.prototype&&Q.prototype[T]||null}; uzy=function(T,Q,k,l){if(T)return T.apply(Q,l);if(g.RF&&document.documentMode<10){if(!Q[k].call)throw Error("IE Clobbering detected");}else if(typeof Q[k]!="function")throw Error("Clobbering detected");return Q[k].apply(Q,l)}; HSI=function(T){if(!T)return"";var Q=document.createElement("div").style;nfy(T).forEach(function(k){var l=g.Y1&&k in Kfu?k:k.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");AV(l,"--")||AV(l,"var")||(k=uzy(xwb,T,T.getPropertyValue?"getPropertyValue":"getAttribute",[k])||"",k=Dwf(k),k!=null&&uzy(Pr5,Q,Q.setProperty?"setProperty":"setAttribute",[l,k]))}); return Q.cssText||""}; nfy=function(T){g.o_(T)?T=g.r$(T):(T=g.gz(T),g.zv(T,"cssText"));return T}; g.fb=function(T){var Q,k=Q=0,l=!1;T=T.split(tHg);for(var v=0;v.4?-1:1;return(Q==0?null:Q)==-1?"rtl":"ltr"}; g.hJ=function(T){if(T instanceof Ge||T instanceof mz||T instanceof IF)return T;if(typeof T.next=="function")return new Ge(function(){return T}); if(typeof T[Symbol.iterator]=="function")return new Ge(function(){return T[Symbol.iterator]()}); if(typeof T.Xu=="function")return new Ge(function(){return T.Xu()}); throw Error("Not an iterator or iterable.");}; Ge=function(T){this.S=T}; mz=function(T){this.S=T}; IF=function(T){Ge.call(this,function(){return T}); this.L=T}; s7=function(T,Q,k,l,v,L,q,Y){this.T=T;this.C=Q;this.L=k;this.N=l;this.Y=v;this.B=L;this.S=q;this.j=Y}; S_=function(T,Q){if(Q==0)return T.T;if(Q==1)return T.S;var k=pl(T.T,T.L,Q),l=pl(T.L,T.Y,Q);T=pl(T.Y,T.S,Q);k=pl(k,l,Q);l=pl(l,T,Q);return pl(k,l,Q)}; $wC=function(T,Q){var k=(Q-T.T)/(T.S-T.T);if(k<=0)return 0;if(k>=1)return 1;for(var l=0,v=1,L=0,q=0;q<8;q++){L=S_(T,k);var Y=(S_(T,k+1E-6)-L)/1E-6;if(Math.abs(L-Q)<1E-6)return k;if(Math.abs(Y)<1E-6)break;else L1E-6&&q<8;q++)L=0}; g.XE=function(T){g.x.call(this);this.B=1;this.L=[];this.Y=0;this.T=[];this.S={};this.C=!!T}; emX=function(T,Q,k){g.Ad(function(){T.apply(Q,k)})}; g.wl=function(T){this.T=T}; dl=function(T){this.T=T}; FfI=function(T){this.data=T}; Eft=function(T){return T===void 0||T instanceof FfI?T:new FfI(T)}; NN=function(T){this.T=T}; g.yz5=function(T){var Q=T.creation;T=T.expiration;return!!T&&Tg.R_()}; g.AJ=function(T){this.T=T}; iS5=function(){}; bw=function(){}; rl=function(T){this.T=T;this.S=null}; cq=function(T){if(T.T==null)throw Error("Storage mechanism: Storage unavailable");T.isAvailable()||X1(Error("Storage mechanism: Storage unavailable"))}; D5=function(){var T=null;try{T=g.VC.localStorage||null}catch(Q){}rl.call(this,T)}; VHy=function(){var T=null;try{T=g.VC.sessionStorage||null}catch(Q){}rl.call(this,T)}; aF=function(T,Q){this.S=T;this.T=Q+"::"}; g.uw=function(T){var Q=new D5;return Q.isAvailable()?T?new aF(Q,T):Q:null}; nb=function(T,Q){this.T=T;this.S=Q}; Kb=function(T){this.T=[];if(T)a:{if(T instanceof Kb){var Q=T.zG();T=T.b0();if(this.T.length<=0){for(var k=this.T,l=0;l>>6:(L<65536?Y[k++]=224|L>>>12:(Y[k++]=240|L>>>18,Y[k++]=128|L>>>12&63),Y[k++]=128|L>>> 6&63),Y[k++]=128|L&63);return Y}; tJ=function(T){for(var Q=T.length;--Q>=0;)T[Q]=0}; O7=function(T,Q,k,l,v){this.f2=T;this.mN=Q;this.YJ=k;this.fF=l;this.H_6=v;this.gb=T&&T.length}; pb=function(T,Q){this.AD=T;this.nM=0;this.qv=Q}; Wq=function(T,Q){T.Ab[T.pending++]=Q&255;T.Ab[T.pending++]=Q>>>8&255}; $h=function(T,Q,k){T.Db>16-k?(T.Gs|=Q<>16-T.Db,T.Db+=k-16):(T.Gs|=Q<>>=1,k<<=1;while(--Q>0);return k>>>1}; lTC=function(T,Q,k){var l=Array(16),v=0,L;for(L=1;L<=15;L++)l[L]=v=v+k[L-1]<<1;for(k=0;k<=Q;k++)v=T[k*2+1],v!==0&&(T[k*2]=kl5(l[v]++,v))}; o35=function(T){var Q;for(Q=0;Q<286;Q++)T.rC[Q*2]=0;for(Q=0;Q<30;Q++)T.s6[Q*2]=0;for(Q=0;Q<19;Q++)T.k$[Q*2]=0;T.rC[512]=1;T.kQ=T.tJ=0;T.W4=T.matches=0}; v35=function(T){T.Db>8?Wq(T,T.Gs):T.Db>0&&(T.Ab[T.pending++]=T.Gs);T.Gs=0;T.Db=0}; L5X=function(T,Q,k){v35(T);Wq(T,k);Wq(T,~k);Hq.En(T.Ab,T.window,Q,k,T.pending);T.pending+=k}; qJb=function(T,Q,k,l){var v=Q*2,L=k*2;return T[v]>>7)];JJ(T,q,k);Y=VO[q];Y!==0&&(v-=Tf[q],$h(T,v,Y))}}while(l>1;q>=1;q--)e_(T,k,q);U=L;do q=T.P1[1],T.P1[1]=T.P1[T.KS--],e_(T,k,1),l=T.P1[1],T.P1[--T.c$]=q,T.P1[--T.c$]=l,k[U*2]=k[q*2]+k[l*2],T.depth[U]=(T.depth[q]>=T.depth[l]?T.depth[q]:T.depth[l])+1,k[q*2+1]=k[l*2+1]=U,T.P1[1]=U++,e_(T,k,1);while(T.KS>= 2);T.P1[--T.c$]=T.P1[1];q=Q.AD;U=Q.nM;l=Q.qv.f2;v=Q.qv.gb;L=Q.qv.mN;var R=Q.qv.YJ,Z=Q.qv.H_6,f,G=0;for(f=0;f<=15;f++)T.X3[f]=0;q[T.P1[T.c$]*2+1]=0;for(Q=T.c$+1;Q<573;Q++){var m=T.P1[Q];f=q[q[m*2+1]*2+1]+1;f>Z&&(f=Z,G++);q[m*2+1]=f;if(!(m>U)){T.X3[f]++;var I=0;m>=R&&(I=L[m-R]);var z=q[m*2];T.kQ+=z*(f+I);v&&(T.tJ+=z*(l[m*2+1]+I))}}if(G!==0){do{for(f=Z-1;T.X3[f]===0;)f--;T.X3[f]--;T.X3[f+1]+=2;T.X3[Z]--;G-=2}while(G>0);for(f=Z;f!==0;f--)for(m=T.X3[f];m!==0;)l=T.P1[--Q],l>U||(q[l*2+1]!==f&&(T.kQ+=(f- q[l*2+1])*q[l*2],q[l*2+1]=f),m--)}lTC(k,Y,T.X3)}; Mat=function(T,Q,k){var l,v=-1,L=Q[1],q=0,Y=7,U=4;L===0&&(Y=138,U=3);Q[(k+1)*2+1]=65535;for(l=0;l<=k;l++){var R=L;L=Q[(l+1)*2+1];++q>>=1)if(Q&1&&T.rC[k*2]!==0)return 0;if(T.rC[18]!==0||T.rC[20]!==0||T.rC[26]!==0)return 1;for(k=32;k<256;k++)if(T.rC[k*2]!==0)return 1;return 0}; jm=function(T,Q,k){T.Ab[T.pQ+T.W4*2]=Q>>>8&255;T.Ab[T.pQ+T.W4*2+1]=Q&255;T.Ab[T.c6+T.W4]=k&255;T.W4++;Q===0?T.rC[k*2]++:(T.matches++,Q--,T.rC[(FE[k]+256+1)*2]++,T.s6[(Q<256?iw[Q]:iw[256+(Q>>>7)])*2]++);return T.W4===T.US-1}; lK=function(T,Q){T.msg=ki[Q];return Q}; ob=function(T){for(var Q=T.length;--Q>=0;)T[Q]=0}; vN=function(T){var Q=T.state,k=Q.pending;k>T.EW&&(k=T.EW);k!==0&&(Hq.En(T.output,Q.Ab,Q.Qf,k,T.v$),T.v$+=k,Q.Qf+=k,T.wW+=k,T.EW-=k,Q.pending-=k,Q.pending===0&&(Q.Qf=0))}; gE=function(T,Q){var k=T.l5>=0?T.l5:-1,l=T.UG-T.l5,v=0;if(T.level>0){T.Wn.v3===2&&(T.Wn.v3=UFg(T));Qt(T,T.t4);Qt(T,T.FW);Mat(T,T.rC,T.t4.nM);Mat(T,T.s6,T.FW.nM);Qt(T,T.Kb);for(v=18;v>=3&&T.k$[R8I[v]*2+1]===0;v--);T.kQ+=3*(v+1)+5+5+4;var L=T.kQ+3+7>>>3;var q=T.tJ+3+7>>>3;q<=L&&(L=q)}else L=q=l+5;if(l+4<=L&&k!==-1)$h(T,Q?1:0,3),L5X(T,k,l);else if(T.strategy===4||q===L)$h(T,2+(Q?1:0),3),g3f(T,Le,qI);else{$h(T,4+(Q?1:0),3);k=T.t4.nM+1;l=T.FW.nM+1;v+=1;$h(T,k-257,5);$h(T,l-1,5);$h(T,v-4,4);for(L=0;L>>8&255;T.Ab[T.pending++]=Q&255}; ZL6=function(T,Q){var k=T.Q0,l=T.UG,v=T.H4,L=T.r0,q=T.UG>T.Ay-262?T.UG-(T.Ay-262):0,Y=T.window,U=T.dQ,R=T.AV,Z=T.UG+258,f=Y[l+v-1],G=Y[l+v];T.H4>=T.rU&&(k>>=2);L>T.Hh&&(L=T.Hh);do{var m=Q;if(Y[m+v]===G&&Y[m+v-1]===f&&Y[m]===Y[l]&&Y[++m]===Y[l+1]){l+=2;for(m++;Y[++l]===Y[++m]&&Y[++l]===Y[++m]&&Y[++l]===Y[++m]&&Y[++l]===Y[++m]&&Y[++l]===Y[++m]&&Y[++l]===Y[++m]&&Y[++l]===Y[++m]&&Y[++l]===Y[++m]&&lv){T.G4=Q;v=m;if(m>=L)break;f=Y[l+v-1];G=Y[l+v]}}}while((Q=R[Q&U])>q&&--k!== 0);return v<=T.Hh?v:T.Hh}; Z0=function(T){var Q=T.Ay,k;do{var l=T.FP-T.Hh-T.UG;if(T.UG>=Q+(Q-262)){Hq.En(T.window,T.window,Q,Q,0);T.G4-=Q;T.UG-=Q;T.l5-=Q;var v=k=T.UA;do{var L=T.head[--v];T.head[v]=L>=Q?L-Q:0}while(--k);v=k=Q;do L=T.AV[--v],T.AV[v]=L>=Q?L-Q:0;while(--k);l+=Q}if(T.Wn.KB===0)break;v=T.Wn;k=T.window;L=T.UG+T.Hh;var q=v.KB;q>l&&(q=l);q===0?k=0:(v.KB-=q,Hq.En(k,v.input,v.jp,q,L),v.state.wrap===1?v.CY=U4(v.CY,k,q,L):v.state.wrap===2&&(v.CY=Rb(v.CY,k,q,L)),v.jp+=q,v.wY+=q,k=q);T.Hh+=k;if(T.Hh+T.o2>=3)for(l=T.UG-T.o2, T.MF=T.window[l],T.MF=(T.MF<=3&&(T.MF=(T.MF<=3)if(k=jm(T,T.UG-T.G4,T.Bk-3),T.Hh-=T.Bk,T.Bk<=T.UO&&T.Hh>=3){T.Bk--;do T.UG++,T.MF=(T.MF<=3&&(T.MF=(T.MF<4096)&&(T.Bk=2));if(T.H4>=3&&T.Bk<=T.H4){l=T.UG+T.Hh-3;k=jm(T,T.UG-1-T.PX,T.H4-3);T.Hh-=T.H4-1;T.H4-=2;do++T.UG<=l&&(T.MF=(T.MF<=3&&T.UG>0&&(l=T.UG-1,k=L[l],k===L[++l]&&k===L[++l]&&k===L[++l])){for(v=T.UG+258;k===L[++l]&&k===L[++l]&&k===L[++l]&&k===L[++l]&&k===L[++l]&&k===L[++l]&&k===L[++l]&&k===L[++l]&&lT.Hh&&(T.Bk=T.Hh)}T.Bk>=3?(k=jm(T,1,T.Bk-3),T.Hh-=T.Bk,T.UG+=T.Bk,T.Bk=0):(k=jm(T,0,T.window[T.UG]),T.Hh--,T.UG++);if(k&&(gE(T,!1),T.Wn.EW===0))return 1}T.o2=0;return Q=== 4?(gE(T,!0),T.Wn.EW===0?3:4):T.W4&&(gE(T,!1),T.Wn.EW===0)?1:2}; Gl5=function(T,Q){for(var k;;){if(T.Hh===0&&(Z0(T),T.Hh===0)){if(Q===0)return 1;break}T.Bk=0;k=jm(T,0,T.window[T.UG]);T.Hh--;T.UG++;if(k&&(gE(T,!1),T.Wn.EW===0))return 1}T.o2=0;return Q===4?(gE(T,!0),T.Wn.EW===0?3:4):T.W4&&(gE(T,!1),T.Wn.EW===0)?1:2}; ma=function(T,Q,k,l,v){this.dX=T;this.MQ=Q;this.mO_=k;this.DU=l;this.func=v}; mF6=function(){this.Wn=null;this.status=0;this.Ab=null;this.wrap=this.pending=this.Qf=this.MB=0;this.NF=null;this.vH=0;this.method=8;this.JN=-1;this.dQ=this.fT=this.Ay=0;this.window=null;this.FP=0;this.head=this.AV=null;this.r0=this.rU=this.strategy=this.level=this.UO=this.Q0=this.H4=this.Hh=this.G4=this.UG=this.BV=this.PX=this.Bk=this.l5=this.IY=this.b6=this.wR=this.UA=this.MF=0;this.rC=new Hq.oY(1146);this.s6=new Hq.oY(122);this.k$=new Hq.oY(78);ob(this.rC);ob(this.s6);ob(this.k$);this.Kb=this.FW= this.t4=null;this.X3=new Hq.oY(16);this.P1=new Hq.oY(573);ob(this.P1);this.c$=this.KS=0;this.depth=new Hq.oY(573);ob(this.depth);this.Db=this.Gs=this.o2=this.matches=this.tJ=this.kQ=this.pQ=this.W4=this.US=this.c6=0}; IT5=function(T,Q){if(!T||!T.state||Q>5||Q<0)return T?lK(T,-2):-2;var k=T.state;if(!T.output||!T.input&&T.KB!==0||k.status===666&&Q!==4)return lK(T,T.EW===0?-5:-2);k.Wn=T;var l=k.JN;k.JN=Q;if(k.status===42)if(k.wrap===2)T.CY=0,MI(k,31),MI(k,139),MI(k,8),k.NF?(MI(k,(k.NF.text?1:0)+(k.NF.WB?2:0)+(k.NF.extra?4:0)+(k.NF.name?8:0)+(k.NF.comment?16:0)),MI(k,k.NF.time&255),MI(k,k.NF.time>>8&255),MI(k,k.NF.time>>16&255),MI(k,k.NF.time>>24&255),MI(k,k.level===9?2:k.strategy>=2||k.level<2?4:0),MI(k,k.NF.os& 255),k.NF.extra&&k.NF.extra.length&&(MI(k,k.NF.extra.length&255),MI(k,k.NF.extra.length>>8&255)),k.NF.WB&&(T.CY=Rb(T.CY,k.Ab,k.pending,0)),k.vH=0,k.status=69):(MI(k,0),MI(k,0),MI(k,0),MI(k,0),MI(k,0),MI(k,k.level===9?2:k.strategy>=2||k.level<2?4:0),MI(k,3),k.status=113);else{var v=8+(k.fT-8<<4)<<8;v|=(k.strategy>=2||k.level<2?0:k.level<6?1:k.level===6?2:3)<<6;k.UG!==0&&(v|=32);k.status=113;Yi(k,v+(31-v%31));k.UG!==0&&(Yi(k,T.CY>>>16),Yi(k,T.CY&65535));T.CY=1}if(k.status===69)if(k.NF.extra){for(v= k.pending;k.vH<(k.NF.extra.length&65535)&&(k.pending!==k.MB||(k.NF.WB&&k.pending>v&&(T.CY=Rb(T.CY,k.Ab,k.pending-v,v)),vN(T),v=k.pending,k.pending!==k.MB));)MI(k,k.NF.extra[k.vH]&255),k.vH++;k.NF.WB&&k.pending>v&&(T.CY=Rb(T.CY,k.Ab,k.pending-v,v));k.vH===k.NF.extra.length&&(k.vH=0,k.status=73)}else k.status=73;if(k.status===73)if(k.NF.name){v=k.pending;do{if(k.pending===k.MB&&(k.NF.WB&&k.pending>v&&(T.CY=Rb(T.CY,k.Ab,k.pending-v,v)),vN(T),v=k.pending,k.pending===k.MB)){var L=1;break}L=k.vHv&&(T.CY=Rb(T.CY,k.Ab,k.pending-v,v));L===0&&(k.vH=0,k.status=91)}else k.status=91;if(k.status===91)if(k.NF.comment){v=k.pending;do{if(k.pending===k.MB&&(k.NF.WB&&k.pending>v&&(T.CY=Rb(T.CY,k.Ab,k.pending-v,v)),vN(T),v=k.pending,k.pending===k.MB)){L=1;break}L=k.vHv&&(T.CY=Rb(T.CY,k.Ab,k.pending-v,v));L===0&&(k.status=103)}else k.status= 103;k.status===103&&(k.NF.WB?(k.pending+2>k.MB&&vN(T),k.pending+2<=k.MB&&(MI(k,T.CY&255),MI(k,T.CY>>8&255),T.CY=0,k.status=113)):k.status=113);if(k.pending!==0){if(vN(T),T.EW===0)return k.JN=-1,0}else if(T.KB===0&&(Q<<1)-(Q>4?9:0)<=(l<<1)-(l>4?9:0)&&Q!==4)return lK(T,-5);if(k.status===666&&T.KB!==0)return lK(T,-5);if(T.KB!==0||k.Hh!==0||Q!==0&&k.status!==666){l=k.strategy===2?Gl5(k,Q):k.strategy===3?fT5(k,Q):Ib[k.level].func(k,Q);if(l===3||l===4)k.status=666;if(l===1||l===3)return T.EW===0&&(k.JN= -1),0;if(l===2&&(Q===1?($h(k,2,3),JJ(k,256,Le),k.Db===16?(Wq(k,k.Gs),k.Gs=0,k.Db=0):k.Db>=8&&(k.Ab[k.pending++]=k.Gs&255,k.Gs>>=8,k.Db-=8)):Q!==5&&($h(k,0,3),L5X(k,0,0),Q===3&&(ob(k.head),k.Hh===0&&(k.UG=0,k.l5=0,k.o2=0))),vN(T),T.EW===0))return k.JN=-1,0}if(Q!==4)return 0;if(k.wrap<=0)return 1;k.wrap===2?(MI(k,T.CY&255),MI(k,T.CY>>8&255),MI(k,T.CY>>16&255),MI(k,T.CY>>24&255),MI(k,T.wY&255),MI(k,T.wY>>8&255),MI(k,T.wY>>16&255),MI(k,T.wY>>24&255)):(Yi(k,T.CY>>>16),Yi(k,T.CY&65535));vN(T);k.wrap>0&& (k.wrap=-k.wrap);return k.pending!==0?0:1}; hI=function(T){if(!(this instanceof hI))return new hI(T);T=this.options=Hq.assign({level:-1,method:8,chunkSize:16384,x4:15,SKk:8,strategy:0,to:""},T||{});T.raw&&T.x4>0?T.x4=-T.x4:T.x7&&T.x4>0&&T.x4<16&&(T.x4+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Wn=new h8u;this.Wn.EW=0;var Q=this.Wn;var k=T.level,l=T.method,v=T.x4,L=T.SKk,q=T.strategy;if(Q){var Y=1;k===-1&&(k=6);v<0?(Y=0,v=-v):v>15&&(Y=2,v-=16);if(L<1||L>9||l!==8||v<8||v>15||k<0||k>9||q<0||q>4)Q=lK(Q,-2);else{v===8&&(v=9); var U=new mF6;Q.state=U;U.Wn=Q;U.wrap=Y;U.NF=null;U.fT=v;U.Ay=1<>=7;L<30;L++)for(Tf[L]=q<<7,v=0;v<1<=R.Ay&&(Q===0&&(ob(R.head),R.UG=0,R.l5=0,R.o2=0),k=new Hq.Pt(R.Ay),Hq.En(k,L,q-R.Ay,R.Ay,0),L=k,q=R.Ay);k=T.KB;l=T.jp;v=T.input;T.KB=q;T.jp=0;T.input=L;for(Z0(R);R.Hh>=3;){L=R.UG;q=R.Hh-2;do R.MF=(R.MF<=-5?(((0,k[32])(k[78],k[55]),k[53])(k[22],k[18]),(0,k[32])(k[77],k[55])):(0,k[36])((0,k[58])(k[4],k[68],(0,k[49])()),k[58],(0,k[60])(k[38],k[74]),k[4],k[74],(0,k[37])()),k[59]!=0&&((((0,k[51])((0,k[51])((0,k[0])(k[55],k[62]),k[81],k[7],k[39]),k[16],k[80],k[76]),k[21])(k[39], k[29]),k[72])((0,k[74])(k[82],k[30]),k[53],k[49],k[5]),M[33])||((((0,k[53])(k[47],k[11]),(0,k[53])(k[48],k[76]),k[21])(k[30],k[63]),k[21])(k[30],k[0]),k[79])(k[25],k[5],(0,k[58])())*(0,k[81])(k[71],k[76])}catch(l){(0,k[72])((0,k[72])((0,k[79])(k[25],k[5],(0,k[78])()),k[81],k[26],k[39]),k[21],k[30],k[37])}try{k[45]>-9&&(k[41]>-3&&((0,k[53])(k[41],k[30]),3)||(0,k[81])(k[51],k[30]))}catch(l){(0,k[new Date(M[83])/1E3])(k[25],k[5],(0,k[70])())}finally{k[31]!=-7&&(k[62]>=9?(0,k[44])(k[4],k[5]):(0,k[79])(k[25], k[11],(0,k[58])())),k[48]!==0&&(k[17]!=-9?(0,k[79])(k[25],k[5],(0,k[10])()):(0,k[40])(k[5])),k[52]!=6&&(((0,k[72])((0,k[44])(k[21-new Date(M[45])/1E3],k[68]),k[78],k[26],k[16]),k[12])((0,k[new Date(M[44])/1E3])(k[6],k[30]),k[63],k[36]),(0,k[12])((0,k[65])(k[8]),k[6],k[14],k[48]),k[15])(k[40],k[29])%(0,k[65])(k[20],k[3]),k[20]!==-5&&(k[55]!==10||((0,k[12])(k[50],k[2]),0))&&(0,k[37])(k[56],k[28]),k[1]>new Date(M[11])/1E3&&(k[35]!=-5&&((0,k[new Date(M[73])/1E3])(k[45],k[3]),1)||(0,k[74])(k[9],k[3]))}try{k[18]<= -1&&((((((0,k[39])(k[8],k[28],(0,k[48])()),k[37])(k[5],k[79]),k[65])(k[63],k[42]),k[37])(k[68],k[79]),k[37])(k[72],k[79]),M[69])||(((((0,k[74])(k[new Date(M[56])/1E3],k[42]),k[71])(k[52],k[62]),k[46])(k[84],k[72]),k[22])(k[38],k[31]),k[22])(k[60],k[64]),k[65]!=-6&&(k[43]>-7&&((0,k[new Date(M[88])/1E3])(k[39],k[32]),{})||(0,k[0])(k[49])),k[26]!==-4&&(k[71]<=-10?((0,k[new Date(M[57])/1E3])(k[31],k[57]),k[46])(k[15],k[29],(0,k[47])()):(0,k[53])((0,k[44])(k[37],k[35]),k[19],k[49],k[71]))}catch(l){(0,k[16])(k[70], k[5],(0,k[25])()),((0,k[16])(k[70],k[84],(0,k[25])()),k[57])(k[84])}try{k[32]!==-8&&((0,k[21])(k[63],k[65]),(0,k[23])((0,k[14])(k[46],k[84]),k[51],k[73],k[27]),k[31])(k[41],k[32]),((0,k[29])(k[22]),k[14])(k[41]),(0,k[12])(k[13])}catch(l){(k[48]===4||(((((0,k[8])(k[0],k[41]),k[31])(k[13],k[42]),k[63])(k[10],k[41]),k[63])(k[68],k[13]),null))&&(((0,k[14])(k[69]),k[58])(k[27],k[47],(0,k[59])()),(0,k[8])(k[18],k[41]),k[58])(k[27],k[41],(0,k[67])())}}catch(l){return M[74]+T}return Q[M[60]](M[29])}; g.zf=function(T){this.name=T}; Pog=function(T){this.g5=JP(T)}; XH=function(T){this.g5=JP(T)}; wE=function(T){this.g5=JP(T)}; HLt=function(T){this.g5=JP(T)}; dE=function(T){this.g5=JP(T)}; NI=function(T){this.g5=JP(T)}; AI=function(T){this.g5=JP(T)}; bK=function(T){this.g5=JP(T)}; rE=function(T){this.g5=JP(T)}; cN=function(T){this.g5=JP(T)}; D0=function(T){this.g5=JP(T)}; ab=function(T){this.g5=JP(T)}; uK=function(T){this.g5=JP(T)}; ne=function(T){this.g5=JP(T)}; Ke=function(T){this.g5=JP(T)}; xi=function(T){this.g5=JP(T,500)}; PN=function(T){this.g5=JP(T)}; HN=function(T){this.g5=JP(T)}; taI=function(T){this.g5=JP(T)}; OL5=function(){return g.jA("yt.ads.biscotti.lastId_")||""}; p45=function(T){g.Tv("yt.ads.biscotti.lastId_",T)}; WN=function(){var T=arguments,Q=tI;T.length>1?Q[T[0]]=T[1]:T.length===1&&Object.assign(Q,T[0])}; g.$i=function(T,Q){return T in tI?tI[T]:Q}; JI=function(T){var Q=tI.EXPERIMENT_FLAGS;return Q?Q[T]:void 0}; W5H=function(T){em.forEach(function(Q){return Q(T)})}; g.E4=function(T){return T&&window.yterr?function(){try{return T.apply(this,arguments)}catch(Q){g.FH(Q)}}:T}; g.FH=function(T){var Q=g.jA("yt.logging.errors.log");Q?Q(T,"ERROR",void 0,void 0,void 0,void 0,void 0):(Q=g.$i("ERRORS",[]),Q.push([T,"ERROR",void 0,void 0,void 0,void 0,void 0]),WN("ERRORS",Q));W5H(T)}; iK=function(T,Q,k,l,v){var L=g.jA("yt.logging.errors.log");L?L(T,"WARNING",Q,k,l,void 0,v):(L=g.$i("ERRORS",[]),L.push([T,"WARNING",Q,k,l,void 0,v]),WN("ERRORS",L))}; Vt=function(T,Q){Q=T.split(Q);for(var k={},l=0,v=Q.length;l1?T[1]:T[0])):{}}; lC=function(T,Q){return F55(T,Q||{},!0)}; oU=function(T,Q){return F55(T,Q||{},!1)}; F55=function(T,Q,k){var l=T.split("#",2);T=l[0];l=l.length>1?"#"+l[1]:"";var v=T.split("?",2);T=v[0];v=QI(v[1]||"");for(var L in Q)if(k||!g.MM(v,L))v[L]=Q[L];return g.sD(T,v)+l}; vD=function(T){if(!Q)var Q=window.location.href;var k=g.UD(T)[1]||null,l=g.Rq(T);k&&l?(T=g.UD(T),Q=g.UD(Q),T=T[3]==Q[3]&&T[1]==Q[1]&&T[4]==Q[4]):T=l?g.Rq(Q)===l&&(Number(g.UD(Q)[4]||null)||null)===(Number(g.UD(T)[4]||null)||null):!0;return T}; Lh=function(T){T||(T=document.location.href);T=g.UD(T)[1]||null;return T!==null&&T==="https"}; q2=function(T){T=E35(T);return T===null?!1:T[0]==="com"&&T[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; yd5=function(T){T=E35(T);return T===null?!1:T[1]==="google"?!0:T[2]==="google"?T[0]==="au"&&T[1]==="com"?!0:T[0]==="uk"&&T[1]==="co"?!0:!1:!1}; E35=function(T){T=g.Rq(T);return T!==null?T.split(".").reverse():null}; $Fb=function(T){return T&&T.match(iLy)?T:bX(T)}; Y5=function(T){var Q=gV;T=T===void 0?OL5():T;var k=Object,l=k.assign,v=M2(Q);var L=Q.T;try{var q=L.screenX;var Y=L.screenY}catch(r){}try{var U=L.outerWidth;var R=L.outerHeight}catch(r){}try{var Z=L.innerWidth;var f=L.innerHeight}catch(r){}try{var G=L.screenLeft;var m=L.screenTop}catch(r){}try{Z=L.innerWidth,f=L.innerHeight}catch(r){}try{var I=L.screen.availWidth;var z=L.screen.availTop}catch(r){}L=[G,m,q,Y,I,z,U,R,Z,f];q=l9J(!1,Q.T.top);Y={};var w=w===void 0?g.VC:w;U=new H0;"SVGElement"in w&&"createElementNS"in w.document&&U.set(0);R=ksJ();R["allow-top-navigation-by-user-activation"]&&U.set(1);R["allow-popups-to-escape-sandbox"]&&U.set(2);w.crypto&&w.crypto.subtle&&U.set(3);"TextDecoder"in w&&"TextEncoder"in w&&U.set(4);w=Xcu(U);Q=(Y.bc=w,Y.bih=q.height,Y.biw=q.width,Y.brdim=L.join(),Y.vis=vu(Q.S),Y.wgl=!!rK.WebGLRenderingContext,Y);k=l.call(k,v,Q);k.ca_type="image";T&&(k.bid=T);return k}; M2=function(T){var Q={};Q.dt=Vay;Q.flash="0";a:{try{var k=T.T.top.location.href}catch(R){T=2;break a}T=k?k===T.S.location.href?0:1:2}Q=(Q.frm=T,Q);try{Q.u_tz=-(new Date).getTimezoneOffset();try{var l=rK.history.length}catch(R){l=0}Q.u_his=l;var v;Q.u_h=(v=rK.screen)==null?void 0:v.height;var L;Q.u_w=(L=rK.screen)==null?void 0:L.width;var q;Q.u_ah=(q=rK.screen)==null?void 0:q.availHeight;var Y;Q.u_aw=(Y=rK.screen)==null?void 0:Y.availWidth;var U;Q.u_cd=(U=rK.screen)==null?void 0:U.colorDepth}catch(R){}return Q}; Q56=function(){if(!TbJ)return null;var T=TbJ();return"open"in T?T:null}; g.RU=function(T){switch(UG(T)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; UG=function(T){return T&&"status"in T?T.status:-1}; g.Zq=function(T,Q){typeof T==="function"&&(T=g.E4(T));return window.setTimeout(T,Q)}; g.fh=function(T,Q){typeof T==="function"&&(T=g.E4(T));return window.setInterval(T,Q)}; g.GO=function(T){window.clearTimeout(T)}; g.m6=function(T){window.clearInterval(T)}; g.hH=function(T){T=IU(T);return typeof T==="string"&&T==="false"?!1:!!T}; g.sG=function(T,Q){T=IU(T);return T===void 0&&Q!==void 0?Q:Number(T||0)}; SS=function(){return g.$i("EXPERIMENTS_TOKEN","")}; IU=function(T){return g.$i("EXPERIMENT_FLAGS",{})[T]}; Ch=function(){for(var T=[],Q=g.$i("EXPERIMENTS_FORCED_FLAGS",{}),k=g.B(Object.keys(Q)),l=k.next();!l.done;l=k.next())l=l.value,T.push({key:l,value:String(Q[l])});k=g.$i("EXPERIMENT_FLAGS",{});l=g.B(Object.keys(k));for(var v=l.next();!v.done;v=l.next())v=v.value,v.startsWith("force_")&&Q[v]===void 0&&T.push({key:v,value:String(k[v])});return T}; BD=function(T,Q,k,l,v,L,q,Y){function U(){(R&&"readyState"in R?R.readyState:0)===4&&Q&&g.E4(Q)(R)} k=k===void 0?"GET":k;l=l===void 0?"":l;Y=Y===void 0?!1:Y;var R=Q56();if(!R)return null;"onloadend"in R?R.addEventListener("loadend",U,!1):R.onreadystatechange=U;g.hH("debug_forward_web_query_parameters")&&(T=j5J(T));R.open(k,T,!0);L&&(R.responseType=L);q&&(R.withCredentials=!0);k=k==="POST"&&(window.FormData===void 0||!(l instanceof FormData));if(v=kcg(T,v))for(var Z in v)R.setRequestHeader(Z,v[Z]),"content-type"===Z.toLowerCase()&&(k=!1);k&&R.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(Y&&"setAttributionReporting"in XMLHttpRequest.prototype){T={eventSourceEligible:!0,triggerEligible:!1};try{R.setAttributionReporting(T)}catch(f){iK(f)}}R.send(l);return R}; kcg=function(T,Q){Q=Q===void 0?{}:Q;var k=vD(T),l=g.$i("INNERTUBE_CLIENT_NAME"),v=g.hH("web_ajax_ignore_global_headers_if_set"),L;for(L in lbX){var q=g.$i(lbX[L]),Y=L==="X-Goog-AuthUser"||L==="X-Goog-PageId";L!=="X-Goog-Visitor-Id"||q||(q=g.$i("VISITOR_DATA"));var U;if(!(U=!q)){if(!(U=k||(g.Rq(T)?!1:!0))){U=T;var R;if(R=g.hH("add_auth_headers_to_remarketing_google_dot_com_ping")&&L==="Authorization"&&(l==="TVHTML5"||l==="TVHTML5_UNPLUGGED"||l==="TVHTML5_SIMPLY")&&yd5(U))U=Zz(U)||"",U=U.split("/"), U="/"+(U.length>1?U[1]:""),R=U==="/pagead";U=R?!0:!1}U=!U}U||v&&Q[L]!==void 0||l==="TVHTML5_UNPLUGGED"&&Y||(Q[L]=q)}"X-Goog-EOM-Visitor-Id"in Q&&"X-Goog-Visitor-Id"in Q&&delete Q["X-Goog-Visitor-Id"];if(k||!g.Rq(T))Q["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(k||!g.Rq(T)){try{var Z=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(f){}Z&&(Q["X-YouTube-Time-Zone"]=Z)}document.location.hostname.endsWith("youtubeeducation.com")||!k&&g.Rq(T)||(Q["X-YouTube-Ad-Signals"]= TO(Y5()));return Q}; Xw=function(T,Q){Q.method="POST";Q.postParams||(Q.postParams={});return g.zO(T,Q)}; L_J=function(T,Q){if(window.fetch&&Q.format!=="XML"){var k={method:Q.method||"GET",credentials:"same-origin"};Q.headers&&(k.headers=Q.headers);Q.priority&&(k.priority=Q.priority);T=o2C(T,Q);var l=v2I(T,Q);l&&(k.body=l);Q.withCredentials&&(k.credentials="include");var v=Q.context||g.VC,L=!1,q;fetch(T,k).then(function(Y){if(!L){L=!0;q&&g.GO(q);var U=Y.ok,R=function(Z){Z=Z||{};U?Q.onSuccess&&Q.onSuccess.call(v,Z,Y):Q.onError&&Q.onError.call(v,Z,Y);Q.onFinish&&Q.onFinish.call(v,Z,Y)}; (Q.format||"JSON")==="JSON"&&(U||Y.status>=400&&Y.status<500)?Y.json().then(R,function(){R(null)}):R(null)}}).catch(function(){Q.onError&&Q.onError.call(v,{},{})}); T=Q.timeout||0;Q.onFetchTimeout&&T>0&&(q=g.Zq(function(){L||(L=!0,g.GO(q),Q.onFetchTimeout.call(Q.context||g.VC))},T))}else g.zO(T,Q)}; g.zO=function(T,Q){var k=Q.format||"JSON";T=o2C(T,Q);var l=v2I(T,Q),v=!1,L=qpI(T,function(U){if(!v){v=!0;Y&&g.GO(Y);var R=g.RU(U),Z=null,f=400<=U.status&&U.status<500,G=500<=U.status&&U.status<600;if(R||f||G)Z=g2C(T,k,U,Q.convertToSafeHtml);R&&(R=MhI(k,U,Z));Z=Z||{};f=Q.context||g.VC;R?Q.onSuccess&&Q.onSuccess.call(f,U,Z):Q.onError&&Q.onError.call(f,U,Z);Q.onFinish&&Q.onFinish.call(f,U,Z)}},Q.method,l,Q.headers,Q.responseType,Q.withCredentials); l=Q.timeout||0;if(Q.onTimeout&&l>0){var q=Q.onTimeout;var Y=g.Zq(function(){v||(v=!0,L.abort(),g.GO(Y),q.call(Q.context||g.VC,L))},l)}return L}; o2C=function(T,Q){Q.includeDomain&&(T=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+T);var k=g.$i("XSRF_FIELD_NAME");if(Q=Q.urlParams)Q[k]&&delete Q[k],T=lC(T,Q);return T}; v2I=function(T,Q){var k=g.$i("XSRF_FIELD_NAME"),l=g.$i("XSRF_TOKEN"),v=Q.postBody||"",L=Q.postParams,q=g.$i("XSRF_FIELD_NAME"),Y;Q.headers&&(Y=Q.headers["Content-Type"]);Q.excludeXsrf||g.Rq(T)&&!Q.withCredentials&&g.Rq(T)!==document.location.hostname||Q.method!=="POST"||Y&&Y!=="application/x-www-form-urlencoded"||Q.postParams&&Q.postParams[q]||(L||(L={}),L[k]=l);(g.hH("ajax_parse_query_data_only_when_filled")&&L&&Object.keys(L).length>0||L)&&typeof v==="string"&&(v=QI(v),g.Is(v,L),v=Q.postBodyFormat&& Q.postBodyFormat==="JSON"?JSON.stringify(v):g.h3(v));L=v||L&&!g.Rs(L);!Ypt&&L&&Q.method!=="POST"&&(Ypt=!0,g.FH(Error("AJAX request with postData should use POST")));return v}; g2C=function(T,Q,k,l){var v=null;switch(Q){case "JSON":try{var L=k.responseText}catch(q){throw l=Error("Error reading responseText"),l.params=T,iK(l),q;}T=k.getResponseHeader("Content-Type")||"";L&&T.indexOf("json")>=0&&(L.substring(0,5)===")]}'\n"&&(L=L.substring(5)),v=JSON.parse(L));break;case "XML":if(T=(T=k.responseXML)?USg(T):null)v={},g.EA(T.getElementsByTagName("*"),function(q){v[q.tagName]=R1T(q)})}l&&Ziy(v); return v}; Ziy=function(T){if(g.vm(T))for(var Q in T)Q==="html_content"||tfJ(Q,"_html")?T[Q]=Zo(T[Q]):Ziy(T[Q])}; MhI=function(T,Q,k){if(Q&&Q.status===204)return!0;switch(T){case "JSON":return!!k;case "XML":return Number(k&&k.return_code)===0;case "RAW":return!0;default:return!!k}}; USg=function(T){return T?(T=("responseXML"in T?T.responseXML:T).getElementsByTagName("root"))&&T.length>0?T[0]:null:null}; R1T=function(T){var Q="";g.EA(T.childNodes,function(k){Q+=k.nodeValue}); return Q}; j5J=function(T){var Q=window.location.search,k=g.Rq(T);g.hH("debug_handle_relative_url_for_query_forward_killswitch")||!k&&vD(T)&&(k=document.location.hostname);var l=Zz(T);l=(k=k&&(k.endsWith("youtube.com")||k.endsWith("youtube-nocookie.com")))&&l&&l.startsWith("/api/");if(!k||l)return T;var v=QI(Q),L={};g.EA(fbt,function(q){v[q]&&(L[q]=v[q])}); return oU(T,L)}; dV=function(T,Q){var k=g.Gs(Q),l;return(new g.rc(function(v,L){k.onSuccess=function(q){g.RU(q)?v(new GcI(q)):L(new wV("Request failed, status="+UG(q),"net.badstatus",q))}; k.onError=function(q){L(new wV("Unknown request error","net.unknown",q))}; k.onTimeout=function(q){L(new wV("Request timed out","net.timeout",q))}; l=g.zO(T,k)})).kE(function(v){if(v instanceof KL){var L; (L=l)==null||L.abort()}return aS(v)})}; g.N2=function(T,Q,k,l,v,L){function q(U,R,Z){return U.kE(function(f){if(R<=0||UG(f.xhr)===403)return aS(new wV("Request retried too many times","net.retryexhausted",f.xhr,f));var G=Math.pow(2,k-R+1)*Z,m=v>0?Math.min(v,G):G;return Y(Z).then(function(){L&&L(f,R-1);return q(dV(T,Q),R-1,m)})})} function Y(U){return new g.rc(function(R){setTimeout(R,U)})} v=v===void 0?-1:v;return q(dV(T,Q),k-1,l)}; wV=function(T,Q,k){Gv.call(this,T+", errorCode="+Q);this.errorCode=Q;this.xhr=k;this.name="PromiseAjaxError"}; GcI=function(T){this.xhr=T}; AH=function(T){this.T=T===void 0?null:T;this.L=0;this.S=null}; bC=function(T){var Q=new AH;T=T===void 0?null:T;Q.L=2;Q.S=T===void 0?null:T;return Q}; rV=function(T){var Q=new AH;T=T===void 0?null:T;Q.L=1;Q.S=T===void 0?null:T;return Q}; g.aU=function(T,Q,k,l,v){cD||Dq.set(""+T,Q,{w$:k,path:"/",domain:l===void 0?"youtube.com":l,secure:v===void 0?!1:v})}; g.uC=function(T,Q){if(!cD)return Dq.get(""+T,Q)}; g.nh=function(T,Q,k){cD||Dq.remove(""+T,Q===void 0?"/":Q,k===void 0?"youtube.com":k)}; mSJ=function(){if(g.hH("embeds_web_enable_cookie_detection_fix")){if(!g.VC.navigator.cookieEnabled)return!1}else if(!Dq.isEnabled())return!1;if(!Dq.isEmpty())return!0;g.hH("embeds_web_enable_cookie_detection_fix")?Dq.set("TESTCOOKIESENABLED","1",{w$:60,eZ_:"none",secure:!0}):Dq.set("TESTCOOKIESENABLED","1",{w$:60});if(Dq.get("TESTCOOKIESENABLED")!=="1")return!1;Dq.remove("TESTCOOKIESENABLED");return!0}; g.t=function(T,Q){if(T)return T[Q.name]}; Kh=function(T){var Q=g.$i("INNERTUBE_HOST_OVERRIDE");Q&&(T=String(Q)+String(fI(T)));return T}; Ib5=function(T){var Q={};g.hH("json_condensed_response")&&(Q.prettyPrint="false");return T=oU(T,Q)}; x5=function(T,Q){var k=k===void 0?{}:k;T={method:Q===void 0?"POST":Q,mode:vD(T)?"same-origin":"cors",credentials:vD(T)?"same-origin":"include"};Q={};for(var l=g.B(Object.keys(k)),v=l.next();!v.done;v=l.next())v=v.value,k[v]&&(Q[v]=k[v]);Object.keys(Q).length>0&&(T.headers=Q);return T}; PD=function(){var T=/Chrome\/(\d+)/.exec(g.KJ());return T?parseFloat(T[1]):NaN}; HD=function(){var T=/\sCobalt\/(\S+)\s/.exec(g.KJ());if(!T)return NaN;var Q=[];T=g.B(T[1].split("."));for(var k=T.next();!k.done;k=T.next())k=parseInt(k.value,10),k>=0&&Q.push(k);return parseFloat(Q.join("."))}; OG=function(){return g.tH("android")&&g.tH("chrome")&&!(g.tH("trident/")||g.tH("edge/"))&&!g.tH("cobalt")}; h1y=function(){return g.tH("armv7")||g.tH("aarch64")||g.tH("android")}; g.ph=function(){return g.tH("cobalt")}; WD=function(){return g.tH("cobalt")&&g.tH("appletv")}; $5=function(){return g.tH("(ps3; leanback shell)")||g.tH("ps3")&&g.ph()}; s5f=function(){return g.tH("(ps4; leanback shell)")||g.tH("ps4")&&g.ph()}; g.SpC=function(){return g.ph()&&(g.tH("ps4 vr")||g.tH("ps4 pro vr"))}; JH=function(){var T=/WebKit\/([0-9]+)/.exec(g.KJ());return!!(T&&parseInt(T[1],10)>=600)}; eS=function(){var T=/WebKit\/([0-9]+)/.exec(g.KJ());return!!(T&&parseInt(T[1],10)>=602)}; CHg=function(){return g.tH("iemobile")||g.tH("windows phone")&&g.tH("edge")}; yI=function(){return(Fw||EG)&&g.tH("applewebkit")&&!g.tH("version")&&(!g.tH("safari")||g.tH("gsa/"))}; VI=function(){return g.iC&&g.tH("version/")}; TL=function(){return g.tH("smart-tv")&&g.tH("samsung")}; g.tH=function(T){var Q=g.KJ();return Q?Q.toLowerCase().indexOf(T)>=0:!1}; Qe=function(){return o4X()||yI()||VI()?!0:g.$i("EOM_VISITOR_DATA")?!1:!0}; jG=function(T,Q){return Q===void 0||Q===null?T:Q==="1"||Q===!0||Q===1||Q==="True"?!0:!1}; kq=function(T,Q,k){for(var l in k)if(k[l]==Q)return k[l];return T}; lu=function(T,Q){return Q===void 0||Q===null?T:Number(Q)}; o1=function(T,Q){return Q===void 0||Q===null?T:Q.toString()}; vy=function(T,Q){if(Q){if(T==="fullwidth")return Infinity;if(T==="fullheight")return 0}return T&&(Q=T.match(Bbg))&&(T=Number(Q[2]),Q=Number(Q[1]),!isNaN(T)&&!isNaN(Q)&&T>0)?Q/T:NaN}; LY=function(T){var Q=T.docid||T.video_id||T.videoId||T.id;if(Q)return Q;Q=T.raw_player_response;Q||(T=T.player_response)&&(Q=JSON.parse(T));return Q&&Q.videoDetails&&Q.videoDetails.videoId||null}; z15=function(T){return q5(T,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.gi=function(T){return T==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||T==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; q5=function(T,Q){Q=(Q===void 0?0:Q)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(Q="EMBEDDED_PLAYER_MODE_PFL");var k=T.raw_embedded_player_response;if(!k&&(T=T.embedded_player_response))try{k=JSON.parse(T)}catch(l){return Q}return k?kq(Q,k.embeddedPlayerMode,XnI):Q}; Yq=function(T){Gv.call(this,T.message||T.description||T.name);this.isMissing=T instanceof M5;this.isTimeout=T instanceof wV&&T.errorCode=="net.timeout";this.isCanceled=T instanceof KL}; M5=function(){Gv.call(this,"Biscotti ID is missing from server")}; wnb=function(){if(g.hH("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Qe())return Error("User has not consented - not fetching biscotti id.");var T=g.$i("PLAYER_VARS",{});if(g.ZW(T,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(z15(T))return Error("Biscotti id fetching has been disabled for pfl.")}; bif=function(){var T=wnb();if(T!==void 0)return aS(T);Ur||(Ur=dV("//googleads.g.doubleclick.net/pagead/id",dS5).then(Nb5).kE(function(Q){return A8f(2,Q)})); return Ur}; Nb5=function(T){T=T.xhr.responseText;if(!AV(T,")]}'"))throw new M5;T=JSON.parse(T.substr(4));if((T.type||1)>1)throw new M5;T=T.id;p45(T);Ur=rV(T);r85(18E5,2);return T}; A8f=function(T,Q){Q=new Yq(Q);p45("");Ur=bC(Q);T>0&&r85(12E4,T-1);throw Q;}; r85=function(T,Q){g.Zq(function(){dV("//googleads.g.doubleclick.net/pagead/id",dS5).then(Nb5,function(k){return A8f(Q,k)}).kE(g.DM)},T)}; c8X=function(){try{var T=g.jA("yt.ads.biscotti.getId_");return T?T():bif()}catch(Q){return aS(Q)}}; abX=function(T){T&&(T.dataset?T.dataset[DSJ()]="true":kvu(T))}; upb=function(T){return T?T.dataset?T.dataset[DSJ()]:T.getAttribute("data-loaded"):null}; DSJ=function(){return n2t.loaded||(n2t.loaded="loaded".replace(/\-([a-z])/g,function(T,Q){return Q.toUpperCase()}))}; K_b=function(){var T=document;if("visibilityState"in T)return T.visibilityState;var Q=R1+"VisibilityState";if(Q in T)return T[Q]}; Zk=function(T,Q){var k;$4(T,function(l){k=Q[l];return!!k}); return k}; fY=function(T){if(T.requestFullscreen)T=T.requestFullscreen(void 0);else if(T.webkitRequestFullscreen)T=T.webkitRequestFullscreen();else if(T.mozRequestFullScreen)T=T.mozRequestFullScreen();else if(T.msRequestFullscreen)T=T.msRequestFullscreen();else if(T.webkitEnterFullscreen)T=T.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return T instanceof Promise?T:Promise.resolve()}; I1=function(T){var Q;g.GL()?md()==T&&(Q=document):Q=T;return Q&&(T=Zk(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],Q))?(Q=T.call(Q),Q instanceof Promise?Q:Promise.resolve()):Promise.resolve()}; xSf=function(T){return g.sA(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(Q){return"on"+Q.toLowerCase()in T})}; PHC=function(){var T=document;return g.sA(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(Q){return"on"+Q.toLowerCase()in T})}; g.GL=function(){return!!Zk(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; md=function(T){T=T===void 0?!1:T;var Q=Zk(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(T)for(;Q&&Q.shadowRoot;)Q=Q.shadowRoot.fullscreenElement;return Q?Q:null}; hg=function(T){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(T=T||window.event){this.event=T;for(var Q in T)Q in Hit||(this[Q]=T[Q]);this.scale=T.scale;this.rotation=T.rotation;var k=T.target||T.srcElement;k&&k.nodeType==3&&(k=k.parentNode);this.target=k;var l=T.relatedTarget; if(l)try{l=l.nodeName?l:null}catch(v){l=null}else this.type=="mouseover"?l=T.fromElement:this.type=="mouseout"&&(l=T.toElement);this.relatedTarget=l;this.clientX=T.clientX!=void 0?T.clientX:T.pageX;this.clientY=T.clientY!=void 0?T.clientY:T.pageY;this.keyCode=T.keyCode?T.keyCode:T.which;this.charCode=T.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=T.altKey;this.ctrlKey=T.ctrlKey;this.shiftKey=T.shiftKey;this.metaKey=T.metaKey;this.T=T.pageX;this.S=T.pageY}}catch(v){}}; thu=function(T){if(document.body&&document.documentElement){var Q=document.body.scrollTop+document.documentElement.scrollTop;T.T=T.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);T.S=T.clientY+Q}}; Oiy=function(T,Q,k,l){l=l===void 0?{}:l;T.addEventListener&&(Q!="mouseenter"||"onmouseenter"in document?Q!="mouseleave"||"onmouseenter"in document?Q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Q="MozMousePixelScroll"):Q="mouseout":Q="mouseover");return Ui(sr,function(v){var L=typeof v[4]==="boolean"&&v[4]==!!l,q=g.vm(v[4])&&g.vm(l)&&g.fJ(v[4],l);return!!v.length&&v[0]==T&&v[1]==Q&&v[2]==k&&(L||q)})}; g.SG=function(T,Q,k,l){l=l===void 0?{}:l;if(!T||!T.addEventListener&&!T.attachEvent)return"";var v=Oiy(T,Q,k,l);if(v)return v;v=++pny.count+"";var L=!(Q!="mouseenter"&&Q!="mouseleave"||!T.addEventListener||"onmouseenter"in document);var q=L?function(Y){Y=new hg(Y);if(!B2(Y.relatedTarget,function(U){return U==T},!0))return Y.currentTarget=T,Y.type=Q,k.call(T,Y)}:function(Y){Y=new hg(Y); Y.currentTarget=T;return k.call(T,Y)}; q=g.E4(q);T.addEventListener?(Q=="mouseenter"&&L?Q="mouseover":Q=="mouseleave"&&L?Q="mouseout":Q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Q="MozMousePixelScroll"),W_I()||typeof l==="boolean"?T.addEventListener(Q,q,l):T.addEventListener(Q,q,!!l.capture)):T.attachEvent("on"+Q,q);sr[v]=[T,Q,k,q,l];return v}; J8C=function(T){return $SI(T,function(Q){return g.lw(Q,"ytp-ad-has-logging-urls")})}; $SI=function(T,Q){var k=document.body||document;return g.SG(k,"click",function(l){var v=B2(l.target,function(L){return L===k||Q(L)},!0); v&&v!==k&&!v.disabled&&(l.currentTarget=v,T.call(v,l))})}; g.CY=function(T){T&&(typeof T=="string"&&(T=[T]),g.EA(T,function(Q){if(Q in sr){var k=sr[Q],l=k[0],v=k[1],L=k[3];k=k[4];l.removeEventListener?W_I()||typeof k==="boolean"?l.removeEventListener(v,L,k):l.removeEventListener(v,L,!!k.capture):l.detachEvent&&l.detachEvent("on"+v,L);delete sr[Q]}}))}; By=function(T){for(var Q in sr)sr[Q][0]==T&&g.CY(Q)}; zL=function(T){T=T||window.event;var Q;T.composedPath&&typeof T.composedPath==="function"?Q=T.composedPath():Q=T.path;Q&&Q.length?T=Q[0]:(T=T||window.event,T=T.target||T.srcElement,T.nodeType==3&&(T=T.parentNode));return T}; X4=function(T){this.C=T;this.T=null;this.Y=0;this.B=null;this.N=0;this.S=[];for(T=0;T<4;T++)this.S.push(0);this.L=0;this.qO=g.SG(window,"mousemove",(0,g.Mp)(this.D,this));this.j=g.fh((0,g.Mp)(this.z9,this),25)}; wi=function(T){g.x.call(this);this.C=[];this.d5=T||this}; di=function(T,Q,k,l){for(var v=0;v0?k:0;k=l?Date.now()+l*1E3:0;if((l=l?(0,g.Ag)():bu())&&window.JSON){typeof Q!=="string"&&(Q=JSON.stringify(Q,void 0));try{l.set(T,Q,k)}catch(v){l.remove(T)}}}; g.cy=function(T){var Q=bu(),k=(0,g.Ag)();if(!Q&&!k||!window.JSON)return null;try{var l=Q.get(T)}catch(v){}if(typeof l!=="string")try{l=k.get(T)}catch(v){}if(typeof l!=="string")return null;try{l=JSON.parse(l,void 0)}catch(v){}return l}; F_f=function(){var T=(0,g.Ag)();if(T&&(T=T.S("yt-player-quality")))return T.creation}; g.Dk=function(T){try{var Q=bu(),k=(0,g.Ag)();Q&&Q.remove(T);k&&k.remove(T)}catch(l){}}; g.a1=function(){return g.cy("yt-remote-session-screen-id")}; E2f=function(T){var Q=this;this.S=void 0;this.T=!1;T.addEventListener("beforeinstallprompt",function(k){k.preventDefault();Q.S=k}); T.addEventListener("appinstalled",function(){Q.T=!0},{once:!0})}; uu=function(){if(!g.VC.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.VC.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.VC.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.VC.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.VC.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(T){return"WEB_DISPLAY_MODE_UNKNOWN"}}; nY=function(){this.T8=!0}; y8t=function(){nY.instance||(nY.instance=new nY);return nY.instance}; iiy=function(T){switch(T){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}}; Vhf=function(){this.T=g.$i("ALT_PREF_COOKIE_NAME","PREF");this.S=g.$i("ALT_PREF_COOKIE_DOMAIN","youtube.com");var T=g.uC(this.T);T&&this.parse(T)}; g.xq=function(){KY||(KY=new Vhf);return KY}; g.Py=function(T,Q){return!!((T0f("f"+(Math.floor(Q/31)+1))||0)&1<0;)switch(T=qh.shift(),T.type){case "ERROR":ln.O4(T.payload);break;case "EVENT":ln.logEvent(T.eventType,T.payload)}}; Mh=function(T){gm||(ln?ln.O4(T):(qh.push({type:"ERROR",payload:T}),qh.length>10&&qh.shift()))}; Yn=function(T,Q){gm||(ln?ln.logEvent(T,Q):(qh.push({type:"EVENT",eventType:T,payload:Q}),qh.length>10&&qh.shift()))}; UY=function(T){if(T.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; Rp=function(T){return T.substr(0,T.indexOf(":"))||T}; g.ZA=function(T,Q,k,l,v){Q=Q===void 0?{}:Q;k=k===void 0?qzg[T]:k;l=l===void 0?gQt[T]:l;v=v===void 0?Mef[T]:v;g.Wy.call(this,k,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:T},Q));this.type=T;this.message=k;this.level=l;this.T=v;Object.setPrototypeOf(this,g.ZA.prototype)}; fM=function(T,Q){g.ZA.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:Q,foundObjectStores:T},qzg.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,fM.prototype)}; GB=function(T,Q){var k=Error.call(this);this.message=k.message;"stack"in k&&(this.stack=k.stack);this.index=T;this.objectStore=Q;Object.setPrototypeOf(this,GB.prototype)}; Ip=function(T,Q,k,l){Q=Rp(Q);var v=T instanceof Error?T:Error("Unexpected error: "+T);if(v instanceof g.ZA)return v;T={objectStoreNames:k,dbName:Q,dbVersion:l};if(v.name==="QuotaExceededError")return new g.ZA("QUOTA_EXCEEDED",T);if(g.mp&&v.name==="UnknownError")return new g.ZA("QUOTA_MAYBE_EXCEEDED",T);if(v instanceof GB)return new g.ZA("MISSING_INDEX",Object.assign({},T,{objectStore:v.objectStore,index:v.index}));if(v.name==="InvalidStateError"&&YzJ.some(function(L){return v.message.includes(L)}))return new g.ZA("EXECUTE_TRANSACTION_ON_CLOSED_DB", T); if(v.name==="AbortError")return new g.ZA("UNKNOWN_ABORT",T,v.message);v.args=[Object.assign({},T,{name:"IdbError",g6:v.name})];v.level="WARNING";return v}; g.hF=function(T,Q,k){var l=kn();return new g.ZA("IDB_NOT_SUPPORTED",{context:{caller:T,publicName:Q,version:k,hasSucceededOnce:l==null?void 0:l.hasSucceededOnce}})}; Ujt=function(T){if(!T)throw Error();throw T;}; RfI=function(T){return T}; sY=function(T){this.T=T}; g.So=function(T){function Q(v){if(l.state.status==="PENDING"){l.state={status:"REJECTED",reason:v};v=g.B(l.S);for(var L=v.next();!L.done;L=v.next())L=L.value,L()}} function k(v){if(l.state.status==="PENDING"){l.state={status:"FULFILLED",value:v};v=g.B(l.T);for(var L=v.next();!L.done;L=v.next())L=L.value,L()}} var l=this;this.state={status:"PENDING"};this.T=[];this.S=[];T=T.T;try{T(k,Q)}catch(v){Q(v)}}; ZV5=function(T,Q,k,l,v){try{if(T.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var L=k(T.state.value);L instanceof g.So?CM(T,Q,L,l,v):l(L)}catch(q){v(q)}}; fgT=function(T,Q,k,l,v){try{if(T.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var L=k(T.state.reason);L instanceof g.So?CM(T,Q,L,l,v):l(L)}catch(q){v(q)}}; CM=function(T,Q,k,l,v){Q===k?v(new TypeError("Circular promise chain detected.")):k.then(function(L){L instanceof g.So?CM(T,Q,L,l,v):l(L)},function(L){v(L)})}; GmC=function(T,Q,k){function l(){k(T.error);L()} function v(){Q(T.result);L()} function L(){try{T.removeEventListener("success",v),T.removeEventListener("error",l)}catch(q){}} T.addEventListener("success",v);T.addEventListener("error",l)}; mj5=function(T){return new Promise(function(Q,k){GmC(T,Q,k)})}; Be=function(T){return new g.So(new sY(function(Q,k){GmC(T,Q,k)}))}; zB=function(T,Q){return new g.So(new sY(function(k,l){function v(){var L=T?Q(T):null;L?L.then(function(q){T=q;v()},l):k()} v()}))}; IgH=function(T,Q){this.request=T;this.cursor=Q}; hfI=function(T){return Be(T).then(function(Q){return Q?new IgH(T,Q):null})}; g.sZy=function(T){T.cursor.continue(void 0);return hfI(T.request)}; Szu=function(T,Q){this.T=T;this.options=Q;this.transactionCount=0;this.L=Math.round((0,g.XY)());this.S=!1}; g.dm=function(T,Q,k){T=T.T.createObjectStore(Q,k);return new wm(T)}; Nh=function(T,Q){T.T.objectStoreNames.contains(Q)&&T.T.deleteObjectStore(Q)}; g.rm=function(T,Q,k){return g.AF(T,[Q],{mode:"readwrite",r5:!0},function(l){return g.bn(l.objectStore(Q),k)})}; g.AF=function(T,Q,k,l){var v,L,q,Y,U,R,Z,f,G,m,I,z;return g.a(function(w){switch(w.S){case 1:var r={mode:"readonly",r5:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof k==="string"?r.mode=k:Object.assign(r,k);v=r;T.transactionCount++;L=v.r5?3:1;q=0;case 2:if(Y){w.Ym(4);break}q++;U=Math.round((0,g.XY)());g.z5(w,5);R=T.T.transaction(Q,v.mode);r=new ce(R);r=CNy(r,l);return g.c(w,r,7);case 7:return Z=w.T,f=Math.round((0,g.XY)()),B0C(T,U,f,q,void 0,Q.join(),v),w.return(Z);case 5:G=g.by(w);m=Math.round((0,g.XY)()); I=Ip(G,T.T.name,Q.join(),T.T.version);if((z=I instanceof g.ZA&&!I.T)||q>=L)B0C(T,U,m,q,I,Q.join(),v),Y=I;w.Ym(2);break;case 4:return w.return(Promise.reject(Y))}})}; B0C=function(T,Q,k,l,v,L,q){Q=k-Q;v?(v instanceof g.ZA&&(v.type==="QUOTA_EXCEEDED"||v.type==="QUOTA_MAYBE_EXCEEDED")&&Yn("QUOTA_EXCEEDED",{dbName:Rp(T.T.name),objectStoreNames:L,transactionCount:T.transactionCount,transactionMode:q.mode}),v instanceof g.ZA&&v.type==="UNKNOWN_ABORT"&&(k-=T.L,k<0&&k>=2147483648&&(k=0),Yn("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:L,transactionDuration:Q,transactionCount:T.transactionCount,dbDuration:k}),T.S=!0),zf5(T,!1,l,L,Q,q.tag),Mh(v)):zf5(T,!0,l,L,Q, q.tag)}; zf5=function(T,Q,k,l,v,L){Yn("TRANSACTION_ENDED",{objectStoreNames:l,connectionHasUnknownAbortedTransaction:T.S,duration:v,isSuccessful:Q,tryCount:k,tag:L===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":L})}; wm=function(T){this.T=T}; g.DA=function(T,Q,k){T.T.createIndex(Q,k,{unique:!1})}; X05=function(T,Q){return g.ap(T,{query:Q},function(k){return k.delete().then(function(){return g.un(k)})}).then(function(){})}; w05=function(T,Q,k){var l=[];return g.ap(T,{query:Q},function(v){if(!(k!==void 0&&l.length>=k))return l.push(v.getValue()),g.un(v)}).then(function(){return l})}; N0X=function(T){return"getAllKeys"in IDBObjectStore.prototype?Be(T.T.getAllKeys(void 0,void 0)):dj6(T)}; dj6=function(T){var Q=[];return g.Ae5(T,{query:void 0},function(k){Q.push(k.cursor.primaryKey);return g.sZy(k)}).then(function(){return Q})}; g.bn=function(T,Q,k){return Be(T.T.put(Q,k))}; g.ap=function(T,Q,k){T=T.T.openCursor(Q.query,Q.direction);return nM(T).then(function(l){return zB(l,k)})}; g.Ae5=function(T,Q,k){var l=Q.query;Q=Q.direction;T="openKeyCursor"in IDBObjectStore.prototype?T.T.openKeyCursor(l,Q):T.T.openCursor(l,Q);return hfI(T).then(function(v){return zB(v,k)})}; ce=function(T){var Q=this;this.T=T;this.L=new Map;this.S=!1;this.done=new Promise(function(k,l){Q.T.addEventListener("complete",function(){k()}); Q.T.addEventListener("error",function(v){v.currentTarget===v.target&&l(Q.T.error)}); Q.T.addEventListener("abort",function(){var v=Q.T.error;if(v)l(v);else if(!Q.S){v=g.ZA;for(var L=Q.T.objectStoreNames,q=[],Y=0;Y=k))return l.push(v.getValue()),g.un(v)}).then(function(){return l})}; g.KM=function(T,Q,k){T=T.T.openCursor(Q.query===void 0?null:Q.query,Q.direction===void 0?"next":Q.direction);return nM(T).then(function(l){return zB(l,k)})}; xn=function(T,Q){this.request=T;this.cursor=Q}; nM=function(T){return Be(T).then(function(Q){return Q?new xn(T,Q):null})}; g.un=function(T){T.cursor.continue(void 0);return nM(T.request)}; ce5=function(T,Q,k){return new Promise(function(l,v){function L(){G||(G=new Szu(q.result,{closed:f}));return G} var q=Q!==void 0?self.indexedDB.open(T,Q):self.indexedDB.open(T);var Y=k.blocked,U=k.blocking,R=k.U_9,Z=k.upgrade,f=k.closed,G;q.addEventListener("upgradeneeded",function(m){try{if(m.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(q.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");m.dataLoss&&m.dataLoss!=="none"&&Yn("IDB_DATA_CORRUPTED",{reason:m.dataLossMessage||"unknown reason",dbName:Rp(T)});var I=L(),z=new ce(q.transaction); Z&&Z(I,function(w){return m.oldVersion=w},z); z.done.catch(function(w){v(w)})}catch(w){v(w)}}); q.addEventListener("success",function(){var m=q.result;U&&m.addEventListener("versionchange",function(){U(L())}); m.addEventListener("close",function(){Yn("IDB_UNEXPECTEDLY_CLOSED",{dbName:Rp(T),dbVersion:m.version});R&&R()}); l(L())}); q.addEventListener("error",function(){v(q.error)}); Y&&q.addEventListener("blocked",function(){Y()})})}; Djb=function(T,Q,k){k=k===void 0?{}:k;return ce5(T,Q,k)}; Pe=function(T,Q){Q=Q===void 0?{}:Q;var k,l,v,L;return g.a(function(q){if(q.S==1)return g.z5(q,2),k=self.indexedDB.deleteDatabase(T),l=Q,(v=l.blocked)&&k.addEventListener("blocked",function(){v()}),g.c(q,mj5(k),4); if(q.S!=2)return g.d6(q,0);L=g.by(q);throw Ip(L,T,"",-1);})}; He=function(T,Q){this.name=T;this.options=Q;this.L=!0;this.N=this.Y=0}; agb=function(T,Q){return new g.ZA("INCOMPATIBLE_DB_VERSION",{dbName:T.name,oldVersion:T.options.version,newVersion:Q})}; g.tF=function(T,Q){if(!Q)throw g.hF("openWithToken",Rp(T.name));return T.open()}; uA5=function(T,Q){var k;return g.a(function(l){if(l.S==1)return g.c(l,g.tF(OY,Q),2);k=l.T;return l.return(g.AF(k,["databases"],{r5:!0,mode:"readwrite"},function(v){var L=v.objectStore("databases");return L.get(T.actualName).then(function(q){if(q?T.actualName!==q.actualName||T.publicName!==q.publicName||T.userIdentifier!==q.userIdentifier:1)return g.bn(L,T).then(function(){})})}))})}; pM=function(T,Q){var k;return g.a(function(l){if(l.S==1)return T?g.c(l,g.tF(OY,Q),2):l.return();k=l.T;return l.return(k.delete("databases",T))})}; nQt=function(T,Q){var k,l;return g.a(function(v){return v.S==1?(k=[],g.c(v,g.tF(OY,Q),2)):v.S!=3?(l=v.T,g.c(v,g.AF(l,["databases"],{r5:!0,mode:"readonly"},function(L){k.length=0;return g.ap(L.objectStore("databases"),{},function(q){T(q.getValue())&&k.push(q.getValue());return g.un(q)})}),3)):v.return(k)})}; Kof=function(T,Q){return nQt(function(k){return k.publicName===T&&k.userIdentifier!==void 0},Q)}; xjC=function(){var T,Q,k,l;return g.a(function(v){switch(v.S){case 1:T=kn();if((Q=T)==null?0:Q.hasSucceededOnce)return v.return(!0);if(We&&JH()&&!eS()||g.$n)return v.return(!1);try{if(k=self,!(k.indexedDB&&k.IDBIndex&&k.IDBKeyRange&&k.IDBObjectStore))return v.return(!1)}catch(L){return v.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return v.return(!1);g.z5(v,2);l={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.c(v,uA5(l,JF),4);case 4:return g.c(v,pM("yt-idb-test-do-not-use",JF),5);case 5:return v.return(!0);case 2:return g.by(v),v.return(!1)}})}; PNf=function(){if(eo!==void 0)return eo;gm=!0;return eo=xjC().then(function(T){gm=!1;var Q;if((Q=jo())!=null&&Q.T){var k;Q={hasSucceededOnce:((k=kn())==null?void 0:k.hasSucceededOnce)||T};var l;(l=jo())==null||l.set("LAST_RESULT_ENTRY_KEY",Q,2592E3,!0)}return T})}; FY=function(){return g.jA("ytglobal.idbToken_")||void 0}; g.EY=function(){var T=FY();return T?Promise.resolve(T):PNf().then(function(Q){(Q=Q?JF:void 0)&&g.Tv("ytglobal.idbToken_",Q);return Q})}; HVy=function(T){if(!g.Jg())throw T=new g.ZA("AUTH_INVALID",{dbName:T}),Mh(T),T;var Q=g.$q();return{actualName:T+":"+Q,publicName:T,userIdentifier:Q}}; teT=function(T,Q,k,l){var v,L,q,Y,U,R;return g.a(function(Z){switch(Z.S){case 1:return L=(v=Error().stack)!=null?v:"",g.c(Z,g.EY(),2);case 2:q=Z.T;if(!q)throw Y=g.hF("openDbImpl",T,Q),g.hH("ytidb_async_stack_killswitch")||(Y.stack=Y.stack+"\n"+L.substring(L.indexOf("\n")+1)),Mh(Y),Y;UY(T);U=k?{actualName:T,publicName:T,userIdentifier:void 0}:HVy(T);g.z5(Z,3);return g.c(Z,uA5(U,q),5);case 5:return g.c(Z,Djb(U.actualName,Q,l),6);case 6:return Z.return(Z.T);case 3:return R=g.by(Z),g.z5(Z,7),g.c(Z,pM(U.actualName, q),9);case 9:g.d6(Z,8);break;case 7:g.by(Z);case 8:throw R;}})}; OVy=function(T,Q,k){k=k===void 0?{}:k;return teT(T,Q,!1,k)}; p05=function(T,Q,k){k=k===void 0?{}:k;return teT(T,Q,!0,k)}; Wog=function(T,Q){Q=Q===void 0?{}:Q;var k,l;return g.a(function(v){if(v.S==1)return g.c(v,g.EY(),2);if(v.S!=3){k=v.T;if(!k)return v.return();UY(T);l=HVy(T);return g.c(v,Pe(l.actualName,Q),3)}return g.c(v,pM(l.actualName,k),0)})}; $jT=function(T,Q,k){T=T.map(function(l){return g.a(function(v){return v.S==1?g.c(v,Pe(l.actualName,Q),2):g.c(v,pM(l.actualName,k),0)})}); return Promise.all(T).then(function(){})}; JeH=function(T){var Q=Q===void 0?{}:Q;var k,l;return g.a(function(v){if(v.S==1)return g.c(v,g.EY(),2);if(v.S!=3){k=v.T;if(!k)return v.return();UY(T);return g.c(v,Kof(T,k),3)}l=v.T;return g.c(v,$jT(l,Q,k),0)})}; ef5=function(T,Q){Q=Q===void 0?{}:Q;var k;return g.a(function(l){if(l.S==1)return g.c(l,g.EY(),2);if(l.S!=3){k=l.T;if(!k)return l.return();UY(T);return g.c(l,Pe(T,Q),3)}return g.c(l,pM(T,k),0)})}; yH=function(T,Q){He.call(this,T,Q);this.options=Q;UY(T)}; Foy=function(T,Q){var k;return function(){k||(k=new yH(T,Q));return k}}; g.VH=function(T,Q){return Foy(T,Q)}; TP=function(T){return g.tF(EQu(),T)}; ye5=function(T,Q,k,l){var v,L,q;return g.a(function(Y){switch(Y.S){case 1:return v={config:T,hashData:Q,timestamp:l!==void 0?l:(0,g.XY)()},g.c(Y,TP(k),2);case 2:return L=Y.T,g.c(Y,L.clear("hotConfigStore"),3);case 3:return g.c(Y,g.rm(L,"hotConfigStore",v),4);case 4:return q=Y.T,Y.return(q)}})}; iVb=function(T,Q,k,l,v){var L,q,Y;return g.a(function(U){switch(U.S){case 1:return L={config:T,hashData:Q,configData:k,timestamp:v!==void 0?v:(0,g.XY)()},g.c(U,TP(l),2);case 2:return q=U.T,g.c(U,q.clear("coldConfigStore"),3);case 3:return g.c(U,g.rm(q,"coldConfigStore",L),4);case 4:return Y=U.T,U.return(Y)}})}; Vet=function(T){var Q,k;return g.a(function(l){return l.S==1?g.c(l,TP(T),2):l.S!=3?(Q=l.T,k=void 0,g.c(l,g.AF(Q,["coldConfigStore"],{mode:"readwrite",r5:!0},function(v){return g.KM(v.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(L){k=L.getValue()})}),3)):l.return(k)})}; Tl5=function(T){var Q,k;return g.a(function(l){return l.S==1?g.c(l,TP(T),2):l.S!=3?(Q=l.T,k=void 0,g.c(l,g.AF(Q,["hotConfigStore"],{mode:"readwrite",r5:!0},function(v){return g.KM(v.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(L){k=L.getValue()})}),3)):l.return(k)})}; QFt=function(){return g.a(function(T){return g.c(T,JeH("ytGcfConfig"),0)})}; QV=function(){g.x.call(this);this.S=[];this.T=[];var T=g.jA("yt.gcf.config.hotUpdateCallbacks");T?(this.S=[].concat(g.ZH(T)),this.T=T):(this.T=[],g.Tv("yt.gcf.config.hotUpdateCallbacks",this.T))}; qU=function(){var T=this;this.N=!1;this.L=this.Y=0;this.B=new QV;this.dn={GEm:function(){T.N=!0}, ISm:function(){return T.T}, MnB:function(Q){jz(T,Q)}, sE:function(Q){T.sE(Q)}, WPk:function(Q){kr(T,Q)}, Kl:function(){return T.coldHashData}, vZ:function(){return T.hotHashData}, HSk:function(){return T.S}, t9B:function(){return lM()}, OUB:function(){return oK()}, W_k:function(){return g.jA("yt.gcf.config.coldHashData")}, vsq:function(){return g.jA("yt.gcf.config.hotHashData")}, mTk:function(){jFu(T)}, I06:function(){T.sE(void 0);vl(T);delete qU.instance}, f0H:function(Q){T.L=Q}, ns9:function(){return T.L}}}; key=function(){if(!qU.instance){var T=new qU;qU.instance=T}return qU.instance}; vh5=function(T){var Q;g.a(function(k){if(k.S==1)return g.hH("start_client_gcf")||g.hH("delete_gcf_config_db")?g.hH("start_client_gcf")?g.c(k,g.EY(),3):k.Ym(2):k.return();k.S!=2&&((Q=k.T)&&g.Jg()&&!g.hH("delete_gcf_config_db")?(T.N=!0,jFu(T)):(l5f(T),oh5(T)));return g.hH("delete_gcf_config_db")?g.c(k,QFt(),0):k.Ym(0)})}; g7=function(){var T;return(T=oK())!=null?T:g.$i("RAW_HOT_CONFIG_GROUP")}; LzJ=function(T){var Q,k,l,v,L,q;return g.a(function(Y){switch(Y.S){case 1:if(T.S)return Y.return(oK());if(!T.N)return Q=g.hF("getHotConfig IDB not initialized"),iK(Q),Y.return(Promise.reject(Q));k=FY();l=g.$i("TIME_CREATED_MS");if(!k){v=g.hF("getHotConfig token error");iK(v);Y.Ym(2);break}return g.c(Y,Tl5(k),3);case 3:if((L=Y.T)&&L.timestamp>l)return jz(T,L.config),T.sE(L.hashData),Y.return(oK());case 2:oh5(T);if(!(k&&T.S&&T.hotHashData)){Y.Ym(4);break}return g.c(Y,ye5(T.S,T.hotHashData,k,l),4);case 4:return T.S? Y.return(oK()):(q=new g.Wy("Config not available in ytConfig"),iK(q),Y.return(Promise.reject(q)))}})}; ghT=function(T){var Q,k,l,v,L,q;return g.a(function(Y){switch(Y.S){case 1:if(T.T)return Y.return(lM());if(!T.N)return Q=g.hF("getColdConfig IDB not initialized"),iK(Q),Y.return(Promise.reject(Q));k=FY();l=g.$i("TIME_CREATED_MS");if(!k){v=g.hF("getColdConfig");iK(v);Y.Ym(2);break}return g.c(Y,Vet(k),3);case 3:if((L=Y.T)&&L.timestamp>l)return kr(T,L.config),q75(T,L.configData),vl(T,L.hashData),Y.return(lM());case 2:l5f(T);if(!(k&&T.T&&T.coldHashData&&T.configData)){Y.Ym(4);break}return g.c(Y,iVb(T.T, T.coldHashData,T.configData,k,l),4);case 4:return T.T?Y.return(lM()):(q=new g.Wy("Config not available in ytConfig"),iK(q),Y.return(Promise.reject(q)))}})}; jFu=function(T){if(!T.S||!T.T){if(!FY()){var Q=g.hF("scheduleGetConfigs");iK(Q)}T.Y||(T.Y=g.P0.oD(function(){return g.a(function(k){switch(k.S){case 1:return g.z5(k,2),g.c(k,LzJ(T),4);case 4:g.d6(k,3);break;case 2:g.by(k);case 3:return g.z5(k,5),g.c(k,ghT(T),7);case 7:g.d6(k,6);break;case 5:g.by(k);case 6:T.Y&&(T.Y=0),g.BT(k)}})},100))}}; M_t=function(T,Q,k){var l,v,L;return g.a(function(q){switch(q.S){case 1:if(!g.hH("start_client_gcf")){q.Ym(0);break}k&&jz(T,k);T.sE(Q);l=FY();if(!l){q.Ym(3);break}if(k){q.Ym(4);break}return g.c(q,Tl5(l),5);case 5:v=q.T,k=(L=v)==null?void 0:L.config;case 4:return g.c(q,ye5(k,Q,l),3);case 3:if(k)for(var Y=k,U=g.B(T.B.T),R=U.next();!R.done;R=U.next())R=R.value,R(Y);g.BT(q)}})}; Y7J=function(T,Q,k){var l,v,L,q;return g.a(function(Y){if(Y.S==1){if(!g.hH("start_client_gcf"))return Y.Ym(0);vl(T,Q);return(l=FY())?k?Y.Ym(4):g.c(Y,Vet(l),5):Y.Ym(0)}Y.S!=4&&(v=Y.T,k=(L=v)==null?void 0:L.config);if(!k)return Y.Ym(0);q=k.configData;return g.c(Y,iVb(k,Q,q,l),0)})}; UNg=function(){var T=key(),Q=(0,g.XY)()-T.L;if(!(T.L!==0&&Q0&&(Q.request={internalExperimentFlags:k});Zbg(T,void 0,Q);f5y(void 0,Q);Geb(void 0,Q);mN6(T,void 0,Q);I5b(void 0,Q);g.hH("start_client_gcf")&&hK6(void 0,Q);g.$i("DELEGATED_SESSION_ID")&& !g.hH("pageid_as_header_web")&&(Q.user={onBehalfOfUser:g.$i("DELEGATED_SESSION_ID")});!g.hH("fill_delegate_context_in_gel_killswitch")&&(T=g.$i("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(Q.user=Object.assign({},Q.user,{serializedDelegationContext:T}));T=g.$i("INNERTUBE_CONTEXT");var l;if(g.hH("enable_persistent_device_token")&&(T==null?0:(l=T.client)==null?0:l.rolloutToken)){var v;Q.client.rolloutToken=T==null?void 0:(v=T.client)==null?void 0:v.rolloutToken}l=Object;v=l.assign;T=Q.client; k={};for(var L=g.B(Object.entries(QI(g.$i("DEVICE","")))),q=L.next();!q.done;q=L.next()){var Y=g.B(q.value);q=Y.next().value;Y=Y.next().value;q==="cbrand"?k.deviceMake=Y:q==="cmodel"?k.deviceModel=Y:q==="cbr"?k.browserName=Y:q==="cbrver"?k.browserVersion=Y:q==="cos"?k.osName=Y:q==="cosver"?k.osVersion=Y:q==="cplatform"&&(k.platform=Y)}Q.client=v.call(l,T,k);return Q}; Zbg=function(T,Q,k){T=T.bY;if(T==="WEB"||T==="MWEB"||T===1||T===2)if(Q){k=Cg(Q,wE,96)||new wE;var l=uu();l=Object.keys(sFu).indexOf(l);l=l===-1?null:l;l!==null&&HS(k,3,l);Ns(Q,wE,96,k)}else k&&(k.client.mainAppWebInfo=(l=k.client.mainAppWebInfo)!=null?l:{},k.client.mainAppWebInfo.webDisplayMode=uu())}; f5y=function(T,Q){var k=g.jA("yt.embedded_player.embed_url");k&&(T?(Q=Cg(T,rE,7)||new rE,xM(Q,4,k),Ns(T,rE,7,Q)):Q&&(Q.thirdParty={embedUrl:k}))}; Geb=function(T,Q){var k;if(g.hH("web_log_memory_total_kbytes")&&((k=g.VC.navigator)==null?0:k.deviceMemory)){var l;k=(l=g.VC.navigator)==null?void 0:l.deviceMemory;T?lq(T,95,XW(k*1E6)):Q&&(Q.client.memoryTotalKbytes=""+k*1E6)}}; mN6=function(T,Q,k){if(T.appInstallData)if(Q){var l;k=(l=Cg(Q,XH,62))!=null?l:new XH;xM(k,6,T.appInstallData);Ns(Q,XH,62,k)}else k&&(k.client.configInfo=k.client.configInfo||{},k.client.configInfo.appInstallData=T.appInstallData)}; I5b=function(T,Q){var k=kmC();k&&(T?HS(T,61,S7C[k]):Q&&(Q.client.connectionType=k));g.hH("web_log_effective_connection_type")&&(k=oQb())&&(T?HS(T,94,Cwf[k]):Q&&(Q.client.effectiveConnectionType=k))}; BlH=function(T,Q,k){k=k===void 0?{}:k;var l={};g.$i("EOM_VISITOR_DATA")?l={"X-Goog-EOM-Visitor-Id":g.$i("EOM_VISITOR_DATA")}:l={"X-Goog-Visitor-Id":k.visitorData||g.$i("VISITOR_DATA","")};if(Q&&Q.includes("www.youtube-nocookie.com"))return l;Q=k.eq||g.$i("AUTHORIZATION");Q||(T?Q="Bearer "+g.jA("gapi.auth.getToken")().access_token:(T=y8t().LP(US),g.hH("pageid_as_header_web")||delete T["X-Goog-PageId"],l=Object.assign({},l,T)));Q&&(l.Authorization=Q);return l}; hK6=function(T,Q){var k=UNg();if(k){var l=k.coldConfigData,v=k.coldHashData;k=k.hotHashData;if(T){var L;Q=(L=Cg(T,XH,62))!=null?L:new XH;l=xM(Q,1,l);xM(l,3,v).sE(k);Ns(T,XH,62,Q)}else Q&&(Q.client.configInfo=Q.client.configInfo||{},l&&(Q.client.configInfo.coldConfigData=l),v&&(Q.client.configInfo.coldHashData=v),k&&(Q.client.configInfo.hotHashData=k))}}; RK=function(T,Q){this.version=T;this.args=Q}; Z2=function(T,Q){this.topic=T;this.T=Q}; GP=function(T,Q){var k=fj();k&&k.publish.call(k,T.toString(),T,Q)}; wqy=function(T){var Q=zK5,k=fj();if(!k)return 0;var l=k.subscribe(Q.toString(),function(v,L){var q=g.jA("ytPubsub2Pubsub2SkipSubKey");q&&q==l||(q=function(){if(m4[l])try{if(L&&Q instanceof Z2&&Q!=v)try{var Y=Q.T,U=L;if(!U.args||!U.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!Y.iR){var R=new Y;Y.iR=R.version}var Z=Y.iR}catch(f){}if(!Z||U.version!=Z)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{L=Reflect.construct(Y, g.r$(U.args))}catch(f){throw f.message="yt.pubsub2.Data.deserialize(): "+f.message,f;}}catch(f){throw f.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+Q.toString()+": "+f.message,f;}T.call(window,L)}catch(f){g.FH(f)}},Xqb[Q.toString()]?g.Ve()?g.P0.oD(q):g.Zq(q,0):q())}); m4[l]=!0;IK[Q.toString()]||(IK[Q.toString()]=[]);IK[Q.toString()].push(l);return l}; AJ5=function(){var T=dNg,Q=wqy(function(k){T.apply(void 0,arguments);Nlg(Q)}); return Q}; Nlg=function(T){var Q=fj();Q&&(typeof T==="number"&&(T=[T]),g.EA(T,function(k){Q.unsubscribeByKey(k);delete m4[k]}))}; fj=function(){return g.jA("ytPubsub2Pubsub2Instance")}; hx=function(T,Q,k){k=k===void 0?{sampleRate:.1}:k;Math.random()uEt||q=Pwy&&(Ax++,g.hH("abandon_compression_after_N_slow_zips")?NU===g.sG("compression_disable_point")&&Ax>HbX&&(Xh=!1):Xh=!1);t_g(Q);l.headers||(l.headers={});l.headers["Content-Encoding"]="gzip";l.postBody=T;l.postParams=void 0;v(k,l)}; ObH=function(T){var Q=Q===void 0?!1:Q;var k=k===void 0?!1:k;var l=(0,g.XY)(),v={startTime:l,ticks:{},infos:{}},L=Q?g.jA("yt.logging.gzipForFetch",!1):!0;if(Xh&&L){if(!T.body)return T;try{var q=k?T.body:typeof T.body==="string"?T.body:JSON.stringify(T.body);L=q;if(!k&&typeof q==="string"){var Y=a56(q);if(Y!=null&&(Y>uEt||Y=Pwy)if(Ax++,g.hH("abandon_compression_after_N_slow_zips")||g.hH("abandon_compression_after_N_slow_zips_lr")){Q=Ax/NU;var R=HbX/g.sG("compression_disable_point");NU>0&&NU%g.sG("compression_disable_point")===0&&Q>=R&&(Xh=!1)}else Xh=!1;t_g(v)}}T.headers=Object.assign({},{"Content-Encoding":"gzip"},T.headers||{});T.body=L;return T}catch(Z){return iK(Z),T}}else return T}; a56=function(T){try{return(new Blob(T.split(""))).size}catch(Q){return iK(Q),null}}; t_g=function(T){g.hH("gel_compression_csi_killswitch")||!g.hH("log_gel_compression_latency")&&!g.hH("log_gel_compression_latency_lr")||hx("gel_compression",T,{sampleRate:.1})}; r7=function(T){var Q=this;this.tT=this.T=!1;this.potentialEsfErrorCounter=this.S=0;this.handleError=function(){}; this.T4=function(){}; this.now=Date.now;this.WM=!1;this.dn={vQk:function(Z){Q.Sk=Z}, iyO:function(){Q.f4()}, zO:function(){Q.YZ()}, OI:function(Z){return g.a(function(f){return g.c(f,Q.OI(Z),0)})}, nj:function(Z,f){return Q.nj(Z,f)}, Wi:function(){Q.Wi()}}; var k;this.Qc=(k=T.Qc)!=null?k:100;var l;this.Y5=(l=T.Y5)!=null?l:1;var v;this.qS=(v=T.qS)!=null?v:2592E6;var L;this.vX=(L=T.vX)!=null?L:12E4;var q;this.Fh=(q=T.Fh)!=null?q:5E3;var Y;this.Sk=(Y=T.Sk)!=null?Y:void 0;this.Rp=!!T.Rp;var U;this.z$=(U=T.z$)!=null?U:.1;var R;this.RU=(R=T.RU)!=null?R:10;T.handleError&&(this.handleError=T.handleError);T.T4&&(this.T4=T.T4);T.WM&&(this.WM=T.WM);T.tT&&(this.tT=T.tT);this.Wd=T.Wd;this.qy=T.qy;this.E$=T.E$;this.Kd=T.Kd;this.sendFn=T.sendFn;this.lZ=T.lZ;this.KN= T.KN;bM(this)&&(!this.Wd||this.Wd("networkless_logging"))&&pq5(this)}; pq5=function(T){bM(T)&&!T.WM&&(T.T=!0,T.Rp&&Math.random()<=T.z$&&T.E$.ol(T.Sk),T.Wi(),T.Kd.In()&&T.f4(),T.Kd.listen(T.lZ,T.f4.bind(T)),T.Kd.listen(T.KN,T.YZ.bind(T)))}; JJH=function(T,Q){if(!bM(T))throw Error("IndexedDB is not supported: updateRequestHandlers");var k=Q.options.onError?Q.options.onError:function(){}; Q.options.onError=function(v,L){var q,Y,U,R;return g.a(function(Z){switch(Z.S){case 1:q=Wz5(L);(Y=$NC(L))&&T.Wd&&T.Wd("web_enable_error_204")&&T.handleError(Error("Request failed due to compression"),Q.url,L);if(!(T.Wd&&T.Wd("nwl_consider_error_code")&&q||T.Wd&&!T.Wd("nwl_consider_error_code")&&T.potentialEsfErrorCounter<=T.RU)){Z.Ym(2);break}if(!T.Kd.yY){Z.Ym(3);break}return g.c(Z,T.Kd.yY(),3);case 3:if(T.Kd.In()){Z.Ym(2);break}k(v,L);if(!T.Wd||!T.Wd("nwl_consider_error_code")||((U=Q)==null?void 0: U.id)===void 0){Z.Ym(6);break}return g.c(Z,T.E$.F1(Q.id,T.Sk,!1),6);case 6:return Z.return();case 2:if(T.Wd&&T.Wd("nwl_consider_error_code")&&!q&&T.potentialEsfErrorCounter>T.RU)return Z.return();T.potentialEsfErrorCounter++;if(((R=Q)==null?void 0:R.id)===void 0){Z.Ym(8);break}return Q.sendCount=400&&T<=599?!1:!0}; $NC=function(T){var Q;T=T==null?void 0:(Q=T.error)==null?void 0:Q.code;return!(T!==400&&T!==415)}; eKu=function(){if(D2)return D2();var T={};D2=g.VH("LogsDatabaseV2",{Sn:(T.LogsRequestsStore={C7:2},T),shared:!1,upgrade:function(Q,k,l){k(2)&&g.dm(Q,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});k(3);k(5)&&(l=l.objectStore("LogsRequestsStore"),l.T.indexNames.contains("newRequest")&&l.T.deleteIndex("newRequest"),g.DA(l,"newRequestV2",["status","interface","timestamp"]));k(7)&&Nh(Q,"sapisid");k(9)&&Nh(Q,"SWHealthLog")}, version:9});return D2()}; aK=function(T){return g.tF(eKu(),T)}; Ehu=function(T,Q){var k,l,v,L;return g.a(function(q){if(q.S==1)return k={startTime:(0,g.XY)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.c(q,aK(Q),2);if(q.S!=3)return l=q.T,v=Object.assign({},T,{options:JSON.parse(JSON.stringify(T.options)),interface:g.$i("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.c(q,g.rm(l,"LogsRequestsStore",v),3);L=q.T;k.ticks.tc=(0,g.XY)();Fz6(k);return q.return(L)})}; yJX=function(T,Q){var k,l,v,L,q,Y,U,R,Z;return g.a(function(f){if(f.S==1)return k={startTime:(0,g.XY)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.c(f,aK(Q),2);if(f.S!=3)return l=f.T,v=g.$i("INNERTUBE_CONTEXT_CLIENT_NAME",0),L=[T,v,0],q=[T,v,(0,g.XY)()],Y=IDBKeyRange.bound(L,q),U="prev",g.hH("use_fifo_for_networkless")&&(U="next"),R=void 0,Z=T==="NEW"?"readwrite":"readonly",g.hH("use_readonly_for_get_most_recent_by_status_killswitch")&&(Z="readwrite"),g.c(f,g.AF(l,["LogsRequestsStore"], {mode:Z,r5:!0},function(G){return g.KM(G.objectStore("LogsRequestsStore").index("newRequestV2"),{query:Y,direction:U},function(m){m.getValue()&&(R=m.getValue(),T==="NEW"&&(R.status="QUEUED",m.update(R)))})}),3); k.ticks.tc=(0,g.XY)();Fz6(k);return f.return(R)})}; ibf=function(T,Q){var k;return g.a(function(l){if(l.S==1)return g.c(l,aK(Q),2);k=l.T;return l.return(g.AF(k,["LogsRequestsStore"],{mode:"readwrite",r5:!0},function(v){var L=v.objectStore("LogsRequestsStore");return L.get(T).then(function(q){if(q)return q.status="QUEUED",g.bn(L,q).then(function(){return q})})}))})}; V_b=function(T,Q,k,l){k=k===void 0?!0:k;var v;return g.a(function(L){if(L.S==1)return g.c(L,aK(Q),2);v=L.T;return L.return(g.AF(v,["LogsRequestsStore"],{mode:"readwrite",r5:!0},function(q){var Y=q.objectStore("LogsRequestsStore");return Y.get(T).then(function(U){return U?(U.status="NEW",k&&(U.sendCount+=1),l!==void 0&&(U.options.compress=l),g.bn(Y,U).then(function(){return U})):g.So.resolve(void 0)})}))})}; TEb=function(T,Q){var k;return g.a(function(l){if(l.S==1)return g.c(l,aK(Q),2);k=l.T;return l.return(k.delete("LogsRequestsStore",T))})}; Qbt=function(T){var Q,k;return g.a(function(l){if(l.S==1)return g.c(l,aK(T),2);Q=l.T;k=(0,g.XY)()-2592E6;return g.c(l,g.AF(Q,["LogsRequestsStore"],{mode:"readwrite",r5:!0},function(v){return g.ap(v.objectStore("LogsRequestsStore"),{},function(L){if(L.getValue().timestamp<=k)return L.delete().then(function(){return g.un(L)})})}),0)})}; jbb=function(){g.a(function(T){return g.c(T,JeH("LogsDatabaseV2"),0)})}; Fz6=function(T){g.hH("nwl_csi_killswitch")||hx("networkless_performance",T,{sampleRate:1})}; l0g=function(T){return g.tF(kft(),T)}; oiy=function(T){var Q,k;g.a(function(l){if(l.S==1)return g.c(l,l0g(T),2);Q=l.T;k=(0,g.XY)()-2592E6;return g.c(l,g.AF(Q,["SWHealthLog"],{mode:"readwrite",r5:!0},function(v){return g.ap(v.objectStore("SWHealthLog"),{},function(L){if(L.getValue().timestamp<=k)return L.delete().then(function(){return g.un(L)})})}),0)})}; vi6=function(T){var Q;return g.a(function(k){if(k.S==1)return g.c(k,l0g(T),2);Q=k.T;return g.c(k,Q.clear("SWHealthLog"),0)})}; g.uM=function(T,Q,k,l,v,L,q){v=v===void 0?"":v;L=L===void 0?!1:L;q=q===void 0?!1:q;if(T)if(k&&!g.ph())iK(new g.Wy("Legacy referrer-scrubbed ping detected")),T&&Lay(T,void 0,{scrubReferrer:!0});else if(v)BD(T,Q,"POST",v,l);else if(g.$i("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||l||q)BD(T,Q,"GET","",l,void 0,L,q);else{b:{try{c:{var Y=new XWC({url:T});if(Y.T.dsh==="1")var U=null;else{var R=Y.T.ae;if(R==="1"){var Z=Y.T.adurl;if(Z)try{U={version:3,GO:decodeURIComponent(Z),O0:EX(Y.S,"act=1","ri=1",wWC(Y))}; break c}catch(m){}}U=R==="2"?{version:4,GO:EX(Y.S,"dct=1","suid="+Y.L,""),O0:EX(Y.S,"act=1","ri=1","suid="+Y.L)}:null}}if(U){var f=Zz(T);var G=!(!f||!f.endsWith("/aclk")||X6(T,"ri")!=="1");break b}}catch(m){}G=!1}G?q46(T)?(Q&&Q(),k=!0):k=!1:k=!1;k||Lay(T,Q)}}; q46=function(T,Q){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(T,Q===void 0?"":Q))return!0}catch(k){}return!1}; Lay=function(T,Q,k){k=k===void 0?{}:k;var l=new Image,v=""+gi5++;nj[v]=l;l.onload=l.onerror=function(){Q&&nj[v]&&Q();delete nj[v]}; k.scrubReferrer&&(l.referrerPolicy="no-referrer");l.src=T}; MmI=function(T){var Q;return((Q=document.featurePolicy)==null?0:Q.allowedFeatures().includes("attribution-reporting"))?T+"&nis=6":T+"&nis=5"}; xr=function(){Kj||(Kj=new QH("yt.offline"));return Kj}; Y4I=function(T){if(g.hH("offline_error_handling")){var Q=xr().get("errors",!0)||{};Q[T.message]={name:T.name,stack:T.stack};T.level&&(Q[T.message].level=T.level);xr().set("errors",Q,2592E3,!0)}}; Pl=function(){this.T=new Map;this.S=!1}; Hl=function(){if(!Pl.instance){var T=g.jA("yt.networkRequestMonitor.instance")||new Pl;g.Tv("yt.networkRequestMonitor.instance",T);Pl.instance=T}return Pl.instance}; tx=function(){g.fL.call(this);var T=this;this.S=!1;this.T=BIC();this.T.listen("networkstatus-online",function(){if(T.S&&g.hH("offline_error_handling")){var Q=xr().get("errors",!0);if(Q){for(var k in Q)if(Q[k]){var l=new g.Wy(k,"sent via offline_errors");l.name=Q[k].name;l.stack=Q[k].stack;l.level=Q[k].level;g.FH(l)}xr().set("errors",{},2592E3,!0)}}})}; UIT=function(){if(!tx.instance){var T=g.jA("yt.networkStatusManager.instance")||new tx;g.Tv("yt.networkStatusManager.instance",T);tx.instance=T}return tx.instance}; g.OS=function(T){T=T===void 0?{}:T;g.fL.call(this);var Q=this;this.T=this.Y=0;this.S=UIT();var k=g.jA("yt.networkStatusManager.instance.listen").bind(this.S);k&&(T.rateLimit?(this.rateLimit=T.rateLimit,k("networkstatus-online",function(){Rd5(Q,"publicytnetworkstatus-online")}),k("networkstatus-offline",function(){Rd5(Q,"publicytnetworkstatus-offline")})):(k("networkstatus-online",function(){Q.dispatchEvent("publicytnetworkstatus-online")}),k("networkstatus-offline",function(){Q.dispatchEvent("publicytnetworkstatus-offline")})))}; Rd5=function(T,Q){T.rateLimit?T.T?(g.P0.wC(T.Y),T.Y=g.P0.oD(function(){T.L!==Q&&(T.dispatchEvent(Q),T.L=Q,T.T=(0,g.XY)())},T.rateLimit-((0,g.XY)()-T.T))):(T.dispatchEvent(Q),T.L=Q,T.T=(0,g.XY)()):T.dispatchEvent(Q)}; Wl=function(){var T=r7.call;pj||(pj=new g.OS({Tv9:!0,TrK:!0}));T.call(r7,this,{E$:{ol:Qbt,V2:TEb,ir:yJX,We:ibf,F1:V_b,set:Ehu},Kd:pj,handleError:function(Q,k,l){var v,L=l==null?void 0:(v=l.error)==null?void 0:v.code;if(L===400||L===415){var q;Q=new g.Wy(Q.message,k,l==null?void 0:(q=l.error)==null?void 0:q.code);iK(Q,void 0,void 0,void 0,!0)}else g.FH(Q)}, T4:iK,sendFn:Zet,now:g.XY,Yw:Y4I,qy:g.iu(),lZ:"publicytnetworkstatus-online",KN:"publicytnetworkstatus-offline",Rp:!0,z$:.1,RU:g.sG("potential_esf_error_limit",10),Wd:g.hH,WM:!(g.Jg()&&g.Rq(document.location.toString())!=="www.youtube-nocookie.com")});this.L=new g.Zb;g.hH("networkless_immediately_drop_all_requests")&&jbb();ef5("LogsDatabaseV2")}; $r=function(){var T=g.jA("yt.networklessRequestController.instance");T||(T=new Wl,g.Tv("yt.networklessRequestController.instance",T),g.hH("networkless_logging")&&g.EY().then(function(Q){T.Sk=Q;pq5(T);T.L.resolve();T.Rp&&Math.random()<=T.z$&&T.Sk&&oiy(T.Sk);g.hH("networkless_immediately_drop_sw_health_store")&&f0u(T)})); return T}; f0u=function(T){var Q;g.a(function(k){if(!T.Sk)throw Q=g.hF("clearSWHealthLogsDb"),Q;return k.return(vi6(T.Sk).catch(function(l){T.handleError(l)}))})}; Zet=function(T,Q,k,l){l=l===void 0?!1:l;Q=g.hH("web_fp_via_jspb")?Object.assign({},Q):Q;g.hH("use_cfr_monitor")&&Gff(T,Q);if(g.hH("use_request_time_ms_header"))Q.headers&&vD(T)&&(Q.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.XY)())));else{var v;if((v=Q.postParams)==null?0:v.requestTimeMs)Q.postParams.requestTimeMs=Math.round((0,g.XY)())}k&&Object.keys(Q).length===0?g.uM(T):Q.compress?Q.postBody?(typeof Q.postBody!=="string"&&(Q.postBody=JSON.stringify(Q.postBody)),d7(T,Q.postBody, Q,g.zO,l)):d7(T,JSON.stringify(Q.postParams),Q,Xw,l):g.zO(T,Q)}; Jx=function(T,Q){g.hH("use_event_time_ms_header")&&vD(T)&&(Q.headers||(Q.headers={}),Q.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.XY)())));return Q}; Gff=function(T,Q){var k=Q.onError?Q.onError:function(){}; Q.onError=function(v,L){Hl().requestComplete(T,!1);k(v,L)}; var l=Q.onSuccess?Q.onSuccess:function(){}; Q.onSuccess=function(v,L){Hl().requestComplete(T,!0);l(v,L)}}; g.ez=function(T){this.config_=null;T?this.config_=T:RKt()&&(this.config_=g.MU())}; g.Fh=function(T,Q,k,l){function v(R){try{if((R===void 0?0:R)&&l.retry&&!l.networklessOptions.bypassNetworkless)L.method="POST",l.networklessOptions.writeThenSend?$r().writeThenSend(U,L):$r().sendAndWrite(U,L);else if(l.compress){var Z=!l.networklessOptions.writeThenSend;if(L.postBody){var f=L.postBody;typeof f!=="string"&&(f=JSON.stringify(L.postBody));d7(U,f,L,g.zO,Z)}else d7(U,JSON.stringify(L.postParams),L,Xw,Z)}else g.hH("web_all_payloads_via_jspb")?g.zO(U,L):Xw(U,L)}catch(G){if(G.name==="InvalidAccessError")iK(Error("An extension is blocking network request.")); else throw G;}} !g.$i("VISITOR_DATA")&&Q!=="visitor_id"&&Math.random()<.01&&iK(new g.Wy("Missing VISITOR_DATA when sending innertube request.",Q,k,l));if(!T.isReady())throw T=new g.Wy("innertube xhrclient not ready",Q,k,l),g.FH(T),T;var L={headers:l.headers||{},method:"POST",postParams:k,postBody:l.postBody,postBodyFormat:l.postBodyFormat||"JSON",onTimeout:function(){l.onTimeout()}, onFetchTimeout:l.onTimeout,onSuccess:function(R,Z){if(l.onSuccess)l.onSuccess(Z)}, onFetchSuccess:function(R){if(l.onSuccess)l.onSuccess(R)}, onError:function(R,Z){if(l.onError)l.onError(Z)}, onFetchError:function(R){if(l.onError)l.onError(R)}, timeout:l.timeout,withCredentials:!0,compress:l.compress};L.headers["Content-Type"]||(L.headers["Content-Type"]="application/json");k="";var q=T.config_.XR;q&&(k=q);q=T.config_.U8||!1;var Y=BlH(q,k,l);Object.assign(L.headers,Y);L.headers.Authorization&&!k&&q&&(L.headers["x-origin"]=window.location.origin);var U=lC(""+k+("/youtubei/"+T.config_.innertubeApiVersion+"/"+Q),{alt:"json"});g.jA("ytNetworklessLoggingInitializationOptions")&&mI5.isNwlInitialized?PNf().then(function(R){v(R)}):v(!1)}; g.TA=function(T,Q,k){var l=g.ES();if(l&&Q){var v=l.subscribe(T,function(){function L(){yV[v]&&Q.apply&&typeof Q.apply=="function"&&Q.apply(k||window,q)} var q=arguments;try{g.iM[T]?L():g.Zq(L,0)}catch(Y){g.FH(Y)}},k); yV[v]=!0;VV[T]||(VV[T]=[]);VV[T].push(v);return v}return 0}; I0f=function(T){var Q=g.TA("LOGGED_IN",function(k){T.apply(void 0,arguments);g.o$(Q)})}; g.o$=function(T){var Q=g.ES();Q&&(typeof T==="number"?T=[T]:typeof T==="string"&&(T=[parseInt(T,10)]),g.EA(T,function(k){Q.unsubscribeByKey(k);delete yV[k]}))}; g.vd=function(T,Q){var k=g.ES();return k?k.publish.apply(k,arguments):!1}; sb6=function(T){var Q=g.ES();if(Q)if(Q.clear(T),T)hdH(T);else for(var k in VV)hdH(k)}; g.ES=function(){return g.VC.ytPubsubPubsubInstance}; hdH=function(T){VV[T]&&(T=VV[T],g.EA(T,function(Q){yV[Q]&&delete yV[Q]}),T.length=0)}; g.LZ=function(T,Q,k){S4I(T,Q,k===void 0?null:k)}; S4I=function(T,Q,k){k=k===void 0?null:k;var l=CKf(typeof T==="string"?T:T.toString()),v=document.getElementById(l),L=v&&upb(v),q=v&&!L;L?Q&&Q():(Q&&(L=g.TA(l,Q),Q=""+g.qp(Q),BE5[Q]=L),q||(v=zdf(T,l,function(){upb(v)||(abX(v),g.vd(l),g.Zq(function(){sb6(l)},0))},k)))}; zdf=function(T,Q,k,l){l=l===void 0?null:l;var v=g.fO("SCRIPT");v.id=Q;v.onload=function(){k&&setTimeout(k,0)}; v.onreadystatechange=function(){switch(v.readyState){case "loaded":case "complete":v.onload()}}; l&&v.setAttribute("nonce",l);g.SN(v,typeof T==="string"?g.BN(T):T);T=document.getElementsByTagName("head")[0]||document.body;T.insertBefore(v,T.firstChild);return v}; CKf=function(T){var Q=document.createElement("a");g.YP(Q,T);T=Q.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Do(T)}; qE=function(T,Q){if(T===Q)T=!0;else if(Array.isArray(T)&&Array.isArray(Q))T=g.eA(T,Q,qE);else if(g.vm(T)&&g.vm(Q))a:if(g.gz(T).length!=g.gz(Q).length)T=!1;else{for(var k in T)if(!qE(T[k],Q[k])){T=!1;break a}T=!0}else T=!1;return T}; Y_=function(T){var Q=g.HT.apply(1,arguments);if(!g1(T)||Q.some(function(l){return!g1(l)}))throw Error("Only objects may be merged."); Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next())ME(T,k.value)}; ME=function(T,Q){for(var k in Q)if(g1(Q[k])){if(k in T&&!g1(T[k]))throw Error("Cannot merge an object into a non-object.");k in T||(T[k]={});ME(T[k],Q[k])}else if(Uq(Q[k])){if(k in T&&!Uq(T[k]))throw Error("Cannot merge an array into a non-array.");k in T||(T[k]=[]);XN5(T[k],Q[k])}else T[k]=Q[k];return T}; XN5=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next())k=k.value,g1(k)?T.push(ME({},k)):Uq(k)?T.push(XN5([],k)):T.push(k);return T}; g1=function(T){return typeof T==="object"&&!Array.isArray(T)}; Uq=function(T){return typeof T==="object"&&Array.isArray(T)}; R$=function(T){g.x.call(this);this.S=T}; ZZ=function(T){R$.call(this,!0);this.T=T}; fZ=function(T,Q){g.x.call(this);var k=this;this.L=[];this.C=!1;this.S=0;this.N=this.B=this.Y=!1;this.z9=null;var l=(0,g.Mp)(T,Q);this.T=new g.FA(function(){return l(k.z9)},300); g.P(this,this.T);this.D=this.j=Infinity}; wNb=function(T,Q){if(!Q)return!1;for(var k=0;k-1)throw Error("Deps cycle for: "+Q);if(T.S.has(Q))return T.S.get(Q);if(!T.T.has(Q)){if(l)return;throw Error("No provider for: "+Q);}l=T.T.get(Q);k.push(Q);if(l.u3!==void 0)var v=l.u3;else if(l.MkH)v=l[NE]?be6(T,l[NE],k):[],v=l.MkH.apply(l,g.ZH(v));else if(l.pT){v=l.pT;var L=v[NE]?be6(T,v[NE],k):[];v=new (Function.prototype.bind.apply(v,[null].concat(g.ZH(L))))}else throw Error("Could not resolve providers for: "+Q);k.pop();l.hc9||T.S.set(Q,v); return v}; be6=function(T,Q,k){return Q?Q.map(function(l){return l instanceof Xr?Au(T,l.key,k,!0):Au(T,l,k)}):[]}; r1=function(){bv||(bv=new AIu);return bv}; DZ=function(){var T,Q;return"h5vcc"in cd&&((T=cd.h5vcc.traceEvent)==null?0:T.traceBegin)&&((Q=cd.h5vcc.traceEvent)==null?0:Q.traceEnd)?1:"performance"in cd&&cd.performance.mark&&cd.performance.measure?2:0}; a$=function(T){var Q=DZ();switch(Q){case 1:cd.h5vcc.traceEvent.traceBegin("YTLR",T);break;case 2:cd.performance.mark(T+"-start");break;case 0:break;default:Uk(Q,"unknown trace type")}}; rIH=function(T){var Q=DZ();switch(Q){case 1:cd.h5vcc.traceEvent.traceEnd("YTLR",T);break;case 2:Q=T+"-start";var k=T+"-end";cd.performance.mark(k);cd.performance.measure(T,Q,k);break;case 0:break;default:Uk(Q,"unknown trace type")}}; cIC=function(T){var Q,k;(k=(Q=window).onerror)==null||k.call(Q,T.message,"",0,0,T)}; DIH=function(T){var Q=this;var k=k===void 0?0:k;var l=l===void 0?g.iu():l;this.L=k;this.scheduler=l;this.S=new g.Zb;this.T=T;for(T={fX:0};T.fX=1E3?v():l>=T?oP||(oP=vx(function(){v();oP=void 0},0)):L-Y>=10&&(yI6(Q,k.tier),q.Y=L)}; $Iu=function(T,Q){if(T.endpoint==="log_event"){g.hH("more_accurate_gel_parser")&&Eq().storePayload({isJspb:!1},T.payload);iv(T);var k=Vz(T),l=new Map;l.set(k,[T.payload]);var v=OeJ(T.payload)||"";Q&&(ku=new Q);return new g.rc(function(L,q){ku&&ku.isReady()?ieJ(l,ku,L,q,{bypassNetworkless:!0},!0,QU(v)):L()})}}; Fau=function(T,Q,k){if(Q.endpoint==="log_event"){iv(void 0,Q);var l=Vz(Q,!0),v=new Map;v.set(l,[$y(Q.payload)]);k&&(ku=new k);return new g.rc(function(L){ku&&ku.isReady()?Vm5(v,ku,L,{bypassNetworkless:!0},!0,QU(T)):L()})}}; Vz=function(T,Q){var k="";if(T.dangerousLogToVisitorSession)k="visitorOnlyApprovedKey";else if(T.cttAuthInfo){if(Q===void 0?0:Q){Q=T.cttAuthInfo.token;k=T.cttAuthInfo;var l=new HN;k.videoId?l.setVideoId(k.videoId):k.playlistId&&mn(l,2,L9,Nr(k.playlistId));q8[Q]=l}else Q=T.cttAuthInfo,k={},Q.videoId?k.videoId=Q.videoId:Q.playlistId&&(k.playlistId=Q.playlistId),gB[T.cttAuthInfo.token]=k;k=T.cttAuthInfo.token}return k}; jT=function(T,Q,k){T=T===void 0?{}:T;Q=Q===void 0?!1:Q;new g.rc(function(l,v){var L=lA(Q,k),q=L.L;L.L=!1;M8(L.S);M8(L.T);L.T=0;ku&&ku.isReady()?k===void 0&&g.hH("enable_web_tiered_gel")?TVg(l,v,T,Q,300,q):TVg(l,v,T,Q,k,q):(yI6(Q,k),l())})}; TVg=function(T,Q,k,l,v,L){var q=ku;k=k===void 0?{}:k;l=l===void 0?!1:l;v=v===void 0?200:v;L=L===void 0?!1:L;var Y=new Map,U=new Map,R={isJspb:l,cttAuthInfo:void 0,tier:v},Z={isJspb:l,cttAuthInfo:void 0};if(l){Q=g.B(Object.keys(T$));for(v=Q.next();!v.done;v=Q.next())v=v.value,U=g.hH("enable_web_tiered_gel")?Eq().smartExtractMatchingEntries({keys:[R,Z],sizeLimit:1E3}):Eq().extractMatchingEntries({isJspb:!0,cttAuthInfo:v}),U.length>0&&Y.set(v,U),(g.hH("web_fp_via_jspb_and_json")&&k.writeThenSend||!g.hH("web_fp_via_jspb_and_json"))&& delete T$[v];Vm5(Y,q,T,k,!1,L)}else{Y=g.B(Object.keys(T$));for(R=Y.next();!R.done;R=Y.next())R=R.value,Z=g.hH("enable_web_tiered_gel")?Eq().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:R,tier:v},{isJspb:!1,cttAuthInfo:R}],sizeLimit:1E3}):Eq().extractMatchingEntries({isJspb:!1,cttAuthInfo:R}),Z.length>0&&U.set(R,Z),(g.hH("web_fp_via_jspb_and_json")&&k.writeThenSend||!g.hH("web_fp_via_jspb_and_json"))&&delete T$[R];ieJ(U,q,T,Q,k,!1,L)}}; yI6=function(T,Q){function k(){jT({writeThenSend:!0},T,Q)} T=T===void 0?!1:T;Q=Q===void 0?200:Q;var l=lA(T,Q),v=l===QUT||l===jUf?5E3:kOJ;g.hH("web_gel_timeout_cap")&&!l.T&&(v=vx(function(){k()},v),l.T=v); M8(l.S);v=g.$i("LOGGING_BATCH_TIMEOUT",g.sG("web_gel_debounce_ms",1E4));g.hH("shorten_initial_gel_batch_timeout")&&Yu&&(v=lq5);v=vx(function(){g.sG("gel_min_batch_size")>0?Eq().getSequenceCount({cttAuthInfo:void 0,isJspb:T,tier:Q})>=o5t&&k():k()},v); l.S=v}; ieJ=function(T,Q,k,l,v,L,q){v=v===void 0?{}:v;var Y=Math.round((0,g.XY)()),U=T.size,R=v5J(q);T=g.B(T);var Z=T.next();for(q={};!Z.done;q={jH:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,Vr:void 0,fN:void 0},Z=T.next()){var f=g.B(Z.value);Z=f.next().value;f=f.next().value;q.batchRequest=g.my({context:g.Yr(Q.config_||g.MU())});if(!g.o_(f)&&!g.hH("throw_err_when_logevent_malformed_killswitch")){l();break}q.batchRequest.events=f;(f=gB[Z])&&L6u(q.batchRequest,Z,f);delete gB[Z];q.dangerousLogToVisitorSession= Z==="visitorOnlyApprovedKey";qGf(q.batchRequest,Y,q.dangerousLogToVisitorSession);g5g(v);q.Vr=function(G){g.hH("start_client_gcf")&&g.P0.oD(function(){return g.a(function(m){return g.c(m,MSu(G),0)})}); U--;U||k()}; q.jH=0;q.fN=function(G){return function(){G.jH++;if(v.bypassNetworkless&&G.jH===1)try{g.Fh(Q,R,G.batchRequest,U2({writeThenSend:!0},G.dangerousLogToVisitorSession,G.Vr,G.fN,L)),Yu=!1}catch(m){g.FH(m),l()}U--;U||k()}}(q); try{g.Fh(Q,R,q.batchRequest,U2(v,q.dangerousLogToVisitorSession,q.Vr,q.fN,L)),Yu=!1}catch(G){g.FH(G),l()}}}; Vm5=function(T,Q,k,l,v,L){l=l===void 0?{}:l;var q=Math.round((0,g.XY)()),Y={value:T.size},U=new Map([].concat(g.ZH(T)));U=g.B(U);for(var R=U.next();!R.done;R=U.next()){var Z=g.B(R.value).next().value,f=T.get(Z);R=new taI;var G=Q.config_||g.MU(),m=new ab,I=new dE;xM(I,1,G.Ke);xM(I,2,G.IZ);HS(I,16,G.xg);xM(I,17,G.innertubeContextClientVersion);if(G.rz){var z=G.rz,w=new XH;z.coldConfigData&&xM(w,1,z.coldConfigData);z.appInstallData&&xM(w,6,z.appInstallData);z.coldHashData&&xM(w,3,z.coldHashData);z.hotHashData&& w.sE(z.hotHashData);Ns(I,XH,62,w)}(z=g.VC.devicePixelRatio)&&z!=1&&lq(I,65,Yy(z));z=SS();z!==""&&xM(I,54,z);z=Ch();if(z.length>0){w=new bK;for(var r=0;r65535&&(T=1);WN("BATCH_CLIENT_COUNTER",T);return T}; L6u=function(T,Q,k){if(k.videoId)var l="VIDEO";else if(k.playlistId)l="PLAYLIST";else return;T.credentialTransferTokenTargetId=k;T.context=T.context||{};T.context.user=T.context.user||{};T.context.user.credentialTransferTokens=[{token:Q,scope:l}]}; iv=function(T,Q){var k=g.jA("yt.logging.transport.enableScrapingForTest"),l=IU("il_payload_scraping");l=(l!==void 0?String(l):"")==="enable_il_payload_scraping";if(!k)if(l)f9=[],g.Tv("yt.logging.transport.enableScrapingForTest",!0),g.Tv("yt.logging.transport.scrapedPayloadsForTesting",f9),g.Tv("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Tv("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.Tv("yt.logging.transport.scrapeClientEvent",!0);else return;k=g.jA("yt.logging.transport.scrapedPayloadsForTesting");l=g.jA("yt.logging.transport.payloadToScrape");Q&&(Q=Q.payload,(Q=g.jA("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(Q)())&&k.push(Q));Q=g.jA("yt.logging.transport.scrapeClientEvent");if(l&&l.length>=1)for(var v=0;v0&&rH5(T,Q,L)}else rH5(T,Q)}; rH5=function(T,Q,k){T=cHC(T);Q=Q?g.h3(Q):"";k=k||5;Qe()&&g.aU(T,Q,k)}; cHC=function(T){for(var Q=g.B(D2T),k=Q.next();!k.done;k=Q.next())T=wy(T,k.value);return"ST-"+Do(T).toString(36)}; aqb=function(T){if(T.name==="JavaException")return!0;T=T.stack;return T.includes("chrome://")||T.includes("-extension://")||T.includes("webkit-masked-url://")}; uwu=function(T){if(!T.stack)return!0;var Q=!T.stack.includes("\n");return Q&&T.stack.includes("ErrorType: ")||Q&&T.stack.includes("Anonymous function (Unknown script")||T.stack.toLowerCase()==="not available"||T.fileName==="user-script"||T.fileName.startsWith("user-script:")?!0:!1}; n5C=function(){this.Uk=[];this.qk=[]}; wB=function(){if(!Xf){var T=Xf=new n5C;T.qk.length=0;T.Uk.length=0;K6g(T,x2t)}return Xf}; K6g=function(T,Q){Q.qk&&T.qk.push.apply(T.qk,Q.qk);Q.Uk&&T.Uk.push.apply(T.Uk,Q.Uk)}; PCb=function(T){function Q(){return T.charCodeAt(l++)} var k=T.length,l=0;do{var v=dB(Q);if(v===Infinity)break;var L=v>>3;switch(v&7){case 0:v=dB(Q);if(L===2)return v;break;case 1:if(L===2)return;l+=8;break;case 2:v=dB(Q);if(L===2)return T.substr(l,v);l+=v;break;case 5:if(L===2)return;l+=4;break;default:return}}while(l500));l++);l=v}else if(typeof T==="object")for(v in T){if(T[v]){var L=v;var q=T[v],Y=Q,U=k;L=typeof q!=="string"||L!=="clickTrackingParams"&&L!=="trackingParams"?0:(q=PCb(atob(q.replace(/-/g,"+").replace(/_/g,"/"))))?N8(L+".ve",q,Y,U):0;l+=L;l+=N8(v,T[v],Q,k);if(l>500)break}}else k[Q]=Aa(T),l+=k[Q].length;else k[Q]=Aa(T),l+=k[Q].length;return l}; N8=function(T,Q,k,l){k+="."+T;T=Aa(Q);l[k]=T;return k.length+T.length}; Aa=function(T){try{return(typeof T==="string"?T:String(JSON.stringify(T))).substr(0,500)}catch(Q){return"unable to serialize "+typeof T+" ("+Q.message+")"}}; ve=function(T){g.bA(T)}; g.rB=function(T){g.bA(T,"WARNING")}; g.bA=function(T,Q){var k=k===void 0?{}:k;k.name=g.$i("INNERTUBE_CONTEXT_CLIENT_NAME",1);k.version=g.$i("INNERTUBE_CONTEXT_CLIENT_VERSION");Q=Q===void 0?"ERROR":Q;var l=!1;Q=Q===void 0?"ERROR":Q;l=l===void 0?!1:l;if(T){T.hasOwnProperty("level")&&T.level&&(Q=T.level);if(g.hH("console_log_js_exceptions")){var v=[];v.push("Name: "+T.name);v.push("Message: "+T.message);T.hasOwnProperty("params")&&v.push("Error Params: "+JSON.stringify(T.params));T.hasOwnProperty("args")&&v.push("Error args: "+JSON.stringify(T.args)); v.push("File name: "+T.fileName);v.push("Stacktrace: "+T.stack);window.console.log(v.join("\n"),T)}if(!(tSb>=5)){v=[];for(var L=g.B(Oh6),q=L.next();!q.done;q=L.next()){q=q.value;try{q()&&v.push(q())}catch(z){}}v=[].concat(g.ZH(pDC),g.ZH(v));var Y=oE5(T);L=Y.message||"Unknown Error";q=Y.name||"UnknownError";var U=Y.stack||T.S||"Not available";if(U.startsWith(q+": "+L)){var R=U.split("\n");R.shift();U=R.join("\n")}R=Y.lineNumber||"Not available";Y=Y.fileName||"Not available";var Z=0;if(T.hasOwnProperty("args")&& T.args&&T.args.length)for(var f=0;f=500);f++);else if(T.hasOwnProperty("params")&&T.params){var G=T.params;if(typeof T.params==="object")for(f in G){if(G[f]){var m="params."+f,I=Aa(G[f]);k[m]=I;Z+=m.length+I.length;if(Z>500)break}}else k.params=Aa(G)}if(v.length)for(f=0;f=500);f++);navigator.vendor&&!k.hasOwnProperty("vendor")&&(k["device.vendor"]=navigator.vendor);k={message:L,name:q,lineNumber:R, fileName:Y,stack:U,params:k,sampleWeight:1};f=Number(T.columnNumber);isNaN(f)||(k.lineNumber=k.lineNumber+":"+f);if(T.level==="IGNORED")T=0;else a:{T=wB();f=g.B(T.qk);for(v=f.next();!v.done;v=f.next())if(v=v.value,k.message&&k.message.match(v.zR)){T=v.weight;break a}T=g.B(T.Uk);for(f=T.next();!f.done;f=T.next())if(f=f.value,f.callback(k)){T=f.weight;break a}T=1}k.sampleWeight=T;T=g.B(W65);for(f=T.next();!f.done;f=T.next())if(f=f.value,f.hU[k.name])for(L=g.B(f.hU[k.name]),v=L.next();!v.done;v=L.next())if(q= v.value,v=k.message.match(q.oB)){k.params["params.error.original"]=v[0];L=q.groups;q={};for(R=0;R1E3&&g.rB(new g.Wy("IL Attach cache exceeded limit"))}Y= Wx(k,Q);Px.has(Y)?$u(k,Q):ta.set(Y,!0)}}l=l.filter(function(Z){Z.csn!==Q?(Z.csn=Q,Z=!0):Z=!1;return Z}); k={csn:Q,parentVe:k.getAsJson(),childVes:g.IQ(l,function(Z){return Z.getAsJson()})}; Q==="UNDEFINED_CSN"?Ja("visualElementAttached",L,k):T?mA("visualElementAttached",k,T,L):g.LM("visualElementAttached",k,L)}; vq5=function(T,Q,k,l,v){eT(k,Q);l=xu({cttAuthInfo:Bx(Q)||void 0},Q);k={csn:Q,ve:k.getAsJson(),eventType:1};v&&(k.clientData=v);Q==="UNDEFINED_CSN"?Ja("visualElementShown",l,k):T?mA("visualElementShown",k,T,l):g.LM("visualElementShown",k,l)}; Ldy=function(T,Q,k,l){var v=(l=l===void 0?!1:l)?16:8;l=xu({cttAuthInfo:Bx(Q)||void 0,endOfSequence:l},Q);k={csn:Q,ve:k.getAsJson(),eventType:v};Q==="UNDEFINED_CSN"?Ja("visualElementHidden",l,k):T?mA("visualElementHidden",k,T,l):g.LM("visualElementHidden",k,l)}; Ff=function(T,Q,k,l,v){qrt(T,Q,k,void 0,l,v)}; qrt=function(T,Q,k,l,v){eT(k,Q);l=l||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var L=xu({cttAuthInfo:Bx(Q)||void 0},Q);k={csn:Q,ve:k.getAsJson(),gestureType:l};v&&(k.clientData=v);Q==="UNDEFINED_CSN"?Ja("visualElementGestured",L,k):T?mA("visualElementGestured",k,T,L):g.LM("visualElementGestured",k,L)}; gqT=function(){var T=I$(16);for(var Q=[],k=0;k0&&k.push(g.fO("BR"));k.push(g.G8(L))}):k.push(g.G8(l))}return k}; gD=function(T,Q,k,l){if(k==="child"){g.IO(Q);var v;l===void 0?v=void 0:v=!Array.isArray(l)||l&&typeof l.X==="string"?[l]:l;k=Yr6(T,v);k=g.B(k);for(T=k.next();!T.done;T=k.next())Q.appendChild(T.value)}else k==="style"?g.W2(Q,"cssText",l?l:""):l===null||l===void 0?Q.removeAttribute(k):(T=l.toString(),k==="href"&&(T=g.lX(g.Ll(T))),Q.setAttribute(k,T))}; g.p=function(T){g.LD.call(this,T);this.Sr=!0;this.N=!1;this.listeners=[]}; g.M1=function(T){g.p.call(this,T);this.u9=new g.ox;g.P(this,this.u9)}; Y8=function(T,Q,k,l,v,L,q){q=q===void 0?null:q;g.M1.call(this,Q);this.api=T;this.macros={};this.componentType=k;this.C=this.j=null;this.Tg=q;this.layoutId=l;this.interactionLoggingClientData=v;this.G9=L;this.p_=null;this.U5=new ZZ(this.element);g.P(this,this.U5);this.zg=this.Z(this.element,"click",this.onClick);this.xm=[];this.hj=new fZ(this.onClick,this);g.P(this,this.hj);this.QR=!1;this.e6=this.z9=null}; UC=function(T,Q){T=T===void 0?null:T;Q=Q===void 0?null:Q;if(T==null)return g.rB(Error("Got null or undefined adText object")),"";var k=g.cX(T.text);if(!T.isTemplated)return k;if(Q==null)return g.rB(Error("Missing required parameters for a templated message")),k;T=g.B(Object.entries(Q));for(Q=T.next();!Q.done;Q=T.next()){var l=g.B(Q.value);Q=l.next().value;l=l.next().value;k=k.replace("{"+Q+"}",l)}return k}; U5T=function(T){T=T===void 0?null:T;return T!=null&&(T=T.thumbnail,T!=null&&T.thumbnails!=null&&T.thumbnails.length!=0&&T.thumbnails[0].url!=null)?g.cX(T.thumbnails[0].url):""}; RYt=function(T){T=T===void 0?null:T;return T!=null&&(T=T.thumbnail,T!=null&&T.thumbnails!=null&&T.thumbnails.length!=0&&T.thumbnails[0].width!=null&&T.thumbnails[0].height!=null)?new g.Ji(T.thumbnails[0].width||0,T.thumbnails[0].height||0):new g.Ji(0,0)}; g.Rx=function(T){if(T.simpleText)return T.simpleText;if(T.runs){var Q=[];T=g.B(T.runs);for(var k=T.next();!k.done;k=T.next())k=k.value,k.text&&Q.push(k.text);return Q.join("")}return""}; g.ZF=function(T){if(T.simpleText)return T=document.createTextNode(T.simpleText),T;var Q=[];if(T.runs)for(var k=0;k1){for(var Q=[T[0]],k=1;k0&&(this.T=new g.FA(this.lP,Q,this),g.P(this,this.T));this.N=new g.FA(this.lP,k,this);g.P(this,this.N);this.j=rzt(this.S,v,1,l);g.P(this,this.j);this.C=rzt(this.S,0,l,1);g.P(this,this.C);this.Y=new wi;g.P(this,this.Y)}; v8=function(T,Q,k){this.S=T;this.isAsync=Q;this.T=k}; on6=function(T){switch(T){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Uk(T,"unknown result type")}}; vnu=function(T,Q){var k=1;T.isTrusted===!1&&(k=0);WN("ISDSTAT",k);LN(k,"i.s_",{triggerContext:"sk",metadata:Q});return k}; LpC=function(T,Q){var k=[];Q?Q.isTrusted===!0?k.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):Q.isTrusted===!1?k.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):k.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):k.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");LN(0,"a.s_",{metadata:T,states:k});WN("ASDSTAT",0)}; LN=function(T,Q,k){Q=qYX[Q];var l,v,L={detected:T===0,source:""+Q.S+((l=k.triggerContext)!=null?l:"")+((v=k.IJ)!=null?v:""),detectionStates:k.states,durationMs:k.bT};k.metadata&&(L.contentCpn=k.metadata.contentCpn,L.adCpn=k.metadata.adCpn);g.LM("biscottiBasedDetection",L);Q.T!==void 0&&(k=Number(g.$i("CATSTAT",0)),Q.T!==void 0?(Q=Q.T,T=on6(T),T=k&~(3<0}; ZV=function(T,Q,k,l,v,L){y6.call(this,T,{X:"div",J:"ytp-ad-skip-button-slot"},"skip-button",Q,k,l,v);var q=this;this.qO=null;this.i9=!1;this.Jj=L;this.B=this.api.G().experiments.Wd("enable_modern_skip_button_on_web");this.K_=!1;this.Y=new g.M1({X:"span",Rk:["ytp-ad-skip-button-container"]});this.B&&this.Y.element.classList.add("ytp-ad-skip-button-container-detached");g.P(this,this.Y);this.Y.XB(this.element);this.S=this.L=null;this.f_=new g.TZ(this.Y,500,!1,100,function(){return q.hide()}); g.P(this,this.f_);this.Bd=new oY(this.Y.element,15E3,5E3,.5,.5,this.B);g.P(this,this.Bd);this.hide()}; Mou=function(T){T=T.qO&&T.qO.adRendererCommands;return(T&&T.clickCommand&&g.t(T.clickCommand,g.fN)&&g.t(T.clickCommand,g.fN).commands||[]).some(function(Q){return Q.adLifecycleCommand?gnT(Q.adLifecycleCommand):!1})}; gnT=function(T){return T.action==="END_LINEAR_AD"||T.action==="END_LINEAR_AD_PLACEMENT"}; GZ=function(T,Q,k,l,v,L){y6.call(this,T,{X:"div",J:"ytp-ad-skip-ad-slot"},"skip-ad",Q,k,l,v);this.qO=L;this.Y=!1;this.B=0;this.L=this.S=null;this.hide()}; YY6=function(T,Q){T.Y||(T.Y=!0,T.S&&(Q?T.S.qO.hide():T.S.hide()),Q?(T=T.L,T.f_.show(),T.show()):T.L.show())}; mP=function(T,Q,k,l){rD.call(this,T,Q,k,l,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; IY=function(T,Q,k,l,v,L,q){L=L===void 0?!1:L;q=q===void 0?!1:q;Y8.call(this,T,{X:"span",J:"ytp-ad-simple-ad-badge"},"simple-ad-badge",Q,k,l);this.L=v;this.T=this.L_("ytp-ad-simple-ad-badge");(this.S=L)&&this.T.classList.add("ytp-ad-simple-ad-badge--clean-player");q&&this.T.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; h$=function(T,Q,k,l,v){v=v===void 0?!1:v;lD.call(this,"player-overlay",T,{},Q,l);this.videoAdDurationSeconds=k;this.interactionLoggingClientData=l;this.kq=v}; se=function(T,Q){g.ox.call(this);this.api=T;this.durationMs=Q;this.T=null;this.Qp=new wi(this);g.P(this,this.Qp);this.S=UhC;this.Qp.Z(this.api,"presentingplayerstatechange",this.c8);this.T=this.Qp.Z(this.api,"onAdPlaybackProgress",this.bC)}; SM=function(T){g.ox.call(this);this.T=!1;this.l8=0;this.Qp=new wi(this);g.P(this,this.Qp);this.durationMs=T;this.timer=new g.x3(100);g.P(this,this.timer);this.Qp.Z(this.timer,"tick",this.bC);this.S={seekableStart:0,seekableEnd:T/1E3,current:0};this.start()}; g.CN=function(T,Q){var k=Math.abs(Math.floor(T)),l=Math.floor(k/86400),v=Math.floor(k%86400/3600),L=Math.floor(k%3600/60);k=Math.floor(k%60);if(Q){Q="";l>0&&(Q+=" "+l+" d\u00edas");if(l>0||v>0)Q+=" "+v+" horas";Q+=" "+L+" minutos";Q+=" "+k+" segundos";l=Q.trim()}else{Q="";l>0&&(Q+=l+":",v<10&&(Q+="0"));if(l>0||v>0)Q+=v+":",L<10&&(Q+="0");Q+=L+":";k<10&&(Q+="0");l=Q+k}return T>=0?l:"-"+l}; g.B8=function(T){return(!("button"in T)||typeof T.button!=="number"||T.button===0)&&!("shiftKey"in T&&T.shiftKey)&&!("altKey"in T&&T.altKey)&&!("metaKey"in T&&T.metaKey)&&!("ctrlKey"in T&&T.ctrlKey)}; zZ=function(T,Q,k,l,v,L,q){y6.call(this,T,{X:"span",J:q?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",Q,k,l,v);this.videoAdDurationSeconds=L;this.S=null;q&&this.api.G().S&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),We&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; X8=function(T,Q,k,l){Fc.call(this,T,Q,k,l,"ytp-video-ad-top-bar-title","ad-title")}; w3=function(T){this.content=T.content;if(T.commandRuns){T=g.B(T.commandRuns);for(var Q=T.next();!Q.done;Q=T.next())Q=Q.value,this.loggingDirectives=g.t(Q,Rpf),Q.onTap&&(this.interaction={onTap:Q.onTap})}}; d3=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ad-simple-attributed-string"},"ad-simple-attributed-string",Q,k,l);this.hide()}; NH=function(T,Q,k,l,v){Y8.call(this,T,{X:"span",J:v?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",Q,k,l);this.S=v;this.adBadgeText=new d3(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);this.adBadgeText.XB(this.element);g.P(this,this.adBadgeText);v?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),We&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; A$=function(T,Q,k,l){Y8.call(this,T,{X:"span",J:"ytp-ad-pod-index"},"ad-pod-index",Q,k,l);this.api.G().S&&(this.element.classList.add("ytp-ad-pod-index--mweb"),We&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; bP=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",Q,k,l);this.hide()}; r3=function(T,Q){this.S=T;this.T=Q}; ZMC=function(T,Q){return T.S+Q*(T.T-T.S)}; c8=function(T,Q,k){return T.T-T.S?g.ti((Q-T.S)/(T.T-T.S),0,1):k!=null?k:Infinity}; DV=function(T,Q,k,l){l=l===void 0?!1:l;g.M1.call(this,{X:"div",J:"ytp-ad-persistent-progress-bar-container",W:[{X:"div",J:"ytp-ad-persistent-progress-bar"}]});this.api=T;this.S=Q;this.L=k;l&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.P(this,this.S);this.progressBar=this.L_("ytp-ad-persistent-progress-bar");this.T=-1;this.Z(T,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; aY=function(T,Q,k,l,v,L){Y8.call(this,T,{X:"div",J:"ytp-ad-player-overlay",W:[{X:"div",J:"ytp-ad-player-overlay-flyout-cta"},{X:"div",J:"ytp-ad-player-overlay-instream-info"},{X:"div",J:"ytp-ad-player-overlay-skip-or-preview"},{X:"div",J:"ytp-ad-player-overlay-progress-bar"},{X:"div",J:"ytp-ad-player-overlay-instream-user-sentiment"},{X:"div",J:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",Q,k,l);this.D=L;this.B=this.L_("ytp-ad-player-overlay-flyout-cta");this.B.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.T=this.L_("ytp-ad-player-overlay-instream-info");this.Y=null;fA5(this)&&(T=ZM("div"),g.oF(T,"ytp-ad-player-overlay-top-bar-gradients"),Q=this.T,Q.parentNode&&Q.parentNode.insertBefore(T,Q),(Q=this.api.getVideoData(2))&&Q.isListed&&Q.title&&(k=new X8(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),k.XB(T),k.init(k8("ad-title"),{text:Q.title},this.macros),g.P(this,k)),this.Y=T);this.L=null;this.sK=this.L_("ytp-ad-player-overlay-skip-or-preview");this.Bd=this.L_("ytp-ad-player-overlay-progress-bar"); this.i9=this.L_("ytp-ad-player-overlay-instream-user-sentiment");this.qO=this.L_("ytp-ad-player-overlay-ad-disclosure-banner");this.S=v;g.P(this,this.S);this.hide()}; fA5=function(T){T=T.api.G();return g.uP(T)&&T.S}; g.nN=function(T){T&=16777215;var Q=[(T&16711680)>>16,(T&65280)>>8,T&255];T=Q[0];var k=Q[1];Q=Q[2];T=Number(T);k=Number(k);Q=Number(Q);if(T!=(T&255)||k!=(k&255)||Q!=(Q&255))throw Error('"('+T+","+k+","+Q+'") is not a valid RGB color');k=T<<16|k<<8|Q;return T<16?"#"+(16777216|k).toString(16).slice(1):"#"+k.toString(16)}; g.KN=function(){}; mht=function(T){var Q=new Mw;var k=new gI;k=xM(k,1,"botguard");T=xM(k,2,T);this.T=Dnu(Q,gI,1,GB5,T)}; xX=function(T){this.T=new NN(T)}; IAg=function(){var T=!1;try{T=!!window.sessionStorage.getItem("session_logininfo")}catch(Q){T=!0}return(g.$i("INNERTUBE_CLIENT_NAME")==="WEB"||g.$i("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&T}; P8=function(){var T=T===void 0?!0:T;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");WN("LOGIN_INFO","");T&&window.sessionStorage.setItem("from_switch_account","1");T=!0;T=T===void 0?!1:T;var Q,k=hpX;k||(k=document.querySelector("#persist_identity"));if(Q=k){var l=Q.src?(new URL(Q.src)).origin:"*";if(T){var v;(v=Q.contentWindow)==null||v.postMessage({action:"clear"},l)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var L=window.sessionStorage.getItem("session_logininfo");if(L){var q;(q=Q.contentWindow)==null||q.postMessage({loginInfo:L},l)}}}}catch(Y){}}; H8=function(T){T&&(T.startsWith("https://accounts.google.com/AddSession")?P8():T.startsWith("https://accounts.google.com/ServiceLogin")?P8():T.startsWith("https://myaccount.google.com")&&g.RZ(T).S.endsWith("/youtubeoptions")&&P8());if(g.$i("LOGGED_IN",!0)&&IAg()){var Q=g.$i("VALID_SESSION_TEMPDATA_DOMAINS",[]);var k=g.Rq(window.location.href);k&&Q.push(k);k=g.Rq(T);g.CW(Q,k)||!k&&AV(T,"/")?(Q=fI(T),(Q=OO5(Q))?(Q=cHC(Q),Q=(Q=g.uC(Q)||null)?QI(Q):{}):Q=null):Q=null;Q==null&&(Q={});k=Q;var l=void 0; IAg()?(l||(l=g.$i("LOGIN_INFO")),l?(k.session_logininfo=l,k=!0):k=!1):k=!1;k&&z$(T,Q)}}; g.SYt=function(T){var Q=Q===void 0?{}:Q;var k=k===void 0?"":k;var l=l===void 0?window:l;T=g.sD(T,Q);H8(T);k=g.Ll(T+k);l=l.location;k=Mn(k);k!==void 0&&(l.href=k)}; g.t$=function(T,Q,k){Q=Q===void 0?{}:Q;k=k===void 0?!1:k;var l=g.$i("EVENT_ID");l&&(Q.ei||(Q.ei=l));Q&&z$(T,Q);k||(H8(T),g.SYt(T))}; g.Oe=function(T,Q,k,l,v){v=v===void 0?!1:v;k&&z$(T,k);k=g.Ll(T);var L=g.lX(k);T!=L&&iK(Error("Unsafe window.open URL: "+T));T=L;Q=Q||Do(T).toString(36);try{if(v)return v=T,v=MmI(v),H8(v),g.GH(window,v,Q,"attributionsrc")}catch(q){g.FH(q)}H8(T);return g.GH(window,k,Q,l)}; CnJ=function(T){pN=T}; BmC=function(T){W8=T}; zp5=function(T){$X=T}; wef=function(){XeC=$X=W8=pN=null}; Nm5=function(){var T=T===void 0?window.location.href:T;if(g.hH("kevlar_disable_theme_param"))return null;var Q=Zz(T);if(g.hH("enable_dark_theme_only_on_shorts")&&Q!=null&&Q.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var k=g.k5(T).theme;return dhT.get(k)||null}catch(l){}return null}; J$=function(){this.T={};if(this.S=mSJ()){var T=g.uC("CONSISTENCY");T&&AFT(this,{encryptedTokenJarContents:T})}}; AFT=function(T,Q){if(Q.encryptedTokenJarContents&&(T.T[Q.encryptedTokenJarContents]=Q,typeof Q.expirationSeconds==="string")){var k=Number(Q.expirationSeconds);setTimeout(function(){delete T.T[Q.encryptedTokenJarContents]},k*1E3); T.S&&g.aU("CONSISTENCY",Q.encryptedTokenJarContents,k,void 0,!0)}}; F8=function(){this.S=-1;var T=g.$i("LOCATION_PLAYABILITY_TOKEN");g.$i("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=eM(this))&&(T=this.localStorage.get("yt-location-playability-token"));T&&(this.locationPlayabilityToken=T,this.T=void 0)}; eM=function(T){return T.localStorage===void 0?new QH("yt-client-location"):T.localStorage}; g.Ee=function(T,Q,k){Q=Q===void 0?!1:Q;k=k===void 0?!1:k;var l=g.$i("INNERTUBE_CONTEXT");if(!l)return g.bA(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};l=g.my(l);g.hH("web_no_tracking_params_in_shell_killswitch")||delete l.clickTracking;l.client||(l.client={});var v=l.client;v.clientName==="MWEB"&&v.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(v.clientFormFactor=g.$i("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");v.screenWidthPoints=window.innerWidth;v.screenHeightPoints= window.innerHeight;v.screenPixelDensity=Math.round(window.devicePixelRatio||1);v.screenDensityFloat=window.devicePixelRatio||1;v.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var L=L===void 0?!1:L;g.xq();var q="USER_INTERFACE_THEME_LIGHT";g.Py(0,165)?q="USER_INTERFACE_THEME_DARK":g.Py(0,174)?q="USER_INTERFACE_THEME_LIGHT":!g.hH("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (q="USER_INTERFACE_THEME_DARK");L=L?q:Nm5()||q;v.userInterfaceTheme=L;if(!Q){if(L=kmC())v.connectionType=L;g.hH("web_log_effective_connection_type")&&(L=oQb())&&(l.client.effectiveConnectionType=L)}var Y;if(g.hH("web_log_memory_total_kbytes")&&((Y=g.VC.navigator)==null?0:Y.deviceMemory)){var U;Y=(U=g.VC.navigator)==null?void 0:U.deviceMemory;l.client.memoryTotalKbytes=""+Y*1E6}g.hH("web_gcf_hashes_innertube")&&(L=UNg())&&(U=L.coldConfigData,Y=L.coldHashData,L=L.hotHashData,l.client.configInfo=l.client.configInfo|| {},U&&(l.client.configInfo.coldConfigData=U),Y&&(l.client.configInfo.coldHashData=Y),L&&(l.client.configInfo.hotHashData=L));U=g.k5(g.VC.location.href);!g.hH("web_populate_internal_geo_killswitch")&&U.internalcountrycode&&(v.internalGeo=U.internalcountrycode);v.clientName==="MWEB"||v.clientName==="WEB"?(v.mainAppWebInfo||(v.mainAppWebInfo={}),v.mainAppWebInfo.graftUrl=g.VC.location.href,g.hH("kevlar_woffle")&&E2f.instance&&(U=E2f.instance,v.mainAppWebInfo.pwaInstallabilityStatus=!U.T&&U.S?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),v.mainAppWebInfo.webDisplayMode=uu(),v.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):v.clientName==="TVHTML5"&&(!g.hH("web_lr_app_quality_killswitch")&&(U=g.$i("LIVING_ROOM_APP_QUALITY"))&&(v.tvAppInfo=Object.assign(v.tvAppInfo||{},{appQuality:U})),U=g.$i("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(v.tvAppInfo=Object.assign(v.tvAppInfo||{},{certificationScope:U}));if(!g.hH("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var R=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(K){}R=void 0}R&&(v.timeZone=R)}(R=SS())?v.experimentsToken=R:delete v.experimentsToken;R=Ch();J$.instance||(J$.instance=new J$);l.request=Object.assign({},l.request,{internalExperimentFlags:R,consistencyTokenJars:os(J$.instance.T)});!g.hH("web_prequest_context_killswitch")&&(R=g.$i("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(l.request.externalPrequestContext=R);v=g.xq();R=g.Py(0,58);v=v.get("gsml","");l.user=Object.assign({}, l.user);R&&(l.user.enableSafetyMode=R);v&&(l.user.lockedSafetyMode=!0);g.hH("warm_op_csn_cleanup")?k&&(Q=g.C9())&&(l.clientScreenNonce=Q):!Q&&(Q=g.C9())&&(l.clientScreenNonce=Q);T&&(l.clickTracking={clickTrackingParams:T});if(T=g.jA("yt.mdx.remote.remoteClient_"))l.remoteClient=T;F8.getInstance().setLocationOnInnerTubeContext(l);try{var Z=Y5(),f=Z.bid;delete Z.bid;l.adSignalsInfo={params:[],bid:f};for(var G=g.B(Object.entries(Z)),m=G.next();!m.done;m=G.next()){var I=g.B(m.value),z=I.next().value, w=I.next().value;Z=z;f=w;T=void 0;(T=l.adSignalsInfo.params)==null||T.push({key:Z,value:""+f})}var r,A;if(((r=l.client)==null?void 0:r.clientName)==="TVHTML5"||((A=l.client)==null?void 0:A.clientName)==="TVHTML5_UNPLUGGED"){var D=g.$i("INNERTUBE_CONTEXT");D.adSignalsInfo&&(l.adSignalsInfo.advertisingId=D.adSignalsInfo.advertisingId,l.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",l.adSignalsInfo.limitAdTracking=D.adSignalsInfo.limitAdTracking)}}catch(K){g.bA(K)}return l}; cFT=function(T,Q){if(!T)return!1;var k,l=(k=g.t(T,bM6))==null?void 0:k.signal;if(l&&Q.x6)return!!Q.x6[l];var v;if((k=(v=g.t(T,rF5))==null?void 0:v.request)&&Q.Jc)return!!Q.Jc[k];for(var L in T)if(Q.e$[L])return!0;return!1}; Dhy=function(T){var Q={"Content-Type":"application/json"};g.$i("EOM_VISITOR_DATA")?Q["X-Goog-EOM-Visitor-Id"]=g.$i("EOM_VISITOR_DATA"):g.$i("VISITOR_DATA")&&(Q["X-Goog-Visitor-Id"]=g.$i("VISITOR_DATA"));Q["X-Youtube-Bootstrap-Logged-In"]=g.$i("LOGGED_IN",!1);g.$i("DEBUG_SETTINGS_METADATA")&&(Q["X-Debug-Settings-Metadata"]=g.$i("DEBUG_SETTINGS_METADATA"));T!=="cors"&&((T=g.$i("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(Q["X-Youtube-Client-Name"]=T),(T=g.$i("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(Q["X-Youtube-Client-Version"]= T),(T=g.$i("CHROME_CONNECTED_HEADER"))&&(Q["X-Youtube-Chrome-Connected"]=T),(T=g.$i("DOMAIN_ADMIN_STATE"))&&(Q["X-Youtube-Domain-Admin-State"]=T),g.$i("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(T=g.$i("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(Q["X-YouTube-Lava-Device-Context"]=T));return Q}; aAt=function(){this.T={}}; yr=function(){this.mappings=new aAt}; iP=function(T){return function(){return new T}}; nnH=function(T){var Q=Q===void 0?"UNKNOWN_INTERFACE":Q;if(T.length===1)return T[0];var k=uYy[Q];if(k){k=new RegExp(k);for(var l=g.B(T),v=l.next();!v.done;v=l.next())if(v=v.value,k.exec(v))return v}var L=[];Object.entries(uYy).forEach(function(q){var Y=g.B(q);q=Y.next().value;Y=Y.next().value;Q!==q&&L.push(Y)}); k=new RegExp(L.join("|"));T.sort(function(q,Y){return q.length-Y.length}); l=g.B(T);for(v=l.next();!v.done;v=l.next())if(v=v.value,!k.exec(v))return v;return T[0]}; g.Vr=function(T){return"/youtubei/v1/"+nnH(T)}; TC=function(){}; Qi=function(){}; jK=function(){}; ks=function(T){return g.jA("ytcsi."+(T||"")+"data_")||Kp5(T)}; xh5=function(){var T=ks();T.info||(T.info={});return T.info}; lU=function(T){T=ks(T);T.metadata||(T.metadata={});return T.metadata}; oo=function(T){T=ks(T);T.tick||(T.tick={});return T.tick}; vP=function(T){T=ks(T);if(T.gel){var Q=T.gel;Q.gelInfos||(Q.gelInfos={});Q.gelTicks||(Q.gelTicks={})}else T.gel={gelTicks:{},gelInfos:{}};return T.gel}; PnH=function(T){T=vP(T);T.gelInfos||(T.gelInfos={});return T.gelInfos}; LG=function(T){var Q=ks(T).nonce;Q||(Q=g.hu(16),ks(T).nonce=Q);return Q}; Kp5=function(T){var Q={tick:{},info:{}};g.Tv("ytcsi."+(T||"")+"data_",Q);return Q}; qL=function(){var T=g.jA("ytcsi.debug");T||(T=[],g.Tv("ytcsi.debug",T),g.Tv("ytcsi.reference",{}));return T}; gS=function(T){T=T||"";var Q=HM5();if(Q[T])return Q[T];var k=qL(),l={timerName:T,info:{},tick:{},span:{},jspbInfo:[]};k.push(l);return Q[T]=l}; toT=function(T){T=T||"";var Q=HM5();Q[T]&&delete Q[T];var k=qL(),l={timerName:T,info:{},tick:{},span:{},jspbInfo:[]};k.push(l);Q[T]=l}; HM5=function(){var T=g.jA("ytcsi.reference");if(T)return T;qL();return g.jA("ytcsi.reference")}; ML=function(T){return OMC[T]||"LATENCY_ACTION_UNKNOWN"}; Ys=function(T,Q){RK.call(this,1,arguments);this.timer=Q}; UH=function(){this.T=0}; Ro=function(){UH.instance||(UH.instance=new UH);return UH.instance}; fG=function(T,Q){Zy[Q]=Zy[Q]||{count:0};var k=Zy[Q];k.count++;k.time=(0,g.XY)();T.T||(T.T=g.Er(0,function(){var l=(0,g.XY)(),v;for(v in Zy)Zy[v]&&l-Zy[v].time>6E4&&delete Zy[v];T&&(T.T=0)},5E3)); return k.count>5?(k.count===6&&Math.random()*1E5<1&&(k=new g.Wy("CSI data exceeded logging limit with key",Q.split("_")),Q.indexOf("plev")>=0||g.rB(k)),!0):!1}; pef=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; Wpy=function(){var T;if(g.hH("csi_use_performance_navigation_timing")){var Q,k,l,v=GC==null?void 0:(T=GC.getEntriesByType)==null?void 0:(Q=T.call(GC,"navigation"))==null?void 0:(k=Q[0])==null?void 0:(l=k.toJSON)==null?void 0:l.call(k);v?(v.requestStart=mB(v.requestStart),v.responseEnd=mB(v.responseEnd),v.redirectStart=mB(v.redirectStart),v.redirectEnd=mB(v.redirectEnd),v.domainLookupEnd=mB(v.domainLookupEnd),v.connectStart=mB(v.connectStart),v.connectEnd=mB(v.connectEnd),v.responseStart=mB(v.responseStart), v.secureConnectionStart=mB(v.secureConnectionStart),v.domainLookupStart=mB(v.domainLookupStart),v.isPerformanceNavigationTiming=!0,T=v):T=GC.timing}else T=g.hH("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(GC.timing)):GC.timing;return T}; mB=function(T){return Math.round(Io()+T)}; Io=function(){return(g.hH("csi_use_time_origin")||g.hH("csi_use_time_origin_tvhtml5"))&&GC.timeOrigin?Math.floor(GC.timeOrigin):GC.timing.navigationStart}; sH=function(T,Q){ht("_start",T,Q)}; SK=function(T,Q){if(!g.hH("web_csi_action_sampling_enabled")||!ks(Q).actionDisabled){var k=gS(Q||"");Y_(k.info,T);T.loadType&&(k=T.loadType,lU(Q).loadType=k);Y_(PnH(Q),T);k=LG(Q);Q=ks(Q).cttAuthInfo;Ro().info(T,k,Q)}}; $hg=function(){var T,Q,k,l;return((l=r1().resolve(w1(qU))==null?void 0:(T=g7())==null?void 0:(Q=T.loggingHotConfig)==null?void 0:(k=Q.csiConfig)==null?void 0:k.debugTicks)!=null?l:[]).map(function(v){return Object.values(v)[0]})}; ht=function(T,Q,k){if(!g.hH("web_csi_action_sampling_enabled")||!ks(k).actionDisabled){var l=LG(k),v;if(v=g.hH("web_csi_debug_sample_enabled")&&l){(r1().resolve(w1(qU))==null?0:g7())&&!JFT&&(JFT=!0,ht("gcfl",(0,g.XY)(),k));var L,q,Y;v=(r1().resolve(w1(qU))==null?void 0:(L=g7())==null?void 0:(q=L.loggingHotConfig)==null?void 0:(Y=q.csiConfig)==null?void 0:Y.debugSampleWeight)||0;if(L=v!==0)b:{L=$hg();if(L.length>0)for(q=0;qk.duration?l:k},{duration:0}))&&Q.startTime>0&&Q.responseEnd>0&&(ht("wffs",mB(Q.startTime)),ht("wffe",mB(Q.responseEnd)))}; T75=function(T,Q,k){GC&&GC.measure&&(T.startsWith("measure_")||(T="measure_"+T),k?GC.measure(T,Q,k):Q?GC.measure(T,Q):GC.measure(T))}; QKy=function(T){var Q=CG("aft",T);if(Q)return Q;Q=g.$i((T||"")+"TIMING_AFT_KEYS",["ol"]);for(var k=Q.length,l=0;l0&&SK(Q);Q={isNavigation:!0,actionType:ML(g.$i("TIMING_ACTION"))};var k=g.$i("PREVIOUS_ACTION");k&&(Q.previousAction=ML(k));if(k=g.$i("CLIENT_PROTOCOL"))Q.httpProtocol=k;if(k=g.$i("CLIENT_TRANSPORT"))Q.transportProtocol=k;(k=g.C9())&&k!=="UNDEFINED_CSN"&&(Q.clientScreenNonce=k);k=Enb();if(k===1||k===-1)Q.isVisible= !0;k=lU().loadType==="cold";var l=xh5();k||(k=l.yt_lt==="cold");if(k){Q.loadType="cold";k=xh5();l=Wpy();var v=Io(),L=g.$i("CSI_START_TIMESTAMP_MILLIS",0);L>0&&!g.hH("embeds_web_enable_csi_start_override_killswitch")&&(v=L);v&&(ht("srt",l.responseStart),k.prerender!==1&&sH(v));k=l2C();k>0&&ht("fpt",k);k=Wpy();k.isPerformanceNavigationTiming&&SK({performanceNavigationTiming:!0},void 0);ht("nreqs",k.requestStart,void 0);ht("nress",k.responseStart,void 0);ht("nrese",k.responseEnd,void 0);k.redirectEnd- k.redirectStart>0&&(ht("nrs",k.redirectStart,void 0),ht("nre",k.redirectEnd,void 0));k.domainLookupEnd-k.domainLookupStart>0&&(ht("ndnss",k.domainLookupStart,void 0),ht("ndnse",k.domainLookupEnd,void 0));k.connectEnd-k.connectStart>0&&(ht("ntcps",k.connectStart,void 0),ht("ntcpe",k.connectEnd,void 0));k.secureConnectionStart>=Io()&&k.connectEnd-k.secureConnectionStart>0&&(ht("nstcps",k.secureConnectionStart,void 0),ht("ntcpe",k.connectEnd,void 0));GC&&"getEntriesByType"in GC&&VoX();k=[];if(document.querySelector&& GC&&GC.getEntriesByName)for(var q in XP)XP.hasOwnProperty(q)&&(l=XP[q],iMy(q,l)&&k.push(l));if(k.length>0)for(Q.resourceInfo=[],q=g.B(k),k=q.next();!k.done;k=q.next())Q.resourceInfo.push({resourceCache:k.value})}SK(Q);Q=vP();Q.preLoggedGelInfos||(Q.preLoggedGelInfos=[]);q=Q.preLoggedGelInfos;Q=PnH();k=void 0;for(l=0;l-1&&(delete A5["@type"],e=A5);z&&T.S.has(z)&&T.S.delete(z);((QJ=Q.config)==null?0:QJ.Xk9)&&dS(Q.config.Xk9);if(e||(I_=T.L)==null||!I_.I6d(Q.input,Q.Ys)){cT.Ym(15);break}return g.c(cT,T.L.yYV(Q.input,Q.Ys),16);case 16:e=cT.T;case 15:return CMy(T, e,Q),((g$$=Q.config)==null?0:g$$.MYH)&&dS(Q.config.MYH),l(),cT.return(e||void 0)}})}; mUt=function(T,Q){a:{T=T.SG;var k,l=(k=g.t(Q,bM6))==null?void 0:k.signal;if(l&&T.x6&&(k=T.x6[l])){var v=k();break a}var L;if((k=(L=g.t(Q,rF5))==null?void 0:L.request)&&T.Jc&&(L=T.Jc[k])){v=L();break a}for(v in Q)if(T.e$[v]&&(Q=T.e$[v])){v=Q();break a}v=void 0}if(v!==void 0)return Promise.resolve(v)}; hAJ=function(T,Q,k){var l,v,L,q,Y,U,R;return g.a(function(Z){if(Z.S==1){L=((l=Q)==null?void 0:(v=l.gZ)==null?void 0:v.identity)||US;U=(q=Q)==null?void 0:(Y=q.gZ)==null?void 0:Y.sessionIndex;var f=g.DT(T.T.LP(L,{sessionIndex:U}));return g.c(Z,f,2)}R=Z.T;return Z.return(Promise.resolve(Object.assign({},Dhy(k),R)))})}; I2T=function(T,Q,k){var l,v=(Q==null?void 0:(l=Q.gZ)==null?void 0:l.identity)||US,L;Q=Q==null?void 0:(L=Q.gZ)==null?void 0:L.sessionIndex;T=T.T.LP(v,{sessionIndex:Q});return Object.assign({},Dhy(k),T)}; nG=function(){}; KG=function(){}; xs=function(T){this.B=T}; PP=function(){}; HP=function(){}; tt=function(){}; OH=function(){}; g.pG=function(T,Q){var k=g.HT.apply(2,arguments);T=T===void 0?0:T;g.Wy.call(this,Q,k);this.errorType=T;Object.setPrototypeOf(this,this.constructor.prototype)}; WP=function(T,Q,k,l){this.T=T;this.S=Q;this.L=k;this.Y=l}; zAb=function(T,Q,k){if(T.T){var l=Zz(wy(Q,"key"))||"/UNKNOWN_PATH";T.T.start(l)}l=k;g.hH("wug_networking_gzip_request")&&(l=ObH(k));var v;return new ((v=T.Y)!=null?v:window.Request)(Q,l)}; g.Jt=function(T,Q){if(!$s){var k=r1();d1(k,{mj:Xlt,pT:WP});var l={e$:{feedbackEndpoint:iP(PP),modifyChannelNotificationPreferenceEndpoint:iP(HP),playlistEditEndpoint:iP(tt),shareEntityEndpoint:iP(xs),subscribeEndpoint:iP(nG),unsubscribeEndpoint:iP(KG),webPlayerShareEntityServiceEndpoint:iP(OH)}},v=F8.getInstance(),L={};v&&(L.client_location=v);T===void 0&&(T=y8t());Q===void 0&&(Q=k.resolve(Xlt));GPu(l,Q,T,L);d1(k,{mj:wlu,u3:Dy.instance});$s=k.resolve(wlu)}return $s}; dU6=function(T){var Q=new Up;if(T.interpreterJavascript){var k=DFy(T.interpreterJavascript);k=hi(k).toString();var l=new MS;xM(l,6,k);Ns(Q,MS,1,l,F1)}else T.interpreterUrl&&(k=Ce(T.interpreterUrl),k=jN(k).toString(),l=new Y2,xM(l,4,k),Ns(Q,Y2,2,l,F1));T.interpreterHash&&PS(Q,3,T.interpreterHash,F1);T.program&&PS(Q,4,T.program,F1);T.globalName&&PS(Q,5,T.globalName,F1);T.clientExperimentsStateBlob&&PS(Q,7,T.clientExperimentsStateBlob,F1);return Q}; eK=function(T){var Q={};T=T.split("&");T=g.B(T);for(var k=T.next();!k.done;k=T.next())k=k.value.split("="),k.length===2&&(Q[k[0]]=k[1]);return Q}; r7g=function(){if(g.hH("bg_st_hr"))return"havuokmhhs-0";var T,Q=((T=performance)==null?void 0:T.timeOrigin)||0;return"havuokmhhs-"+Math.floor(Q)}; FP=function(T){this.T=T}; N7X=function(){return new Promise(function(T){var Q=window.top;Q.ntpevasrs!==void 0?T(new FP(Q.ntpevasrs)):(Q.ntpqfbel===void 0&&(Q.ntpqfbel=[]),Q.ntpqfbel.push(function(k){T(new FP(k))}))})}; rxb=function(){if(Qe()){var T=g.$i("PLAYER_VARS",{});if(g.ZW(T,"privembed",!1)!="1"&&!z15(T)){var Q=function(){EH=!0;"google_ad_status"in window?WN("DCLKSTAT",1):WN("DCLKSTAT",2)}; try{g.LZ(Axf,Q)}catch(k){}bj6.push(g.P0.oD(function(){if(!(EH||"google_ad_status"in window)){try{if(Axf.toString()&&Q){var k=""+g.qp(Q),l=BE5[k];l&&g.o$(l)}}catch(v){}EH=!0;WN("DCLKSTAT",3)}},5E3))}}}; yi=function(){var T=Number(g.$i("DCLKSTAT",0));return isNaN(T)?0:T}; Q8=function(T,Q,k){var l=this;this.network=T;this.options=Q;this.S=k;this.T=null;if(Q.xTd){var v=new g.Zb;this.T=v.promise;g.VC.ytAtRC&&F4(function(){var L,q;return g.a(function(Y){if(Y.S==1){if(!g.VC.ytAtRC)return Y.return();L=iU(null);return g.c(Y,Vi(l,L),2)}q=Y.T;g.VC.ytAtRC&&g.VC.ytAtRC(JSON.stringify(q));g.BT(Y)})},2); N7X().then(function(L){var q,Y,U,R;return g.a(function(Z){if(Z.S==1)return L.bindInnertubeChallengeFetcher(function(f){return Vi(l,iU(f))}),g.c(Z,Ty(),2); q=Z.T;Y=L.getLatestChallengeResponse();U=Y.challenge;if(!U)throw Error("BGE_MACIL");R={challenge:U,wA:eK(U),FI:q,bgChallenge:new Up};v.resolve(R);L.registerChallengeFetchedCallback(function(f){f=f.challenge;if(!f)throw Error("BGE_MACR");f={challenge:f,wA:eK(f),FI:q,bgChallenge:new Up};l.T=Promise.resolve(f)}); g.BT(Z)})})}else Q.preload&&cxu(this,new Promise(function(L){g.Er(0,function(){L(TU(l))},0)}))}; iU=function(T){var Q={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};T&&(Q.interpreterHash=T);return Q}; TU=function(T,Q){Q=Q===void 0?0:Q;var k,l,v,L,q,Y,U,R,Z,f,G,m;return g.a(function(I){switch(I.S){case 1:k=iU(m_().T);if(g.hH("att_fet_ks"))return g.z5(I,7),g.c(I,Vi(T,k),9);g.z5(I,4);return g.c(I,DU5(T,k),6);case 6:q=I.T;v=q.VY9;L=q.wnm;l=q;g.d6(I,3);break;case 4:return g.by(I),g.rB(Error("Failed to fetch attestation challenge after "+(Q+" attempts; not retrying for 24h."))),jZ(T,864E5),I.return({challenge:"",wA:{},FI:void 0,bgChallenge:void 0});case 9:l=I.T;if(!l)throw Error("Fetching Attestation challenge returned falsy"); if(!l.challenge)throw Error("Missing Attestation challenge");v=l.challenge;L=eK(v);if("c1a"in L&&(!l.bgChallenge||!l.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.d6(I,3);break;case 7:Y=g.by(I);g.rB(Y);Q++;if(Q>=5)return g.rB(Error("Failed to fetch attestation challenge after "+(Q+" attempts; not retrying for 24h."))),jZ(T,864E5),I.return({challenge:"",wA:{},FI:void 0,bgChallenge:void 0});U=1E3*Math.pow(2,Q-1)+Math.random()*1E3;return I.return(new Promise(function(z){g.Er(0, function(){z(TU(T,Q))},U)})); case 3:R=Number(L.t)||7200;jZ(T,R*1E3);Z=void 0;if(!("c1a"in L&&l.bgChallenge)){I.Ym(10);break}f=dU6(l.bgChallenge);g.z5(I,11);return g.c(I,ro6(m_(),f),13);case 13:g.d6(I,12);break;case 11:return G=g.by(I),g.rB(G),I.return({challenge:v,wA:L,FI:Z,bgChallenge:f});case 12:return g.z5(I,14),Z=new fi({challenge:f,uA:{XJ:"aGIf"}}),g.c(I,Z.S5,16);case 16:g.d6(I,10);break;case 14:m=g.by(I),g.rB(m),Z=void 0;case 10:return I.return({challenge:v,wA:L,FI:Z,bgChallenge:f})}})}; Vi=function(T,Q){var k;return g.a(function(l){k=T.S;if(!k||k.In())return l.return(Vi(T.network,Q));cP("att_pna",void 0,"attestation_challenge_fetch");return l.return(new Promise(function(v){k.XC("publicytnetworkstatus-online",function(){Vi(T.network,Q).then(v)})}))})}; a2b=function(T){if(!T)throw Error("Fetching Attestation challenge returned falsy");if(!T.challenge)throw Error("Missing Attestation challenge");var Q=T.challenge,k=eK(Q);if("c1a"in k&&(!T.bgChallenge||!T.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},T,{VY9:Q,wnm:k})}; DU5=function(T,Q){var k,l,v,L,q;return g.a(function(Y){switch(Y.S){case 1:k=void 0,l=0,v={};case 2:if(!(l<5)){Y.Ym(4);break}if(!(l>0)){Y.Ym(5);break}v.bP=1E3*Math.pow(2,l-1)+Math.random()*1E3;return g.c(Y,new Promise(function(U){return function(R){g.Er(0,function(){R(void 0)},U.bP)}}(v)),5); case 5:return g.z5(Y,7),g.c(Y,Vi(T,Q),9);case 9:return L=Y.T,Y.return(a2b(L));case 7:k=q=g.by(Y),q instanceof Error&&g.rB(q);case 8:l++;v={bP:void 0};Y.Ym(2);break;case 4:throw k;}})}; cxu=function(T,Q){T.T=Q}; uhg=function(T){var Q,k,l;return g.a(function(v){if(v.S==1)return g.c(v,Promise.race([T.T,null]),2);Q=v.T;var L=TU(T);T.T=L;(k=Q)==null||(l=k.FI)==null||l.dispose();g.BT(v)})}; jZ=function(T,Q){function k(){var v;return g.a(function(L){v=l-Date.now();return v<1E3?g.c(L,uhg(T),0):(F4(k,0,Math.min(v,6E4)),L.Ym(0))})} var l=Date.now()+Q;k()}; nrI=function(T,Q){return new Promise(function(k){g.Er(0,function(){k(Q())},T)})}; g.K45=function(T,Q){var k;return g.a(function(l){var v=g.jA("yt.aba.att");return(k=v?v:Q8.instance!==void 0?Q8.instance.L.bind(Q8.instance):null)?l.return(k("ENGAGEMENT_TYPE_PLAYBACK",T,Q)):l.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.xUC=function(){var T;return(T=(T=g.jA("yt.aba.att2"))?T:Q8.instance!==void 0?Q8.instance.Y.bind(Q8.instance):null)?T():Promise.resolve(!1)}; Hj5=function(T,Q){var k=g.jA("ytDebugData.callbacks");k||(k={},g.Tv("ytDebugData.callbacks",k));if(g.hH("web_dd_iu")||PMC.includes(T))k[T]=Q}; kl=function(){var T=tz5;var Q=Q===void 0?[]:Q;var k=k===void 0?[]:k;Q=dFC.apply(null,[Ncu.apply(null,g.ZH(Q))].concat(g.ZH(k)));this.store=bLX(T,void 0,Q)}; g.l3=function(T,Q,k){for(var l=Object.assign({},T),v=g.B(Object.keys(Q)),L=v.next();!L.done;L=v.next()){L=L.value;var q=T[L],Y=Q[L];if(Y===void 0)delete l[L];else if(q===void 0)l[L]=Y;else if(Array.isArray(Y)&&Array.isArray(q))l[L]=k?[].concat(g.ZH(q),g.ZH(Y)):Y;else if(!Array.isArray(Y)&&g.vm(Y)&&!Array.isArray(q)&&g.vm(q))l[L]=g.l3(q,Y,k);else if(typeof Y===typeof q)l[L]=Y;else return Q=new g.Wy("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:L,Bv_:q,updateValue:Y}),g.bA(Q), T}return l}; oV=function(T){var Q=this;T=T===void 0?[]:T;this.T=[];this.L=this.S=0;this.Y=void 0;this.totalLength=0;T.forEach(function(k){Q.append(k)})}; Oj5=function(T,Q){return T.T.length===0?!1:(T=T.T[T.T.length-1])&&T.buffer===Q.buffer&&T.byteOffset+T.length===Q.byteOffset}; v3=function(T,Q){Q=g.B(Q.T);for(var k=Q.next();!k.done;k=Q.next())T.append(k.value)}; Lx=function(T,Q,k){return T.split(Q).ow.split(k).Rz}; qg=function(T){T.Y=void 0;T.S=0;T.L=0}; g5=function(T,Q,k){T.isFocused(Q);return Q-T.L+k<=T.T[T.S].length}; plJ=function(T){if(!T.Y){var Q=T.T[T.S];T.Y=new DataView(Q.buffer,Q.byteOffset,Q.length)}return T.Y}; W4f=function(T,Q,k){Q=Q===void 0?0:Q;k=k===void 0?-1:k;if(!T.totalLength||!k)return new DataView(new ArrayBuffer(0));k<0&&(k=T.totalLength-Q);T.focus(Q);if(!g5(T,Q,k)){var l=T.S,v=T.L;T.focus(Q+k-1);v=new Uint8Array(T.L+T.T[T.S].length-v);for(var L=0,q=l;q<=T.S;q++)v.set(T.T[q],L),L+=T.T[q].length;T.T.splice(l,T.S-l+1,v);qg(T);T.focus(Q)}l=T.T[T.S];return new DataView(l.buffer,l.byteOffset+Q-T.L,k)}; Mg=function(T,Q,k){T=W4f(T,Q===void 0?0:Q,k===void 0?-1:k);return new Uint8Array(T.buffer,T.byteOffset,T.byteLength)}; Yl=function(T,Q,k){T=Mg(T,Q===void 0?0:Q,k===void 0?-1:k);Q=new Uint8Array(T.length);try{Q.set(T)}catch(l){for(k=0;k>10;L=56320|L&1023}fx[v++]=L}}L=String.fromCharCode.apply(String,fx); v<1024&&(L=L.substring(0,v));k.push(L)}return k.join("")}; IV=function(T,Q){var k;if((k=mQ)==null?0:k.encodeInto)return Q=mQ.encodeInto(T,Q),Q.read>6|192:((v&64512)===55296&&l+1>18|240,Q[k++]=v>>12&63|128):Q[k++]=v>>12|224,Q[k++]=v>>6&63|128),Q[k++]=v&63|128)}return k}; hl=function(T){if(mQ)return mQ.encode(T);var Q=new Uint8Array(Math.ceil(T.length*1.2)),k=IV(T,Q);Q.lengthk&&(Q=Q.subarray(0,k));return Q}; sj=function(T){this.T=T;this.pos=0;this.S=-1}; SZ=function(T){var Q=Uj(T.T,T.pos);++T.pos;if(Q<128)return Q;for(var k=Q&127,l=1;Q>=128;)Q=Uj(T.T,T.pos),++T.pos,l*=128,k+=(Q&127)*l;return k}; Cx=function(T,Q){var k=T.S;for(T.S=-1;T.pos+1<=T.T.totalLength;){k<0&&(k=SZ(T));var l=k>>3,v=k&7;if(l===Q)return!0;if(l>Q){T.S=k;break}k=-1;switch(v){case 0:SZ(T);break;case 1:T.pos+=8;break;case 2:l=SZ(T);T.pos+=l;break;case 5:T.pos+=4}}return!1}; B3=function(T,Q){if(Cx(T,Q))return SZ(T)}; eAT=function(T,Q){if(Cx(T,Q))return Q=Mg(T.T,T.pos,8),T.pos+=8,(new DataView(Q.buffer,Q.byteOffset,Q.byteLength)).getFloat64(0,!0)}; zU=function(T,Q){if(Cx(T,Q))return!!SZ(T)}; X0=function(T,Q){if(Cx(T,Q)){Q=SZ(T);var k=Mg(T.T,T.pos,Q);T.pos+=Q;return k}}; w5=function(T,Q){if(T=X0(T,Q))return g.GU(T)}; d5=function(T,Q,k){if(T=X0(T,Q))return k(new sj(new oV([T])))}; Ng=function(T,Q){for(var k=[];Cx(T,Q);)k.push(SZ(T));return k.length?k:void 0}; Al=function(T,Q,k){for(var l=[],v;v=X0(T,Q);)l.push(k(new sj(new oV([v]))));return l.length?l:void 0}; b3=function(T,Q){T=T instanceof Uint8Array?new oV([T]):T;return Q(new sj(T))}; F45=function(T,Q){T=new Uint8Array(T);Q&&T.set(Q);return T}; Er5=function(T){this.pos=0;this.S=[];this.T=F45(T===void 0?4096:T);this.view=new DataView(this.T.buffer,this.T.byteOffset,this.T.byteLength)}; tl=function(T,Q){Q=T.pos+Q;if(!(T.T.length>=Q)){for(var k=T.T.length*2;k268435455){tl(T,4);for(var k=Q&1073741823,l=0;l<4;l++)T.view.setUint8(T.pos,k&127|128),k>>=7,T.pos+=1;Q=Math.floor(Q/268435456)}for(tl(T,4);Q>127;)T.view.setUint8(T.pos,Q&127|128),Q>>=7,T.pos+=1;T.view.setUint8(T.pos,Q);T.pos+=1}; px=function(T,Q,k){k!==void 0&&(Oj(T,Q*8),Oj(T,k))}; W3=function(T,Q,k){k!==void 0&&px(T,Q,k?1:0)}; $l=function(T,Q,k){k!==void 0&&(Oj(T,Q*8+2),Q=k.length,Oj(T,Q),tl(T,Q),T.T.set(k,T.pos),T.pos+=Q)}; Jl=function(T,Q,k){k!==void 0&&(yxg(T,Q,Math.ceil(Math.log2(k.length*4+2)/7)),tl(T,k.length*1.2),Q=IV(k,T.T.subarray(T.pos)),T.pos+Q>T.T.length&&(tl(T,Q),Q=IV(k,T.T.subarray(T.pos))),T.pos+=Q,ijI(T))}; yxg=function(T,Q,k){k=k===void 0?2:k;Oj(T,Q*8+2);T.S.push(T.pos);T.S.push(k);T.pos+=k}; ijI=function(T){for(var Q=T.S.pop(),k=T.S.pop(),l=T.pos-k-Q;Q--;){var v=Q?128:0;T.view.setUint8(k++,l&127|v);l>>=7}}; eZ=function(T,Q,k,l,v){k&&(yxg(T,Q,v===void 0?3:v),l(T,k),ijI(T))}; g.F0=function(T,Q){var k=new Er5(4096);Q(k,T);return new Uint8Array(k.T.buffer,k.T.byteOffset,k.pos)}; g.Ej=function(T){var Q=new sj(new oV([Am(decodeURIComponent(T))]));T=w5(Q,2);Q=B3(Q,4);var k=VzX[Q];if(typeof k==="undefined")throw T=new g.Wy("Failed to recognize field number",{name:"EntityKeyHelperError",xAj:Q}),g.bA(T),T;return{Su:Q,entityType:k,entityId:T}}; g.y8=function(T,Q){var k=k===void 0?0:k;var l=new Er5;$l(l,2,hl(T));T=T1T[Q];if(typeof T==="undefined")throw k=new g.Wy("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:Q}),g.bA(k),k;px(l,4,T);px(l,5,1);Q=new Uint8Array(l.T.buffer,l.T.byteOffset,l.pos);return encodeURIComponent(g.dJ(Q,k))}; i3=function(T,Q,k,l){if(l===void 0)return l=Object.assign({},T[Q]||{}),k=(delete l[k],l),l={},Object.assign({},T,(l[Q]=k,l));var v={},L={};return Object.assign({},T,(L[Q]=Object.assign({},T[Q],(v[k]=l,v)),L))}; Q$b=function(T,Q,k,l,v){var L=T[Q];if(L==null||!L[k])return T;l=g.l3(L[k],l,v==="REPEATED_FIELDS_MERGE_OPTION_APPEND");v={};L={};return Object.assign({},T,(L[Q]=Object.assign({},T[Q],(v[k]=l,v)),L))}; j$y=function(T,Q){T=T===void 0?{}:T;switch(Q.type){case "ENTITY_LOADED":return Q.payload.reduce(function(l,v){var L,q=(L=v.options)==null?void 0:L.persistenceOption;if(q&&q!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&q!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return l;if(!v.entityKey)return g.bA(Error("Missing entity key")),l;if(v.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!v.payload)return v=new g.Wy("REPLACE entity mutation is missing a payload",{entityKey:v.entityKey}),g.bA(v),l;var Y=g.kZ(v.payload); return i3(l,Y,v.entityKey,v.payload[Y])}if(v.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{v=v.entityKey;try{var U=g.Ej(v).entityType;Y=i3(l,U,v);break a}catch(f){if(f instanceof Error){v=new g.Wy("Failed to deserialize entity key",{entityKey:v,originalMessage:f.message});g.bA(v);Y=l;break a}throw f;}Y=void 0}return Y}if(v.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!v.payload)return v=new g.Wy("UPDATE entity mutation is missing a payload",{entityKey:v.entityKey}),g.bA(v),l;Y=g.kZ(v.payload);var R,Z;return Q$b(l, Y,v.entityKey,v.payload[Y],(R=v.fieldMask)==null?void 0:(Z=R.mergeOptions)==null?void 0:Z.repeatedFieldsMergeOption)}return l},T); case "REPLACE_ENTITY":var k=Q.payload;return i3(T,k.entityType,k.key,k.To);case "REPLACE_ENTITIES":return Object.keys(Q.payload).reduce(function(l,v){var L=Q.payload[v];return Object.keys(L).reduce(function(q,Y){return i3(q,v,Y,L[Y])},l)},T); case "UPDATE_ENTITY":return k=Q.payload,Q$b(T,k.entityType,k.key,k.To,k.EQH);default:return T}}; V8=function(T,Q,k){return T[Q]?T[Q][k]||null:null}; TF=function(T){return window.Int32Array?new Int32Array(T):Array(T)}; vQ=function(T){g.x.call(this);this.counter=[0,0,0,0];this.S=new Uint8Array(16);this.T=16;if(!kA6){var Q,k=new Uint8Array(256),l=new Uint8Array(256);var v=1;for(Q=0;Q<256;Q++)k[v]=Q,l[Q]=v,v^=v<<1^(v>>7&&283);Qj=new Uint8Array(256);j6=TF(256);kt=TF(256);lb=TF(256);oW=TF(256);for(var L=0;L<256;L++){v=L?l[255^k[L]]:0;v^=v<<1^v<<2^v<<3^v<<4;v=v&255^v>>>8^99;Qj[L]=v;Q=v<<1^(v>>7&&283);var q=Q^v;j6[L]=Q<<24|v<<16|v<<8|q;kt[L]=q<<24|j6[L]>>>8;lb[L]=v<<24|kt[L]>>>8;oW[L]=v<<24|lb[L]>>>8}kA6=!0}v=TF(44);for(k= 0;k<4;k++)v[k]=T[4*k]<<24|T[4*k+1]<<16|T[4*k+2]<<8|T[4*k+3];for(l=1;k<44;k++)T=v[k-1],k%4||(T=(Qj[T>>16&255]^l)<<24|Qj[T>>8&255]<<16|Qj[T&255]<<8|Qj[T>>>24],l=l<<1^(l>>7&&283)),v[k]=v[k-4]^T;this.key=v}; lZ5=function(T){for(var Q=T.key,k=T.counter[0]^Q[0],l=T.counter[1]^Q[1],v=T.counter[2]^Q[2],L=T.counter[3]^Q[3],q=3;q>=0&&!(T.counter[q]=-~T.counter[q]);q--);for(var Y,U,R=4;R<40;)q=j6[k>>>24]^kt[l>>16&255]^lb[v>>8&255]^oW[L&255]^Q[R++],Y=j6[l>>>24]^kt[v>>16&255]^lb[L>>8&255]^oW[k&255]^Q[R++],U=j6[v>>>24]^kt[L>>16&255]^lb[k>>8&255]^oW[l&255]^Q[R++],L=j6[L>>>24]^kt[k>>16&255]^lb[l>>8&255]^oW[v&255]^Q[R++],k=q,l=Y,v=U;T=T.S;q=Q[40];T[0]=Qj[k>>>24]^q>>>24;T[1]=Qj[l>>16&255]^q>>16&255;T[2]=Qj[v>>8&255]^ q>>8&255;T[3]=Qj[L&255]^q&255;q=Q[41];T[4]=Qj[l>>>24]^q>>>24;T[5]=Qj[v>>16&255]^q>>16&255;T[6]=Qj[L>>8&255]^q>>8&255;T[7]=Qj[k&255]^q&255;q=Q[42];T[8]=Qj[v>>>24]^q>>>24;T[9]=Qj[L>>16&255]^q>>16&255;T[10]=Qj[k>>8&255]^q>>8&255;T[11]=Qj[l&255]^q&255;q=Q[43];T[12]=Qj[L>>>24]^q>>>24;T[13]=Qj[k>>16&255]^q>>16&255;T[14]=Qj[l>>8&255]^q>>8&255;T[15]=Qj[v&255]^q&255}; gG=function(){if(!LT&&!g.$n){if(q9)return q9;var T;q9=(T=window.crypto)==null?void 0:T.subtle;var Q,k,l;if(((Q=q9)==null?0:Q.importKey)&&((k=q9)==null?0:k.sign)&&((l=q9)==null?0:l.encrypt))return q9;q9=void 0}}; g.Ua=function(T){var Q=gG();Q&&(this.T=new M9(T,Q));this.S=new g.Yt(T)}; M9=function(T,Q){this.S=T;this.subtleCrypto=Q}; o_g=function(T,Q,k){var l,v;return g.a(function(L){switch(L.S){case 1:if(T.T){L.Ym(2);break}return g.c(L,T.subtleCrypto.importKey("raw",T.S,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:T.T=L.T;case 2:return l={name:"AES-CTR",counter:k,length:128},g.c(L,T.subtleCrypto.encrypt(l,T.T,Q),4);case 4:return v=L.T,L.return(new Uint8Array(v))}})}; g.Yt=function(T){this.S=T}; RW=function(T){this.N=new Uint8Array(64);this.L=new Uint8Array(64);this.Y=0;this.B=new Uint8Array(64);this.S=0;this.N.set(T);this.L.set(T);for(T=0;T<64;T++)this.N[T]^=92,this.L[T]^=54;this.reset()}; v_H=function(T,Q,k){for(var l=T.C,v=T.T[0],L=T.T[1],q=T.T[2],Y=T.T[3],U=T.T[4],R=T.T[5],Z=T.T[6],f=T.T[7],G,m,I,z=0;z<64;)z<16?(l[z]=I=Q[k]<<24|Q[k+1]<<16|Q[k+2]<<8|Q[k+3],k+=4):(G=l[z-2],m=l[z-15],I=l[z-7]+l[z-16]+((G>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),l[z]=I),G=f+Zn[z]+I+((U>>>6|U<<26)^(U>>>11|U<<21)^(U>>>25|U<<7))+(U&R^~U&Z),m=((v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+(v&L^v&q^L&q),f=G+m,Y+=G,z++,z<16?(l[z]=I=Q[k]<<24|Q[k+1]<<16|Q[k+2]<<8|Q[k+3],k+=4):(G= l[z-2],m=l[z-15],I=l[z-7]+l[z-16]+((G>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),l[z]=I),G=Z+Zn[z]+I+((Y>>>6|Y<<26)^(Y>>>11|Y<<21)^(Y>>>25|Y<<7))+(Y&U^~Y&R),m=((f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10))+(f&v^f&L^v&L),Z=G+m,q+=G,z++,z<16?(l[z]=I=Q[k]<<24|Q[k+1]<<16|Q[k+2]<<8|Q[k+3],k+=4):(G=l[z-2],m=l[z-15],I=l[z-7]+l[z-16]+((G>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),l[z]=I),G=R+Zn[z]+I+((q>>>6|q<<26)^(q>>>11|q<<21)^(q>>>25|q<<7))+(q&Y^ ~q&U),m=((Z>>>2|Z<<30)^(Z>>>13|Z<<19)^(Z>>>22|Z<<10))+(Z&f^Z&v^f&v),R=G+m,L+=G,z++,z<16?(l[z]=I=Q[k]<<24|Q[k+1]<<16|Q[k+2]<<8|Q[k+3],k+=4):(G=l[z-2],m=l[z-15],I=l[z-7]+l[z-16]+((G>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),l[z]=I),G=U+Zn[z]+I+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&q^~L&Y),m=((R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10))+(R&Z^R&f^Z&f),I=f,f=Y,Y=I,I=Z,Z=q,q=I,I=R,R=L,L=I,U=v+G,v=G+m,z++;T.T[0]=v+T.T[0]|0;T.T[1]=L+T.T[1]|0;T.T[2]=q+T.T[2]|0;T.T[3]= Y+T.T[3]|0;T.T[4]=U+T.T[4]|0;T.T[5]=R+T.T[5]|0;T.T[6]=Z+T.T[6]|0;T.T[7]=f+T.T[7]|0}; qqT=function(T){var Q=new Uint8Array(32),k=64-T.S;T.S>55&&(k+=64);var l=new Uint8Array(k);l[0]=128;for(var v=T.Y*8,L=1;L<9;L++){var q=v%256;l[k-L]=q;v=(v-q)/256}T.update(l);for(k=0;k<8;k++)Q[k*4]=T.T[k]>>>24,Q[k*4+1]=T.T[k]>>>16&255,Q[k*4+2]=T.T[k]>>>8&255,Q[k*4+3]=T.T[k]&255;Lbt(T);return Q}; Lbt=function(T){T.T=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];T.C=[];T.C.length=64;T.Y=0;T.S=0}; g_g=function(T){this.T=T}; MVg=function(T,Q,k){T=new RW(T.T);T.update(Q);T.update(k);Q=qqT(T);T.update(T.N);T.update(Q);Q=qqT(T);T.reset();return Q}; YqC=function(T){this.S=T}; UEt=function(T,Q,k,l){var v,L,q;return g.a(function(Y){switch(Y.S){case 1:if(T.T){Y.Ym(2);break}return g.c(Y,l.importKey("raw",T.S,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:T.T=Y.T;case 2:return v=new Uint8Array(Q.length+k.length),v.set(Q),v.set(k,Q.length),L={name:"HMAC",hash:"SHA-256"},g.c(Y,l.sign(L,T.T,v),4);case 4:return q=Y.T,Y.return(new Uint8Array(q))}})}; RZg=function(T,Q,k){T.L||(T.L=new g_g(T.S));return MVg(T.L,Q,k)}; ZZ6=function(T,Q,k){var l,v;return g.a(function(L){if(L.S==1){l=gG();if(!l)return L.return(RZg(T,Q,k));g.z5(L,3);return g.c(L,UEt(T,Q,k,l),5)}if(L.S!=3)return L.return(L.T);v=g.by(L);g.rB(v);LT=!0;return L.return(RZg(T,Q,k))})}; GAX=function(T){for(var Q="",k=0;k=0||Bf(T,0,"gad_source",T.search(zg))>=0}; zZC=function(){this.T=new Map}; wdH=function(T,Q){var k=r1().resolve(Xdb);if(B1b(Q)){var l=X6(Q,"gclid");Q={handleEvent:function(Y){T&&!T.closed&&typeof T.postMessage==="function"&&Y&&Y.origin&&Y.source===T&&Y.data&&Y.data.action==="gcl_setup"&&T.postMessage(Object.assign({},{action:"gcl_transfer"},l&&{gclid:l},{gadSource:2}),Y.origin)}}; for(var v=g.B(k.T),L=v.next();!L.done;L=v.next()){var q=g.B(L.value);L=q.next().value;q=q.next().value;if(L.closed)try{window.removeEventListener("message",q),k.T.delete(L)}catch(Y){g.bA(Y)}}T&&k.T.size<15&&(k.T.set(T,Q),window.addEventListener("message",Q))}}; fT=function(T,Q,k){if(!Q)return T.length>=1?T[T.length-1]:null;for(var l=g.B(T),v=l.next();!v.done;v=l.next())if(v=v.value,v.width&&v.height&&(k&&v.width>=Q||!k&&v.height>=Q))return v;for(Q=T.length-1;Q>=0;Q--)if(k&&T[Q].width||!k&&T[Q].height)return T[Q];return T[0]}; GF=function(){this.state=1;this.FI=null;this.fz=void 0}; N15=function(T,Q,k,l,v,L){var q=q===void 0?"trayride":q;k?(T.OH(2),g.LZ(g.BN(k),function(){if(window[q])dEb(T,l,q,v);else{T.OH(3);var Y=CKf(k),U=document.getElementById(Y);U&&(sb6(Y),U.parentNode.removeChild(U));g.rB(new g.Wy("BL:ULB",""+k))}},L)):Q?(L=g.fO("SCRIPT"),Q instanceof IT?(L.textContent=hi(Q),sk(L)):L.textContent=Q,L.nonce=mI(document),document.head.appendChild(L),document.head.removeChild(L),window[q]?dEb(T,l,q,v):(T.OH(4),g.rB(new g.Wy("BL:ULBJ")))):g.rB(new g.Wy("BL:ULV"))}; dEb=function(T,Q,k,l){T.OH(5);var v=!!T.fz&&AuX.includes(g.Rq(T.fz)||"");try{var L=new fi({program:Q,globalName:k,uA:{disable:!g.hH("att_web_record_metrics")||!g.hH("att_skip_metrics_for_cookieless_domains_ks")&&v,XJ:"aGIf"}});L.S5.then(function(){T.OH(6);l&&l(Q)}); T.t2(L)}catch(q){T.OH(7),q instanceof Error&&g.rB(q)}}; mS=function(){var T=g.jA("yt.abuse.playerAttLoader");return T&&["bgvma","bgvmb","bgvmc"].every(function(Q){return Q in T})?T:null}; IW=function(){GF.apply(this,arguments)}; h6=function(){}; bZt=function(T,Q,k){for(var l=!1,v=g.B(T.sF.entries()),L=v.next();!L.done;L=v.next())L=g.B(L.value).next().value,L.slotType==="SLOT_TYPE_PLAYER_BYTES"&&L.Ik==="core"&&(l=!0);if(l){a:if(!k){T=g.B(T.sF.entries());for(k=T.next();!k.done;k=T.next())if(l=g.B(k.value),k=l.next().value,l=l.next().value,k.slotType==="SLOT_TYPE_IN_PLAYER"&&k.Ik==="core"){k=l.layoutId;break a}k=void 0}k?Q.xO(k):MH("No triggering layout ID available when attempting to mute.")}}; sa=function(T,Q){this.O1=T;this.c5=Q}; S6=function(){}; CT=function(){}; cuy=function(T){g.x.call(this);var Q=this;this.yp=T;this.T=new Map;BQ(this,"commandExecutorCommand",function(k,l,v){ruJ(Q,k.commands,l,v)}); BQ(this,"clickTrackingParams",function(){})}; DEy=function(T,Q){BQ(T,Q.CS(),function(k,l,v){Q.Gm(k,l,v)})}; BQ=function(T,Q,k){T.wd();T.T.get(Q)&&g.bA(Error("Extension name "+Q+" already registered"));T.T.set(Q,k)}; ruJ=function(T,Q,k,l){Q=Q===void 0?[]:Q;T.wd();var v=[],L=[];Q=g.B(Q);for(var q=Q.next();!q.done;q=Q.next())q=q.value,g.t(q,aZy)||g.t(q,urC)?v.push(q):L.push(q);v=g.B(v);for(Q=v.next();!Q.done;Q=v.next())zF(T,Q.value,k,l);L=g.B(L);for(v=L.next();!v.done;v=L.next())zF(T,v.value,k,l)}; zF=function(T,Q,k,l){T.wd();Q.loggingUrls&&n_C(T,"loggingUrls",Q.loggingUrls,k,l);Q=g.B(Object.entries(Q));for(var v=Q.next();!v.done;v=Q.next()){var L=g.B(v.value);v=L.next().value;L=L.next().value;v==="openPopupAction"?T.yp.get().bu("innertubeCommand",{openPopupAction:L}):v==="confirmDialogEndpoint"?T.yp.get().bu("innertubeCommand",{confirmDialogEndpoint:L}):Kbt.hasOwnProperty(v)||n_C(T,v,L,k,l)}}; n_C=function(T,Q,k,l,v){if((T=T.T.get(Q))&&typeof T==="function")try{T(k,l,v)}catch(L){g.bA(L)}else Q=new g.Wy("Unhandled field",Q),g.rB(Q)}; X2=function(T,Q,k){this.Fj=T;this.T=Q;this.Vq=k;d1(r1(),{mj:Xdb,pT:zZC})}; wG=function(T){this.value=T}; dG=function(T){this.value=T}; N9=function(T){this.value=T}; A6=function(T){this.value=T}; bb=function(T){this.value=T}; rG=function(T){this.value=T}; cQ=function(T){this.value=T}; Dn=function(){wG.apply(this,arguments)}; aW=function(T){this.value=T}; ub=function(T){this.value=T}; nT=function(T){this.value=T}; KT=function(T){this.value=T}; xt=function(T){this.value=T}; PQ=function(T){this.value=T}; HQ=function(T){this.value=T}; t6=function(T){this.value=T}; Oa=function(T){this.value=T}; pT=function(T){this.value=T}; WQ=function(){wG.apply(this,arguments)}; $t=function(T){this.value=T}; J6=function(T){this.value=T}; e6=function(T){this.value=T}; F2=function(T){this.value=T}; Ea=function(T){this.value=T}; yj=function(T){this.value=T}; ib=function(T){this.value=T}; Vj=function(T){this.value=T}; Tp=function(T){this.value=T}; QZ=function(T){this.value=T}; jE=function(T){this.value=T}; ke=function(T){this.value=T}; l2=function(T){this.value=T}; oH=function(T){this.value=T}; vz=function(T){this.value=T}; Lp=function(T){this.value=T}; qu=function(T){this.value=T}; gn=function(T){this.value=T}; Mu=function(T){this.value=T}; Ye=function(T){this.value=T}; U9=function(T){this.value=T}; RH=function(T){this.value=T}; Zi=function(T){this.value=T}; fp=function(T){this.value=T}; Gp=function(T){this.value=T}; mU=function(T){this.value=T}; IH=function(T){this.value=T}; hj=function(T){this.value=T}; s9=function(T){this.value=T}; SE=function(T){this.value=T}; Cp=function(T){this.value=T}; Bz=function(T){this.value=T}; zp=function(T){this.value=T}; XN=function(T){this.value=T}; wn=function(T){this.value=T}; dn=function(T){this.value=T}; Nu=function(T){this.value=T}; Aj=function(T){this.value=T}; b2=function(T){this.value=T}; rn=function(){wG.apply(this,arguments)}; cz=function(T){this.value=T}; Di=function(){wG.apply(this,arguments)}; aH=function(){wG.apply(this,arguments)}; u2=function(){wG.apply(this,arguments)}; np=function(){wG.apply(this,arguments)}; Kp=function(){wG.apply(this,arguments)}; xe=function(T){this.value=T}; Pz=function(T){this.value=T}; Hz=function(T){this.value=T}; tj=function(T){this.value=T}; O9=function(T){this.value=T}; Wz=function(T,Q,k){if(k&&!k.includes(T.layoutType))return!1;Q=g.B(Q);for(k=Q.next();!k.done;k=Q.next())if(!pp(T.clientMetadata,k.value))return!1;return!0}; $e=function(){return""}; xEt=function(T,Q){switch(T){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 Q(T),8}}; Jj=function(T,Q,k,l){l=l===void 0?!1:l;Gv.call(this,T);this.Cp=k;this.q5=l;this.args=[];Q&&this.args.push(Q)}; F=function(T,Q,k,l){l=l===void 0?!1:l;Gv.call(this,T);this.Cp=k;this.q5=l;this.args=[];Q&&this.args.push(Q)}; eE=function(T){var Q=new Map;T.forEach(function(k){Q.set(k.T(),k)}); this.T=Q}; pp=function(T,Q){return T.T.has(Q)}; FN=function(T,Q){T=T.T.get(Q);if(T!==void 0)return T.get()}; E9=function(T){return Array.from(T.T.keys())}; yZ=function(T,Q,k){if(k&&k!==T.slotType)return!1;Q=g.B(Q);for(k=Q.next();!k.done;k=Q.next())if(!pp(T.clientMetadata,k.value))return!1;return!0}; HZg=function(T){var Q;return((Q=Pvu.get(T))==null?void 0:Q.RT)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; VZ=function(T,Q){var k={type:Q.slotType,controlFlowManagerLayer:tVu.get(Q.Ik)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Q.slotEntryTrigger&&(k.entryTriggerType=Q.slotEntryTrigger.triggerType);Q.slotPhysicalPosition!==1&&(k.slotPhysicalPosition=Q.slotPhysicalPosition);if(T){k.debugData={slotId:Q.slotId};if(T=Q.slotEntryTrigger)k.debugData.slotEntryTriggerData=i2(T);T=Q.slotFulfillmentTriggers;k.debugData.fulfillmentTriggerData=[];T=g.B(T);for(var l=T.next();!l.done;l=T.next())k.debugData.fulfillmentTriggerData.push(i2(l.value)); Q=Q.slotExpirationTriggers;k.debugData.expirationTriggerData=[];Q=g.B(Q);for(T=Q.next();!T.done;T=Q.next())k.debugData.expirationTriggerData.push(i2(T.value))}return k}; OZC=function(T,Q){var k={type:Q.layoutType,controlFlowManagerLayer:tVu.get(Q.Ik)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};T&&(k.debugData={layoutId:Q.layoutId});return k}; i2=function(T,Q){var k={type:T.triggerType};Q!=null&&(k.category=Q);T.triggeringSlotId!=null&&(k.triggerSourceData||(k.triggerSourceData={}),k.triggerSourceData.associatedSlotId=T.triggeringSlotId);T.triggeringLayoutId!=null&&(k.triggerSourceData||(k.triggerSourceData={}),k.triggerSourceData.associatedLayoutId=T.triggeringLayoutId);return k}; pdt=function(T,Q,k,l){Q={opportunityType:Q};T&&(l||k)&&(l=g.IQ(l||[],function(v){return VZ(T,v)}),Q.debugData=Object.assign({},k&&k.length>0?{associatedSlotId:k}:{},l.length>0?{slots:l}:{})); return Q}; Q0=function(T,Q){return function(k){return Wbu(T4(T),Q.slotId,Q.slotType,Q.slotPhysicalPosition,Q.Ik,Q.slotEntryTrigger,Q.slotFulfillmentTriggers,Q.slotExpirationTriggers,k.layoutId,k.layoutType,k.Ik)}}; Wbu=function(T,Q,k,l,v,L,q,Y,U,R,Z){return{adClientDataEntry:{slotData:VZ(T,{slotId:Q,slotType:k,slotPhysicalPosition:l,Ik:v,slotEntryTrigger:L,slotFulfillmentTriggers:q,slotExpirationTriggers:Y,clientMetadata:new eE([])}),layoutData:OZC(T,{layoutId:U,layoutType:R,Ik:Z,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],EG:new Map,clientMetadata:new eE([]),ZP:{}})}}}; kd=function(T){this.Qq=T;T=Math.random();var Q=this.Qq.get();Q=g.jj(Q.U.G().experiments,"html5_debug_data_log_probability");Q=Number.isFinite(Q)&&Q>=0&&Q<=1?Q:0;this.T=T1){g.rB(new g.Wy("Exit already started",{current:T.currentState}));var k=!1}else k=!0;if(!k)return!1;T.currentState=2;T.T=Q;return!0}; vj=function(T){if(T.currentState!==2)return!1;T.currentState=3;return!0}; SCf=function(T,Q){var k=new Map;T=g.B(T);for(var l=T.next();!l.done;l=T.next()){l=l.value;if(l.layoutType==="LAYOUT_TYPE_MEDIA")var v="v";else l.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(v=FN(l.clientMetadata,"metadata_type_linked_in_player_layout_type"),v=v==="LAYOUT_TYPE_ENDCAP"||v==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":v==="LAYOUT_TYPE_SURVEY"?"s":v==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):v="u";k.set(l.layoutId,v);if(v==="u"){var L={};v=Q;l=(L.c=l.layoutId,L);v.U.T9("uct",l)}}T= Q.Zs();Lu={contentCpn:T,ZY:k};l={};k=(l.ct=k.size,l.c=T,l);Q.U.T9("acc",k)}; CD6=function(){Lu={contentCpn:"",ZY:new Map}}; q$=function(T){var Q;return(Q=Lu.ZY.get(T))!=null?Q:"u"}; gC=function(T,Q,k){T.U.T9(Q,k);BDC(T)}; ziI=function(T){var Q=T.layoutId,k=T.fS;if(T.yl){var l={};gC(T.Fj,"slso",(l.ec=Q,l.is=k,l.ctp=q$(Q),l))}}; M$=function(T){var Q=T.layoutId,k=T.fS;if(T.yl){var l={};gC(T.Fj,"slse",(l.ec=Q,l.is=k,l.ctp=q$(Q),l))}}; XZy=function(T){var Q=T.layoutId,k=T.fS,l=T.Fj;T.yl&&(T={},gC(l,"sleo",(T.xc=Q,T.is=k,T.ctp=q$(Q),T)),BDC(l))}; wZI=function(T){var Q=T.cpn,k=T.Fj;T=T.fS;var l=k.Zs(),v={};gC(k,"ce",(v.ec=Q,v.ia=Q!==l,v.r=Lu.ZY.has(Q),v.is=T,v.ctp=q$(Q),v))}; BDC=function(T){if(T.Zs()!==Lu.contentCpn){var Q={};Q=(Q.c=Lu.contentCpn,Q);T.U.T9("ccm",Q)}}; d1b=function(T){var Q=T.cpn,k=T.Fj;T=T.fS;var l=k.Zs(),v={};gC(k,"cx",(v.xc=Q,v.ia=Q!==l,v.r=Lu.ZY.has(Q),v.is=T,v.ctp=q$(Q),v))}; NDX=function(T){this.params=T;this.T=new Set}; AcT=function(T,Q,k){if(!T.T.has(Q)){T.T.add(Q);var l={};T.params.mx.Fs(Q,Object.assign({},k,(l.p_ac=T.params.adCpn,l.p_isv=T.params.Ra&&T.params.bK,l)))}}; U_=function(T,Q,k){if(Y9(T.params.mx.Qq.get(),!0)){var l=k.flush,v={};AcT(T,Q,(v.cts=k.currentTimeSec,v.f=l,v))}}; bDI=function(T,Q){this.Fj=T;this.Qq=Q}; RE=function(T){var Q=[];if(T){T=g.B(Object.entries(T));for(var k=T.next();!k.done;k=T.next()){var l=g.B(k.value);k=l.next().value;l=l.next().value;l!==void 0&&(l=typeof l==="boolean"?""+ +l:(""+l).replace(/[:,=]/g,"_"),Q.push(k+"."+l))}}return Q.join(";")}; g.ZK=function(T,Q,k){Q=Q===void 0?{}:Q;this.errorCode=T;this.details=Q;this.severity=k===void 0?0:k}; fu=function(T){return T===1||T===2}; GX=function(T,Q){Q=Q===void 0?0:Q;if(T instanceof g.ZK)return T;T=T&&T instanceof Error?T:Error(""+T);fu(Q)?g.bA(T):g.rB(T);return new g.ZK(Q===1?"player.fatalexception":"player.exception",{name:""+T.name,message:""+T.message},Q)}; rcb=function(T,Q){function k(){var l=g.HT.apply(0,arguments);T.removeEventListener("playing",k);Q.apply(null,g.ZH(l))} T.addEventListener("playing",k)}; mD=function(){var T=g.jA("yt.player.utils.videoElement_");T||(T=g.fO("VIDEO"),g.Tv("yt.player.utils.videoElement_",T));return T}; IE=function(T){var Q=mD();return!!(Q&&Q.canPlayType&&Q.canPlayType(T))}; s_=function(T){if(/opus/.test(T)&&g.hW&&!ze("38")&&!g.ph())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(T);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(T);if(/webm/.test(T)&&!s5f())return!1;T==='audio/mp4; codecs="mp4a.40.2"'&&(T='video/mp4; codecs="avc1.4d401f"');return!!IE(T)}; ccT=function(T){try{var Q=s_('video/mp4; codecs="avc1.42001E"')||s_('video/webm; codecs="vp9"');return(s_('audio/mp4; codecs="mp4a.40.2"')||s_('audio/webm; codecs="opus"'))&&(Q||!T)||IE('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(k){return"html5.missingapi"}}; SI=function(){var T=mD();return!(!T.webkitSupportsPresentationMode||typeof T.webkitSetPresentationMode!=="function")}; Cu=function(){var T=mD();try{var Q=T.muted;T.muted=!Q;return T.muted!==Q}catch(k){}return!1}; D15=function(){var T;return((T=navigator.connection)==null?void 0:T.type)||""}; g.Bj=function(){wi.apply(this,arguments)}; zX=function(T,Q,k,l,v,L,q,Y){this.sampleRate=T===void 0?0:T;this.numChannels=Q===void 0?0:Q;this.spatialAudioType=k===void 0?"SPATIAL_AUDIO_TYPE_NONE":k;this.T=l===void 0?!1:l;this.L=v;this.Y=L;this.audioQuality=q===void 0?"AUDIO_QUALITY_UNKNOWN":q;this.S=Y===void 0?!1:Y}; dC=function(T,Q,k,l,v,L,q,Y,U){this.width=T;this.height=Q;this.quality=L||XL(T,Q);this.qualityOrdinal=g.wC[this.quality];this.fps=k||0;this.stereoLayout=!v||l!=null&&l!=="UNKNOWN"&&l!=="RECTANGULAR"?0:v;this.projectionType=l?l==="EQUIRECTANGULAR"&&v===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":l:"UNKNOWN";(T=q)||(T=g.wC[this.quality],T===0?T="Autom\u00e1tica":(Q=this.fps,k=this.projectionType,T=T.toString()+(k==="EQUIRECTANGULAR"||k==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||k==="MESH"?"s":"p")+(Q>55?"60": Q>49?"50":Q>39?"48":"")));this.qualityLabel=T;this.T=Y||"";this.primaries=U||""}; XL=function(T,Q){var k=Math.max(T,Q);T=Math.min(T,Q);Q=N$[0];for(var l=0;l=Math.floor(L*16/9)*1.3||T>=L*1.3)return Q;Q=v}return"tiny"}; rC=function(T,Q,k){k=k===void 0?{}:k;this.id=T;this.mimeType=Q;k.qY>0||(k.qY=16E3);Object.assign(this,k);T=g.B(this.id.split(";"));this.itag=T.next().value;this.T=T.next().value;this.containerType=AW(Q);this.yR=bk[this.itag]||""}; cj=function(T){return T.yR==="9"||T.yR==="("||T.yR==="9h"||T.yR==="(h"}; aF5=function(T){return T.yR==="H"||T.yR==="h"}; DK=function(T){return T.yR==="9h"||T.yR==="(h"}; ucI=function(T){return!!T.jY&&!!T.jY.fairplay&&(T.yR==="("||T.yR==="(h"||T.yR==="A"||T.yR==="MEAC3")||aE&&!!T.jY&&T.yR==="1e"}; uk=function(T){return T.yR==="1"||T.yR==="1h"||aE&&T.yR==="1e"}; nu=function(T){return T.yR==="mac3"||T.yR==="meac3"||T.yR==="m"||T.yR==="i"}; Ku=function(T){return T.yR==="MAC3"||T.yR==="MEAC3"||T.yR==="M"||T.yR==="I"}; g.x9=function(T){return T.containerType===1}; n8b=function(T){return T.yR==="("||T.yR==="(h"||T.yR==="H"||aE&&T.yR==="1e"}; Pj=function(T){return T.mimeType==="application/x-mpegURL"}; g.Hj=function(T,Q){return{itag:+T.itag,lmt:Q?0:T.lastModified,xtags:T.T||""}}; KMt=function(T){var Q=navigator.mediaCapabilities;if(Q==null||!Q.decodingInfo||T.yR==="f")return Promise.resolve();var k={type:T.audio&&T.video?"file":"media-source"};T.video&&(k.video={contentType:T.mimeType,width:T.video.width||640,height:T.video.height||360,bitrate:T.qY*8||1E6,framerate:T.video.fps||30});T.audio&&(k.audio={contentType:T.mimeType,channels:""+(T.audio.numChannels||2),bitrate:T.qY*8||128E3,samplerate:T.audio.sampleRate||44100});return Q.decodingInfo(k).then(function(l){T.S=l})}; tW=function(T){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(T)}; pu=function(T){return/(vp9|vp09|vp8|avc1|av01)/.test(T)}; Wj=function(T){return T.includes("vtt")||T.includes("text/mp4")}; AW=function(T){return T.indexOf("/mp4")>=0?1:T.indexOf("/webm")>=0?2:T.indexOf("/x-flv")>=0?3:T.indexOf("/vtt")>=0?4:0}; $9=function(T,Q,k,l,v,L){var q=new zX;Q in g.wC||(Q="small");Q==="light"&&(Q="tiny");l&&v?(v=Number(v),l=Number(l)):(v=g.wC[Q],l=Math.round(v*16/9));L=new dC(l,v,0,null,void 0,Q,L);T=unescape(T.replace(/"/g,'"'));return new rC(k,T,{audio:q,video:L})}; JW=function(T){var Q="id="+T.id;T.video&&(Q+=", res="+T.video.qualityLabel);var k,l;return Q+", byterate=("+((k=T.S2)==null?void 0:k.toFixed(0))+", "+((l=T.qY)==null?void 0:l.toFixed(0))+")"}; eI=function(T,Q){return{start:function(k){return T[k]}, end:function(k){return Q[k]}, length:T.length}}; x1f=function(T,Q,k){for(var l=[],v=[],L=0;L=Q)return k}catch(l){}return-1}; y4=function(T,Q){return E_(T,Q)>=0}; PDJ=function(T,Q){if(!T)return NaN;Q=E_(T,Q);return Q>=0?T.start(Q):NaN}; ik=function(T,Q){if(!T)return NaN;Q=E_(T,Q);return Q>=0?T.end(Q):NaN}; V4=function(T){return T&&T.length?T.end(T.length-1):NaN}; TN=function(T){return V4(T)>0}; Qd=function(T,Q){T=ik(T,Q);return T>=0?T-Q:0}; jt=function(T,Q,k){for(var l=[],v=[],L=0;Lk||(l.push(Math.max(Q,T.start(L))-Q),v.push(Math.min(k,T.end(L))-Q));return eI(l,v)}; kT=function(T,Q,k,l){g.ox.call(this);var v=this;this.kM=T;this.start=Q;this.end=k;this.isActive=l;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.WO={error:function(){!v.wd()&&v.isActive&&v.publish("error",v)}, updateend:function(){!v.wd()&&v.isActive&&v.publish("updateend",v)}}; this.kM.L7(this.WO);this.tA=this.isActive}; oL=function(T,Q,k,l,v,L){g.ox.call(this);var q=this;this.jr=T;this.fd=Q;this.id=k;this.containerType=l;this.yR=v;this.bK=L;this.Qj=this.LO=this.Qy=null;this.gL=!1;this.appendWindowStart=this.timestampOffset=0;this.hc=eI([],[]);this.CQ=!1;this.hL=[];this.Rj=le?[]:void 0;this.Qp=function(U){return q.publish(U.type,q)}; var Y;if((Y=this.jr)==null?0:Y.addEventListener)this.jr.addEventListener("updateend",this.Qp),this.jr.addEventListener("error",this.Qp)}; vM=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; Ld=function(T,Q){this.Xs=T;this.T=Q===void 0?!1:Q;this.S=!1}; q3=function(T,Q,k){k=k===void 0?!1:k;g.x.call(this);this.mediaElement=T;this.j6=Q;this.isView=k;this.B=0;this.Y=!1;this.N=!0;this.D=0;this.callback=null;this.j=!1;this.j6||(this.fd=this.mediaElement.xB());this.events=new g.Bj(this);g.P(this,this.events);this.L=new Ld(this.j6?window.URL.createObjectURL(this.j6):this.fd.webkitMediaSourceURL,!0);T=this.j6||this.fd;di(this.events,T,["sourceopen","webkitsourceopen"],this.qMH);di(this.events,T,["sourceclose","webkitsourceclose"],this.zvm);this.C={updateend:this.oL}}; HDg=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; txC=function(T,Q){gf(T)?g.Ad(function(){Q(T)}):T.callback=Q}; ODy=function(T,Q,k){if(M3){var l;UM(T.mediaElement,{l:"mswssb",sr:(l=T.mediaElement.yq)==null?void 0:l.e1()},!1);Q.L7(T.C,T);k.L7(T.C,T)}T.T=Q;T.S=k;g.P(T,Q);g.P(T,k)}; RL=function(T){return!!T.T||!!T.S}; gf=function(T){try{return Zl(T)==="open"}catch(Q){return!1}}; Zl=function(T){if(T.j6)return T.j6.readyState;switch(T.fd.webkitSourceState){case T.fd.SOURCE_OPEN:return"open";case T.fd.SOURCE_ENDED:return"ended";default:return"closed"}}; fd=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; pZt=function(T){gf(T)&&(T.j6?T.j6.endOfStream():T.fd.webkitSourceEndOfStream(T.fd.EOS_NO_ERROR))}; WMT=function(T,Q,k,l){if(!T.T||!T.S)return null;var v=T.T.isView()?T.T.kM:T.T,L=T.S.isView()?T.S.kM:T.S,q=new q3(T.mediaElement,T.j6,!0);q.L=T.L;ODy(q,new kT(v,Q,k,l),new kT(L,Q,k,l));gf(T)||T.T.FL(T.T.Px());return q}; $1I=function(T){var Q;(Q=T.T)==null||Q.YR();var k;(k=T.S)==null||k.YR();T.N=!1}; GN=function(){var T=this;this.qh=this.LR=sIu;this.promise=new g.rc(function(Q,k){T.LR=Q;T.qh=k})}; ml=function(){g.x.call(this);this.wz=!1;this.Xs=null;this.C=this.B=!1;this.Y=new g.fL;this.yq=null;g.P(this,this.Y)}; IL=function(T){T=T.MD();return T.length<1?NaN:T.end(T.length-1)}; Jc5=function(T){!T.S&&HDg()&&(T.L?T.L.then(function(){return Jc5(T)}):T.Cz()||(T.S=T.JH()))}; ei5=function(T){T.S&&(T.S.dispose(),T.S=void 0)}; UM=function(T,Q,k){var l;((l=T.yq)==null?0:l.J3())&&T.yq.T9("rms",Q,k===void 0?!1:k)}; FMt=function(T,Q,k){T.isPaused()||T.getCurrentTime()>Q||k>10||(T.play(),g.Zq(function(){FMt(T,T.getCurrentTime(),k+1)},500))}; E85=function(T,Q){T.Xs&&T.Xs.equals(Q)||(T.Xs&&T.Xs.dispose(),T.Xs=Q)}; hB=function(T){return Qd(T.Q8(),T.getCurrentTime())}; ycb=function(T,Q){if(T.Nm()===0||T.hasError())return!1;var k=T.getCurrentTime()>0;return Q>=0&&(T=T.MD(),T.length||!k)?y4(T,Q):k}; sM=function(T){T.Cz()&&(T.yq&&T.yq.Sl("rs_s"),We&&T.getCurrentTime()>0&&T.seekTo(0),T.Kj(),T.load(),E85(T,null));delete T.L}; St=function(T){switch(T.SZ()){case 2:return"progressive.net.retryexhausted";case 3:return T=T.dw(),(T==null?0:T.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||iDX&&(T==null?0:T.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.Cd=function(T,Q,k){this.ge=Q===void 0?null:Q;this.seekSource=k===void 0?null:k;this.state=T||64}; BM=function(T,Q,k){k=k===void 0?!1:k;return Vx5(T,Q.getCurrentTime(),(0,g.XY)(),hB(Q),k)}; zN=function(T,Q,k,l){if(!(Q===T.state&&k===T.ge&&l===T.seekSource||Q!==void 0&&(Q&128&&!k||Q&2&&Q&16))){var v;if(v=Q)v=Q||T.state,v=!!(v&16||v&32);T=new g.Cd(Q,k,v?l?l:T.seekSource:null)}return T}; wf=function(T,Q,k){return zN(T,T.state|Q,null,k===void 0?null:k)}; df=function(T,Q){return zN(T,T.state&~Q,null,null)}; N3=function(T,Q,k,l){return zN(T,(T.state|Q)&~k,null,l===void 0?null:l)}; g.J=function(T,Q){return!!(T.state&Q)}; g.AB=function(T,Q){return Q.state===T.state&&Q.ge===T.ge}; be=function(T){return T.isPlaying()&&!g.J(T,16)&&!g.J(T,32)}; rf=function(T){return g.J(T,128)?-1:g.J(T,2)?0:g.J(T,2048)?3:g.J(T,64)?-1:g.J(T,1)&&!g.J(T,32)?3:g.J(T,8)?1:g.J(T,4)?2:-1}; Dl=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z,w){g.x.call(this);var r=this;this.xU=T;this.slot=Q;this.layout=k;this.Vq=l;this.kB=v;this.l9=L;this.UK=q;this.eV=Y;this.er=U;this.z6=R;this.position=f;this.B=G;this.Qq=m;this.Th=I;this.QD=z;this.context=w;this.Ld=!0;this.N=!1;this.q2="not_rendering";this.S=!1;this.L=new lk;T=FN(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.n_=new fB(k.EG,this.Vq,T,k.layoutId);var A;T=((A=cM(this))==null?void 0:A.progressCommands)||[];this.Y=new i9y(U, T,k.layoutId,function(){return r.On()}); this.T=new NDX({adCpn:this.layout.layoutId,mx:w.mx,Ra:this.Th,bK:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; aL=function(T){return{layoutId:T.v0(),fS:T.Th,Fj:T.l9.get(),yl:T.Zg()}}; ue=function(T,Q){return Q.layoutId!==T.layout.layoutId?(T.xU.ke(T.slot,Q,new Jj("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+T.layout.layoutId+("and LayoutType: "+T.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; nd=function(T){T.q2="rendering_start_requested";T.z6(-1)}; cM=function(T){return FN(T.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; T3g=function(T){MH("Received layout exit signal when not in layout exit flow.",T.slot,T.layout)}; QYu=function(T){var Q;return((Q=Kd(T.l9.get(),2))==null?void 0:Q.clientPlaybackNonce)||""}; xT=function(T,Q){switch(Q){case "normal":T.Wx("complete");break;case "skipped":T.Wx("skip");break;case "abandoned":SB(T.n_,"impression")&&T.Wx("abandon")}}; PM=function(T,Q){T.N||(Q=new g.YX(Q.state,new g.Cd),T.N=!0);return Q}; HM=function(T,Q){TX(Q)?T.z6(1):g.RY(Q,4)&&!g.RY(Q,2)&&T.Cg();Ue(Q,4)<0&&!(Ue(Q,2)<0)&&T.Je()}; jYH=function(T){T.position===0&&(T.eV.get(),T=FN(T.layout.clientMetadata,"metadata_type_ad_placement_config").kind,T={adBreakType:tB(T)},dS("ad_bl"),g.NL(T))}; OM=function(T,Q){hM(T.n_,Q,!T.S)}; lVt=function(T){var Q;return(((Q=cM(T))==null?void 0:Q.progressCommands)||[]).findIndex(function(k){return!!g.t(k==null?void 0:k.command,kZC)})!==-1}; pd=function(T,Q){var k=FN(T.clientMetadata,"metadata_type_eligible_for_ssap");return k===void 0?(MH("Expected SSAP eligibility in PlayerBytes factory",T),!1):Q.Zg(k)}; WM=function(T,Q){if(!KF(Q.get(),"html5_ssap_pass_transition_reason"))return 3;switch(T){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return MH("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return MH("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:T}),3;default:Uk(T,"unknown layoutExitReason")}}; oXg=function(T){MH("getExitReason: unexpected reason",void 0,void 0,{reason:T})}; $T=function(T,Q){if(KF(Q.get(),"html5_ssap_pass_transition_reason"))switch(T){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return oXg(T),"abandoned";case 3:case 1:return oXg(T),"error";default:Uk(T,"unexpected transition reason")}else switch(T){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return MH("getExitReason: unexpected reason",void 0,void 0,{reason:T}),"error";default:Uk(T,"unexpected transition reason")}}; g.JB=function(T,Q,k){bU(T,k)||cP(T,Q,k);bU(T,"video_to_ad")||cP(T,Q,"video_to_ad");bU(T,"ad_to_video")||cP(T,Q,"ad_to_video");bU(T,"ad_to_ad")||cP(T,Q,"ad_to_ad")}; et=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z,w,r){Dl.call(this,T,Q,k,l,v,L,q,Y,R,Z,f,G,m,I,z,w,r);var A=this;this.yp=U;this.FQ=f;this.Iz=!0;this.FX=this.l8=0;this.EN=u5(function(){ziI(aL(A));A.xU.y4(A.slot,A.layout)}); this.bG=u5(function(){XZy(aL(A));A.q2!=="rendering_stop_requested"&&A.FQ(A);A.layoutExitReason?A.xU.N2(A.slot,A.layout,A.layoutExitReason):T3g(A)}); this.timer=new g.x3(200);this.timer.listen("tick",function(){A.bC()}); g.P(this,this.timer)}; EM=function(T){T.FX=Date.now();FR(T,T.l8);T.timer.start()}; vXC=function(T){T.l8=T.On();T.ey(T.l8/1E3,!0);FR(T,T.l8)}; FR=function(T,Q){Q={current:Q/1E3,duration:T.On()/1E3};T.yp.get().bu("onAdPlaybackProgress",Q)}; yd=function(T){et.call(this,T.xU,T.slot,T.jk,T.Vq,T.kB,T.l9,T.UK,T.eV,T.yp,T.er,T.z6,T.FQ,T.QF,T.lU,T.Qq,T.Th,T.QD,T.context)}; ie=function(T){et.call(this,T.xU,T.slot,T.jk,T.Vq,T.kB,T.l9,T.UK,T.eV,T.yp,T.er,T.z6,T.FQ,T.QF,T.lU,T.Qq,T.Th,T.QD,T.context)}; Vd=function(){ie.apply(this,arguments)}; LPT=function(T){return pd(T.slot,T.Qq.get())?new Vd(T):new yd(T)}; jn=function(T){Dl.call(this,T.callback,T.slot,T.jk,T.Vq,T.kB,T.l9,T.UK,T.eV,T.er,T.z6,T.FQ,T.QF,T.lU,T.Qq,T.Th,T.QD,T.context);var Q=this;this.adCpn="";this.JR=this.dF=0;this.EN=u5(function(){ziI(aL(Q));Q.xU.y4(Q.slot,Q.layout)}); this.bG=u5(function(){XZy(aL(Q));Q.q2!=="rendering_stop_requested"&&Q.FQ(Q);Q.layoutExitReason?Q.xU.N2(Q.slot,Q.layout,Q.layoutExitReason):T3g(Q)}); this.q_=T.q_;this.UH=T.UH;this.Xk=T.Xk;this.yp=T.yp;this.Og=T.Og;this.FQ=T.FQ;if(!this.Zg()){KF(this.Qq.get(),"html5_disable_media_load_timeout")||(this.QL=new g.FA(function(){Q.wP("load_timeout",new Jj("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); T=Tn(this.Qq.get());var k=QG(this.Qq.get());T&&k&&(this.pM=new g.FA(function(){var l=FN(Q.layout.clientMetadata,"metadata_type_preload_player_vars");l&&Q.UH.get().U.preloadVideoByPlayerVars(l,2,300)}))}}; gXf=function(T,Q){var k=FN(Q.clientMetadata,"metadata_type_ad_video_id"),l=FN(Q.clientMetadata,"metadata_type_legacy_info_card_vast_extension");k&&l&&T.Og.get().U.G().Bd.add(k,{Hy:l});(Q=FN(Q.clientMetadata,"metadata_type_sodar_extension_data"))&&MTy(T.q_.get(),Q);qeJ(T.UK.get(),!1)}; MM6=function(T){qeJ(T.UK.get(),!0);var Q;((Q=T.shrunkenPlayerBytesConfig)==null?0:Q.shouldRequestShrunkenPlayerBytes)&&T.UK.get().uX(!1)}; Ye5=function(T){return new kJ(T)}; lZ=function(){jn.apply(this,arguments)}; kJ=function(){lZ.apply(this,arguments)}; UHu=function(T){return LPT(Object.assign({},T,{xU:T.callback,z6:function(){}}))}; RB5=function(T){return new jn(Object.assign({},T,{z6:function(Q){T.yp.get().bu("onAdIntroStateChange",Q)}}))}; ZNf=function(T){function Q(k){T.yp.get().xA(k)} return pd(T.slot,T.Qq.get())?Ye5(Object.assign({},T,{z6:Q})):new jn(Object.assign({},T,{z6:Q}))}; oN=function(T){for(var Q=T.jk,k=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],l=g.B(G1()),v=l.next();!v.done;v=l.next())k.push(v.value);if(xp(Q,{YM:k,zH:["LAYOUT_TYPE_MEDIA_BREAK"]}))return UHu(T);Q=T.jk;k=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];l=g.B(G1());for(v=l.next();!v.done;v=l.next())k.push(v.value);if(xp(Q,{YM:k,zH:["LAYOUT_TYPE_MEDIA"]}))return pp(T.jk.clientMetadata,"metadata_type_ad_intro")?RB5(T):ZNf(T)}; GZy=function(T){var Q=FN(T.clientMetadata,"metadata_type_ad_placement_config").kind,k=FN(T.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:T.layoutId,adType:fVu(k),adBreakType:tB(Q)}}; tB=function(T){switch(T){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"}}; fVu=function(T){switch(T){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; mHH=function(T){try{return new vE(T.Ka,T.slot,T.layout,T.ZC,T.CG,T.l9,T.iC,T.UH,T.EH,T.UK,T.F0H,T)}catch(Q){}}; vE=function(T,Q,k,l,v,L,q,Y,U,R,Z,f){g.x.call(this);this.Ka=T;this.slot=Q;this.layout=k;this.ZC=l;this.CG=v;this.l9=L;this.iC=q;this.UH=Y;this.EH=U;this.UK=R;this.params=f;this.Ld=!0;T=oN(Z);if(!T)throw Error("Invalid params for sublayout");this.M2=T}; IVt=function(){this.T=1;this.S=new lk}; Lw=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m){g.x.call(this);this.callback=T;this.l9=Q;this.iC=k;this.UH=l;this.UK=v;this.B1=L;this.eV=q;this.ih=Y;this.slot=U;this.layout=R;this.ZC=Z;this.g8=f;this.EH=G;this.Qq=m;this.Ld=!0;this.HV=!1;this.k_=[];this.x3=-1;this.uY=!1;this.FD=new IVt}; hBX=function(T){var Q;return(Q=T.layout.h_)!=null?Q:FN(T.layout.clientMetadata,"metadata_type_sub_layouts")}; ql=function(T){return{Fj:T.l9.get(),fS:!1,yl:T.Zg()}}; sYf=function(T,Q,k){if(T.jf()===T.k_.length-1){var l,v;MH("Unexpected skip requested during the last sublayout",(l=T.oy())==null?void 0:l.t3(),(v=T.oy())==null?void 0:v.b9(),{requestingSlot:Q,requestingLayout:k})}}; SeH=function(T,Q,k){return k.layoutId!==gM(T,Q,k)?(MH("onSkipRequested for a PlayerBytes layout that is not currently active",T.t3(),T.b9()),!1):!0}; CPt=function(T){T.jf()===T.k_.length-1&&MH("Unexpected skip with target requested during the last sublayout")}; B3y=function(T,Q,k){return k.renderingContent===void 0&&k.layoutId!==gM(T,Q,k)?(MH("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",T.t3(),T.b9(),{requestingSlot:Q,requestingLayout:k}),!1):!0}; zB5=function(T,Q,k,l){var v=FN(Q.b9().clientMetadata,"metadata_type_ad_pod_skip_target");if(v&&v>0&&v0)){MH("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",T.slot,T.layout,{indexToPlay:Q,layoutId:T.layout.layoutId});break a}T.x3=Q;Q=T.oy();if(T.jf()>0&&!T.Zg()){var k=T.eV.get();k.S=!1;var l={};k.T&&k.videoId&&(l.cttAuthInfo={token:k.T,videoId:k.videoId});At("ad_to_ad",l)}k=g.t(Q.b9().renderingContent,y1);if(k==null?0: k.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var v;k=!((v=T.B1.get().ICB.get(k.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&v)}else k=!1;k?Ml(T,T.jf()+1):T.LT(Q)}}; RN=function(T){Lw.call(this,T.Ka,T.l9,T.iC,T.UH,T.UK,T.B1,T.eV,T.ih,T.slot,T.layout,T.ZC,T.g8,T.EH,T.Qq)}; dHC=function(T){(T=T.oy())&&T.z4()}; ZY=function(T){Lw.call(this,T.Ka,T.l9,T.iC,T.UH,T.UK,T.B1,T.eV,T.ih,T.slot,T.layout,T.ZC,T.g8,T.EH,T.Qq);this.Au=void 0}; N3I=function(T,Q){T.Mp()&&!vj(T.FD.S)||T.callback.N2(T.slot,T.layout,Q)}; fw=function(T){return KF(T.Qq.get(),"html5_ssap_pass_transition_reason")}; A$J=function(T,Q,k){Q.n7().currentState<2&&(k=$T(k,T.Qq),Q.oK(Q.b9(),k));k=Q.n7().T;T.lI(T.slot,Q.b9(),k)}; bNf=function(T,Q){if(T.FD.S.currentState<2){var k=$T(Q,T.Qq);k==="error"?T.callback.ke(T.slot,T.layout,new Jj("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:Q},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):UW(T.g8,T.layout,k)}}; Gn=function(T,Q,k){Q.n7().currentState>=2||(Q.oK(Q.b9(),k),vj(Q.n7())&&(ID(T.ih,T.slot,Q.b9(),k),T.Au=void 0))}; r$y=function(T,Q){T.FD.T===2&&Q!==T.Zs()&&MH("onClipEntered: unknown cpn",T.slot,T.layout,{cpn:Q})}; c$5=function(T,Q){var k=T.oy();if(k){var l=k.b9().layoutId,v=T.jf()+1;T.Mp()?Gn(T,k,Q):k.oK(k.b9(),Q);v>=0&&vv&&q.AA(Z,v-l);return Z}; tMg=function(T,Q,k){var l=FN(Q.clientMetadata,"metadata_type_sodar_extension_data");if(l)try{MTy(k,l)}catch(v){MH("Unexpected error when loading Sodar",T,Q,{error:v})}}; ONf=function(T,Q,k,l,v,L,q){BE(T,Q,new g.YX(k,new g.Cd),l,v,q,!1,L)}; BE=function(T,Q,k,l,v,L,q,Y){q=q===void 0?!0:q;TX(k)&&Q4(v,0,null)&&(!SB(T,"impression")&&Y&&Y(),T.Wx("impression"));SB(T,"impression")&&(g.RY(k,4)&&!g.RY(k,2)&&T.Fw("pause"),Ue(k,4)<0&&!(Ue(k,2)<0)&&T.Fw("resume"),g.RY(k,16)&&v>=.5&&T.Fw("seek"),q&&g.RY(k,2)&&zn(T,k.state,Q,l,v,L))}; zn=function(T,Q,k,l,v,L,q,Y,U){SB(T,"impression")&&(L?(L=v-l,L=L>=-1&&L<=2):L=Math.abs(l-v)<=1,Xk(T,Q,L?l:v,k,l,q,Y&&L),L&&!U&&T.Wx("complete"))}; Xk=function(T,Q,k,l,v,L,q){sP(T,k*1E3,q);v<=0||k<=0||(Q==null?0:g.J(Q,16))||(Q==null?0:g.J(Q,32))||(Q4(k,v*.25,l)&&(L&&!SB(T,"first_quartile")&&L("first"),T.Wx("first_quartile")),Q4(k,v*.5,l)&&(L&&!SB(T,"midpoint")&&L("second"),T.Wx("midpoint")),Q4(k,v*.75,l)&&(L&&!SB(T,"third_quartile")&&L("third"),T.Wx("third_quartile")))}; p8t=function(T,Q){SB(T,"impression")&&T.Fw(Q?"fullscreen":"end_fullscreen")}; WPI=function(T){SB(T,"impression")&&T.Fw("clickthrough")}; $H5=function(T){T.Fw("active_view_measurable")}; J$f=function(T){SB(T,"impression")&&!SB(T,"seek")&&T.Fw("active_view_fully_viewable_audible_half_duration")}; eB5=function(T){SB(T,"impression")&&!SB(T,"seek")&&T.Fw("active_view_viewable")}; FPT=function(T){SB(T,"impression")&&!SB(T,"seek")&&T.Fw("audio_audible")}; EXg=function(T){SB(T,"impression")&&!SB(T,"seek")&&T.Fw("audio_measurable")}; y$C=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G){this.callback=T;this.slot=Q;this.layout=k;this.iC=l;this.n_=v;this.UK=L;this.fU=q;this.kB=Y;this.q_=U;this.Qq=R;this.Vq=Z;this.l9=f;this.Xk=G;this.Iz=!0;this.lC=this.q2=null;this.adCpn=void 0;this.T=!1}; iNy=function(T,Q,k){var l;Cw(T.Vq.get(),"ads_qua","cpn."+FN(T.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((l=Kd(T.l9.get(),2))==null?void 0:l.clientPlaybackNonce)+";qt."+Q+";clr."+k)}; VMy=function(T,Q){var k,l;Cw(T.Vq.get(),"ads_imp","cpn."+FN(T.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((k=Kd(T.l9.get(),2))==null?void 0:k.clientPlaybackNonce)+";clr."+Q+";skp."+!!g.t((l=FN(T.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:l.skipOrPreviewRenderer,wM))}; dM=function(T){return{enterMs:FN(T.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:FN(T.clientMetadata,"metadata_type_layout_exit_ms")}}; Nl=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m){IN.call(this,T,Q,k,l,v,q,Y,U,R,f);this.fU=L;this.q_=Z;this.kB=G;this.Qq=m;this.lC=this.q2=null}; TSt=function(T,Q){var k;Cw(T.Vq.get(),"ads_imp","acpn."+((k=Kd(T.l9.get(),2))==null?void 0:k.clientPlaybackNonce)+";clr."+Q)}; Qou=function(T,Q,k){var l;Cw(T.Vq.get(),"ads_qua","cpn."+FN(T.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((l=Kd(T.l9.get(),2))==null?void 0:l.clientPlaybackNonce)+";qt."+Q+";clr."+k)}; AQ=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z,w,r,A,D,K,O){this.EH=T;this.ZC=Q;this.g8=k;this.l9=l;this.iC=v;this.UK=L;this.B1=q;this.Vq=Y;this.fU=U;this.DC=R;this.kB=Z;this.q_=f;this.UH=G;this.Xk=m;this.eV=I;this.yp=z;this.er=w;this.Og=r;this.Qq=A;this.T=D;this.context=K;this.QD=O}; bZ=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z,w,r,A){this.EH=T;this.ZC=Q;this.g8=k;this.Vq=l;this.kB=v;this.q_=L;this.UH=q;this.l9=Y;this.UK=U;this.B1=R;this.Xk=Z;this.eV=f;this.yp=G;this.er=m;this.Og=I;this.Qq=z;this.iC=w;this.context=r;this.QD=A}; jo5=function(T,Q,k,l){lD.call(this,"survey-interstitial",T,Q,k,l)}; rM=function(T,Q,k,l,v){LB.call(this,k,T,Q,l);this.Vq=v;T=FN(Q.clientMetadata,"metadata_type_ad_placement_config");this.n_=new fB(Q.EG,v,T,Q.layoutId)}; cE=function(T){return Math.round(T.width)+"x"+Math.round(T.height)}; aN=function(T,Q,k){k=k===void 0?DY:k;k.widthT.width*T.height*.2)return{Wr:3,GU:501,errorMessage:"ad("+cE(k)+") to container("+cE(T)+") ratio exceeds limit."};if(k.height>T.height/3-Q)return{Wr:3,GU:501,errorMessage:"ad("+cE(k)+") covers container("+cE(T)+") center."}}; kCy=function(T,Q){var k=FN(T.clientMetadata,"metadata_type_ad_placement_config");return new fB(T.EG,Q,k,T.layoutId)}; uZ=function(T){return FN(T.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; nw=function(T,Q,k,l){lD.call(this,"invideo-overlay",T,Q,k,l);this.interactionLoggingClientData=l}; Kw=function(T,Q,k,l,v,L,q,Y,U,R,Z,f){LB.call(this,L,T,Q,v);this.Vq=k;this.Y=q;this.UK=Y;this.er=U;this.Qq=R;this.B=Z;this.N=f;this.n_=kCy(Q,k)}; lyb=function(){var T=["metadata_type_invideo_overlay_ad_renderer"];G1().forEach(function(Q){T.push(Q)}); return{YM:T,zH:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; xJ=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G){LB.call(this,L,T,Q,v);this.Vq=k;this.Y=q;this.j=Y;this.UK=U;this.er=R;this.Qq=Z;this.B=f;this.N=G;this.n_=kCy(Q,k)}; os5=function(){for(var T=["metadata_type_invideo_overlay_ad_renderer"],Q=g.B(G1()),k=Q.next();!k.done;k=Q.next())T.push(k.value);return{YM:T,zH:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; PE=function(T){this.UK=T;this.T=!1}; vsC=function(T,Q,k){lD.call(this,"survey",T,{},Q,k)}; HE=function(T,Q,k,l,v,L,q){LB.call(this,k,T,Q,l);this.Y=v;this.UK=L;this.Qq=q}; LBf=function(T,Q,k,l,v,L,q,Y,U,R){this.h6=T;this.UK=Q;this.Vq=k;this.Y=l;this.kB=v;this.S=L;this.L=q;this.er=Y;this.Qq=U;this.T=R}; qHH=function(T,Q,k,l,v,L,q,Y,U,R){this.h6=T;this.UK=Q;this.Vq=k;this.Y=l;this.kB=v;this.S=L;this.L=q;this.er=Y;this.Qq=U;this.T=R}; tQ=function(T,Q,k,l,v,L,q,Y,U,R){Wk.call(this,T,Q,k,l,v,L,q,U);this.eR=Y;this.l9=R}; gsX=function(){var T=fFJ();T.YM.push("metadata_type_ad_info_ad_metadata");return T}; MKC=function(T,Q,k,l,v,L,q){this.h6=T;this.UK=Q;this.Vq=k;this.S=l;this.eR=v;this.T=L;this.l9=q}; YHJ=function(T,Q,k,l,v,L,q,Y){this.h6=T;this.UK=Q;this.Vq=k;this.S=l;this.eR=v;this.T=L;this.Qq=q;this.l9=Y}; OW=function(T,Q){this.slotId=Q;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=T(this.triggerType)}; pw=function(T,Q){this.adPodIndex=T;this.T=Q.length;this.adBreakLengthSeconds=Q.reduce(function(l,v){return l+v},0); var k=0;for(T+=1;T0}; Dw=function(T){return!!(T.LC&&T.slot&&T.layout)}; aB=function(T){var Q,k=(Q=T.config)==null?void 0:Q.adPlacementConfig;T=T.renderer;return!(!k||k.kind==null||!T)}; wPH=function(T){if(!wO(T.adLayoutMetadata))return!1;T=T.renderingContent;return g.t(T,y1)||g.t(T,iE)||g.t(T,XP5)||g.t(T,FS)||g.t(T,EP)?!0:!1}; uQ=function(T){return T.playerVars!==void 0&&T.pings!==void 0&&T.externalVideoId!==void 0}; OR=function(T){if(!wO(T.adLayoutMetadata))return!1;T=T.renderingContent;var Q=g.t(T,n7);return Q?K7(Q):(Q=g.t(T,xK))?uQ(Q):(Q=g.t(T,PO))?Q.playerVars!==void 0:(Q=g.t(T,y1))?Q.durationMilliseconds!==void 0:g.t(T,HO)||g.t(T,tk)?!0:!1}; K7=function(T){T=(T.sequentialLayouts||[]).map(function(Q){return g.t(Q,p7)}); return T.length>0&&T.every(OR)}; $K=function(T){return wO(T.adLayoutMetadata)?(T=g.t(T.renderingContent,WO))&&T.pings?!0:!1:!1}; ctT=function(T){if(!wO(T.adLayoutMetadata))return!1;if(g.t(T.renderingContent,dL5)||g.t(T.renderingContent,NSu))return!0;var Q=g.t(T.renderingContent,Jk);return g.t(T.renderingContent,eg)||g.t(Q==null?void 0:Q.sidePanel,Atu)||g.t(Q==null?void 0:Q.sidePanel,bGI)||g.t(Q==null?void 0:Q.sidePanel,rtf)?!0:!1}; KBu=function(T){var Q;(Q=!T)||(Q=T.adSlotMetadata,Q=!((Q==null?void 0:Q.slotId)!==void 0&&(Q==null?void 0:Q.slotType)!==void 0));if(Q||!(DL5(T)||T.slotEntryTrigger&&T.slotFulfillmentTriggers&&T.slotExpirationTriggers))return!1;var k;T=(k=T.fulfillmentContent)==null?void 0:k.fulfilledLayout;return(k=g.t(T,p7))?OR(k):(k=g.t(T,Fj))?ctT(k):(k=g.t(T,ayT))?wPH(k):(k=g.t(T,uP6))?BSH(k):(k=g.t(T,ns5))?wO(k.adLayoutMetadata)?g.t(k.renderingContent,dO)?!0:!1:!1:(T=g.t(T,ER))?$K(T):!1}; DL5=function(T){var Q;T=g.t((Q=T.fulfillmentContent)==null?void 0:Q.fulfilledLayout,Fj);var k;return T&&((k=T.adLayoutMetadata)==null?void 0:k.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&T.layoutExitNormalTriggers===void 0}; xL5=function(T){var Q;return(T==null?void 0:(Q=T.adSlotMetadata)==null?void 0:Q.slotType)==="SLOT_TYPE_IN_PLAYER"}; HG5=function(T,Q){var k;if((k=T.questions)==null||!k.length||!T.playbackCommands||(Q===void 0||!Q)&&T.questions.length!==1)return!1;T=g.B(T.questions);for(Q=T.next();!Q.done;Q=T.next()){Q=Q.value;var l=k=void 0,v=((k=g.t(Q,yM))==null?void 0:k.surveyAdQuestionCommon)||((l=g.t(Q,iQ))==null?void 0:l.surveyAdQuestionCommon);if(!PU5(v))return!1}return!0}; tKu=function(T){T=((T==null?void 0:T.playerOverlay)||{}).instreamSurveyAdRenderer;var Q;if(T)if(T.playbackCommands&&T.questions&&T.questions.length===1){var k,l=((Q=g.t(T.questions[0],yM))==null?void 0:Q.surveyAdQuestionCommon)||((k=g.t(T.questions[0],iQ))==null?void 0:k.surveyAdQuestionCommon);Q=PU5(l)}else Q=!1;else Q=!1;return Q}; PU5=function(T){if(!T)return!1;T=g.t(T.instreamAdPlayerOverlay,VM);var Q=g.t(T==null?void 0:T.skipOrPreviewRenderer,wM),k=g.t(T==null?void 0:T.adInfoRenderer,TT);return(g.t(T==null?void 0:T.skipOrPreviewRenderer,QN)||Q)&&k?!0:!1}; OGy=function(T){return T.linearAds!=null&&wO(T.adLayoutMetadata)}; pPC=function(T){return T.linearAd!=null&&T.adVideoStart!=null}; WBC=function(T){if(isNaN(Number(T.timeoutSeconds))||!T.text||!T.ctaButton||!g.t(T.ctaButton,g.jw)||!T.brandImage)return!1;var Q;return T.backgroundImage&&g.t(T.backgroundImage,kN)&&((Q=g.t(T.backgroundImage,kN))==null?0:Q.landscape)?!0:!1}; l1=function(T,Q,k,l,v,L,q,Y){g.x.call(this);this.Qq=T;this.T=Q;this.S=l;this.l9=v;this.Y=L;this.L=q;this.UH=Y}; eyC=function(T,Q,k){var l,v=((l=k.adSlots)!=null?l:[]).map(function(Y){return g.t(Y,oA)}); if(k.Oi)if(FN(Q.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))kp(T.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Q.slotId); else{if(T.Qq.get().U.G().V("h5_check_forecasting_renderer_for_throttled_midroll")){var L=k.yh.filter(function(Y){var U;return((U=Y.renderer)==null?void 0:U.clientForecastingAdRenderer)!=null}); L.length!==0?$LI(T.L,L,v,Q.slotId,k.ssdaiAdsConfig):kp(T.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Q.slotId)}else kp(T.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Q.slotId); JtC(T.Y,Q)}else{var q;l={xQ:Math.round(((L=FN(Q.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:L.xQ)||0),i$:(q=FN(Q.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:q.i$};L=FN(Q.clientMetadata,"metadata_type_cue_point");$LI(T.L,k.yh,v,Q.slotId,k.ssdaiAdsConfig,l,L)}}; ytg=function(T,Q,k,l,v,L,q,Y){var U=Kd(T.l9.get(),1);if(FBf(T.Qq.get())){var R=vh(T.S.get(),k,l,v,U.clientPlaybackNonce,U.Y$,U.daiEnabled,U,L,q);EsT(T,R);kp(T.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return R},Q)}else kp(T.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return vh(T.S.get(),k,l,v,U.clientPlaybackNonce,U.Y$,U.daiEnabled,U,L,q,Y)},Q)}; EsT=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next()){var l=k.value;if(l.slotType==="SLOT_TYPE_PLAYER_BYTES"&&l.fulfilledLayout)if(k=void 0,l.fulfilledLayout.renderingContent)k=FN(l.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(l.fulfilledLayout.h_){l=g.B(l.fulfilledLayout.h_);for(var v=l.next();!v.done&&(v=v.value,!v.renderingContent||!(k=FN(v.clientMetadata,"metadata_type_player_vars")));v=l.next());}}else k=void 0;if(k){T.UH.get().U.preloadVideoByPlayerVars(k, 2,300);break}}}; VK6=function(T,Q,k,l,v,L,q){Q=iGC(Q,L,Number(l.prefetchMilliseconds)||0,q);T=Q instanceof F?Q:L1(T,l,v,Q,k);return T instanceof F?T:[T]}; T5C=function(T,Q,k,l,v){var L=lE(T.S.get(),"SLOT_TYPE_AD_BREAK_REQUEST");l=[new wn({getAdBreakUrl:l.getAdBreakUrl,xQ:0,i$:0}),new Hz(!0)];T=Q.pauseDurationMs?Q.lactThresholdMs?{slotId:L,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Zw(T.T,L),slotFulfillmentTriggers:[new Ry5(T.T)],slotExpirationTriggers:[new L7(T.T,v),new YK(T.T,L)],Ik:"core",clientMetadata:new eE(l),adSlotLoggingData:k}:new F("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new F("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return T instanceof F?T:[T]}; QVg=function(T){var Q,k;return((Q=T.renderer)==null?void 0:(k=Q.adBreakServiceRenderer)==null?void 0:k.getAdBreakUrl)!==void 0}; qy=function(T,Q,k){if(T.beforeContentVideoIdStartedTrigger)T=T.beforeContentVideoIdStartedTrigger?new WE($e,Q,T.id):new F("Not able to create BeforeContentVideoIdStartedTrigger");else{if(T.layoutIdExitedTrigger){var l;Q=(l=T.layoutIdExitedTrigger)!=null&&l.triggeringLayoutId?new yG($e,T.layoutIdExitedTrigger.triggeringLayoutId,T.id):new F("Not able to create LayoutIdExitedTrigger")}else{if(T.layoutExitedForReasonTrigger){var v,L;((v=T.layoutExitedForReasonTrigger)==null?0:v.triggeringLayoutId)&&((L= T.layoutExitedForReasonTrigger)==null?0:L.layoutExitReason)?(Q=ZGT(T.layoutExitedForReasonTrigger.layoutExitReason),T=Q instanceof F?Q:new EW($e,T.layoutExitedForReasonTrigger.triggeringLayoutId,[Q],T.id)):T=new F("Not able to create LayoutIdExitedForReasonTrigger")}else{if(T.onLayoutSelfExitRequestedTrigger){var q;Q=(q=T.onLayoutSelfExitRequestedTrigger)!=null&&q.triggeringLayoutId?new vO($e,T.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,T.id):new F("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(T.onNewPlaybackAfterContentVideoIdTrigger)T= T.onNewPlaybackAfterContentVideoIdTrigger?new L7($e,Q,T.id):new F("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(T.skipRequestedTrigger){var Y;Q=(Y=T.skipRequestedTrigger)!=null&&Y.triggeringLayoutId?new gO($e,T.skipRequestedTrigger.triggeringLayoutId,T.id):new F("Not able to create SkipRequestedTrigger")}else if(T.slotIdEnteredTrigger){var U;Q=(U=T.slotIdEnteredTrigger)!=null&&U.triggeringSlotId?new MA($e,T.slotIdEnteredTrigger.triggeringSlotId,T.id):new F("Not able to create SlotIdEnteredTrigger")}else if(T.slotIdExitedTrigger){var R; Q=(R=T.slotIdExitedTrigger)!=null&&R.triggeringSlotId?new YK($e,T.slotIdExitedTrigger.triggeringSlotId,T.id):new F("Not able to create SkipRequestedTrigger")}else if(T.surveySubmittedTrigger){var Z;Q=(Z=T.surveySubmittedTrigger)!=null&&Z.triggeringLayoutId?new Gb($e,T.surveySubmittedTrigger.triggeringLayoutId,T.id):new F("Not able to create SurveySubmittedTrigger")}else{if(T.mediaResumedTrigger)T=T.mediaResumedTrigger&&T.id?new fyf(T.id):new F("Not able to create MediaResumedTrigger");else{if(T.closeRequestedTrigger){var f; Q=(f=T.closeRequestedTrigger)!=null&&f.triggeringLayoutId?new $J($e,T.closeRequestedTrigger.triggeringLayoutId,T.id):new F("Not able to create CloseRequestedTrigger")}else if(T.slotIdScheduledTrigger){var G;Q=(G=T.slotIdScheduledTrigger)!=null&&G.triggeringSlotId?new Zw($e,T.slotIdScheduledTrigger.triggeringSlotId,T.id):new F("Not able to create SlotIdScheduledTrigger")}else{if(T.mediaTimeRangeTrigger){var m;l=Number((m=T.mediaTimeRangeTrigger)==null?void 0:m.offsetStartMilliseconds);var I;q=Number((I= T.mediaTimeRangeTrigger)==null?void 0:I.offsetEndMilliseconds);isFinite(l)&&isFinite(q)?(I=q,I===-1&&(I=k),k=l>I?new F("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:l,offsetEndMs:I},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",I===k&&l-500<=I):new Cb(l,I),T=k instanceof F?k:new jg($e,Q,k,!1,T.id)):T=new F("Not able to create MediaTimeRangeTrigger")}else if(T.contentVideoIdEndedTrigger)T=T.contentVideoIdEndedTrigger?new JQ($e,Q,!1,T.id):new F("Not able to create ContentVideoIdEndedTrigger"); else{if(T.layoutIdEnteredTrigger){var z;Q=(z=T.layoutIdEnteredTrigger)!=null&&z.triggeringLayoutId?new Fk($e,T.layoutIdEnteredTrigger.triggeringLayoutId,T.id):new F("Not able to create LayoutIdEnteredTrigger")}else if(T.timeRelativeToLayoutEnterTrigger){var w;Q=(w=T.timeRelativeToLayoutEnterTrigger)!=null&&w.triggeringLayoutId?new zb($e,Number(T.timeRelativeToLayoutEnterTrigger.durationMs),T.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,T.id):new F("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(T.onDifferentLayoutIdEnteredTrigger){var r; Q=(r=T.onDifferentLayoutIdEnteredTrigger)!=null&&r.triggeringLayoutId&&T.onDifferentLayoutIdEnteredTrigger.slotType&&T.onDifferentLayoutIdEnteredTrigger.layoutType?new lQ($e,T.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,T.onDifferentLayoutIdEnteredTrigger.slotType,T.onDifferentLayoutIdEnteredTrigger.layoutType,T.id):new F("Not able to create CloseRequestedTrigger")}else{if(T.liveStreamBreakStartedTrigger)T=T.liveStreamBreakStartedTrigger&&T.id?new QM($e,T.id):new F("Not able to create LiveStreamBreakStartedTrigger"); else if(T.liveStreamBreakEndedTrigger)T=T.liveStreamBreakEndedTrigger&&T.id?new iZ($e,T.id):new F("Not able to create LiveStreamBreakEndedTrigger");else{if(T.liveStreamBreakScheduledDurationMatchedTrigger){var A;Q=(A=T.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&A.breakDurationMs?new VG(Number(T.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,T.id):new F("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(T.liveStreamBreakScheduledDurationNotMatchedTrigger){var D; Q=(D=T.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&D.breakDurationMs?new Tb(Number(T.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,T.id):new F("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(T.newSlotScheduledWithBreakDurationTrigger){var K;Q=(K=T.newSlotScheduledWithBreakDurationTrigger)!=null&&K.breakDurationMs?new kK(Number(T.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,T.id):new F("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else Q= T.prefetchCacheExpiredTrigger?new qA($e,T.id):new F("Not able to convert an AdsControlflowTrigger.");T=Q}Q=T}T=Q}Q=T}T=Q}Q=T}T=Q}Q=T}T=Q}Q=T}T=Q}return T}; gH=function(T,Q){Q.T>=2&&(T.slot_pos=Q.adPodIndex);T.autoplay="1"}; kU5=function(T,Q,k,l,v,L,q,Y){return Q===null?new F("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:Q,ActionCompanionAdRenderer:l}):[jVH(T,Q,q,L,function(U){var R=U.slotId;U=Y(U);var Z=l.adLayoutLoggingData,f=new eE([new dG(l),new PQ(v)]);R=xd(k.S.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",R);var G={layoutId:R,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ik:"core"};return{layoutId:R,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",EG:new Map, layoutExitNormalTriggers:[new L7(k.T,q)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:f,ZP:U(G),adLayoutLoggingData:Z}})]}; lCf=function(T,Q,k,l,v,L,q,Y){return Q===null?new F("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:Q,TopBannerImageTextIconButtonedLayoutViewModel:l}):[jVH(T,Q,q,L,function(U){var R=U.slotId;U=Y(U);var Z=l.adLayoutLoggingData,f=new eE([new N9(l),new PQ(v)]);R=xd(k.S.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",R);var G={layoutId:R,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ik:"core"};return{layoutId:R,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", EG:new Map,layoutExitNormalTriggers:[new L7(k.T,q)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:f,ZP:U(G),adLayoutLoggingData:Z}})]}; qjg=function(T,Q,k,l,v,L){if(!L)for(Q=g.B(Q),L=Q.next();!L.done;L=Q.next())L=L.value,My(T,L.renderer,L.config.adPlacementConfig.kind);T=Array.from(T.values()).filter(function(Z){return olt(Z)}); Q=[];L=g.B(T);for(var q=L.next(),Y={};!q.done;Y={Yf:void 0},q=L.next()){Y.Yf=q.value;q=g.B(Y.Yf.pW);for(var U=q.next(),R={};!U.done;R={sY:void 0},U=q.next())R.sY=U.value,U=function(Z,f){return function(G){return Z.sY.I5(G,f.Yf.instreamVideoAdRenderer.elementId,Z.sY.nW)}}(R,Y),R.sY.isContentVideoCompanion?Q.push(vl6(k,l,v,Y.Yf.instreamVideoAdRenderer.elementId,R.sY.associatedCompositePlayerBytesLayoutId,R.sY.adSlotLoggingData,U)):T.length>1?Q.push(LQb(k,l,v,Y.Yf.instreamVideoAdRenderer.elementId,R.sY.adSlotLoggingData, function(Z,f){return function(G){return Z.sY.I5(G,f.Yf.instreamVideoAdRenderer.elementId,Z.sY.nW,Z.sY.associatedCompositePlayerBytesLayoutId)}}(R,Y))):Q.push(LQb(k,l,v,Y.Yf.instreamVideoAdRenderer.elementId,R.sY.adSlotLoggingData,U))}return Q}; My=function(T,Q,k){if(Q=glg(Q)){Q=g.B(Q);for(var l=Q.next();!l.done;l=Q.next())if((l=l.value)&&l.externalVideoId){var v=YN(T,l.externalVideoId);v.instreamVideoAdRenderer||(v.instreamVideoAdRenderer=l,v.D3=k)}else MH("InstreamVideoAdRenderer without externalVideoId")}}; glg=function(T){var Q=[],k=T.sandwichedLinearAdRenderer&&T.sandwichedLinearAdRenderer.linearAd&&g.t(T.sandwichedLinearAdRenderer.linearAd,xK);if(k)return Q.push(k),Q;if(T.instreamVideoAdRenderer)return Q.push(T.instreamVideoAdRenderer),Q;if(T.linearAdSequenceRenderer&&T.linearAdSequenceRenderer.linearAds){T=g.B(T.linearAdSequenceRenderer.linearAds);for(k=T.next();!k.done;k=T.next())k=k.value,g.t(k,xK)&&Q.push(g.t(k,xK));return Q}return null}; olt=function(T){if(T.instreamVideoAdRenderer===void 0)return MH("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var Q=g.B(T.pW),k=Q.next();!k.done;k=Q.next()){k=k.value;if(k.I5===void 0)return!1;if(k.nW===void 0)return MH("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(T.D3===void 0||k.JT===void 0||T.D3!==k.JT&&k.JT!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(T.instreamVideoAdRenderer.elementId===void 0)return MH("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:T.D3,"matching APSR kind":k.JT}),!1}return!0}; YN=function(T,Q){T.has(Q)||T.set(Q,{instreamVideoAdRenderer:void 0,D3:void 0,adVideoId:Q,pW:[]});return T.get(Q)}; Ug=function(T,Q,k,l,v,L,q,Y,U){v?YN(T,v).pW.push({ChV:Q,JT:k,isContentVideoCompanion:l,nW:q,associatedCompositePlayerBytesLayoutId:L,adSlotLoggingData:Y,I5:U}):MH("Companion AdPlacementSupportedRenderer without adVideoId")}; RA=function(T){var Q=0;T=g.B(T.questions);for(var k=T.next();!k.done;k=T.next())if(k=k.value,k=g.t(k,yM)||g.t(k,iQ)){var l=void 0;Q+=((l=k.surveyAdQuestionCommon)==null?void 0:l.durationMilliseconds)||0}return Q}; ZD=function(T){var Q,k,l,v,L=((k=g.t((Q=T.questions)==null?void 0:Q[0],yM))==null?void 0:k.surveyAdQuestionCommon)||((v=g.t((l=T.questions)==null?void 0:l[0],iQ))==null?void 0:v.surveyAdQuestionCommon),q;Q=[].concat(g.ZH(((q=T.playbackCommands)==null?void 0:q.instreamAdCompleteCommands)||[]),g.ZH((L==null?void 0:L.timeoutCommands)||[]));var Y,U,R,Z,f,G,m,I,z,w,r,A,D,K,O,E,e,vT,f5,qJ;return{impressionCommands:(Y=T.playbackCommands)==null?void 0:Y.impressionCommands,errorCommands:(U=T.playbackCommands)== null?void 0:U.errorCommands,muteCommands:(R=T.playbackCommands)==null?void 0:R.muteCommands,unmuteCommands:(Z=T.playbackCommands)==null?void 0:Z.unmuteCommands,pauseCommands:(f=T.playbackCommands)==null?void 0:f.pauseCommands,rewindCommands:(G=T.playbackCommands)==null?void 0:G.rewindCommands,resumeCommands:(m=T.playbackCommands)==null?void 0:m.resumeCommands,skipCommands:(I=T.playbackCommands)==null?void 0:I.skipCommands,progressCommands:(z=T.playbackCommands)==null?void 0:z.progressCommands,nUK:(w= T.playbackCommands)==null?void 0:w.clickthroughCommands,fullscreenCommands:(r=T.playbackCommands)==null?void 0:r.fullscreenCommands,activeViewViewableCommands:(A=T.playbackCommands)==null?void 0:A.activeViewViewableCommands,activeViewMeasurableCommands:(D=T.playbackCommands)==null?void 0:D.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(K=T.playbackCommands)==null?void 0:K.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(O=T.playbackCommands)== null?void 0:(E=O.activeViewTracking)==null?void 0:E.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(e=T.playbackCommands)==null?void 0:(vT=e.activeViewTracking)==null?void 0:vT.activeViewAudioMeasurableCommands,endFullscreenCommands:(f5=T.playbackCommands)==null?void 0:f5.endFullscreenCommands,abandonCommands:(qJ=T.playbackCommands)==null?void 0:qJ.abandonCommands,completeCommands:Q}}; YjT=function(T,Q,k,l,v,L,q){return function(Y,U){return MZH(T,U.slotId,Y,L,function(R,Z){var f=U.layoutId;R=q(R);return f1(Q,f,Z,v,R,"LAYOUT_TYPE_SURVEY",[new jE(k),l],k.adLayoutLoggingData)})}}; ZxC=function(T,Q,k,l,v,L,q){if(!Ugb(T))return new F("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:T});var Y=T.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[Rby(L,Q,k,l,function(U){var R=U.slotId;U=q(U);R=xd(v.S.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",R);var Z={layoutId:R,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Ik:"core"},f=new yG(v.T,l);return{layoutId:R,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",EG:new Map,layoutExitNormalTriggers:[f], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:new eE([new ke(Y)]),ZP:U(Z)}})]}; Ugb=function(T){T=g.t(T==null?void 0:T.additionalPlayerOverlay,fCt);if(!T)return!1;var Q=T.slidingMessages;return T.title&&Q&&Q.length!==0?!0:!1}; mgg=function(T,Q,k,l,v){var L;if((L=T.playerOverlay)==null||!L.instreamSurveyAdRenderer)return function(){return[]}; if(!tKu(T))return function(){return new F("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:T})}; var q=T.playerOverlay.instreamSurveyAdRenderer,Y=RA(q);return Y<=0?function(){return new F("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:q})}:function(U,R){var Z=GUH(U,k,l,function(f){var G=f.slotId; f=R(f);var m=ZD(q);G=xd(v.S.get(),"LAYOUT_TYPE_SURVEY",G);var I={layoutId:G,layoutType:"LAYOUT_TYPE_SURVEY",Ik:"core"},z=new yG(v.T,l),w=new gO(v.T,G),r=new Gb(v.T,G),A=new hy5(v.T);return{layoutId:G,layoutType:"LAYOUT_TYPE_SURVEY",EG:new Map,layoutExitNormalTriggers:[z,A],layoutExitSkipTriggers:[w],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[r],uC:[],Ik:"core",clientMetadata:new eE([new QZ(q),new PQ(Q),new Aj(Y/1E3),new Di(m)]),ZP:f(I),adLayoutLoggingData:q.adLayoutLoggingData}}); U=ZxC(T,k,Z.slotId,l,v,U,R);return U instanceof F?U:[Z].concat(g.ZH(U))}}; zb6=function(T,Q,k,l,v,L,q){q=q===void 0?!1:q;var Y=[];try{var U=[];if(k.renderer.linearAdSequenceRenderer)var R=function(z){z=ICg(z.slotId,k,Q,v(z),l,L,q);U=z.d_H;return z.jh}; else if(k.renderer.instreamVideoAdRenderer)R=function(z){var w=z.slotId;z=v(z);var r=q,A=k.config.adPlacementConfig,D=hbC(A),K=D.Kf,O=D.uQ;D=k.renderer.instreamVideoAdRenderer;var E;if(D==null?0:(E=D.playerOverlay)==null?0:E.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var e=GT(D,r);E=Math.min(K+e.videoLengthSeconds*1E3,O);r=new pw(0,[e.videoLengthSeconds]);O=e.videoLengthSeconds;var vT=e.playerVars,f5=e.instreamAdPlayerOverlayRenderer,qJ=e.playerOverlayLayoutRenderer, g6=e.adVideoId,QC=sVT(k),A5=e.EG;e=e.Tm;var Et=D==null?void 0:D.adLayoutLoggingData;D=D==null?void 0:D.sodarExtensionData;w=xd(Q.S.get(),"LAYOUT_TYPE_MEDIA",w);var QJ={layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA",Ik:"core"};return{layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA",EG:A5,layoutExitNormalTriggers:[new iZ(Q.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:new eE([new $t(l),new Zi(O),new fp(vT),new IH(K),new hj(E),f5&& new J6(f5),qJ&&new e6(qJ),new PQ(A),new WQ(g6),new HQ(r),new zp(QC),D&&new mU(D),new gn({current:null}),new SE({}),new np(e)].filter(Sjf)),ZP:z(QJ),adLayoutLoggingData:Et}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var Z=C36(T,l,k.adSlotLoggingData,R);Y.push(Z);for(var f=g.B(U),G=f.next();!G.done;G=f.next()){var m=G.value,I=m(T,v);if(I instanceof F)return I;Y.push.apply(Y,g.ZH(I))}}catch(z){return new F(z,{errorMessage:z.message,AdPlacementRenderer:k,numberOfSurveyRenderers:B5X(k)})}return Y}; B5X=function(T){T=(T.renderer.linearAdSequenceRenderer||{}).linearAds;return T!=null&&T.length?T.filter(function(Q){var k,l;return((k=g.t(Q,xK))==null?void 0:(l=k.playerOverlay)==null?void 0:l.instreamSurveyAdRenderer)!=null}).length:0}; ICg=function(T,Q,k,l,v,L,q){var Y=Q.config.adPlacementConfig,U=hbC(Y),R=U.Kf,Z=U.uQ;U=(Q.renderer.linearAdSequenceRenderer||{}).linearAds;if(U==null||!U.length)throw new TypeError("Expected linear ads");var f=[],G={xa:R,QF:0,Ygq:f};U=U.map(function(I){return X3X(T,I,G,k,l,Y,v,Z,q)}).map(function(I,z){z=new pw(z,f); return I(z)}); var m=U.map(function(I){return I.bN}); return{jh:w3J(k,T,R,m,Y,sVT(Q),l,Z,L),d_H:U.map(function(I){return I.ii9})}}; X3X=function(T,Q,k,l,v,L,q,Y,U){var R=GT(g.t(Q,xK),U),Z=k.xa,f=k.QF,G=Math.min(Z+R.videoLengthSeconds*1E3,Y);k.xa=G;k.QF++;k.Ygq.push(R.videoLengthSeconds);var m,I,z=(m=g.t(Q,xK))==null?void 0:(I=m.playerOverlay)==null?void 0:I.instreamSurveyAdRenderer;if(R.adVideoId==="nPpU29QrbiU"&&z==null)throw new TypeError("Survey slate media has no survey overlay");return function(w){gH(R.playerVars,w);var r,A,D=R.videoLengthSeconds,K=R.playerVars,O=R.EG,E=R.Tm,e=R.instreamAdPlayerOverlayRenderer,vT=R.playerOverlayLayoutRenderer, f5=R.adVideoId,qJ=(r=g.t(Q,xK))==null?void 0:r.adLayoutLoggingData;r=(A=g.t(Q,xK))==null?void 0:A.sodarExtensionData;A=xd(l.S.get(),"LAYOUT_TYPE_MEDIA",T);var g6={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Ik:"adapter"};w={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",EG:O,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"adapter",clientMetadata:new eE([new $t(q),new Zi(D),new fp(K),new IH(Z),new hj(G),new s9(f),new gn({current:null}), e&&new J6(e),vT&&new e6(vT),new PQ(L),new WQ(f5),new HQ(w),r&&new mU(r),z&&new u2(z),new SE({}),new np(E)].filter(Sjf)),ZP:v(g6),adLayoutLoggingData:qJ};D=mgg(g.t(Q,xK),L,q,w.layoutId,l);return{bN:w,ii9:D}}}; GT=function(T,Q){if(!T)throw new TypeError("Expected instream video ad renderer");if(!T.playerVars)throw new TypeError("Expected player vars in url encoded string");var k=QI(T.playerVars),l=Number(k.length_seconds);if(isNaN(l))throw new TypeError("Expected valid length seconds in player vars");var v=Number(T.trimmedMaxNonSkippableAdDurationMs);l=isNaN(v)?l:Math.min(l,v/1E3);v=T.playerOverlay||{};v=v.instreamAdPlayerOverlayRenderer===void 0?null:v.instreamAdPlayerOverlayRenderer;var L=T.playerOverlay|| {};L=L.playerOverlayLayoutRenderer===void 0?null:L.playerOverlayLayoutRenderer;var q=k.video_id;q||(q=(q=T.externalVideoId)?q:void 0);if(!q)throw new TypeError("Expected valid video id in IVAR");if(Q&&l===0){var Y;Q=(Y=dgt[q])!=null?Y:l}else Q=l;return{playerVars:k,videoLengthSeconds:Q,instreamAdPlayerOverlayRenderer:v,playerOverlayLayoutRenderer:L,adVideoId:q,EG:T.pings?ZJ(T.pings):new Map,Tm:R0(T.pings)}}; sVT=function(T){T=Number(T.driftRecoveryMs);return isNaN(T)||T<=0?null:T}; hbC=function(T){var Q=T.adTimeOffset||{};T=Q.offsetEndMilliseconds;Q=Number(Q.offsetStartMilliseconds);if(isNaN(Q))throw new TypeError("Expected valid start offset");T=Number(T);if(isNaN(T))throw new TypeError("Expected valid end offset");return{Kf:Q,uQ:T}}; N5I=function(T){var Q,k=(Q=FN(T.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Q.current;if(!k)return null;Q=FN(T.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var l=T.layoutId,v=FN(T.clientMetadata,"metadata_type_content_cpn"),L=FN(T.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),q=FN(T.clientMetadata,"metadata_type_player_underlay_renderer"),Y=FN(T.clientMetadata,"metadata_type_ad_placement_config"),U=FN(T.clientMetadata,"metadata_type_video_length_seconds"); var R=pp(T.clientMetadata,"metadata_type_layout_enter_ms")&&pp(T.clientMetadata,"metadata_type_layout_exit_ms")?(FN(T.clientMetadata,"metadata_type_layout_exit_ms")-FN(T.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{MA:l,contentCpn:v,n3:k,ud:Q,instreamAdPlayerOverlayRenderer:L,instreamAdPlayerUnderlayRenderer:q,adPlacementConfig:Y,videoLengthSeconds:U,Es:R,inPlayerLayoutId:FN(T.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:FN(T.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; rlb=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I){l=lE(l,"SLOT_TYPE_PLAYER_BYTES");T=AlT(v,T,q,k,l,U,R);if(T instanceof F)return T;var z;R=(z=FN(T.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:z.layoutId;if(!R)return new F("Invalid adNotify layout");Q=bxX(R,v,L,k,Y,Q,U,Z,f,G,m,I,q);return Q instanceof F?Q:[T].concat(g.ZH(Q))}; bxX=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G){k=clC(Q,k,l,L,q,Y,U,R,Z,f,G);if(k instanceof F)return k;T=DgI(Q,T,q,v,k);return T instanceof F?T:[].concat(g.ZH(T.GH),[T.DK])}; u05=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m){Q=clC(T,Q,k,v,L,Y,U,R,Z,f,G,m);if(Q instanceof F)return Q;T=aCC(T,k,L,q,l,Y.Cc,Q);return T instanceof F?T:T.GH.concat(T.DK)}; clC=function(T,Q,k,l,v,L,q,Y,U,R,Z,f){var G=mZ(l,k,R);return G instanceof Jj?new F(G):R.U.G().experiments.Wd("html5_refactor_in_player_slot_generation")?function(m){var I=new pw(0,[G.IG]);m=nlH(Q,G.layoutId,G.Ny,k,IA(G.playerVars,G.iz,L,U,I),G.IG,v,I,q(m),Y.get(G.Ny.externalVideoId),f);I=[];if(G.Ny.playerOverlay.instreamAdPlayerOverlayRenderer){var z=N5I(m);if(!z)return MH("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,m),{layout:m,GH:[]}; I=[KQb(T,z.contentCpn,z.MA,function(r){return hC(Q,r.slotId,"core",z,Q0(Z,r))},z.inPlayerSlotId)].concat(g.ZH(I)); if(z.instreamAdPlayerUnderlayRenderer&&sg(R)){var w=z.instreamAdPlayerUnderlayRenderer;I=[xgT(T,z.contentCpn,z.MA,function(r){return P3H(Q,r.slotId,w,z.adPlacementConfig,z.MA,Q0(Z,r))})].concat(g.ZH(I))}}return{layout:m, GH:I}}:function(m){var I=new pw(0,[G.IG]); return{layout:nlH(Q,G.layoutId,G.Ny,k,IA(G.playerVars,G.iz,L,U,I),G.IG,v,I,q(m),Y.get(G.Ny.externalVideoId),f),GH:[]}}}; mZ=function(T,Q,k){if(!T.playerVars)return new Jj("No playerVars available in InstreamVideoAdRenderer.");var l,v;if(T.elementId==null||T.playerVars==null||T.playerOverlay==null||((l=T.playerOverlay)==null?void 0:l.instreamAdPlayerOverlayRenderer)==null&&((v=T.playerOverlay)==null?void 0:v.playerOverlayLayoutRenderer)==null||T.pings==null||T.externalVideoId==null)return new Jj("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:T});l=QI(T.playerVars);v=Number(l.length_seconds); isNaN(v)&&(v=0,MH("Expected valid length seconds in player vars but got NaN"));if(k.Zg(Q.kind==="AD_PLACEMENT_KIND_START")){if(T.layoutId===void 0)return new Jj("Expected server generated layout ID in instreamVideoAdRenderer");Q=T.layoutId}else Q=T.elementId;return{layoutId:Q,Ny:T,playerVars:l,iz:T.playerVars,IG:v}}; IA=function(T,Q,k,l,v){T.iv_load_policy=l;Q=QI(Q);if(Q.cta_conversion_urls)try{T.cta_conversion_urls=JSON.parse(Q.cta_conversion_urls)}catch(L){MH(L)}k.w8&&(T.ctrl=k.w8);k.SO&&(T.ytr=k.SO);k.jg&&(T.ytrcc=k.jg);k.isMdxPlayback&&(T.mdx="1");T.vvt&&(T.vss_credentials_token=T.vvt,k.Yz&&(T.vss_credentials_token_type=k.Yz),k.mdxEnvironment&&(T.mdx_environment=k.mdxEnvironment));gH(T,v);return T}; Hx6=function(T){var Q=new Map;T=g.B(T);for(var k=T.next();!k.done;k=T.next())(k=k.value.renderer.remoteSlotsRenderer)&&k.hostElementId&&Q.set(k.hostElementId,k);return Q}; Sw=function(T){return T.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; tZu=function(T){return T!=null}; FQ5=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I){for(var z=[],w=g.B(T),r=w.next();!r.done;r=w.next())if(r=r.value,!DL5(r)&&!xL5(r)){var A=Sw(r)&&!!r.slotEntryTrigger.beforeContentVideoIdStartedTrigger,D=U.Zg(A),K=Ox5(r,R,l,k.Y$,D);if(K instanceof F)return K;var O=void 0,E={slotId:r.adSlotMetadata.slotId,slotType:r.adSlotMetadata.slotType,slotPhysicalPosition:(O=r.adSlotMetadata.slotPhysicalPosition)!=null?O:1,Ik:"core",slotEntryTrigger:K.slotEntryTrigger,slotFulfillmentTriggers:K.slotFulfillmentTriggers, slotExpirationTriggers:K.slotExpirationTriggers},e=g.t(r.fulfillmentContent.fulfilledLayout,p7);if(e){if(!OR(e))return new F("Invalid PlayerBytesAdLayoutRenderer");O=f&&!(Sw(r)&&r.slotEntryTrigger.beforeContentVideoIdStartedTrigger);K=K.slotFulfillmentTriggers.some(function(vT){return vT instanceof VG}); D=O?p3u(E,r.adSlotMetadata.triggerEvent,e,k,l,L,R,T,D,G,K,m):WQH(E,r.adSlotMetadata.triggerEvent,e,Q,k,l,v,L,q,Y,U,R,T,Z,D,r.adSlotMetadata.triggeringSourceLayoutId);if(D instanceof F)return D;K=[];I?K.push(new RH({current:I})):K.push(new RH({current:null}));Sw(r)&&K.push(new tj({qp:Sw(r)&&!!r.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));O&&K.push(new SE({}));k.Cc&&K.push(new aH({}));K.push(new Pz(A));r=Object.assign({},E,{clientMetadata:new eE(K),fulfilledLayout:D.layout,adSlotLoggingData:r.adSlotMetadata.adSlotLoggingData}); z.push.apply(z,g.ZH(D.GH));z.push(r)}else if(A=g.t(r.fulfillmentContent.fulfilledLayout,Fj)){if(!ctT(A))return new F("Invalid PlayerUnderlayAdLayoutRenderer");A=$gI(A,l,k.Y$,L,E,r.adSlotMetadata.triggerEvent,r.adSlotMetadata.triggeringSourceLayoutId);if(A instanceof F)return A;r=Object.assign({},E,{clientMetadata:new eE([]),fulfilledLayout:A,adSlotLoggingData:r.adSlotMetadata.adSlotLoggingData});z.push(r)}else if(A=g.t(r.fulfillmentContent.fulfilledLayout,uP6)){if(!BSH(A))return new F("Invalid AboveFeedAdLayoutRenderer"); A=JlI(A,l,k.Y$,L,E,r.adSlotMetadata.triggerEvent,r.adSlotMetadata.triggeringSourceLayoutId);if(A instanceof F)return A;r=Object.assign({},E,{clientMetadata:new eE([]),fulfilledLayout:A,adSlotLoggingData:r.adSlotMetadata.adSlotLoggingData});z.push(r)}else if(A=g.t(r.fulfillmentContent.fulfilledLayout,ns5)){if(!wO(A.adLayoutMetadata)||!g.t(A.renderingContent,dO))return new F("Invalid BelowPlayerAdLayoutRenderer");A=JlI(A,l,k.Y$,L,E,r.adSlotMetadata.triggerEvent,r.adSlotMetadata.triggeringSourceLayoutId); if(A instanceof F)return A;r=Object.assign({},E,{clientMetadata:new eE([]),fulfilledLayout:A,adSlotLoggingData:r.adSlotMetadata.adSlotLoggingData});z.push(r)}else if(A=g.t(r.fulfillmentContent.fulfilledLayout,ER)){if(!$K(A))return new F("Invalid PlayerBytesSequenceItemAdLayoutRenderer");A=eb6(A,l,k.Y$,L,E,r.adSlotMetadata.triggerEvent);if(A instanceof F)return A;r=Object.assign({},E,{clientMetadata:new eE([]),fulfilledLayout:A,adSlotLoggingData:r.adSlotMetadata.adSlotLoggingData});z.push(r)}else return new F("Unable to retrieve a client slot ["+ E.slotType+"] from a given AdSlotRenderer")}return z}; eb6=function(T,Q,k,l,v,L){var q={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,Ik:"core"};Q=C1(T,Q,k);return Q instanceof F?Q:(k=g.t(T.renderingContent,WO))&&k.pings?Object.assign({},q,{renderingContent:T.renderingContent,EG:ZJ(k.pings)},Q,{ZP:Q0(l,v)(q),clientMetadata:new eE([new PQ(Bh(L))]),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData}):new F("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; JlI=function(T,Q,k,l,v,L,q){var Y={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,Ik:"core"};Q=C1(T,Q,k);if(Q instanceof F)return Q;k=[];k.push(new PQ(Bh(L)));L==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&q!==void 0&&k.push(new l2(q));return Object.assign({},Y,{renderingContent:T.renderingContent,EG:new Map([["impression",El5(T)]])},Q,{ZP:Q0(l,v)(Y),clientMetadata:new eE(k),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData})}; $gI=function(T,Q,k,l,v,L,q){if(T.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(q=g.t(T.renderingContent,Jk))if(q=g.t(q.sidePanel,bGI)){var Y={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,Ik:"core"};Q=C1(T,Q,k);T=Q instanceof F?Q:Object.assign({},Y,{renderingContent:T.renderingContent,EG:new Map([["impression",q.impressionPings||[]],["resume",q.resumePings||[]]])},Q,{ZP:Q0(l,v)(Y),clientMetadata:new eE([new PQ(Bh(L))]),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData})}else T= new F("DismissablePanelTextPortraitImageRenderer is missing");else T=new F("SqueezebackPlayerSidePanelRenderer is missing");else T.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.t(T.renderingContent,dL5)?(q={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,Ik:"core"},Q=C1(T,Q,k),T=Q instanceof F?Q:Object.assign({},q,{renderingContent:T.renderingContent,EG:new Map},Q,{ZP:Q0(l,v)(q),clientMetadata:new eE([new PQ(Bh(L))]),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData})): T=new F("CounterfactualRenderer is missing"):T.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?T=new F("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):T.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?T=new F("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):T.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.t(T.renderingContent,eg)?(L={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType, Ik:"core"},Q=C1(T,Q,k),T=Q instanceof F?Q:q?Object.assign({},L,{renderingContent:T.renderingContent,EG:new Map},Q,{ZP:Q0(l,v)(L),clientMetadata:new eE([new l2(q)]),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData}):new F("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):T=new F("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):T.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.t(T.renderingContent,NSu)? (L={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,Ik:"core"},Q=C1(T,Q,k),T=Q instanceof F?Q:Object.assign({},L,{renderingContent:T.renderingContent,EG:new Map([])},Q,{ZP:Q0(l,v)(L),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new eE([])})):T=new F("AdsEngagementPanelSectionListViewModel is missing"):T=new F("LayoutType ["+T.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return T}; p3u=function(T,Q,k,l,v,L,q,Y,U,R,Z,f){if((f==null?void 0:f.xQ)===void 0||(f==null?void 0:f.i$)===void 0)return new F("Cached ad break range from cue point is missing");var G=C1(k,v,l.Y$);if(G instanceof F)return G;G={layoutExitMuteTriggers:[],layoutExitNormalTriggers:G.layoutExitNormalTriggers,layoutExitSkipTriggers:[],uC:[],layoutExitUserInputSubmittedTriggers:[]};if(g.t(k.renderingContent,xK))return T=yl5(T,Q,k,G,v,L,Y,U,l.Y$,q,f.xQ,f.i$),T instanceof F?T:T.pY===void 0?new F("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:T.layout,GH:[T.pY]};var m=g.t(k.renderingContent,n7);if(m){if(!wO(k.adLayoutMetadata))return new F("Invalid ad layout metadata");if(!K7(m))return new F("Invalid sequential layout");m=m.sequentialLayouts.map(function(I){return I.playerBytesAdLayoutRenderer}); T=ix6(T,Q,k,G,m,v,l,L,q,U,Y,R,f.xQ,f.i$,Z);return T instanceof F?T:{layout:T.sQ,GH:T.GH}}return new F("Not able to convert a sequential layout")}; ix6=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I){var z=VZ5(v,G,m);if(z instanceof F)return z;var w=[],r=[];z=g.B(z);for(var A=z.next();!A.done;A=z.next()){var D=A.value;A=T;var K=v[D.QF],O=D,E=Q;D=L;var e=q,vT=Y,f5=U,qJ=R,g6=Z,QC=zT(K);if(QC instanceof F)A=QC;else{var A5={layoutId:K.adLayoutMetadata.layoutId,layoutType:K.adLayoutMetadata.layoutType,Ik:"adapter"};O=TGg(E,K,O,D);O instanceof F?A=O:(A=Object.assign({},A5,Xu,{EG:QC,renderingContent:K.renderingContent,clientMetadata:new eE(O),ZP:Q0(vT,A)(A5), adLayoutLoggingData:K.adLayoutMetadata.adLayoutLoggingData}),A=(K=wH(g6,A,D,e.Y$,vT,f5,qJ,void 0,!0))?K instanceof F?K:{layout:A,pY:K}:new F("Expecting associatedInPlayerSlot"))}if(A instanceof F)return A;w.push(A.layout);r.push(A.pY)}v={layoutId:k.adLayoutMetadata.layoutId,layoutType:k.adLayoutMetadata.layoutType,Ik:"core"};Q=[new zp(Number(k.driftRecoveryMs)),new IH(G),new hj(m),new PQ(Bh(Q)),new xe(f),new SE({})];I&&Q.push(new O9({}));return{sQ:Object.assign({},v,l,{h_:w,EG:new Map,clientMetadata:new eE(Q), ZP:Q0(Y,T)(v)}),GH:r}}; yl5=function(T,Q,k,l,v,L,q,Y,U,R,Z,f){if(!OR(k))return new F("Invalid PlayerBytesAdLayoutRenderer");var G=zT(k);if(G instanceof F)return G;var m={layoutId:k.adLayoutMetadata.layoutId,layoutType:k.adLayoutMetadata.layoutType,Ik:"core"},I=g.t(k.renderingContent,xK);if(!I)return new F("Invalid rendering content for DAI media layout");I=GT(I,!1);Z={YL:I,QF:0,xa:Z,q0:Math.min(Z+I.videoLengthSeconds*1E3,f),jo:new pw(0,[I.videoLengthSeconds])};var z;f=(z=Number(k.driftRecoveryMs))!=null?z:void 0;Q=TGg(Q, k,Z,v,f);if(Q instanceof F)return Q;T=Object.assign({},m,l,{EG:G,renderingContent:k.renderingContent,clientMetadata:new eE(Q),ZP:Q0(L,T)(m),adLayoutLoggingData:k.adLayoutMetadata.adLayoutLoggingData});return(v=wH(q,T,v,U,L,R,Y,void 0,!0))?v instanceof F?v:{layout:T,pY:v}:new F("Expecting associatedInPlayerSlot")}; WQH=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z){var w=C1(k,L,v.Y$);if(w instanceof F)return w;if(g.t(k.renderingContent,xK)){U=QWu([k],v,U);if(U instanceof F)return U;if(U.length!==1)return new F("Only expected one media layout.");T=jWX(T,Q,k,w,U[0],void 0,"core",l,L,q,Y,R,G,m,I,v.Y$,f,void 0,z);return T instanceof F?T:{layout:T.layout,GH:T.pY?[T.pY]:[]}}var r=g.t(k.renderingContent,n7);if(r){if(!wO(k.adLayoutMetadata))return new F("Invalid ad layout metadata");if(!K7(r))return new F("Invalid sequential layout"); r=r.sequentialLayouts.map(function(A){return A.playerBytesAdLayoutRenderer}); T=kFt(T,Q,k.adLayoutMetadata,w,r,l,L,v,U,q,Y,R,Z,f,I,G,m,z);return T instanceof F?T:{layout:T.sQ,GH:T.GH}}return new F("Not able to convert a sequential layout")}; kFt=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z,w,r){var A=new pT({current:null}),D=QWu(v,Y,U);if(D instanceof F)return D;U=[];for(var K=[],O=void 0,E=0;E0&&(E.push(r),E.push(new Oa(O.adPodSkipTarget)));(L=R.get(O.externalVideoId))&&E.push(new Nu(L));L=E}else L=new F("Invalid vod media renderer")}if(L instanceof F)return L;T=Object.assign({},q,l,{EG:D,renderingContent:k.renderingContent,clientMetadata:new eE(L),ZP:Q0(Z,T)(q),adLayoutLoggingData:k.adLayoutMetadata.adLayoutLoggingData});k=g.t(k.renderingContent,xK);if(!k||!uQ(k))return new F("Invalid meida renderer");f=YN(f,k.externalVideoId);f.instreamVideoAdRenderer=k;f.D3="AD_PLACEMENT_KIND_START";return m?(U=wH(G,T,U,z,Z,w,I,r,!1),U instanceof F?U:vtI(T.layoutId,G)&&U?{layout:Object.assign({},T,{clientMetadata:new eE(L.concat(new yj(U)))})}:{layout:T,pY:U}): {layout:T}}; ln5=function(T,Q,k,l,v){if(!OR(Q))return new F("Invalid PlayerBytesAdLayoutRenderer");var L=g.t(Q.renderingContent,y1);if(!L||L.durationMilliseconds===void 0)return new F("Invalid endcap renderer");var q={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,Ik:"adapter"};l=[new b2(L.durationMilliseconds),new Di({impressionCommands:void 0,abandonCommands:L.abandonCommands?[{commandExecutorCommand:L.abandonCommands}]:void 0,completeCommands:L.completionCommands}),new PQ(l), new vz("LAYOUT_TYPE_ENDCAP")];if(v){l.push(new t6(v.jo.adPodIndex-1));l.push(new s9(v.jo.adPodIndex));var Y;l.push(new Oa((Y=v.adPodSkipTarget)!=null?Y:-1))}return Object.assign({},q,Xu,{renderingContent:Q.renderingContent,clientMetadata:new eE(l),EG:L.skipPings?new Map([["skip",L.skipPings]]):new Map,ZP:Q0(k,T)(q),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData})}; wH=function(T,Q,k,l,v,L,q,Y,U){T=T.filter(function(f){return f.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&f.adSlotMetadata.triggeringSourceLayoutId===Q.layoutId}); if(T.length!==0){if(T.length!==1)return new F("Invalid InPlayer slot association for the given PlayerBytes layout");T=T[0];q=Ox5(T,L,k,l,q);if(q instanceof F)return q;var R;L={slotId:T.adSlotMetadata.slotId,slotType:T.adSlotMetadata.slotType,slotPhysicalPosition:(R=T.adSlotMetadata.slotPhysicalPosition)!=null?R:1,Ik:"core",slotEntryTrigger:q.slotEntryTrigger,slotFulfillmentTriggers:q.slotFulfillmentTriggers,slotExpirationTriggers:q.slotExpirationTriggers};R=g.t(T.fulfillmentContent.fulfilledLayout, ayT);if(!R||!wPH(R))return new F("Invalid InPlayerAdLayoutRenderer");q={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,Ik:"core"};k=C1(R,k,l);if(k instanceof F)return k;l=[];var Z=R.adLayoutMetadata.layoutType;U&&l.push(new SE({}));if(Z==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")l.push.apply(l,g.ZH(LSH(T.adSlotMetadata.triggerEvent,Q)));else if(Z==="LAYOUT_TYPE_ENDCAP"||Z==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){l.push(new PQ(Bh(T.adSlotMetadata.triggerEvent))); if(Z==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new F("Cannot parse endcap layout since AdUxReadyApi is not provided");Y&&l.push(Y)}else return new F("Not able to parse an SDF InPlayer layout");v=Object.assign({},q,k,{renderingContent:R.renderingContent,EG:new Map,ZP:Q0(v,L)(q),clientMetadata:new eE(l),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},L,{fulfilledLayout:v,clientMetadata:new eE([])})}}; LSH=function(T,Q){var k=[];k.push(new PQ(Bh(T)));k.push(new l2(Q.layoutId));(T=FN(Q.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&k.push(new gn(T));(T=FN(Q.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&k.push(new pT(T));(T=FN(Q.clientMetadata,"metadata_type_remote_slots_data"))&&k.push(new Nu(T));(T=FN(Q.clientMetadata,"metadata_type_ad_next_params"))&&k.push(new rG(T));(T=FN(Q.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&k.push(new cQ(T));(T= FN(Q.clientMetadata,"metadata_type_ad_pod_info"))&&k.push(new HQ(T));(Q=FN(Q.clientMetadata,"metadata_type_ad_video_id"))&&k.push(new WQ(Q));return k}; ot5=function(T,Q,k,l,v,L){function q(R){return dH(Q,R)} var Y=l.Vs.inPlayerSlotId,U={layoutId:l.Vs.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Ik:"core"};k={slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:new Fk(q,T),slotFulfillmentTriggers:[new MA(q,Y)],slotExpirationTriggers:[new YK(q,Y),new L7(q,k)]};T=Object.assign({},U,{layoutExitNormalTriggers:[new yG(q,T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],EG:new Map,clientMetadata:new eE([new Vj(l.Vs), new PQ(l.adPlacementConfig),v]),ZP:Q0(L,k)(U),adLayoutLoggingData:l.Vs.adLayoutLoggingData});return Object.assign({},k,{clientMetadata:new eE([new XN(T)])})}; vtI=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next())if(k=k.value,k.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var l=g.t(k.fulfillmentContent.fulfilledLayout,Fj);if(l&&(l=g.t(l.renderingContent,Jk))&&l.associatedPlayerBytesLayoutId===T)return k}}; Ox5=function(T,Q,k,l,v){var L=qaf(qy(T.slotEntryTrigger,k,l),v,T,Q);if(L instanceof F)return L;for(var q=[],Y=g.B(T.slotFulfillmentTriggers),U=Y.next();!U.done;U=Y.next()){U=qy(U.value,k,l);if(U instanceof F)return U;q.push(U)}q=gtC(q,v,T,Q);Q=[];T=g.B(T.slotExpirationTriggers);for(v=T.next();!v.done;v=T.next()){v=qy(v.value,k,l);if(v instanceof F)return v;Q.push(v)}return{slotEntryTrigger:L,slotFulfillmentTriggers:q,slotExpirationTriggers:Q}}; qaf=function(T,Q,k,l){return Q&&k.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&T instanceof WE?new OW(function(v){return dH(l,v)},k.adSlotMetadata.slotId):T}; gtC=function(T,Q,k,l){return Q&&k.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?T.map(function(v){return v instanceof MA?new Zw(function(L){return dH(l,L)},k.adSlotMetadata.slotId):v}):T}; C1=function(T,Q,k){for(var l=[],v=g.B(T.layoutExitNormalTriggers||[]),L=v.next();!L.done;L=v.next()){L=qy(L.value,Q,k);if(L instanceof F)return L;l.push(L)}v=[];L=g.B(T.layoutExitSkipTriggers||[]);for(var q=L.next();!q.done;q=L.next()){q=qy(q.value,Q,k);if(q instanceof F)return q;v.push(q)}L=[];q=g.B(T.layoutExitMuteTriggers||[]);for(var Y=q.next();!Y.done;Y=q.next()){Y=qy(Y.value,Q,k);if(Y instanceof F)return Y;L.push(Y)}q=[];T=g.B(T.layoutExitUserInputSubmittedTriggers||[]);for(Y=T.next();!Y.done;Y= T.next()){Y=qy(Y.value,Q,k);if(Y instanceof F)return Y;q.push(Y)}return{layoutExitNormalTriggers:l,layoutExitSkipTriggers:v,layoutExitMuteTriggers:L,layoutExitUserInputSubmittedTriggers:q,uC:[]}}; zT=function(T){var Q=g.t(T.renderingContent,xK);if(Q==null?0:Q.pings)return ZJ(Q.pings);T=g.t(T.renderingContent,y1);return(T==null?0:T.skipPings)?new Map([["skip",T.skipPings]]):new Map}; TGg=function(T,Q,k,l,v){Q=g.t(Q.renderingContent,xK);if(!Q)return new F("Invalid rendering content for DAI media layout");T=[new $t(l),new Zi(k.YL.videoLengthSeconds),new fp(k.YL.playerVars),new IH(k.xa),new hj(k.q0),new s9(k.QF),new PQ(Bh(T)),new WQ(k.YL.adVideoId),new HQ(k.jo),Q.sodarExtensionData&&new mU(Q.sodarExtensionData),new gn({current:null}),new SE({}),new np(R0(Q.pings))].filter(tZu);v!==void 0&&T.push(new zp(v));return T}; VZ5=function(T,Q,k){T=T.map(function(U){return GT(g.t(U.renderingContent,xK),!1)}); var l=T.map(function(U){return U.videoLengthSeconds}),v=l.map(function(U,R){return new pw(R,l)}),L=Q,q=k,Y=[]; T.forEach(function(U,R){q=Math.min(L+U.videoLengthSeconds*1E3,k);gH(U.playerVars,v[R]);Y.push({YL:U,xa:L,q0:q,QF:R,jo:v[R]});L=q}); return Y}; QWu=function(T,Q,k){for(var l=[],v=g.B(T),L=v.next();!L.done;L=v.next())if(L=g.t(L.value.renderingContent,xK)){if(!uQ(L))return new F("Invalid vod media renderer");l.push(M6f(L))}v=l.map(function(f){return f.IG}); L=[];for(var q=0,Y=0;Y0?qJ:-1;else if(A5= g.t(QC,y1)){QC=Sau(T,Q,k,A5,L,z,Y,e,qJ);if(QC instanceof F){m=QC;break a}QC=QC(G);w.push(QC.jk);r=[].concat(g.ZH(QC.Cv),g.ZH(r));A=[].concat(g.ZH(QC.s4),g.ZH(A));QC.pY&&(f5=[QC.pY].concat(g.ZH(f5)))}else if(A5=g.t(QC,HO)){if(m===void 0){m=new F("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:A5});break a}QC=zPf(T,Q,k,L,A5,E,Y,m,z,KF(Z,"supports_multi_step_on_desktop"));if(QC instanceof F){m=QC;break a}QC=QC(G);w.push(QC.jk);QC.pY&&f5.push(QC.pY); r=[].concat(g.ZH(QC.Cv),g.ZH(r));A=[].concat(g.ZH(QC.s4),g.ZH(A));D=[].concat(g.ZH(QC.Un),g.ZH(D));K=[].concat(g.ZH(QC.Xc),g.ZH(K));O=[E].concat(g.ZH(O))}else if(QC=g.t(QC,tk)){QC=XQy(T,Q,k,L,QC,E,Y,z);if(QC instanceof F){m=QC;break a}QC=QC(G);w.push(QC.jk);QC.pY&&f5.push(QC.pY);A=[].concat(g.ZH(QC.s4),g.ZH(A))}else{m=new F("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}m={h_:w,layoutExitSkipTriggers:r,layoutExitUserInputSubmittedTriggers:D,uC:K,layoutExitMuteTriggers:A,dN:O,GH:f5}}}else a:if(z= D9t(l,k,Z),z instanceof F)m=z;else{w=0;r=[];A=[];D=[];K=[];O=[];E=[];e=new Mu({current:null});vT=new pT({current:null});f5=!1;g6=[];qJ=-1;I=g.B(l);for(QC=I.next();!QC.done;QC=I.next())if(QC=QC.value,g.t(QC,PO)){QC=Cb5(Q,k,g.t(QC,PO),Y);if(QC instanceof F){m=QC;break a}QC=QC(G);r.push(QC.jk);A=[].concat(g.ZH(QC.Cv),g.ZH(A));D=[].concat(g.ZH(QC.s4),g.ZH(D));QC.pY&&(g6=[QC.pY].concat(g.ZH(g6)))}else if(g.t(QC,xK)){qJ=mZ(g.t(QC,xK),k,Z);if(qJ instanceof Jj){m=new F(qJ);break a}QC=new pw(w,z);QC=anJ(Q, qJ.layoutId,qJ.Ny,k,IA(qJ.playerVars,qJ.iz,q,R,QC),qJ.IG,L,QC,Y(G),vT,U.get(qJ.Ny.externalVideoId),void 0,f);w++;r.push(QC.jk);A=[].concat(g.ZH(QC.Cv),g.ZH(A));D=[].concat(g.ZH(QC.s4),g.ZH(D));f5||(E.push(vT),f5=!0);qJ=(qJ=qJ.Ny.adPodSkipTarget)&&qJ>0?qJ:-1}else if(g.t(QC,y1)){QC=Sau(T,Q,k,g.t(QC,y1),L,w,Y,vT,qJ);if(QC instanceof F){m=QC;break a}QC=QC(G);r.push(QC.jk);A=[].concat(g.ZH(QC.Cv),g.ZH(A));D=[].concat(g.ZH(QC.s4),g.ZH(D));QC.pY&&(g6=[QC.pY].concat(g.ZH(g6)))}else if(g.t(QC,HO)){if(m=== void 0){m=new F("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.t(QC,HO)});break a}QC=zPf(T,Q,k,L,g.t(QC,HO),e,Y,m,w,KF(Z,"supports_multi_step_on_desktop"));if(QC instanceof F){m=QC;break a}QC=QC(G);r.push(QC.jk);QC.pY&&g6.push(QC.pY);A=[].concat(g.ZH(QC.Cv),g.ZH(A));D=[].concat(g.ZH(QC.s4),g.ZH(D));K=[].concat(g.ZH(QC.Un),g.ZH(K));O=[].concat(g.ZH(QC.Xc),g.ZH(O));E=[e].concat(g.ZH(E))}else if(g.t(QC,tk)){QC=XQy(T,Q,k,L,g.t(QC,tk),e,Y,w);if(QC instanceof F){m=QC;break a}QC=QC(G);r.push(QC.jk);QC.pY&&g6.push(QC.pY);D=[].concat(g.ZH(QC.s4),g.ZH(D))}else{m=new F("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}m={h_:r,layoutExitSkipTriggers:A,layoutExitUserInputSubmittedTriggers:K,uC:O,layoutExitMuteTriggers:D,dN:E,GH:g6}}m instanceof F?G=m:(O=G.slotId,z=m.h_,w=m.layoutExitSkipTriggers,r=m.layoutExitMuteTriggers,A=m.layoutExitUserInputSubmittedTriggers,D=m.dN,G=Y(G),K=v?v.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",O=v?v.layoutId: xd(Q.S.get(),K,O),E={layoutId:O,layoutType:K,Ik:"core"},G={layout:{layoutId:O,layoutType:K,EG:new Map,layoutExitNormalTriggers:[new vO(Q.T,O)],layoutExitSkipTriggers:w,layoutExitMuteTriggers:r,layoutExitUserInputSubmittedTriggers:A,uC:[],Ik:"core",clientMetadata:new eE([new Ye(z)].concat(g.ZH(D))),ZP:G(E)},GH:m.GH});return G}}; D9t=function(T,Q,k){var l=[];T=g.B(T);for(var v=T.next();!v.done;v=T.next())if(v=v.value,g.t(v,xK)){v=mZ(g.t(v,xK),Q,k);if(v instanceof Jj)return new F(v);l.push(v.IG)}return l}; ntb=function(T,Q,k,l,v,L,q,Y){if(!HG5(k,Y===void 0?!1:Y))return new F("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:k});var U=RA(k);if(U<=0)return new F("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:k});var R=new Mu({current:null}),Z=YjT(T,Q,k,R,l,L,q);return u2T(T,l,L,U,v,function(f,G){var m=f.slotId,I=ZD(k);f=q(f);var z,w=(z=rH(Q,l,k.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?z: xd(Q.S.get(),"LAYOUT_TYPE_MEDIA_BREAK",m);m={layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ik:"core"};z=Z(w,G);var r=FN(z.clientMetadata,"metadata_type_fulfilled_layout");r||MH("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");I=[new PQ(l),new b2(U),new Di(I),R];r&&I.push(new vz(r.layoutType));return{qKK:{layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",EG:new Map,layoutExitNormalTriggers:[new vO(Q.T,w)],layoutExitSkipTriggers:[new gO(Q.T, G.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new Gb(Q.T,G.layoutId)],uC:[],Ik:"core",clientMetadata:new eE(I),ZP:f(m)},gx:z}})}; KSH=function(T){if(!pPC(T))return!1;var Q=g.t(T.adVideoStart,n1);return Q?g.t(T.linearAd,xK)&&Dw(Q)?!0:(MH("Invalid Sandwich with notify"),!1):!1}; x9C=function(T){if(T.linearAds==null)return!1;T=g.t(T.adStart,n1);return T?Dw(T)?!0:(MH("Invalid LASR with notify"),!1):!1}; Pbf=function(T){if(!OGy(T))return!1;T=g.t(T.adStart,n1);return T?Dw(T)?!0:(MH("Invalid LASR with notify"),!1):!1}; K1=function(T,Q,k,l,v,L,q,Y,U,R){this.Y=T;this.S=Q;this.T=k;this.Qq=l;this.dc=v;this.L=L;this.UK=q;this.zP=Y;this.yy=U;this.loadPolicy=R===void 0?1:R}; vh=function(T,Q,k,l,v,L,q,Y,U,R,Z){var f=[];if(Q.length===0&&l.length===0&&k.length===0)return f;Q=Q.filter(aB);var G=k.filter(KBu),m=l.filter(aB),I=new Map,z=Hx6(Q),w=k.some(function(QJ){var I_;return(QJ==null?void 0:(I_=QJ.adSlotMetadata)==null?void 0:I_.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),r=k.some(function(QJ){var I_; return(QJ==null?void 0:(I_=QJ.adSlotMetadata)==null?void 0:I_.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),A=k.some(function(QJ){var I_; return(QJ==null?void 0:(I_=QJ.adSlotMetadata)==null?void 0:I_.slotType)==="SLOT_TYPE_IN_PLAYER"}),D=k.some(function(QJ){var I_,g$$; return(QJ==null?void 0:(I_=QJ.adSlotMetadata)==null?void 0:I_.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(QJ==null?void 0:(g$$=QJ.adSlotMetadata)==null?void 0:g$$.slotType)==="SLOT_TYPE_ABOVE_FEED"}); k=k.some(function(QJ){var I_;return(QJ==null?void 0:(I_=QJ.adSlotMetadata)==null?void 0:I_.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(w||r||A||D||k)R=FQ5(G,Q,Y,v,z,T.dc.get(),T.loadPolicy,I,T.Qq.get(),T.Y.get(),A,q,U,R,Z),R instanceof F?MH(R,void 0,void 0,{contentCpn:v}):f.push.apply(f,g.ZH(R));R=g.B(Q);for(Z=R.next();!Z.done;Z=R.next())Z=Z.value,k=HTT(T,I,Z,v,L,q,w,Y,z,U,G),k instanceof F?MH(k,void 0,void 0,{renderer:Z.renderer,config:Z.config.adPlacementConfig,kind:Z.config.adPlacementConfig.kind,contentCpn:v,daiEnabled:q}):f.push.apply(f,g.ZH(k));t6I(T.Qq.get())||(L=OT5(T,m,v,Y,z,I),f.push.apply(f,g.ZH(L)));if(T.L===null|| q&&!Y.VB){var K,O,E;T=Y.Cc&&Q.length===1&&((K=Q[0].config)==null?void 0:(O=K.adPlacementConfig)==null?void 0:O.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((E=Q[0].renderer)==null?void 0:E.adBreakServiceRenderer);if(!f.length&&!T){var e,vT,f5,qJ;MH("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":Q.length,contentCpn:v,"first APR kind":(e=Q[0])==null?void 0:(vT=e.config)==null?void 0:(f5=vT.adPlacementConfig)==null?void 0:f5.kind,renderer:(qJ= Q[0])==null?void 0:qJ.renderer})}return f}K=l.filter(aB);f.push.apply(f,g.ZH(qjg(I,K,T.S.get(),T.L,v,w)));if(!f.length){var g6,QC,A5,Et;MH("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":Q.length,contentCpn:v,daiEnabled:q.toString(),"first APR kind":(g6=Q[0])==null?void 0:(QC=g6.config)==null?void 0:(A5=QC.adPlacementConfig)==null?void 0:A5.kind,renderer:(Et=Q[0])==null?void 0:Et.renderer})}return f}; OT5=function(T,Q,k,l,v,L){function q(G){return Q0(T.dc.get(),G)} var Y=[];Q=g.B(Q);for(var U=Q.next();!U.done;U=Q.next()){U=U.value;var R=U.renderer,Z=R.sandwichedLinearAdRenderer,f=R.linearAdSequenceRenderer;Z&&KSH(Z)?(MH("Found AdNotify with SandwichedLinearAdRenderer"),f=g.t(Z.adVideoStart,n1),Z=g.t(Z.linearAd,xK),My(L,R,U.config.adPlacementConfig.kind),R=void 0,f=bxX((R=f)==null?void 0:R.layout.layoutId,T.S.get(),T.T.get(),U.config.adPlacementConfig,U.adSlotLoggingData,Z,k,l,q,v,T.loadPolicy,T.Qq.get(),T.dc.get()),f instanceof F?MH(f):Y.push.apply(Y,g.ZH(f))): f&&(!f.adLayoutMetadata&&x9C(f)||f.adLayoutMetadata&&Pbf(f))&&(MH("Found AdNotify with LinearAdSequenceRenderer"),My(L,R,U.config.adPlacementConfig.kind),R=void 0,Z=wQ6((R=g.t(f.adStart,n1))==null?void 0:R.layout.layoutId,T.S.get(),T.T.get(),U.config.adPlacementConfig,U.adSlotLoggingData,f.linearAds,wO(f.adLayoutMetadata)?f.adLayoutMetadata:void 0,k,l,q,v,T.loadPolicy,T.Qq.get()),Z instanceof F?MH(Z):Y.push.apply(Y,g.ZH(Z)))}return Y}; HTT=function(T,Q,k,l,v,L,q,Y,U,R,Z){function f(r){return Q0(T.dc.get(),r)} var G=k.renderer,m=k.config.adPlacementConfig,I=m.kind,z=k.adSlotLoggingData,w=Y.VB&&I==="AD_PLACEMENT_KIND_START";w=L&&!w;if(G.adsEngagementPanelRenderer!=null)return Ug(Q,k.elementId,I,G.adsEngagementPanelRenderer.isContentVideoEngagementPanel,G.adsEngagementPanelRenderer.adVideoId,G.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,m,z,function(r,A,D,K){var O=T.T.get(),E=r.slotId,e=G.adsEngagementPanelRenderer;r=Q0(T.dc.get(),r);return xN(O,E,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new A6(e),A,D,e.impressionPings,r,G.adsEngagementPanelRenderer.adLayoutLoggingData,K)}),[]; if(G.adsEngagementPanelLayoutViewModel)return Ug(Q,k.elementId,I,G.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,G.adsEngagementPanelLayoutViewModel.adVideoId,G.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,m,z,function(r,A,D,K){var O=T.T.get(),E=r.slotId,e=G.adsEngagementPanelLayoutViewModel;r=Q0(T.dc.get(),r);return Ph(O,E,"LAYOUT_TYPE_PANEL",new bb(e),A,D,r,G.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,K)}),[]; if(G.actionCompanionAdRenderer!=null){if(G.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return kU5(T.S.get(),T.L,T.T.get(),G.actionCompanionAdRenderer,m,z,l,f);Ug(Q,k.elementId,I,G.actionCompanionAdRenderer.isContentVideoCompanion,G.actionCompanionAdRenderer.adVideoId,G.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,m,z,function(r,A,D,K){var O=T.T.get(),E=r.slotId,e=G.actionCompanionAdRenderer;r=Q0(T.dc.get(),r);return xN(O,E,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new dG(e),A,D,e.impressionPings,r,G.actionCompanionAdRenderer.adLayoutLoggingData,K)})}else if(G.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(G.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return lCf(T.S.get(),T.L,T.T.get(),G.topBannerImageTextIconButtonedLayoutViewModel,m,z,l,f); Ug(Q,k.elementId,I,G.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,G.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,G.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,m,z,function(r,A,D,K){var O=T.T.get(),E=r.slotId,e=G.topBannerImageTextIconButtonedLayoutViewModel;r=Q0(T.dc.get(),r);return Ph(O,E,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new N9(e),A,D,r,G.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,K)})}else if(G.imageCompanionAdRenderer)Ug(Q, k.elementId,I,G.imageCompanionAdRenderer.isContentVideoCompanion,G.imageCompanionAdRenderer.adVideoId,G.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,m,z,function(r,A,D,K){var O=T.T.get(),E=r.slotId,e=G.imageCompanionAdRenderer; r=Q0(T.dc.get(),r);return xN(O,E,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new aW(e),A,D,e.impressionPings,r,G.imageCompanionAdRenderer.adLayoutLoggingData,K)}); else if(G.bannerImageLayoutViewModel)Ug(Q,k.elementId,I,G.bannerImageLayoutViewModel.isContentVideoCompanion,G.bannerImageLayoutViewModel.adVideoId,G.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,m,z,function(r,A,D,K){var O=T.T.get(),E=r.slotId,e=G.bannerImageLayoutViewModel;r=Q0(T.dc.get(),r);return Ph(O,E,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new ub(e),A,D,r,G.bannerImageLayoutViewModel.adLayoutLoggingData,K)}); else if(G.shoppingCompanionCarouselRenderer)Ug(Q,k.elementId,I,G.shoppingCompanionCarouselRenderer.isContentVideoCompanion,G.shoppingCompanionCarouselRenderer.adVideoId,G.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,m,z,function(r,A,D,K){var O=T.T.get(),E=r.slotId,e=G.shoppingCompanionCarouselRenderer;r=Q0(T.dc.get(),r);return xN(O,E,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new nT(e),A,D,e.impressionPings,r,G.shoppingCompanionCarouselRenderer.adLayoutLoggingData,K)}); else if(G.adBreakServiceRenderer){if(!QVg(k))return[];if(I==="AD_PLACEMENT_KIND_PAUSE")return T5C(T.S.get(),m,z,k.renderer.adBreakServiceRenderer,l);if(I!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&I!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return VK6(T.S.get(),m,z,k.renderer.adBreakServiceRenderer,l,v,L);Y.Cc||MH("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:I,adPlacementConfig:m,daiEnabledForContentVideo:String(L),isServedFromLiveInfra:String(Y.Cc),clientPlaybackNonce:Y.clientPlaybackNonce}); if(I==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!T.UK)return new F("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!T.yy)return new F("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");T.yy.aX({adPlacementRenderer:k,contentCpn:l,Y$:v});v=T.UK.get().getCurrentTimeSec(1,!1);return pQC(T.S.get(),k.renderer.adBreakServiceRenderer,m,v,l,z,L)}if(!T.zP)return new F("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); T.zP.aX({adPlacementRenderer:k,contentCpn:l,Y$:v})}else{if(G.clientForecastingAdRenderer)return ZTf(T.S.get(),T.T.get(),m,z,G.clientForecastingAdRenderer,l,v,f);if(G.invideoOverlayAdRenderer)return InI(T.S.get(),T.T.get(),m,z,G.invideoOverlayAdRenderer,l,v,f);if(G.instreamAdPlayerOverlayRenderer)return GFI(T.S.get(),T.T.get(),m,z,G.instreamAdPlayerOverlayRenderer,l,f);if((G.linearAdSequenceRenderer||G.instreamVideoAdRenderer)&&w)return zb6(T.S.get(),T.T.get(),k,l,f,R,!T.Qq.get().U.G().V("html5_override_ad_video_length_killswitch")); if(G.linearAdSequenceRenderer&&!w){if(q)return[];My(Q,G,I);if(G.linearAdSequenceRenderer.adLayoutMetadata){if(!OGy(G.linearAdSequenceRenderer))return new F("Received invalid LinearAdSequenceRenderer.")}else if(G.linearAdSequenceRenderer.linearAds==null)return new F("Received invalid LinearAdSequenceRenderer.");if(g.t(G.linearAdSequenceRenderer.adStart,n1)){MH("Found AdNotify in LinearAdSequenceRenderer");k=g.t(G.linearAdSequenceRenderer.adStart,n1);if(!zyH(k))return new F("Invalid AdMessageRenderer."); L=G.linearAdSequenceRenderer.linearAds;return d95(T.Y.get(),T.S.get(),T.T.get(),T.dc.get(),m,z,k,wO(G.linearAdSequenceRenderer.adLayoutMetadata)?G.linearAdSequenceRenderer.adLayoutMetadata:void 0,L,l,v,Y,f,U,T.loadPolicy,T.Qq.get())}return c6T(T.S.get(),T.T.get(),m,z,G.linearAdSequenceRenderer.linearAds,wO(G.linearAdSequenceRenderer.adLayoutMetadata)?G.linearAdSequenceRenderer.adLayoutMetadata:void 0,l,v,Y,f,U,T.loadPolicy,T.Qq.get(),Z)}if(!G.remoteSlotsRenderer||L){if(G.instreamVideoAdRenderer&& !w){if(q)return[];My(Q,G,I);return u05(T.S.get(),T.T.get(),m,z,G.instreamVideoAdRenderer,l,v,Y,f,U,T.loadPolicy,T.Qq.get(),T.dc.get(),Z)}if(G.instreamSurveyAdRenderer)return ntb(T.S.get(),T.T.get(),G.instreamSurveyAdRenderer,m,z,l,f,KF(T.Qq.get(),"supports_multi_step_on_desktop"));if(G.sandwichedLinearAdRenderer!=null)return pPC(G.sandwichedLinearAdRenderer)?g.t(G.sandwichedLinearAdRenderer.adVideoStart,n1)?(MH("Found AdNotify in SandwichedLinearAdRenderer"),k=g.t(G.sandwichedLinearAdRenderer.adVideoStart, n1),zyH(k)?(L=g.t(G.sandwichedLinearAdRenderer.linearAd,xK))?rlb(k,L,m,T.Y.get(),T.S.get(),T.T.get(),T.dc.get(),z,l,v,Y,f,U,T.loadPolicy,T.Qq.get()):new F("Missing IVAR from Sandwich"):new F("Invalid AdMessageRenderer.")):c6T(T.S.get(),T.T.get(),m,z,[G.sandwichedLinearAdRenderer.adVideoStart,G.sandwichedLinearAdRenderer.linearAd],void 0,l,v,Y,f,U,T.loadPolicy,T.Qq.get()):new F("Received invalid SandwichedLinearAdRenderer.");if(G.videoAdTrackingRenderer!=null)return U9X(T.S.get(),T.T.get(),G.videoAdTrackingRenderer, m,z,l,v,Y.aD,f)}}return[]}; Hh=function(T,Q,k,l,v,L,q,Y){g.x.call(this);var U=this;this.S=T;this.L=Q;this.DC=l;this.UK=v;this.Qq=L;this.Vq=q;this.iC=Y;this.T=null;k.get().addListener(this);this.addOnDisposeCallback(function(){k.wd()||k.get().removeListener(U)}); l.get().addListener(this);this.addOnDisposeCallback(function(){l.wd()||l.get().removeListener(U)})}; p1=function(T,Q,k){var l=T.UK.get().getCurrentTimeSec(1,!1);T.Qq.get().U.G().J3()&&Cw(T.Vq.get(),"sdai","onopp.1;evt."+k.event+";start."+k.startSecs.toFixed(3)+";d."+k.bf.toFixed(3));kp(T.S.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var v=T.L.get(),L=Q.adPlacementRenderer.renderer.adBreakServiceRenderer,q=Q.contentCpn,Y=Q.adPlacementRenderer.adSlotLoggingData;tC(T.Qq.get());var U=T.Vq;var R=v.Qq.get();R=g.jj(R.U.G().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var Z=v.Qq.get();var f=g.jj(Z.U.G().experiments,"min_prefetch_offset_sec_for_livestream_optimization");Z=k.startSecs*1E3;Z={hp:new Cb(Z,Z+k.bf*1E3),BY:!1,cueProcessedMs:l*1E3};var G=k.startSecs+k.bf;if(l===0)Z.D6=new Cb(0,G*1E3);else{f=k.startSecs-f;var m=f-l;Z.D6=m<=0?new Cb(f*1E3,G*1E3):new Cb(Math.floor(l+Math.random()*Math.min(m,R))*1E3,G*1E3)}L=L1(v,L,q,Z,Y,[new U9(k)]);Og(v.Qq.get())&&Cw(U.get(),"abrsm","cpi."+k.identifier+";cps."+k.startSecs+";cpd."+k.bf+";cts."+l+";rbf."+Z.D6.start);U.get().U.Gh(k.startSecs- l,Z.D6.start/1E3-l);return[L]})}; Wh=function(T){var Q,k=(Q=FN(T.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Q.current;if(!k)return null;Q=FN(T.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var l=T.layoutId,v=FN(T.clientMetadata,"metadata_type_content_cpn"),L=FN(T.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),q=FN(T.clientMetadata,"metadata_type_player_overlay_layout_renderer"),Y=FN(T.clientMetadata,"metadata_type_player_underlay_renderer"),U=FN(T.clientMetadata, "metadata_type_ad_placement_config"),R=FN(T.clientMetadata,"metadata_type_video_length_seconds");var Z=pp(T.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?FN(T.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):pp(T.clientMetadata,"metadata_type_layout_enter_ms")&&pp(T.clientMetadata,"metadata_type_layout_exit_ms")?(FN(T.clientMetadata,"metadata_type_layout_exit_ms")-FN(T.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{MA:l,contentCpn:v,n3:k,ud:Q,instreamAdPlayerOverlayRenderer:L, playerOverlayLayoutRenderer:q,instreamAdPlayerUnderlayRenderer:Y,adPlacementConfig:U,videoLengthSeconds:R,Es:Z,inPlayerLayoutId:FN(T.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:FN(T.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; $9C=function(T,Q){return WSI(T,Q)}; J66=function(T,Q){Q=WSI(T,Q);if(!Q)return null;var k;Q.Es=(k=FN(T.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:k.adBreakRemainingLengthSeconds;return Q}; WSI=function(T,Q){var k,l=(k=FN(T.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:k.current;if(!l)return null;k=U1J(T,Q);return{j_:YCt(T,Q),adPlacementConfig:FN(T.clientMetadata,"metadata_type_ad_placement_config"),KZ:k,contentCpn:FN(T.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:FN(T.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:FN(T.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:FN(T.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Es:void 0,n3:l,MA:T.layoutId,videoLengthSeconds:FN(T.clientMetadata,"metadata_type_video_length_seconds")}}; $N=function(T,Q,k,l,v,L,q,Y,U){g.x.call(this);this.Y=T;this.B=Q;this.N=k;this.L=l;this.T=v;this.S=L;this.dc=q;this.Qq=Y;this.l9=U;this.Ld=!0}; ePJ=function(T,Q,k){return xgT(T.T.get(),Q.contentCpn,Q.MA,function(l){return P3H(T.S.get(),l.slotId,k,Q.adPlacementConfig,Q.MA,Q0(T.dc.get(),l))})}; JC=function(T,Q,k,l,v,L,q,Y){g.x.call(this);this.S=T;this.T=Q;this.L=k;this.Qq=l;this.Y=v;this.l9=L;this.UK=q;this.eV=Y}; ew=function(T){g.x.call(this);this.T=T}; kp=function(T,Q,k,l){T.T().v1(Q,l);k=k();T=T.T();T.A3.hT("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",Q,l,k);Q=g.B(k);for(k=Q.next();!k.done;k=Q.next())a:{l=T;k=k.value;l.A3.XE("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",k);l.A3.XE("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",k);try{var v=l.T;if(g.bB(k.slotId))throw new F("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(Mo(v,k))throw new F("Duplicate registration for slot.",{slotId:k.slotId,slotEntryTriggerType:k.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!v.Df.Vo.has(k.slotType))throw new F("No fulfillment adapter factory registered for slot of type: "+k.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!v.Df.y$.has(k.slotType))throw new F("No SlotAdapterFactory registered for slot of type: "+k.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");d2(v,"TRIGGER_CATEGORY_SLOT_ENTRY",k.slotEntryTrigger?[k.slotEntryTrigger]:[]);d2(v,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", k.slotFulfillmentTriggers);d2(v,"TRIGGER_CATEGORY_SLOT_EXPIRATION",k.slotExpirationTriggers);var L=l.T,q=k.slotType+"_"+k.slotPhysicalPosition,Y=CF(L,q);if(Mo(L,k))throw new F("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");Y.set(k.slotId,new lh6(k));L.T.set(q,Y)}catch(vT){vT instanceof F&&vT.Cp?(l.A3.dA("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",vT.Cp,k),MH(vT,k,void 0,void 0,vT.q5)):(l.A3.dA("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", k),MH(vT,k));break a}Mo(l.T,k).B=!0;try{var U=l.T,R=Mo(U,k),Z=k.slotEntryTrigger,f=U.Df.Fm.get(Z.triggerType);f&&(f.gJ("TRIGGER_CATEGORY_SLOT_ENTRY",Z,k,null),R.hj.set(Z.triggerId,f));for(var G=g.B(k.slotFulfillmentTriggers),m=G.next();!m.done;m=G.next()){var I=m.value,z=U.Df.Fm.get(I.triggerType);z&&(z.gJ("TRIGGER_CATEGORY_SLOT_FULFILLMENT",I,k,null),R.z9.set(I.triggerId,z))}for(var w=g.B(k.slotExpirationTriggers),r=w.next();!r.done;r=w.next()){var A=r.value,D=U.Df.Fm.get(A.triggerType);D&&(D.gJ("TRIGGER_CATEGORY_SLOT_EXPIRATION", A,k,null),R.D.set(A.triggerId,D))}var K=U.Df.Vo.get(k.slotType).get().build(U.L,k);R.C=K;var O=U.Df.y$.get(k.slotType).get().build(U.N,k);O.init();R.S=O}catch(vT){vT instanceof F&&vT.Cp?(l.A3.dA("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",vT.Cp,k),MH(vT,k,void 0,void 0,vT.q5)):(l.A3.dA("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",k),MH(vT,k));LF(l,k,!0);break a}l.A3.XE("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",k);l.T.HT(k);for(var E=g.B(l.S),e=E.next();!e.done;e= E.next())e.value.HT(k);RD(l,k)}}; Fu=function(T,Q,k,l,v){g.x.call(this);var L=this;this.S=T;this.L=Q;this.Xk=k;this.context=v;this.T=new Map;l.get().addListener(this);this.addOnDisposeCallback(function(){l.wd()||l.get().removeListener(L)})}; JtC=function(T,Q){var k=0x8000000000000,l=0,v=0x8000000000000;var L=g.B(Q.slotFulfillmentTriggers);for(var q=L.next();!q.done;q=L.next())if(q=q.value,q instanceof jg){var Y=q.T.start;k=Math.min(k,Y);l=Math.max(l,q.T.end);q.visible&&(v=Math.min(v,Y))}else MH("Found unexpected fulfillment trigger for throttled slot.",Q,null,{fulfillmentTrigger:q});L=k;v=v<0x8000000000000&&k0&&h0(T.B(),k)}; Rr=function(T,Q,k,l,v){for(var L=[],q=g.B(T.w5.values()),Y=q.next();!Y.done;Y=q.next()){var U=Y=Y.value,R=U.trigger;U=U.slot;if(R.triggerType===Q){if(R instanceof VG||R instanceof Tb||R instanceof kK){if(v&&R.breakDurationMs!==k)continue;if(!v&&R.breakDurationMs===k)continue;if(l.has(U.slotId))continue}L.push(Y)}}L.length>0&&h0(T.B(),L)}; veJ=function(T,Q){Q=(Q.bf+1)*1E3;var k=void 0;T=g.B(T.w5.values());for(var l=T.next();!l.done;l=T.next()){var v=l.value;l=v.trigger;v=v.slot;l instanceof VG&&l.breakDurationMs<=Q&&(!k||l.breakDurationMs>k.trigger.breakDurationMs)&&(k={slot:v,trigger:l})}return k}; LU6=function(T){T=T.adPlacementRenderer.config.adPlacementConfig;if(!T.prefetchModeConfig||!T.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;T=Number(T.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(T)||T<=0?0:Math.floor(Math.random()*T)}; q9H=function(T){T=T.adPlacementRenderer.config.adPlacementConfig;if(T.prefetchModeConfig&&T.prefetchModeConfig.cacheFetchRefreshDurationMs&&(T=Number(T.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(T)||T<=0)))return T}; ZQ=function(T){T.T=null;T.w5.clear();T.S&&T.S.stop();T.N&&T.N.stop();var Q;(Q=T.L)==null||Q.stop();delete T.L}; liT=function(T){var Q=[];T=g.B(T.w5.values());for(var k=T.next();!k.done;k=T.next())k=k.value.trigger,k instanceof VG&&Q.push(k.breakDurationMs);return Q}; fQ=function(T){g.x.call(this);this.L=T;this.Ld=!0;this.w5=new Map;this.T=new Map;this.S=new Map}; geg=function(T,Q){var k=[];if(Q=T.T.get(Q.layoutId)){Q=g.B(Q);for(var l=Q.next();!l.done;l=Q.next())(l=T.S.get(l.value.triggerId))&&k.push(l)}return k}; GE=function(T){g.x.call(this);this.T=T;this.w5=new Map}; MEt=function(T,Q){for(var k=[],l=g.B(T.w5.values()),v=l.next();!v.done;v=l.next())v=v.value,v.trigger instanceof OW&&v.trigger.slotId===Q&&k.push(v);k.length>=1&&h0(T.T(),k)}; Y9X=function(T,Q){var k={slotId:lE(Q,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Ik:"surface",clientMetadata:new eE([])},l=Object,v=l.assign;Q=xd(Q,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",k.slotId);Q={layoutId:Q,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",EG:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"surface", clientMetadata:new eE([]),ZP:Wbu(!1,k.slotId,k.slotType,k.slotPhysicalPosition,k.Ik,k.slotEntryTrigger,k.slotFulfillmentTriggers,k.slotExpirationTriggers,Q,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return v.call(l,{},T,{LC:!0,slot:k,layout:Q})}; iGC=function(T,Q,k,l){var v=T.kind;l=l?!1:!T.hideCueRangeMarker;switch(v){case "AD_PLACEMENT_KIND_START":return l={hp:new Cb(-0x8000000000000,-0x8000000000000),BY:l},k!=null&&(l.D6=new Cb(-0x8000000000000,-0x8000000000000)),l;case "AD_PLACEMENT_KIND_END":return l={hp:new Cb(0x7ffffffffffff,0x8000000000000),BY:l},k!=null&&(l.D6=new Cb(Math.max(0,Q-k),0x8000000000000)),l;case "AD_PLACEMENT_KIND_MILLISECONDS":v=T.adTimeOffset;v.offsetStartMilliseconds||MH("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); v.offsetEndMilliseconds||MH("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");T=Number(v.offsetStartMilliseconds);v=Number(v.offsetEndMilliseconds);v===-1&&(v=Q);if(Number.isNaN(T)||Number.isNaN(v)||T>v)return new F("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:T,offsetEndMs:v},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",v===Q&&T-500<=v);l={hp:new Cb(T,v),BY:l};if(k!=null){T=Math.max(0,T-k);if(T===v)return l;l.D6=new Cb(T,v)}return l; default:return new F("AdPlacementKind not supported in convertToRange.",{kind:v,adPlacementConfig:T})}}; Uug=function(T){if(!T||!T.adPlacements&&!T.adSlots)return!1;for(var Q=g.B(T.adPlacements||[]),k=Q.next();!k.done;k=Q.next())if(k=k.value)if(k=k.adPlacementRenderer,k!=null&&(k.config&&k.config.adPlacementConfig&&k.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;T=g.B(T.adSlots||[]);for(Q=T.next();!Q.done;Q=T.next()){var l=k=void 0;if(((k=g.t(Q.value,oA))==null?void 0:(l=k.adSlotMetadata)==null?void 0:l.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; mx=function(T){this.Qq=T;this.S=new Map;this.T=new Map;this.L=new Map}; lE=function(T,Q){if(Ir(T.Qq.get())){var k=T.S.get(Q)||0;k++;T.S.set(Q,k);return Q+"_"+k}return g.hu(16)}; xd=function(T,Q,k){if(Ir(T.Qq.get())){var l=T.T.get(Q)||0;l++;T.T.set(Q,l);return k+"_"+Q+"_"+l}return g.hu(16)}; dH=function(T,Q){if(Ir(T.Qq.get())){var k=T.L.get(Q)||0;k++;T.L.set(Q,k);return Q+"_"+k}return g.hu(16)}; Rn5=function(T){var Q=[new l2(T.MA),new qu(T.n3),new PQ(T.adPlacementConfig),new Zi(T.videoLengthSeconds),new Aj(T.Es)];T.instreamAdPlayerOverlayRenderer&&Q.push(new J6(T.instreamAdPlayerOverlayRenderer));T.playerOverlayLayoutRenderer&&Q.push(new e6(T.playerOverlayLayoutRenderer));T.ud&&Q.push(new pT(T.ud));return Q}; Zp5=function(T,Q,k,l,v,L){T=k.inPlayerLayoutId?k.inPlayerLayoutId:xd(L,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",T);var q,Y,U=k.instreamAdPlayerOverlayRenderer?(q=k.instreamAdPlayerOverlayRenderer)==null?void 0:q.adLayoutLoggingData:(Y=k.playerOverlayLayoutRenderer)==null?void 0:Y.adLayoutLoggingData;q={layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ik:Q};return{layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",EG:new Map,layoutExitNormalTriggers:[new yG(function(R){return dH(L, R)},k.MA)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:Q,clientMetadata:l,ZP:v(q),adLayoutLoggingData:U}}; h1=function(T,Q){var k=this;this.S=T;this.Qq=Q;this.T=function(l){return dH(k.S.get(),l)}}; P3H=function(T,Q,k,l,v,L){k=new eE([new F2(k),new PQ(l)]);Q=xd(T.S.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Q);l={layoutId:Q,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ik:"core"};return{layoutId:Q,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",EG:new Map,layoutExitNormalTriggers:[new yG(function(q){return dH(T.S.get(),q)},v)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:k,ZP:L(l),adLayoutLoggingData:void 0}}; hC=function(T,Q,k,l,v){var L=Rn5(l);return Zp5(Q,k,l,new eE(L),v,T.S.get())}; fiy=function(T,Q,k,l,v){var L=Rn5(l);L.push(new KT(l.j_));L.push(new xt(l.KZ));return Zp5(Q,k,l,new eE(L),v,T.S.get())}; xN=function(T,Q,k,l,v,L,q,Y,U,R){Q=xd(T.S.get(),k,Q);var Z={layoutId:Q,layoutType:k,Ik:"core"},f=new Map;q&&f.set("impression",q);q=[new lQ(T.T,v,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];R&&q.push(new EW(T.T,R,["normal"]));return{layoutId:Q,layoutType:k,EG:f,layoutExitNormalTriggers:q,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:new eE([l,new PQ(L),new l2(v)]),ZP:Y(Z),adLayoutLoggingData:U}}; Ph=function(T,Q,k,l,v,L,q,Y,U){Q=xd(T.S.get(),k,Q);var R={layoutId:Q,layoutType:k,Ik:"core"},Z=[new lQ(T.T,v,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];U&&Z.push(new EW(T.T,U,["normal"]));return{layoutId:Q,layoutType:k,EG:new Map,layoutExitNormalTriggers:Z,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:new eE([l,new PQ(L),new l2(v)]),ZP:q(R),adLayoutLoggingData:Y}}; AC=function(T,Q,k){var l=[];l.push(new oB(T.T,k));Q&&l.push(Q);return l}; Ny=function(T,Q,k,l,v,L,q){var Y={layoutId:Q,layoutType:k,Ik:"core"};return{layoutId:Q,layoutType:k,EG:new Map,layoutExitNormalTriggers:q,layoutExitSkipTriggers:[new $J(T.T,Q)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:new eE([new Dn(l),new PQ(v)]),ZP:L(Y),adLayoutLoggingData:l.adLayoutLoggingData}}; f1=function(T,Q,k,l,v,L,q,Y){var U={layoutId:Q,layoutType:L,Ik:"core"};return{layoutId:Q,layoutType:L,EG:new Map,layoutExitNormalTriggers:[new yG(T.T,k)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:new eE([new PQ(l)].concat(g.ZH(q))),ZP:v(U),adLayoutLoggingData:Y}}; rH=function(T,Q,k,l){if(T.Qq.get().Zg(Q.kind==="AD_PLACEMENT_KIND_START"))if(k===void 0)MH("Expected SSAP layout ID in renderer",void 0,void 0,{caller:l});else return k}; hPC=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G){T=b1(T,Q,k,v,L,q,Y,U,f,rH(T,k,l.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),G);Q=T.dN;k=new oH(T.TK);l=T.layoutExitSkipTriggers;R>0&&(Q.push(k),Q.push(new Oa(R)),l=[]);Q.push(new t6(Z));return{jk:{layoutId:T.layoutId,layoutType:T.layoutType,EG:T.EG,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:T.Ik,clientMetadata:new eE(Q),ZP:T.ZP,adLayoutLoggingData:T.adLayoutLoggingData}, Cv:l,s4:T.layoutExitMuteTriggers,Un:T.layoutExitUserInputSubmittedTriggers,Xc:T.uC,pY:T.pY}}; BGu=function(T,Q,k,l,v,L,q,Y,U,R){Q=b1(T,Q,k,l,L,new Map,q,function(Z){return Y(Z,U)},void 0,rH(T,k,v.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); T=new Gb(T.T,Q.TK);k=new oH(Q.TK);R=new t6(R);return{jk:{layoutId:Q.layoutId,layoutType:Q.layoutType,EG:Q.EG,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:Q.Ik,clientMetadata:new eE([].concat(g.ZH(Q.dN),[k,R])),ZP:Q.ZP,adLayoutLoggingData:Q.adLayoutLoggingData},Cv:Q.layoutExitSkipTriggers,s4:Q.layoutExitMuteTriggers,Un:[].concat(g.ZH(Q.layoutExitUserInputSubmittedTriggers),[T]),Xc:Q.uC,pY:Q.pY}}; b1=function(T,Q,k,l,v,L,q,Y,U,R,Z){Q=R!=null?R:xd(T.S.get(),"LAYOUT_TYPE_MEDIA_BREAK",Q);R={layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ik:"adapter"};Y=Y(Q);var f=FN(Y.clientMetadata,"metadata_type_fulfilled_layout");f||MH("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var G=f?f.layoutId:"";k=[new PQ(k),new b2(l),new Di(v)];f&&k.push(new vz(f.layoutType));Z&&k.push(new s9(Z));return{layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", EG:L,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new gO(T.T,G)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"adapter",dN:k,ZP:q(R),adLayoutLoggingData:U,pY:Y,TK:G}}; nlH=function(T,Q,k,l,v,L,q,Y,U,R,Z){T=Gp5(T,Q,"core",k,l,v,L,q,Y,U,R,void 0,Z);return{layoutId:T.layoutId,layoutType:T.layoutType,EG:T.EG,layoutExitNormalTriggers:T.layoutExitNormalTriggers,layoutExitSkipTriggers:T.layoutExitSkipTriggers,layoutExitMuteTriggers:T.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:T.layoutExitUserInputSubmittedTriggers,uC:T.uC,Ik:T.Ik,clientMetadata:new eE(T.zf),ZP:T.ZP,adLayoutLoggingData:T.adLayoutLoggingData}}; anJ=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G){Q=Gp5(T,Q,"adapter",k,l,v,L,q,Y,U,Z,f,G);l=Q.layoutExitSkipTriggers;v=Q.zf;k.adPodSkipTarget&&k.adPodSkipTarget>0&&(v.push(R),v.push(new Oa(k.adPodSkipTarget)),l=[]);v.push(new t6(Y.adPodIndex));k.isCritical&&(l=[new EW(T.T,Q.layoutId,["error"])].concat(g.ZH(l)));return{jk:{layoutId:Q.layoutId,layoutType:Q.layoutType,EG:Q.EG,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:Q.Ik, clientMetadata:new eE(v),ZP:Q.ZP,adLayoutLoggingData:Q.adLayoutLoggingData},Cv:l,s4:Q.layoutExitMuteTriggers,Un:Q.layoutExitUserInputSubmittedTriggers,Xc:Q.uC}}; Gp5=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G){var m={layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA",Ik:k};v=[new PQ(v),new HQ(U),new WQ(l.externalVideoId),new $t(Y),new Di({impressionCommands:l.impressionCommands,abandonCommands:l.onAbandonCommands,completeCommands:l.completeCommands,progressCommands:l.adVideoProgressCommands}),new fp(L),new gn({current:null}),new Zi(q)];(L=l.playerOverlay.instreamAdPlayerOverlayRenderer)&&v.push(new J6(L));(q=l.playerOverlay.playerOverlayLayoutRenderer)&&v.push(new e6(q)); f&&v.push(new Gp(f));(f=l.playerUnderlay)&&v.push(new F2(f));Y=lE(T.S.get(),"SLOT_TYPE_IN_PLAYER");f=(f=L?L.elementId:q==null?void 0:q.layoutId)?f:xd(T.S.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Y);v.push(new oH(f));v.push(new Lp(Y));v.push(new s9(U.adPodIndex));l.adNextParams&&v.push(new rG(l.adNextParams));l.shrunkenPlayerBytesConfig&&v.push(new ib(l.shrunkenPlayerBytesConfig));l.clickthroughEndpoint&&v.push(new cQ(l.clickthroughEndpoint));l.legacyInfoCardVastExtension&&v.push(new rn(l.legacyInfoCardVastExtension)); l.sodarExtensionData&&v.push(new mU(l.sodarExtensionData));Z&&v.push(new Nu(Z));v.push(new np(R0(l.pings)));U=ZJ(l.pings);if(G){a:{G=g.B(G);for(Z=G.next();!Z.done;Z=G.next())if(Z=Z.value,Z.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(L=g.t(Z.fulfillmentContent.fulfilledLayout,Fj))&&(L=g.t(L.renderingContent,Jk))&&L.associatedPlayerBytesLayoutId===Q){G=Z;break a}G=void 0}G&&v.push(new Ea(G))}return{layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA",EG:U,layoutExitNormalTriggers:[new vO(T.T,Q)],layoutExitSkipTriggers:l.skipOffsetMilliseconds? [new gO(T.T,f)]:[],layoutExitMuteTriggers:[new gO(T.T,f)],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:k,zf:v,ZP:R(m),adLayoutLoggingData:l.adLayoutLoggingData}}; w3J=function(T,Q,k,l,v,L,q,Y,U){l.every(function(Z){return Wz(Z,[],["LAYOUT_TYPE_MEDIA"])})||MH("Unexpect subLayout type for DAI composite layout"); Q=xd(T.S.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Q);var R={layoutId:Q,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Ik:"core"};return{layoutId:Q,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",EG:new Map,layoutExitNormalTriggers:[new iZ(T.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],uC:[],Ik:"core",clientMetadata:new eE([new IH(k),new hj(Y),new Ye(l),new PQ(v),new zp(L),new SE({}),new xe(U)]),ZP:q(R)}}; Sjf=function(T){return T!=null}; sn=function(T,Q,k){var l=this;this.S=T;this.L=Q;this.Qq=k;this.T=function(v){return dH(l.S.get(),v)}}; pQC=function(T,Q,k,l,v,L,q){if(!k.prefetchModeConfig)return new F("AdPlacementConfig for Live Prefetch is missing prefetch_config");k=k.prefetchModeConfig;l*=1E3;var Y=[];if(!k.breakLengthMs)return new F("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var U=g.B(k.breakLengthMs),R=U.next();!R.done;R=U.next())if(R=R.value,Number(R)>0){var Z=l+Number(k.startTimeOffsetMs),f=Z+Number(k.cacheFetchSmearingDurationMs);R={hp:new Cb(f,f+Number(R)),BY:!1,D6:new Cb(Math.floor(Z+Math.random()* Number(k.cacheFetchSmearingDurationMs)),f),cueProcessedMs:l?l:Z};Z=[];Z.push(new O9({}));f=[];f.push(new qA(T.T));f.push(new ULb(T.T));q&&Z.push(new SE({}));Y.push(L1(T,Q,v,R,L,Z,f))}return Y}; L1=function(T,Q,k,l,v,L,q){L=L===void 0?[]:L;var Y=lE(T.S.get(),"SLOT_TYPE_AD_BREAK_REQUEST");q||(q=[],l.D6&&l.D6.start!==l.hp.start&&q.push(new jg(T.T,k,new Cb(l.D6.start,l.hp.start),!1)),q.push(new jg(T.T,k,new Cb(l.hp.start,l.hp.end),l.BY)));l={getAdBreakUrl:Q.getAdBreakUrl,xQ:l.hp.start,i$:l.hp.end,cueProcessedMs:l.cueProcessedMs};Q=new RB(T.T,Y);L=[new wn(l)].concat(g.ZH(L));return{slotId:Y,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:q, slotExpirationTriggers:[new L7(T.T,k),new YK(T.T,Y),new UR(T.T,Y)],Ik:"core",clientMetadata:new eE(L),adSlotLoggingData:v}}; Ii5=function(T,Q,k){var l=[];k=g.B(k);for(var v=k.next();!v.done;v=k.next())l.push(muI(T,Q,v.value));return l}; muI=function(T,Q,k){return k.triggeringSlotId!=null&&k.triggeringSlotId===T?k.clone(Q):k}; MZH=function(T,Q,k,l,v){return hnf(T,Q,k,l,v)}; sW5=function(T,Q,k,l){var v=lE(T.S.get(),"SLOT_TYPE_IN_PLAYER");return hnf(T,v,Q,k,l)}; hnf=function(T,Q,k,l,v){var L=new Fk(T.T,k),q=[new MA(T.T,Q)];T=[new YK(T.T,Q),new L7(T.T,l)];return{slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:q,slotExpirationTriggers:T,Ik:"core",clientMetadata:new eE([new XN(v({slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:L,slotFulfillmentTriggers:q,slotExpirationTriggers:T},k))]),adSlotLoggingData:void 0}}; u2T=function(T,Q,k,l,v,L){var q=lE(T.S.get(),"SLOT_TYPE_PLAYER_BYTES"),Y=lE(T.S.get(),"SLOT_TYPE_IN_PLAYER"),U=xd(T.S.get(),"LAYOUT_TYPE_SURVEY",Y);l=Ss(T,Q,k,l);var R=[new MA(T.T,q)];k=[new YK(T.T,q),new L7(T.T,k),new $J(T.T,U)];if(l instanceof F)return l;Y=L({slotId:q,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:l,slotFulfillmentTriggers:R,slotExpirationTriggers:k},{slotId:Y,layoutId:U});L=Y.qKK;Y=Y.gx;return[{slotId:q,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:DD(T,Q,q,l),slotFulfillmentTriggers:aA(T,Q,q,R),slotExpirationTriggers:k,Ik:"core",clientMetadata:new eE([new XN(L),new Pz(u1(Q)),new tj({qp:T.qp(Q)})]),adSlotLoggingData:v},Y]}; u1=function(T){return T.kind==="AD_PLACEMENT_KIND_START"}; KQb=function(T,Q,k,l,v){v=v?v:lE(T.S.get(),"SLOT_TYPE_IN_PLAYER");k=new Fk(T.T,k);var L=[new MA(T.T,v)];T=[new L7(T.T,Q),new YK(T.T,v)];return{slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:L,slotExpirationTriggers:T,Ik:"core",clientMetadata:new eE([new XN(l({slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:k,slotFulfillmentTriggers:L,slotExpirationTriggers:T}))])}}; xgT=function(T,Q,k,l){var v=lE(T.S.get(),"SLOT_TYPE_PLAYER_UNDERLAY");k=new Fk(T.T,k);var L=[new MA(T.T,v)];T=[new L7(T.T,Q),new YK(T.T,v)];return{slotId:v,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:L,slotExpirationTriggers:T,Ik:"core",clientMetadata:new eE([new XN(l({slotId:v,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:k,slotFulfillmentTriggers:L,slotExpirationTriggers:T}))])}}; AlT=function(T,Q,k,l,v,L,q){var Y=lE(T.S.get(),"SLOT_TYPE_IN_PLAYER"),U=xd(T.S.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Y);l=sHg(T,l,L,q,U);if(l instanceof F)return l;q=[new MA(T.T,Y)];v=[new L7(T.T,L),new MA(T.T,v),new f7(T.T,v)];k=Q0(k,{slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:l,slotFulfillmentTriggers:q,slotExpirationTriggers:v});T=T.L.get();L={layoutId:U,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Ik:"core"};Q={layoutId:U,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", EG:new Map,layoutExitNormalTriggers:[new so5(T.T,U,Q.durationMs)],layoutExitSkipTriggers:[new CUb(T.T,U,Q.durationMs)],uC:[new SHJ(T.T,U)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ik:"core",clientMetadata:new eE([new cz(Q)]),ZP:k(L)};return{slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:l,slotFulfillmentTriggers:q,slotExpirationTriggers:v,clientMetadata:new eE([new XN(Q)])}}; m9y=function(T,Q,k,l,v,L){Q=Ss(T,Q,k,l);if(Q instanceof F)return Q;var q=Q instanceof jg?new mLb(T.T,k,Q.T):null;l=lE(T.S.get(),"SLOT_TYPE_IN_PLAYER");var Y=[new MA(T.T,l)];T=[new L7(T.T,k),new YK(T.T,l)];L=L({slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:Y,slotExpirationTriggers:T},q);return L instanceof Jj?new F(L):{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:Y,slotExpirationTriggers:T, Ik:"core",clientMetadata:new eE([new XN(L)]),adSlotLoggingData:v}}; fnC=function(T,Q,k,l){var v=lE(T.S.get(),"SLOT_TYPE_IN_PLAYER"),L=new WE(T.T,Q),q=[new Zw(T.T,v)];T=[new L7(T.T,Q),new YK(T.T,v)];return{slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:q,slotExpirationTriggers:T,Ik:"core",clientMetadata:new eE([new XN(l({slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:L,slotFulfillmentTriggers:q,slotExpirationTriggers:T}))]),adSlotLoggingData:k}}; GUH=function(T,Q,k,l){var v=lE(T.S.get(),"SLOT_TYPE_IN_PLAYER");k=new Fk(T.T,k);var L=[new MA(T.T,v)],q=[new YK(T.T,v),new L7(T.T,Q)];L={slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:k,slotFulfillmentTriggers:L,slotExpirationTriggers:q};return{slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:[new MA(T.T,v)],slotExpirationTriggers:[new L7(T.T,Q),new YK(T.T,v)],Ik:"core",clientMetadata:new eE([new XN(l(L))])}}; Rby=function(T,Q,k,l,v){var L=lE(T.S.get(),"SLOT_TYPE_IN_PLAYER");k=new en(T.T,l,k);l=[new MA(T.T,L)];T=[new L7(T.T,Q)];return{slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:l,slotExpirationTriggers:T,Ik:"core",clientMetadata:new eE([new XN(v({slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:k,slotFulfillmentTriggers:l,slotExpirationTriggers:T}))])}}; LQb=function(T,Q,k,l,v,L){var q=lE(T.S.get(),Q);return CQ(T,q,Q,new Fk(T.T,l),[new L7(T.T,k),new YK(T.T,q),new EW(T.T,l,["error"])],v,L)}; vl6=function(T,Q,k,l,v,L,q){var Y=lE(T.S.get(),Q);return CQ(T,Y,Q,new EW(T.T,v,["normal"]),[new L7(T.T,k),new YK(T.T,Y),new EW(T.T,l,["error"])],L,q)}; jVH=function(T,Q,k,l,v){var L=lE(T.S.get(),Q);return CQ(T,L,Q,new WE(T.T,k),[new L7(T.T,k),new YK(T.T,L)],l,v)}; Yaf=function(T,Q,k,l,v){k=k?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var L=lE(T.S.get(),k);Q=new WE(T.T,Q);var q=[new MA(T.T,L)];T=[new YK(T.T,L)];return{slotId:L,slotType:k,slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:q,slotExpirationTriggers:T,Ik:"core",clientMetadata:new eE([new XN(v({slotId:L,slotType:k,slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:q,slotExpirationTriggers:T}))]),adSlotLoggingData:l}}; C36=function(T,Q,k,l){var v=lE(T.S.get(),"SLOT_TYPE_PLAYER_BYTES"),L=new QM(T.T),q=[new Zw(T.T,v)];T=[new L7(T.T,Q)];return{slotId:v,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:q,slotExpirationTriggers:T,Ik:"core",clientMetadata:new eE([new XN(l({slotId:v,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:L,slotFulfillmentTriggers:q,slotExpirationTriggers:T})),new SE({})]),adSlotLoggingData:k}}; bTt=function(T,Q){return t6I(T.Qq.get())?new EW(T.T,Q,["normal","error","skipped"]):new EW(T.T,Q,["normal"])}; DgI=function(T,Q,k,l,v){Q=bTt(T,Q);T=ch(T,Q,k);v=v({slotId:T.slotId,slotType:T.slotType,slotPhysicalPosition:T.slotPhysicalPosition,slotEntryTrigger:T.slotEntryTrigger,slotFulfillmentTriggers:T.slotFulfillmentTriggers,slotExpirationTriggers:T.slotExpirationTriggers,Ik:T.Ik});return v instanceof F?v:{DK:Object.assign({},T,{clientMetadata:new eE([new XN(v.layout)]),adSlotLoggingData:l}),GH:v.GH}}; aCC=function(T,Q,k,l,v,L,q){k=r6t(T,Q,k,l);if(k instanceof F)return k;q=q({slotId:k.slotId,slotType:k.slotType,slotPhysicalPosition:k.slotPhysicalPosition,slotEntryTrigger:k.slotEntryTrigger,slotFulfillmentTriggers:k.slotFulfillmentTriggers,slotExpirationTriggers:k.slotExpirationTriggers,Ik:k.Ik});if(q instanceof F)return q;l=[new Pz(u1(Q)),new XN(q.layout),new tj({qp:T.qp(Q)})];L&&l.push(new aH({}));return{DK:{slotId:k.slotId,slotType:k.slotType,slotPhysicalPosition:k.slotPhysicalPosition,slotEntryTrigger:DD(T, Q,k.slotId,k.slotEntryTrigger),slotFulfillmentTriggers:aA(T,Q,k.slotId,k.slotFulfillmentTriggers),slotExpirationTriggers:k.slotExpirationTriggers,Ik:k.Ik,clientMetadata:new eE(l),adSlotLoggingData:v},GH:q.GH}}; DD=function(T,Q,k,l){return T.Qq.get().Zg(u1(Q))?new OW(T.T,k):l}; aA=function(T,Q,k,l){return T.Qq.get().Zg(u1(Q))?[new Zw(T.T,k)]:l}; ch=function(T,Q,k){var l=lE(T.S.get(),"SLOT_TYPE_PLAYER_BYTES"),v=[new MA(T.T,l)];T=[new YK(T.T,l),new L7(T.T,k)];return{slotId:l,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:v,slotExpirationTriggers:T,Ik:"core"}}; r6t=function(T,Q,k,l){Q=Ss(T,Q,k,l);return Q instanceof F?Q:ch(T,Q,k)}; RP5=function(T,Q,k,l,v,L){var q=lE(T.S.get(),"SLOT_TYPE_FORECASTING");Q=Ss(T,Q,k,l);if(Q instanceof F)return Q;l=[new MA(T.T,q)];T=[new YK(T.T,q),new L7(T.T,k)];return{slotId:q,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:l,slotExpirationTriggers:T,Ik:"core",clientMetadata:new eE([new XN(L({slotId:q,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:l,slotExpirationTriggers:T}))]),adSlotLoggingData:v}}; S95=function(T,Q,k,l,v){var L=!Q.hideCueRangeMarker;switch(Q.kind){case "AD_PLACEMENT_KIND_START":return new WE(T.T,k);case "AD_PLACEMENT_KIND_MILLISECONDS":return T=iGC(Q,l),T instanceof F?T:v(T.hp,L);case "AD_PLACEMENT_KIND_END":return new JQ(T.T,k,L);default:return new F("Cannot construct entry trigger",{kind:Q.kind})}}; sHg=function(T,Q,k,l,v){return S95(T,Q,k,l,function(L,q){return new GCb(T.T,k,L,q,v)})}; Ss=function(T,Q,k,l){return S95(T,Q,k,l,function(v,L){return new jg(T.T,k,v,L)})}; CQ=function(T,Q,k,l,v,L,q){T=[new Zw(T.T,Q)];return{slotId:Q,slotType:k,slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:T,slotExpirationTriggers:v,Ik:"core",clientMetadata:new eE([new XN(q({slotId:Q,slotType:k,slotPhysicalPosition:1,Ik:"core",slotEntryTrigger:l,slotFulfillmentTriggers:T,slotExpirationTriggers:v}))]),adSlotLoggingData:L}}; BC=function(T,Q){g.x.call(this);this.Qq=T;this.T=Q;this.eventCount=0}; zE=function(T,Q,k,l){BC.call(this,T,Q);this.Qq=T;this.l9=k;this.context=l}; Xv=function(){this.T=new Map}; wq=function(T){this.T="pending";this.S=[];this.L=[];try{T(this.Y.bind(this),this.reject.bind(this))}catch(Q){this.reject(Q)}}; C2H=function(){var T,Q;return{AM:new wq(function(k,l){T=k;Q=l}), resolve:T,reject:Q}}; A1=function(T){return dq(T)?T:NZ(T)?new wq(function(Q,k){T.then(Q,k)}):new wq(function(Q){Q(T)})}; b8=function(T){return new wq(function(Q,k){k(T)})}; rq=function(T){try{return A1(T())}catch(Q){return b8(Q)}}; DQ=function(T,Q,k){var l=C2H(),v=l.AM,L=l.resolve,q=l.reject;T.S.push(function(Y){if(Q)try{var U=Q(Y);L(U)}catch(R){q(R)}else L(Y)}); T.L.push(function(Y){if(k)try{var U=k(Y);L(U)}catch(R){q(R)}else q(Y)}); cC(T);return v}; ar=function(T,Q){return DQ(T,void 0,Q)}; Bnb=function(T,Q){DQ(T,function(k){return DQ(A1(Q()),function(){return k})},function(k){return DQ(A1(Q()),function(){return b8(k)})})}; cC=function(T){if(T.T==="fulfilled"){var Q=T.S;T.S=[];T.L=[];Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next())k=k.value,k(T.result)}else if(T.T==="rejected")for(Q=T.L,T.S=[],T.L=[],Q=g.B(Q),k=Q.next();!k.done;k=Q.next())k=k.value,k(T.error)}; u8=function(T,Q){return zn5(Q.call(T))}; nQ=function(T){return function k(){return PT(k,function(l){if(l.S==1)return g.Xg(l,2),g.c(l,{AM:A1(T)},4);if(l.S!=2)return l.return(l.T);g.aI(l);return g.n5(l,0)})}()}; zn5=function(T){return rq(function(){return KQ(T,T.next())})}; KQ=function(T,Q){return Q.done?A1(Q.value):ar(DQ(Q.value.AM,function(k){return KQ(T,T.next(k))}),function(k){return KQ(T,T.throw(k))})}; xS=function(T,Q){if(T.length===0)return A1(NaN);var k=C2H(),l=k.AM,v=k.resolve,L=T.length;T=g.B(T.entries());var q=T.next();for(k={};!q.done;k={Jg:void 0},q=T.next()){var Y=g.B(q.value);q=Y.next().value;Y=Y.next().value;k.Jg=q;Bnb(Y,function(U){return function(){l.T==="pending"&&(Xzg(Q)&&Q(U.Jg)&&l.T==="pending"?v(U.Jg):(--L,L===0&&v(NaN)))}}(k))}return l}; PC=function(T){return T.map(function(Q){return A1(Q)})}; t1=function(T){var Q=T.hours||0;var k=T.minutes||0,l=T.seconds||0;Q=l+k*60+Q*3600+(T.days||0)*86400+(T.weeks||0)*604800+(T.months||0)*2629800+(T.years||0)*31557600;Q<=0?Q={hours:0,minutes:0,seconds:0}:(T=Q,Q=Math.floor(T/3600),T%=3600,k=Math.floor(T/60),l=Math.floor(T%60),Q={hours:Q,minutes:k,seconds:l});var v=Q.hours===void 0?0:Q.hours;k=Q.minutes===void 0?0:Q.minutes;T=Q.seconds===void 0?0:Q.seconds;l=v>0;Q=[];if(l){v=(new Intl.NumberFormat("en-u-nu-latn")).format(v);var L=["fr"],q="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(" "); v="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(HC)?v.replace(",","\u00a0"):L.includes(HC)?v.replace(",","\u202f"):q.includes(HC)?v.replace(",","."):v;Q.push(v)}l=l===void 0?!1:l;k=(["af","be","lt"].includes(HC)||l)&&k<10?wz6().format(k):(new Intl.NumberFormat("en-u-nu-latn")).format(k);Q.push(k);k=wz6().format(T);Q.push(k);k=":";"da fi id si sr sr-Latn".split(" ").includes(HC)&&(k=".");return Q.join(k)}; wz6=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; duy=function(T,Q){var k,l;T=((k=T.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(l=k.videoAuthorizationToken)==null?void 0:l.credentialTransferTokens)||[];for(k=0;kQ;T=k}else T=!1;return T}; g.ld=function(T,Q){return T.fz+"timedtext_video?ref=player&v="+Q.videoId}; g.$ug=function(T){var Q=this;this.videoData=T;T={};this.T=(T.c1a=function(){var k=[];if(g.jX.isInitialized()){var l="";Q.videoData&&Q.videoData.d_&&(l=Q.videoData.d_+("&r1b="+Q.videoData.clientPlaybackNonce));var v={};l=(v.atr_challenge=l,v);cP("bg_v",void 0,"player_att");(l=WUT(l))?(cP("bg_s",void 0,"player_att"),k.push("r1a="+l)):(cP("bg_e",void 0,"player_att"),k.push("r1c=2"))}else cP("bg_e",void 0,"player_att"),window.trayride||window.botguard?k.push("r1c=1"):k.push("r1c=4");k.push("r1d="+g.jX.getState()); return k.join("&")},T.c6a=function(k){return"r6a="+(Number(k.c)^yi())},T.c6b=function(k){return"r6b="+(Number(k.c)^Number(g.$i("CATSTAT",0)))},T); this.videoData&&this.videoData.d_?this.wA=QI(this.videoData.d_):this.wA={}}; g.Jjb=function(T){if(T.videoData&&T.videoData.d_){for(var Q=[T.videoData.d_],k=g.B(Object.keys(T.T)),l=k.next();!l.done;l=k.next())l=l.value,T.wA[l]&&T.T[l]&&(l=T.T[l](T.wA))&&Q.push(l);return Q.join("&")}return null}; g.o3=function(T,Q){pzg(T,{SWB:g.jj(Q.experiments,"bg_vm_reinit_threshold"),cspNonce:Q.cspNonce,fz:Q.fz||""})}; en5=function(){var T=XMLHttpRequest.prototype.fetch;return!!T&&T.length===3}; FUC=function(T){T=T[M[19]](M[29]);vr[M[67]](T,12);vr[M[2]](T,64);vr[M[12]](T,2);vr[M[67]](T,26);return T[M[60]](M[29])}; ip6=function(T,Q){eZ(T,2,Q.Ly,LP,3);eZ(T,3,Q.innertubeRequest,Ee5,3);$l(T,4,Q.onesieUstreamerConfig);$l(T,9,Q.Vl);eZ(T,10,Q.iU,qQ,3);eZ(T,15,Q.reloadPlaybackParams,yjC,3)}; T26=function(T,Q){eZ(T,1,Q.formatId,gt,3);px(T,2,Q.startTimeMs);px(T,3,Q.durationMs);px(T,4,Q.CB);px(T,5,Q.iH);eZ(T,9,Q.Jp6,VEb,3);eZ(T,11,Q.eC6,MQ,1);eZ(T,12,Q.AG,MQ,1)}; QDX=function(T,Q){Jl(T,1,Q.videoId);px(T,2,Q.lmt)}; VEb=function(T,Q){if(Q.iP)for(var k=0;k>31));px(T,16,Q.sC);px(T,17,Q.detailedNetworkType);px(T,18,Q.SL);px(T,19,Q.Tf);px(T,21,Q.Eej);px(T,23,Q.fZ);px(T,28,Q.tG);px(T,29,Q.w1e);px(T,34,Q.visibility);k=Q.playbackRate;if(k!==void 0){var l=new ArrayBuffer(4);(new Float32Array(l))[0]=k;k=(new Uint32Array(l))[0];if(k!==void 0)for(Oj(T,285),tl(T,4),l=0;l<4;)T.view.setUint8(T.pos,k&255),k>>=8,T.pos+=1,l+=1}px(T,36,Q.vS); eZ(T,38,Q.mediaCapabilities,vd5,3);px(T,39,Q.VkK);px(T,40,Q.HU);px(T,44,Q.playerState);W3(T,46,Q.pF);px(T,48,Q.Ft);px(T,50,Q.h1);px(T,51,Q.NU);px(T,54,Q.GG);if(Q.Cb)for(k=0;k>31));Jl(T,2,Q.message)}; fXb=function(T,Q){px(T,1,Q.clientState);eZ(T,2,Q.kRe,R35,1)}; UoJ=function(T,Q){$l(T,1,Q.ZYk);eZ(T,2,Q.Jhd,ZF5,3);eZ(T,3,Q.coldStartInfo,fXb,3)}; YIH=function(T,Q){px(T,1,Q.type);$l(T,2,Q.value)}; MjT=function(T,Q){Jl(T,1,Q.hl);Jl(T,12,Q.deviceMake);Jl(T,13,Q.deviceModel);px(T,16,Q.clientName);Jl(T,17,Q.clientVersion);Jl(T,18,Q.osName);Jl(T,19,Q.osVersion)}; G4X=function(T,Q){Jl(T,1,Q.name);Jl(T,2,Q.value)}; UV=function(T,Q){Jl(T,1,Q.url);if(Q.lY)for(var k=0;k0&&!(F_f()>(0,g.XY)()-T*1E3))return 0;T=g.cy("yt-player-quality");if(typeof T==="string"){if(T=g.wC[T],T>0)return T}else if(T instanceof Object)return T.quality;return 0}; I3=function(){var T=g.cy("yt-player-proxima-pref");return T==null?null:T}; Tvy=function(){var T=g.cy("yt-player-quality");if(T instanceof Object&&T.quality&&T.previousQuality){if(T.quality>T.previousQuality)return 1;if(T.quality0&&Q[0]?T.getAutoplayPolicy(Q[0]):T.getAutoplayPolicy("mediaelement");if(qPJ[k])return qPJ[k]}}catch(l){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; XQ=function(T){return T.ek||T.dO||T.mutedAutoplay}; gpt=function(T,Q){return XQ(T)?Q!==1&&Q!==2&&Q!==0?"AUTOPLAY_STATUS_UNAVAILABLE":T.BK?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; MBt=function(T,Q,k){var l=Q.G();T.thirdParty||(T.thirdParty={});l.ancestorOrigins&&(T.thirdParty.embeddedPlayerContext=Object.assign({},T.thirdParty.embeddedPlayerContext,{ancestorOrigins:l.ancestorOrigins}));l.V("embeds_enable_autoplay_and_visibility_signals")&&(l.XU!=null&&(T.thirdParty.embeddedPlayerContext=Object.assign({},T.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(l.XU)})),l.U1&&(T.thirdParty.embeddedPlayerContext=Object.assign({},T.thirdParty.embeddedPlayerContext,{visibilityFractionSource:l.U1})), T.thirdParty.embeddedPlayerContext=Object.assign({},T.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:zq(),autoplayIntended:XQ(Q),autoplayStatus:gpt(Q,k)}))}; YPu=function(T){var Q=[];T=g.B(T.split(","));for(var k=T.next();!k.done;k=T.next()){var l=k.value;l&&((k=l.startsWith("!"))&&(l=l.substring(1)),l=l.split("-"),l.length<3||Q.push({Pu:l[0],platform:l[1],deviceVersion:l[2],QX:k}))}return Q}; ZBC=function(T){return YPu(T).map(function(Q){return{deviceInterface:UPT[RFu[Q.Pu]]||0,deviceVersion:Q.deviceVersion||"",isSleeping:Q.QX}})}; g.wt=function(T,Q){this.id=T;this.MY=Q;this.captionTracks=[];this.L=this.Y=null;this.xtags="";this.N=!1;this.T=null;this.S="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";T=this.MY.id.split(".");T.length>1&&(this.N=T[1]==="2")}; dt=function(T,Q,k,l,v){this.S=T;this.T=Q;this.L=k;this.reason=l;this.qY=v===void 0?0:v}; g.NQ=function(T,Q,k,l){return new dt(g.wC[T]||0,g.wC[Q]||0,k,l)}; bd=function(T){if(A_&&T.qY)return!1;var Q=g.wC.auto;return T.S===Q&&T.T===Q}; cr=function(T){return rt[T.T||T.S]||"auto"}; fJf=function(T,Q){Q=g.wC[Q];return T.S<=Q&&(!T.T||T.T>=Q)}; Dc=function(T){return"["+T.S+"-"+T.T+", override: "+(T.L+", reason: "+T.reason+"]")}; a3=function(T,Q,k){this.videoInfos=T;this.T=Q;this.audioTracks=[];if(this.T){T=new Set;k==null||k({ainfolen:this.T.length});Q=g.B(this.T);for(var l=Q.next();!l.done;l=Q.next())if(l=l.value,!l.MY||T.has(l.MY.id)){var v=void 0,L=void 0,q=void 0;(q=k)==null||q({atkerr:!!l.MY,itag:l.itag,xtag:l.T,lang:((v=l.MY)==null?void 0:v.name)||"",langid:((L=l.MY)==null?void 0:L.id)||""})}else v=new g.wt(l.id,l.MY),T.add(l.MY.id),this.audioTracks.push(v);k==null||k({atklen:this.audioTracks.length})}}; ud=function(){g.x.apply(this,arguments);this.T=null}; hFC=function(T,Q,k,l,v,L,q){if(T.T)return T.T;var Y={},U=new Set,R={};if(nP(l)){for(var Z in l.T)l.T.hasOwnProperty(Z)&&(T=l.T[Z],R[T.info.yR]=[T.info]);return R}Z=G1X(Q,l,Y);L&&v({aftsrt:KP(Z)});for(var f={},G=g.B(Object.keys(Z)),m=G.next();!m.done;m=G.next()){m=m.value;for(var I=g.B(Z[m]),z=I.next();!z.done;z=I.next()){z=z.value;var w=z.itag,r=void 0,A=m+"_"+(((r=z.video)==null?void 0:r.fps)||0);f.hasOwnProperty(A)?f[A]===!0?R[m].push(z):Y[w]=f[A]:(r=xg(Q,z,k,l.isLive,U),r!==!0?(q.add(m),Y[w]=r, r==="disablevp9hfr"&&(f[A]="disablevp9hfr")):(R[m]=R[m]||[],R[m].push(z),f[A]=!0))}}L&&v({bfflt:KP(R)});for(var D in R)R.hasOwnProperty(D)&&(l=D,R[l]&&R[l][0].bK()&&(R[l]=R[l],R[l]=mPb(Q,R[l],Y),R[l]=IJf(R[l],Y)));L&&Object.keys(Y).length>0&&v({rjr:RE(Y)});Q=g.B(U.values());for(l=Q.next();!l.done;l=Q.next())(l=k.Y.get(l.value))&&--l.k5;L&&v({aftflt:KP(R)});T.T=g.Ts(R,function(K){return!!K.length}); return T.T}; SPu=function(T,Q,k,l,v,L,q,Y){Y=Y===void 0?!1:Y;if(Q.gt&&q&&q.length>1&&!(Q.ID>0||Q.j)){for(var U=Q.S||!!v,R=U&&Q.OG?L:void 0,Z=G1X(Q,l),f=[],G=[],m={},I=0;I0&&G&&v&&(Z=[q,k],D=v.concat(G).filter(function(K){return K})); if(D.length&&!Q.Ql){t_(D,Z);if(U){U=[];Q=g.B(D);for(l=Q.next();!l.done;l=Q.next())U.push(l.value.itag);L({hbdfmt:U.join(".")})}return rV(new a3(D,T,R))}D=rMH(Q);D=g.sA(D,Y);if(!D){if(f[q])return L=f[q],t_(L),rV(new a3(L,T,R));U&&L({novideo:1});return bC()}Q.t6&&(D==="1"||D==="1h")&&f[k]&&(q=OV(f[D]),Z=OV(f[k]),Z>q?D=k:Z===q&&cMH(f[k])&&(D=k));D==="9"&&f.h&&OV(f.h)>OV(f["9"])&&(D="h");Q.QR&&l.isLive&&D==="("&&f.H&&OV(f["("])<1440&&(D="H");U&&L({vfmly:pP(D)});Q=f[D];if(!Q.length)return U&&L({novfmly:pP(D)}), bC();t_(Q);return rV(new a3(Q,T,R))}; Bv5=function(T,Q){var k=!(!T.m&&!T.M),l=!(!T.mac3&&!T.MAC3),v=!(!T.meac3&&!T.MEAC3);T=!(!T.i&&!T.I);Q.Ah=T;return k||l||v||T}; cMH=function(T){T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())if(Q=Q.value,Q.itag&&DPH.has(Q.itag))return!0;return!1}; Xk5=function(T){T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())if(Q.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; pP=function(T){switch(T){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return T}}; KP=function(T){var Q=[],k;for(k in T)if(T.hasOwnProperty(k)){var l=k;Q.push(pP(l));l=g.B(T[l]);for(var v=l.next();!v.done;v=l.next())Q.push(v.value.itag)}return Q.join(".")}; CEu=function(T,Q,k,l,v,L){var q={},Y={};g.VJ(Q,function(U,R){U=U.filter(function(Z){var f=Z.itag;if(!Z.jY)return Y[f]="noenc",!1;if(L.Gg&&Z.yR==="(h"&&L.Tg)return Y[f]="lichdr",!1;if(!T.N&&Z.yR==="1e")return Y[f]="noav1enc",!1;if(Z.yR==="("||Z.yR==="(h"){if(T.L&&k&&k.flavor==="widevine"){var G=Z.mimeType+"; experimental=allowed";(G=!!Z.jY[k.flavor]&&!!k.T[G])||(Y[f]=Z.jY[k.flavor]?"unspt":"noflv");return G}if(!Wr(T,$g.CRYPTOBLOCKFORMAT)&&!T.i9||T.hj)return Y[f]=T.hj?"disvp":"vpsub",!1}return k&&Z.jY[k.flavor]&& k.T[Z.mimeType]?!0:(Y[f]=k?Z.jY[k.flavor]?"unspt":"noflv":"nosys",!1)}); U.length&&(q[R]=U)}); l&&Object.entries(Y).length&&v({rjr:RE(Y)});return q}; IJf=function(T,Q){var k=so(T,function(l,v){return v.video.fps>32?Math.min(l,v.video.width):l},Infinity); k32||l.video.widthT.B)return"max"+T.B;if(T.f_&&Q.yR==="h"&&Q.video&&Q.video.qualityOrdinal>1080)return"blkhigh264";if(Q.yR==="(h"&&!k.C)return"enchdr";if((l===void 0?0:l)&&Ku(Q)&&!T.Bd)return"blk51live";if((Q.yR==="MAC3"||Q.yR==="mac3")&&!T.Y)return"blkac3";if((Q.yR==="MEAC3"||Q.yR==="meac3")&&!T.N)return"blkeac3";if(Q.yR==="M"||Q.yR==="m")return"blkaac51"; if((Q.yR==="so"||Q.yR==="sa")&&!T.z9)return"blkamb";if(!T.Gg&&ucI(Q)&&(!k.N||Q.yR!=="1e"))return"cbc";if(!k.N&&ucI(Q)&&Q.yR==="1e")return"cbcav1";if((Q.yR==="i"||Q.yR==="I")&&!T.Ig)return"blkiamf";var L;if(T.d5&&((L=Q.audio)==null?void 0:L.S)===!0)return"blkvbcabr";var q,Y;if(T.u9&&(Q.yR==="1"||Q.yR==="1h"||k.N&&Q.yR==="1e")&&((q=Q.video)==null?0:q.qualityOrdinal)&&((Y=Q.video)==null?void 0:Y.qualityOrdinal)>T.u9)return"av1cap";l=k.Y.get(Q.yR);if(!T.h3&&l&&l.k5>0)return v.add(Q.yR),"byerr";var U; if((U=Q.video)==null?0:U.fps>32){if(!k.xm&&!Wr(k,$g.FRAMERATE))return"capHfr";if(T.K_&&Q.video.qualityOrdinal>=4320)return"blk8khfr";if(cj(Q)&&T.YP&&Q.jY&&Q.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(T.qY&&Q.qY>T.qY)return"ratecap";if(T.hj>0&&Q.bK()&&Q.video.height>T.hj)return"mvhcap";T=aJt(k,Q);return T!==!0?T:!0}; t_=function(T,Q){Q=Q===void 0?[]:Q;g.JT(T,function(k,l){var v=l.qY-k.qY;if(!k.bK()||!l.bK())return v;var L=l.video.height*l.video.width-k.video.height*k.video.width;!L&&Q&&Q.length>0&&(k=Q.indexOf(k.yR)+1,l=Q.indexOf(l.yR)+1,L=k===0||l===0?l||-1:k-l);L||(L=v);return L})}; g.J_=function(T,Q){this[M[22]]=T;this[M[13]]=Q===void 0?!1:Q;this[M[30]]=this[M[31]]=this[M[28]]=M[29];this[M[5]]={};this[M[15]]=M[29]}; FQ=function(T){eX(T);return T[M[30]]}; EV=function(T){return T[M[22]]?T[M[22]][M[9]](M[41]):T[M[28]]===M[41]}; uS5=function(T){eX(T);return g.jP(T[M[5]],function(Q){return Q!==null})}; yp=function(T){eX(T);var Q=decodeURIComponent(T[M[20]](M[42])||M[29])[M[19]](M[38]);return T[M[31]]===M[18]&&Q[M[24]]>1&&!!Q[1]}; id=function(T,Q){Q=Q===void 0?!1:Q;eX(T);if(T[M[31]]!==M[18]){var k=T[M[3]]();k[M[10]](M[82],M[0]);return k}var l=T[M[76]]();k=new g.lN(l);var v=T[M[20]](M[78]),L=decodeURIComponent(T[M[20]](M[42])||M[29])[M[19]](M[38]);if(v&&L&&L[M[24]]>1&&L[1])return l=k.T,T=l[M[53]](/^[^.]*/,M[29]),g.v0(k,(l[M[14]](M[77])===0?M[77]:M[50])+v+M[68]+L[1]+T),k=new g.J_(k[M[54]]()),k[M[10]](M[49],M[0]),k;if(Q)return k=T[M[3]](),k[M[10]](M[49],M[0]),k;v=k.T[M[75]](M[6]);k.T[M[75]](M[34])?(g.v0(k,M[25]),l=k[M[54]]()): k.T[M[75]](M[61])?(g.v0(k,M[71]),l=k[M[54]]()):(k=Xx5(l),t0(k)&&(l=k));k=new g.J_(l);k[M[10]](M[36],M[0]);v&&k[M[10]](M[35],M[85]);return k}; eX=function(T){if(T[M[22]]){if(!(t0(T[M[22]])||T[M[22]][M[9]](M[41])||T[M[22]][M[9]](M[64])||T[M[22]][M[9]](M[58])))throw new g.Wy(M[91],T[M[22]]);var Q=g.RZ(T[M[22]]);T[M[28]]=Q.N;T[M[30]]=Q.T+(Q.L!=null?M[66]+Q.L:M[29]);var k=Q.S;if(k[M[9]](M[18]))T[M[31]]=M[18],k=k[M[21]](14);else if(k[M[9]](M[52]))T[M[31]]=M[52],k=k[M[21]](13);else if(k[M[9]](M[48])){var l=k[M[14]](M[62],12),v=k[M[14]](M[62],l+1);l>0&&v>0?(T[M[31]]=k[M[21]](0,v),k=k[M[21]](v+1)):(T[M[31]]=k,k=M[29])}else T[M[31]]=k,k=M[29];l= T[M[5]];T[M[5]]=npb(k);Object[M[40]](T[M[5]],KjJ(Q.Y.toString()));Object[M[40]](T[M[5]],l);T[M[5]][M[59]]===M[90]&&(delete T[M[5]][M[59]],T[M[31]]+=M[81]);T[M[22]]=M[29];T[M[15]]=M[29];T[M[13]]&&(eX(T),Q=T[M[5]][M[80]]||null)&&(Q=xPb[0](Q),T[M[10]](M[80],Q))}}; PE5=function(T){eX(T);var Q=T[M[28]]+(T[M[28]]?M[79]:M[70])+T[M[30]]+T[M[31]];if(uS5(T)){var k=[];g.VJ(T[M[5]],function(l,v){l!==null&&k[M[32]](v+M[65]+l)}); Q+=M[87]+k[M[60]](M[47])}return Q}; npb=function(T){T=T[M[19]](M[62]);var Q=0;T[0]||Q++;for(var k={};Q0?HBt(Q,l[M[21]](0,v),l[M[21]](v+1)):l&&(Q[l]=M[29])}return Q}; HBt=function(T,Q,k){if(Q===M[23]){var l;(l=k[M[14]](M[65]))>=0?(Q=M[17]+k[M[21]](0,l),k=k[M[21]](l+1)):(l=k[M[14]](M[1]))>=0&&(Q=M[17]+k[M[21]](0,l),k=k[M[21]](l+3))}T[Q]=k}; Vp=function(T){var Q=g.t(T,tB6)||T[M[84]];T={vO:!1,rI:M[29],Fq:M[29],s:M[29]};if(!Q)return T;Q=QI(Q);T[M[27]]=!0;T[M[86]]=Q[M[15]];T[M[72]]=Q[M[4]];T[M[26]]=Q[M[26]];return T}; T7=function(T,Q,k,l,v,L,q,Y,U){this.NO=T;this.startTime=Q;this.duration=k;this.ingestionTime=l;this.sourceURL=v;this.Bn=U;this.endTime=Q+k;this.T=q||0;this.range=L||null;this.pending=Y||!1;this.Bn=U||null}; g.Qn=function(){this.segments=[];this.T=null;this.S=!0;this.L=""}; OBu=function(T,Q){if(Q>T.a_())T.segments=[];else{var k=hT(T.segments,function(l){return l.NO>=Q},T); k>0&&T.segments.splice(0,k)}}; jv=function(T,Q,k,l,v){v=v===void 0?!1:v;this.data=T;this.offset=Q;this.size=k;this.type=l;this.T=(this.S=v)?0:8;this.dataOffset=this.offset+this.T}; kc=function(T){var Q=T.data.getUint8(T.offset+T.T);T.T+=1;return Q}; lx=function(T){var Q=T.data.getUint16(T.offset+T.T);T.T+=2;return Q}; ot=function(T){var Q=T.data.getInt32(T.offset+T.T);T.T+=4;return Q}; vt=function(T){var Q=T.data.getUint32(T.offset+T.T);T.T+=4;return Q}; Lo=function(T){var Q=T.data;var k=T.offset+T.T;Q=Q.getUint32(k)*4294967296+Q.getUint32(k+4);T.T+=8;return Q}; q6=function(T,Q){Q=Q===void 0?NaN:Q;if(isNaN(Q))var k=T.size;else for(k=T.T;k1?Math.ceil(v*Q):Math.floor(v*Q))}T.skip(1);k=kc(T)<<16|lx(T);if(k&256){l=k&1;v=k&4;var L=k&512,q=k&1024,Y=k&2048;k=vt(T);l&&T.skip(4);v&&T.skip(4);l=(L?4:0)+(q?4:0)+(Y?4:0);for(v=0;v1?Math.ceil(q*Q):Math.floor(q*Q)),T.skip(l)}}}; G7=function(T){T=new DataView(T.buffer,T.byteOffset,T.byteLength);return(T=g.Z8(T,0,1836476516))?g.fo(T):NaN}; QEt=function(T){var Q=g.Z8(T,0,1937011556);if(!Q)return null;Q=mu(T,Q.dataOffset+8,1635148593)||mu(T,Q.dataOffset+8,1635135537);if(!Q)return null;var k=mu(T,Q.dataOffset+78,1936995172),l=mu(T,Q.dataOffset+78,1937126244);if(!l)return null;Q=null;if(k)switch(k.skip(4),kc(k)){default:Q=0;break;case 1:Q=2;break;case 2:Q=1;break;case 3:Q=255}var v=k=null,L=null;if(l=mu(T,l.dataOffset,1886547818)){var q=mu(T,l.dataOffset,1886546020),Y=mu(T,l.dataOffset,2037673328);if(!Y&&(Y=mu(T,l.dataOffset,1836279920), !Y))return null;q&&(q.skip(4),k=ot(q)/65536,L=ot(q)/65536,v=ot(q)/65536);T=pkg(Y);T=new DataView(T.buffer,T.byteOffset+8,T.byteLength-8);return new VBC(Q,k,L,v,T)}return null}; mu=function(T,Q,k){for(;It(T,Q);){var l=hw(T,Q);if(l.type===k)return l;Q+=l.size}return null}; g.Z8=function(T,Q,k){for(;It(T,Q);){var l=hw(T,Q);if(l.type===k)return l;Q=Sv(l.type)?Q+8:Q+l.size}return null}; g.Co=function(T){if(T.data.getUint8(T.dataOffset)){var Q=T.data;T=T.dataOffset+4;Q=Q.getUint32(T)*4294967296+Q.getUint32(T+4)}else Q=T.data.getUint32(T.dataOffset+4);return Q}; hw=function(T,Q){var k=T.getUint32(Q),l=T.getUint32(Q+4);return new jv(T,Q,k,l)}; g.fo=function(T){var Q=T.data.getUint8(T.dataOffset)?20:12;return T.data.getUint32(T.dataOffset+Q)}; jE5=function(T){T=new jv(T.data,T.offset,T.size,T.type,T.S);var Q=kc(T);T.skip(7);var k=vt(T);if(Q===0){Q=vt(T);var l=vt(T)}else Q=Lo(T),l=Lo(T);T.skip(2);for(var v=lx(T),L=[],q=[],Y=0;Y122)return!1}return!0}; Sv=function(T){return T===1701082227||T===1836019558||T===1836019574||T===1835297121||T===1835626086||T===1937007212||T===1953653094||T===1953653099||T===1836475768}; kXT=function(T){T.skip(4);return{sdj:q6(T,0),value:q6(T,0),timescale:vt(T),AY9:vt(T),eventDuration:vt(T),id:vt(T),d0:q6(T),offset:T.offset}}; g.lK6=function(T){var Q=mu(T,0,1701671783);if(!Q)return null;var k=kXT(Q),l=k.sdj;k=Rt(k.d0);if(T=mu(T,Q.offset+Q.size,1701671783))if(T=kXT(T),T=Rt(T.d0),k&&T){Q=g.B(Object.keys(T));for(var v=Q.next();!v.done;v=Q.next())v=v.value,k[v]=T[v]}return k?new Uw(k,l):null}; Bt=function(T,Q){for(var k=mu(T,0,Q);k;){var l=k;l.type=1936419184;l.data.setUint32(l.offset+4,1936419184);k=mu(T,k.offset+k.size,Q)}}; g.z7=function(T,Q){for(var k=0,l=[];It(T,k);){var v=hw(T,k);v.type===Q&&l.push(v);k=Sv(v.type)?k+8:k+v.size}return l}; o9C=function(T,Q){var k=g.Z8(T,0,1937011556),l=g.Z8(T,0,1953654136);if(!k||!l||T.getUint32(k.offset+12)>=2)return null;var v=new DataView(Q.buffer,Q.byteOffset,Q.length),L=g.Z8(v,0,1937011556);if(!L)return null;Q=v.getUint32(L.dataOffset+8);l=v.getUint32(L.dataOffset+12);if(l!==1701733217&&l!==1701733238)return null;l=new WjT(T.byteLength+Q);g8(l,T,0,k.offset+12);l.data.setInt32(l.offset,2);l.offset+=4;g8(l,T,k.offset+16,k.size-16);g8(l,v,v.byteOffset+L.dataOffset+8,Q);g8(l,T,k.offset+k.size,T.byteLength- (k.offset+k.size));k=g.B([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(v=k.next();!v.done;v=k.next())v=g.Z8(T,0,v.value),l.data.setUint32(v.offset,v.size+Q);T=g.Z8(l.data,0,1953654136);l.data.setUint32(T.offset+16,2);return l.data}; v9b=function(T){var Q=g.Z8(T,0,1937011556);if(!Q)return null;var k=T.getUint32(Q.dataOffset+12);if(k!==1701733217&&k!==1701733238)return null;Q=mu(T,Q.offset+24+(k===1701733217?28:78),1936289382);if(!Q)return null;k=mu(T,Q.offset+8,1935894637);if(!k||T.getUint32(k.offset+12)!==1667392371)return null;Q=mu(T,Q.offset+8,1935894633);if(!Q)return null;Q=mu(T,Q.offset+8,1952804451);if(!Q)return null;k=new Uint8Array(16);for(var l=0;l<16;l++)k[l]=T.getInt8(Q.offset+16+l);return k}; Xo=function(T,Q){this.T=T;this.pos=0;this.start=Q||0}; w8=function(T){return T.pos>=T.T.byteLength}; r8=function(T,Q,k){var l=new Xo(k);if(!d8(l,T))return!1;l=N6(l);if(!Aw(l,Q))return!1;for(T=0;Q;)Q>>>=8,T++;Q=l.start+l.pos;var v=bx(l,!0);l=T+(l.start+l.pos-Q)+v;l=l>9?LDT(l-9,8):LDT(l-2,1);T=Q-T;k.setUint8(T++,236);for(Q=0;Qk;v++)k=k*256+no(T),l*=128;return Q?k-l:k}; D8=function(T){var Q=bx(T,!0);T.pos+=Q}; MIy=function(T){if(!Aw(T,440786851,!0))return null;var Q=T.pos;bx(T,!1);var k=bx(T,!0)+T.pos-Q;T.pos=Q+k;if(!Aw(T,408125543,!1))return null;bx(T,!0);if(!Aw(T,357149030,!0))return null;var l=T.pos;bx(T,!1);var v=bx(T,!0)+T.pos-l;T.pos=l+v;if(!Aw(T,374648427,!0))return null;var L=T.pos;bx(T,!1);var q=bx(T,!0)+T.pos-L,Y=new Uint8Array(k+12+v+q),U=new DataView(Y.buffer);Y.set(new Uint8Array(T.T.buffer,T.T.byteOffset+Q,k));U.setUint32(k,408125543);U.setUint32(k+4,33554431);U.setUint32(k+8,4294967295); Y.set(new Uint8Array(T.T.buffer,T.T.byteOffset+l,v),k+12);Y.set(new Uint8Array(T.T.buffer,T.T.byteOffset+L,q),k+12+v);return Y}; Ko=function(T){var Q=T.pos;T.pos=0;var k=1E6;d8(T,[408125543,357149030,2807729])&&(k=ct(T));T.pos=Q;return k}; Y_6=function(T,Q){var k=T.pos;T.pos=0;if(T.T.getUint8(T.pos)!==160&&!xc(T)||!Aw(T,160))return T.pos=k,NaN;bx(T,!0);var l=T.pos;if(!Aw(T,161))return T.pos=k,NaN;bx(T,!0);no(T);var v=no(T)<<8|no(T);T.pos=l;if(!Aw(T,155))return T.pos=k,NaN;l=ct(T);T.pos=k;return(v+l)*Q/1E9}; xc=function(T){if(!U$f(T)||!Aw(T,524531317))return!1;bx(T,!0);return!0}; U$f=function(T){if(T.H5()){if(!Aw(T,408125543))return!1;bx(T,!0)}return!0}; d8=function(T,Q){for(var k=0;k0){var l=KjJ(Q.substring(k+1));g.VJ(l,function(v,L){this.set(L,v)},T); Q=Q.substring(0,k)}Q=npb(Q);g.VJ(Q,function(v,L){this.set(L,v)},T)}; Zu5=function(T){var Q=T.LB.IK(),k=[];g.VJ(T.T,function(v,L){k.push(L+"="+v)}); if(!k.length)return Q;var l=k.join("&");T=uS5(T.LB)?"&":"?";return Q+T+l}; Ht=function(T,Q){var k=new g.J_(Q);(Q=k.get("req_id"))&&T.set("req_id",Q);g.VJ(T.T,function(l,v){k["set"](v,null)}); return k}; fKJ=function(){this.Y=this.L=this.T=this.timedOut=this.started=this.N=this.S=0}; tw=function(T){T.N=(0,g.XY)();T.started=0;T.timedOut=0;T.T=0}; Ow=function(T,Q){var k=T.started+T.T*4;Q&&(k+=T.L);k=Math.max(0,k-3);return Math.pow(1.6,k)}; po=function(T,Q){T[Q]||(T[Q]=new fKJ);return T[Q]}; Wt=function(T){this.D=this.C=this.N=this.L=0;this.j=this.B=!1;this.T=T;this.S=T.clone()}; GXf=function(T,Q,k){if(EV(T.T))return!1;var l=po(k,FQ(T.T));if(l.timedOut<1&&l.T<1)return!1;l=l.timedOut+l.T;T=$c(T,Q);k=po(k,FQ(T));return k.timedOut+k.T+01?Q=Q.L9:(k=po(k,ev(T,T.YE(Q,k),Q)),Q=Math.max(T.N,k.timedOut)+Q.V9*(T.L-T.N)+.25*T.C,Q=Q>3?1E3*Math.pow(1.6,Q-3):0);return Q===0?!0:T.D+Q<(0,g.XY)()}; m$X=function(T,Q,k){T.T.set(Q,k);T.S.set(Q,k);T.Y&&T.Y.set(Q,k)}; IKb=function(T,Q,k,l,v){++T.L;Q&&++T.N;FQ(k.LB).startsWith("redirector.")&&(T.T=T.S.clone(),delete T.Y,l.N4&&delete v[FQ(T.T)])}; Ew=function(T){return T?(T.itag||"")+";"+(T.lmt||0)+";"+(T.xtags||""):""}; yn=function(T,Q,k,l){this.initRange=k;this.indexRange=l;this.T=null;this.L=!1;this.B=0;this.Y=this.vM=this.S=null;this.info=Q;this.Xs=new Wt(T)}; ix=function(T,Q){this.start=T;this.end=Q;this.length=Q-T+1}; Vn=function(T){T=T.split("-");var Q=Number(T[0]),k=Number(T[1]);if(!isNaN(Q)&&!isNaN(k)&&T.length===2&&(T=new ix(Q,k),!isNaN(T.start)&&!isNaN(T.end)&&!isNaN(T.length)&&T.length>0))return T}; T3=function(T,Q){return new ix(T,T+Q-1)}; hXt=function(T){return T.end==null?{start:String(T.start)}:{start:String(T.start),end:String(T.end)}}; Qb=function(T){if(!T)return new ix(0,0);var Q=Number(T.start);T=Number(T.end);if(!isNaN(Q)&&!isNaN(T)&&(Q=new ix(Q,T),Q.length>0))return Q}; jq=function(T,Q,k,l,v,L,q,Y,U,R,Z,f){l=l===void 0?"":l;this.type=T;this.T=Q;this.range=k;this.source=l;this.Qw=Z;this.clipId=f===void 0?"":f;this.D=[];this.C="";this.NO=-1;this.z9=0;this.C=l;this.NO=v>=0?v:-1;this.startTime=L||0;this.duration=q||0;this.S=Y||0;this.L=U>=0?U:this.range?this.range.length:NaN;this.Y=this.range?this.S+this.L===this.range.length:R===void 0?!!this.L:R;this.range?(this.N=this.startTime+this.duration*this.S/this.range.length,this.j=this.duration*this.L/this.range.length,this.B= this.N+this.j):sET(this)}; sET=function(T){T.N=T.startTime;T.j=T.duration;T.B=T.N+T.j}; S_T=function(T,Q,k){var l=!(!Q||Q.T!==T.T||Q.type!==T.type||Q.NO!==T.NO);return k?l&&!!Q&&(T.range&&Q.range?Q.range.end===T.range.end:Q.range===T.range)&&Q.S+Q.L===T.S+T.L:l}; k0=function(T){return T.type===1||T.type===2}; l7=function(T){return T.type===3||T.type===6}; oX=function(T,Q){return T.T===Q.T?T.range&&Q.range?T.range.start+T.S+T.L===Q.range.start+Q.S:T.NO===Q.NO?T.S+T.L===Q.S:T.NO+1===Q.NO&&Q.S===0&&T.Y:!1}; BCH=function(T,Q){return T.NO!==Q.NO&&Q.NO!==T.NO+1||T.type!==Q.type?!1:oX(T,Q)?!0:Math.abs(T.N-Q.N)<=1E-6&&T.NO===Q.NO?!1:Cky(T,Q)}; Cky=function(T,Q){return oX(T,Q)||Math.abs(T.B-Q.N)<=1E-6||T.NO+1===Q.NO&&Q.S===0&&T.Y?!0:!1}; v9=function(T){return T.NO+(T.Y?1:0)}; zXg=function(T){T.length===1||g.hm(T,function(k){return!!k.range}); for(var Q=1;Q=Q.range.start+Q.S&&T.range.start+T.S+T.L<=Q.range.start+Q.S+Q.L:T.NO===Q.NO&&T.S>=Q.S&&(T.S+T.L<=Q.S+Q.L||Q.Y)}; rWX=function(T,Q){return T.T!==Q.T?!1:T.type===4&&Q.type===3&&T.T.ZG()?(T=T.T.Ui(T),$4(T,function(k){return rWX(k,Q)})):T.NO===Q.NO&&!!Q.L&&Q.S+Q.L>T.S&&Q.S+Q.L<=T.S+T.L}; qt=function(T,Q){var k=Q.NO;T.C="updateWithSegmentInfo";T.NO=k;if(T.startTime!==Q.startTime||T.duration!==Q.duration)T.startTime=Q.startTime+0,T.duration=Q.duration,sET(T)}; gd=function(T,Q){var k=this;this.MO=T;this.Y=this.T=null;this.N=this.Jx=NaN;this.YE=this.requestId=null;this.dn={m3K:function(){return k.range}}; this.Xs=T[0].T.Xs;this.S=Q||"";this.MO[0].range&&this.MO[0].L>0&&(Xjy(T)?(this.range=zXg(T),this.L=this.range.length):(this.range=this.MO[this.MO.length-1].range,this.L=wju(T)))}; Mt=function(T){return!k0(T.MO[T.MO.length-1])}; Y0=function(T){return T.MO[T.MO.length-1].type===4}; g.UE=function(T,Q,k){k=T.YE===null?T.Xs.YE(Q,k,T.MO[0].type):T.YE;if(T.T){Q=k?id(T.T,Q.NE):T.T;var l=new Pt(Q);l.get("alr")||l.set("alr","yes");T.S&&RX6(l,T.S)}else/http[s]?:\/\//.test(T.S)?l=new Pt(new g.J_(T.S)):(l=Jw(T.Xs,k,Q),T.S&&RX6(l,T.S));(Q=T.range)?l.set("range",Q.toString()):T.MO[0].T.Sp()&&T.MO.length===1&&T.MO[0].S&&l.set("range",T.MO[0].S+"-");T.requestId&&l.set("req_id",T.requestId);isNaN(T.Jx)||l.set("headm",T.Jx.toString());isNaN(T.N)||l.set("mffa",T.N+"ms");T.urlParams&&g.VJ(T.urlParams, function(v,L){l.set(L,v)}); return l}; cWC=function(T){if(T.range)return T.L;T=T.MO[0];return Math.round(T.j*T.T.info.qY)}; D$6=function(T,Q){return Math.max(0,T.MO[0].N-Q)}; RX=function(T,Q,k,l,v,L){L=L===void 0?0:L;yn.call(this,T,Q,l,void 0);this.N=k;this.hW=L;this.index=v||new g.Qn}; aKf=function(T,Q,k,l,v){this.NO=T;this.startSecs=Q;this.bf=k;this.T=l||NaN;this.S=v||NaN}; Zj=function(T,Q,k){for(;T;T=T.parentNode)if(T.attributes&&(!k||T.nodeName===k)){var l=T.getAttribute(Q);if(l)return l}return""}; fy=function(T,Q){for(;T;T=T.parentNode){var k=T.getElementsByTagName(Q);if(k.length>0)return k[0]}return null}; uLb=function(T){if(!T)return 0;var Q=T.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return Q?(Number(Q[2])|0)*3600+(Number(Q[4])|0)*60+(Number(Q[6])|0):Number(T)|0}; n9t=function(T){return T.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?T+"Z":T}; G3=function(){this.T=[];this.S=null;this.B=0;this.L=[];this.N=!1;this.C="";this.Y=-1}; KDH=function(T){var Q=T.L;T.L=[];return Q}; x$T=function(){this.Y=[];this.T=null;this.S={};this.L={}}; Ou6=function(T,Q){var k=[];Q=Array.from(Q.getElementsByTagName("SegmentTimeline"));Q=g.B(Q);for(var l=Q.next();!l.done;l=Q.next()){l=l.value;var v=l.parentNode.parentNode,L=null;v.nodeName==="Period"?L=PkI(T):v.nodeName==="AdaptationSet"?(v=v.getAttribute("id")||v.getAttribute("mimetype")||"",L=Hu5(T,v)):v.nodeName==="Representation"&&(v=v.getAttribute("id")||"",L=tI5(T,v));if(L==null)return;L.update(l);g.cm(k,KDH(L))}g.cm(T.Y,k);dJf(T.Y,function(q){return q.startSecs*1E3+q.T})}; pjT=function(T){T.T&&(T.T.T=[]);g.VJ(T.S,function(Q){Q.T=[]}); g.VJ(T.L,function(Q){Q.T=[]})}; PkI=function(T){T.T||(T.T=new G3);return T.T}; Hu5=function(T,Q){T.S[Q]||(T.S[Q]=new G3);return T.S[Q]}; tI5=function(T,Q){T.L[Q]||(T.L[Q]=new G3);return T.L[Q]}; IX=function(T){var Q=T===void 0?{}:T;T=Q.hW===void 0?0:Q.hW;var k=Q.ly===void 0?!1:Q.ly;var l=Q.Bf===void 0?0:Q.Bf;var v=Q.sW===void 0?0:Q.sW;var L=Q.Kz===void 0?Infinity:Q.Kz;var q=Q.P$===void 0?0:Q.P$;var Y=Q.KY===void 0?!1:Q.KY;Q=Q.Ic===void 0?!1:Q.Ic;g.Qn.call(this);this.GW=this.hV=-1;this.bH=T;this.Bf=l;this.ly=k;this.sW=v;this.Kz=L;this.P$=q;((this.KY=Y)||isFinite(L)&&this.Kz>0)&&k&&mN&&(this.S=!1,this.L="postLive");this.Ic=Q}; hq=function(T,Q){return pW(T.segments,function(k){return Q-k.NO})}; sE=function(T,Q,k){k=k===void 0?{}:k;RX.call(this,T,Q,"",void 0,void 0,k.hW||0);this.index=new IX(k)}; Sq=function(T,Q,k){yn.call(this,T,Q);this.N=k;T=this.index=new g.Qn;T.S=!1;T.L="d"}; WDI=function(T,Q,k){var l=T.index.qb(Q),v=T.index.getStartTime(Q),L=T.index.getDuration(Q);k?L=k=0:k=T.info.qY*L;return new gd([new jq(3,T,void 0,"otfCreateRequestInfoForSegment",Q,v,L,0,k)],l)}; $$b=function(T,Q){if(!T.index.isLoaded()){var k=[],l=Q.Y;Q=Q.N.split(",").filter(function(Z){return Z.length>0}); for(var v=0,L=0,q=0,Y=/^(\d+)/,U=/r=(\d+)/,R=0;R0&&(v.T=Math.min(v.T+q,10),v.S=L);v.T>0?(v.T--,v=!0):v=!1;if(v)typeof l==="function"&&(l=l()),console.log("plyr."+Q,l);else{var Y;l=((Y=iu5.get(Q))!=null?Y:0)+1;iu5.set(Q,l);l%100===1&&console.warn("plyr","plyr."+Q+" is chatty, dropping logs.")}}}; yWu=function(){this.T=10;this.S=Date.now()}; z3=function(T,Q){this.info=T;this.S=Q;this.T=null;this.Y=this.L=-1;this.timestampOffset=0;this.isLocked=this.B=!1;this.N=this.info.T.sj()&&!this.info.S}; g.XG=function(T){return W4f(T.S)}; VIC=function(T,Q){Q=Math.min(Q,T.info.L);var k=T.S.split(Q),l=k.ow;k=new z3(new jq(T.info.type,T.info.T,T.info.range,T.info.C,T.info.NO,T.info.startTime,T.info.duration,T.info.S,Q,!1,T.info.Qw,T.info.clipId),k.Rz);k.Y=T.Y;k.L=T.L;Q=new z3(new jq(T.info.type,T.info.T,T.info.range,T.info.C,T.info.NO,T.info.startTime,T.info.duration,T.info.S+Q,T.info.L-Q,T.info.Y,T.info.Qw,T.info.clipId),l);Q.Y=T.Y;Q.L=T.L;return[k,Q]}; g.wd=function(T,Q,k,l){k=k===void 0?!1:k;l=l===void 0?0:l;if(T.isLocked||Q.isLocked||!oX(T.info,Q.info)||T.info.Y)return null;if(l){if(T.S.totalLength+Q.S.totalLength>l)return null}else if(k&&(k=T.S,l=Q.S,k=!(l.T.length?Oj5(k,l.T[0]):1)),k)return null;k=new jq(T.info.type,T.info.T,T.info.range,T.info.C,T.info.NO,T.info.startTime,T.info.duration,T.info.S,T.info.L,T.info.Y,T.info.Qw,T.info.clipId);l=Q.info;k.L+=l.L;k.range&&(k.j+=l.j);k.B=l.B;k.Y=l.Y;l=new oV;v3(l,T.S);v3(l,Q.S);k=new z3(k,l);k.T!= null&&Q.T!=null&&(new g.Cy("dash")).T(414627957,"merged slice emsg overridden; prev: "+k.T.t5()+" next: "+Q.T.t5());k.T=Q.T||T.T;k.L=T.L!==-1?T.L:Q.L;k.Y=T.Y!==-1?T.Y:Q.Y;return k}; g.dd=function(T){g.x9(T.info.T.info)||T.info.T.info.Rd();if(T.L!==-1)return T.L;if(T.T&&eFf(T.T))return T.L=eFf(T.T),T.L;if(g.x9(T.info.T.info)){var Q=g.XG(T);for(var k=T.info.T.T,l=NaN,v=NaN,L=0;It(Q,L);){var q=hw(Q,L);q.type===1936286840?v=q.data.getUint32(q.dataOffset+8):q.type===1836476516?v=g.fo(q):q.type===1952867444&&isNaN(l)&&(l=g.Co(q));L=Sv(q.type)?L+8:L+q.size}!v&&k&&(v=G7(k));Q=l/v}else Q=new Xo(g.XG(T)),k=T.N?Q:new Xo(new DataView(T.info.T.T.buffer)),l=Ko(k),k=Q.pos,Q.pos=0,xc(Q)?Aw(Q, 231)?(l=ct(Q)*l/1E9,Q.pos=k,Q=l):(Q.pos=k,Q=NaN):(Q.pos=k,Q=NaN);T.L=Q||T.info.N;return T.L}; QL5=function(T,Q){T.timestampOffset>0&&(Q-=T.timestampOffset);var k=g.dd(T)+Q;TfI(T,k);T.timestampOffset=Q}; TfI=function(T,Q){g.x9(T.info.T.info)||T.info.T.info.Rd();T.L=Q;if(g.x9(T.info.T.info)){var k=g.XG(T);T=T.info.T.T;for(var l=NaN,v=NaN,L=0;It(k,L);){var q=hw(k,L);isNaN(l)&&(q.type===1936286840?l=q.data.getUint32(q.dataOffset+8):q.type===1836476516&&(l=g.fo(q)));if(q.type===1952867444){!l&&T&&(l=G7(T));var Y=g.Co(q);isNaN(v)&&(v=Math.round(Q*l)-Y);var U=q;Y+=v;if(U.data.getUint8(U.dataOffset)){var R=U.data;U=U.dataOffset+4;R.setUint32(U,Math.floor(Y/4294967296));R.setUint32(U+4,Y&4294967295)}else U.data.setUint32(U.dataOffset+ 4,Y)}L=Sv(q.type)?L+8:L+q.size}return!0}k=new Xo(g.XG(T));T=T.N?k:new Xo(new DataView(T.info.T.T.buffer));l=Ko(T);T=k.pos;k.pos=0;if(xc(k)&&Aw(k,231))if(v=bx(k,!0),Q=Math.floor(Q*1E9/l),Math.ceil(Math.log(Q)/Math.log(2)/8)>v)Q=!1;else{for(l=v-1;l>=0;l--)k.T.setUint8(k.pos+l,Q&255),Q>>>=8;k.pos=T;Q=!0}else Q=!1;return Q}; Aq=function(T,Q){Q=Q===void 0?!1:Q;var k=Nt(T);T=Q?0:T.info.j;return k||T}; Nt=function(T){g.x9(T.info.T.info)||T.info.T.info.Rd();if(T.T&&T.info.type===6)return T.T.hW;if(g.x9(T.info.T.info)){var Q=g.XG(T);var k=0;Q=g.z7(Q,1936286840);Q=g.B(Q);for(var l=Q.next();!l.done;l=Q.next())l=jE5(l.value),k+=l.YC[0]/l.timescale;k=k||NaN;if(!(k>=0))a:{k=g.XG(T);Q=T.info.T.T;for(var v=l=0,L=0;It(k,l);){var q=hw(k,l);if(q.type===1836476516)v=g.fo(q);else if(q.type===1836019558){!v&&Q&&(v=G7(Q));if(!v){k=NaN;break a}var Y=mu(q.data,q.dataOffset,1953653094),U=Y;Y=v;var R=mu(U.data,U.dataOffset, 1952868452);U=mu(U.data,U.dataOffset,1953658222);var Z=ot(R);ot(R);Z&2&&ot(R);R=Z&8?ot(R):0;var f=ot(U),G=f&1;Z=f&4;var m=f&256,I=f&512,z=f&1024;f&=2048;var w=vt(U);G&&ot(U);Z&&ot(U);for(var r=G=0;r2048?"":Q.indexOf("https://")===0?Q:""}; u7=function(T,Q,k){Q.match(Rjf);return T(Q,k).then(function(l){var v=g.U35(l.xhr);return v?u7(T,v,k):l.xhr})}; P9=function(T,Q,k){T=T===void 0?"":T;Q=Q===void 0?null:Q;k=k===void 0?!1:k;g.ox.call(this);var l=this;this.sourceUrl=T;this.isLivePlayback=k;this.Jj=this.duration=0;this.isPremiere=this.KY=this.Y=this.isLiveHeadPlayable=this.isLive=this.S=!1;this.Kz=this.sW=0;this.isOtf=this.Cc=!1;this.Bd=(0,g.XY)();this.z9=Infinity;this.T={};this.L=new Map;this.state=this.W1=0;this.timeline=null;this.isManifestless=!1;this.hj=[];this.B=null;this.i9=0;this.N="";this.e6=NaN;this.xm=this.d5=this.timestampOffset=this.C= 0;this.mK=this.Jp=NaN;this.Ig=0;this.sK=this.D=!1;this.p_=[];this.u9={};this.qO=NaN;this.dn={l6k:function(Y){ny(l,Y)}}; var v;this.K_=(v=Q)==null?void 0:v.Wd("html5_use_network_error_code_enums");Zd6=!!Q&&Q.Wd("html5_modern_vp9_mime_type");var L;Ky=!((L=Q)==null||!L.Wd("html5_enable_flush_during_seek"))&&g.ph();var q;x0=!((q=Q)==null||!q.Wd("html5_enable_reset_audio_decoder"))&&g.ph()}; flC=function(T){return g.jP(T.T,function(Q){return!!Q.info.video&&Q.info.video.qualityOrdinal>=2160})}; bBy=function(T){return g.jP(T.T,function(Q){return!!Q.info.video&&Q.info.video.isHdr()})}; Pr=function(T){return g.jP(T.T,function(Q){return!!Q.info.jY})}; g.GNg=function(T){return g.jP(T.T,function(Q){return Wj(Q.info.mimeType)})}; m3t=function(T){return g.jP(T.T,function(Q){return Q.info.video?Q.info.video.projectionType==="EQUIRECTANGULAR":!1})}; IlC=function(T){return g.jP(T.T,function(Q){return Q.info.video?Q.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; hj5=function(T){return g.jP(T.T,function(Q){return Q.info.video?Q.info.video.projectionType==="MESH":!1})}; sL5=function(T){return g.jP(T.T,function(Q){return Q.info.video?Q.info.video.stereoLayout===1:!1})}; SMX=function(T){return c5T(T.T,function(Q){return Q.info.video?Q.K3():!0})}; nP=function(T){return g.jP(T.T,function(Q){return EV(Q.Xs.T)})}; ny=function(T,Q){T.T[Q.info.id]=Q;T.L.set(Ew(g.Hj(Q.info,T.Cc)),Q)}; OE=function(T,Q,k){k=k===void 0?0:k;var l=T.mimeType||"",v=T.itag;var L=T.xtags;v=v?v.toString():"";L&&(v+=";"+L);L=v;if(pu(l)){var q=T.width||640;v=T.height||360;var Y=T.fps,U=T.qualityLabel,R=T.colorInfo,Z=T.projectionType,f;T.stereoLayout&&(f=Cef[T.stereoLayout]);var G=MtH(T)||void 0;if(R==null?0:R.primaries)var m=Bfb[R.primaries]||void 0;q=new dC(q,v,Y,Z,f,void 0,U,G,m);l=H9(l,q,bk[T.itag||""]);Ky&&(l+="; enableflushduringseek=true");x0&&(l+="; enableresetaudiodecoder=true")}var I;if(tW(l)){var z= T.audioSampleRate;f=T.audioTrack;z=new zX(z?+z:void 0,T.audioChannels,T.spatialAudioType,T.isDrc,T.loudnessDb,T.trackAbsoluteLoudnessLkfs,T.audioQuality||"AUDIO_QUALITY_UNKNOWN",T.isVb);f&&(m=f.displayName,v=f.id,f=f.audioIsDefault,m&&(I=new g.aX(m,v||"",!!f)))}var w;T.captionTrack&&(U=T.captionTrack,f=U.displayName,m=U.vssId,v=U.languageCode,Y=U.kind,U=U.id,f&&m&&v&&(w=new qMu(f,m,v,Y,T.xtags,U)));f=Number(T.bitrate)/8;m=Number(T.contentLength);v=Number(T.lastModified);U=T.drmFamilies;Y=T.type;k= k&&m?m/k:0;T=Number(T.approxDurationMs);if(Q&&U){var r={};U=g.B(U);for(R=U.next();!R.done;R=U.next())(R=tq[R.value])&&(r[R]=Q[R])}return new rC(L,l,{audio:z,video:q,MY:I,jY:r,qY:f,S2:k,contentLength:m,lastModified:v,captionTrack:w,streamType:Y,approxDurationMs:T})}; py=function(T,Q,k){k=k===void 0?0:k;var l=T.type;var v=T.itag;var L=T.xtags;L&&(v=T.itag+";"+L);if(pu(l)){var q=(T.size||"640x360").split("x");q=new dC(+q[0],+q[1],+T.fps,T.projection_type,+T.stereo_layout,void 0,T.quality_label,T.eotf,T.primaries);l=H9(l,q,bk[T.itag]);Ky&&(l+="; enableflushduringseek=true");x0&&(l+="; enableresetaudiodecoder=true")}var Y;if(tW(l)){var U=new zX(+T.audio_sample_rate||void 0,+T.audio_channels||0,T.spatial_audio_type,!!T.drc);T.name&&(Y=new g.aX(T.name,T.audio_track_id, T.isDefault==="1"))}var R;T.caption_display_name&&T.caption_vss_id&&T.caption_language_code&&(R=new qMu(T.caption_display_name,T.caption_vss_id,T.caption_language_code,T.caption_kind,T.xtags,T.caption_id));L=Number(T.bitrate)/8;var Z=Number(T.clen),f=Number(T.lmt);k=k&&Z?Z/k:0;if(Q&&T.drm_families){var G={};for(var m=g.B(T.drm_families.split(",")),I=m.next();!I.done;I=m.next())I=I.value,G[I]=Q[I]}return new rC(v,l,{audio:U,video:q,MY:Y,jY:G,qY:L,S2:k,contentLength:Z,lastModified:f,captionTrack:R, streamType:T.stream_type,approxDurationMs:Number(T.approx_duration_ms)})}; zjH=function(T){return $4(T,function(Q){return"FORMAT_STREAM_TYPE_OTF"===Q.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; XM5=function(T){return $4(T,function(Q){return"FORMAT_STREAM_TYPE_OTF"===Q.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; wMX=function(T,Q){return T.timeline?nW(T.timeline.Y,Q):T.hj.length?nW(T.hj,Q):[]}; W9=function(T,Q,k){Q=Q===void 0?"":Q;k=k===void 0?"":k;T=new g.J_(T,!0);T.set("alr","yes");k&&(k=FUC(decodeURIComponent(k)),T[M[10]](Q,encodeURIComponent(k)));return T}; bdC=function(T,Q){var k=Zj(Q,"id");k=k.replace(":",";");var l=Zj(Q,"mimeType"),v=Zj(Q,"codecs");l=v?l+'; codecs="'+v+'"':l;v=Number(Zj(Q,"bandwidth"))/8;var L=Number(fy(Q,"BaseURL").getAttribute(T.N+":contentLength")),q=T.duration&&L?L/T.duration:0;if(pu(l)){var Y=Number(Zj(Q,"width"));var U=Number(Zj(Q,"height")),R=Number(Zj(Q,"frameRate")),Z=d3C(Zj(Q,T.N+":projectionType"));a:switch(Zj(Q,T.N+":stereoLayout")){case "layout_left_right":var f=1;break a;case "layout_top_bottom":f=2;break a;default:f= 0}Y=new dC(Y,U,R,Z,f)}if(tW(l)){var G=Number(Zj(Q,"audioSamplingRate"));var m=Number(Zj(Q.getElementsByTagName("AudioChannelConfiguration")[0],"value"));U=Nf5(Zj(Q,T.N+":spatialAudioType"));G=new zX(G,m,U);a:{m=Zj(Q,"lang")||"und";if(U=fy(Q,"Role"))if(Z=Zj(U,"value")||"",g.MM(AB5,Z)){U=m+"."+AB5[Z];R=Z==="main";T=Zj(Q,T.N+":langName")||m+" - "+Z;m=new g.aX(T,U,R);break a}m=void 0}}if(Q=fy(Q,"ContentProtection"))if(Q.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var I={};for(Q= Q.firstChild;Q!=null;Q=Q.nextSibling)Q instanceof Element&&/SystemURL/.test(Q.nodeName)&&(T=Q.getAttribute("type"),U=Q.textContent,T&&U&&(I[T]=U.trim()))}else I=void 0;return new rC(k,l,{audio:G,video:Y,MY:m,jY:I,qY:v,S2:q,contentLength:L})}; d3C=function(T){switch(T){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"}}; Nf5=function(T){switch(T){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"}}; cBJ=function(T,Q){Q=Q===void 0?"":Q;T.state=1;T.Bd=(0,g.XY)();return YMy(Q||T.sourceUrl).then(function(k){if(!T.wd()){T.W1=k.status;k=k.responseText;var l=new DOMParser;k=da(l,u_5(k),"text/xml").getElementsByTagName("MPD")[0];T.z9=uLb(Zj(k,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(k.attributes){l=g.B(k.attributes);for(var v=l.next();!v.done;v=l.next())if(v=v.value,v.value==="http://youtube.com/yt/2012/10/10"){l=v.name.split(":")[1];break b}}l=""}T.N=l;T.isLive=T.z9=T.z9}; aly=function(T){T.B&&T.B.stop()}; rB6=function(T){var Q=T.z9;isFinite(Q)&&($0(T)?T.refresh():(Q=Math.max(0,T.Bd+Q-(0,g.XY)()),T.B||(T.B=new g.FA(T.refresh,Q,T),g.P(T,T.B)),T.B.start(Q)))}; uR6=function(T){T=T.T;for(var Q in T){var k=T[Q].index;if(k.isLoaded())return k.a_()+1}return 0}; Jq=function(T){return T.d5?T.d5-(T.C||T.timestampOffset):0}; eq=function(T){return T.xm?T.xm-(T.C||T.timestampOffset):0}; FG=function(T){if(!isNaN(T.e6))return T.e6;var Q=T.T,k;for(k in Q){var l=Q[k].index;if(l.isLoaded()&&!Wj(Q[k].info.mimeType)){Q=0;for(k=l.p7();k<=l.a_();k++)Q+=l.getDuration(k);Q/=l.DL();Q=Math.round(Q/.5)*.5;l.DL()>10&&(T.e6=Q);return Q}if(T.isLive&&(l=Q[k],l.hW))return l.hW}return NaN}; nTt=function(T,Q){T=aHf(T.T,function(l){return l.index.isLoaded()}); if(!T)return NaN;T=T.index;var k=T.ll(Q);return T.getStartTime(k)===Q?Q:k=0&&v.segments.splice(L,1)}}}; x35=function(T){for(var Q in T.T)Wj(T.T[Q].info.mimeType)||OBu(T.T[Q].index,Infinity)}; i7=function(T,Q,k){for(var l in T.T){var v=T.T[l].index,L=Q,q=k;v.ly&&(L&&(v.hV=Math.max(v.hV,L)),q&&(v.GW=Math.max(v.GW||0,q)))}k&&(T.qO=k/1E3)}; Peu=function(T){T.xm=0;T.d5=0;T.Ig=0}; Vb=function(T){return T.sK&&T.isManifestless?T.isLiveHeadPlayable:T.isLive}; H9=function(T,Q,k){T6===null&&(T6=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(Zd6&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return T6||k!=="9"&&k!=="("?T6||k!=="9h"&&k!=="(h"||(T='video/webm; codecs="vp9.2"'):T='video/webm; codecs="vp9"',T;if(!T6&&!Qa||T!=='video/webm; codecs="vp9"'&&T!=='video/webm; codecs="vp9.2"')return T; k="00";var l="08",v="01",L="01",q="01";T==='video/webm; codecs="vp9.2"'&&(k="02",l="10",Q.primaries==="bt2020"&&(q=v="09"),Q.T==="smpte2084"&&(L="16"),Q.T==="arib-std-b67"&&(L="18"));return'video/webm; codecs="'+["vp09",k,"51",l,"01",v,L,q,"00"].join(".")+'"'}; km=function(T,Q,k){T=""+T+(Q>49?"p60":Q>32?"p48":"");Q=h_()[T];if(Q!=null&&Q>0)return Q;Q=j4.get(T);if(Q!=null&&Q>0)return Q;k=k==null?void 0:k.get(T);return k!=null&&k>0?k:8192}; Hdy=function(T){this.FB=T;this.Z8=this.Ql=this.e6=this.N=this.Y=this.p_=this.Jj=this.z9=!1;this.C=this.B=0;this.f_=!1;this.qO=!0;this.K_=!1;this.ID=0;this.jF=this.xm=!1;this.t6=!0;this.sK=this.Bd=!1;this.T={};this.h3=this.d5=this.Fk=this.disableAv1=this.Tg=this.Ah=this.zg=this.QR=this.S=this.j=!1;this.hj=0;this.vn=this.FB.V("html5_disable_aac_preference");this.DP=Infinity;this.i9=0;this.OG=this.FB.J3();this.Gg=this.FB.experiments.Wd("html5_enable_vp9_fairplay");this.iK=this.FB.V("html5_force_av1_for_testing"); this.u9=g.jj(this.FB.experiments,"html5_av1_ordinal_cap");this.YP=this.FB.V("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.gt=this.FB.V("html5_account_onesie_format_selection_during_format_filter");this.qY=g.jj(this.FB.experiments,"html5_max_byterate");this.Ig=this.FB.V("html5_enable_iamf_audio");this.F_=this.FB.experiments.Wd("html5_allow_capability_merge");this.Hn=this.FB.V("html5_enable_encrypted_av1");this.hj=g.jj(this.FB.experiments,"html5_hard_cap_max_vertical_resolution")}; rMH=function(T){if(T.Jj)return["f"];if(g.tH("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var Q=["9h","9","h","8"];T.Hn&&Q.push("1e");Q=Q.concat(["(h","(","H","*"]);T.xm&&(Q.unshift("1"),Q.unshift("1h"));T.Ql&&Q.unshift("h");T.D&&(Q=(ttt[T.D]||[T.D]).concat(Q));return Q}; zF5=function(T){var Q=["o","a","A"];T.i9===1&&(T.Y&&(Q=["mac3","MAC3"].concat(Q)),T.N&&(Q=["meac3","MEAC3"].concat(Q)),T.Ig&&(Q=["i","I"].concat(Q)));T.z9&&(Q=["so","sa"].concat(Q));!T.Z8||T.e6||T.L||T.vn||Q.unshift("a");T.L&&(Q=(ttt[T.L]||[T.L]).concat(Q));return Q}; lc=function(T,Q,k,l){Q=Q===void 0?{}:Q;if(l===void 0?0:l)return Q.disabled=1,0;if(Wr(T.N,$g.AV1_CODECS)&&Wr(T.N,$g.HEIGHT)&&Wr(T.N,$g.BITRATE))return Q.isCapabilityUsable=1,8192;try{var v=opf();if(v&&!T.V("disable_av1_setting"))return Q.localPref=v}catch(Y){}l=1080;v=navigator.hardwareConcurrency;v<=2&&(l=480);Q.coreCount=v;if(v=g.jj(T.experiments,"html5_default_av1_threshold"))l=Q["default"]=v;!T.V("html5_disable_av1_arm_check")&&h1y()&&(Q.isArm=1,l=240);if(T=T.N.qO)Q.mcap=T,l=Math.max(l,T);if(k){var L, q;if(T=(L=k.videoInfos.find(function(Y){return uk(Y)}))==null?void 0:(q=L.S)==null?void 0:q.powerEfficient)l=8192,Q.isEfficient=1; k=k.videoInfos[0].video;L=Math.min(km("1",k.fps),km("1",30));Q.perfCap=L;l=Math.min(l,L);k.isHdr()&&!T&&(Q.hdr=1,l*=.75)}else k=km("1",30),Q.perfCap30=k,l=Math.min(l,k),k=km("1",60),Q.perfCap60=k,l=Math.min(l,k);return Q.av1Threshold=l}; on=function(T,Q,k,l){this.flavor=T;this.keySystem=Q;this.S=k;this.experiments=l;this.T={};this.Jj=this.keySystemAccess=null;this.Gt=this.Ps=-1;this.RM=null;this.L=!!l&&l.Wd("edge_nonprefixed_eme");l&&l.Wd("html5_enable_vp9_fairplay")}; Lc=function(T){return T.L?!1:!T.keySystemAccess&&!!vL()&&T.keySystem==="com.microsoft.playready"}; qx=function(T){return T.keySystem==="com.microsoft.playready"}; gx=function(T){return!T.keySystemAccess&&!!vL()&&T.keySystem==="com.apple.fps.1_0"}; Mx=function(T){return T.keySystem==="com.youtube.fairplay"}; Ym=function(T){return T.keySystem==="com.youtube.fairplay.sbdl"}; g.Ud=function(T){return T.flavor==="fairplay"}; vL=function(){var T=window,Q=T.MSMediaKeys;JH()&&!Q&&(Q=T.WebKitMediaKeys);return Q&&Q.isTypeSupported?Q:null}; ZE=function(T){return navigator.requestMediaKeySystemAccess?g.hW&&!g.ph()?ze("45"):g.$n||g.RF?T.Wd("edge_nonprefixed_eme"):g.Rn?ze("47"):g.mp&&T.Wd("html5_enable_safari_fairplay")?!1:!0:!1}; OdH=function(T,Q,k,l){var v=WD(),L=(k=v||k&&JH())?["com.youtube.fairplay"]:["com.widevine.alpha"];Q&&L.unshift("com.youtube.widevine.l3");v&&l&&L.unshift("com.youtube.fairplay.sbdl");return k?L:T?[].concat(g.ZH(L),g.ZH(fc.playready)):[].concat(g.ZH(fc.playready),g.ZH(L))}; G6=function(T,Q,k,l,v){l=l===void 0?!1:l;g.x.call(this);this.FB=Q;this.useCobaltWidevine=l;this.T9=v;this.S=[];this.L={};this.T={};this.callback=null;this.N=!1;this.Y=[];this.initialize(T,!k)}; Wl5=function(T,Q){T.callback=Q;T.Y=[];ZE(T.FB.experiments)?m0(T):pMy(T)}; m0=function(T){if(!T.wd())if(T.S.length===0)T.callback(T.Y);else{var Q=T.S[0],k=T.L[Q],l=$3y(T,k);if(In&&In.keySystem===Q&&In.iGq===JSON.stringify(l))T.T9("remksa",{re:!0}),JB5(T,k,In.keySystemAccess);else{var v,L;T.T9("remksa",{re:!1,ok:(L=(v=In)==null?void 0:v.keySystem)!=null?L:""});In=void 0;navigator.requestMediaKeySystemAccess(Q,l).then(pQ(function(q){JB5(T,k,q,l)}),pQ(function(){T.N=!T.N&&T.L[T.S[0]].flavor==="widevine"; T.N||T.S.shift();m0(T)}))}}}; JB5=function(T,Q,k,l){if(!T.wd()){l&&(In={keySystem:Q.keySystem,keySystemAccess:k,iGq:JSON.stringify(l)});Q.keySystemAccess=k;if(qx(Q)){k=mD();l=g.B(Object.keys(T.T[Q.flavor]));for(var v=l.next();!v.done;v=l.next())v=v.value,Q.T[v]=!!k.canPlayType(v)}else{k=Q.keySystemAccess.getConfiguration();if(k.audioCapabilities)for(l=g.B(k.audioCapabilities),v=l.next();!v.done;v=l.next())Q.T[v.value.contentType]=!0;if(k.videoCapabilities)for(k=g.B(k.videoCapabilities),l=k.next();!l.done;l=k.next())Q.T[l.value.contentType]= !0}T.Y.push(Q);T.useCobaltWidevine||T.V("html5_enable_vp9_fairplay")&&Ym(Q)?(T.S.shift(),m0(T)):T.callback(T.Y)}}; $3y=function(T,Q){var k={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(T.V("html5_enable_vp9_fairplay")&&Mx(Q))return k.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),k.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[k];qx(Q)&&(k.initDataTypes=["keyids","cenc"]);for(var l=g.B(Object.keys(T.T[Q.flavor])),v=l.next();!v.done;v=l.next()){v=v.value;var L=v.indexOf("audio/")===0,q=L?k.audioCapabilities:k.videoCapabilities;Q.flavor!== "widevine"||T.N?q.push({contentType:v}):L?q.push({contentType:v,robustness:"SW_SECURE_CRYPTO"}):(g.hW&&g.tH("windows nt")&&!T.V("html5_drm_enable_moho")||q.push({contentType:v,robustness:"HW_SECURE_ALL"}),L=v,T.FB.N.L&&v.includes("vp09")&&(L=v+"; experimental=allowed"),q.push({contentType:L,robustness:"SW_SECURE_DECODE"}),hS(T.FB)==="MWEB"&&(VI()||OG())&&(T.T9("swcrypto",{}),q.push({contentType:v,robustness:"SW_SECURE_CRYPTO"})))}return[k]}; pMy=function(T){if(vL()&&(g.mp||Fw))T.Y.push(new on("fairplay","com.apple.fps.1_0","",T.FB.experiments));else{var Q=ejt(),k=g.sA(T.S,function(l){var v=T.L[l],L=!1,q=!1,Y;for(Y in T.T[v.flavor])Q(Y,l)&&(v.T[Y]=!0,L=L||Y.indexOf("audio/")===0,q=q||Y.indexOf("video/")===0);return L&&q}); k&&T.Y.push(T.L[k]);T.S=[]}T.callback(T.Y)}; ejt=function(){var T=vL();if(T){var Q=T.isTypeSupported;return function(l,v){return Q(v,l)}}var k=mD(); return k&&(k.addKey||k.webkitAddKey)?function(l,v){return!!k.canPlayType(l,v)}:function(){return!1}}; Fly=function(T){this.experiments=T;this.T=2048;this.Y=0;this.z9=(this.C=this.V("html5_streaming_resilience"))?.5:.25;var Q=Q===void 0?0:Q;this.L=g.jj(this.experiments,"html5_media_time_weight_prop")||Q;this.D=(this.N=this.experiments.Wd("html5_consider_end_stall"))&&sd;this.S=this.experiments.Wd("html5_measure_max_progress_handling");this.j=this.V("html5_treat_requests_pre_elbow_as_metadata");this.B=this.V("html5_media_time_weight")||!!this.L;this.V("html5_sabr_live_audio_early_return_fix")&&sd&& (this.T=65536)}; ETC=function(T,Q){this.T=void 0;this.experimentIds=T?T.split(","):[];this.flags=Vt(Q||"","&");T={};Q=g.B(this.experimentIds);for(var k=Q.next();!k.done;k=Q.next())T[k.value]=!0;this.experiments=T}; g.jj=function(T,Q){T=T.flags[Q];JSON.stringify(T);return Number(T)||0}; S4=function(T,Q){return(T=T.flags[Q])?T.toString():""}; yBC=function(T){if(T=T.flags.html5_web_po_experiment_ids)if(T=T.replace(/\[ *(.*?) *\]/,"$1"))return T.split(",").map(Number);return[]}; id5=function(T){if(T.T)return T.T;if(T.experimentIds.length<=1)return T.T=T.experimentIds,T.T;var Q=[].concat(g.ZH(T.experimentIds)).map(function(l){return Number(l)}); Q.sort();for(var k=Q.length-1;k>0;--k)Q[k]-=Q[k-1];T.T=Q.map(function(l){return l.toString()}); T.T.unshift("v1");return T.T}; TMI=function(T){return VtJ.then(T)}; Cc=function(T,Q,k){this.experiments=T;this.xm=Q;this.i9=k===void 0?!1:k;this.D=!!g.jA("cast.receiver.platform.canDisplayType");this.j={};this.z9=!1;this.Y=new Map;this.C=!0;this.S=this.L=!1;this.T=new Map;this.qO=0;this.hj=this.experiments.Wd("html5_disable_vp9_encrypted");this.N=this.experiments.Wd("html5_enable_encrypted_av1");T=g.jA("cast.receiver.platform.getValue");this.B=!this.D&&T&&T("max-video-resolution-vpx")||null;QNI(this);this.L=!!(WD()&&HD()>=21)}; aJt=function(T,Q,k){k=k===void 0?1:k;var l=Q.itag;if(l==="0")return!0;var v=Q.mimeType;if(Q.yR==="1e"&&!T.N)return"dav1enc";if(uk(Q)&&T.z9)return"dav1";if(Q.video&&(Q.video.isHdr()||Q.video.primaries==="bt2020")&&!(Wr(T,$g.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(l==="338"&&!(g.hW?ze(53):g.Rn&&ze(64)))return"dopus";var L=k;L=L===void 0?1: L;k={};Q.video&&(Q.video.width&&(k[$g.WIDTH.name]=Q.video.width),Q.video.height&&(k[$g.HEIGHT.name]=Q.video.height),Q.video.fps&&(k[$g.FRAMERATE.name]=Q.video.fps*L),Q.video.T&&(k[$g.EOTF.name]=Q.video.T),Q.qY&&(k[$g.BITRATE.name]=Q.qY*8*L),Q.yR==="("&&(k[$g.CRYPTOBLOCKFORMAT.name]="subsample"),Q.video.projectionType==="EQUIRECTANGULAR"||Q.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Q.video.projectionType==="MESH")&&(k[$g.DECODETOTEXTURE.name]="true");Q.audio&&Q.audio.numChannels&& (k[$g.CHANNELS.name]=Q.audio.numChannels);T.L&&cj(Q)&&(k[$g.EXPERIMENTAL.name]="allowed");L=g.B(Object.keys($g));for(var q=L.next();!q.done;q=L.next()){q=$g[q.value];var Y;if(Y=k[q.name])if(Y=!(q===$g.EOTF&&Q.mimeType.indexOf("vp09.02")>0)){Y=q;var U=Q;Y=!(T.experiments.Wd("html5_ignore_h264_framerate_cap")&&Y===$g.FRAMERATE&&aF5(U))}if(Y)if(Wr(T,q))if(T.B){if(T.B[q.name] 1080&&Q.jY&&(v+="; hdcp=2.2");return l==="227"?"hqcenc":l!=="585"&&l!=="588"&&l!=="583"&&l!=="586"&&l!=="584"&&l!=="587"&&l!=="591"&&l!=="592"||T.experiments.Wd("html5_enable_new_hvc_enc")?WD()&&HD()>=21&&g.tH("appletv5")&&(l==="410"||l==="845")?!0:T.isTypeSupported(v)?!0:"tpus":"newhvc"}; BL=function(){var T=OG()&&!ze(29),Q=g.tH("google tv")&&g.tH("chrome")&&!ze(30);return T||Q?!1:HDg()}; jNC=function(T,Q,k){var l=480;Q=g.B(Q);for(var v=Q.next();!v.done;v=Q.next()){v=v.value;var L=v.video.qualityOrdinal;L<=1080&&L>l&&aJt(T,v,k)===!0&&(l=L)}return l}; g.z6=function(T,Q){Q=Q===void 0?!1:Q;return BL()&&T.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!Q&&T.canPlayType(mD(),"application/x-mpegURL")?!0:!1}; lYg=function(T){kn6(function(){for(var Q=g.B(Object.keys($g)),k=Q.next();!k.done;k=Q.next())Wr(T,$g[k.value])})}; Wr=function(T,Q){Q.name in T.j||(T.j[Q.name]=oJf(T,Q));return T.j[Q.name]}; oJf=function(T,Q){if(T.B)return!!T.B[Q.name];if(Q===$g.BITRATE&&T.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!T.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(Q===$g.AV1_CODECS)return T.isTypeSupported("video/mp4; codecs="+Q.valid)&&!T.isTypeSupported("video/mp4; codecs="+Q.P4);if(Q.video){var k='video/webm; codecs="vp9"';T.isTypeSupported(k)||(k='video/mp4; codecs="avc1.4d401e"')}else k='audio/webm; codecs="opus"', T.isTypeSupported(k)||(k='audio/mp4; codecs="mp4a.40.2"');return T.isTypeSupported(k+"; "+Q.name+"="+Q.valid)&&!T.isTypeSupported(k+"; "+Q.name+"="+Q.P4)}; vJI=function(T,Q){var k=0;T.Y.has(Q)&&(k=T.Y.get(Q).dl);T.Y.set(Q,{dl:k+1,k5:Math.pow(2,k+1)});T.S=!0}; Hr=function(T){for(var Q=[],k=g.B(T.T.keys()),l=k.next();!l.done;l=k.next()){l=l.value;var v=T.T.get(l);Q.push(l+"_"+v.maxWidth+"_"+v.maxHeight)}return Q.join(".")}; wk5=function(T,Q){for(var k=new Map,l=g.B(T.T.keys()),v=l.next();!v.done;v=l.next()){v=v.value;var L=v.split("_")[0];Q.has(L)||k.set(v,T.T.get(v))}T.T=k}; NvH=function(T,Q,k){var l,v=((l=k.video)==null?void 0:l.fps)||0;l=Q+"_"+v;var L=!!k.audio,q={itag:k.itag,yR:Q,uH:L};if(L)q.numChannels=k.audio.numChannels;else{var Y=k.video;q.maxWidth=Y==null?void 0:Y.width;q.maxHeight=Y==null?void 0:Y.height;q.maxFramerate=v;Wr(T,$g.BITRATE)&&(q.maxBitrateBps=k.qY*8);q.HQ=Y==null?void 0:Y.isHdr()}Y=T.T.get(l);Y?L||(k=Math.max(Y.maxWidth||0,Y.maxHeight||0)>Math.max(q.maxWidth||0,q.maxHeight||0)?Y:q,Q={itag:k.itag,yR:Q,uH:L,maxWidth:Math.max(Y.maxWidth||0,q.maxWidth|| 0),maxHeight:Math.max(Y.maxHeight||0,q.maxHeight||0),maxFramerate:v,HQ:k.HQ},Wr(T,$g.BITRATE)&&(Q.maxBitrateBps=k.maxBitrateBps),T.T.set(l,Q)):T.T.set(l,q)}; AMy=function(T,Q,k){var l,v=((l=k.video)==null?void 0:l.fps)||0;l=Q+"_"+v;var L=!!k.audio,q=T.T.get(l);a:{var Y=T.T.get(l),U=!!k.audio;if(Y){if(U){var R=!1;break a}var Z;if(!U&&((R=k.video)==null?0:R.height)&&Y.maxHeight&&Y.maxHeight>=((Z=k.video)==null?void 0:Z.height)){R=!1;break a}}R=!0}R&&(R=k.itag,Q=q?q:{itag:R,yR:Q,uH:L},L?Q.numChannels=k.audio.numChannels:(L=k.video,Q.maxWidth=L==null?void 0:L.width,Q.maxHeight=L==null?void 0:L.height,Q.maxFramerate=v,Wr(T,$g.BITRATE)&&(Q.maxBitrateBps=k.qY* 8),Q.HQ=L==null?void 0:L.isHdr()),T.T.set(l,Q))}; QNI=function(T){var Q;(Q=navigator.mediaCapabilities)!=null&&Q.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(k){k.smooth&&k.powerEfficient&&(T.qO=2160)})}; XK=function(){g.ox.call(this);this.items={}}; wx=function(T,Q){this.T=T;this.cipher=this.T.exports.AES128CTRCipher_create(Q.byteOffset)}; Nx=function(){this.S=this.kf=0;this.T=Array.from({length:dx.length}).fill(0)}; L15=function(){}; qWf=function(){this.startTimeMs=(0,g.XY)();this.T=!1}; gJH=function(){this.T=new L15}; Mng=function(T,Q,k,l){l=l===void 0?1:l;k>=0&&(Q in T.T||(T.T[Q]=new Nx),T.T[Q].zW(k,l))}; YWI=function(T,Q,k,l,v){var L=(0,g.XY)(),q=v?v(Q):void 0,Y;v=(Y=q==null?void 0:q.kf)!=null?Y:1;if(v!==0){var U;Y=(U=q==null?void 0:q.profile)!=null?U:k;Mng(T,Y,L-l,v)}return Q}; UlI=function(T,Q,k,l,v){if(Q&&typeof Q==="object"){var L=function(q){return YWI(T,q,k,l,v)}; if(NZ(Q))return Q.then(L);if(dq(Q))return DQ(Q,L)}return YWI(T,Q,k,l,v)}; RGf=function(){}; Gnt=function(T,Q){return u8(Zw5,function(){var k=this;return function v(){var L,q,Y;return PT(v,function(U){switch(U.S){case 1:g.Xg(U,2);if(!k.Y)throw"wasm.ps.ns";L=T;q=t5;return C5(U,nQ(fYg(k,Q)),4);case 4:Y=q(U.T);if(!Y)throw"wasm.ps.um";try{return U.return(new WebAssembly.Instance(Y,L))}catch(R){}return C5(U,nQ(WebAssembly.instantiate(Y,L)),5);case 5:return U.return(U.T);case 2:g.aI(U),g.n5(U,0)}})}()})}; mlJ=function(T,Q){T.T||(T.T=DQ(rq(function(){return fetch(Q)}),function(k){return k.arrayBuffer()}),ar(T.T,function(k){T.T=void 0; throw"wasm.ps.f: "+k;}))}; fYg=function(T,Q){if(T.S)return T.S;T.S=IY5(T,Q);ar(T.S,function(k){T.S=void 0;throw"wasm.ps.c: "+k;}); return T.S}; IY5=function(T,Q){return u8(T,function(){var k=this;return function v(){var L,q,Y,U,R,Z,f,G,m,I,z,w,r,A;return PT(v,function(D){switch(D.S){case 1:g.Xg(D,2);L=[];q=window.ywc;if(!q){D.Ym(4);break}Y=q[Q];if(!Y){D.Ym(4);break}if(Y.mod)return D.return(Y.mod);if(!Y.modP){D.Ym(6);break}g.z5(D,7);U=t5;return C5(D,nQ(Y.modP),9);case 9:return D.return(U(D.T));case 7:g.by(D),L.unshift("pcm");case 6:if(Y.bin){k.T=A1(Y.bin);D.Ym(4);break}if(!Y.binP){D.Ym(4);break}g.z5(D,12);R=wq;Z=A1;f=t5;return C5(D,nQ(Y.binP), 14);case 14:k.T=Z.call(R,f(D.T));g.d6(D,4);break;case 12:g.by(D),k.T=void 0,L.unshift("pfb");case 4:if(!k.T){D.Ym(15);break}g.z5(D,16);G=t5;return C5(D,nQ(k.T),18);case 18:m=G(D.T);if(k.L)try{return D.return(new WebAssembly.Module(m))}catch(K){k.L=!1,L.unshift("f0cs")}I=t5;return C5(D,nQ(WebAssembly.compile(m)),19);case 19:return D.return(I(D.T));case 16:g.by(D),k.T=void 0,L.unshift("f0ca");case 15:return g.z5(D,20),mlJ(k,Q),z=t5,C5(D,nQ(k.T),22);case 22:w=z(D.T);if(k.L)try{return D.return(new WebAssembly.Module(w))}catch(K){k.L= !1,L.unshift("f1cs")}r=t5;return C5(D,nQ(WebAssembly.compile(w)),23);case 23:return D.return(r(D.T));case 20:A=g.by(D),k.T=void 0,k.Y=!1,L.unshift("f1ca: "+A);case 21:throw"["+L.map(function(K){return'"'+K+'"'}).join(", ")+"]"; case 2:g.aI(D),g.n5(D,0)}})}()})}; hGt=function(){}; sNT=function(){var T=this;this.proc_exit=function(){}; this.fd_write=function(Q,k,l){if(!T.exports)return 1;Q=new Uint32Array(T.exports.memory.buffer,k,l*2);k=[];for(var v=0;v0)Q=T.byterate,this.z9=!0;else{var l; k=(((l=navigator.connection)==null?void 0:l.downlink)||0)*64*1024;k>0&&(Q=k,this.z9=!0)}this.L.Q1(this.policy.B,Q);T.delay>0&&this.j.Q1(1,Math.min(T.delay,2));T.stall>0&&this.C.Q1(1,T.stall);T.init>0&&(this.Bd=Math.min(T.init,this.Bd));T.interruptions&&(this.Y=this.Y.concat(T.interruptions),this.Y.length>16&&this.Y.pop());this.qO=(0,g.XY)();this.policy.C>0&&(this.sK=new g.FA(this.p_,this.policy.C,this),g.P(this,this.sK),this.sK.start())}; tS=function(T,Q,k,l){T.L.Q1(l===void 0?Q:l,k/Q);T.B=(0,g.XY)()}; NMf=function(T){T.N||(T.N=(0,g.XY)());T.policy.D&&(T.B=(0,g.XY)())}; AQ5=function(T,Q){if(T.N){var k=Q-T.N;if(k<6E4){if(k>1E3){var l=T.interruptions;l.push(Math.ceil(k));l.sort(function(v,L){return L-v}); l.length>16&&l.pop()}T.xm+=k}}T.N=Q}; Od=function(T,Q,k,l,v,L){L=L===void 0?!1:L;T.e6.Q1(Q,k/Q);T.B=(0,g.XY)();v||T.D.Q1(1,Q-l);L||(T.N=0);T.qO>-1&&(0,g.XY)()-T.qO>3E4&&bwI(T)}; pc=function(T,Q,k){Q=Math.max(Q,T.S.T);T.C.Q1(1,k/Q)}; WL=function(T){T=T.j.hx()+T.i9.hx()||0;T=isNaN(T)?.5:T;return T=Math.min(T,5)}; $m=function(T,Q,k){isNaN(k)||(T.hj+=k);isNaN(Q)||(T.Jj+=Q)}; JS=function(T){T=T.L.hx();return T>0?T:1}; e4=function(T,Q,k){Q=Q===void 0?!1:Q;k=k===void 0?1048576:k;var l=JS(T);l=1/((T.C.hx()||0)*T.policy.z9+1/l);var v=T.e6.hx();v=v>0?v:1;var L=Math.max(l,v);T.policy.N>0&&v=4E3}; cQg=function(T){this.experiments=T;this.T=17;this.L=13E4;this.B=.5;this.Y=this.S=!1;this.qO=this.V("html5_use_histogram_for_bandwidth");this.N=g.jj(this.experiments,"html5_auxiliary_estimate_weight");this.z9=g.jj(this.experiments,"html5_stall_factor")||1;this.C=g.jj(this.experiments,"html5_check_for_idle_network_interval_ms");this.j=this.experiments.Wd("html5_trigger_loader_when_idle_network");this.D=this.experiments.Wd("html5_sabr_fetch_on_idle_network_preloaded_players")}; aYy=function(T,Q){T=T===void 0?{}:T;Q=Q===void 0?{}:Q;g.x.call(this);var k=this;this.values=T;this.jP=Q;this.S={};this.L=this.T=0;this.Y=new g.FA(function(){Dlf(k)},1E4); g.P(this,this.Y)}; Ed=function(T,Q){ukg(T,Q);return T.values[Q]&&T.jP[Q]?T.values[Q]/Math.pow(2,T.T/T.jP[Q]):0}; ukg=function(T,Q){T.values[Q]||(Q=Q0X(),T.values=Q.values||{},T.jP=Q.halfLives||{},T.S=Q.values?Object.assign({},Q.values):{})}; Dlf=function(T){var Q=Q0X();if(Q.values){Q=Q.values;for(var k={},l=g.B(Object.keys(T.values)),v=l.next();!v.done;v=l.next())v=v.value,Q[v]&&T.S[v]&&(T.values[v]+=Q[v]-T.S[v]),k[v]=Ed(T,v);T.S=k}Q=T.jP;k={};k.values=T.S;k.halfLives=Q;g.ri("yt-player-memory",k,2592E3)}; fn=function(T,Q,k,l,v){g.x.call(this);this.webPlayerContextConfig=Q;this.wJ=l;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.b7=this.QR=this.vn=this.NV=this.userDisplayName=this.userDisplayImage=this.Hl="";this.T={};this.d5={};this.controlsType="0";this.Fk=NaN;this.f_=!1;this.Wk=(0,g.XY)();this.h3=0;this.eO=this.Ct=!1;this.dC=!0;this.preferGapless=this.RM=this.uK=this.L=this.pG=!1;this.Dz=[];this.OW=!1;this.wV=0;T=T?g.Gs(T):{};Q&&Q.csiPageType&&(this.csiPageType=Q.csiPageType);Q&&Q.csiServiceName&& (this.csiServiceName=Q.csiServiceName);Q&&Q.preferGapless&&(this.preferGapless=Q.preferGapless);this.experiments=new ETC(Q?Q.serializedExperimentIds:T.fexp,Q?Q.serializedExperimentFlags:T.fflags);this.forcedExperiments=Q?Q.serializedForcedExperimentIds:o1("",T.forced_experiments)||void 0;this.cspNonce=(Q==null?0:Q.cspNonce)?Q.cspNonce:o1("",T.csp_nonce);this.V("web_player_deprecated_uvr_killswitch");try{var L=document.location.toString()}catch(vT){L=""}this.iK=L;this.ancestorOrigins=(l=window.location.ancestorOrigins)? Array.from(l):[];this.Y=jG(!1,Q?Q.isEmbed:T.is_embed);if(Q&&Q.device){if(l=Q.device,l.androidOsExperience&&(this.T.caoe=""+l.androidOsExperience),l.androidPlayServicesVersion&&(this.T.capsv=""+l.androidPlayServicesVersion),l.brand&&(this.T.cbrand=l.brand),l.browser&&(this.T.cbr=l.browser),l.browserVersion&&(this.T.cbrver=l.browserVersion),l.cobaltReleaseVehicle&&(this.T.ccrv=""+l.cobaltReleaseVehicle),this.T.c=l.interfaceName||"WEB",this.T.cver=l.interfaceVersion||"html5",l.interfaceTheme&&(this.T.ctheme= l.interfaceTheme),this.T.cplayer=l.interfacePlayerType||"UNIPLAYER",l.model&&(this.T.cmodel=l.model),l.network&&(this.T.cnetwork=l.network),l.os&&(this.T.cos=l.os),l.osVersion&&(this.T.cosver=l.osVersion),l.platform&&(this.T.cplatform=l.platform),L=S4(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),L==="all"||L==="once")l.chipset&&(this.d5.cchip=l.chipset),l.cobaltAppVersion&&(this.d5.ccappver=l.cobaltAppVersion),l.firmwareVersion&&(this.d5.cfrmver=l.firmwareVersion),l.deviceYear&&(this.d5.crqyear= l.deviceYear)}else this.T.c=T.c||"web",this.T.cver=T.cver||"html5",this.T.cplayer="UNIPLAYER";this.loaderUrl=Q?this.Y||nJ5(this)&&Q.loaderUrl?Q.loaderUrl||"":this.iK:this.Y||nJ5(this)&&T.loaderUrl?o1("",T.loaderUrl):this.iK;this.Y&&g.Tv("yt.embedded_player.embed_url",this.loaderUrl);this.j=HI(this.loaderUrl,K1f);l=this.loaderUrl;var q=q===void 0?!1:q;this.R0=PI(HI(l,xlu),l,q,"Trusted Ad Domain URL");this.OG=jG(!1,T.privembed);this.protocol=this.iK.indexOf("http:")===0?"http":"https";this.fz=G$C((Q? Q.customBaseYoutubeUrl:T.BASE_YT_URL)||"")||G$C(this.iK)||this.protocol+"://www.youtube.com/";q=Q?Q.eventLabel:T.el;l="detailpage";q==="adunit"?l=this.Y?"embedded":"detailpage":q==="embedded"||this.j?l=kq(l,q,PZg):q&&(l="embedded");this.i9=l;NE6();q=null;l=Q?Q.playerStyle:T.ps;L=g.CW(Hw5,l);!l||L&&!this.j||(q=l);this.playerStyle=q;this.B=g.CW(Hw5,this.playerStyle);this.houseBrandUserStatus=Q==null?void 0:Q.houseBrandUserStatus;this.qO=this.B&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.XQ=!this.qO;this.sK=jG(!1,T.disableplaybackui);this.disablePaidContentOverlay=jG(!1,Q==null?void 0:Q.disablePaidContentOverlay);this.disableSeek=jG(!1,Q==null?void 0:Q.disableSeek);this.enableSpeedOptions=(Q==null?void 0:Q.enableSpeedOptions)||(mD().defaultPlaybackRate?ya||g.iC||ic?g.Rn&&ze("20")||g.hW&&ze("4")||g.Va&&ze("11")||eS():!(g.Va&&!g.tH("chrome")||ya||g.tH("android")||g.tH("silk")):!1);this.Z6=jG(!1,T.enable_faster_speeds);var Y;this.supportsVarispeedExtendedFeatures=(Y=Q==null?void 0: Q.supportsVarispeedExtendedFeatures)!=null?Y:!1;this.S=jG(this.playerStyle==="blazer",T.is_html5_mobile_device||Q&&Q.isMobileDevice);this.Jj=yI()||VI();this.xs=this.V("mweb_allow_background_playback")?!1:this.S&&!this.B;this.e6=Cu();this.SP=g.TW;var U;this.s1=!!(Q==null?0:(U=Q.embedsHostFlags)==null?0:U.optOutApiDeprecation);var R;Q?Q.hideInfo!==void 0&&(R=!Q.hideInfo):R=T.showinfo;this.UY=g.Qk(this)&&!this.s1||jG(!jF(this)&&!kL(this)&&!this.B,R);this.xz=Q?!!Q.mobileIphoneSupportsInlinePlayback:jG(!1, T.playsinline);Y=this.S&&lF&&ou!=null&&ou>0&&ou<=2.3;U=Q?Q.useNativeControls:T.use_native_controls;this.C=g.Qk(this)&&this.S;R=this.S&&!this.C;U=g.vB(this)||!Y&&jG(R,U)?"3":"1";this.disableOrganicUi=!(Q==null||!Q.disableOrganicUi);R=Q?Q.controlsType:T.controls;this.controlsType=this.disableOrganicUi||R==="0"||R===0?"0":U;this.xE=this.S;this.color=kq("red",Q?Q.progressBarColor:T.color,tn6);this.Hf=this.controlsType==="3";this.Ig=!this.Y;this.Rx=(U=!this.Ig&&!kL(this)&&!this.qO&&!this.B&&!jF(this))&& !this.Hf&&this.controlsType==="1";this.gt=g.Ln(this)&&U&&this.controlsType==="0"&&!this.Rx&&!(Q==null?0:Q.embedsEnableEmc3ds);this.hn=this.vz=Y;this.t6=(this.controlsType==="3"||this.S||jG(!1,T.use_media_volume))&&!this.C;this.BH=Fw&&!g.HX(601)?!1:!0;this.Qm=this.Y||!1;this.DP=kL(this)?"":(this.loaderUrl||T.post_message_origin||"").substring(0,128);this.widgetReferrer=o1("",Q?Q.widgetReferrer:T.widget_referrer);var Z;Q?Q.disableCastApi&&(Z=!1):Z=T.enablecastapi;Z=!this.j||jG(!0,Z);Y=!0;Q&&Q.disableMdxCast&& (Y=!1);this.cg=this.V("enable_cast_for_web_unplugged")&&g.q0(this)&&Y||g.uP(this)&&Y||Z&&Y&&this.controlsType==="1"&&!this.S&&(kL(this)||g.Ln(this)||g.gj(this));this.QV=!!window.document.pictureInPictureEnabled||SI();Z=Q?!!Q.supportsAutoplayOverride:jG(!1,T.autoplayoverride);this.ek=!(this.S&&!g.Qk(this))&&!g.tH("nintendo wiiu")||Z;this.NK=(Q?!!Q.enableMutedAutoplay:jG(!1,T.mutedautoplay))&&!1;Z=(kL(this)||jF(this))&&this.playerStyle==="blazer";this.E4=Q?!!Q.disableFullscreen:!jG(!0,T.fs);Y=g.gi(g.M0(this))&& g.Qk(this);this.Tg=!this.E4&&(Z||g.GL())&&!Y;this.Wz=this.V("html5_picture_in_picture_logging_onresize");var f;this.OE=(f=g.jj(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?f:.33;this.xF=this.V("html5_picture_in_picture_blocking_onresize");this.iy=this.V("html5_picture_in_picture_blocking_ontimeupdate");this.u$=this.V("html5_picture_in_picture_blocking_document_fullscreen");this.dV=this.V("html5_picture_in_picture_blocking_standard_api");f=OG()&&ze(58)&&!VI();Z=We||typeof MediaSource=== "undefined";this.i5=this.V("uniplayer_block_pip")&&(f||Z)||this.xF||this.iy||this.dV;f=g.Qk(this)&&!this.s1;var G;Q?Q.disableRelatedVideos!==void 0&&(G=!Q.disableRelatedVideos):G=T.rel;this.Hn=f||jG(!this.B,G);this.Ek=jG(!1,Q?Q.enableContentOwnerRelatedVideos:T.co_rel);this.D=VI()&&ou>0&&ou<=4.4?"_top":"_blank";this.m0=g.gj(this);this.iS=jG(this.playerStyle==="blazer",Q?Q.enableCsiLogging:T.enablecsi);switch(this.playerStyle){case "blogger":G="bl";break;case "gmail":G="gm";break;case "gac":G="ga"; break;case "ads-preview":G="ap";break;case "books":G="gb";break;case "docs":case "flix":G="gd";break;case "duo":G="gu";break;case "google-live":G="gl";break;case "google-one":G="go";break;case "play":case "play-ads":G="gp";break;case "chat":G="hc";break;case "hangouts-meet":G="hm";break;case "photos-edu":case "picasaweb":G="pw";break;default:G="yt"}this.z9=G;this.hj=o1("",Q?Q.authorizedUserIndex:T.authuser);this.Gg=g.Qk(this)&&(this.OG||!mSJ()||this.Jj);var m;Q?Q.disableWatchLater!==void 0&&(m=!Q.disableWatchLater): m=T.showwatchlater;this.Tw=((G=!this.Gg)||!!this.hj&&G)&&jG(!this.qO,this.j?m:void 0);this.YP=Q?Q.isMobileDevice||!!Q.disableKeyboardControls:jG(!1,T.disablekb);this.loop=jG(!1,T.loop);this.pageId=o1("",Q?Q.initialDelegatedSessionId:T.pageid);this.cf=jG(!0,T.canplaylive);m=g.jj(this.experiments,"html5_default_audio_quality_setting_lr");var I;this.xu=(I=Ow6[Ow6[m]])!=null?I:0;this.zg=jG(!1,T.livemonitor);this.disableSharing=jG(this.B,Q?Q.disableSharing:T.ss);(I=Q&&this.V("fill_video_container_size_override_from_wpcc")? Q.videoContainerOverride:T.video_container_override)?(m=I.split("x"),m.length!==2?I=null:(I=Number(m[0]),m=Number(m[1]),I=isNaN(I)||isNaN(m)||I*m<=0?null:new g.Ji(I,m))):I=null;this.NE=I;this.mute=Q?!!Q.startMuted:jG(!1,T.mute);this.storeUserVolume=!this.mute&&jG(this.controlsType!=="0",Q?Q.storeUserVolume:T.store_user_volume);I=Q?Q.annotationsLoadPolicy:T.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:kq(void 0,I,YL);this.captionsLanguagePreference=Q?Q.captionsLanguagePreference|| "":o1("",T.cc_lang_pref);I=kq(2,Q?Q.captionsLanguageLoadPolicy:T.cc_load_policy,YL);this.controlsType==="3"&&I===2&&(I=3);this.mK=I;this.F_=Q?Q.hl||"en_US":o1("en_US",T.hl);this.region=Q?Q.contentRegion||"US":o1("US",T.cr);this.hostLanguage=Q?Q.hostLanguage||"en":o1("en",T.host_language);this.Jp=!this.OG&&Math.random()=480;this.schedule=new HL(f,new Fly(this.experiments),v);g.P(this,this.schedule);var z;this.enableSafetyMode=(z=Q==null?void 0:Q.initialEnableSafetyMode)!=null?z:jG(!1,T.enable_safety_mode);v=this.sK?!1:kL(this)&&this.playerStyle!== "blazer";var w;Q?Q.disableAutonav!=null&&(w=!Q.disableAutonav):w=T.allow_autonav;this.Ah=jG(v,!this.qO&&w);this.sendVisitorIdHeader=Q?!!Q.sendVisitorIdHeader:jG(!1,T.send_visitor_id_header);var r;this.playerStyle==="docs"&&(Q?r=Q.disableNativeContextMenu:r=T.disable_native_context_menu);this.disableNativeContextMenu=jG(!1,r);this.W5=fF(this)&&this.V("enable_skip_intro_button");this.embedConfig=o1("",Q?Q.serializedEmbedConfig:T.embed_config);this.xm=q5(T,g.Qk(this));this.L=this.xm==="EMBEDDED_PLAYER_MODE_PFL"; this.embedsErrorLinks=!(Q==null||!Q.embedsErrorLinks);this.QE=jG(!1,T.full_window);var A;this.u9=!((A=this.webPlayerContextConfig)==null?0:A.chromeless);var D;this.livingRoomAppMode=kq("LIVING_ROOM_APP_MODE_UNSPECIFIED",T.living_room_app_mode||(Q==null?void 0:(D=Q.device)==null?void 0:D.livingRoomAppMode),$lC);var K;w=lu(NaN,Q==null?void 0:(K=Q.device)==null?void 0:K.deviceYear);isNaN(w)||(this.deviceYear=w);this.transparentBackground=Q?!!Q.transparentBackground:jG(!1,T.transparent_background);this.showMiniplayerButton= Q?!!Q.showMiniplayerButton:jG(!1,T.show_miniplayer_button);var O;g.Qk(this)&&!(Q==null?0:(O=Q.embedsHostFlags)==null?0:O.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=Q?!!Q.externalFullscreen:jG(!1,T.external_fullscreen);this.showMiniplayerUiWhenMinimized=Q?!!Q.showMiniplayerUiWhenMinimized:jG(!1,T.use_miniplayer_ui);var E;this.dC=(E=T.show_loop_video_toggle)!=null?E:!0;this.bX=Math.random()<1E-4;if(T.onesie_hot_config||(Q==null?0:Q.onesieHotConfig))this.Z8=new wEu(T.onesie_hot_config, Q==null?void 0:Q.onesieHotConfig),g.P(this,this.Z8);this.isTectonic=Q?!!Q.isTectonic:!!T.isTectonic;this.playerCanaryState=k;this.playerCanaryStage=Q==null?void 0:Q.canaryStage;this.nG=new aYy;g.P(this,this.nG);this.datasyncId=(Q==null?void 0:Q.datasyncId)||g.$i("DATASYNC_ID");this.kh=g.$i("LOGGED_IN",!1);this.A9=(Q==null?void 0:Q.allowWoffleManagement)||!1;this.FU=Infinity;this.Yh=NaN;this.livingRoomPoTokenId=Q==null?void 0:Q.livingRoomPoTokenId;this.V("html5_high_res_logging_always")?this.uK=!0: this.uK=Math.random()*100=0&&T0&&T.bX&&(l.sort(),g.rB(new g.Wy("Player client parameters changed after startup",l)));T.userAge=lu(T.userAge,Q.user_age);T.Hl=o1(T.Hl,Q.user_display_email);T.userDisplayImage=o1(T.userDisplayImage,Q.user_display_image);g.OI(T.userDisplayImage)||(T.userDisplayImage= "");T.userDisplayName=o1(T.userDisplayName,Q.user_display_name);T.NV=o1(T.NV,Q.user_gender);T.csiPageType=o1(T.csiPageType,Q.csi_page_type);T.csiServiceName=o1(T.csiServiceName,Q.csi_service_name);T.iS=jG(T.iS,Q.enablecsi);T.pageId=o1(T.pageId,Q.pageid);if(k=Q.enabled_engage_types)T.enabledEngageTypes=new Set(k.split(","));Q.living_room_session_po_token&&(T.vk=Q.living_room_session_po_token.toString())}; GW=function(T,Q){return!T.B&&OG()&&ze(55)&&T.controlsType==="3"&&!Q}; g.mq=function(T){T=U8(T.fz);return T==="www.youtube-nocookie.com"?"www.youtube.com":T}; Iu=function(T,Q,k){return T.protocol+"://i1.ytimg.com/vi/"+Q+"/"+(k||"hqdefault.jpg")}; h9=function(T){return kL(T)&&!g.q0(T)}; g.vB=function(T){return T.V("html5_local_playsinline")?Fw&&!g.HX(602)&&!("playsInline"in mD()):Fw&&!T.xz||g.tH("nintendo wiiu")?!0:!1}; hS=function(T){return T.T.c}; g.G4=function(T){return/^TVHTML5/.test(hS(T))}; g.s8=function(T){return hS(T)==="TVHTML5"}; nJ5=function(T){return hS(T)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; W15=function(T){return T.T.cmodel==="CHROMECAST ULTRA/STEAK"||T.T.cmodel==="CHROMECAST/STEAK"}; g.SF=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; fF=function(T){return/web/i.test(hS(T))}; g.Cn=function(T){return hS(T).toUpperCase()==="WEB"}; Ze=function(T){return hS(T)==="WEB_KIDS"}; g.q0=function(T){return hS(T)==="WEB_UNPLUGGED"}; BB=function(T){return hS(T)==="TVHTML5_UNPLUGGED"}; g.ZX=function(T){return g.q0(T)||hS(T)==="TV_UNPLUGGED_CAST"||BB(T)}; g.uP=function(T){return hS(T)==="WEB_REMIX"}; g.zW=function(T){return hS(T)==="WEB_MUSIC_INTEGRATIONS"}; g.XT=function(T){return hS(T)==="WEB_EMBEDDED_PLAYER"}; g.dj=function(T){return(T.deviceIsAudioOnly||!g.hW||We||T.controlsType==="3"?!1:g.iC?T.Y&&g.HX(51):!0)||(T.deviceIsAudioOnly||!g.Rn||We||T.controlsType==="3"?!1:g.iC?T.Y&&g.HX(48):g.HX(38))||(T.deviceIsAudioOnly||!g.Va||We||T.controlsType==="3"?!1:g.iC?T.Y&&g.HX(37):g.HX(27))||!T.deviceIsAudioOnly&&g.wj&&!CHg()&&g.HX(11)||!T.deviceIsAudioOnly&&g.mp&&g.HX("604.4")}; F1t=function(T){if(g.Ln(T)&&lF)return!1;if(g.Rn){if(!g.HX(47)||!g.HX(52)&&g.HX(51))return!1}else if(g.mp)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; yQH=function(T,Q){return T.enabledEngageTypes.has(Q.toString())||EJu.includes(Q)}; kL=function(T){return T.i9==="detailpage"}; g.Ln=function(T){return T.i9==="embedded"}; N0=function(T){return T.i9==="leanback"}; jF=function(T){return T.i9==="adunit"||T.playerStyle==="gvn"}; g.gj=function(T){return T.i9==="profilepage"}; g.Qk=function(T){return T.Y&&g.Ln(T)&&!jF(T)&&!T.B}; A9=function(T){if(!T.userDisplayImage)return"";var Q=T.userDisplayImage.split("/");if(Q.length===5)return T=Q[Q.length-1].split("="),T[1]="s20-c",Q[Q.length-1]=T.join("="),Q.join("/");if(Q.length===8)return Q.splice(7,0,"s20-c"),Q.join("/");if(Q.length===9)return Q[7]+="-s20-c",Q.join("/");g.rB(new g.Wy("Profile image not a FIFE URL.",T.userDisplayImage));return T.userDisplayImage}; g.bF=function(T){var Q=g.mq(T);iwX.includes(Q)&&(Q="www.youtube.com");return T.protocol+"://"+Q}; g.rj=function(T,Q){Q=Q===void 0?"":Q;if(T.wJ){var k=new GN,l,v=T.wJ();v.signedOut?l="":v.token?l=v.token:v.pendingResult.then(function(L){v.signedOut?k.resolve(""):k.resolve(L.token)},function(L){g.rB(new g.Wy("b189348328_oauth_callback_failed",{error:L})); k.resolve(Q)}); return l!==void 0?rV(l):new AH(k)}return rV(Q)}; cB=function(T,Q){Q=Q===void 0?"":Q;return T.kh?A1(!0):ar(DQ(A1(g.rj(T,Q)),function(k){return A1(!!k)}),function(){return A1(!1)})}; VnJ=function(T,Q){Q==null||DQ(Q,function(k){T.VD=k;var l,v;(l=T.Z8)!=null&&(v=l.T)!=null&&(v.T=new cL(k,v.S,v.L),g.P(v,v.T))})}; U8=function(T){var Q=g.Rq(T);return(T=Number(g.UD(T)[4]||null)||null)?Q+":"+T:Q}; De=function(T,Q){Q=Q===void 0?!1:Q;var k=bk[T],l=TOt[k],v=QB6[T];if(!v||!l)return null;Q=new dC(Q?v.height:v.width,Q?v.width:v.height,v.fps);l=H9(l,Q,k);return new rC(T,l,{video:Q,qY:v.bitrate/8})}; kb5=function(T){var Q=TOt[bk[T]],k=jB5[T];return k&&Q?new rC(T,Q,{audio:new zX(k.audioSampleRate,k.numChannels)}):null}; au=function(T){this.T=T}; uF=function(T,Q,k,l){if(k)return bC();k={};var v=mD();Q=g.B(Q);for(var L=Q.next();!L.done;L=Q.next())if(L=L.value,T.canPlayType(v,L.getInfo().mimeType)||l){var q=L.T.video.quality;if(!k[q]||k[q].getInfo().Rd())k[q]=L}T=[];k.auto&&T.push(k.auto);l=g.B(N$);for(v=l.next();!v.done;v=l.next())(v=k[v.value])&&T.push(v);return T.length?rV(T):bC()}; lwT=function(T){this.itag=T.itag;this.url=T.url;this.codecs=T.codecs;this.width=T.width;this.height=T.height;this.fps=T.fps;this.bitrate=T.bitrate;var Q;this.S=((Q=T.audioItag)==null?void 0:Q.split(","))||[];this.qo=T.qo;this.jY=T.jY||"";this.MY=T.MY;this.audioChannels=T.audioChannels;this.T=""}; oKJ=function(T,Q,k,l){Q=Q===void 0?!1:Q;k=k===void 0?!0:k;l=l===void 0?{}:l;var v={};T=g.B(T);for(var L=T.next();!L.done;L=T.next()){L=L.value;if(Q&&MediaSource&&MediaSource.isTypeSupported){var q=L.type;L.audio_channels&&(q=q+"; channels="+L.audio_channels);if(!MediaSource.isTypeSupported(q)){l[L.itag]="tpus";continue}}if(k||!L.drm_families||L.eotf!=="smpte2084"&&L.eotf!=="arib-std-b67"){q=void 0;var Y={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},U=L.type.match(/codecs="([^"]*)"/); U=U?U[1]:"";L.audio_track_id&&(q=new g.aX(L.name,L.audio_track_id,!!L.is_default));var R=L.eotf;L=new lwT({itag:L.itag,url:L.url,codecs:U,width:Number(L.width),height:Number(L.height),fps:Number(L.fps),bitrate:Number(L.bitrate),audioItag:L.audio_itag,qo:R?Y[R]:void 0,jY:L.drm_families,MY:q,audioChannels:Number(L.audio_channels)});v[L.itag]=v[L.itag]||[];v[L.itag].push(L)}else l[L.itag]="enchdr"}return v}; vK5=function(T,Q,k,l,v){this.L=T;this.S=Q;this.N=k;this.cpn=l;this.B=v;this.Y=0;this.T=""}; LE6=function(T,Q){T.L.some(function(k){var l;return((l=k.MY)==null?void 0:l.getId())===Q}); T.T=Q}; nn=function(T,Q,k){T.cpn&&(Q=g.sD(Q,{cpn:T.cpn}));k&&(Q=g.sD(Q,{paired:k}));return Q}; qR6=function(T,Q){T=T.itag.toString();Q!==null&&(T+=Q.itag.toString());return T}; gK5=function(T){for(var Q=[],k=[],l=g.B(T.S),v=l.next();!v.done;v=l.next())v=v.value,v.bitrate<=T.Y?Q.push(v):k.push(v);Q.sort(function(L,q){return q.bitrate-L.bitrate}); k.sort(function(L,q){return L.bitrate-q.bitrate}); T.S=Q.concat(k)}; Kn=function(T,Q,k){this.T=T;this.S=Q;this.expiration=k;this.Xs=null}; Mgu=function(T,Q){if(!(We||JH()||WD()))return null;T=oKJ(Q,T.V("html5_filter_fmp4_in_hls"));if(!T)return null;Q=[];for(var k={},l=g.B(Object.keys(T)),v=l.next();!v.done;v=l.next()){v=g.B(T[v.value]);for(var L=v.next();!L.done;L=v.next()){var q=L.value;q.MY&&(L=q.MY.getId(),k[L]||(q=new g.wt(L,q.MY),k[L]=q,Q.push(q)))}}return Q.length>0?Q:null}; fwC=function(T,Q,k,l,v,L,q){if(!(We||JH()||WD()))return bC();var Y={},U=YRt(k),R=oKJ(k,T.V("html5_filter_fmp4_in_hls"),T.N.C,Y);if(!R)return q({noplst:1}),bC();UAg(R);k={};var Z=(k.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",k),f;k=[];var G=[],m=[],I=null,z="";l=l&&l.match(/hls_timedtext_playlist/)?new lwT({itag:"0",url:l,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,MY:new g.aX("English","en",!1)}):null;for(var w=g.B(Object.keys(R)),r=w.next();!r.done;r=w.next())if(r=r.value,!T.V("html5_disable_drm_hfr_1080")|| r!=="383"&&r!=="373"){r=g.B(R[r]);for(var A=r.next();!A.done;A=r.next())if(A=A.value,A.width){for(var D=g.B(A.S),K=D.next();!K.done;K=D.next())if(K=K.value,R[K]){A.T=K;break}A.T||(A.T=Rr5(R,A));if(D=R[A.T])if(k.push(A),A.jY==="fairplay"&&(f=Z),K="",A.qo==="PQ"?K="smpte2084":A.qo==="HLG"&&(K="arib-std-b67"),K&&(z=K),m.push(Z7f(D,[A],l,L,A.itag,A.width,A.height,A.fps,U,void 0,void 0,f,K)),!I||A.width*A.height*A.fps>I.width*I.height*I.fps)I=A}else G.push(A)}else Y[r]="disdrmhfr";m.reduce(function(O, E){return E.getInfo().isEncrypted()&&O},!0)&&(f=Z); v=Math.max(v,0);Z=I||{};R=Z.fps===void 0?0:Z.fps;I=Z.width===void 0?0:Z.width;Z=Z.height===void 0?0:Z.height;w=T.V("html5_native_audio_track_switching");m.push(Z7f(G,k,l,L,"93",I,Z,R,U,"auto",v,f,z,w));Object.entries(Y).length&&q(Y);return uF(T.N,m,GW(T,Q),!1)}; Z7f=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m){for(var I=0,z="",w=g.B(T),r=w.next();!r.done;r=w.next())r=r.value,z||(z=r.itag),r.audioChannels&&r.audioChannels>I&&(I=r.audioChannels,z=r.itag);v=new rC(v,"application/x-mpegURL",{audio:new zX(0,I),video:new dC(L,q,Y,null,void 0,R,void 0,G),jY:f,Xb:z});T=new vK5(T,Q,k?[k]:[],l,!!m);T.Y=Z?Z:1369843;return new Kn(v,T,U)}; YRt=function(T){T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())if(Q=Q.value,Q.url&&(Q=Q.url.split("expire/"),!(Q.length<=1)))return+Q[1].split("/")[0];return NaN}; Rr5=function(T,Q){for(var k=g.B(Object.keys(T)),l=k.next();!l.done;l=k.next()){l=l.value;var v=T[l][0];if(!v.width&&v.jY===Q.jY&&!v.audioChannels)return l}return""}; UAg=function(T){for(var Q=new Set,k=g.B(Object.values(T)),l=k.next();!l.done;l=k.next())l=l.value,l.length&&(l=l[0],l.height&&l.codecs.startsWith("vp09")&&Q.add(l.height));k=[];if(Q.size){l=g.B(Object.keys(T));for(var v=l.next();!v.done;v=l.next())if(v=v.value,T[v].length){var L=T[v][0];L.height&&Q.has(L.height)&&!L.codecs.startsWith("vp09")&&k.push(v)}}Q=g.B(k);for(k=Q.next();!k.done;k=Q.next())delete T[k.value]}; xL=function(T,Q){this.T=T;this.S=Q}; Gb5=function(T,Q,k,l){var v=[];k=g.B(k);for(var L=k.next();!L.done;L=k.next()){var q=L.value;if(q.url){L=new g.J_(q.url,!0);if(q.s){var Y=L,U=q.sp,R=FUC(decodeURIComponent(q.s));Y[M[10]](U,encodeURIComponent(R))}Y=g.B(Object.keys(l));for(U=Y.next();!U.done;U=Y.next())U=U.value,L.set(U,l[U]);q=$9(q.type,q.quality,q.itag,q.width,q.height);v.push(new xL(q,L))}}return uF(T.N,v,GW(T,Q),!1)}; PB=function(T,Q){this.T=T;this.S=Q}; mAX=function(T,Q,k){var l=[];k=g.B(k);for(var v=k.next();!v.done;v=k.next())if((v=v.value)&&v.url){var L=$9(v.type,"medium","0");l.push(new PB(L,v.url))}return uF(T.N,l,GW(T,Q),!1)}; Iwy=function(T,Q){var k=[],l=$9(Q.type,"auto",Q.itag);k.push(new PB(l,Q.url));return uF(T.N,k,!1,!0)}; sBy=function(T){return T&&hrb[T]?hrb[T]:null}; SR5=function(T){switch(T){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 T;default:return"sabr.config"}}; CQI=function(T){if(T=T.commonConfig)this.url=T.url,this.urlQueryOverride=T.urlQueryOverride,T.ustreamerConfig&&(this.Vl=DE(T.ustreamerConfig)||void 0)}; BO6=function(T,Q){var k;if(Q=Q==null?void 0:(k=Q.watchEndpointSupportedOnesieConfig)==null?void 0:k.html5PlaybackOnesieConfig)T.zK=new CQI(Q)}; g.HB=function(T){T=T===void 0?{}:T;this.languageCode=T.languageCode||"";this.languageName=T.languageName||null;this.kind=T.kind||"";this.name=T.name===void 0?null:T.name;this.displayName=T.displayName||null;this.id=T.id||null;this.T=T.is_servable||!1;this.isTranslateable=T.is_translateable||!1;this.url=T.url||null;this.vssId=T.vss_id||"";this.isDefault=T.is_default||!1;this.translationLanguage=T.translationLanguage||null;this.xtags=T.xtags||"";this.captionId=T.captionId||""}; g.O8=function(T){var Q={languageCode:T.languageCode,languageName:T.languageName,displayName:g.t9(T),kind:T.kind,name:T.name,id:T.id,is_servable:T.T,is_default:T.isDefault,is_translateable:T.isTranslateable,vss_id:T.vssId};T.xtags&&(Q.xtags=T.xtags);T.captionId&&(Q.captionId=T.captionId);T.translationLanguage&&(Q.translationLanguage=T.translationLanguage);return Q}; g.pn=function(T){return T.translationLanguage?T.translationLanguage.languageCode:T.languageCode}; g.zrg=function(T){var Q=T.vssId;T.translationLanguage&&Q&&(Q="t"+Q+"."+g.pn(T));return Q}; g.t9=function(T){var Q=[];if(T.displayName)Q.push(T.displayName);else{var k=T.languageName||"";Q.push(k);T.kind==="asr"&&k.indexOf("(")===-1&&Q.push(" (Subt\u00edtulos autom\u00e1ticos)");T.name&&Q.push(" - "+T.name)}T.translationLanguage&&Q.push(" >> "+T.translationLanguage.languageName);return Q.join("")}; NOb=function(T,Q,k,l){T||(T=Q&&XO5.hasOwnProperty(Q)&&wOT.hasOwnProperty(Q)?wOT[Q]+"_"+XO5[Q]:void 0);Q=T;if(!Q)return null;T=Q.match(dAg);if(!T||T.length!==5)return null;if(T=Q.match(dAg)){var v=Number(T[3]),L=[7,8,10,5,6];T=!(Number(T[1])===1&&v===8)&&L.indexOf(v)>=0}else T=!1;return k||l||T?Q:null}; WB=function(T,Q){for(var k={},l=g.B(Object.keys(Aku)),v=l.next();!v.done;v=l.next()){v=v.value;var L=Q?Q+v:v;L=T[L+"_webp"]||T[L];g.OI(L)&&(k[Aku[v]]=L)}return k}; $L=function(T){var Q={};if(!T||!T.thumbnails)return Q;T=T.thumbnails.filter(function(Y){return!!Y.url}); T.sort(function(Y,U){return Y.width-U.width||Y.height-U.height}); for(var k=g.B(Object.keys(b7J)),l=k.next();!l.done;l=k.next()){var v=Number(l.value);l=b7J[v];for(var L=g.B(T),q=L.next();!q.done;q=L.next())if(q=q.value,q.width>=v){v=rkC(q.url);g.OI(v)&&(Q[l]=v);break}}(T=T.pop())&&T.width>=1280&&(T=rkC(T.url),g.OI(T)&&(Q["maxresdefault.jpg"]=T));return Q}; rkC=function(T){return T.startsWith("//")?"https:"+T:T}; J9=function(T){return T&&T.baseUrl||""}; eF=function(T){T=g.k5(T);for(var Q=g.B(Object.keys(T)),k=Q.next();!k.done;k=Q.next()){k=k.value;var l=T[k];T[k]=Array.isArray(l)?l[0]:l}return T}; ckC=function(T,Q){T.botguardData=Q.playerAttestationRenderer.botguardData;Q=Q.playerAttestationRenderer.challenge;Q!=null&&(T.d_=Q)}; ujy=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next()){k=k.value;var l=k.interstitials.map(function(q){var Y=g.t(q,DAH);if(Y)return{is_yto_interstitial:!0,raw_player_response:Y};if(q=g.t(q,awX))return Object.assign({is_yto_interstitial:!0},QI(q))}); l=g.B(l);for(var v=l.next();!v.done;v=l.next())switch(v=v.value,k.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":T.interstitials=T.interstitials.concat({time:0,playerVars:v,Lv:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":T.interstitials=T.interstitials.concat({time:0x7ffffffffffff,playerVars:v,Lv:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var L=Number(k.podConfig.timeToInsertAtMillis);T.interstitials=T.interstitials.concat({time:L,playerVars:v, Lv:L===0?5:7})}}}; nKJ=function(T,Q){if(Q=Q.find(function(k){return!(!k||!k.tooltipRenderer)}))T.tooltipRenderer=Q.tooltipRenderer}; KEg=function(T,Q){Q.subscribeCommand&&(T.subscribeCommand=Q.subscribeCommand);Q.unsubscribeCommand&&(T.unsubscribeCommand=Q.unsubscribeCommand);Q.addToWatchLaterCommand&&(T.addToWatchLaterCommand=Q.addToWatchLaterCommand);Q.removeFromWatchLaterCommand&&(T.removeFromWatchLaterCommand=Q.removeFromWatchLaterCommand);Q.getSharePanelCommand&&(T.getSharePanelCommand=Q.getSharePanelCommand)}; xA5=function(T,Q){Q!=null?(T.v5=Q,T.hh=!0):(T.v5="",T.hh=!1)}; FT=function(T,Q){this.type=T||"";this.id=Q||""}; E8=function(T){return new FT(T.substring(0,2),T.substring(2))}; yk=function(T,Q){this.FB=T;this.author="";this.y5=null;this.playlistLength=0;this.T=this.sessionData=null;this.j={};this.title="";if(Q){this.author=Q.author||Q.playlist_author||"";this.title=Q.playlist_title||"";if(T=Q.session_data)this.sessionData=Vt(T,"&");var k;this.T=((k=Q.thumbnail_ids)==null?void 0:k.split(",")[0])||null;this.j=WB(Q,"playlist_");this.videoId=Q.video_id||void 0;if(k=Q.list)switch(Q.listType){case "user_uploads":this.playlistId=(new FT("UU","PLAYER_"+k)).toString();break;default:if(T= Q.playlist_length)this.playlistLength=Number(T)||0;this.playlistId=E8(k).toString();if(Q=Q.video)this.videoId=(Q[0]||null).video_id||void 0}else Q.playlist&&(this.playlistLength=Q.playlist.toString().split(",").length)}}; iF=function(T,Q){this.FB=T;this.o9=this.author="";this.y5=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.mO=this.lengthText="";this.sessionData=null;this.j={};this.title="";if(Q){this.ariaLabel=Q.aria_label||void 0;this.author=Q.author||"";this.o9=Q.o9||"";if(T=Q.endscreen_autoplay_session_data)this.y5=Vt(T,"&");this.rN=Q.rN;this.isLivePlayback=Q.live_playback==="1";this.isUpcoming=!!Q.isUpcoming;if(T=Q.length_seconds)this.lengthSeconds=typeof T==="string"?Number(T):T;this.lengthText= Q.lengthText||"";this.mO=Q.mO||"";this.publishedTimeText=Q.publishedTimeText||void 0;if(T=Q.session_data)this.sessionData=Vt(T,"&");this.shortViewCount=Q.short_view_count_text||void 0;this.j=WB(Q);this.title=Q.title||"";this.videoId=Q.docid||Q.video_id||Q.videoId||Q.id||void 0;this.watchUrl=Q.watchUrl||void 0}}; PQ6=function(T){var Q,k,l=(Q=T.getWatchNextResponse())==null?void 0:(k=Q.contents)==null?void 0:k.twoColumnWatchNextResults,v,L,q,Y,U;T=(v=T.getWatchNextResponse())==null?void 0:(L=v.playerOverlays)==null?void 0:(q=L.playerOverlayRenderer)==null?void 0:(Y=q.endScreen)==null?void 0:(U=Y.watchNextEndScreenRenderer)==null?void 0:U.results;if(!T){var R,Z;T=l==null?void 0:(R=l.endScreen)==null?void 0:(Z=R.endScreen)==null?void 0:Z.results}return T}; g.TV=function(T){var Q,k,l;T=g.t((Q=T.getWatchNextResponse())==null?void 0:(k=Q.playerOverlays)==null?void 0:(l=k.playerOverlayRenderer)==null?void 0:l.decoratedPlayerBarRenderer,Vk);return g.t(T==null?void 0:T.playerBar,H7C)}; tgg=function(T){this.T=T.playback_progress_0s_url;this.L=T.playback_progress_2s_url;this.S=T.playback_progress_10s_url}; O7H=function(){if(Qv===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(Q){}a:{try{var T=!!self.localStorage}catch(Q){T=!1}if(T&&(T=g.uw(g.$q()+"::yt-player"))){Qv=new xX(T);break a}Qv=void 0}}return Qv}; g.j7=function(){var T=O7H();if(!T)return{};try{var Q=T.get("yt-player-lv");return JSON.parse(Q||"{}")}catch(k){return{}}}; g.pOJ=function(T){var Q=O7H();Q&&(T=JSON.stringify(T),Q.set("yt-player-lv",T))}; g.ka=function(T){return g.j7()[T]||0}; g.lO=function(T,Q){var k=g.j7();Q!==k[T]&&(Q!==0?k[T]=Q:delete k[T],g.pOJ(k))}; g.o8=function(T){return g.a(function(Q){return Q.return(g.tF(WEJ(),T))})}; Lt=function(T,Q,k,l,v,L,q,Y){var U,R,Z,f,G,m;return g.a(function(I){switch(I.S){case 1:return U=g.ka(T),U===4?I.return(4):g.c(I,g.EY(),2);case 2:R=I.T;if(!R)throw g.hF("wiac");if(!Y||q===void 0){I.Ym(3);break}return g.c(I,$A5(Y,q),4);case 4:q=I.T;case 3:return Z=k.lastModified||"0",g.c(I,g.o8(R),5);case 5:return f=I.T,g.z5(I,6),vv++,g.c(I,g.AF(f,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",r5:!0},function(z){if(L!==void 0&&q!==void 0){var w=""+T+"|"+Q.id+"|"+Z+"|"+String(L).padStart(10, "0");w=g.bn(z.objectStore("media"),q,w)}else w=g.So.resolve(void 0);var r=JkI(T,Q.bK()),A=JkI(T,!Q.bK()),D={fmts:erH(l),format:k||{}};r=g.bn(z.objectStore("index"),D,r);var K=l.downloadedEndTime===-1;D=K?z.objectStore("index").get(A):g.So.resolve(void 0);var O={fmts:"music",format:{}};z=K&&v&&!Q.bK()?g.bn(z.objectStore("index"),O,A):g.So.resolve(void 0);return g.So.all([z,D,w,r]).then(function(E){E=g.B(E);E.next();E=E.next().value;vv--;var e=g.ka(T);if(e!==4&&K&&v||E!==void 0&&g.FET(E.fmts))e=1,g.lO(T, e);return e})}),8); case 8:return I.return(I.T);case 6:G=g.by(I);vv--;m=g.ka(T);if(m===4)return I.return(m);g.lO(T,4);throw G;}})}; g.EKI=function(T){var Q,k;return g.a(function(l){if(l.S==1)return g.c(l,g.EY(),2);if(l.S!=3){Q=l.T;if(!Q)throw g.hF("ri");return g.c(l,g.o8(Q),3)}k=l.T;return l.return(g.AF(k,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(v){var L=IDBKeyRange.bound(T+"|",T+"~");return v.objectStore("index").getAll(L).then(function(q){return q.map(function(Y){return Y?Y.format:{}})})}))})}; i7I=function(T,Q,k,l,v){var L,q,Y;return g.a(function(U){if(U.S==1)return g.c(U,g.EY(),2);if(U.S!=3){L=U.T;if(!L)throw g.hF("rc");return g.c(U,g.o8(L),3)}q=U.T;Y=g.AF(q,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(R){var Z=""+T+"|"+Q+"|"+k+"|"+String(l).padStart(10,"0");return R.objectStore("media").get(Z)}); return v?U.return(Y.then(function(R){if(R===void 0)throw Error("No data from indexDb");return yk6(v,R)}).catch(function(R){throw new g.Wy("Error while reading chunk: "+R.name+", "+R.message); })):U.return(Y)})}; g.FET=function(T){return T?T==="music"?!0:T.includes("dlt=-1")||!T.includes("dlt="):!1}; JkI=function(T,Q){return""+T+"|"+(Q?"v":"a")}; erH=function(T){var Q={};return TO((Q.dlt=T.downloadedEndTime.toString(),Q.mket=T.maxKnownEndTime.toString(),Q.avbr=T.averageByteRate.toString(),Q))}; THH=function(T){var Q={},k={};T=g.B(T);for(var l=T.next();!l.done;l=T.next()){var v=l.value,L=v.split("|");v.match(g.VgJ)?(l=Number(L.pop()),isNaN(l)?k[v]="?":(L=L.join("|"),(v=Q[L])?(L=v[v.length-1],l===L.end+1?L.end=l:v.push({start:l,end:l})):Q[L]=[{start:l,end:l}])):k[v]="?"}T=g.B(Object.keys(Q));for(l=T.next();!l.done;l=T.next())l=l.value,k[l]=Q[l].map(function(q){return q.start+"-"+q.end}).join(","); return k}; qY=function(T){g.ox.call(this);this.T=null;this.L=new xh;this.T=null;this.B=new Set;this.crossOrigin=T||""}; QAf=function(T,Q,k){for(k=g4(T,k);k>=0;){var l=T.levels[k];if(l.isLoaded(MY(l,Q))&&(l=g.Ya(l,Q)))return l;k--}return g.Ya(T.levels[0],Q)}; kT5=function(T,Q,k){k=g4(T,k);for(var l,v;k>=0;k--)if(l=T.levels[k],v=MY(l,Q),!l.isLoaded(v)){l=T;var L=k,q=L+"-"+v;l.B.has(q)||(l.B.add(q),l.L.enqueue(L,{Wo:L,w0:v}))}jAX(T)}; jAX=function(T){if(!T.T&&!T.L.isEmpty()){var Q=T.L.remove();T.T=lDy(T,Q)}}; lDy=function(T,Q){var k=document.createElement("img");T.crossOrigin&&(k.crossOrigin=T.crossOrigin);k.src=T.levels[Q.Wo].IK(Q.w0);k.onload=function(){var l=Q.Wo,v=Q.w0;T.T!==null&&(T.T.onload=null,T.T=null);l=T.levels[l];l.loaded.add(v);jAX(T);var L=l.columns*l.rows;v*=L;l=Math.min(v+L-1,l.nk()-1);v=[v,l];T.publish("l",v[0],v[1])}; return k}; g.Uy=function(T,Q,k,l){this.level=T;this.Y=Q;this.loaded=new Set;this.level=T;this.Y=Q;T=k.split("#");this.width=Math.floor(Number(T[0]));this.height=Math.floor(Number(T[1]));this.frameCount=Math.floor(Number(T[2]));this.columns=Math.floor(Number(T[3]));this.rows=Math.floor(Number(T[4]));this.T=Math.floor(Number(T[5]));this.L=T[6];this.signature=T[7];this.videoLength=l}; MY=function(T,Q){return Math.floor(Q/(T.columns*T.rows))}; g.Ya=function(T,Q){Q>=T.Bq()&&T.MU();var k=MY(T,Q),l=T.columns*T.rows,v=Q%l;Q=v%T.columns;v=Math.floor(v/T.columns);var L=T.MU()+1-l*k;if(L1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; oNJ=function(T,Q,k){return(T=T.levels[Q])?T.Fd(k):-1}; g4=function(T,Q){var k=T.Y.get(Q);if(k)return k;k=T.levels.length;for(var l=0;l=Q)return T.Y.set(Q,l),l;T.Y.set(Q,k-1);return k-1}; Zd=function(T,Q,k,l){k=k.split("#");k=[k[1],k[2],0,k[3],k[4],-1,k[0],""].join("#");g.Uy.call(this,T,Q,k,0);this.S=null;this.N=l?2:0}; ft=function(T,Q,k,l){R8.call(this,T,0,void 0,Q,!(l===void 0||!l));for(T=0;T=0?g6.countDownSecsForFullscreen*1E3:-1);T.V("web_autonav_color_transition")&&g6.watchToWatchTransitionRenderer&&(T.watchToWatchTransitionRenderer=g.t(g6.watchToWatchTransitionRenderer, sAH))}var XV=PQ6(T);if(XV){var gJ,MW,mh,Id=XV==null?void 0:(gJ=XV[0])==null?void 0:(MW=gJ.endScreenVideoRenderer)==null?void 0:(mh=MW.navigationEndpoint)==null?void 0:mh.clickTrackingParams,Dt=g.zV(T);Id&&Dt&&(Dt.sessionData={itct:Id})}T.e6.currentVideoThumbnail&&(T.j=$L(T.e6.currentVideoThumbnail));var PW,HW,t7,v4,aj,Sl=(PW=T.e6)==null?void 0:(HW=PW.contents)==null?void 0:(t7=HW.twoColumnWatchNextResults)==null?void 0:(v4=t7.results)==null?void 0:(aj=v4.results)==null?void 0:aj.contents;if(Sl&&Sl[1]){var up, LL,O6,wK,wL=(up=Sl[1].videoSecondaryInfoRenderer)==null?void 0:(LL=up.owner)==null?void 0:(O6=LL.videoOwnerRenderer)==null?void 0:(wK=O6.thumbnail)==null?void 0:wK.thumbnails;wL&&wL.length&&(T.profilePicture=wL[wL.length-1].url)}var O4=LY(Q),qF,ho=(qF=T.getWatchNextResponse())==null?void 0:qF.onResponseReceivedEndpoints;if(ho)for(var MF=g.B(ho),nH=MF.next();!nH.done;nH=MF.next()){var sB=nH.value;g.t(sB,XC)&&(T.xw=g.t(sB,XC));var Lj=g.t(sB,Sgb),O_=void 0;if((O_=Lj)==null?0:O_.entityKeys)T.O2=Lj.entityKeys|| [],Lj.visibleOnLoadKeys&&(T.visibleOnLoadKeys=Lj.visibleOnLoadKeys)}if(T.V("web_key_moments_markers")){var gs=g.w4.getState().entities,UJ=g.y8("visibility_override","markersVisibilityOverrideEntity");var pe=V8(gs,"markersVisibilityOverrideEntity",UJ);T.K_=(pe==null?void 0:pe.videoId)===(T.videoId||O4)&&(pe==null?0:pe.visibilityOverrideMarkersKey)?pe.visibilityOverrideMarkersKey:T.visibleOnLoadKeys;T.visibleOnLoadKeys=[].concat(g.ZH(T.K_))}}}; Ct=function(T){var Q;return((Q=T.autoplaySwitchButtonRenderer)==null?void 0:Q.enabled)!==void 0}; d4=function(T){return!!(T.L&&T.L.videoInfos&&T.L.videoInfos.length)}; g.Dd=function(T){var Q=T.C;T.V("html5_gapless_unlimit_format_selection")&&NY(T)&&(Q=!1);var k=!!T.T&&T.T.Cc,l=T.FB,v=T.vI(),L=AL(T),q=T.p_,Y=Q,U=T.isOtf();Q=T.jF();var R=T.zg,Z=T.getUserAudio51Preference(),f=bO(T),G=r4(T),m=new Hdy(l);if(l.J3()||l.V("html5_logging_format_selection"))m.S=!0;m.Jj=L;m.p_=q&&l.j;m.i9=Z;g.tH("windows nt 5.1")&&!g.Rn&&(m.Ql=!0);if(L=v)L=g.dj(l)?F1t(l):!1;L&&(m.z9=!0);Y&&(m.Ql=!0,m.Z8=!0);U&&!l.V("html5_otf_prefer_vp9")&&(m.Ql=!0);l.playerStyle==="picasaweb"&&(U&&(m.Ql= !1),m.qO=!1);R&&(m.Ql=!0);Wr(l.N,$g.CHANNELS)&&(l.V("html5_enable_ac3")&&(m.Y=!0),l.V("html5_enable_eac3")&&(m.N=!0),l.V("html5_enable_ac3_gapless")&&(m.e6=!0));l.V("html5_block_8k_hfr")&&(m.K_=!0);m.B=g.jj(l.experiments,"html5_max_selectable_quality_ordinal");m.C=g.jj(l.experiments,"html5_min_selectable_quality_ordinal");ic&&(m.DP=480);if(k||v)m.qO=!1;m.f_=!1;m.disableAv1=f;k=lc(l,m.T,void 0,m.disableAv1);k>0&&k<2160&&(vM()||l.V("html5_format_hybridization"))&&(m.T.supportsChangeType=+vM(),m.ID= k);k>=2160&&(m.xm=!0);opf()&&!l.V("disable_av1_setting")&&(m.T.serveVp9OverAv1IfHigherRes=0,m.t6=!1);m.jF=Q;m.sK=g.$n||TL()&&!Q?!1:!0;m.j=l.V("html5_format_hybridization");m.QR=l.V("html5_disable_encrypted_vp9_live_non_2k_4k");m.h3=G;cv(T)&&(m.Fk=T.V("html5_prefer_language_over_codec"));WD()&&T.playerResponse&&T.playerResponse.playerConfig&&T.playerResponse.playerConfig.webPlayerConfig&&T.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(m.Y=!0,m.N=!0);T.C&&T.isAd()&&(T.vz&& (m.D=T.vz),T.OE&&(m.L=T.OE));m.Bd=T.isLivePlayback&&T.bl()&&T.FB.V("html5_drm_live_audio_51");m.Tg=T.HM;m.d5=!cv(T);return T.YP=m}; bO=function(T){return T.FB.V("html5_disable_av1")||T.V("html5_gapless_shorts_disable_av1")&&NY(T)?!0:!1}; C1T=function(T){dS("drm_pb_s",void 0,T.z9);T.Jj||T.T&&Pr(T.T);var Q={};T.T&&(Q=hFC(T.Ak,g.Dd(T),T.FB.N,T.T,function(k){return T.publish("ctmp","fmtflt",k)},!0,new Set)); Q=new G6(Q,T.FB,T.Er,T.useCobaltWidevine?WD()?a8(T):!1:!1,function(k,l){T.T9(k,l)}); g.P(T,Q);T.Xm=!1;T.loading=!0;Wl5(Q,function(k){dS("drm_pb_f",void 0,T.z9);for(var l=g.B(k),v=l.next();!v.done;v=l.next())switch(v=v.value,v.flavor){case "fairplay":v.Jj=T.Jj;v.Ps=T.Ps;v.Gt=T.Gt;break;case "widevine":v.RM=T.RM}T.NE=k;if(T.NE.length>0&&(T.N=T.NE[0],T.FB.J3())){k={};l=g.B(Object.entries(T.N.T));for(v=l.next();!v.done;v=l.next()){var L=g.B(v.value);v=L.next().value;L=L.next().value;var q="unk";(v=v.match(/(.*)codecs="(.*)"/))&&(q=v[2]);k[q]=L}T.T9("drmProbe",k)}T.MC()})}; BHg=function(T,Q){if(Q.length===0||uO(T))return null;T.FB.N.L&&(Qa=!0);var k=T.jY;var l=T.lengthSeconds,v=T.isLivePlayback,L=T.KY,q=T.FB,Y=XM5(Q);if(v||L){q=q.experiments;l=new P9("",q,!0);l.S=!L;l.Cc=!0;l.isManifestless=!0;l.isLive=!L;l.KY=L;Q=g.B(Q);for(v=Q.next();!v.done;v=Q.next()){var U=v.value;v=OE(U,k);Y=Vp(U);Y=W9(Y.rI||U.url||"",Y.Fq,Y.s);var R=Y.get("id");R&&R.includes("%7E")&&(l.D=!0);var Z=void 0;R=(Z=q)==null?void 0:Z.Wd("html5_max_known_end_time_rebase");Z=Number(U.targetDurationSec|| 5);U=Number(U.maxDvrDurationSec||14400);var f=Number(Y.get("mindsq")||Y.get("min_sq")||"0"),G=Number(Y.get("maxdsq")||Y.get("max_sq")||"0")||Infinity;l.sW=l.sW||f;l.Kz=l.Kz||G;var m=!Wj(v.mimeType);Y&&ny(l,new sE(Y,v,{hW:Z,ly:m,Bf:U,sW:f,Kz:G,P$:300,KY:L,Ic:R}))}k=l}else if(Y==="FORMAT_STREAM_TYPE_OTF"){l=l===void 0?0:l;L=new P9("",q.experiments,!1);L.duration=l||0;q=g.B(Q);for(l=q.next();!l.done;l=q.next())l=l.value,Q=OE(l,k,L.duration),v=Vp(l),(v=W9(v.rI||l.url||"",v.Fq,v.s))&&(Q.streamType==="FORMAT_STREAM_TYPE_OTF"? ny(L,new Sq(v,Q,"sq/0")):ny(L,new Dj(v,Q,Qb(l.initRange),Qb(l.indexRange))));L.isOtf=!0;k=L}else{l=l===void 0?0:l;L=new P9("",q.experiments,!1);L.duration=l||0;q=g.B(Q);for(l=q.next();!l.done;l=q.next())Y=l.value,l=OE(Y,k,L.duration),Q=Qb(Y.initRange),v=Qb(Y.indexRange),R=Vp(Y),(Y=W9(R.rI||Y.url||"",R.Fq,R.s))&&ny(L,new Dj(Y,l,Q,v));k=L}L=T.isLivePlayback&&!T.KY&&!T.hj&&!T.isPremiere;T.V("html5_live_head_playable")&&(!nt(T)&&L&&T.T9("missingLiveHeadPlayable",{}),T.FB.z9==="yt"&&(k.sK=!0));return k}; uO=function(T){return WD()?!a8(T):JH()?!(!T.Jj||!T.V("html5_enable_safari_fairplay")&&BL()):!1}; a8=function(T){return T.V("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.S7=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next())if(k=k.value,k.cueRangeSetIdentifier){var l=void 0;T.ER.set(k.cueRangeSetIdentifier,(l=k.playerCueRanges)!=null?l:[])}}; Kt=function(T){return!(!T.T||!T.T.isManifestless)}; xa=function(T){return T.OG?T.isLowLatencyLiveStream&&T.T!=null&&FG(T.T)>=5:T.isLowLatencyLiveStream&&T.T!=void 0&&FG(T.T)>=5}; zDT=function(T){return WD()&&a8(T)?!1:uO(T)&&(g.ZX(T.FB)?!T.isLivePlayback:T.hlsvp)||!BL()||T.DM?!0:!1}; dyJ=function(T){T.loading=!0;T.Hl=!1;if(XhX(T))g.EKI(T.videoId).then(function(l){whf(T,l)}).then(function(){T.MC()}); else{t0(T.DP)||g.rB(new g.Wy("DASH MPD Origin invalid: ",T.DP));var Q=T.DP,k=g.jj(T.FB.experiments,"dash_manifest_version")||4;Q=g.sD(Q,{mpd_version:k});T.isLowLatencyLiveStream&&T.latencyClass!=="NORMAL"||(Q=g.sD(Q,{pacing:0}));D3H(Q,T.FB.experiments,T.isLivePlayback).then(function(l){T.wd()||(Pv(T,l,!0),dS("mrc",void 0,T.z9),T.MC())},function(l){T.wd()||(T.loading=!1,T.publish("dataloaderror",new g.ZK("manifest.net.retryexhausted",{backend:"manifest", rc:l.status},1)))}); dS("mrs",void 0,T.z9)}}; whf=function(T,Q){var k=Q.map(function(U){return U.itag}),l; if((l=T.playerResponse)!=null&&l.streamingData){l=[];if(T.V("html5_offline_always_use_local_formats"))for(Q=g.B(Q),k=Q.next();!k.done;k=Q.next())k=Object.assign({},k.value),k.signatureCipher="",l.push(k);else for(var v=g.B(T.playerResponse.streamingData.adaptiveFormats),L=v.next(),q={};!L.done;q={i8:void 0},L=v.next())if(q.i8=L.value,T.V("html5_fix_multi_audio_offline_playback")){L=g.B(Q);for(var Y=L.next();!Y.done;Y=L.next())Y=Y.value,Y.itag===q.i8.itag&&Y.xtags===q.i8.xtags&&(q.i8=Object.assign({}, q.i8),q.i8.url=Q.find(function(U){return function(R){return R.itag===U.i8.itag}}(q)).url,q.i8.signatureCipher="",l.push(q.i8))}else k.includes(q.i8.itag)&&(q.i8=Object.assign({},q.i8),q.i8.url=Q.find(function(U){return function(R){return R.itag===U.i8.itag}}(q)).url,q.i8.signatureCipher="",l.push(q.i8)); l.length<2&&T.T9("offmlf",{len:l.length});l=BHg(T,l);AL(T)&&Kl5(l,!1);Pv(T,l);T.T9("dlr",{})}else T.T9("offsdm",{cotn:T.ES?T.ES.cotn:"0",cpn:T.clientPlaybackNonce})}; NHI=function(T){var Q;return!((Q=T.FB.getWebPlayerContextConfig())==null||!Q.enableProximaLowLatency)}; Hv=function(T){if(!T.isProximaLatencyEligible)return 0;var Q=I3();return NHI(T)?2:Q===1?1:T.V("html5_enable_proxima")?2:0}; Pv=function(T,Q,k){k=k===void 0?!1:k;T.X0=void 0;T.T=Q;g.P(T,Q);Q.sW=T.sW;Q.Kz=T.Kz;Q.xm=T.xm;Q.d5=T.d5;Q.Ig=T.Ig;T.Sf&&(Q.j=new Wt(T.Sf));(T.vI()||g.tL(T))&&T.D.push("webgl");T.T.isLive||(T.isLivePlayback=!1);var l=Q.sourceUrl.split("/");if(T.OG?l.indexOf("manifest_duration")!==-1:l.indexOf("manifest_duration")!=-1)T.uR=Number(l[l.indexOf("manifest_duration")+1]);if(Q.S||Q.isManifestless)Q.subscribe("clienttemp",T.T9,T),k?Q.subscribe("refresh",T.uO,T):Q.subscribe("cuepointsadded",T.a6,T);Pr(Q)?T.Xm= !0:In=void 0;T.hj&&(Q.Y=T.hj,Q.isLive=!0,T.isLivePlayback=!0);Q.isPremiere=T.isPremiere;Q.isLiveHeadPlayable=T.isLiveHeadPlayable}; ACf=function(T,Q){var k=Q||zDT(T)||T.isExternallyHostedPodcast;if(!T.T||k)return T.T9("skipDash",{dm:!!T.T,air:Q,dd:T.DM,mss:BL(),"3pp":T.isExternallyHostedPodcast}),bC();AL(T)&&Kl5(T.T,T.isLivePlayback);return rV().then(function(){return SPu(T.Ak,g.Dd(T),T.FB.N,T.T,T.N,function(l){return T.publish("ctmp","fmtflt",l)},T.mJ,cv(T)&&T.V("html5_enable_server_format_filter")).then(function(l){T.Tj(l); T.Ak.T=null;/^av/.test(T.clientPlaybackNonce)&&T.YP&&T.T9("av1",T.YP.T)})})}; rCX=function(T,Q){if(Q&&T.hlsvp)return bC();if(T.hlsFormats){Q=Oy(T.hlsFormats);var k;if(((k=T.YP)==null?0:k.S)&&Q){k=[];for(var l=g.B(Q),v=l.next();!v.done;v=l.next())k.push(v.value.itag);T.T9("hlsfmt",{itags:k.join(".")})}T.Yh=Mgu(T.FB,Q);T.Yh&&b15(T,T.Yh);k=T.clientPlaybackNonce;var L,q,Y,U;return fwC(T.FB,T.isAd(),Q,(U=(L=T.playerResponse)==null?void 0:(q=L.captions)==null?void 0:(Y=q.playerCaptionsRenderer)==null?void 0:Y.baseUrl)!=null?U:null,T.Fk,k,function(R){return T.publish("ctmp","hlsflt", R)}).then(function(R){for(var Z=0,f=[],G=g.B(R),m=G.next();!m.done;m=G.next()){m=m.value; var I=void 0;f.push((I=m.getInfo())==null?void 0:I.itag);var z=I=void 0;((I=m.getInfo())==null?void 0:(z=I.audio)==null?void 0:z.numChannels)>Z&&(Z=m.getInfo().audio.numChannels)}Z>2&&T.T9("hlschl",{mn:Z});var w;((w=T.YP)==null?0:w.S)&&T.T9("hlsfmtaf",{itags:f.join(".")});var r;if(T.V("html5_enable_vp9_fairplay")&&((r=T.N)==null?0:Ym(r)))for(T.T9("drm",{sbdlfbk:1}),Z=g.B(T.NE),f=Z.next();!f.done;f=Z.next())if(f=f.value,Mx(f)){T.N=f;break}pt(T,R)})}return bC()}; cCX=function(T){if(T.isExternallyHostedPodcast&&T.Wk){var Q=Oy(T.Wk);if(!Q[0])return bC();T.mKH=Q[0];return Iwy(T.FB,Q[0]).then(function(k){pt(T,k)})}return T.U1&&T.m5?mAX(T.FB,T.isAd(),T.U1).then(function(k){pt(T,k)}):bC()}; aDf=function(T){if(T.isExternallyHostedPodcast)return bC();var Q=Oy(T.Wk,T.Sg);if(T.hlsvp){var k=vN5(T.hlsvp,T.clientPlaybackNonce,T.Fk);Q.push(k)}return Gb5(T.FB,T.isAd(),Q,Dy5(T)).then(function(l){pt(T,l)})}; pt=function(T,Q){T.t6=Q;T.Tj(new a3(g.IQ(T.t6,function(k){return k.getInfo()})))}; Dy5=function(T){var Q={cpn:T.clientPlaybackNonce,c:T.FB.T.c,cver:T.FB.T.cver};T.f5&&(Q.ptk=T.f5,Q.oid=T.zX,Q.ptchn=T.y_,Q.pltype=T.qx,T.K5&&(Q.m=T.K5));return Q}; g.Wv=function(T){return uO(T)&&T.Jj?(T={},T.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",T):T.S&&T.S.jY||null}; uu5=function(T){var Q=$a(T);return Q&&Q.text?g.Rx(Q.text):T.paidContentOverlayText}; nNb=function(T){var Q=$a(T);return Q&&Q.durationMs?aT(Q.durationMs):T.paidContentOverlayDurationMs}; $a=function(T){var Q,k,l;return T.playerResponse&&T.playerResponse.paidContentOverlay&&T.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.t((Q=T.e6)==null?void 0:(k=Q.playerOverlays)==null?void 0:(l=k.playerOverlayRenderer)==null?void 0:l.playerDisclosure,KZt)||null}; JL=function(T){var Q="";if(T.cQ)return T.cQ;T.isLivePlayback&&(Q=T.allowLiveDvr?"dvr":T.isPremiere?"lp":T.hj?"window":"live");T.KY&&(Q="post");return Q}; g.e7=function(T,Q){return typeof T.keywords[Q]!=="string"?null:T.keywords[Q]}; xyI=function(T){return!!T.E6||!!T.JA||!!T.aS||!!T.Mv||T.f9}; g.FC=function(T){return!!(T.DP||T.Wk||T.U1||T.hlsvp||T.Wm())}; I8=function(T){if(T.V("html5_onesie")&&T.errorCode)return!1;var Q=g.CW(T.D,"ypc");T.ypcPreview&&(Q=!1);return T.Hk()&&!T.loading&&(g.FC(T)||g.CW(T.D,"heartbeat")||Q)}; Oy=function(T,Q){T=jS(T);var k={};if(Q){Q=g.B(Q.split(","));for(var l=Q.next();!l.done;l=Q.next())(l=l.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(k[l[1]]={width:l[2],height:l[3]})}Q=g.B(T);for(l=Q.next();!l.done;l=Q.next()){l=l.value;var v=k[l.itag];v&&(l.width=v.width,l.height=v.height)}return T}; Z1C=function(T,Q){T.showShareButton=!!Q;var k,l,v=((k=g.t(Q,g.jw))==null?void 0:k.navigationEndpoint)||((l=g.t(Q,g.jw))==null?void 0:l.command);v&&(T.W5=!!g.t(v,P1y))}; LZ5=function(T,Q){var k=Q.raw_embedded_player_response;if(!k){var l=Q.embedded_player_response;l&&(k=JSON.parse(l))}k&&(T.MV=k);if(T.MV){T.embeddedPlayerConfig=T.MV.embeddedPlayerConfig||null;if(k=T.MV.videoFlags)k.playableInEmbed&&(T.allowEmbed=!0),k.isPrivate&&(T.isPrivate=!0),k.userDisplayName&&(Q.user_display_name=k.userDisplayName),k.userDisplayImage&&(Q.user_display_image=k.userDisplayImage);if(k=T.MV.embedPreview){k=k.thumbnailPreviewRenderer;xA5(T,k.controlBgHtml);if(l=k.defaultThumbnail)T.j= $L(l);T.V("embeds_web_enable_search_button")&&k.searchButton&&(l=g.t(k.searchButton,g.jw))&&(T.h0d=g.t(l.navigationEndpoint,g.Ey));(l=g.t(k==null?void 0:k.videoDetails,H1I))&&IDg(T,Q,l);l=g.t(k==null?void 0:k.videoDetails,twu);T.Tw=!!k.addToWatchLaterButton;Z1C(T,k.shareButton);if(l==null?0:l.musicVideoType)T.musicVideoType=l.musicVideoType;var v,L,q,Y,U;if(l=g.t((v=T.getEmbeddedPlayerResponse())==null?void 0:(L=v.embedPreview)==null?void 0:(q=L.thumbnailPreviewRenderer)==null?void 0:(Y=q.playButton)== null?void 0:(U=Y.buttonRenderer)==null?void 0:U.navigationEndpoint,g.Bv))BO6(T,l),T.videoId=l.videoId||T.videoId;k.videoDurationSeconds&&(T.lengthSeconds=aT(k.videoDurationSeconds));k.webPlayerActionsPorting&&KEg(T,k.webPlayerActionsPorting);if(v=g.t(k==null?void 0:k.playlist,O15)){T.xF=!0;L=[];q=Number(v.currentIndex);if(v.contents)for(Y=0,U=v.contents.length;Y0:T.vk?!1:T.FB.ek||T.FB.NK||!g.Qk(T.FB)?!0:!1:(T.vk?0:T.ek)&&g.Qk(T.FB)?!0:!1;T.V("html5_log_detailpage_autoplay")&&vi(T)==="detailpage"&&T.T9("autoplay_info",{autoplay:T.dO,autonav:T.isAutonav,wasDompaused:T.vk,result:Q});return Q}; g.YD=function(T){return T.oauthToken||T.FB.b7}; Vwu=function(T){if(T.V("html5_stateful_audio_normalization")){var Q=1,k=g.jj(T.FB.experiments,"html5_default_ad_gain");k&&T.isAd()&&(Q=k);var l,v;k=(v=(l=T.Y)==null?void 0:l.audio.Y)!=null?v:T.Pp;if(k==null||isNaN(k))T=i15(T);else{l=(0,g.XY)();T.UY=2;v=l-T.FB.Yh<=T.maxStatefulTimeThresholdSec*1E3;T.applyStatefulNormalization&&v?T.UY=4:v||(T.FB.FU=Infinity,T.FB.Yh=NaN);v=(T.UY===4?g.ti(T.FB.FU,T.minimumLoudnessTargetLkfs,T.loudnessTargetLkfs):T.loudnessTargetLkfs)-k;if(T.UY!==4){var L,q,Y,U,R=((L= T.playerResponse)==null?void 0:(q=L.playerConfig)==null?void 0:(Y=q.audioConfig)==null?void 0:(U=Y.loudnessNormalizationConfig)==null?void 0:U.statelessLoudnessAdjustmentGain)||0;v+=R}v=Math.min(v,0);T.preserveStatefulLoudnessTarget&&(T.FB.FU=k+v,T.FB.Yh=l);T=Math.min(1,Math.pow(10,v/20))||Q}}else T=i15(T);return T}; i15=function(T){var Q=1,k=g.jj(T.FB.experiments,"html5_default_ad_gain");k&&T.isAd()&&(Q=k);if(T.H_){var l,v;k=((l=T.Y)==null?void 0:l.audio.L)!=null?(v=T.Y)==null?void 0:v.audio.L:T.uK}else{var L;k=((L=T.Y)==null?void 0:L.audio.L)||T.uK}isNaN(k)||(T.UY=1);return Math.min(1,Math.pow(10,-k/20))||Q}; AL=function(T){var Q=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],k=hS(T.FB)==="TVHTML5_SIMPLY"&&T.FB.T.ctheme==="MUSIC";!T.OW&&(g.uP(T.FB)||g.zW(T.FB)||k)&&(Q.includes(T.musicVideoType)||T.isExternallyHostedPodcast)&&(T.OW=!0);if(Q=g.ph())Q=/Starboard\/([0-9]+)/.exec(g.KJ()),Q=(Q?parseInt(Q[1],10):NaN)<10;k=T.FB;k=(hS(k)==="TVHTML5_CAST"||hS(k)==="TVHTML5"&&(k.T.cver.startsWith("6.20130725")||k.T.cver.startsWith("6.20130726")))&&T.FB.T.ctheme==="MUSIC";var l;if(l=!T.OW)k||(k= T.FB,k=hS(k)==="TVHTML5"&&k.T.cver.startsWith("7")),l=k;l&&!Q&&(Q=T.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",k=(T.V("cast_prefer_audio_only_for_atv_and_uploads")||T.V("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&T.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",Q||k||T.isExternallyHostedPodcast)&&(T.OW=!0);return T.FB.deviceIsAudioOnly||T.OW&&T.FB.j}; r4=function(T){var Q,k,l;return((Q=T.playerResponse)==null?void 0:(k=Q.playerConfig)==null?void 0:(l=k.compositeVideoConfig)==null?void 0:l.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; TqT=function(T){var Q,k,l,v=(Q=T.playerResponse)==null?void 0:(k=Q.playerConfig)==null?void 0:(l=k.compositeVideoConfig)==null?void 0:l.sourceConfigs,L,q,Y;T=(L=T.playerResponse)==null?void 0:(q=L.playerConfig)==null?void 0:(Y=q.compositeVideoConfig)==null?void 0:Y.defaultActiveSourceVideoId;if(!v||!T)return"";v=g.B(v);for(L=v.next();!L.done;L=v.next())if(L=L.value,L.videoId===T&&L.audioTracks)for(L=g.B(L.audioTracks),q=L.next();!q.done;q=L.next())if(q=q.value,q.isDefaultForSource)return q.id||""; return""}; g.Qrg=function(T){return T.Cc()&&cv(T)||r4(T)}; UU=function(T){var Q,k,l;return!!((Q=T.playerResponse)==null?0:(k=Q.playerConfig)==null?0:(l=k.mediaCommonConfig)==null?0:l.splitScreenEligible)}; Ra=function(T){var Q;return!((Q=T.playerResponse)==null||!Q.compositePlayabilityStatus)}; jrb=function(T){return isNaN(T)?0:Math.max((Date.now()-T)/1E3-30,0)}; kE5=function(T){return T.m0&&!T.LQ}; Z_=function(T){return!(!T.jl||!T.FB.j)&&T.Wm()}; fX=function(T){return T.IS&&T.enableServerStitchedDai}; lQg=function(T){return T.cg&&!T.Sf}; cv=function(T){var Q=T.V("html5_enable_sabr_on_drive")&&T.FB.z9==="gd";if(T.p9)return T.cg&&T.T9("fds",{fds:!0},!0),!1;if(T.FB.z9!=="yt"&&!Q)return T.cg&&T.T9("dsvn",{ns:T.FB.z9},!0),!1;if(T.cotn||!T.T||T.T.isOtf&&!T.V("html5_enable_sabr_otf_in_client")||T.L&&!T.L.T||T.Et&&!T.V("html5_enable_sabr_csdai"))return!1;if(T.V("html5_use_sabr_requests_for_debugging"))return!0;T.cg&&T.T9("esfw",{usbc:T.cg,hsu:!!T.Sf},!0);if(T.cg&&T.Sf)return!0;if(T.V("html5_remove_client_sabr_determination"))return!1;var k= !T.T.Cc&&!T.bl();Q=k&&sd&&T.V("html5_enable_sabr_vod_streaming_xhr");k=k&&!sd&&T.V("html5_enable_sabr_vod_non_streaming_xhr");var l=Gh(T),v=T.V("html5_enable_sabr_drm_vod_streaming_xhr")&&sd&&T.bl()&&!T.T.Cc&&(T.drmProduct==="1"?!1:!0);(Q=Q||k||l||v)&&!T.Sf&&T.T9("sabr",{loc:"m"},!0);return Q&&!!T.Sf}; Gh=function(T){var Q;if(!(Q=sd&&T.Cc()&&T.bl()&&(T.drmProduct==="1"?!1:!0)&&T.V("html5_sabr_live_drm_streaming_xhr"))){Q=T.Cc()&&!T.bl()&&sd;var k=T.Cc()&&T.latencyClass!=="ULTRALOW"&&!T.isLowLatencyLiveStream&&T.V("html5_sabr_live_normal_latency_streaming_xhr"),l=T.isLowLatencyLiveStream&&T.V("html5_sabr_live_low_latency_streaming_xhr"),v=T.latencyClass==="ULTRALOW"&&T.V("html5_sabr_live_ultra_low_latency_streaming_xhr");Q=Q&&(k||l||v)}k=Q;Q=T.enableServerStitchedDai&&k&&T.V("html5_enable_sabr_ssdai_streaming_xhr"); k=!T.enableServerStitchedDai&&k;l=T.Cc()&&!sd&&T.V("html5_enable_sabr_live_non_streaming_xhr");T=sd&&(T.lf()||UU(T)&&T.V("html5_enable_sabr_for_lifa_eligible_streams"));return Q||k||l||T}; XhX=function(T){var Q;if(Q=!!T.cotn)Q=T.videoId,Q=!!Q&&g.ka(Q)===1;return Q&&!T.jl}; g.mK=function(T){if(!T.T||!T.S||!T.Y)return!1;var Q=T.T.T,k=!!Q[T.S.id]&&EV(Q[T.S.id].Xs.T);Q=!!Q[T.Y.id]&&EV(Q[T.Y.id].Xs.T);return(T.S.itag==="0"||k)&&Q}; Ia=function(T){return T.Dy?["OK","LIVE_STREAM_OFFLINE"].includes(T.Dy.status):!0}; ph5=function(T){return(T=T.dV)&&T.showError?T.showError:!1}; hy=function(T,Q){return T.V(Q)?!0:(T.fflags||"").includes(Q+"=true")}; Uy5=function(T,Q){Q.inlineMetricEnabled&&(T.inlineMetricEnabled=!0);Q.playback_progress_0s_url&&(T.Mv=new tgg(Q));if(Q=Q.video_masthead_ad_quartile_urls)T.JA=Q.quartile_0_url,T.K8=Q.quartile_25_url,T.PF=Q.quartile_50_url,T.n8=Q.quartile_75_url,T.hf=Q.quartile_100_url,T.aS=Q.quartile_0_urls,T.O3=Q.quartile_25_urls,T.vP=Q.quartile_50_urls,T.c9=Q.quartile_75_urls,T.WP=Q.quartile_100_urls}; YgC=function(T){var Q={};T=g.B(T);for(var k=T.next();!k.done;k=T.next()){k=k.value;var l=k.split("=");l.length===2?Q[l[0]]=l[1]:Q[k]=!0}return Q}; gN6=function(T){if(T){if(zUg(T))return T;T=Xx5(T);if(zUg(T,!0))return T}return""}; g.oSg=function(T){return T.captionsLanguagePreference||T.FB.captionsLanguagePreference||g.e7(T,"yt:cc_default_lang")||T.FB.F_}; sU=function(T){return!(!T.isLivePlayback||!T.hasProgressBarBoundaries())}; g.zV=function(T){var Q;return T.hn||((Q=T.suggestions)==null?void 0:Q[0])||null}; g.S$=function(T){var Q,k;return!!((Q=T.embeddedPlayerConfig)==null?0:(k=Q.embeddedPlayerFlags)==null?0:k.enableMusicUx)}; vS5=function(T){return T.C||T.V("web_player_media_session_infinity")&&T.isLivePlayback}; CX=function(T){return T.FB.Y&&T.isPrivate}; g.zh=function(T){var Q=T.G(),k=g.Bi(Q),l=Q.DP;(Q.V("embeds_web_enable_iframe_api_send_full_embed_url")||Q.V("embeds_web_enable_rcat_validation_in_havs")||Q.V("embeds_enable_autoplay_and_visibility_signals"))&&g.Ln(Q)&&(l&&(k.thirdParty=Object.assign({},k.thirdParty,{embedUrl:l})),MBt(k,T));if(l=T.Bd)k.clickTracking={clickTrackingParams:l};else if(g.Ln(T.G())&&g.$i("EVENT_ID"))k.clickTracking={clickTrackingParams:g.$i("EVENT_ID")};else if(Q.V("html5_log_missing_itct")){var v;l=new g.Wy("Missing ITCT in InnerTubeContext", {isAd:T.isAd(),Wfe:(v=Q.getWebPlayerContextConfig())==null?void 0:v.contextId});g.bA(l)}v=k.client||{};l="EMBED";var L=vi(T);L==="leanback"?l="WATCH":Q.V("gvi_channel_client_screen")&&L==="profilepage"?l="CHANNEL":T.zg?l="LIVE_MONITOR":L==="detailpage"?l="WATCH_FULL_SCREEN":L==="adunit"?l="ADUNIT":L==="sponsorshipsoffer"&&(l="UNKNOWN");v.clientScreen=l;if(Q=T.kidsAppInfo)v.kidsAppInfo=JSON.parse(Q);(l=T.Y3)&&!Q&&(v.kidsAppInfo={contentSettings:{ageUpMode:LxJ[l]}});if(Q=T.OR)v.unpluggedAppInfo={enableFilterMode:!0}; (l=T.unpluggedFilterModeType)&&!Q&&(v.unpluggedAppInfo={filterModeType:qn5[l]});if(Q=T.F_)v.unpluggedLocationInfo=Q;k.client=v;v=k.request||{};T.A9&&(v.isPrefetch=!0);if(Q=T.mdxEnvironment)v.mdxEnvironment=Q;if(Q=T.mdxControlMode)v.mdxControlMode=gSt[Q];k.request=v;v=k.user||{};if(Q=T.i9)v.credentialTransferTokens=[{token:Q,scope:"VIDEO"}];if(Q=T.Z8)v.delegatePurchases={oauthToken:Q},v.kidsParent={oauthToken:Q};k.user=v;if(v=T.contextParams)k.activePlayers=[{playerContextParams:v}];if(T=T.clientScreenNonce)k.clientScreenNonce= T;return k}; g.Bi=function(T){var Q=g.Ee(),k=Q.client||{};if(T.forcedExperiments){var l=T.forcedExperiments.split(","),v=[];l=g.B(l);for(var L=l.next();!L.done;L=l.next())v.push(Number(L.value));k.experimentIds=v}if(v=T.homeGroupInfo)k.homeGroupInfo=JSON.parse(v);if(v=T.getPlayerType())k.playerType=v;if(v=T.T.ctheme)k.theme=v;if(v=T.livingRoomAppMode)k.tvAppInfo=Object.assign({},k.tvAppInfo,{livingRoomAppMode:v});v=T.deviceYear;T.V("html5_propagate_device_year")&&v&&(k.tvAppInfo=Object.assign({},k.tvAppInfo,{deviceYear:v})); if(v=T.livingRoomPoTokenId)k.tvAppInfo=Object.assign({},k.tvAppInfo,{livingRoomPoTokenId:v});Q.client=k;k=Q.user||{};T.enableSafetyMode&&(k=Object.assign({},k,{enableSafetyMode:!0}));T.pageId&&(k=Object.assign({},k,{onBehalfOfUser:T.pageId}));Q.user=k;k=T.DP;T.V("embeds_web_enable_iframe_api_send_full_embed_url")||T.V("embeds_web_enable_rcat_validation_in_havs")||T.V("embeds_enable_autoplay_and_visibility_signals")||!k||(Q.thirdParty={embedUrl:k});return Q}; fQg=function(T,Q,k){var l=T.videoId,v=g.zh(T),L=T.G(),q={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Bd()),referer:document.location.toString(),signatureTimestamp:20297};g.xq();T.isAutonav&&(q.autonav=!0);g.Py(0,141)&&(q.autonavState=g.Py(0,140)?"STATE_OFF":"STATE_ON");q.autoCaptionsDefaultOn=g.Py(0,66);yCg(T)&&(q.autoplay=!0);L.j&&T.cycToken&&(q.cycToken=T.cycToken);L.enablePrivacyFilter&&(q.enablePrivacyFilter=!0);T.isFling&&(q.fling=!0);var Y=T.forceAdsUrl;if(Y){var U={},R=[];Y= Y.split(",");Y=g.B(Y);for(var Z=Y.next();!Z.done;Z=Y.next()){Z=Z.value;var f=Z.split("|");f.length!==3||Z.includes("=")||(f[0]="breaktype="+f[0],f[1]="offset="+f[1],f[2]="url="+f[2]);Z={adtype:"video_ad"};f=g.B(f);for(var G=f.next();!G.done;G=f.next()){var m=g.B(G.value.split("="));G=m.next().value;m=oby(m);Z[G]=m.join("=")}f=Z.url;G=Z.presetad;m=Z.viralresponseurl;var I=Number(Z.campaignid);if(Z.adtype==="in_display_ad")f&&(U.url=f),G&&(U.presetAd=G),m&&(U.viralAdResponseUrl=m),I&&(U.viralCampaignId= String(I));else if(Z.adtype==="video_ad"){var z={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(Z.offset)||0)}};if(Z=MsI[Z.breaktype])z.breakType=Z;f&&(z.url=f);G&&(z.presetAd=G);m&&(z.viralAdResponseUrl=m);I&&(z.viralCampaignId=String(I));R.push(z)}}q.forceAdParameters={videoAds:R,inDisplayAd:U}}T.isInlinePlaybackNoAd&&(q.isInlinePlaybackNoAd=!0);T.isLivingRoomDeeplink&&(q.isLivingRoomDeeplink=!0);U=T.rhH;if(U!=null){U={startWalltime:String(U)};if(R=T.uR)U.manifestDuration=String(R||14400); q.liveContext=U}if(T.mutedAutoplay){q.mutedAutoplay=!0;U=L.getWebPlayerContextConfig();var w,r;(U==null?0:(w=U.embedsHostFlags)==null?0:w.allowMutedAutoplayDurationMode)&&(U==null?0:(r=U.embedsHostFlags)==null?0:r.allowMutedAutoplayDurationMode.includes(Ynu[T.mutedAutoplayDurationMode]))&&(q.mutedAutoplayDurationMode=Ynu[T.mutedAutoplayDurationMode])}if(T.vk?0:T.ek)q.splay=!0;w=T.vnd;w===5&&(q.vnd=w);w={};if(r=T.isMdxPlayback)w.triggeredByMdx=r;if(r=T.jg)w.skippableAdsSupported=r.split(",").includes("ska"); if(R=T.SO){r=T.oe;U=[];R=g.B(YPu(R));for(Y=R.next();!Y.done;Y=R.next()){Y=Y.value;Z=Y.platform;Y={applicationState:Y.QX?"INACTIVE":"ACTIVE",clientFormFactor:UZI[Z]||"UNKNOWN_FORM_FACTOR",clientName:RFu[Y.Pu]||"UNKNOWN_INTERFACE",clientVersion:Y.deviceVersion||"",platform:RE5[Z]||"UNKNOWN_PLATFORM"};Z={};if(r){f=void 0;try{f=JSON.parse(r)}catch(D){g.rB(D)}f&&(Z={params:[{key:"ms",value:f.ms}]},f.advertising_id&&(Z.advertisingId=f.advertising_id),f.limit_ad_tracking!==void 0&&f.limit_ad_tracking!== null&&(Z.limitAdTracking=f.limit_ad_tracking),Y.osName=f.os_name,Y.userAgent=f.user_agent,Y.windowHeightPoints=f.window_height_points,Y.windowWidthPoints=f.window_width_points)}U.push({adSignalsInfo:Z,remoteClient:Y})}w.remoteContexts=U}r=T.sourceContainerPlaylistId;U=T.serializedMdxMetadata;if(r||U)R={},r&&(R.mdxPlaybackContainerInfo={sourceContainerPlaylistId:r}),U&&(R.serializedMdxMetadata=U),w.mdxPlaybackSourceContext=R;q.mdxContext=w;w=Q.width;w>0&&(q.playerWidthPixels=Math.round(w));if(Q=Q.height)q.playerHeightPixels= Math.round(Q);k!==0&&(q.vis=k);if(k=L.widgetReferrer)q.widgetReferrer=k.substring(0,128);g.Qk(L)&&q&&(q.ancestorOrigins=L.ancestorOrigins);T.defaultActiveSourceVideoId&&(q.compositeVideoContext={defaultActiveSourceVideoId:T.defaultActiveSourceVideoId});if(L=L.getWebPlayerContextConfig())q.encryptedHostFlags=L.encryptedHostFlags;l={videoId:l,context:v,playbackContext:{contentPlaybackContext:q}};if(T.Ct){var A;l.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(A=T.Ct)==null?void 0:A.reloadPlaybackParams}}T.contentCheckOk&& (l.contentCheckOk=!0);if(A=T.clientPlaybackNonce)l.cpn=A;if(A=T.playerParams)l.params=A;if(A=T.playlistId)l.playlistId=A;T.racyCheckOk&&(l.racyCheckOk=!0);A=T.G();v=A.embedConfig;T.bR&&A.V("embeds_enable_per_video_embed_config")?l.serializedThirdPartyEmbedConfig=T.bR:v&&(l.serializedThirdPartyEmbedConfig=v);l.captionParams={};v=g.Py(g.xq(),65);T.deviceCaptionsOn!=null?l.captionParams.deviceCaptionsOn=T.deviceCaptionsOn:g.Cn(A)&&(l.captionParams.deviceCaptionsOn=v!=null?!v:!1);T.ys&&(l.captionParams.deviceCaptionsLangPref= T.ys);T.fh.length?l.captionParams.viewerSelectedCaptionLangs=T.fh:g.Cn(A)&&(v=g.SX(),v==null?0:v.length)&&(l.captionParams.viewerSelectedCaptionLangs=v);v=T.fetchType==="onesie"&&T.V("html5_onesie_attach_po_token");q=T.fetchType!=="onesie"&&T.V("html5_non_onesie_attach_po_token");if(v||q)v=T.G(),v.vk&&(l.serviceIntegrityDimensions={},l.serviceIntegrityDimensions.poToken=v.vk);A.V("fetch_att_independently")&&(l.attestationRequest={omitBotguardData:!0});l.playbackContext||(l.playbackContext={});l.playbackContext.devicePlaybackCapabilities= ZQ5(T);l.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&T.T9("noVp9",{});return l}; ZQ5=function(T){var Q=!(T==null?0:T.jF())&&(T==null?void 0:T.Cc())&&TL(),k;if(!(k=T==null)){k=g.Dd(T);T=T.G().N;var l=De("243");k=!(l&&xg(k,l,T,!0)===!0)}return{supportsVp9Encoding:!(k||Q),supportXhr:sd}}; mZ5=function(T,Q){var k,l,v;return g.a(function(L){if(L.S==1)return k={context:g.Bi(T.G()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:T.videoId,cpn:T.clientPlaybackNonce}}]},l=g.Vr(GEb),g.c(L,g.uU(Q,k,l),2);v=L.T;return L.return(v)})}; IQH=function(T,Q,k){var l=g.jj(Q.experiments,"bg_vm_reinit_threshold");(!kg||(0,g.XY)()-kg>l)&&mZ5(T,k).then(function(v){v&&(v=v.botguardData)&&g.o3(v,Q)},function(v){T.wd()||(v=GX(v),T.T9("attf",v.details))})}; XZ=function(T,Q){g.x.call(this);this.app=T;this.state=Q}; ds=function(T,Q,k){T.state.T.hasOwnProperty(Q)||ws(T,Q,k);T.state.C[Q]=function(){return k.apply(T,g.HT.apply(0,arguments))}; T.state.B.add(Q)}; Nf=function(T,Q,k){T.state.T.hasOwnProperty(Q)||ws(T,Q,k);T.app.G().j&&(T.state.j[Q]=function(){return k.apply(T,g.HT.apply(0,arguments))},T.state.B.add(Q))}; ws=function(T,Q,k){T.state.T[Q]=function(){return k.apply(T,g.HT.apply(0,arguments))}}; g.Ay=function(T,Q,k){return T.state.T[Q].apply(T.state.T,g.ZH(k))}; bt=function(){g.XE.call(this);this.N=new Map}; rs=function(){g.x.apply(this,arguments);this.element=null;this.B=new Set;this.C={};this.j={};this.T={};this.D=new Set;this.L=new bt;this.S=new bt;this.Y=new bt;this.N=new bt}; hEX=function(T,Q,k){typeof T==="string"&&(T={mediaContentUrl:T,startSeconds:Q,suggestedQuality:k});a:{if((Q=T.mediaContentUrl)&&(Q=/\/([ve]|embed)\/([^#?]+)/.exec(Q))&&Q[2]){Q=Q[2];break a}Q=null}T.videoId=Q;return ci(T)}; ci=function(T,Q,k){if(typeof T==="string")return{videoId:T,startSeconds:Q,suggestedQuality:k};Q={};k=g.B(srb);for(var l=k.next();!l.done;l=k.next())l=l.value,T[l]&&(Q[l]=T[l]);if(T=T.embedConfig||T.embed_config)if(typeof T==="string")Q.embed_config=T;else if(g.vm(T))try{var v=JSON.stringify(T);Q.embed_config=v}catch(L){console.error("Invalid embedConfig JSON",L)}return Q}; SnC=function(T,Q,k,l){if(g.vm(T)&&!Array.isArray(T)){Q="playlist list listType index startSeconds suggestedQuality".split(" ");k={};for(l=0;l32&&l.push("hfr");Q.isHdr()&&l.push("hdr");Q.primaries==="bt2020"&&l.push("wcg");k.video_quality_features=l}}if(T=T.getPlaylistId())k.list=T;return k}; KX=function(){D_.apply(this,arguments)}; xD=function(T,Q){var k={};if(T.app.G().qO){T=g.B(XCX);for(var l=T.next();!l.done;l=T.next())l=l.value,Q.hasOwnProperty(l)&&(k[l]=Q[l]);if(Q=k.qoe_cat)T="",typeof Q==="string"&&Q.length>0&&(T=Q.split(",").filter(function(v){return wC5.includes(v)}).join(",")),k.qoe_cat=T; dZH(k)}else for(T=g.B(NqI),l=T.next();!l.done;l=T.next())l=l.value,Q.hasOwnProperty(l)&&(k[l]=Q[l]);return k}; dZH=function(T){var Q=T.raw_player_response;if(!Q){var k=T.player_response;k&&(Q=JSON.parse(k))}delete T.player_response;delete T.raw_player_response;if(Q){T.raw_player_response={streamingData:Q.streamingData,playerConfig:Q.playerConfig};var l;if((l=Q.playbackTracking)==null?0:l.qoeUrl)T.raw_player_response=Object.assign({},T.raw_player_response,{playbackTracking:{qoeUrl:Q.playbackTracking.qoeUrl}});Q.videoDetails&&(Q.videoDetails.videoId||Q.videoDetails.lengthSeconds)&&(k={},Q.videoDetails.videoId&& (k.videoId=Q.videoDetails.videoId),Q.videoDetails.lengthSeconds&&(k.lengthSeconds=Q.videoDetails.lengthSeconds),T.raw_player_response=Object.assign({},T.raw_player_response,{videoDetails:k}))}}; Pi=function(T,Q,k){var l=T.app.xM(k);if(!l)return 0;T=l-T.app.getCurrentTime(k);return Q-T}; bQJ=function(T){var Q=Q===void 0?5:Q;return T?A1H[T]||Q:Q}; g.Hi=function(){KX.apply(this,arguments)}; r16=function(T){ws(T,"getInternalApiInterface",T.getInternalApiInterface);ws(T,"addEventListener",T.nZ);ws(T,"removeEventListener",T.EPk);ws(T,"cueVideoByPlayerVars",T.lN);ws(T,"loadVideoByPlayerVars",T.Ia);ws(T,"preloadVideoByPlayerVars",T.tYj);ws(T,"getAdState",T.getAdState);ws(T,"sendAbandonmentPing",T.sendAbandonmentPing);ws(T,"setLoopRange",T.setLoopRange);ws(T,"getLoopRange",T.getLoopRange);ws(T,"setAutonavState",T.setAutonavState);ws(T,"seekTo",T.ruO);ws(T,"seekBy",T.CK6);ws(T,"seekToLiveHead", T.seekToLiveHead);ws(T,"requestSeekToWallTimeSeconds",T.requestSeekToWallTimeSeconds);ws(T,"seekToStreamTime",T.seekToStreamTime);ws(T,"prefetchKeyPlay",T.prefetchKeyPlay);ws(T,"startSeekCsiAction",T.startSeekCsiAction);ws(T,"getStreamTimeOffset",T.getStreamTimeOffset);ws(T,"getVideoData",T.o1);ws(T,"setInlinePreview",T.setInlinePreview);ws(T,"getAppState",T.getAppState);ws(T,"updateLastActiveTime",T.updateLastActiveTime);ws(T,"setBlackout",T.setBlackout);ws(T,"setUserEngagement",T.setUserEngagement); ws(T,"updateSubtitlesUserSettings",T.updateSubtitlesUserSettings);ws(T,"getPresentingPlayerType",T.BO);ws(T,"canPlayType",T.canPlayType);ws(T,"updatePlaylist",T.updatePlaylist);ws(T,"updateVideoData",T.updateVideoData);ws(T,"updateEnvironmentData",T.updateEnvironmentData);ws(T,"sendVideoStatsEngageEvent",T.jd9);ws(T,"productsInVideoVisibilityUpdated",T.productsInVideoVisibilityUpdated);ws(T,"setSafetyMode",T.setSafetyMode);ws(T,"isAtLiveHead",function(Q){return T.isAtLiveHead(void 0,Q)}); ws(T,"getVideoAspectRatio",T.getVideoAspectRatio);ws(T,"getPreferredQuality",T.getPreferredQuality);ws(T,"getPlaybackQualityLabel",T.getPlaybackQualityLabel);ws(T,"setPlaybackQualityRange",T.tDH);ws(T,"onAdUxClicked",T.onAdUxClicked);ws(T,"getFeedbackProductData",T.getFeedbackProductData);ws(T,"getStoryboardFrame",T.getStoryboardFrame);ws(T,"getStoryboardFrameIndex",T.getStoryboardFrameIndex);ws(T,"getStoryboardLevel",T.getStoryboardLevel);ws(T,"getNumberOfStoryboardLevels",T.getNumberOfStoryboardLevels); ws(T,"getCaptionWindowContainerId",T.getCaptionWindowContainerId);ws(T,"getAvailableQualityLabels",T.getAvailableQualityLabels);ws(T,"addCueRange",T.addCueRange);ws(T,"addUtcCueRange",T.addUtcCueRange);ws(T,"showAirplayPicker",T.showAirplayPicker);ws(T,"dispatchReduxAction",T.dispatchReduxAction);ws(T,"getPlayerResponse",T.MR);ws(T,"getWatchNextResponse",T.F2);ws(T,"getHeartbeatResponse",T.Oa);ws(T,"getCurrentTime",T.Go);ws(T,"getDuration",T.gU);ws(T,"getPlayerState",T.getPlayerState);ws(T,"getPlayerStateObject", T.H7);ws(T,"getVideoLoadedFraction",T.getVideoLoadedFraction);ws(T,"getProgressState",T.getProgressState);ws(T,"getVolume",T.getVolume);ws(T,"setVolume",T.QY);ws(T,"isMuted",T.isMuted);ws(T,"mute",T.xx);ws(T,"unMute",T.JF);ws(T,"loadModule",T.loadModule);ws(T,"unloadModule",T.unloadModule);ws(T,"getOption",T.xl);ws(T,"getOptions",T.getOptions);ws(T,"setOption",T.setOption);ws(T,"loadVideoById",T.HN);ws(T,"loadVideoByUrl",T.y0);ws(T,"playVideo",T.GY);ws(T,"loadPlaylist",T.loadPlaylist);ws(T,"nextVideo", T.nextVideo);ws(T,"previousVideo",T.previousVideo);ws(T,"playVideoAt",T.playVideoAt);ws(T,"getDebugText",T.getDebugText);ws(T,"getWebPlayerContextConfig",T.getWebPlayerContextConfig);ws(T,"notifyShortsAdSwipeEvent",T.notifyShortsAdSwipeEvent);ws(T,"getVideoContentRect",T.getVideoContentRect);ws(T,"setSqueezeback",T.setSqueezeback);ws(T,"toggleSubtitlesOn",T.toggleSubtitlesOn);ws(T,"isSubtitlesOn",T.isSubtitlesOn);ws(T,"reportPlaybackIssue",T.reportPlaybackIssue);ws(T,"setAutonav",T.setAutonav);ws(T, "isNotServable",T.isNotServable);ws(T,"channelSubscribed",T.channelSubscribed);ws(T,"channelUnsubscribed",T.channelUnsubscribed);ws(T,"togglePictureInPicture",T.togglePictureInPicture);ws(T,"supportsGaplessAudio",T.supportsGaplessAudio);ws(T,"supportsGaplessShorts",T.supportsGaplessShorts);ws(T,"enqueueVideoByPlayerVars",function(Q){return void T.enqueueVideoByPlayerVars(Q)}); ws(T,"clearQueue",T.clearQueue);ws(T,"getAudioTrack",T.rl);ws(T,"setAudioTrack",T.IgV);ws(T,"getAvailableAudioTracks",T.Aq);ws(T,"getMaxPlaybackQuality",T.getMaxPlaybackQuality);ws(T,"getUserPlaybackQualityPreference",T.getUserPlaybackQualityPreference);ws(T,"getSubtitlesUserSettings",T.getSubtitlesUserSettings);ws(T,"resetSubtitlesUserSettings",T.resetSubtitlesUserSettings);ws(T,"setMinimized",T.setMinimized);ws(T,"setOverlayVisibility",T.setOverlayVisibility);ws(T,"confirmYpcRental",T.confirmYpcRental); ws(T,"queueNextVideo",T.queueNextVideo);ws(T,"handleExternalCall",T.handleExternalCall);ws(T,"logApiCall",T.logApiCall);ws(T,"isExternalMethodAvailable",T.isExternalMethodAvailable);ws(T,"setScreenLayer",T.setScreenLayer);ws(T,"getCurrentPlaylistSequence",T.getCurrentPlaylistSequence);ws(T,"getPlaylistSequenceForTime",T.getPlaylistSequenceForTime);ws(T,"shouldSendVisibilityState",T.shouldSendVisibilityState);ws(T,"syncVolume",T.syncVolume);ws(T,"highlightSettingsMenuItem",T.highlightSettingsMenuItem); ws(T,"openSettingsMenuItem",T.openSettingsMenuItem);ws(T,"getEmbeddedPlayerResponse",T.getEmbeddedPlayerResponse);ws(T,"getVisibilityState",T.getVisibilityState);ws(T,"isMutedByMutedAutoplay",T.isMutedByMutedAutoplay);ws(T,"isMutedByEmbedsMutedAutoplay",T.isMutedByEmbedsMutedAutoplay);ws(T,"setGlobalCrop",T.setGlobalCrop);ws(T,"setInternalSize",T.setInternalSize);ws(T,"setFauxFullscreen",T.setFauxFullscreen);ws(T,"setAppFullscreen",T.setAppFullscreen)}; OU=function(T,Q,k){T=g.ty(T.aK(),Q);return k?(k.addOnDisposeCallback(T),null):T}; g.pX=function(T,Q,k){return T.app.G().YP?Q:g.o0("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:Q,SHORTCUT:k})}; c1I=function(T){T.aK().element.setAttribute("aria-live","polite")}; g.Wi=function(T,Q){g.Hi.call(this,T,Q);r16(this);Nf(this,"addEventListener",this.uT);Nf(this,"removeEventListener",this.hZd);Nf(this,"cueVideoByPlayerVars",this.Jo);Nf(this,"loadVideoByPlayerVars",this.KC);Nf(this,"preloadVideoByPlayerVars",this.WFe);Nf(this,"loadVideoById",this.HN);Nf(this,"loadVideoByUrl",this.y0);Nf(this,"playVideo",this.GY);Nf(this,"loadPlaylist",this.loadPlaylist);Nf(this,"nextVideo",this.nextVideo);Nf(this,"previousVideo",this.previousVideo);Nf(this,"playVideoAt",this.playVideoAt); Nf(this,"getVideoData",this.sy);Nf(this,"seekBy",this.lg9);Nf(this,"seekTo",this.ZGd);Nf(this,"showControls",this.showControls);Nf(this,"hideControls",this.hideControls);Nf(this,"cancelPlayback",this.cancelPlayback);Nf(this,"getProgressState",this.getProgressState);Nf(this,"isInline",this.isInline);Nf(this,"setInline",this.setInline);Nf(this,"setLoopVideo",this.setLoopVideo);Nf(this,"getLoopVideo",this.getLoopVideo);Nf(this,"getVideoContentRect",this.getVideoContentRect);Nf(this,"getVideoStats",this.Lu); Nf(this,"getCurrentTime",this.uc);Nf(this,"getDuration",this.gU);Nf(this,"getPlayerState",this.zI);Nf(this,"getVideoLoadedFraction",this.Eu);Nf(this,"mute",this.xx);Nf(this,"unMute",this.JF);Nf(this,"setVolume",this.QY);Nf(this,"loadModule",this.loadModule);Nf(this,"unloadModule",this.unloadModule);Nf(this,"getOption",this.xl);Nf(this,"getOptions",this.getOptions);Nf(this,"setOption",this.setOption);Nf(this,"addCueRange",this.addCueRange);Nf(this,"getDebugText",this.getDebugText);Nf(this,"getStoryboardFormat", this.getStoryboardFormat);Nf(this,"toggleFullscreen",this.toggleFullscreen);Nf(this,"isFullscreen",this.isFullscreen);Nf(this,"getPlayerSize",this.getPlayerSize);Nf(this,"toggleSubtitles",this.toggleSubtitles);Nf(this,"setCenterCrop",this.setCenterCrop);Nf(this,"setFauxFullscreen",this.setFauxFullscreen);Nf(this,"setSizeStyle",this.setSizeStyle);Nf(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);Nf(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);Bq6(this)}; g.$D=function(T){T=T.Bx();var Q=T.kP.get("endscreen");return Q&&Q.ox()?!0:T.E3()}; g.Jy=function(T,Q){T.getPresentingPlayerType()===3?T.publish("mdxautoplaycancel"):T.tj("onAutonavCancelled",Q)}; g.FZ=function(T){var Q=e$(T.Bx());return T.app.PG&&!T.isFullscreen()||T.getPresentingPlayerType()===3&&Q&&Q.G0()&&Q.E_()||!!T.getPlaylist()}; g.EU=function(T,Q){g.Ay(T,"addEmbedsConversionTrackingParams",[Q])}; g.V5=function(T){return(T=g.y5(T.Bx()))?T.gz():{}}; g.DZI=function(T){T=(T=T.getVideoData())&&T.S;return!!T&&!(!T.audio||!T.video)&&T.mimeType!=="application/x-mpegURL"}; g.TQ=function(T,Q,k){T=T.Hx().element;var l=pW(T.children,function(v){v=Number(v.getAttribute("data-layer"));return k-v||1}); l<0&&(l=-(l+1));hZ(T,Q,l);Q.setAttribute("data-layer",String(k))}; g.QS=function(T){var Q=T.G();if(!Q.Ah)return!1;var k=T.getVideoData();if(!k||T.getPresentingPlayerType()===3)return!1;var l=(!k.isLiveDefaultBroadcast||Q.V("allow_poltergust_autoplay"))&&!sU(k);l=k.isLivePlayback&&(!Q.V("allow_live_autoplay")||!l);var v=k.isLivePlayback&&Q.V("allow_live_autoplay_on_mweb");T=T.getPlaylist();T=!!T&&T.G0();var L=k.e6&&k.e6.playerOverlays||null;L=!!(L&&L.playerOverlayRenderer&&L.playerOverlayRenderer.autoplay);L=k.hh&&L;return!k.ypcPreview&&(!l||v)&&!g.CW(k.D,"ypc")&& !T&&(!g.Qk(Q)||L)}; uvu=function(T,Q){T=aQX(T.app.vG().N);T=g.B(T);for(var k=T.next();!k.done;k=T.next()){k=k.value;var l=k.getAvailableAudioTracks(),v=null;l=g.B(l);for(var L=l.next();!L.done;L=l.next())if(L=L.value,L.getLanguageInfo().getId()===Q){v=L;break}v&&k.lx(v,!0)}}; jc=function(){nY.apply(this,arguments);this.requestHeaders={}}; lf=function(){kH||(kH=new jc);return kH}; oR=function(T,Q){Q?T.requestHeaders.Authorization="Bearer "+Q:delete T.requestHeaders.Authorization}; g.vR=function(T){g.x.call(this);var Q=this;this.yq=T;this.dn={Le:function(){return Q.yq}}}; g.LA=function(T,Q,k,l){l=l===void 0?!1:l;g.M1.call(this,Q);var v=this;this.U=T;this.hj=l;this.j=new g.Bj(this);this.fade=new g.TZ(this,k,!0,void 0,void 0,function(){v.Dh()}); g.P(this,this.j);g.P(this,this.fade)}; qz=function(T){var Q=T.U.getRootNode();return T.U.V("web_watch_pip")||T.U.V("web_shorts_pip")?Qf(Q):document}; nS6=function(T){T.S&&(document.activeElement&&g.SO(T.element,document.activeElement)&&T.S.focus(),T.S.setAttribute("aria-expanded","false"),T.S=void 0);g.N5(T.j);T.D=void 0}; gh=function(T,Q,k){T.n$()?T.sG():T.fA(Q,k)}; Mz=function(T,Q,k,l){l=new g.p({X:"div",Rk:["ytp-linked-account-popup-button"],S6:l,K:{role:"button",tabindex:"0"}});Q=new g.p({X:"div",J:"ytp-linked-account-popup",K:{role:"dialog","aria-modal":"true",tabindex:"-1"},W:[{X:"div",J:"ytp-linked-account-popup-title",S6:Q},{X:"div",J:"ytp-linked-account-popup-description",S6:k},{X:"div",J:"ytp-linked-account-popup-buttons",W:[l]}]});g.LA.call(this,T,{X:"div",J:"ytp-linked-account-popup-container",W:[Q]},100);var v=this;this.dialog=Q;g.P(this,this.dialog); l.listen("click",function(){v.sG()}); g.P(this,l);g.TQ(this.U,this.element,4);this.hide()}; g.UQ=function(T,Q,k,l){g.M1.call(this,T);this.priority=Q;k&&g.YH(this,k);l&&this.qF(l)}; g.RR=function(T,Q,k,l){T=T===void 0?{}:T;Q=Q===void 0?[]:Q;k=k===void 0?!1:k;l=l===void 0?!1:l;Q.push("ytp-menuitem");var v=T;"role"in v||(v.role="menuitem");k||(v=T,"tabindex"in v||(v.tabindex="0"));T={X:k?"a":"div",Rk:Q,K:T,W:[{X:"div",J:"ytp-menuitem-icon",S6:"{{icon}}"},{X:"div",J:"ytp-menuitem-label",S6:"{{label}}"},{X:"div",J:"ytp-menuitem-content",S6:"{{content}}"}]};l&&T.W.push({X:"div",J:"ytp-menuitem-secondary-icon",S6:"{{secondaryIcon}}"});return T}; g.YH=function(T,Q){T.updateValue("label",Q)}; ZR=function(T){g.UQ.call(this,g.RR({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var Q=this;this.U=T;this.S=this.T=!1;this.YB=T.K$();T.createServerVe(this.element,this,!0);this.Z(this.U,"settingsMenuVisibilityChanged",function(k){Q.vx(k)}); this.Z(this.U,"videodatachange",this.Y);this.listen("click",this.onClick);this.Y()}; fA=function(T){return T?g.Rx(T):""}; GQ=function(T){g.x.call(this);this.api=T}; mW=function(T){GQ.call(this,T);var Q=this;ws(T,"setAccountLinkState",function(k){Q.setAccountLinkState(k)}); ws(T,"updateAccountLinkingConfig",function(k){Q.updateAccountLinkingConfig(k)}); T.addEventListener("videodatachange",function(k,l){Q.onVideoDataChange(l)}); T.addEventListener("settingsMenuInitialized",function(){Q.menuItem=new ZR(Q.api);g.P(Q,Q.menuItem)})}; Kxf=function(T){this.api=T;this.T={}}; IR=function(T,Q,k,l){Q in T.T||(k=new g.$d(k,l,{id:Q,priority:2,namespace:"appad"}),T.api.fY([k],1),T.T[Q]=k)}; hN=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(this);g.P(this,this.events);this.T=new Kxf(this.api);this.events.Z(this.api,"legacyadtrackingpingreset",function(){Q.T.T={}}); this.events.Z(this.api,"legacyadtrackingpingchange",function(k){var l=Q.T;IR(l,"part2viewed",1,0x8000000000000);IR(l,"engagedview",Math.max(1,k.QR*1E3),0x8000000000000);if(!k.isLivePlayback){var v=k.lengthSeconds*1E3;NY(k)&&l.api.V("html5_shorts_gapless_ads_duration_fix")&&(v=l.api.getProgressState().seekableEnd*1E3-k.Sq);IR(l,"videoplaytime25",v*.25,v);IR(l,"videoplaytime50",v*.5,v);IR(l,"videoplaytime75",v*.75,v);IR(l,"videoplaytime100",v,0x8000000000000);IR(l,"conversionview",v,0x8000000000000); IR(l,"videoplaybackstart",1,v);IR(l,"videoplayback2s",2E3,v);IR(l,"videoplayback10s",1E4,v)}}); this.events.Z(this.api,g.ej("appad"),this.S);this.events.Z(this.api,g.Ft("appad"),this.S)}; tsu=function(T,Q,k){if(!(k in Q))return!1;Q=Q[k];Array.isArray(Q)||(Q=[Q]);Q=g.B(Q);for(k=Q.next();!k.done;k=Q.next()){k=k.value;var l={CPN:T.api.getVideoData().clientPlaybackNonce};k=g.Ae(k,l);l=void 0;l=l===void 0?!1:l;(l=PI(HI(k,xZC),k,l,"Active View 3rd Party Integration URL"))||(l=void 0,l=l===void 0?!1:l,l=PI(HI(k,P8t),k,l,"Google/YouTube Brand Lift URL"));l||(l=void 0,l=l===void 0?!1:l,l=PI(HI(k,HQt),k,l,"Nielsen OCR URL"));g.uM(k,void 0,l)}return!0}; sQ=function(T,Q){OQI(T,Q).then(function(k){g.uM(Q,void 0,void 0,k)})}; Sc=function(T,Q){Q.forEach(function(k){sQ(T,k)})}; OQI=function(T,Q){return g.G4(T.api.G())&&q2(Q)&&Lh(Q)?g.rj(T.api.G(),g.YD(T.api.getVideoData())).then(function(k){var l;k&&(l={Authorization:"Bearer "+k});return l},void 0):rV()}; pC5=function(T){GQ.call(this,T);this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"videoready",function(Q){if(T.getPresentingPlayerType()===1){var k,l,v={playerDebugData:{pmlSignal:!!((k=Q.getPlayerResponse())==null?0:(l=k.adPlacements)==null?0:l.some(function(L){var q;return L==null?void 0:(q=L.adPlacementRenderer)==null?void 0:q.renderer})), contentCpn:Q.clientPlaybackNonce}};g.LM("adsClientStateChange",v)}})}; CA=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);ws(this.api,"getUserAudioQualitySetting",function(){return Q.getUserAudioQualitySetting()}); ws(this.api,"setUserAudioQualitySetting",function(k){Q.setUserAudioQualitySetting(k)}); ws(this.api,"hasHqaAudioTrack",function(){return Q.hasHqaAudioTrack()}); this.xu=Ljf();this.updateEnvironmentData()}; BR=function(T){g.p.call(this,{X:"button",Rk:["ytp-button","ytp-autonav-toggle"],K:{title:T.V("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"},W:[{X:"div",J:"ytp-autonav-toggle-button-container",W:[{X:"div",J:"ytp-autonav-toggle-button",K:{"aria-checked":"true"}}]}]});this.U=T;this.S=[];this.T=!1;this.isChecked=!0;T.createClientVe(this.element,this, 113681);this.Z(T,"presentingplayerstatechange",this.P9);this.listen("click",this.onClick);this.U.G().V("web_player_autonav_toggle_always_listen")&&Wxg(this);OU(T,this.element,this);this.P9()}; Wxg=function(T){T.S.push(T.Z(T.U,"videodatachange",T.P9));T.S.push(T.Z(T.U,"videoplayerreset",T.P9));T.S.push(T.Z(T.U,"onPlaylistUpdate",T.P9));T.S.push(T.Z(T.U,"autonavchange",T.Uo))}; $Zu=function(T){T.isChecked=T.isChecked;T.L_("ytp-autonav-toggle-button").setAttribute("aria-checked",String(T.isChecked));var Q=T.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";T.U.G().V("player_tooltip_data_title_killswitch")?T.update({title:Q,label:Q}):T.update({"data-tooltip-title":Q,label:Q});T.U.wO()}; J1T=function(T){return T.U.G().V("web_player_autonav_use_server_provided_state")&&Ct(T.mF())}; eEJ=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"standardControlsInitialized",function(){var k=new BR(T);g.P(Q,k);T.oN(k,"RIGHT_CONTROLS_LEFT")})}; zQ=function(T,Q){g.UQ.call(this,g.RR({role:"menuitemcheckbox","aria-checked":"false"}),Q,T,{X:"div",J:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; Xe=function(T,Q){T.checked=Q;T.element.setAttribute("aria-checked",String(T.checked))}; FxH=function(T){var Q=!T.G().E4&&T.getPresentingPlayerType()!==3;return T.isFullscreen()||Q}; g.wh=function(T,Q,k,l){var v=T.currentTarget;if((k===void 0||!k)&&g.B8(T))return T.preventDefault(),!0;Q.pauseVideo();T=v.getAttribute("href");g.t$(T,l,!0);return!1}; g.dh=function(T,Q,k){if(h9(Q.G())&&Q.getPresentingPlayerType()!==2){if(g.B8(k))return Q.isFullscreen()&&!Q.G().externalFullscreen&&Q.toggleFullscreen(),k.preventDefault(),!0}else{var l=g.B8(k);l&&Q.pauseVideo();g.t$(T,void 0,!0);l&&(g.Oe(T),k.preventDefault())}return!1}; ESC=function(T){T=Nz.includes("es-419")?T.V("delhi_modern_web_player_icons")?hc():{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,K:{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"}}]}:T.V("delhi_modern_web_player_icons")?x56():{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,K:{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"}}]};T.J="ytp-subtitles-button-icon"; return T}; y1g=function(T){return Nz.includes("es-419")?T?hc():{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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"}}]}:T?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},W:[{X:"path",K:{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"}}]}:{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; AN=function(){return{X:"div",J:"ytp-spinner-container",W:[{X:"div",J:"ytp-spinner-rotator",W:[{X:"div",J:"ytp-spinner-left",W:[{X:"div",J:"ytp-spinner-circle"}]},{X:"div",J:"ytp-spinner-right",W:[{X:"div",J:"ytp-spinner-circle"}]}]}]}}; bf=function(T){if(document.createRange){var Q=document.createRange();Q&&(Q.selectNodeContents(T),T=window.getSelection())&&(T.removeAllRanges(),T.addRange(Q))}}; DR=function(T){var Q=T.V("web_player_use_cinematic_label_2")?"Modo ambiente":"Iluminaci\u00f3n cinematogr\u00e1fica";zQ.call(this,Q,g.rh.Zo);var k=this;this.U=T;this.T=!1;this.S=new g.FA(function(){g.Lb(k.element,"ytp-menuitem-highlighted")},0); this.YB=T.K$();T=T.V("delhi_modern_web_player_icons")?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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"}}]}:{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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(T);this.subscribe("select",this.L,this);this.listen(cR,this.Y);g.P(this,this.S)}; aR=function(T){GQ.call(this,T);var Q=this;this.T=!1;T.addEventListener("settingsMenuInitialized",function(){iQb(Q)}); T.addEventListener("highlightSettingsMenu",function(k){iQb(Q);var l=Q.menuItem;k==="menu_item_cinematic_lighting"&&(g.oF(l.element,"ytp-menuitem-highlighted"),g.oF(l.element,"ytp-menuitem-highlight-transition-enabled"),l.S.start())}); ws(T,"updateCinematicSettings",function(k){Q.updateCinematicSettings(k)})}; iQb=function(T){T.menuItem||(T.menuItem=new DR(T.api),g.P(T,T.menuItem),T.menuItem.Aj(T.T))}; VsI=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"applicationvideodatachange",function(k,l){l=l.clipConfig;k==="dataloaded"&&l&&l.startTimeMs!=null&&l.endTimeMs!=null&&Q.api.setLoopRange({startTimeMs:Math.floor(Number(l.startTimeMs)),endTimeMs:Math.floor(Number(l.endTimeMs)),postId:l.postId,type:"clips"})})}; uf=function(T){GQ.call(this,T);this.events=new g.Bj(T);g.P(this,this.events);ws(T,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));ws(T,"setCreatorEndscreenHideButton",this.T.bind(this))}; nA=function(T,Q,k,l){zQ.call(this,"Volumen estable",g.rh.U0);g.oF(this.element,"ytp-drc-menu-item");this.YB=T.K$();this.L=Q;this.T=k;this.hasDrcAudioTrack=l;T.addEventListener("videodatachange",this.S.bind(this));T.V("mta_drc_mutual_exclusion_removal")&&this.Z(T,"onPlaybackAudioChange",this.S);Q=this.T()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());T=T.V("delhi_modern_web_player_icons")?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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"}}]}:{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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(T);this.subscribe("select",this.Y,this);Xe(this,Q);this.YB.A6(this)}; KA=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);T.V("html5_show_drc_toggle")&&T.addEventListener("settingsMenuInitialized",function(){Q.menuItem||(Q.menuItem=new nA(Q.api,Q.setDrcUserPreference.bind(Q),Q.getDrcUserPreference.bind(Q),Q.S.bind(Q)),g.P(Q,Q.menuItem))}); ws(this.api,"setDrcUserPreference",function(l){Q.setDrcUserPreference(l)}); ws(this.api,"getDrcUserPreference",function(){return Q.getDrcUserPreference()}); ws(this.api,"hasDrcAudioTrack",function(){return Q.S()}); var k;this.T=(k=g.cy("yt-player-drc-pref"))!=null?k:1;this.updateEnvironmentData()}; xH=function(T){GQ.call(this,T);var Q=this;this.T={};this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"videodatachange",function(){Q.onVideoDataChange()}); this.events.Z(T,g.ej("embargo"),function(k){Q.api.qm(!0);var l,v=(l=Q.T[k.id])!=null?l:[];l=g.B(v);for(v=l.next();!v.done;v=l.next()){var L=v.value;Q.api.hideControls();Q.api.NL("auth",2,"This video isn't available in your current playback area",RE({embargoed:1,id:k.id,idx:k.S,start:k.start}));v=void 0;(L=(v=L.embargo)==null?void 0:v.onTrigger)&&Q.api.tj("innertubeCommand",L)}})}; Tt5=function(T,Q){var k;return(k=Q.onEnter)==null?void 0:k.some(T.S)}; Q3H=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next()){k=k.value;var l=void 0,v=Number((l=k.playbackPosition)==null?void 0:l.utcTimeMillis)/1E3,L=void 0;l=v+Number((L=k.duration)==null?void 0:L.seconds);L="embargo_"+v;T.api.addUtcCueRange(L,v,l,"embargo",!1);k.onEnter&&(T.T[L]=k.onEnter.filter(T.S))}}; PR=function(T){GQ.call(this,T);var Q=this;this.T=[];this.events=new g.Bj(T);g.P(this,this.events);ws(T,"addEmbedsConversionTrackingParams",function(k){Q.addEmbedsConversionTrackingParams(k)}); this.events.Z(T,"veClickLogged",function(k){Q.api.hasVe(k)&&(k=k.visualElement.getAsJspb(),k=rL(k,2),Q.T.push(k))})}; j36=function(T){GQ.call(this,T);ws(T,"isEmbedsShortsMode",function(){return T.isEmbedsShortsMode()})}; kqu=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"initialvideodatacreated",function(k){En(Fv(),16623);Q.T=g.C9();var l=T.G().ek&&!k.vk;if(Mf(k)&&l){En(Fv(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(k.getWatchNextResponse()){var v,L=(v=k.getWatchNextResponse())==null?void 0:v.trackingParams;L&&i8(L)}if(k.getPlayerResponse()){var q;(k=(q=k.getPlayerResponse())==null?void 0:q.trackingParams)&&i8(k)}}else En(Fv(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),k.getEmbeddedPlayerResponse()&&(q=(L=k.getEmbeddedPlayerResponse())==null?void 0:L.trackingParams)&&i8(q)}); this.events.Z(T,"loadvideo",function(){En(Fv(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:Q.T})}); this.events.Z(T,"cuevideo",function(){En(Fv(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:Q.T})}); this.events.Z(T,"largeplaybuttonclicked",function(k){En(Fv(),27240,k.visualElement)}); this.events.Z(T,"playlistnextbuttonclicked",function(k){En(Fv(),27240,k.visualElement)}); this.events.Z(T,"playlistprevbuttonclicked",function(k){En(Fv(),27240,k.visualElement)}); this.events.Z(T,"playlistautonextvideo",function(){En(Fv(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; HR=function(T,Q){g.x.call(this);var k=this;this.T=null;this.L=Q;Q=[];for(var l=0;l<=100;l++)Q.push(l/100);Q={threshold:Q,trackVisibility:!0,delay:1E3};(this.S=window.IntersectionObserver?new IntersectionObserver(function(v){v=v[v.length-1];var L=null;typeof v.isVisible==="undefined"?document.visibilityState==="visible"&&v.isIntersecting&&v.intersectionRatio>0?L=v.intersectionRatio:document.visibilityState==="hidden"?L=0:L=null:L=v.isVisible?v.intersectionRatio:0;L!=null&&(L=Math.max(L,0),L=Math.min(L, 1));k.T=L;typeof k.L==="function"&&k.L(k.T)},Q):null)&&this.S.observe(T)}; ogb=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"applicationInitialized",function(){lc6(Q)})}; lc6=function(T){var Q=T.api.getRootNode(),k,l=T.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((k=Q.parentElement)==null?void 0:k.parentElement)||Q:Q;T.T=new HR(l,function(v){v!=null&&(T.api.G().XU=v,T.api.G().U1="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.P(T,T.T);T.events.Z(T.api,"videoStatsPingCreated",function(v){var L=T.T;L=L.T==null?null:Math.round(L.T*100)/100;v.inview=L!=null?L:void 0;L=T.api.getPlayerSize();if(L.height>0&&L.width>0){L=[Math.round(L.width),Math.round(L.height)];var q=g.SF();q>1&&L.push(q);L=L.join(":")}else L=void 0;v.size=L})}; vgt=function(T){var Q;return((Q=((T==null?void 0:T.messageRenderers)||[]).find(function(k){return!!k.timeCounterRenderer}))==null?void 0:Q.timeCounterRenderer)||null}; tN=function(T){g.p.call(this,{X:"div",Rk:["ytp-player-content","ytp-iv-player-content"],W:[{X:"div",J:"ytp-free-preview-countdown-timer",W:[{X:"span",S6:"{{label}}"},{X:"span",J:"ytp-free-preview-countdown-timer-separator",S6:"\u2022"},{X:"span",S6:"{{duration}}"}]}]});this.api=T;this.T=null;this.L=this.S=0;this.Z(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; qVT=function(T,Q){T.T||(T.S=Q,T.L=(0,g.XY)(),T.T=new g.ee(function(){LkI(T)},null),LkI(T))}; LkI=function(T){var Q=Math,k=Q.round,l=Math.min((0,g.XY)()-T.L,T.S);Q=k.call(Q,(T.S-l)/1E3);T.updateValue("duration",t1({seconds:Q}));Q<=0&&T.T?T.stopTimer():T.T&&T.T.start()}; ggH=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"basechromeinitialized",function(){Q.T=new tN(T);g.P(Q,Q.T);g.TQ(T,Q.T.element,4);Q.T.hide()})}; OQ=function(T){g.p.call(this,{X:"button",Rk:["ytp-fullerscreen-edu-button","ytp-button"],W:[{X:"div",Rk:["ytp-fullerscreen-edu-text"],S6:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{X:"div",Rk:["ytp-fullerscreen-edu-chevron"],W:[{X:"svg",K:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{X:"path",K:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],K:{"data-priority":"2"}});this.ZV=T;this.fade=new g.TZ(this,250,void 0,100);this.S=this.T= !1;T.createClientVe(this.element,this,61214);g.P(this,this.fade);this.Z(T,"fullscreentoggled",this.Aj);this.Z(T,"presentingplayerstatechange",this.Aj);this.listen("click",this.onClick);this.Aj()}; pA=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);ws(this.api,"updateFullerscreenEduButtonSubtleModeState",function(l){Q.updateFullerscreenEduButtonSubtleModeState(l)}); ws(this.api,"updateFullerscreenEduButtonVisibility",function(l){Q.updateFullerscreenEduButtonVisibility(l)}); var k=T.G();T.V("external_fullscreen_with_edu")&&k.externalFullscreen&&h9(k)&&k.controlsType==="1"&&this.events.Z(T,"standardControlsInitialized",function(){Q.T=new OQ(T);g.P(Q,Q.T);T.oN(Q.T)})}; MXX=function(T){g.p.call(this,{X:"div",J:"ytp-gated-actions-overlay",W:[{X:"div",J:"ytp-gated-actions-overlay-background",W:[{X:"div",J:"ytp-gated-actions-overlay-background-overlay"}]},{X:"button",Rk:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],K:{"aria-label":"Cerrar"},W:[g.Ix()]},{X:"div",J:"ytp-gated-actions-overlay-bar",W:[{X:"div",J:"ytp-gated-actions-overlay-text-container",W:[{X:"div",J:"ytp-gated-actions-overlay-title",S6:"{{title}}"},{X:"div",J:"ytp-gated-actions-overlay-subtitle", S6:"{{subtitle}}"}]},{X:"div",J:"ytp-gated-actions-overlay-button-container"}]}]});var Q=this;this.api=T;this.background=this.L_("ytp-gated-actions-overlay-background");this.S=this.L_("ytp-gated-actions-overlay-button-container");this.T=[];this.Z(this.L_("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){Q.api.tj("onCloseMiniplayer")}); this.hide()}; UQJ=function(T,Q){var k=0;k=0;for(var l={};k v&&(v=Y.width,L="url("+Y.url+")")}k.background.style.backgroundImage=L;UQJ(k,l.actionButtons||[]);k.show()}else k.hide()}); g.TQ(this.api,this.T.element,4)}; WR=function(T){GQ.call(this,T);var Q=this;Nf(this.api,"getSphericalProperties",function(){return Q.getSphericalProperties()}); Nf(this.api,"setSphericalProperties",function(){Q.setSphericalProperties.apply(Q,g.ZH(g.HT.apply(0,arguments)))}); ds(this.api,"getSphericalProperties",function(){return Q.api.getPresentingPlayerType()===2?{}:Q.getSphericalProperties()}); ds(this.api,"setSphericalProperties",function(){var k=g.HT.apply(0,arguments);Q.api.getPresentingPlayerType()!==2&&Q.setSphericalProperties.apply(Q,g.ZH(k))})}; $H=function(T){GQ.call(this,T);ws(T,"createClientVe",this.createClientVe.bind(this));ws(T,"createServerVe",this.createServerVe.bind(this));ws(T,"destroyVe",this.destroyVe.bind(this));ws(T,"hasVe",this.hasVe.bind(this));ws(T,"logClick",this.logClick.bind(this));ws(T,"logVisibility",this.logVisibility.bind(this));ws(T,"setTrackingParams",this.setTrackingParams.bind(this))}; JN=function(T,Q,k,l){function v(q){var Y=!(q.status!==204&&q.status!==200&&!q.response),U;q={succ:""+ +Y,rc:q.status,lb:((U=q.response)==null?void 0:U.byteLength)||0,rt:((0,g.XY)()-L).toFixed(),shost:g.Rq(T),trigger:Q};ZPC(q,T);k&&k(q);l&&!Y&&l(new g.ZK("pathprobe.net",q))} var L=(0,g.XY)();g.zO(T,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:v,onTimeout:v})}; ZPC=function(T,Q){var k;((k=window.performance)==null?0:k.getEntriesByName)&&(Q=performance.getEntriesByName(Q))&&Q.length&&(Q=Q[0],T.pedns=(Q.domainLookupEnd-Q.startTime).toFixed(),T.pecon=(Q.connectEnd-Q.domainLookupEnd).toFixed(),T.perqs=(Q.requestStart-Q.connectEnd).toFixed(),fc5&&(T.perqsa=Q.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; Gqu=function(T){fc5=T}; ec=function(T,Q){this.V4=T;this.policy=Q;this.playbackRate=1}; mQX=function(T,Q){var k=Math.min(2.5,WL(T.V4));T=Fe(T);return Q-k*T}; EQ=function(T,Q,k,l,v){v=v===void 0?!1:v;if(T.policy.OE)return Math.ceil(T.policy.OE*Q);T.policy.dV&&(l=Math.abs(l));l/=T.playbackRate;var L=1/e4(T.V4);k=Math.max(.9*(l-3),WL(T.V4)+T.V4.S.T*L)/L*.8/(Q+k);k=Math.min(k,l);T.policy.Lp>0&&v&&(k=Math.max(k,T.policy.Lp));return Ic5(T,k,Q)}; Ic5=function(T,Q,k){return Math.ceil(Math.max(Math.max(T.policy.mK,T.policy.E6*k),Math.min(Math.min(T.policy.sK,31*k),Math.ceil(Q*k))))||T.policy.mK}; hxt=function(T,Q,k){k=EQ(T,Q.T.info.qY,k.T.info.qY,0);var l=WL(T.V4)+k/e4(T.V4);return Math.max(l,l+T.policy.XZ-k/Q.T.info.qY)}; Fe=function(T){return e4(T.V4,!T.policy.kh,T.policy.Mv)}; yS=function(T){return Fe(T)/T.playbackRate}; VS=function(T,Q,k){var l=T.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],v=T.policy.playbackStartPolicy.startMinReadaheadPolicy||[];T=Infinity;Q=g.B(Q&&l.length>0?l:v);for(l=Q.next();!l.done;l=Q.next())l=l.value,v=l.minReadaheadMs||0,k<(l.minBandwidthBytesPerSec||0)||T>v&&(T=v);return T0&&(this.S=k.bR)}; CdC=function(T,Q,k,l,v){if(!l.info.Y){if(k.length===0)k.push(l);else{var L;(T=(L=k.pop())==null?void 0:g.wd(L,l))?k.push(T):k.push(l)}return v}var q;(k=(q=k.pop())==null?void 0:g.wd(q,l))||(k=l);if(k.info.S)return T.logger&&T.logger({incompleteSegment:k.info.Bh()}),v;l=T.V5(k);v=l.NO;l={clipId:l.clipId,formatId:l.formatId,startTimeMs:l.startTimeMs,durationMs:l.uN,CB:v,iH:v};v=s35(Q,l.startTimeMs);if(L=k=v>=0?Q[v]:null){L=l;var Y=v;q=k.startTimeMs+k.durationMs;var U=L.startTimeMs+L.durationMs;if(L.startTimeMs- q>T.S)L=!1;else if(SVH(T,k.formatId,L.formatId))k.durationMs=Math.max(q,U)-k.startTimeMs,k.iH=Math.max(k.iH,L.iH),L=!0;else if(Math.abs(k.startTimeMs-L.startTimeMs)<=T.S)if(k.durationMs>L.durationMs+T.S){var R=k.formatId,Z=k.CB;Y=k.iH;k.formatId=L.formatId;k.durationMs=L.durationMs;k.CB=L.CB;k.iH=L.iH;L.formatId=R;L.startTimeMs=U;L.durationMs=q-U;L.CB=Z;L.iH=Y;L=!1}else k.formatId=L.formatId,L=!0;else q>L.startTimeMs&&(q>U&&(Q.splice(Y+1,0,{formatId:k.formatId,startTimeMs:U,durationMs:q-U,CB:L.iH+ 1,iH:k.iH}),T.logger&&T.logger({splitOldStart:(R=k.startTimeMs)==null?void 0:R.toFixed(3),splitOldEnd:q==null?void 0:q.toFixed(3),splitNewStart:(Z=L.startTimeMs)==null?void 0:Z.toFixed(3),splitNewEnd:U==null?void 0:U.toFixed(3)})),k.durationMs=L.startTimeMs-k.startTimeMs,k.iH=L.CB-1),L=!1}L?l=k:(v+=1,Q.splice(v,0,l));R=0;for(Z=v+1;Z=U+k.S?k=!0:Y+k.S=0?T:-T-2}; BtJ=function(T,Q){if(T.jr){var k=T.jr.LG();if(k.length!==0){if(T.L&&Q){var l=T.L,v=l.info.N;!y4(k,v)&&l.info.j>0&&(0,g.XY)()-T.B<5E3&&(T.logger&&T.logger({dend:l.info.Bh()}),k=x1f(k,v,v+.01))}T.policy.s1&&T.logger&&T.logger({cbri:""+T.T});l=[];for(var L=v=0;v=q){var Z=Object.assign({},T.Yc[L]),f=T.C_.L.get(Ew(T.Yc[L].formatId)),G=Math.max(U,q);q=f.index.ll(G+T.S/ 1E3);U=f.index.getStartTime(q);var m=q+ +(Math.abs(U-G)>T.S/1E3);G=m+T.Y;m=f.index.getStartTime(m)*1E3;L!==T.T||Q?(Z.CB=G,Z.startTimeMs=m):(T.logger&&T.logger({pEvict:"1",og:Z.startTimeMs,adj:U*1E3}),Z.CB=q+T.Y,Z.startTimeMs=U*1E3);q=void 0;U=((q=T.L)==null?void 0:q.info.duration)||11;L===T.T&&YT.S/1E3);q=U+T.Y;f=f.index.nm(U)*1E3;Z.iH=q;Z.durationMs=f-Z.startTimeMs;Z.CB<=Z.iH&&l.push(Z)}R=0&&oz(T.audioTrack,T.targetTime)>=0&&L?((T.videoTrack.N||T.audioTrack.N)&&T.loader.T9("iterativeSeeking",{status:"done",count:T.seekCount}),T.videoTrack.N=!1,T.audioTrack.N=!1):l&&g.Ad(function(){if(T.T||!T.policy.QR)qm(T);else{var q=Q.startTime,Y=Q.duration;if(!T.policy.N){var U=k?T.videoTrack.N:T.audioTrack.N,R=T.videoTrack.B!==-1&&T.audioTrack.B!==-1,Z=T.targetTime>=q&&T.targetTime432E3&&Peu(T.C_);T.S&&(v=T.S,T.S=0);g.Ad(function(){T.policy.N||gQ(T,v,102)}); T.loader.T9("initManifestlessSync",{st:v,ost:v+T.loader.Px(),a:T.audioTrack.B,v:T.videoTrack.B});T.L&&(T.L.resolve(v+.1),T.L=null);T.policy.N&&gQ(T,v,102)}}}; Ux=function(T,Q){var k=this;this.m1=T;this.requestNumber=++ngg;this.T=this.now();this.j=this.D=NaN;this.C=this.T;this.L=this.Ig=this.N=0;this.B=this.T;this.f_=this.qO=this.e6=this.Fk=this.DP=this.xm=this.S=this.Y=0;this.z9=this.isActive=!1;this.d5=this.zg=0;this.dn={vuH:function(){return k.Zr}}; this.V4=Q.V4;this.snapshot=rQf(this.V4);this.policy=this.V4.S;this.Ox=!!Q.Ox;this.uu=Q.uu;this.Ds=Q.Ds||0;this.bH=Q.bH||0;Q.By&&(this.i9=new uc);var l;this.Zr=(l=Q.Zr)!=null?l:!1;this.Ox||NMf(this.V4)}; Kk5=function(T){T.e6=Math.max(T.e6,T.N-T.DP);T.qO=Math.max(T.qO,T.C-T.Fk);T.xm=0}; Rz=function(T,Q,k){AQ5(T.V4,Q);T.i9&&(T.i9.add(Math.ceil(Q)-Math.ceil(T.C)),T.i9.add(Math.max(0,Math.ceil(k/1024)-Math.ceil(T.N/1024))));var l=Q-T.C,v=k-T.N;T.Ig=v;T.f_=Math.max(T.f_,v/(l+.01)*1E3);T.C=Q;T.N=k;T.xm&&k>T.xm&&Kk5(T)}; Zm=function(T,Q){T.url=Q;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; fr=function(T,Q){Ux.call(this,T,Q);this.QR=this.Gg=!1;this.Bd=this.hj=Infinity;this.sK=NaN;this.h3=!1;this.K_=NaN;this.OG=this.Jj=this.p_=0;this.JS=Q.JS||1;this.ra=Q.ra||this.JS;this.fp=Q.fp;this.NO=Q.NO;this.Jx=Q.Jx;xQt(this);this.T2(this.T);this.Tg=(this.K_-this.T)/1E3}; PdT=function(T){var Q=T.Jj||T.p_;return Q?T.snapshot.delay+Math.min(T.bH,(T.j-T.D)/1E3)+Q:T.Tg}; G_=function(T,Q,k){if(!T.Ox){Q=Math.max(Q,.01);var l=T.Ds?Math.max(Q,k/T.Ds):Q,v=T.V4.S.L;v&&(l=Q,T.Ds&&(l=Math.max(Q,k/T.Ds*v)));tS(T.V4,Q,k,l)}}; HP5=function(T){return(T.B-T.T)/1E3}; xQt=function(T){T.sK=T.T+T.snapshot.delay*1E3;T.h3=!1}; mG=function(T,Q){if(T.fp&&T.NO!==void 0&&T.Jx!==void 0){var k=Math,l=k.min,v=T.hj;var L=T.fp;var q=T.T;if(tXf(L,T.NO))L=Q;else{var Y=0;L.Jy&&(Y=.2);L=q+(L.bH+Y)*1E3}T.hj=l.call(k,v,L);k=Math;l=k.min;v=T.Bd;L=T.fp;q=T.T;Y=OPb(L,T.NO,T.Jx);Y!==2&&(Q=Y?Q:q+L.bH*1E3,L.Jy&&(Q+=L.bH*1E3));T.Bd=l.call(k,v,Q);T.hj<=T.T?xQt(T):(T.sK=T.hj,T.h3=!0)}}; prf=function(T,Q){if(Q+1<=T.totalLength){var k=Uj(T,Q);k=k<128?1:k<192?2:k<224?3:k<240?4:5}else k=0;if(k<1||!(Q+k<=T.totalLength))return[-1,Q];if(k===1)T=Uj(T,Q++);else if(k===2)k=Uj(T,Q++),T=Uj(T,Q++),T=(k&63)+64*T;else if(k===3){k=Uj(T,Q++);var l=Uj(T,Q++);T=Uj(T,Q++);T=(k&31)+32*(l+256*T)}else if(k===4){k=Uj(T,Q++);l=Uj(T,Q++);var v=Uj(T,Q++);T=Uj(T,Q++);T=(k&15)+16*(l+256*(v+256*T))}else k=Q+1,T.focus(k),g5(T,k,4)?T=plJ(T).getUint32(k-T.L,!0):(l=Uj(T,k+2)+256*Uj(T,k+3),T=Uj(T,k)+256*(Uj(T,k+1)+ 256*l)),Q+=5;return[T,Q]}; Iz=function(T){this.m1=T;this.T=new oV}; hU=function(T,Q){this.info=T;this.callback=Q;this.state=1;this.TQ=this.VK=!1;this.N_=null}; Wk5=function(T){return g.hm(T.info.MO,function(Q){return Q.type===3})}; sx=function(T,Q,k,l){var v=this;l=l===void 0?{}:l;this.policy=Q;this.m1=k;this.status=0;this.T=new oV;this.S=0;this.wd=this.Y=this.L=!1;this.xhr=new XMLHttpRequest;this.xhr.open(l.method||"GET",T);if(l.headers)for(T=l.headers,Q=g.B(Object.keys(T)),k=Q.next();!k.done;k=Q.next())k=k.value,this.xhr.setRequestHeader(k,T[k]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return v.Hw()}; this.xhr.onload=function(){return v.onDone()}; this.xhr.onerror=function(){return v.onError()}; this.xhr.fetch(function(L){v.T.append(L);v.S+=L.length;L=(0,g.XY)();v.m1.La(L,v.S)},function(){},l.body||null)}; $Qy=function(T,Q){this.S=(new TextEncoder).encode(T);this.T=(new TextEncoder).encode(Q)}; $A5=function(T,Q){var k;return g.a(function(l){if(!Q)return l.return(Q);k=new g.Ua(T.S);return l.return(k.encrypt(Q,T.T))})}; yk6=function(T,Q){var k;return g.a(function(l){if(l.S==1){if(!Q)return l.return(Q);k=new g.Ua(T.S);return g.c(l,k.decrypt(Q,T.T),2)}return l.return(l.T)})}; exy=function(T,Q){var k=this;this.T=T;this.m1=Q;this.loaded=this.status=0;this.error="";T=Vn(this.T.get("range")||"");if(!T)throw Error("bad range");this.range=T;this.S=new oV;J_b(this).then(function(){k.m1.Ex()},function(l){k.error=""+l||"unknown_err"; k.m1.Ex()})}; J_b=function(T){var Q,k,l,v,L,q,Y,U,R,Z,f,G,m,I,z;return g.a(function(w){if(w.S==1){T.status=200;Q=T.T.get("docid");k=bX(T.T.get("fmtid")||"");l=T.T.get("lmt")||"0";v=+(T.T.get("csz")||0);if(!Q||!k||!v)throw Error("Invalid local URL");T.T.get("ck")&&T.T.get("civ")&&(L=new $Qy(T.T.get("ck"),T.T.get("civ")));q=T.range;Y=Math.floor(q.start/v);U=Math.floor(q.end/v);R=Y}if(w.S!=5)return R<=U?g.c(w,i7I(Q,k,l,R,L),5):w.Ym(0);Z=w.T;if(Z===void 0)throw Error("invariant: data is undefined");f=R*v;G=(R+1)*v; m=Math.max(0,q.start-f);I=Math.min(q.end+1,G)-(m+f);z=new Uint8Array(Z.buffer,m,I);T.S.append(z);T.loaded+=I;T.loaded=400?(T.lastError="net.badstatus",!0):(v===void 0?0:v)?(T.lastError="ump.spsrejectfailure",!0):k||l!==void 0&&l?!1:(T.lastError=Q===204?"net.nocontent":"net.connect",!0)}; AU=function(T,Q){if(T.policy.v9)return!1;var k=Q.getResponseHeader("content-type"),l=Q.Yn();T=!l||l<=T.policy.RS;return(!Q.gQ()||!k||k.indexOf("text/plain")!==-1)&&T}; k76=function(T,Q){var k="";Q=Q.k0();Q.totalLength<=T.policy.RS&&(k=jtJ(T,Mg(Q)));return k}; jtJ=function(T,Q){var k=ZC(Q);return t0(k)?(T.logger.debug(function(){return"Redirecting to "+k}),k):""}; XM=function(T){return po(T.L,FQ(T.eY.LB))}; l85=function(T){var Q=T.timing.i6();Q.shost=FQ(T.eY.LB);return Q}; ocf=function(T,Q){return(T==null?void 0:T.maxWidth)>(Q==null?void 0:Q.maxWidth)||(T==null?void 0:T.maxHeight)>(Q==null?void 0:Q.maxHeight)}; vcX=function(T,Q){for(var k=g.B(Q.keys()),l=k.next();!l.done;l=k.next())if(l=Q.get(l.value),l.length!==0){g.JT(l,function(Y,U){return U.maxFramerate-Y.maxFramerate}); for(var v=[l[0]],L=0,q=1;qT.T||k.push(l)}return k}; b$=function(T,Q,k){var l=gc5[T]||[];k.V("html5_shorts_onesie_mismatched_fix")&&(l=MvX[T]||[]);Q.push.apply(Q,g.ZH(l));k.V("html5_early_media_for_drm")&&Q.push.apply(Q,g.ZH(YwJ[T]||[]))}; m6t=function(T,Q){var k=g.Dd(T),l=T.G(),v=l.N;l=l.V("html5_shorts_onesie_mismatched_fix");var L=T.aD();if(l){if(!v.S){if(L&&rQ)return rQ;if(cJ)return cJ}}else if(cJ&&!v.S)return cJ;var q=[],Y=[],U={},R=Dm.concat(U6I);l&&(R=Dm.concat(RJI));T.V("html5_early_media_for_drm")&&(R=R.concat(Zog),T.V("allow_vp9_1080p_mq_enc")&&R.push(f8I));var Z=[].concat(g.ZH(G7f));T.V("html5_iamf_audio_onesie_fmt")&&Z.push(["773"]);R=g.B(R);for(var f=R.next();!f.done;f=R.next()){var G=!1;f=g.B(f.value);for(var m=f.next();!m.done;m= f.next()){m=m.value;var I=De(m,L&&l);if(I&&I.video&&!(uk(I)&&!k.xm&&I.video.qualityOrdinal>k.ID)){var z=g.jj(T.G().experiments,"html5_drm_byterate_soft_cap");z>0&&n8b(I)&&I.qY>z||(G?(q.push(m),b$(m,q,T)):(I=xg(k,I,v),I===!0?(G=!0,q.push(m),b$(m,q,T)):U[m]=I))}}}Z=g.B(Z);for(R=Z.next();!R.done;R=Z.next())for(R=g.B(R.value),G=R.next();!G.done;G=R.next())if(G=G.value,(f=kb5(G))&&f.audio&&(T.V("html5_onesie_51_audio")||!nu(f)&&!Ku(f)))if(f=xg(k,f,v),f===!0){Y.push(G);b$(G,Y,T);break}else U[G]=f;if(!T.V("html5_enable_audio_quality_setting"))for(T= g.B(["141","774"]),Z=T.next();!Z.done;Z=T.next())Z=Z.value,Y.includes(Z)&&(g.zv(Y,Z),U[Z]="blkhqa");k.S&&Q("orfmts",U);if(l)return v.S&&(v.S=!1,rQ=cJ=void 0),L?rQ={video:q,audio:Y}:cJ={video:q,audio:Y};cJ={video:q,audio:Y};v.S=!1;return cJ}; g.sty=function(T,Q,k){var l=k.N,v=[],L=[],q=k.V("html5_shorts_onesie_mismatched_fix");T=T.aD();var Y=Dm.concat(U6I);q&&(Y=Dm.concat(RJI));k.V("html5_early_media_for_drm")&&(Y=Y.concat(Zog),k.V("allow_vp9_1080p_mq_enc")&&Y.push(f8I));var U=[].concat(g.ZH(G7f));k.V("html5_iamf_audio_onesie_fmt")&&U.push(["773"]);Y=g.B(Y);for(var R=Y.next();!R.done;R=Y.next()){R=g.B(R.value);for(var Z=R.next();!Z.done;Z=R.next()){Z=Z.value;var f=De(Z,T&&q);if(f&&f.video){var G=g.jj(k.experiments,"html5_drm_byterate_soft_cap"); if(!(G>0&&n8b(f)&&f.qY>G)&&xg(Q,f,l)===!0){v.push({videoCodec:I8C[bk[Z]],maxWidth:f.video.width,maxHeight:f.video.height,maxFramerate:f.video.fps});break}}}}q=g.B(U);for(T=q.next();!T.done;T=q.next())for(T=g.B(T.value),U=T.next();!U.done;U=T.next())if(U=U.value,(Y=kb5(U))&&Y.audio&&(k.V("html5_onesie_51_audio")||!nu(Y)&&!Ku(Y))&&xg(Q,Y,l)===!0){L.push({audioCodec:hJ5[bk[U]],numChannels:Y.audio.numChannels});break}return{videoFormatCapabilities:v,audioFormatCapabilities:L}}; B8J=function(T){var Q,k={},l=T.yq,v=T.FB,L=l.getVideoData(),q=mk(0),Y=l.getVisibilityState(),U;if((U=T.qL)==null?0:U.Dz)k.xu=v.xu;q&&(k.sC=q,k.lastManualDirection=Tvy(),q=F_f()||0,q>0&&(q=(v.V("html5_use_date_now_for_local_storage")?Date.now():(0,g.XY)())-q,v.V("html5_use_date_now_for_local_storage")?q>0&&(k.timeSinceLastManualFormatSelectionMs=q):k.timeSinceLastManualFormatSelectionMs=q));q=v.V("html5_use_streamer_bandwidth_for_low_latency_live")&&L.isLowLatencyLiveStream;if(v.schedule.z9&&!q){var R; q=v.V("html5_disable_bandwidth_cofactors_for_sabr_live")?!((R=T.qL)==null||!R.kh):!1;k.fZ=e4(v.schedule,!q)}q=g.wC.medium;U=Math.floor(q*16/9);(R=L.aD())||(L.T&&L.L&&L.L.videoInfos.length!==0?(R=L.L.videoInfos[0],R=!!R.video&&R.video.width0?{authorizedFormats:T.authorizedFormats}:{authorizedFormats:Q};T.sabrLicenseConstraint&&(k.O8.sabrLicenseConstraint=T.sabrLicenseConstraint);if(v.V("html5_onesie_media_capabilities")||v.V("html5_enable_server_format_filter"))k.HU= 3;v.V("html5_onesie_audio_only_playback")&&AL(L)&&(k.HU=1);var r;((r=T.qL)==null?0:r.F_)&&T.FM&&(k.HU=k.HU===void 0?7:k.HU|4);r=L.YP?L.YP:g.Dd(L);v.V("html5_onesie_media_capabilities")&&(k.mediaCapabilities=g.sty(L,r,v));var A;if((A=T.qL)==null?0:az(A)){f=v.N;A=[];Q=[];G=new Map;m=Array.from(f.T.values());m=g.B(m);for(I=m.next();!I.done;I=m.next())z=I.value,z.uH?Q.push({audioCodec:hJ5[z.yR],numChannels:z.numChannels,spatialCapabilityBitmask:Swg[z.yR]}):(w=I8C[z.yR],I={videoCodec:w,maxWidth:z.maxWidth|| 0,maxHeight:z.maxHeight||0,maxFramerate:z.maxFramerate||0,is10BitSupported:z.HQ||!1},z.maxBitrateBps&&(I.maxBitrateBps=z.maxBitrateBps,Y=De(z.itag),R=void 0,((R=Y)==null?0:R.video)&&xg(r,Y,f)===!0&&(Y=Y.qY*8,Y>I.maxBitrateBps&&(I.maxBitrateBps=Y))),z=w+"_"+z.HQ,w=G.get(z)||[],w.push(I),G.set(z,w));A=vcX(A,G);f={};v.V("html5_ssff_denylist_opus_low")&&(f={itagDenylist:[249,350]});k.mediaCapabilities={videoFormatCapabilities:A,audioFormatCapabilities:Q,hdrModeBitmask:3,perPlaybackAttributes:f}}var D; if((D=T.qL)==null?0:D.T){k.Ql=r.Ql;var K;k.ID=(K=T.qL)==null?void 0:K.ID}v.OW&&(k.pF=v.OW);k.tG=T.kL;k.eE=T.eE;k.sS=T.sS;k.Ft=T.Ft;T.vp&&(k.w1e=(0,g.XY)()-T.vp);T.isPrefetch&&v.V("html5_report_prefetch_requests")&&(k.isPrefetch=!0);sd||(k.Qk9=!0);D=WL(v.schedule)*1E3;D>0&&(k.iN=D);var O;((O=T.qL)==null?0:O.aS)&&T.AX&&T.AX0?E:v.schedule.interruptions[0]||0;var e;if((e=T.qL)==null?0:e.d5)k.FO=T.FO;v.K_&&(k.audioTrackId=v.K_);Ra(L)&&!k.audioTrackId&&(v.V("html5_fill_default_mosaic_audio_track_id")||(T=TqT(L),k.audioTrackId=T),L==null||L.T9("misstrkchg",{"default":k.audioTrackId}));if(L=D15())k.detailedNetworkType=Cxu[L]||Cxu.other;v.V("html5_enable_voice_boost")&&(k.cxH=v.wV);return k}; u$=function(T,Q,k,l,v,L,q){var Y={};Q&&(Y.cw=Q);if(!T)return Y;Y.playbackCookie=k==null?void 0:k.playbackCookie;v&&(Y.ip=v);Y.Mt=[];Y.k6=[];if(q==null?0:q.size)for(Q=g.B(q.values()),k=Q.next();!k.done;k=Q.next())Y.k6.push(k.value);if(T.sabrContextUpdates.size>0)for(Q=g.B(T.sabrContextUpdates.values()),k=Q.next();!k.done;k=Q.next())zJ5(Y,k.value,l);cv(T)&&L&&zJ5(Y,L,l);T.Yb&&(Y.ybK=T.Yb);l=T.G().T;Y.clientInfo={clientName:Xtf[l.c.toUpperCase()]||0};l.cbrand&&(Y.clientInfo.deviceMake=l.cbrand);l.cmodel&& (Y.clientInfo.deviceModel=l.cmodel);l.cver&&(Y.clientInfo.clientVersion=l.cver);l.cos&&(Y.clientInfo.osName=l.cos);l.cosver&&(Y.clientInfo.osVersion=l.cosver);l=T.G();l.V("html5_sabr_enable_server_xtag_selection")&&l.F_&&(Y.clientInfo.hl=l.F_);T.Vl&&(Y.Vl=T.Vl);return Y}; zJ5=function(T,Q,k){var l=Q.type||0;(k==null?0:k.has(l))?T.k6.push(Q):T.Mt.push(l)}; kR=function(T,Q,k,l,v,L){var q=L===void 0?{}:L;var Y=q.hO===void 0?[]:q.hO;var U=q.d2===void 0?!1:q.d2;var R=q.Qh===void 0?0:q.Qh;var Z=q.poToken===void 0?"":q.poToken;var f=q.fH===void 0?void 0:q.fH;var G=q.Rb===void 0?"":q.Rb;var m=q.MK===void 0?0:q.MK;var I=q.vl===void 0?new Uint8Array(0):q.vl;var z=q.U7===void 0?!1:q.U7;L=q.Vm===void 0?0:q.Vm;q=q.cw===void 0?void 0:q.cw;hU.call(this,Q,v);var w=this;this.policy=T;this.logger=new g.Cy("dash/request");this.xR=this.W1=0;this.Rh=!1;this.GW=this.hV= null;this.yX=!1;this.vl=this.MK=null;this.rK=this.Kg=!1;this.Of=null;this.Vm=this.Up=0;this.El=!1;this.dn={OH:function(A){w.OH(A)}, x39:function(){return w.N_}, zcH:function(A){w.N_=A}, y5_:function(A){w.W1=A}, Hy6:function(A){w.jV.lastError=A}, kO:function(){return w.xhr}}; this.timing=new fr(this,k);this.d2=U;this.MK=m;this.vl=I;this.eY=g.UE(this.info,this.policy,l);this.eY.set("rn",this.IB().toString());this.eY.set("rbuf",(R*1E3).toFixed().toString());this.d2&&this.eY.set("smb","1");this.policy.Xm&&Z&&this.eY.set("pot",Z);G&&this.eY.set("bbs",G);this.policy.useUmp&&!EV(this.eY.LB)&&(this.Qb=new Iz(this),this.eY.set("ump","1"),this.eY.set("srfvp","1"));if(T=this.policy.g_?this.policy.wE&&!isNaN(this.info.Jx)&&this.info.Jx>this.policy.oe?!1:!0:!1)Q=null,this.policy.PQ&& this.policy.lS?Q=[1]:z&&(Q=[]),Q!=null&&(this.policy.Uf&&Q.push(2),this.eY.set("defsel",Q.join(",")));this.jV=new z_(this,this.policy,this.eY,this.info.Xs,this.timing,this.logger,l,f);this.hO=Y||null;this.TQ=wt5(this);iPX(this.jV);l=void 0;if(this.policy.OT||this.Qb||this.policy.e6)l={method:"POST"},Y=(0,g.nr)([120,0]),f={},this.policy.Sg&&q&&(q=u$(void 0,q),f.iU=q),this.policy.kH&&this.vl&&(f.videoPlaybackUstreamerConfig=this.vl),this.policy.e6&&(q=this.info.Y)&&Object.assign(f,q),Object.keys(f).length> 0?l.body=g.F0(f,g.Zc):l.body=Y;if(this.MK&&this.vl){this.eY.set("iwts","1");l={method:"POST"};q={Ft:this.MK*1E3};var r;Y=(r=this.info.Y)==null?void 0:r.gV;r=g.F0({Ly:q,gV:Y||void 0,videoPlaybackUstreamerConfig:this.vl},g.Zc);l.body=r}try{this.xhr=SJ(this.eY,this.policy.C,this.timing,T,l),this.jV.S.start(),L&&(this.Xi=new g.FA(this.kp,L,this),this.Xi.start(L+(this.timing.V4.j.hx()||0)*1E3)),this.policy.uR&&Zm(this.timing,this.IK()),this.logger.debug(function(){return"Sent, itag="+w.eY.get("itag")+ " seg="+w.info.MO[0].NO+" range="+w.eY.get("range")+" time="+Math.round(w.info.MO[0].N)+"-"+Math.round(g.m9(w.info.MO).B)+" rtp="+(w.timing.zv()-Date.now()).toFixed(0)}),g.Ad(function(){})}catch(A){d66(this,A,!0)}}; wt5=function(T){if(!(Y0(T.info)&&T.info.Zr()&&T.policy.Wk&&T.hO)||T.info.Xs.L>=2||mk()>0||!lJb())return!1;var Q=T.eY.get("aitags");if(!Q)return!1;Q=bX(Q).split(",");for(var k=[],l=g.B(T.hO),v=l.next();!v.done;v=l.next())v=v.value,g.CW(Q,v)&&k.push(v);if(!k.length)return!1;T.eY.set("altitags",g.Nn(k.join(",")));return!0}; d66=function(T,Q,k){k=k===void 0?!1:k;g.bA(Q);T.jV.lastError="player.exception";T.errorMessage=Q.name+"_"+Q.message;k?g.Ad(function(){dQ(T.jV)}):dQ(T.jV)}; N8T=function(T,Q){T.timing.z9=!0;T.xhr.gQ()&&T.timing.Kn();if(T.policy.Hn){var k;(k=T.Xi)==null||k.stop()}BJ(T.N_,Q,!1)}; Awf=function(T,Q){T.info=Q;if(T.N_){var k=T.N_;Q=Q.MO;(Q.length!==k.MO.length||Q.length0){Q=g.B(Q.MO);for(var k=Q.next();!k.done;k=Q.next()){var l=void 0;T+=((l=k.value.range)==null?void 0:l.length)||0}return T}if(Q.CO.length>0)for(k=g.B(Q.CO),l=k.next();!l.done;l=k.next())T+=l.value.wv||0;return T+Q.FR}; WJ=function(T,Q){if(tU){var k=0;T=T.Wh.get(Q);if(T==null||!T.MN)return 0;T=g.B(T.MN.values());for(Q=T.next();!Q.done;Q=T.next())k+=Q.value.data.totalLength;return k}return((k=T.Wh.get(Q))==null?void 0:k.zb.totalLength)||0}; $R=function(T,Q){T=T.Wh.get(Q);if(tU){if(T==null||!T.dI)return!1;Q=T.MN.size>0;return T.lq.length>0||Q}return!(T==null||!T.dI)&&!(T==null||!T.zb.totalLength)}; uoT=function(T,Q){var k=T.Wh.get(Q),l=a8b(T,Q),v=!l&&!!k.bytesReceived;if(tU){var L;if((L=T.C_)==null?0:L.Cc){T=g.B(k.MN.values());for(Q=T.next();!Q.done;Q=T.next())if(!Q.value.TM)return!1;return v}}else if(L=T.yW(Q),v&&T.T&&L!==void 0)return L;return(v||k.bytesReceived===l)&&k.kR+WJ(T,Q)===k.bytesReceived}; ncC=function(T,Q,k){T.Wh.set(Q,{zb:new oV,kR:0,bytesReceived:0,FR:0,f3:!1,FG:!1,yW:!1,uH:k,ev:[],MO:[],CO:[],dI:!1,MN:new Map,L6:new Map,lq:[]});T.logger.debug(function(){return"[initStream] formatId: "+Q})}; KuC=function(T,Q,k,l){k.MO.push.apply(k.MO,g.ZH(l));if(tU){k.L6.has(Q)||k.L6.set(Q,[]);var v;(v=k.L6.get(Q)).push.apply(v,g.ZH(l))}else if(k.N_)for(T=g.B(l),Q=T.next();!Q.done;Q=T.next())k.N_.MO.push(Q.value);else{k.N_=new Cr(T.qL,[].concat(g.ZH(k.MO)));var L;((L=T.qL)==null?0:L.dJ)&&g.P(T,k.N_)}}; x6t=function(T,Q,k){var l,v=(l=T.C_)==null?void 0:l.L.get(Q);if(!v)return[];if(k.H5){var L;return((L=v.Ga(0,k.clipId))==null?void 0:L.MO)||[]}if(v.tH()){var q=k.startMs,Y=k.durationMs;l=1E3;var U;if(((U=T.qL)==null?0:U.T)&&k.timeRange){var R;q=(R=k.timeRange.startTicks)!=null?R:-1;var Z;Y=(Z=k.timeRange.fQ)!=null?Z:-1;var f;l=(f=k.timeRange.timescale)!=null?f:-1}if(k.Vv<0||k.qE<0||Y<0||q<0||k.wv<0||l<0)return pr(T,Q),[];T=T3(k.Vv,k.wv);Q=k.rP||0;return[new jq(3,v,T,"makeSliceInfosMediaBytes",k.qE- 1,q/l,Y/l,Q,T.length-Q,void 0,k.Qw,k.clipId)]}if(k.qE<0)return pr(T,Q),[];var G;return((G=T.C_)==null?0:G.Cc)?(Q=v.hW,U=Q*v.info.qY,R=k.rP,((Y=T.qL)==null?0:Y.KR)&&k.timeRange&&!R&&(q=k.timeRange.startTicks/k.timeRange.timescale),[new jq(3,v,void 0,"makeSliceInfosMediaBytes",k.qE,q,Q,R,U,!0,k.Qw,k.clipId)]):[]}; PxX=function(T,Q,k){T.C_=Q;T.qL=k;Q=g.B(T.Wh);for(k=Q.next();!k.done;k=Q.next()){var l=g.B(k.value);k=l.next().value;l=l.next().value;for(var v=g.B(l.ev),L=v.next();!L.done;L=v.next()){L=L.value;var q=x6t(T,k,L);KuC(T,L.LU,l,q)}}}; JU=function(T,Q,k,l){T.logger.debug(function(){return"[addStreamData] formatId: "+k+",headerId: "+Q+" bytes: "+l.totalLength}); (T=T.Wh.get(k))&&!T.FG&&(tU?(T.MN.has(Q)||T.MN.set(Q,{data:new oV,WK:0,TM:!1}),v3(T.MN.get(Q).data,l)):v3(T.zb,l),T.bytesReceived+=l.totalLength,T.f3=!0)}; Ox=function(T,Q){T.logger.debug(function(){return"[closeStream] formatId: "+Q}); var k=T.Wh.get(Q);k&&!k.FG&&(k.FG=!0,k.M_&&k.M_(),HoX(T)&&T.Y.Zc())}; HoX=function(T){T=g.B(T.Wh.values());for(var Q=T.next();!Q.done;Q=T.next())if(!Q.value.FG)return!1;return!0}; tv5=function(T){tU=T}; eJ=function(T,Q,k,l,v,L,q){g.x.call(this);this.policy=T;this.info=Q;this.C_=k;this.m1=v;this.logger=new g.Cy("sabr");this.Qb=new Iz(this);this.d7=new PJ(this);this.Li=new HJ(this);this.state=1;this.iF=!1;this.cW=0;this.clipId="";this.qB=-1;this.g7=0;this.OQ=-1;this.El=this.B2=!1;this.vN=0;this.bQ=!1;this.policy.o$?this.LY=new Kr(this,L):this.LY=new fr(this,L);this.eY=this.policy.d5?Q.Mu:OoI(Q,this.policy,l);this.eY.set("rn",""+this.IB());this.eY.set("alr","yes");PxX(this.Li,k,T);this.jV=new z_(this, this.policy,this.eY,Q.Xs,this.LY,this.logger,l,q,this.policy.enableServerDrivenRequestCancellation);iPX(this.jV);var Y;if((Y=this.policy)==null?0:Y.dJ)g.P(this,this.Li),g.P(this,this.jV);T=Q.S;Q={method:"POST",body:T};T&&(this.g7=T.length);try{this.xhr=SJ(this.eY,this.policy.C,this.LY,sd,Q),this.policy.uR&&Zm(this.LY,this.IK()),this.jV.S.start()}catch(U){g.rB(U)}}; ptb=function(T){T.policy.LH&&T.Dm&&!T.bQ?T.bQ=!0:T.LY.Kn()}; WuT=function(T,Q){var k=-1,l=-1,v=-1,L;if((L=T.Sv)==null?0:L.items)for(T=g.B(T.Sv.items),L=T.next();!L.done;L=T.next())L=L.value,Q=Y,U=T.C_.isManifestless,q){var R;if(((R=T.T)==null?void 0:R.Bn.event)==="predictStart"&&T.T.NOT.B&&(T.B=NaN,T.C=NaN);T.T&&T.T.NO===Q?LNI(T,Q,k,T.T,v):T.S===1&&i$(T,5,"noad")}; qEy=function(T,Q,k,l,v){l.t5?i$(T,4,"cue"):(T.B=Q,T.C=k,T.T9("sdai",{joinad:T.S,sg:T.B,st:T.C.toFixed(3)}),T.D=Date.now(),i$(T,2,T.S===3?"staftpred":"join"),v.Fg(l.Bn))}; LNI=function(T,Q,k,l,v){if(v&&l){var L=l.Bn,q=v.Vi(L);L.event==="predictStart"&&(T.qO=Q);T.T9("sdai",{onqevt:L.event,sq:Q,mt:k,gab:q,cst:L.startSecs,cueid:T.policy.W9&&(q||L.event==="start")?L.identifier:void 0},!0);if(q)L.event!=="predictStart"?(L.event==="start"&&T.qO===Q-1&&T.T9("sdai",{gabonstart:Q}),qEy(T,Q,k,l,v)):T.policy.m0?i$(T,3,"predict"):(Q+=Math.max(Math.ceil(-L.T/5E3),1),L=Math.floor(k-L.T/1E3),T.policy.S?T.N=L:T.Y=Q,T.T9("sdai",{onpred:k,estsq:Q,estmt:L.toFixed(3)}),Vm(T.loader,L,L, Q),T.D=Date.now(),i$(T,3,"predict"),v.Fg(l.Bn));else if(T.S===1){var Y;((Y=T.L)==null?0:Y.zV(k))?(Vm(T.loader,k,k,Q),i$(T,4,"sk2head")):i$(T,5,"nogab")}else L.event==="predictStart"?T.policy.S&&T.N>0?(k=Math.floor(k-L.T/1E3),T.N!==k&&T.T9("sdai",{updateSt:k,old:T.N}),T.N=k):T.Y>0&&(k=Q+Math.max(Math.ceil(-L.T/5E3),1),T.Y!==k&&(T.T9("sdai",{updateSt:k,old:T.Y}),T.Y=k)):T.policy.m0&&T.S===3&&qEy(T,Q,k,l,v)}else T.T9("sdai",{nulldec:1,sq:Q,mt:k.toFixed(3),evt:(l==null?void 0:(L=l.Bn)==null?void 0:L.event)|| "none"})}; Mqu=function(T,Q,k){if(T.policy.xs&&T.policy.S)return!(T.S===1||T.S===2||!T.policy.m0&&T.S===3&&k>=T.Y);if(T.S===1||T.S===2)return!1;if(T.S!==0&&Q===T.audioTrack){if(T.policy.S)return g0g(T.videoTrack,k)||g0g(T.videoTrack,k+1);T=Tz(T.videoTrack);if(k>(T?T.NO:-1))return!1}return!0}; QX=function(T,Q,k){return(k<0||k===T.B)&&!isNaN(T.C)?T.C:Q}; k36=function(T,Q){if(T.T){var k=T.T.Bn.bf-(Q.startTime+T.j-T.T.Bn.startSecs);k<=0||(k=new M6(T.T.Bn.startSecs-(isNaN(T.j)?0:T.j),k,T.T.Bn.context,T.T.Bn.identifier,"stop",T.T.Bn.T+Q.duration*1E3),T.T9("cuepointdiscontinuity",{segNum:Q.NO}),ym(T,k,Q.NO))}}; i$=function(T,Q,k){T.S!==Q&&(T.T9("sdai",{setsst:Q,old:T.S,r:k}),T.S=Q)}; jr=function(T,Q,k,l){(l===void 0?0:l)?i$(T,1,"seek"):Q>0&&Math.abs(Q-k)>=5&&T.S===4&&i$(T,5,"sk2t")}; YEC=function(T){this.T9=T;this.T="";this.S=new Map}; Utu=function(T,Q,k){if(T.S.has(Q.identifier)){var l=T.S.get(Q.identifier);var v=kC(l.event||"unknown");kC(Q.event)>v&&(l.startTimeSecs=Q.startSecs,l.bf=Q.bf,l.event=Q.event,v===kC("predictStart")&&(l.YW=Date.now()))}else l={event:Q.event,startTimeSecs:Q.startSecs,bf:Q.bf,Mc:[]},T.S.set(Q.identifier,l);T.L&&k>-1&&k0}; gX=function(T,Q){T.T!==Q&&(T.T=Q,T.S=!0)}; fjg=function(T,Q){var k;Q&&(k=g.sA(T.Y.T,function(v){return v.id===Q})); if(!k&&(k=g.sA(T.Y.T,function(v){var L;return!((L=v.MY)==null||!L.isDefault)}),Q)){var l; T.T9("iaf",{id:Q,sid:(l=k)==null?void 0:l.id})}return k}; YC=function(T,Q,k,l,v,L){var q=this;L=L===void 0?[]:L;this.loader=T;this.hj=Q;this.policy=k;this.C_=l;this.B=v;this.f_=L;this.logger=new g.Cy("dash/abr");this.T=GV;this.L=this.C=null;this.D=-1;this.Bd=!1;this.nextVideo=this.S=null;this.Y=[];this.Jj=new Set;this.e6={};this.K_=new Kc(1);this.j=0;this.p_=this.qO=this.z9=!1;this.xm=0;this.u9=!1;this.i9=new Set;this.sK=!1;this.dn={Xh:function(){Mv(q)}}; this.N=new v7(this.policy,v,function(Y,U){q.loader.T9(Y,U)})}; sXt=function(T,Q,k){Uh(T,Q);Q=fjg(T.N,k);k||Q||(Q=G3I(T));Q=Q||T.B.T[0];T.S=T.C_.T[Q.id];Mv(T);T.C=T.S;mty(T);Ij5(T);T.L=T.nextVideo;T.C=T.S;return hat(T)}; Bd5=function(T,Q){if(SEt(T,Q))return null;if(Q.reason==="m"&&Q.isLocked())return T.logger.debug(function(){return"User sets constraint to: "+Dc(Q)}),Uh(T,Q),T.j=T.Y.length-1,Mv(T),Rm(T),T.qO=T.qO||T.L!==T.nextVideo,T.L=T.nextVideo,new l4(T.S,T.L,Q.reason); Q.reason==="r"&&(T.D=-1);Uh(T,Q);Rm(T);if(Q.reason==="r"&&T.nextVideo===T.L)return new l4(T.S,T.nextVideo,Q.reason);C7u(T);return null}; za5=function(T,Q,k){T.S=T.C_.T[Q];T.C=T.S;return new l4(T.C,T.L,k?"t":"m")}; X9f=function(T,Q){if(Q.info.video){if(T.L!==Q)return T.L=Q,hat(T)}else T.p_=T.C!==Q,T.C=Q;return null}; w9C=function(T,Q){if(Q.T.info.video&&Q.Y){var k=(Q.S+Q.L)/Q.duration,l=Q.T.info.qY;k&&l&&(T.K_.Q1(1,k/l),T.policy.L&&k/l>1.5&&T.loader.T9("overshoot",{sq:Q.NO,br:k,max:l}))}}; Zs=function(T,Q,k){Lf(T.N,Q,k===void 0?!1:k);T.D=-1;Uh(T,T.T)}; dtH=function(T,Q){return new l4(T.C,T.L,Q||T.T.reason)}; C7u=function(T){if(T.L&&T.nextVideo&&ff(T,T.L.info)T.policy.ID,Y=v<=T.policy.ID?uk(l):cj(l);if(!L||q||Y)k[v]=l}return k}; Uh=function(T,Q){T.T=Q;var k=T.B.videoInfos;if(!T.T.isLocked()){var l=(0,g.XY)();k=g.bl(k,function(Y){if(Y.qY>this.policy.qY)return!1;var U=this.C_.T[Y.id];return qv(this.N).get(Y.id)>l?!1:U.Xs.L>4||U.B>4?(this.logger.debug(function(){return"Remove "+JW(Y)+"; 4 load failures"}),!1):this.i9.has(+Y.itag)?!1:!0},T); ZyX(T.N)&&(k=g.bl(k,function(Y){return Y.video.width<=854&&Y.video.height<=480}))}k.length||(k=T.B.videoInfos); var v=k;T.policy.vz&&(v=AqH(T,v,Q));v=g.bl(v,Q.Y,Q);if(T.T.isLocked()&&T.N.T){var L=g.sA(k,function(Y){return Y.id===T.N.T}); L?v=[L]:gX(T.N,"")}T.policy.vz||(v=AqH(T,v,Q));v.length||(v=[k[0]]);v.sort(function(Y,U){return ff(T,Y)-ff(T,U)}); Q={};for(k=1;kQ.S$.video.width?(g.Bm(v,k),k--):ff(T,Q.bd)*T.policy.j>ff(T,Q.S$)&&(g.Bm(v,k-1),k--);var q=v[v.length-1];T.u9=!!T.L&&!!T.L.info&&T.L.info.yR!==q.yR;T.logger.debug(function(){return"Constraint: "+Dc(T.T)+", "+v.length+" fmts selectable, max selectable fmt: "+JW(q)}); T.Y=v;T.Jj.clear();Q=!1;for(k=0;k=1080&&(Q=!0);byT(T.policy,q,T.C_.Cc)}; AqH=function(T,Q,k){var l=k.reason==="m"||k.reason==="s";T.policy.LQ&&Gz&&g.mp&&(!l||k.T<1080)&&(Q=Q.filter(function(R){return R.video&&(!R.S||R.S.powerEfficient)})); if(Q.length>0)if(vM()){var v=NdX(T,Q);Q=Q.filter(function(R){return!!R&&!!R.video&&R.yR===v[R.video.qualityOrdinal].yR})}else{var L,q,Y=(L=Q[0])==null?void 0:(q=L.video)==null?void 0:q.qualityOrdinal; if(Y){k=Q.filter(function(R){return!!R&&!!R.video&&R.video.qualityOrdinal===Y}); var U=NdX(T,k)[Y].yR;Q=Q.filter(function(R){return!!R&&!!R.video&&R.yR===U})}}return Q}; rqT=function(T,Q){for(var k=0;k+1l}; Mv=function(T){if(!T.S||!T.policy.Y&&!T.S.info.MY){var Q=T.B.T;T.S&&(Q=Q.filter(function(l){return l.audio.T===T.S.info.audio.T}),Q.length||(Q=T.B.T)); T.S=T.C_.T[Q[0].id];if(Q.length>1&&!T.policy.p_){if(!T.policy.Dz){var k=g.sA(Q,function(l){return l.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); k&&(T.S=T.C_.T[k.id])}k=!1;if(k=T.policy.gt?!0:T.T.isLocked()?T.T.T<240:rqT(T,T.S))T.S=T.C_.T[g.m9(Q).id]}}}; Rm=function(T){if(!T.nextVideo||!T.policy.Y)if(T.T.isLocked())T.nextVideo=T.T.T<=360?T.C_.T[T.Y[0].id]:T.C_.T[g.m9(T.Y).id],T.logger.debug(function(){return"Select max fmt: "+JW(T.nextVideo.info)}); else{for(var Q=Math.min(T.j,T.Y.length-1),k=yS(T.hj),l=ff(T,T.S.info),v=k/T.policy.z9-l;Q>0&&!(ff(T,T.Y[Q])<=v);Q--);for(var L=k/T.policy.j-l;Q=L);Q++);T.nextVideo=T.C_.T[T.Y[Q].id];T.j!==Q&&T.logger.info(function(){return"Adapt to: "+JW(T.nextVideo.info)+", bandwidth: "+k.toFixed(0)+", bandwidth to downgrade: "+v.toFixed(0)+", bandwidth to upgrade: "+L.toFixed(0)+", constraint: "+Dc(T.T)}); T.j=Q}}; mty=function(T){var Q=T.policy.z9,k=yS(T.hj),l=k/Q-ff(T,T.S.info);Q=g.SA(T.Y,function(v){return ff(this,v)L?v=0:l[q]>T.buffered[q]&&(q===L-1?v=2:q===L-2&&l[q+1]>T.buffered[q+1]&&(v=3))}T.T.add(Q<<3|(k&&4)|v);Q=Math.ceil(T.track.jO()*1E3);T.T.add(Q-T.N);T.N=Q;if(v===1)for(T.T.add(L),q=Q=0;q=2&&T.T.add(l[L- 1]-T.buffered[L-1]);k&&T.T.add(k);T.buffered=l}; hA=function(T,Q,k){var l=this;this.policy=T;this.T=Q;this.xm=k;this.Y=this.S=0;this.Qy=null;this.z9=new Set;this.D=[];this.indexRange=this.initRange=null;this.j=new GN;this.qO=this.hj=!1;this.dn={kEj:function(){return l.L}, bU6:function(){return l.chunkSize}, CXB:function(){return l.C}, s0d:function(){return l.B}}; (Q=n0y(this))?(this.chunkSize=Q.csz,this.L=Math.floor(Q.clen/Q.csz),this.C=Q.ck,this.B=Q.civ):(this.chunkSize=T.qq,this.L=0,this.C=g.hu(16),this.B=g.hu(16));this.N=new Uint8Array(this.chunkSize);this.C&&this.B&&(this.crypto=new $Qy(this.C,this.B))}; n0y=function(T){if(T.policy.Hl&&T.policy.gI)for(var Q=g.B(T.policy.Hl),k=Q.next(),l={};!k.done;l={VN:void 0,P3:void 0},k=Q.next())if(k=g.k5(k.value),l.VN=+k.clen,l.P3=+k.csz,l.VN>0&&l.P3>0&&T.policy.Y===k.docid&&T.T.info.id===k.fmtid&&T.T.info.lastModified===+k.lmt)return T={},T.clen=l.VN,T.csz=l.P3,T.ck=k.ck,T.civ=k.civ,T}; sh=function(T){return!!T.Qy&&T.Qy.Dq()}; P7t=function(T,Q){if(!sh(T)&&!T.wd()){if(!(T.hj||(T.hj=!0,T.L>0))){var k=Sr(T);k=Lt(T.policy.Y,T.T.info,Cf(T),k,T.policy.f_);B7(T,k)}if(Q.info.type===1){if(T.Qy){zz(T,Error("Woffle: Expect INIT slices to always start us off"));return}T.initRange=T3(0,Q.S.totalLength)}else if(Q.info.type===2)T.Qy&&T.Qy.type===1||zz(T,Error("Woffle: Index before init")),T.indexRange=T3(T.initRange.end+1,Q.S.totalLength);else if(Q.info.type===3){if(!T.Qy){zz(T,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(T.Qy.type===3&&!oX(T.Qy,Q.info)&&(T.D=[],Q.info.NO!==v9(T.Qy)||Q.info.S!==0))return;if(Q.info.Y){k=g.B(T.D);for(var l=k.next();!l.done;l=k.next())KN5(T,l.value);T.D=[]}else{T.D.push(Q);T.Qy=Q.info;return}}else{zz(T,Error("Woffle: Unexpected slice type"));return}T.Qy=Q.info;KN5(T,Q);xtu(T)}}; KN5=function(T,Q){var k=0,l=Mg(Q.S);if(T.Y=l.length)return;if(k<0)throw Error("Missing data");T.Y=T.L;T.S=0}for(v={};k0){var q=l.getUint32(k+28);L+=q*16+4}var Y=l.getUint32(k+L-4);try{var U=WNf(Q.subarray(k+L,k+L+Y));if(U!==null){var R=U;break a}}catch(Z){}}k+=v}R=null;break a}catch(Z){R=null;break a}R=void 0}if(R!=null)for(Q=mY(jQ(R,7,void 0,uq)),Q==null||T.Rd||(T.cryptoPeriodIndex=Q),Q=mY(jQ(R,10,void 0,uq)),Q!=null&&Q>0&& !T.Rd&&(T.T=Q),R=gL(R,2,dnX,void 0===ri5?2:4),R=g.B(R),l=R.next();!l.done;l=R.next())Q=T.L,k=Q.push,l=uS(l.value),l=g.dJ(l,4),k.call(Q,l)}; JqT=function(T){return isNaN(T.cryptoPeriodIndex)?g.dJ(T.initData):""+T.cryptoPeriodIndex}; dX=function(T,Q,k){var l=k===void 0?{}:k;k=l.videoDuration===void 0?0:l.videoDuration;var v=l.YA===void 0?void 0:l.YA;l=l.VZ===void 0?!1:l.VZ;this.videoId=T;this.status=Q;this.videoDuration=k;this.YA=v;this.VZ=l}; eaf=function(T,Q,k,l,v){this.videoId=T;this.VC=Q;this.S=k;this.bytesDownloaded=l;this.T=v}; Nv=function(T){this.T=T;this.offset=0}; AA=function(T){if(T.offset>=T.T.totalLength)throw Error();return Uj(T.T,T.offset++)}; FNy=function(T,Q){Q=Q===void 0?!1:Q;var k=AA(T);if(k===1){Q=-1;for(k=0;k<7;k++){var l=AA(T);Q===-1&&l!==255&&(Q=0);Q>-1&&(Q=Q*256+l)}return Q}l=128;for(var v=0;v<6&&l>k;v++)k=k*256+AA(T),l*=128;return Q?k:k-l}; E0g=function(T){try{var Q=FNy(T,!0),k=FNy(T,!1);return{id:Q,size:k}}catch(l){return{id:-1,size:-1}}}; yqH=function(T){for(var Q=new Nv(T),k=-1,l=0,v=0;!l||!v;){var L=E0g(Q),q=L.id;L=L.size;if(q<0)return;if(q===176){if(L!==2)return;l=Q.je()}else if(q===186){if(L!==2)return;v=Q.je()}q===374648427?k=Q.je()+L:q!==408125543&&q!==174&&q!==224&&Q.skip(L)}Q=Yl(T,0,k);k=new DataView(Q.buffer);k.setUint16(l,3840);k.setUint16(v,2160);l=new oV([Q]);v3(l,T);return l}; iyJ=function(T,Q,k){var l=this;this.loader=T;this.policy=Q;this.N=k;this.logger=new g.Cy("dash");this.S=[];this.T=null;this.hj=-1;this.D=0;this.i9=NaN;this.z9=0;this.L=NaN;this.j=this.Bd=0;this.u9=-1;this.e6=this.Y=this.B=this.xm=null;this.K_=this.p_=NaN;this.C=this.qO=this.Jj=this.f_=null;this.zg=!1;this.sK=this.timestampOffset=0;this.dn={Uy:function(){return l.S}}; if(this.policy.Y){var v=this.N,L=this.policy.Y;this.policy.f_&&T.T9("atv",{ap:this.policy.f_});this.C=new hA(this.policy,v,function(q,Y,U){b4(T,new dX(l.policy.Y,2,{YA:new eaf(L,q,v.info,Y,U)}))}); this.C.j.promise.then(function(q){l.C=null;q===1?b4(T,new dX(l.policy.Y,q)):l.loader.T9("offlineerr",{status:q.toString()})},function(q){var Y=(q.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); q instanceof XI&&!q.T?(l.logger.info(function(){return"Assertion failed: "+Y}),l.loader.T9("offlinenwerr",{em:Y}),rX(l),b4(T,new dX(l.policy.Y,4))):(l.logger.info(function(){return"Failed to write to disk: "+Y}),l.loader.T9("dldbwerr",{em:Y}),rX(l),b4(T,new dX(l.policy.Y,4,{VZ:!0})))})}}; Vqu=function(T){return T.S.length?T.S[0]:null}; Tx5=function(T,Q){return T.S.some(function(k){return k.info.NO===Q})}; omu=function(T,Q,k,l){l=l===void 0?0:l;if(T.Y){var v=T.Y.S+T.Y.L;if(k.info.S>0)if(k.info.NO===T.Y.NO&&k.info.S=0&&T.Y.NO>=0&&!oX(T.Y,k.info))throw new g.Wy("improper_continuation",T.Y.Bh(),k.info.Bh());BCH(T.Y,k.info)||c7(T,"d")}else if(k.info.S>0)throw new g.Wy("continuation_of_null",k.info.Bh());T.Y=k.info;T.N=k.info.T;if(k.info.S===0){if(T.T)if(!T.loader.isOffline()||T.policy.dC)T.loader.T9("slice_not_fully_processed", {buffered:T.T.info.Bh(),push:k.info.Bh()});else throw new g.Wy("slice_not_fully_processed",T.T.info.Bh(),k.info.Bh());Ds(T);T.Bd=l}else{if(T.Bd&&l&&T.Bd!==l)throw T=new g.Wy("lmt_mismatch",k.info.NO,T.Bd,l),T.level="WARNING",T;!k.info.T.tH()&&T.B&&(l=k.info,v=T.B.qB,l.C="updateWithEmsg",l.NO=v)}if(T.T){l=g.wd(T.T,k);if(!l)throw new g.Wy("failed_to_merge",T.T.info.Bh(),k.info.Bh());T.T=l}else T.T=k;a:{k=g.x9(T.T.info.T.info);if(T.T.info.type!==3){if(!T.T.info.Y)break a;T.T.info.type===6?Qng(T,Q,T.T): jn6(T,T.T);T.T=null}for(;T.T;){l=T.T.S.totalLength;if(T.hj<=0&&T.D===0){var L=T.T.S,q=-1;v=-1;if(k){for(var Y=0;Y+80))break;if(f!==408125543)if(f===524531317)Y=!0,Z>=0&&(v=L.je()+Z,U=!0);else{if(Y&&(f===160||f===163)&&(q<0&&(q=R),U))break;f===163&&(q=Math.max(0,q),v=L.je()+Z);if(f===160){q<0&&(v=q=L.je()+ Z);break}L.skip(Z)}}q<0&&(v=-1)}if(q<0)break;T.hj=q;T.D=v-q}if(T.hj>l)break;T.hj?(l=k6t(T,T.hj),l.N&&lE5(T,l),Qng(T,Q,l),am(T,l),T.hj=0):T.D&&(l=k6t(T,T.D<0?Infinity:T.D),T.D-=l.S.totalLength,am(T,l))}}T.T&&T.T.info.Y&&(am(T,T.T),T.T=null)}; jn6=function(T,Q){!Q.info.T.tH()&&Q.info.S===0&&(g.x9(Q.info.T.info)||Q.info.T.info.Rd())&&oTC(Q);if(Q.info.type===1)try{lE5(T,Q),vm5(T,Q)}catch(v){g.bA(v);var k=Ly(Q.info);k.hms="1";T.loader.handleError("fmt.unparseable",k||{},1)}k=Q.info.T;k.dR(Q);T.C&&P7t(T.C,Q);if(k.ZG()&&T.policy.T)a:{T=T.loader.C_;Q=Q.info.clipId;k=g.Hj(k.info,T.Cc);if(Q){var l=Ew({itag:k.itag,lmt:T.Cc?0:k.lmt||0,xtags:k.xtags});if(T.u9[l])break a;T.u9[l]=Q}T.p_.push(k)}}; r_C=function(T,Q,k){if(T.S.length!==0&&(k||T.S.some(function(L){return L.info.N=nf(q)+Y):Q=T.getDuration()>=q.getDuration(),Q=!Q;Q&&gmb(k)&&(Q=T.xm,u4?(Y=kNC(k),q=1/Y,Y=nf(T,Y),Q=nf(Q)+q-Y):Q=Q.getDuration()- T.getDuration(),Q=1+Q/k.info.duration,TC6(g.XG(k),Q))}else{q=!1;T.B||(oTC(k),k.T&&(T.B=k.T,q=!0,v=k.info,L=k.T.qB,v.C="updateWithEmsg",v.NO=L,v=k.T,v.Dq&&(L=T.N.index,L.S=!v.Dq,L.L="emsg"),v=k.info.T.info,L=g.XG(k),g.x9(v)?Bt(L,1701671783):v.Rd()&&r8([408125543],307544935,L)));a:if((v=Aq(k,T.policy.OG))&&ll6(k))Y=M4X(T,k),T.j+=Y,v-=Y,T.z9+=v,T.L=T.policy.i5?T.L+v:NaN;else{if(T.policy.qU){if(L=U=T.loader.J_(g.dd(k),1),T.L>=0&&k.info.type!==6){if(T.policy.i5&&isNaN(T.p_)){g.rB(new g.Wy("Missing duration while processing previous chunk", k.info.Bh()));T.loader.isOffline()&&!T.policy.dC||Ydt(T,k,L);c7(T,"m");break a}l=U-T.L;var R=l-T.j,Z=k.info.NO,f=T.e6?T.e6.NO:-1,G=T.K_,m=T.p_,I=T.policy.X0&&l>T.policy.X0,z=Math.abs(R)>10,w=Math.abs(T.L-L)<1E-7;if(Math.abs(R)>1E-4){T.sK+=1;var r=(Y=T.B)==null?void 0:FjC(Y);Y={audio:""+ +T.uH(),sq:Z.toFixed(),sliceStart:U,lastSq:f.toFixed(),lastSliceStart:G,lastSliceDuration:m,totalDrift:(l*1E3).toFixed(),segDrift:(R*1E3).toFixed(),skipRewrite:""+ +(I||z)};if(r==null?0:r.length)Y.adCpn=r[0];T.loader.handleError("qoe.avsync", Y);T.u9=Z}I||z||w||(L=T.L);Y=M4X(T,k,U);v-=Y;T.j=l+Y}}else L=isNaN(T.L)?k.info.startTime:T.L;Ydt(T,k,L)&&(T.z9+=v,T.L=L+v,T.policy.hn&&T.sK>=T.policy.hn&&(T.sK=0,T.loader.Lt({resetForRewrites:"count"})))}T.e6=k.info;T.p_=Nt(k);k.L>=0&&(T.K_=k.L);if(q&&T.B){q=UxC(T,!0);qt(k.info,q);T.T&&qt(T.T.info,q);Q=g.B(Q);for(Y=Q.next();!Y.done;Y=Q.next())Y=Y.value,v=void 0,T.policy.N&&Y.NO!==((v=T.B)==null?void 0:v.qB)||qt(Y,q);(k.info.Y||T.T&&T.T.info.Y)&&k.info.type!==6||(T.qO=q,T.policy.S?(Q=Rhu(T.B),T.loader.WC(T.N, q,Q)):(Q=T.loader,Q.C_.isManifestless&&Zc6(Q,q,null,!!T.N.info.video)),T.policy.NK||fEX(T))}}vm5(T,k);T.timestampOffset&&QL5(k,T.timestampOffset)}; am=function(T,Q){if(Q.info.Y){T.f_=Q.info;if(T.B){var k=T.B,l=UxC(T,!1);k=Rhu(k);T.loader.WC(T.N,l,k);T.qO||T.policy.NK||fEX(T);T.qO=null}Ds(T)}T.C&&P7t(T.C,Q);if(l=T.JV())if(l=g.wd(l,Q,T.policy.mS,T.policy.Tw)){T.S.pop();T.S.push(l);return}T.S.push(Q)}; Rhu=function(T){if(T.t5()){var Q=T.data["Stitched-Video-Id"]?T.data["Stitched-Video-Id"].split(",").slice(0,-1):[],k=FjC(T),l=[];if(T.data["Stitched-Video-Duration-Us"])for(var v=g.B(T.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),L=v.next();!L.done;L=v.next())l.push((Number(L.value)||0)/1E6);v=[];if(T.data["Stitched-Video-Start-Frame-Index"]){L=g.B(T.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var q=L.next();!q.done;q=L.next())v.push(Number(q.value)||0)}v=[]; if(T.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(L=g.B(T.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),q=L.next();!q.done;q=L.next())v.push((Number(q.value)||0)/1E6);T=new p9y(Q,k,l,v,g.Epu(T),g.yMX(T))}else T=null;return T}; Ds=function(T){T.T=null;T.hj=-1;T.D=0;T.B=null;T.i9=NaN;T.z9=0;T.qO=null}; c7=function(T,Q){Q={rst4disc:Q,cd:T.j.toFixed(3),sq:T.e6?T.e6.NO:-1};T.L=NaN;T.j=0;T.u9=-1;T.e6=null;T.K_=NaN;T.p_=NaN;T.Jj=null;T.loader.T9("mdstm",Q)}; vm5=function(T,Q){if(T.isDrm()){if(Q.info.T.info.Rd()){var k=new Xo(g.XG(Q));if(d8(k,[408125543,374648427,174,28032,25152,20533,18402])){var l=bx(k,!0);k=l!==16?null:ux(k,l)}else k=null;l="webm"}else Q.info.D=tq5(g.XG(Q)),k=OyT(Q.info.D),l="cenc";k&&k.length&&(k=new wX(k,l),T.policy.OR&&g.x9(Q.info.T.info)&&(l=v9b(g.XG(Q)))&&(k.S=l),k.Rd=Q.info.T.info.Rd(),Q.T&&Q.T.cryptoPeriodIndex&&(k.cryptoPeriodIndex=Q.T.cryptoPeriodIndex),Q.T&&Q.T.S&&(k.T=Q.T.S),T.loader.tX(k))}}; fEX=function(T){var Q=T.B,k=JMb(Q);k&&(k.startSecs+=T.i9,T.loader.L3(T.N,k,Q.qB,Q.t5()))}; UxC=function(T,Q){var k,l=T.B;if(k=JMb(l))k.startSecs+=T.i9;return new T7(l.qB,T.i9,Q?l.hW:T.z9,l.ingestionTime,"sq/"+l.qB,void 0,void 0,Q,k)}; Ydt=function(T,Q,k){if(!TfI(Q,k))return Q=Ly(Q.info),Q.smst="1",T.loader.handleError("fmt.unparseable",Q||{},1),!1;isNaN(T.i9)&&(T.i9=k);return!0}; M4X=function(T,Q,k){var l=0;if(Q.info.T.info.Rd()&&!ll6(Q))return 0;if(T.xm&&!T.uH()){var v=0;k&&g.x9(Q.info.T.info)?v=k-T.L:Q.info.T.info.Rd()&&(v=T.j);var L=Q.info.NO;k=Aq(Q,T.policy.OG);var q=T.xm;var Y=q.u9;q=q.j;var U=Math.abs(q-v)>.02;if((L===Y||L>Y&&L>T.u9)&&U){l=Math.max(.95,Math.min(1.05,(k-(q-v))/k));if(g.x9(Q.info.T.info))TC6(g.XG(Q),l);else if(Q.info.T.info.Rd()&&(L=v-q,!g.x9(Q.info.T.info)&&(Q.info.T.info.Rd(),l=new Xo(g.XG(Q)),Y=Q.N?l:new Xo(new DataView(Q.info.T.T.buffer)),Aq(Q,!0)))){var R= L*1E3,Z=Ko(Y);Y=l.pos;l.pos=0;if(l.T.getUint8(l.pos)===160||xc(l))if(Aw(l,160))if(bx(l,!0),Aw(l,155)){if(L=l.pos,U=bx(l,!0),l.pos=L,R=R*1E9/Z,Z=ct(l),R=Z+Math.max(-Z*.7,Math.min(Z,R)),R=Math.sign(R)*Math.floor(Math.abs(R)),!(Math.ceil(Math.log(R)/Math.log(2)/8)>U)){l.pos=L+1;for(L=U-1;L>=0;L--)l.T.setUint8(l.pos+L,R&255),R>>>=8;l.pos=Y}}else l.pos=Y;else l.pos=Y;else l.pos=Y}l=Aq(Q,T.policy.OG);l=k-l}l&&Q.info.T.info.Rd()&&T.loader.T9("webmDurationAdjustment",{durationAdjustment:l,videoDrift:v+l, audioDrift:q})}return l}; gmb=function(T){return T.info.T.tH()&&T.info.NO===T.info.T.index.a_()}; nf=function(T,Q){Q=(Q=Q===void 0?0:Q)?Math.round(T.timestampOffset*Q)/Q:T.timestampOffset;T.N.Y&&Q&&(Q+=T.N.Y.T);return Q+T.getDuration()}; G6b=function(T,Q){Q<0||(T.S.forEach(function(k){QL5(k,Q)}),T.timestampOffset=Q)}; jJ=function(T,Q,k,l,v){hU.call(this,k,v);var L=this;this.policy=T;this.formatId=Q;this.Li=l;this.lastError=null;this.M_=function(){L.wd()||(L.Li.Wh.has(L.formatId)?(L.isComplete()||L.T.start(),$R(L.Li,L.formatId)&&L.fM(2),L.Li.FG(L.formatId)&&(uoT(L.Li,L.formatId)?L.OH(4):(L.lastError="net.closed",L.OH(5)))):(L.lastError="player.exception",L.OH(5)))}; this.T=new g.FA(function(){L.isComplete()||(L.lastError="net.timeout",L.OH(5))},1E3); this.T.start();cwT(this.Li,this.formatId,this.M_);g.Ad(this.M_)}; Kf=function(T,Q,k,l){g.x.call(this);var v=this;this.loader=T;this.policy=Q;this.T=k;this.timing=l;this.logger=new g.Cy("dash");this.L=[];this.xm=[];this.S=this.jr=null;this.Jj=!1;this.Bd=this.sK=0;this.B=-1;this.hj=!1;this.i9=-1;this.e6=null;this.qO=NaN;this.z9=[];this.dn={va:function(){return v.Y}, hFq:function(){return v.L}, ZUd:function(){return v.j}}; this.Y=new iyJ(T,Q,k);this.policy.T&&(this.j=new T_(this.Y,this.loader.getManifest(),this.policy,function(L){v.policy.cf&&v.T9("buftl",L)})); this.policy.Ig&&(this.D=new mr(this));this.qY=k.info.qY;this.C=this.policy.qO?!1:k.Ri();this.isManifestless=k.Ri();this.N=this.C;g.P(this,this.e6)}; xC=function(T,Q,k){k=k===void 0?!1:k;Q&&u4&&G6b(T.Y,Q.Eb());if(!k){var l;(l=T.j)==null||dQT(l)}T.jr=Q;(Q=T.j)!=null&&(Q.jr=T.jr)}; P7=function(T){var Q=T.jr&&T.jr.Wy();if(T.policy.xF){if((T=T.j)==null)T=void 0;else{var k;T=(k=T.L)==null?void 0:k.info}return T||null}return Q}; mxC=function(T){for(var Q={},k=0;k4&&T.xm.shift()}; IEu=function(T,Q){if(Q.HH()){var k=Q.TW();k=g.B(k);for(var l=k.next();!l.done;l=k.next())l=l.value,T.policy.L&&Q instanceof jJ&&T.T9("omblss",{s:l.info.Bh()}),tA(T,Q.info.MO,l,Q.T7())}}; tA=function(T,Q,k,l){l=l===void 0?0:l;isNaN(T.qO)||(T.T9("aswm",{sq:Q[0].NO,id:Q[0].T.info.itag,xtag:Q[0].T.info.T,ep:Date.now()-T.qO}),T.qO=NaN);switch(k.info.type){case 1:case 2:hh5(T,k);break;case 4:var v=k.info.T,L=v.dj(k),q;((q=T.S)==null?0:q.type===4)&&buC(k.info,T.S)&&(T.S=v.Ui(T.S).pop());k=g.B(L);for(v=k.next();!v.done;v=k.next())tA(T,Q,v.value,l);break;case 3:k.info.T.info.video?(v=T.timing,v.i9||(v.i9=(0,g.XY)(),g.JB("fvb_r",v.i9,v.T))):(v=T.timing,v.B||(v.B=(0,g.XY)(),g.JB("fab_r",v.B, v.T)));omu(T.Y,Q,k,l);T.policy.T&&snI(T);break;case 6:omu(T.Y,Q,k,l),T.S=k.info}}; hh5=function(T,Q){if(Q.info.type===1)if(Q.info.T.info.video){var k=T.timing;k.Bd||(k.Bd=(0,g.XY)(),g.JB("vis_r",k.Bd,k.T))}else k=T.timing,k.j||(k.j=(0,g.XY)(),g.JB("ais_r",k.j,k.T));jn6(T.Y,Q);T=T.loader;T.videoTrack.T.ZG()&&T.audioTrack.T.ZG()&&T.policy.T&&!T.C_.Cc&&(Q=T.audioTrack.getDuration(),k=T.videoTrack.getDuration(),Math.abs(Q-k)>1&&T.T9("trBug",{af:""+g.Hj(T.audioTrack.T.info,!1),vf:""+g.Hj(T.videoTrack.T.info,!1),a:""+Q,v:""+k}))}; YR=function(T){return Vqu(T.Y)}; snI=function(T){T.L.length?T.S=g.m9(g.m9(T.L).info.MO):T.Y.S.length?T.S=T.Y.JV().info:T.S=P7(T)}; Oh=function(T,Q){var k={Yc:[],Mm:[]},l;if((T=T.j)==null)T=void 0;else{wrX(T,T.Yc,"og");BtJ(T,Q);wrX(T,T.Yc,"trim");var v=XrI(T);Q=v.Yc;v=v.Dd;for(var L=[],q=0;q0){var G=E_(f,U);G>=0&&(Z=(f.end(G)-U+.1)*1E3)}L.push({formatId:g.Hj(Y.info.T.info,T.C_.Cc), Qw:Y.info.Qw,sequenceNumber:Y.info.NO+T.Y,Z2:R,tR:Y.info.L,PR:Z})}T={Yc:Q,Mm:L}}return(l=T)!=null?l:k}; oz=function(T,Q,k){k=k===void 0?!1:k;if(T.jr){var l=T.jr.LG(),v=ik(l,Q),L=NaN,q=P7(T);q&&(L=ik(l,q.T.index.getStartTime(q.NO)));if(v===L&&T.S&&T.S.L&&Sd6(pf(T),0))return Q}T=Ccg(T,Q,k);return T>=0?T:NaN}; Lr=function(T,Q,k){T.T.ZG();var l=Ccg(T,Q);if(l>=0)return l;var v;(v=T.j)==null||zxX(v,Q,k);l=Math;v=l.min;var L=T.Y;if(L.C)if(L=L.C,L.Qy&&L.Qy.type===3)L=L.Qy.startTime;else if(L.L>0){var q=L.T.index;q=g.OA(q.offsets.subarray(0,q.count),L.L*L.chunkSize);L=L.T.index.getStartTime(q>=0?q:Math.max(0,-q-2))}else L=0;else L=Infinity;Q=v.call(l,Q,L);T.S=T.policy.qO?null:T.T.A5(Q).MO[0];W7(T)&&(T.policy.Bt&&(k==null?void 0:k.seekSource)===60||T.jr&&T.jr.abort(),T.policy.O6&&(k=T.j)!=null&&(k.L=void 0)); T.Bd=0;return T.S?T.S.startTime:Q}; A_6=function(T){T.C=!0;T.N=!0;T.B=-1;Lr(T,Infinity)}; $C=function(T){for(var Q=0,k=g.B(T.L),l=k.next();!l.done;l=k.next())Q+=cWC(l.value.info);return Q+=L05(T.Y)}; er=function(T,Q){Q=Q===void 0?!1:Q;var k=T.loader.getCurrentTime(),l=T.Y.JV(),v=(l==null?void 0:l.info.B)||0;if((l==null?0:l.info.T.Ri())&&!l.info.Y)if(T.policy.FU)v=l.info.N;else if(T.policy.u$){var L=l.info;v=L.range?L.B:Math.min(L.startTime+Math.min(L.duration*L.S/L.T.info.qY,L.duration)+(L.range?L.j:Math.min(L.duration,L.duration*L.L/L.T.info.qY)),L.startTime+L.duration)}if(!T.jr)return T.policy.T&&Q&&!isNaN(k)&&l?v-k:0;if((L=P7(T))&&JA(L))return L.B;var q=T.jr.LG(!0);if(Q&&l)return L=0,T.policy.T&& (L=Qd(q,v+.02)),L+v-k;Q=Qd(q,k);T.policy.uL&&L&&(l=E_(q,k),q=E_(q,L.N-.02),l===q&&(k=L.B-k,T.policy.L&&k>Q+.02&&T.T9("abh",{bh:Q,bhtls:k}),Q=Math.max(Q,k)));return Q}; Bxf=function(T){var Q=P7(T);return Q?Q.B-T.loader.getCurrentTime():0}; zh5=function(T,Q){if(T.L.length){if(T.L[0].info.MO[0].startTime<=Q)return;l$(T)}for(var k=T.Y,l=k.S.length-1;l>=0;l--)k.S[l].info.startTime>Q&&k.S.pop();snI(T);T.S&&Q=0;q--){var Y=v.S[q];Y.info.NO>=Q&&(v.S.pop(),v.L-=Aq(Y,v.policy.OG),L=Y.info)}L&&(v.Y=v.S.length>0?v.S[v.S.length-1].info:v.Jj,v.S.length!==0||v.Y||c7(v,"r"));v.loader.T9("mdstm",{rollbk:1,itag:L?L.T.info.itag:"",popped:L?L.NO:-1,sq:Q,lastslc:v.Y?v.Y.NO:-1,lastfraget:v.L.toFixed(3)});if(T.policy.T)return T.S=null,!0;l>k?Lr(T,l):T.S=T.T.qT(Q-1,!1).MO[0]}catch(U){return Q=GX(U),Q.details.reason="rollbkerr", T.loader.handleError(Q.errorCode,Q.details,Q.severity),!1}return!0}; yX=function(T,Q){var k;for(k=0;k0?k||Q.NO>=T.i9:k}; i4=function(T){var Q;return W7(T)||JA((Q=T.Y.JV())==null?void 0:Q.info)}; pf=function(T){var Q=[],k=P7(T);k&&Q.push(k);Q=g.bW(Q,T.Y.gr());k=g.B(T.L);for(var l=k.next();!l.done;l=k.next()){l=l.value;for(var v=g.B(l.info.MO),L=v.next(),q={};!L.done;q={KV:void 0},L=v.next())q.KV=L.value,l.VK&&(Q=g.bl(Q,function(Y){return function(U){return!buC(U,Y.KV)}}(q))),(l7(q.KV)||q.KV.type===4)&&Q.push(q.KV)}T.S&&!S_T(T.S,g.m9(Q),T.S.T.tH())&&Q.push(T.S); return Q}; Sd6=function(T,Q){if(!T.length)return!1;for(Q+=1;Q=Q){Q=L;break a}}Q=v}return Q<0?NaN:Sd6(T,k?Q:0)?T[Q].startTime:NaN}; VX=function(T){return!(!T.S||T.S.T===T.T)}; XLX=function(T){return VX(T)&&T.T.ZG()&&T.S.T.info.qYQ&&T.B1080&&!T.K5&&(T.Bd=36700160,T.zg=5242880,T.sK=Math.max(4194304,T.sK),T.K5=!0);Q.video.qualityOrdinal>2160&&!T.Gt&&(T.Bd=104857600,T.qY=13107200,T.Gt=!0);g.jj(T.FB.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?Q.isEncrypted()&&g.ph()&&g.tH("samsung")&&(g.tH("kant")||g.tH("muse"))&&(T.qY=g.jj(T.FB.experiments,"html5_samsung_kant_limit_max_bitrate")):Q.isEncrypted()&&g.ph()&&g.tH("kant")&&(T.qY=1310720);T.Ap!==0&&Q.isEncrypted()&& (T.qY=T.Ap);T.W5!==0&&Q.isEncrypted()&&k&&(T.qY=T.W5);Q.qY&&(T.Mv=Math.max(T.mK,Math.min(T.sK,5*Q.qY)))}; az=function(T){return T.T&&T.bX}; lY=function(T){return T.T&&T.Sf&&T.playbackStartPolicy}; ov=function(T,Q,k,l){T.Sf&&(T.playbackStartPolicy=Q,T.mL=k,T.y3=l)}; kx=function(T,Q,k){k=k===void 0?0:k;return g.jj(T.FB.experiments,Q)||k}; xxC=function(T){var Q=T===void 0?{}:T;T=Q.lS;var k=Q.Jy;var l=Q.bH;var v=Q.a_;Q=Q.j2;this.lS=T;this.Jy=k;this.bH=l;this.a_=v;this.j2=Q}; tXf=function(T,Q){if(Q<0)return!0;var k=T.a_();return Q0)return 2;if(Q<0)return 1;k=T.a_();return Q(0,g.XY)()?0:1}; L$=function(T,Q,k,l,v,L,q,Y,U,R,Z,f,G,m){m=m===void 0?null:m;g.x.call(this);var I=this;this.loader=T;this.policy=Q;this.videoTrack=k;this.audioTrack=l;this.Y=v;this.T=L;this.timing=q;this.N=Y;this.schedule=U;this.C_=R;this.L=Z;this.z9=f;this.U7=G;this.vl=m;this.qO=!1;this.Rb="";this.fp=null;this.Jx=NaN;this.hj=!1;this.S=null;this.MK=this.D=NaN;this.Vm=this.B=0;this.logger=new g.Cy("dash");this.dn={H6:function(z,w){return I.H6(z,w)}}; this.policy.jl>0&&(this.Rb=g.hu(this.policy.jl));this.policy.A9&&(this.j=new v6(this.loader,this.policy,this.schedule),g.P(this,this.j))}; pLC=function(T,Q,k){var l=Q.S?Q.S.T.Xs:Q.T.Xs;var v=T.Y,L;(L=!T.policy.xj)||(L=FQ(l.T)===FQ(l.S));L?l=!1:(v=po(v,FQ(l.S)),L=6E4*Math.pow(v.Y,1.6),(0,g.XY)()=v.Y?(v.T9("sdai",{haltrq:L+1,est:v.Y}),l=!1):l=v.S!==2;if(!l||!Fo(Q.S?Q.S.T.Xs:Q.T.Xs,T.policy,T.Y,T.loader.jX())||T.loader.isSuspended&&(!FK(T.schedule)||T.loader.xL))return!1;if(T.policy.Y&&vv>=5)return g.Ez(T.loader.Ii),!1;if(T.C_.isManifestless){if(Q.L.length>0&&Q.S&&Q.S.NO===-1||Q.L.length>=T.policy.QV||!T.policy.fh&&Q.L.length>0&&!T.policy.C.Jy)return!1;if(Q.C)return!T.C_.isLive|| !isNaN(T.Jx)}if(bcX(Q))return T.logger.debug("Pending request with server-selectable format found"),!1;if(!Q.S){if(!Q.T.ZG())return!1;Lr(Q,T.loader.getCurrentTime())}if(YR(Q)&&(Q.JV()!==YR(Q)||T.loader.isSuspended))return!1;v=(l=T.policy.xb)&&!Q.L.length&&er(Q,!0)=T.policy.U2)return!1;l=Q.S;if(!l)return!0;l.type===4&&l.T.ZG()&&(Q.S=g.m9(l.T.Ui(l)),l= Q.S);if(!l.Dq()&&!l.T.zm(l))return!1;L=T.C_.KY||T.C_.Y;if(T.C_.isManifestless&&L){L=Q.T.index.a_();var q=k.T.index.a_();L=Math.min(L,q);if(Q.T.index.UI()>0&&L>0&&l.NO>=L)return Q.i9=L,k.i9=L,!1}if(l.T.info.audio&&l.type===4||l.Dq())return!1;L=!Q.N&&!k.N;if(v=!v)v=l.B,v=!!(k.S&&!JA(k.S)&&k.S.BW0H(T,Q)?(W0H(T,Q),!1):(T=Q.jr)&&T.isLocked()?!1:!0}; W0H=function(T,Q){var k=T.T;k=k.T?k.T.Bn:null;if(T.policy.xm&&k)return k.startSecs+k.bf+15;Q=vJ(T.loader,Q);T.policy.h3>0&&(k=((0,g.XY)()-T.loader.LN)/1E3,Q=Math.min(Q,T.policy.h3+T.policy.b7*k));Q=T.loader.getCurrentTime()+Q;return T.policy.Ps&&(k=$xg(T.loader)+T.policy.Ps,k=0||Q.Xs.Hp("defrag")==="1"||Q.Xs.Hp("otf")==="1"){Q=null;break a}v=T3(0,4096)}v=new gd([new jq(5,l.T,v,"createProbeRequestInfo"+l.C,l.NO)],Q.S);v.YE=k;v.T=Q.T;Q=v}Q&&go(T,Q)}}; go=function(T,Q){T.loader.Zx(Q);var k=cWC(Q),l=T.loader.yZ();k={V4:T.schedule,JS:k,ra:mQX(T.N,k),Zr:k0(Q.MO[0]),Ox:EV(Q.Xs.T),By:T.policy.L,uu:function(q,Y){T.loader.eN(q,Y)}}; if(T.schedule.S.B){var v,L;k.Ds=(((v=T.videoTrack.T)==null?void 0:v.info.qY)||0)+(((L=T.audioTrack.T)==null?void 0:L.info.qY)||0)}T.fp&&(k.NO=Q.MO[0].NO,k.Jx=Q.Jx,k.fp=T.fp);l={Qh:D$6(Q,T.loader.getCurrentTime()),hO:T.policy.Wk&&Y0(Q)&&Q.MO[0].T.info.video?DtI(T.L):void 0,d2:T.policy.xm,poToken:T.loader.WH(),fH:T.loader.aN(),Rb:T.Rb,MK:isNaN(T.MK)?null:T.MK,vl:T.vl,U7:T.U7,Vm:T.Vm,cw:l};return new kR(T.policy,Q,k,T.Y,function(q,Y){try{a:{var U=q.info.MO[0].T,R=U.info.video?T.videoTrack:T.audioTrack; if(!(q.state>=2)||q.isComplete()||q.Jn()||!(!T.loader.j6||T.loader.isSuspended||er(R)>3)){var Z=t4u(q,T.policy,T.Y);Z===1&&(T.hj=!0);JS6(T,q,Z);if(q.isComplete()||q.wd()&&Y<3){if(T.policy.L){var f=q.timing.i6();f.rst=q.state;f.strm=q.xhr.gQ();f.cncl=q.xhr&&q.jV.Y?1:0;T.loader.T9("rqs",f)}q.Rh&&T.loader.T9("sbwe3",{},!0)}if(!T.wd()&&q.state>=2){QXX(T.timing,q,U);var G=T.loader;T.MK&&q.Of&&G&&(T.MK=NaN,T.loader.u1(q.Of),T.loader.Jd(),T.loader.T9("cabrUtcSeek",{mediaTimeSeconds:q.Of}));q.Nt&&T.MK&&q.Nt&& !q.Nt.action&&(T.loader.Fi(T.MK),T.MK=NaN,T.loader.T9("cabrUtcSeekFallback",{targetUtcTimeSeconds:T.MK}));q.WA&&T.loader.rT(q.WA);T.policy.Hn&&(T.Vm=q.Vm);if(q.state===3){yX(R,q);Y0(q.info)&&Yx(T,R,U,!0);if(T.S){var m=q.info.pw();m&&T.S.Pg(q.info.MO[0].NO,U.info.id,m)}T.loader.Jh()}else if(q.isComplete()&&q.info.MO[0].type===5){if(q.state!==4)q.u5()&&T.loader.handleError(q.SZ(),q.HA());else{var I=(q.info.MO[0].T.info.video?T.videoTrack:T.audioTrack).L[0]||null;I&&I instanceof kR&&I.Jn()&&I.Q$()}q.dispose()}else{q.u5()|| ehJ(T,q);var z;((z=q.AN)==null?0:z.itagDenylist)&&T.loader.pJ(q.AN.itagDenylist);if(q.state===4)UN(T,q),T.T&&v0H(T.T,q.info,T.S);else if(T.policy.g_&&q.HH()&&!q.isComplete()&&!UN(T,q)&&!q.u5())break a;q.u5()&&(F0u(T,q),isNaN(T.MK)||(T.loader.Fi(T.MK),T.MK=NaN));T.policy.DP&&!q.isComplete()?Emy(T.loader):T.loader.Jh();var w=Oc5(q,T.policy,T.Y);JS6(T,q,w)}}}}}catch(r){Y=T.qO?1:0,T.qO=!0,q=fu(Y),Y=GX(r,Y),T.loader.handleError(Y.errorCode,Y.details,Y.severity),q||T.loader.FJ()}},l)}; ehJ=function(T,Q){if(Q.TQ&&Q.state>=2&&Q.state!==3){var k=Q.xhr.getResponseHeader("X-Response-Itag");if(k){T.logger.debug(function(){return"Applying streamer-selected format "+k}); var l=cqy(T.L,k),v=Q.info.L;v&&(v-=l.fm(),l.L=!0,Q.info.MO[0].T.L=!1,Awf(Q,l.Ga(v)),Rv(T.loader,T.videoTrack,l),rSg(T.videoTrack,l),T.loader.sP(l.info.video.quality),(v=Q.T7())&&l.info.lastModified&&l.info.lastModified!==+v&&yX(T.videoTrack,Q))}else Q.TQ=!1}}; F0u=function(T,Q){var k=Q.info.MO[0].T,l=Q.SZ();if(EV(k.Xs.T)){var v=g.N_(Q.dw(),3);T.loader.T9("dldbrerr",{em:v||"none"})}v=Q.info.MO[0].NO;var L=QX(T.T,Q.info.MO[0].N,v);l==="net.badstatus"&&(T.B+=1);if(Q.canRetry()&&ySg(T.loader)){if(!(Q.info.Xs.L>=T.policy.A7&&T.S&&Q.info.isDecorated()&&l==="net.badstatus"&&T.S.eK(L,v))){v=(k.info.video&&k.Xs.L>1||Q.W1===410||Q.W1===500||Q.W1===503)&&!(qv(T.L.N).size>0)&&!EV(k.Xs.T);L=Q.HA();var q=k.info.video?T.videoTrack:T.audioTrack;v&&(L.stun="1");T.loader.handleError(l, L);T.wd()||(v&&(T.logger.debug(function(){return"Stunning format "+k.info.id}),Zs(T.L,k)),yX(q,Q),T.loader.Jh())}}else q=1,T.S&&Q.info.isDecorated()&&l==="net.badstatus"&&T.S.eK(L,v)&&(q=0),T.C_.isLive&&Q.SZ()==="net.badstatus"&&T.B<=T.policy.vA*2?(x35(T.C_),T.C_.KY||T.C_.isPremiere?Mm(T.loader,0,{I_:"badStatusWorkaround"}):T.C_.Y?Mm(T.loader,T.C_.xm,{I_:"badStatusWorkaround", J_:!0}):ZI(T.loader)):T.loader.handleError(l,Q.HA(),q)}; UN=function(T,Q){if(T.policy.useUmp&&Q.wd())return!1;try{var k=Q.info.MO[0].T,l=k.info.video?T.videoTrack:T.audioTrack;if(T.C_.isManifestless&&l){T.B=0;l.C&&(Q.wd(),Q.isComplete()||Q.HH(),l.C=!1);Q.Az()&&T.loader.Ad.Q1(1,Q.Az());var v=Q.UI(),L=Q.oR();i7(T.C_,v,L)}if(Q.info.Zr()&&!Mt(Q.info))for(var q=g.B(Q.TW()),Y=q.next();!Y.done;Y=q.next())hh5(l,Y.value);for(T.loader.getCurrentTime();l.L.length&&l.L[0].state===4;){var U=l.L.shift();IEu(l,U);l.sK=U.z1()}l.L.length&&IEu(l,l.L[0]);var R=!!YR(l);R&& Q instanceof jJ&&(k.info.uH()?eJg(T.timing):JwJ(T.timing));return R}catch(Z){Q=Q.HA();Q.origin="hrhs";a:{T=T.loader;k=Z;if(k instanceof Error){Q.msg||(Q.msg=""+k.message);Q.name||(Q.name=""+k.name);if(k instanceof g.Wy&&k.args)for(l=g.B(Object.entries(k.args)),v=l.next();!v.done;v=l.next())L=g.B(v.value),v=L.next().value,L=L.next().value,Q["arg"+v]=""+L;g.rB(k);if(k.level==="WARNING"){T.yq.Lt(Q);break a}}T.handleError("fmt.unplayable",Q,1)}return!1}}; ic6=function(T){var Q=T.videoTrack.T.index;T.fp=new xxC({lS:T.policy.lS,Jy:T.policy.C.Jy,bH:Q.Z3(),a_:function(){return Q.a_()}, j2:function(){return Q.j2()}})}; Yx=function(T,Q,k,l){if(!(k.ZG()||k.sj()||k.L||!Fo(k.Xs,T.policy,T.Y,T.loader.jX())||k.info.yR==="f"||T.policy.T)){if(l){l=T.N;var v=k.info;l=Ic5(l,v.video?l.policy.nR:l.policy.UY,v.qY)}else l=0;l=k.Ga(l);T=go(T,l);Mt(l)&&H7(Q,T);k.L=!0}}; f$=function(T,Q,k,l,v,L,q,Y){g.x.call(this);var U=this;this.loader=T;this.qL=Q;this.videoTrack=k;this.audioTrack=l;this.C_=v;this.D=L;this.isAudioOnly=q;this.j=Y;this.S=GV;this.hj=!1;this.logger=new g.Cy("sabr");this.C=this.qO=this.z9=!1;this.videoInfos=this.B=this.D.videoInfos;this.L=this.xm=this.D.T;this.T=new v7(Q,L,function(R,Z){U.loader.T9(R,Z)}); this.isAudioOnly&&V4J(this,this.C_.T["0"])}; TjI=function(T,Q){var k=[];Q=g.B(Q);for(var l=Q.next();!l.done;l=Q.next())k.push(g.Hj(l.value,T.C_.Cc));return k}; V4J=function(T,Q,k){Q!==T.Y&&(T.Y&&(T.hj=!0),T.Y=Q,T.nJ(Q,T.videoTrack,k))}; leX=function(T,Q){T.logger.debug("setConstraint: "+Dc(Q));az(T.qL)&&(T.qO=Q.reason==="m"||Q.reason==="l"?!0:!1);Q.reason==="m"?Q.isLocked()&&QuC(T,Q.T):juX(T,Q)?kWH(T,Q.S,Q.T):T.videoInfos=T.B;T.S=Q}; juX=function(T,Q){return T.qL.cM&&Q.reason==="b"||T.qL.dL&&Q.reason==="l"||T.qL.Xd?!1:T.qL.FZ?!0:Q.reason==="l"||Q.reason==="b"||Q.reason==="o"}; oLI=function(T,Q){return Q.isLocked()&&T.T.S||T.S===void 0?!1:Q.equals(T.S)}; vLX=function(T,Q){var k,l=(k=T.Y)==null?void 0:k.info.video.qualityOrdinal;return T.hj?!0:T.Y?Q!==l?!0:!T.T.S||T.qL.QE&&T.T.T===T.Y.info.itag?!1:!0:!1}; QuC=function(T,Q){var k=T.T.T;if(k){T.videoInfos=T.B;var l=g.sA(T.videoInfos,function(v){return v.id===k}); l&&l.video.qualityOrdinal===Q?T.videoInfos=[l]:(l=T.videoInfos.map(function(v){return v.id}),T.loader.T9("sabrpf",{pfid:""+k, vfids:""+l.join(".")}),kWH(T,Q,Q),gX(T.T,""))}else kWH(T,Q,Q)}; kWH=function(T,Q,k){T.videoInfos=T.B;T.videoInfos=g.bl(T.videoInfos,function(l){return l.video.qualityOrdinal>=Q&&l.video.qualityOrdinal<=k})}; LqI=function(T,Q,k){if(T.j){var l=g.bl(T.L,function(v){return v.id===T.j}); return GD(l,k).includes(Q)}l=g.bl(T.L,function(v){var L;return!((L=v.MY)==null||!L.isDefault)}); return l.length>0?GD(l,k).includes(Q):GD(T.L,k).includes(Q)}; GD=function(T,Q){return T.map(function(k){return Ew(g.Hj(k,Q))})}; q8I=function(T){var Q;if((Q=T.S)==null?0:Q.isLocked())return T.videoInfos;var k=qv(T.T);Q=g.bl(T.videoInfos,function(l){return l.qY>T.qL.qY?!1:!k.has(l.id)}); ZyX(T.T)&&(Q=g.bl(Q,function(l){return l.video.width<=854&&l.video.height<=480})); return Q}; MFy=function(T,Q,k){var l=T.C_,v=T.yq.getVideoData(),L=T.fV,q=B8J({FB:v.G(),yq:T.yq,kL:T.kL,qL:T.qL,vp:T.vp,AX:T.AX,h1:T.h1,NU:T.NU,GG:T.GG,isPrefetch:T.isPrefetch,qM:T.qM,sabrLicenseConstraint:v.sabrLicenseConstraint,Ft:T.Ft,FO:T.FO,eE:T.eE,sS:T.sS,FM:!!L,authorizedFormats:v.authorizedFormats}),Y=u$(v,T.cw,T.nextRequestPolicy,T.Z$,T.ip,T.E5,T.BS);k&&Q&&(k=Y.k6?Y.k6.map(function(f){return f.type}):[],Q("sabr",{stmctxt:k.join("_"), unsntctxt:Y.Mt?Y.Mt.join("_"):""}));Q=T.vY;k=T.Dn;if(k===void 0&&Q===void 0){var U;k=gLT(l.Cc,(U=T.M$)==null?void 0:U.video);var R;Q=gLT(l.Cc,(R=T.M$)==null?void 0:R.audio)}if(v.vl)var Z=v.vl;v={Ly:q,Mm:T.Mm,vY:Q,Dn:k,fV:L,videoPlaybackUstreamerConfig:Z,iU:Y};T.gV&&(v.gV=T.gV);v.Yc=T.Yc;v.xX=l.p_;return v}; gLT=function(T,Q){return Q?[g.Hj(Q.info,T)]:[]}; mT=function(T,Q,k){var l=this;this.requestType=T;this.Xs=Q;this.m1=k;this.S=null;this.dn={OSK:function(){var v;return(v=l.data)==null?void 0:v.isPrefetch}, ip:function(){var v;return(v=l.data)==null?void 0:v.ip}}}; OoI=function(T,Q,k){Q=Jw(T.Xs,Y8b(T,Q,k),Q);T.u6()&&Q.set("probe","1");return Q}; Y8b=function(T,Q,k){T.YE===void 0&&(T.YE=T.Xs.YE(Q,k));return T.YE}; U0T=function(T){var Q,k;return((Q=T.T)==null?void 0:(k=Q.Ly)==null?void 0:k.tG)||0}; R0J=function(T){var Q,k;return!!((Q=T.T)==null?0:(k=Q.Ly)==null?0:k.Ft)}; ZnJ=function(T){var Q={},k=[],l=[];if(!T.data)return Q;for(var v=0;v0;U--)k.push(Y)}k.length!==q?Q.error=!0:(L=k.slice(-L),k.length=v,uT5(Q,k,L));break;case 1:uT5(Q,tf,A9X);break;case 0:nL5(Q, Q.T&7);k=$x(Q,16);v=$x(Q,16);(k^v)!==65535&&(Q.error=!0);Q.output.set(Q.data.subarray(Q.S,Q.S+k),Q.L);Q.S+=k;Q.L+=k;break;default:Q.error=!0}T.L>T.output.length&&(T.output=new Uint8Array(T.L*2),T.L=0,T.S=0,T.Y=!1,T.T=0,T.register=0)}T.output.length!==T.L&&(T.output=T.output.subarray(0,T.L));return T.error?new Uint8Array(0):T.output}; uT5=function(T,Q,k){Q=D06(Q);k=D06(k);for(var l=T.data,v=T.output,L=T.L,q=T.register,Y=T.T,U=T.S;;){if(Y<15){if(U>l.length){T.error=!0;break}q|=(l[U+1]<<8)+l[U]<>=7;R<0;)R=Q[(q&1)-R],q>>=1;else q>>=R&15;Y-=R&15;R>>=4;if(R<256)v[L++]=R;else if(T.register=q,T.T=Y,T.S=U,R>256){q=p$[R];q+=$x(T,ON[R]);U=aeg(T,k);Y=W6[U];Y+=$x(T,bnb[U]);if(x0I&&qk.length&&(T.error=!0);T.register|=(k[l+1]<<8)+k[l]<=0)return nL5(T,k&15),k>>4;for(nL5(T,7);k<0;)k=Q[$x(T,1)-k];return k>>4}; $x=function(T,Q){for(;T.T=T.data.length)return T.error=!0,0;T.register|=T.data[T.S++]<>=Q;T.T-=Q;return k}; nL5=function(T,Q){T.T-=Q;T.register>>=Q}; D06=function(T){for(var Q=[],k=g.B(T),l=k.next();!l.done;l=k.next())l=l.value,Q[l]||(Q[l]=0),Q[l]++;var v=Q[0]=0;k=[];var L=0;l=0;for(var q=1;q7&&(L+=Q[q]);for(v=1;v>U&1;Y=L<<4|q;if(q<=7)for(U=1<<7-q;U--;)l[U<>=7;q--;){l[U]||(l[U]=-Q,Q+=2);var R=v&1;v>>=1;U=R-l[U]}l[U]=Y}}return l}; Hn6=function(T){var Q,k,l,v,L,q,Y,U,R;return g.a(function(Z){switch(Z.S){case 1:if(!PFg)throw Error("DecompressionStream is not supported");Q=bc.Ya();k=new DecompressionStream("gzip");l=k.writable.getWriter();l.write(T);l.close();v=k.readable.getReader();L=new oV([]);case 2:return g.c(Z,v.read(),5);case 5:q=Z.T;Y=q.value;if(U=q.done){Z.Ym(4);break}L.append(Y);Z.Ym(2);break;case 4:return R=Mg(L),bc.AS("gznb",Q,Math.ceil(R.byteLength/16)),Z.return(R)}})}; tFy=function(T){xR.call(this,"onesie");this.Ph=T;this.T={};this.Y=!0;this.L=null;this.queue=new Nj5(this);this.N={}}; On5=function(T){var Q=T.queue;Q.T.length&&Q.T[0].isEncrypted&&!Q.S&&(Q.T.length=0);Q=g.B(Object.keys(T.T));for(var k=Q.next();!k.done;k=Q.next()){k=k.value;var l=T.T[k];if(!l.Dx){var v=T.queue;v.T.push({videoId:l.videoId,formatId:k,isEncrypted:!1});v.S||H6(v)}}}; pBy=function(T,Q){var k=Q.totalLength,l=!1;switch(T.L){case 0:T.iZ(Q,T.Y).then(function(v){var L=T.Ph;L.z_("oprr");L.playerResponse=v;L.NJ||(L.PY=!1);Jf(L)},function(v){T.Ph.fail(v)}); break;case 2:T.z_("ormk");Q=Mg(Q);T.queue.decrypt(Q);break;default:l=!0}T.Ph.Kv&&T.Ph.T9("ombup","id.11;pt."+T.L+";len."+k+(l?";ignored.1":""));T.L=null}; Wqy=function(T,Q){var k,l,v,L,q;return g.a(function(Y){switch(Y.S){case 1:T.Ph.z_("oprgz_s");if(!PFg){Y.Ym(2);break}g.z5(Y,3);return g.c(Y,Hn6(Q),5);case 5:return k=Y.T,T.Ph.z_("oprgz_n"),Y.return(k);case 3:l=g.by(Y),T.Ph.T9("gzerr",{impl:"native",err:""+l});case 2:if(v=T.Ph.G().VD)try{var U=bc.Ya(),R=v.RH(Q),Z=v,f=R!=null?R:Q,G=f.byteOffset,m=f.byteLength,I=Z.exports.getInflatedSize(G,m);if(I===0)throw Error("wasm_gz: bad input");var z=Z.malloc(I),w=Z.exports.inflateGzip(G,m,z);if(w)throw Z.free(z), Error("wasm_gz: fail"+w);var r=new Uint8Array(Z.exports.memory.buffer,z,I);R&&v.free(R.byteOffset);var A=v.AL(r);bc.AS("gzwb",U,Math.ceil(A.byteLength/16));L=A;T.Ph.z_("oprgz_w");return Y.return(L)}catch(D){T.Ph.T9("gzerr",{impl:"wasm",err:""+D})}U=bc.Ya();R=g.Kq6(new g.r9X(Q));bc.AS("gzjb",U,Math.ceil(R.byteLength/16));q=R;T.Ph.z_("oprgz_p");return Y.return(q)}})}; $05=function(T){return new Promise(function(Q){setTimeout(Q,T)})}; J95=function(T,Q){var k=T.G();k=T.A9&&k.V("html5_onesie_preload_use_content_owner");var l=T.zK,v=S4(Q.Hd.experiments,"debug_bandaid_hostname");if(v)Q=hf(Q,v);else if((k===void 0?0:k)&&(l==null?0:l.url)&&!Q.S){var L=FQ(new g.J_(l.url));Q=hf(Q,L)}else Q=(L=Q.T.get(0))==null?void 0:L.location.clone();if(Q&&T.videoId){L=DE(T.videoId);T=[];if(L)for(L=g.B(L),k=L.next();!k.done;k=L.next())T.push(k.value.toString(16).padStart(2,"0"));Q.set("id",T.join(""));return Q}}; e0I=function(T,Q,k){k=k===void 0?0:k;var l,v;return g.a(function(L){if(L.S==1)return l=[],l.push(Q.load()),k>0&&l.push($05(k)),g.c(L,Promise.race(l),2);v=J95(T,Q);return L.return(v)})}; Fqu=function(T,Q,k,l){l=l===void 0?!1:l;T.set("cpn",Q.clientPlaybackNonce);T.set("opr","1");var v=Q.G();T.set("por","1");gG()||T.set("onem","1");Q.startSeconds>0&&T.set("osts",""+Q.startSeconds);l||(v.V("html5_onesie_disable_partial_segments")&&T.set("oses","1"),Q=v.V("html5_gapless_onesie_no_media_bytes")&&NY(Q)&&Q.A9,k&&!Q?(Q=k.audio,T.set("pvi",k.video.join(",")),v.V("html5_onesie_disable_audio_bytes")||T.set("pai",Q.join(",")),sd||T.set("osh","1")):(T.set("oad","0"),T.set("ovd","0"),T.set("oaad", "0"),T.set("oavd","0")))}; ELg=function(T,Q,k,l,v){v=v===void 0?!1:v;var L="https://youtubei.googleapis.com/youtubei/"+Q.Lp.innertubeApiVersion+"/player",q=[{name:"Content-Type",value:"application/json"}];l&&q.push({name:"Authorization",value:"Bearer "+l});q.push({name:"User-Agent",value:g.KJ()});g.$i("EOM_VISITOR_DATA")?q.push({name:"X-Goog-EOM-Visitor-Id",value:g.$i("EOM_VISITOR_DATA")}):(k=k.visitorData||g.$i("VISITOR_DATA"))&&q.push({name:"X-Goog-Visitor-Id",value:k});(k=g.$i("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&q.push({name:"X-YouTube-Lava-Device-Context", value:k});(Q=S4(Q.experiments,"debug_sherlog_username"))&&q.push({name:"X-Youtube-Sherlog-Username",value:Q});T=hl(JSON.stringify(T));return{url:L,lY:q,postBody:T,HG_:v,Xt:v}}; y95=function(T,Q,k,l,v,L,q){var Y=T.TV,U=T.tv;T=T.nee;var R=Y!==void 0&&U!==void 0,Z=l.getVideoData(),f,G=Q.T.encryptedClientKey;Q=R?Q.iv:void 0;R=e4(k.schedule,!0);v=v||!!gG()&&R>1572864;return{innertubeRequest:{PHq:T,ye:Y,tv:U,encryptedClientKey:G,iv:Q,bGk:!0,Dp:!0,jL:"DecompressionStream"in window||!v,Hd9:k.experiments.Wd("html5_use_jsonformatter_to_parse_player_response")},Ly:B8J({FB:k,yq:l,kL:Z.startSeconds*1E3}),onesieUstreamerConfig:L,Vl:q,iU:u$(Z),reloadPlaybackParams:(f=Z.Ct)==null?void 0: f.reloadPlaybackParams}}; VFX=function(T,Q,k,l,v,L){var q=g.F0(T,UV),Y;if(!T.Xt)if(Y=Iet(Q,q)){var U=Y.yB;Y=Y.signature}else Y=U=Q.encrypt(q),(0,g.XY)(),Y=MVg(new g_g(Q.T.L),Y,Q.iv);return y95(U&&Y?{TV:U,tv:Y}:{nee:q},Q,k,l,!!T.Xt,v,L)}; T4b=function(T,Q,k,l,v,L){var q,Y,U;return g.a(function(R){if(R.S==1)return q=g.F0(T,UV),g.c(R,m0u(Q,q),2);if(R.S!=3)return Y=R.T,g.c(R,h0T(Q,Y),3);U=R.T;return R.return(y95({TV:Y,tv:U},Q,k,l,!!T.Xt,v,L))})}; Q8y=function(T,Q,k,l,v,L){var q=g.F0(T,UV);if(q=Iet(Q,q))return y95({TV:q.yB,tv:q.signature},Q,k,l,!!T.Xt,v,L)}; FJ=function(T,Q){g.x.call(this);var k=this;this.yq=T;this.playerRequest=Q;this.logger=new g.Cy("onesie");this.xhr=null;this.state=1;this.O_=new GN;this.Ho=!1;this.playerResponse="";this.Qb=new Iz(this);this.fv=new tFy(this);this.jM="";this.jA=this.Bo=!1;this.C3="";this.enableCompression=this.NJ=this.Xr=!1;this.Xq=[];this.qB=-1;this.oh=0;this.Hd=this.yq.G();this.videoData=this.yq.getVideoData();this.Kv=this.Hd.J3();this.Lk=this.Hd.Z8;this.T5=new fe5(this.Lk.T);this.bU=this.Hd.V("html5_onesie_check_timeout"); this.xZ=new g.FA(this.cS,500,this);this.SN=new g.FA(this.RZ,1E4,this);this.yT=new g.FA(function(){if(!k.isComplete()){var l=e3(k);k.fail(new g.ZK("net.timeout",l))}},1E3); this.U9=new g.FA(this.yjq,2E3,this);this.oi=this.yq.aN();this.PY=this.V("html5_onesie_wait_for_media_availability");g.P(this.videoData,this);g.P(this,this.xZ);g.P(this,this.SN);g.P(this,this.U9);T=BL();sd&&T&&(this.Ug=new Map);this.MM=new Map;this.CI=new Map;this.Tq=new Map;this.NZ=new Map}; P6=function(T,Q){var k;return(k=T.Ug)==null?void 0:k.get(Q)}; kVg=function(T,Q,k){var l;return g.a(function(v){if(v.S==1)return T.z_("oprd_s"),j8b(T)?g.c(v,suI(T.T5,Q,k),3):(l=T.T5.decrypt(Q,k),v.Ym(2));v.S!=2&&(l=v.T);T.z_("oprd_c");return v.return(l)})}; ld5=function(T){return T.V("html5_onesie_host_probing")||T.Kv?sd:!1}; Jf=function(T){if(!T.playerResponse)return!1;if(T.Xr)return!0;var Q=T.videoData.V("html5_onesie_audio_only_playback")&&AL(T.videoData);if(T.Ug&&T.PY){if(!T.Ug.has(T.jM))return!1;var k=T.Ug.get(T.jM),l;if(l=k){l=!1;for(var v=g.B(k.Wh.keys()),L=v.next();!L.done;L=v.next())if(L=k.Wh.get(L.value))for(var q=g.B(L.CO),Y=q.next();!Y.done;Y=q.next())Y.value.wv>0&&(L.uH?l=!0:Q=!0);l=!(Q&&l)}if(l)return!1}T.z_("ofr");T.O_.resolve(T.playerResponse);if(!T.bU){var U;(U=T.yT)==null||U.start();T.SN.start()}return T.Xr= !0}; vab=function(T){if(T.Ug&&!T.V("html5_onesie_media_capabilities")){T.z_("ogsf_s");var Q=m6t(T.yq.getVideoData(),function(l,v){T.T9(l,v)}),k=oa5(T.yq); Q.video=qw5(k,Q.video);T.z_("ogsf_c");if(Q.video.length)return Q;T.T9("ombspf","l."+k.S+";u."+k.T+";o."+k.L+";r."+k.reason)}}; j8b=function(T,Q){return T.V("html5_onesie_sync_request_encryption")||(Q==null?0:Q.Xt)||g.XT(T.Hd)&&T.V("html5_embed_onesie_use_sync_encryption")?!1:!!gG()}; e3=function(T){if(!T.LY)return{};var Q=T.LY.i6(),k;Q.d=(k=T.LY.i9)==null?void 0:k.xo();Q.shost=T.Mu;Q.ty="o";return Q}; LRb=function(T,Q){var k,l;(l=(T=(k=T.Ug)==null?void 0:k.get(Q))==null)||(Q=T.L?!1:T.L=!0,l=!Q);return!l}; qyC=function(T,Q,k,l,v,L,q,Y,U,R,Z){g.x.call(this);var f=this;this.yq=T;this.loader=Q;this.policy=k;this.audioTrack=l;this.videoTrack=v;this.C_=L;this.V4=q;this.K_=Y;this.L=U;this.timing=R;this.D=Z;this.T=[];this.N={};this.Jj=this.u9=!1;this.Y=this.sK=this.z9=this.p_=this.GG=0;this.j=null;this.hj={Yc:[],Mm:[]};this.xm={Yc:[],Mm:[]};this.C=null;this.B=[];this.dn={d3q:function(){return f.T}, GG9:function(){return f.N}, Phq:function(){f.T.length=0}, ynd:function(){return f.videoData.f_}, DAV:function(){return f.z9}, a0K:function(G){f.z9=G}, qpk:function(G){f.Y=G}, lF:function(G){f.C=G}, J2:function(G){f.B=G}}; this.videoData=this.yq.getVideoData();this.policy.A9&&(this.e6=new v6(this.loader,this.policy,this.V4),g.P(this,this.e6))}; YyJ=function(T,Q){Q=Q===void 0?!1:Q;if(gab(T)){T.policy.B&&T.loader.T9("sabrcrq",{create:1});var k=new mT(0,T.C_.j,T);T.policy.vk>0&&T.Y++;Q=M75(T,k,Q);T.T.push(Q);var l;(l=T.e6)==null||Pc6(l,T.C_.j)}}; ZtT=function(T,Q){var k=UYg(T);if(T.policy.ek){var l=T.hj;var v=T.xm}else l=EN(T,T.audioTrack),v=EN(T,T.videoTrack);var L=[].concat(g.ZH(l.Yc),g.ZH(v.Yc));y3(T)&&L.push.apply(L,g.ZH(T.B));var q=[].concat(g.ZH(l.Mm),g.ZH(v.Mm)),Y=T.loader.yZ();if(T.policy.R0&&!T.videoData.isLivePlayback){var U=T.videoData.lengthSeconds*1E3;k>=U&&T.loader.T9("invalidSabrCmt",{cmt:k,vd:U})}var R,Z;U=T.yq;var f=T.C_,G=T.S,m=T.videoData.f_,I=T.policy,z=T.loader.LN,w=$xg(T.loader)*1E3,r=(R=T.i9)==null?void 0:R.h1;R=(Z= T.i9)==null?void 0:Z.NU;var A;Z=Number((A=T.L.Y)==null?void 0:A.info.itag)||0;var D;A=Number((D=T.L.N)==null?void 0:D.info.itag)||0;Q={yq:U,C_:f,Yc:L,Mm:q,kL:k,nextRequestPolicy:G,Z$:m,qL:I,vp:z,AX:w,h1:r,NU:R,GG:T.GG,isPrefetch:Q||T.loader.isSuspended,CC:Z,e3:A,cw:Y,BS:T.yq.jG()};k=T.loader.WH();L=DE(k);k&&(Q.ip=L);if(k=T.yq.Pm())Q.Ft=k*1E3;var K;k=T.L;L=k.z9;if(((K=k.qL)==null?0:az(K))&&!L)for(K=g.B(k.L),q=K.next();!q.done;q=K.next())if(q.value.MY){L=!0;break}K=az(k.qL)&&!L?[]:TjI(k,k.L);Q.vY=K; K=T.L;az(K.qL)&&!K.qO?K=[]:(k=q8I(K),k.length===0&&(k=K.B),K=TjI(K,k));Q.Dn=K;Q.fV=y3(T)?[T.C]:void 0;T.policy.BK&&(Q.eE=Rzt(T.loader,T.audioTrack),Q.sS=Rzt(T.loader,T.videoTrack));if(T.policy.S){K=T.loader.getCurrentTime();l=iY(T,l.Yc,K);v=iY(T,v.Yc,K);v=Math.min(l,v);y3(T)&&(l=iY(T,T.B,K),T.yq.J3()&&l0&&T.T[0].kZ()&&(Q.E5=T.T[0].qw());return Q}; UYg=function(T){var Q,k=T.policy.N&&((Q=T.loader)==null?void 0:Q.g$());Q=T.loader.getCurrentTime()||0;Q=fd5(T,Q);var l=T.loader.Px()||0;Q+=l;l=Vv(T.videoData)||g.iO(T.videoData);var v=0;k?(l&&(v=Number.MAX_SAFE_INTEGER),T.videoData.hj&&(v=Math.ceil(T.videoData.xm*1E3))):v=Math.ceil(Q*1E3);return Math.min(Number.MAX_SAFE_INTEGER,v)}; y3=function(T){return T.policy.F_&&!!T.C}; fd5=function(T,Q){if(T.loader.isSeeking())return Q;var k=T.yq.T_();if(!k)return Q;k=k.Q8();if(k.length===0||y4(k,Q))return Q;if(!Q3(T.videoTrack,Q)&&!Q3(T.audioTrack,Q))return T.loader.T9("sundrn",{b:0,lt:Q}),Q;for(var l=Q,v=Infinity,L=0;LQ)){var q=Q-k.end(L);q=20)?(T.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),Q):l}; iY=function(T,Q,k){T=T.loader.Px()||0;return V3(Q,(k+T)*1E3)/1E3+k}; gab=function(T){if(T.policy.vk>0){var Q=Math.floor((0,g.XY)()/1E4);if(Q===T.sK){if(T.Y>=T.policy.vk){if(T.Y===T.policy.vk){var k={reason:"toomanyrequests"};k.limit=T.Y;T.loader.handleError("player.exception",k);T.Y+=1}return!1}}else T.sK=Q,T.Y=0}if(T.loader.isSuspended&&T.loader.xL)return!1;if(T.qO&&(0,g.XY)()0&&(!T.policy.D||T.T.length!==1||!T.T[0].kZ()))return!1;var l;if(!(Q=(l=T.C_.j)==null||!Fo(l,T.policy,T.N,T.loader.jX())||i4(T.audioTrack)&&i4(T.videoTrack))){if(l= T.policy.S){l=!1;if(T.D.S===2)l=!0;else if(T.D.S===3){UYg(T);T.loader.Px();var v=Oh(T.audioTrack,T.loader.isSeeking()).Yc;Q=Oh(T.videoTrack,T.loader.isSeeking()).Yc;var L=T.loader.getCurrentTime()||0;v=iY(T,v,L);Q=iY(T,Q,L);Q=Math.min(v,Q);L=T.D;Q>=L.N?(L.T9("sdai",{haltrq:Q,est:L.N}),Q=!0):Q=!1;Q&&(l=!0)}l&&T.policy.B&&T.loader.T9("sabrcrq",{waitad:1})}Q=l}if(Q)return!1;T.policy.ek&&(T.hj=EN(T,T.audioTrack),T.xm=EN(T,T.videoTrack));if(!T.S)return T.policy.B&&T.loader.T9("sabrcrq",{nopolicy:1}),!0; if(T.yq.Pm())return T.policy.B&&T.loader.T9("sabrcrq",{utc:1}),!0;if(T.L.C)return T.policy.B&&T.loader.T9("sabrcrq",{audio:1}),!0;if(!T.S.targetAudioReadaheadMs||!T.S.targetVideoReadaheadMs)return T.policy.B&&T.loader.T9("sabrcrq",{noreadahead:1}),!0;if(T.policy.N&&T.loader.g$())return T.policy.B&&T.loader.T9("sabrcrq",{seekToHead:1}),!0;l=Math.min(vJ(T.loader,T.audioTrack)*1E3,T.S.targetAudioReadaheadMs);Q=Math.min(vJ(T.loader,T.videoTrack)*1E3,T.S.targetVideoReadaheadMs);var q=Math.min(l,Q);L=er(T.audioTrack, !0)*1E3;v=er(T.videoTrack,!0)*1E3;var Y=T.yq.getCurrentTime()*1E3;if(T.policy.ek){var U=V3(T.hj.Yc,Y);var R=V3(T.xm.Yc,Y)}else U=L,R=v;var Z=UQ||l>=0&&v.CB>l+1)break;k=Math.max(k,v.startTimeMs+v.durationMs);l=Math.max(l,v.iH)}return Math.max(0,k-Q)}; M75=function(T,Q,k){var l={V4:T.V4,uu:function(U,R){T.yq.eN(U,R)}, Zr:T.policy.Z6,By:T.policy.L};T.V4.S.B&&(l.Ds=(T.videoTrack.T.info.qY||0)+(T.audioTrack.T.info.qY||0));T.policy.XU&&(l.bH=T.audioTrack.T.index.Z3(),l.Zr=!1);var v=Y8b(Q,T.policy,T.N)?2:1;v!==T.z9&&(T.z9=v,mYt(T));k=ZtT(T,k);if(T.policy.D&&T.policy.L&&k.Z$){for(var L=v="",q=g.B(k.Z$),Y=q.next();!Y.done;Y=q.next())Y=Y.value,T.videoData.sabrContextUpdates.has(Y)||T.policy.D&&k.E5&&k.E5.type===Y?v+="_"+Y:L+="_"+Y;T.loader.T9("sabrbldrqs",{ctxts:v,misctxts:L})}!Q.setData(k,T.policy,T.N)&&T.policy.D&&T.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);l=new eJ(T.policy,Q,T.C_,T.N,T,l,T.loader.aN());FM(T.timing);T.policy.B&&T.loader.T9("sabrcrq",{rn:l.IB(),probe:Q.u6()});return l}; QE=function(T,Q){if(Q.wd()||T.wd())T.policy.Ct||(T.policy.N?Tj(T.loader):T.loader.Jh());else{if(T.policy.L&&Q.isComplete()&&Q instanceof eJ){var k=T.loader,l=k.T9,v,L,q=Object.assign(Q.LY.i6(),{rst:Q.state,strm:Q.xhr.gQ(),d:(v=Q.LY.i9)==null?void 0:v.xo(),cncl:Q.xhr&&Q.jV.Y?1:0,rqb:Q.g7,cwt:Q.vN,swt:(L=Q.Dm)==null?void 0:L.Dk});v=Object.assign(ZnJ(Q.info),q);l.call(k,"rqs",v)}if(Q.isComplete()&&Q.u6()&&Q instanceof eJ)T.policy.Fk?Q.lj()?(Q.dispose(),T.T.length===0?T.loader.Jh():(T=T.T[0],T instanceof eJ&&T.Jn()&&T.Q$())):Q.u5()&&T.loader.handleError(Q.SZ(),Q.HA()):(Q.dispose(),T.loader.Jh());else{if(Q.s8())Q instanceof eJ&&QXX(T.timing,Q),mYt(T),Idb(T);else if(Q.u5())k=T.yq.Pm(),Q instanceof eJ&&R0J(Q.info)&&k&&T.loader.Fi(k),Q instanceof FJ?T.T.pop():(k=1,Q.canRetry()&&ySg(T.loader)&&(hzC(T,Q),k=0),T.loader.handleError(Q.SZ(),Q.HA(),k));else{if(T.loader.isSuspended&&!Q.isComplete())return;Idb(T)}Q.wd()||Q instanceof FJ||(Q.isComplete()?k=Oc5(Q,T.policy,T.N):(k=t4u(Q,T.policy,T.N),k===1&&(T.u9= !0)),k!==0&&(l=new mT(1,Q.info.Xs),l.YE=k===2,M75(T,l)));T.policy.DP&&!Q.isComplete()?Emy(T.loader):T.loader.Jh()}}}; Idb=function(T){for(;T.T.length&&T.T[0].qj(T.Dg());){var Q=T.T.shift();s86(T,Q)}T.T.length&&s86(T,T.T[0])}; s86=function(T,Q){Q instanceof eJ&&(T.Bd=Q);var k=new Set(Q.eX(T.Dg()));k=g.B(k);for(var l=k.next();!l.done;l=k.next()){var v=l.value;if(!(l=!(Q instanceof FJ))){l=T.L;var L=l.C_.Cc,q=GD(l.videoInfos,L);L=LqI(l,v,L);var Y=q.includes(v);!l.qL.WP||L||Y||l.loader.T9("sabrcpf",{fid:""+v,vfids:""+q.join("."),said:l.j||""});l=L||q.includes(v)}if(l&&(l=Q.gr(v,T.Dg()),q=T.policy.F_&&Wj(l[0].T.info.mimeType),Q.HH(v,T.Dg())))for(v=Q.TW(v,T.Dg()),v=g.B(v),L=v.next();!L.done;L=v.next())if(L=L.value,T.policy.L&& Q instanceof FJ&&T.loader.T9("omblss",{s:L.info.Bh()}),q)Y=T.timing,Y.z9||(Y.z9=(0,g.XY)(),g.JB("fcb_r",Y.z9,Y.T)),Y=T,Y.videoData.Cc()&&Y.C&&Ew(Y.C)===Ew(g.Hj(L.info.T.info,Y.C_.Cc))&&Y.yq.publish("sabrCaptionsDataLoaded",L,Y.J2.bind(Y));else{Y=L.info.T.info.uH();var U=L.info.T;if(Y){var R=void 0;var Z=T.L,f=(R=Q.yK(T.Dg()))==null?void 0:R.token;Z.C&&U!==Z.N?R=!0:(Z.C=!1,U!==Z.N&&(Z.N=U,Z.nJ(U,Z.audioTrack,f)),R=!1);if(R)continue}else R=void 0,V4J(T.L,U,(R=Q.yK(T.Dg()))==null?void 0:R.token);R=Y? T.audioTrack:T.videoTrack;Q instanceof FJ&&(R.C=!1,Q instanceof FJ&&(Y?eJg(T.timing):JwJ(T.timing)));try{tA(R,l,L)}catch(G){L=GX(G),T.loader.handleError(L.errorCode,L.details,L.severity),R.FJ(),T.Bz(!1,"pushSlice"),Tj(T.loader)}}}}; hzC=function(T,Q){T.policy.D?T.T.splice(T.T.indexOf(Q)).forEach(function(k){k.dispose()}):(T.T.pop(),Q==null||Q.dispose())}; Sy6=function(T,Q,k){for(var l=[],v=0;v0)for(var Q=g.B(T.videoData.sabrContextUpdates.keys()),k=Q.next();!k.done;k=Q.next()){k=k.value;var l=void 0;((l=T.videoData.sabrContextUpdates.get(k))==null?0:l.sendByDefault)&&T.videoData.f_.add(k)}if(T.policy.D&&T.T.length)for(Q=g.B(T.T),k=Q.next();!k.done;k=Q.next())(k=k.value.qw())&&k.type&&k.sendByDefault&&T.videoData.f_.add(k.type)}; COC=function(T){T.policy.Z8&&(T.i9=void 0,T.GG=0)}; B4f=function(T,Q){if(Q.u5()||Q.wd()){var k=T.loader,l=k.T9,v=Q.state;T=T.Dg();var L,q;if((Q=(L=Q.Ug)==null?void 0:L.get(T))==null)Q=void 0;else{L=0;T=Q.eX();for(var Y=0;Y=Q.mediaTime&&g.J(T.yq.getPlayerState(),8)?(Q.resolve([Q.mediaTime,Q.id]),T.T.delete(Q.id)):(Q.delay.dispose(),Q.delay=new g.FA(function(){dYu(T,Q)},(Q.mediaTime-k)*1E3/T.yq.getPlaybackRate()),Q.delay.start())}; rLt=function(T,Q,k,l){var v=this;this.L=T;this.cpn=Q;this.yq=k;this.T=l;this.S=new Map;this.N=new Map;this.C=this.j=NaN;this.B=!1;this.Bl="";this.isSeeking=!1;this.D=0;this.Y=new Xvu(k);this.lH=k.lH;this.yq.subscribe("SEEK_TO",function(){v.yf()}); this.yq.subscribe("SEEK_COMPLETE",function(){btX(v)})}; DY6=function(T,Q){if(!T.isSeeking&&T.D!==Q&&!isNaN(T.j)){T.D=Q;var k=T.B?T.C:T.L.ll(Q);(k!==T.C||T.B)&&cLJ(T,k,Q)}}; cLJ=function(T,Q,k){var l=T.S.get(Q),v=T.L.getStartTime(Q),L=T.L.getDuration(Q);T.B=!1;T.C=Q;var q=v,Y;((Y=l==null?void 0:l.T)!=null?Y:[T.cpn]).forEach(function(U,R){var Z;R=(Z=l==null?void 0:l.S[R])!=null?Z:L;k>=q&&kv?KRI(T,L,T.S.get(L)):L===v&&KRI(T,L,T.S.get(L),l-T.L.getStartTime(L))})}; adH=function(T,Q,k,l){Q!==T.Bl&&(T.yq.T9("ssevt",{tag:T.T===0?"sstd-cr":T.T===1?"sstd-tm":T.T===2?"sstd-poll":T.T===3?"sstd-poll100":"sstd-unknown",ad:T.cpn!==Q,cpn:Q,st:k.toFixed(3),late:Math.round(T.isSeeking?0:(l-k)*1E3)}),T.Bl=Q)}; xY5=function(T){var Q=g.B(T.split("."));T=Q.next().value;Q=Q.next().value;return[Number(T),Q]}; naC=function(T,Q,k,l){k=Q+"."+k;T.N.has(Q)?T.N.get(Q).push(k):T.N.set(Q,[k]);T.T===1&&N4g(T.Y,l,k).then(function(v){var L=g.B(v);v=L.next().value;L=L.next().value;L=g.B(xY5(L));L.next();L=L.next().value;adH(T,L,v,wvg(T.Y))}); T.T===0&&(T.lH.IU("transitiondetector",k),Q=(l+T.yq.Px())*1E3,T.lH.fY([new g.$d(Q,Q+5E3,{id:k,namespace:"transitiondetector",priority:9})]))}; PO5=function(T,Q,k,l,v){this.loader=T;this.policy=Q;this.schedule=k;this.xR=l;this.D=v;this.z9=NaN;this.S=this.C=this.Y=null;this.T=this.N=this.B=this.startTimeSecs=NaN;this.L=!1;this.j=NaN}; Htf=function(T,Q,k,l,v,L){return Q.cg&&Q.vn&&k===3?new PO5(T,Q,l,v,L):null}; t7X=function(T,Q){if(T.policy.Pp){var k=Q.info.qY,l=e4(T.schedule);Q=Q.index.Z3();k=Math.max(1,l/k);T.j=Math.round(Math.max(((k-1)*Q+T.policy.t6)/k,Q-T.policy.eO)*1E3)}}; WRy=function(T,Q){var k=Date.now()/1E3,l=k-T.startTimeSecs,v=k-T.B,L=v>=T.policy.bx,q=!1;if(L){var Y=0;!isNaN(Q)&&Q>T.N&&(Y=Q-T.N,T.N=Q);Y/v=T.policy.eO&&!T.L;if(!L&&!k&&OtJ(T,Q))return NaN;k&&(T.L=!0);a:{l=q;k=(0,g.XY)()/1E3-(T.xR.hx()||0)-T.C.T-T.policy.t6;L=T.S.startTime;k=L+k;if(l){if(isNaN(Q)){j2(T,NaN,"n",Q);L=NaN;break a}l=Q-T.policy.wJ;l0&&(Y.headers=U);L&&(Y.onFinish=L);return Object.keys(Y).length>1? Y:null}; Qay=function(T,Q,k,l,v,L,q,Y){Lh()&&k.token&&(T=lC(T,{ctt:k.token,cttype:k.Bv,mdx_environment:k.mdxEnvironment}));l.V("net_pings_low_priority")&&(Q||(Q={}),Q.priority="low");L||Y&&l.V("nwl_skip_retry")?(Q==null?Q={}:ity(T,l.V("html5_assert_cpn_with_regex")),q?$r().sendAndWrite(T,Q):$r().sendThenWrite(T,Q,Y)):Q?(ity(T,l.V("html5_assert_cpn_with_regex")),L_J(T,Q)):g.uM(T,v)}; jaH=function(T){for(var Q=[],k=0;k0&&k>0&&!T.S&&T.L<1E7)try{T.Y=T.N({sampleInterval:Q,maxBufferSize:k});var l;(l=T.Y)==null||l.addEventListener("samplebufferfull",function(){return g.a(function(v){if(v.S==1)return g.c(v,T.stop(),2);oD5(T);g.BT(v)})})}catch(v){T.S=l_T(v.message)}}; vDH=function(T,Q){var k,l;return!!((k=window.h5vcc)==null?0:(l=k.settings)==null?0:l.set(T,Q))}; qUy=function(){var T,Q,k,l=(T=window.h5vcc)==null?void 0:(Q=T.settings)==null?void 0:(k=Q.getPersistentSettingAsString)==null?void 0:k.call(Q,"cpu_usage_tracker_intervals");if(l!=null){var v;T=(v=JSON.parse(l))!=null?v:[];v=T.filter(function(R){return R.type==="total"}).map(function(R){return R.seconds}); Q=g.B(LKf);for(k=Q.next();!k.done;k=Q.next())k=k.value,v.indexOf(k)===-1&&T.push({type:"total",seconds:k});var L,q;(L=window.h5vcc)==null||(q=L.settings)==null||q.set("cpu_usage_tracker_intervals_enabled",1);var Y,U;(Y=window.h5vcc)==null||(U=Y.settings)==null||U.set("cpu_usage_tracker_intervals",JSON.stringify(T))}}; gDy=function(){var T=window.H5vccPlatformService,Q="";if(T&&T.has("dev.cobalt.coat.clientloginfo")&&(T=T.open("dev.cobalt.coat.clientloginfo",function(){}))){var k=T.send(new ArrayBuffer(0)); k&&(Q=String.fromCharCode.apply(String,g.ZH(new Uint8Array(k))));T.close()}return Q}; g.vV=function(T){g.x.call(this);var Q=this;this.provider=T;this.logger=new g.Cy("qoe");this.T=new Map;this.sequenceNumber=1;this.qO=NaN;this.yU="N";this.j=this.kT=this.L4=this.z9=this.S=0;this.OG=this.Bd=this.B=this.Jj="";this.Fk=this.sK=NaN;this.DP=0;this.t6=-1;this.Z8=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.QR=this.isEmbargoed=this.i9=this.isOffline=this.isBuffering=!1;this.gt=[];this.D=null;this.Tg=this.Y=this.zg=this.C=!1;this.L=-1;this.u9=!1;this.Hn=new g.FA(this.ZZ,750,this);this.Tc= this.adCpn=this.xm=this.contentCpn="";this.adFormat=void 0;this.vn=0;this.f_=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.Ah=new Set(["gd","pw","gp"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.h3=!1;this.Ig=NaN;this.e6=0;this.d5=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Gg=!1;this.F_=new Set;this.dn={Vf:function(l){Q.Vf(l)}, qkd:function(){return Q.N}, Zs:function(){return Q.contentCpn}, K_m:function(){return Q.xm}, reportStats:function(){Q.reportStats()}, AV9:function(){return Q.T.get("cat")||[]}, Hp:function(l){return Q.T.get(l)||[]}, sY6:function(){return Q.T}, Jne:function(){return 0}, NrB:function(){return{adCpn:Q.adCpn,Tc:Q.Tc,adFormat:Q.adFormat}}}; this.hj=this.provider.Hd.V("html5_qoe_relaxed_reporting");var k=g.jj(this.provider.Hd.experiments,"html5_qoe_proto_mock_length");k&&!lg.length&&(lg=jaH(k));g.P(this,this.Hn);try{navigator.getBattery().then(function(l){Q.D=l})}catch(l){}g.of(this,0,"vps",["N"]); T.Hd.J3()&&(this.e6=(0,g.XY)(),this.Ig=g.fh(function(){var l=(0,g.XY)(),v=l-Q.e6;v>500&&Q.T9("vmlock",{diff:v.toFixed()});Q.e6=l},250)); this.provider.videoData.w8&&(this.remoteControlMode=M$T[this.provider.videoData.w8]||0);this.provider.videoData.SO&&(k=ZBC(this.provider.videoData.SO),k==null?0:k.length)&&(this.remoteConnectedDevices=k);T.Hd.J3()&&(this.K_=new ezt,g.P(this,this.K_));k=g.jj(T.Hd.experiments,"html5_js_self_profiler_sample_interval_ms");T=g.jj(T.Hd.experiments,"html5_js_self_profiler_max_samples");k>0&&T>0&&(this.p_=new kO(k,T),g.P(this,this.p_))}; L6=function(T,Q,k){var l=T.T.get(Q);l?l.push(k):T.T.set(Q,[k])}; g.of=function(T,Q,k,l){L6(T,k,Q.toFixed(3)+":"+l.join(":"))}; YUC=function(T,Q){var k=T.adCpn||T.provider.videoData.clientPlaybackNonce,l=T.provider.getCurrentTime(k);g.of(T,Q,"cmt",[l.toFixed(3)]);k=l=T.provider.Jb(k);if((!T.N||T.provider.Hd.V("html5_shorts_gapless_no_gllat")&&NY(T.provider.videoData)?0:k*1E3>T.N.lO+100)&&T.N){var v=T.N;k=v.isAd;l=l*1E3-v.lO;T.lA=Q*1E3-v.VDH-l-v.oPq;v=(0,g.XY)()-l;Q=T.lA;l=T.provider.videoData;var L=l.isAd();if(k||L){L=(k?"ad":"video")+"_to_"+(L?"ad":"video");var q={};l.B&&(q.cttAuthInfo={token:l.B,videoId:l.videoId});q.startTime= v-Q;At(L,q);g.NL({targetVideoId:l.videoId,targetCpn:l.clientPlaybackNonce},L);dS("pbs",v,L)}else v=T.provider.yq.eZ(),v.B!==l.clientPlaybackNonce?(v.N=l.clientPlaybackNonce,v.S=Q):l.aD()||g.rB(new g.Wy("CSI timing logged before gllat",{cpn:l.clientPlaybackNonce}));T.T9("gllat",{l:T.lA.toFixed(),prev_ad:+k});delete T.N}}; gT=function(T,Q){Q=Q===void 0?NaN:Q;Q=Q>=0?Q:g.qR(T.provider);var k=T.provider.yq.rH(),l=k.Pz-(T.sK||0);l>0&&g.of(T,Q,"bwm",[l,(k.oS-(T.Fk||0)).toFixed(3)]);isNaN(T.sK)&&k.Pz&&T.isOffline&&T.Vf(!1);T.sK=k.Pz;T.Fk=k.oS;isNaN(k.bandwidthEstimate)||g.of(T,Q,"bwe",[k.bandwidthEstimate.toFixed(0)]);T.provider.Hd.J3()&&Object.keys(k.T).length!==0&&T.T9("bwinfo",k.T);if(T.provider.Hd.J3()||T.provider.Hd.V("html5_log_meminfo"))l=$YC(),Object.values(l).some(function(L){return L!==void 0})&&T.T9("meminfo", l); if(T.provider.Hd.J3()){var v;(l=(v=T.K_)==null?void 0:FRJ(v))&&Object.values(l).some(function(L){return L!=null})&&T.T9("cpuinfo",l)}T.p_&&T.T9("jsprof",T.p_.flush()); T.D&&g.of(T,Q,"bat",[T.D.level,T.D.charging?"1":"0"]);v=T.provider.yq.getVisibilityState();T.t6!==v&&(g.of(T,Q,"vis",[v]),T.t6=v);YUC(T,Q);(v=UfT(T.provider))&&v!==T.DP&&(g.of(T,Q,"conn",[v]),T.DP=v);Rqb(T,Q,k)}; Rqb=function(T,Q,k){if(!isNaN(k.Qh)){var l=k.Qh;k.S96E3&&(new g.FA(T.reportStats,0,T)).start()}}; GhJ=function(T){T.provider.videoData.A9&&MR(T,"prefetch");T.provider.videoData.Gg&&T.T9("reload",{r:T.provider.videoData.reloadReason,ct:T.provider.videoData.Gg});T.provider.videoData.zg&&MR(T,"monitor");T.provider.videoData.isLivePlayback&&MR(T,"live");sd&&MR(T,"streaming");T.provider.videoData.w8&&T.T9("ctrl",{mode:T.provider.videoData.w8},!0);if(T.provider.videoData.SO){var Q=T.provider.videoData.SO.replace(/,/g,"_");T.T9("ytp",{type:Q},!0)}T.provider.videoData.gF&&(Q=T.provider.videoData.gF.replace(/,/g, "."),T.T9("ytrexp",{ids:Q},!0));Q=T.provider.videoData;var k=T.provider.Hd.V("enable_white_noise")||T.provider.Hd.V("enable_webgl_noop"),l=g.tL(Q)||g.Th(Q)||g.Q5(Q)||g.j$(Q);(k||l)&&(k=(0,g.YO)())&&T.T.set("gpu",[k]);Z_(T.provider.videoData)&&g.of(T,g.qR(T.provider),"dt",["1"]);T.provider.V("html5_record_is_offline_on_playback_attempt_start")&&Q.cotn&&!Z_(Q)&&T.Vf(!0);T.provider.Hd.J3()&&(Q=(0,g.XY)()-T.provider.Hd.Wk,T.T9("playerage",{secs:Math.pow(1.6,Math.round(Math.log(Q/1E3)/Math.log(1.6))).toFixed()})); T.Y=!0;T.qO=g.fh(function(){T.reportStats()},1E4)}; I_t=function(T,Q,k){var l=g.qR(T.provider);mfX(T,l,Q,0,k);gT(T,l);f_y(T)}; mfX=function(T,Q,k,l,v){var L=T.provider.Hd.T.cbrver;T.provider.Hd.T.cbr==="Chrome"&&/^96[.]/.test(L)&&k==="net.badstatus"&&/rc\.500/.test(v)&&hqg(T,3);T.provider.Hd.V("html5_use_ump")&&/b248180278/.test(v)&&hqg(T,4);L=T.provider.getCurrentTime(T.adCpn||T.provider.videoData.clientPlaybackNonce);l=l===1?"fatal":"";k=[k,l,L.toFixed(3)];l&&(v+=";a6s."+yi());v&&k.push(sa5(v));g.of(T,Q,"error",k);T.Y=!0}; SUI=function(T,Q){var k=g.qR(T.provider);if(!T.provider.Hd.experiments.Wd("html5_refactor_sabr_video_format_selection_logging")||Q.T.id!==T.Jj){var l=[Q.T.id,Q.S,T.Jj,Q.reason];Q.token&&l.push(Q.token);g.of(T,k,"vfs",l);T.Jj=Q.T.id;l=T.provider.yq.getPlayerSize();if(l.width>0&&l.height>0){l=[Math.round(l.width),Math.round(l.height)];var v=g.SF();v>1&&l.push(v);g.of(T,k,"view",l)}T.zg||(T.provider.Hd.J3()&&MR(T,"rqs2"),T.provider.videoData.T&&nP(T.provider.videoData.T)&&T.T.set("preload",["1"]));T.zg= !0;T.Y=!0}Q.reason==="m"&&++T.vn===100&&hqg(T,2);g.of(T,k,"vps",[T.yU]);T.hj||T.reportStats(k)}; CtC=function(T){T.L>=0||(T.provider.Hd.pG||T.provider.yq.getVisibilityState()!==3?T.L=g.qR(T.provider):T.u9=!0)}; Bs5=function(T,Q,k){if(T.provider.Hd.experiments.Wd("html5_refactor_sabr_audio_format_selection_logging")){Q=k.T;var l=[Q.audio&&Q.video?Q.Xb?Q.Xb:"":Q.id];Q.MY&&Q.MY.id&&l.push(Q.MY.id);Q=l.join(";");Q!==T.B&&(l=[Q,T.B,k.reason],k.token&&l.push(k.token),g.of(T,g.qR(T.provider),"afs",l),T.B=Q)}else k.T.id!==T.B&&(l=[k.T.id,T.B,k.reason],k.token&&l.push(k.token),g.of(T,Q,"afs",l),T.B=k.T.id)}; MR=function(T,Q){L6(T,"cat",Q)}; zqt=function(T,Q,k,l,v){var L=g.qR(T.provider);Q!==1&&Q!==3&&Q!==5||g.of(T,L,"vps",[T.yU]);L6(T,"xvt","t."+L.toFixed(3)+";m."+v.toFixed(3)+";g.2;tt."+Q+";np.0;c."+k+";d."+l)}; hqg=function(T,Q){T.Tg||(L6(T,"fcnz",""+Q),T.Tg=!0)}; sa5=function(T){/[^a-zA-Z0-9;.!_-]/.test(T)&&(T=T.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return T}; g.Rf=function(T,Q,k,l,v,L,q,Y,U,R){Y=Y===void 0?!1:Y;g.x.call(this);var Z=this;this.yq=T;this.schedule=Q;this.policy=k;this.C_=l;this.hj=U;this.F_=R;this.j6=null;this.sK=this.Jj=this.Bd=this.qO=0;this.Wf=this.xL=this.isSuspended=!1;this.f_="";this.Ah={};this.d5=NaN;this.h3=0;this.D=null;this.Ig=this.p_=!1;this.LN=0;this.zg=!1;this.e6=this.Tg=0;this.Fk=null;this.jO=function(){return Z.yq.jO()}; this.timing=new $6g(this.F_);this.j=new ec(this.schedule,this.policy);this.DP=new g.FA(this.Jh,0,this);this.OG=new g.FA(this.Jh,this.policy.DP,this);this.Ii=new g.FA(this.Jh,1E3,this);this.gt=new g.FA(this.Jh,void 0,this);this.K_=new g.FA(function(){Z.isSuspended||Z.Jh()},1E4,this); this.t6=new g.FA(this.Pfm,250,this);this.B=this.currentTime=NaN;this.Ad=new Kc(5);this.i9=this.timestampOffset=NaN;this.logger=new g.Cy("dash");this.Hn=Infinity;this.dn={getAudioTrack:function(){return Z.audioTrack}, l_d:function(){return Z.videoTrack}, getManifest:function(){return Z.C_}, RFH:function(){return Z.S}, Jh:function(){Z.Jh()}, Qv:function(){Z.qO=0;Z.Qv()}, Zad:function(G){return UF(Z,Z.videoTrack,Z.j6.S,G)}}; T=U&&U.eX();U&&(PxX(U,this.C_,this.policy),this.i9=Date.now());this.T=new YC(this,this.j,k,this.C_,v,T);k=sXt(this.T,L,q&&q.id);this.audioTrack=new Kf(this,this.policy,k.audio,this.timing);this.videoTrack=new Kf(this,this.policy,k.video,this.timing);this.videoTrack.Y.xm=this.audioTrack.va();this.u9={updateend:this.Q6,error:this.eHB};g.P(this,this.DP);g.P(this,this.OG);g.P(this,this.Ii);g.P(this,this.gt);g.P(this,this.K_);k=this.policy.XF&&this.policy.lS?!aF5(this.videoTrack.T.info):!1;this.Z8=aju({Jy:this.policy.C.Jy|| k,lS:this.policy.lS&&!k,g_:this.policy.g_});this.C=Htf(this,this.policy,this.Z8,this.schedule,this.Ad,function(G,m){return Xi5(Z,G,m)}); this.L=new Ex(this,this.C_,this.policy,this.videoTrack,this.audioTrack,Y);this.policy.K_&&this.policy.S&&(this.xm=new YEC(function(G,m){Z.T9(G,m)})); this.Eh=new Qm(this,this.C_,this.videoTrack,this.audioTrack,this.policy);Y=this.policy.kH?this.yq.getVideoData().vl:null;this.N=new L$(this,this.policy,this.videoTrack,this.audioTrack,this.Ah,this.L,this.timing,this.j,this.schedule,this.C_,this.T,this.C,k,Y);g.P(this,this.N);this.Y=new f$(this,this.policy,this.videoTrack,this.audioTrack,this.C_,v,AL(this.yq.getVideoData()),q==null?void 0:q.id);g.P(this,this.Y);leX(this.Y,L);this.S=new qyC(this.yq,this,this.policy,this.audioTrack,this.videoTrack,this.C_, this.schedule,this.T,this.Y,this.timing,this.L);g.P(this,this.S);this.z9=this.yq.nA.m9.J1;this.policy.N||wib(this);if(this.policy.uK){var f;this.QR=new rLt(this.videoTrack.T.index,(f=this.yq.getVideoData().clientPlaybackNonce)!=null?f:"",this.yq,this.policy.Tg);this.policy.Tg===3&&(this.Gg=new g.FA(this.TO,200,this),this.Gg.start(),g.P(this,this.Gg))}this.logger.debug("Created")}; wib=function(T){var Q,k;if((Q=T.z9)==null?0:(k=Q.AN)==null?0:k.itagDenylist){var l;T.pJ((l=T.z9)==null?void 0:l.AN.itagDenylist)}var v;if((v=T.z9)==null?0:v.playbackStartPolicy){var L,q;ov(T.policy,(L=T.z9)==null?void 0:L.playbackStartPolicy,3,(q=T.z9)==null?void 0:q.IB())}if(T.policy.wV){Q=T.Dg();var Y;(k=Q?(Y=T.z9)==null?void 0:Y.CI.get(Q):void 0)&&T.S.CU(k)}if(!T.C_.D){var U;Y=(U=T.z9)==null?void 0:U.Di;(Y==null?0:Y.pP)&&(Y==null?0:Y.Sd)&&T.C_.Cc&&i7(T.C_,Y.pP,Y.Sd)}var R;((R=T.z9)==null?0:R.NZ)&& (U=T.z9.NZ.get(T.Dg()||""))&&T.C_&&U.formatId&&(T=T.C_.L.get(Ew(U.formatId)))&&(T.info.debugInfo=U.debugInfo)}; dfb=function(T,Q){var k=Ew(g.Hj(Q.T.info,T.C_.Cc)),l,v=((l=T.hj)==null?void 0:l.gr(k))||[];if(v.length===0)return T.T9("ombmsi",{}),!1;v=new gd(v);if(l=!T.policy.qO||isFinite(T.getCurrentTime())||T.yq.Pm()){a:{l=T.getCurrentTime();v=g.B(v.MO);for(var L=v.next();!L.done;L=v.next())if(L=L.value,L.type===3&&l>=L.N&&l<=L.B){l=!0;break a}l=!1}l=!l}if(l)return T.T9("ostmf",{ct:T.getCurrentTime(),a:Q.T.info.uH()}),!1;(T=T.hj)!=null&&(T.Wh.get(k).dI=!0);return!0}; Ns5=function(T){if(!T.C_.Cc)return!0;var Q=T.yq.getVideoData();if(T.yq.ME())return T.T9("ombpa",{}),!1;var k,l;if(!!((k=T.z9)==null?0:(l=k.Di)==null?0:l.nMK)!==T.C_.KY)return T.T9("ombplmm",{}),!1;k=Q.h3||Q.liveUtcStartSeconds||Q.gt;if(T.C_.KY&&k)return T.T9("ombplst",{}),!1;if(T.C_.D)return T.T9("ombab",{}),!1;k=Date.now();return Vb(T.C_)&&!isNaN(T.i9)&&k-T.i9>T.policy.No*1E3?(T.T9("ombttl",{}),!1):T.C_.sW&&T.C_.Y||!T.policy.BC&&T.C_.isPremiere||Hv(Q)!==0&&!T.policy.T||Q.V("html5_disable_onesie_media_for_mosaic")&& Ra(Q)||Q.lf()&&!Q.V("html5_enable_onesie_media_for_lifa")&&Q.isDaiEnabled()&&Q.enableServerStitchedDai||Q.V("html5_disable_onesie_media_for_lifa_eligible")&&UU(Q)?!1:!0}; AyT=function(T,Q){var k=Q.T,l=T.C_.Cc;if(Ns5(T))if(T.hj&&T.hj.Wh.has(Ew(g.Hj(k.info,l)))){if(l=Ew(g.Hj(k.info,l)),dfb(T,Q)){var v=new gd(T.hj.gr(l)),L=function(q){try{if(q.u5())T.handleError(q.SZ(),q.HA()),yX(Q,q),Y0(q.info)&&Yx(T.N,Q,k,!0),T.Jh();else if(UN(T.N,q)){var Y;(Y=T.L)==null||v0H(Y,q.info,T.D);T.Jh()}}catch(U){q=GX(U),T.handleError(q.errorCode,q.details,q.severity),T.FJ()}}; k.L=!0;Mt(v)&&(H7(Q,new jJ(T.policy,l,v,T.hj,L)),FM(T.timing))}}else T.T9("ombfmt",{})}; bX5=function(T,Q){Q=Q||T.videoTrack&&T.videoTrack.S&&T.videoTrack.S.startTime||T.getCurrentTime();var k=Rv,l=T.videoTrack,v=T.T;Q=v.nextVideo&&v.nextVideo.index.ll(Q)||0;v.xm!==Q&&(v.e6={},v.xm=Q,Uh(v,v.T));Q=!v.T.isLocked()&&v.D>-1&&(0,g.XY)()-v.DQ.T&&Q.reason==="b";l||v||k?(T.yq.Lt({reattachOnConstraint:l?"u":v?"drm":"perf",lo:Q.S,up:Q.T}),T.policy.QE||(T.Y.T.S=!1)):(T.policy.QE&&(T.Y.T.S=!1),Tj(T))}}else if(!SEt(T.T,Q)&&T.videoTrack){T.logger.debug(function(){return"Setting constraint: r="+Q.reason+" u="+Q.T}); k=T.T.T;xfX(T,Bd5(T.T,Q));bX5(T);l=Q.isLocked()&&Q.reason==="m"&&T.T.qO;v=T.policy.VD&&Q.reason==="l"&&VX(T.videoTrack);k=k.T>Q.T&&Q.reason==="b";var L=T.T.u9&&!vM();l||v||k||L?T.yq.Lt({reattachOnConstraint:l?"u":v?"drm":L?"codec":"perf"}):Tj(T)}}; HXb=function(T,Q,k){if((!T.j6||gf(T.j6)&&!T.policy.VF)&&!T.Eh.isSeeking()&&(T.policy.T||VX(Q)&&Q.T.ZG()&&T.T.z9)){var l=T.getCurrentTime()+hxt(T.j,Q,k);T.logger.debug(function(){return"Clearing back to "+l.toFixed(3)}); zh5(Q,l)}}; xfX=function(T,Q){Q&&(T.logger.debug(function(){return"Logging new format: "+JW(Q.video.info)}),t$5(T.yq,new om(Q.video,Q.reason))); if(T.T.p_){var k=dtH(T.T,"a");T.yq.uq(new om(k.audio,k.reason))}}; Tj=function(T){g.Ez(T.DP)}; Emy=function(T){T.policy.DP&&T.policy.g_&&Math.min(Bxf(T.videoTrack),Bxf(T.audioTrack))*1E3>T.policy.tQ?g.Ez(T.OG):T.Jh()}; OXb=function(T,Q){var k=(0,g.XY)()-Q,l=er(T.audioTrack,!0)*1E3,v=er(T.videoTrack,!0)*1E3;T.logger.debug(function(){return"Appends paused for "+k}); if(T.policy.L&&(T.T9("apdpe",{dur:k.toFixed(),abuf:l.toFixed(),vbuf:v.toFixed()}),lY(T.policy))){var L=yS(T.j);T.T9("sdps",{ct:Q,ah:l.toFixed(),vh:v.toFixed(),mr:VS(T.j,T.Wf,L),bw:L.toFixed(),js:T.isSeeking(),re:+T.Wf,ps:(T.policy.mL||"").toString(),rn:(T.policy.y3||"").toString()})}}; piT=function(T){if(bcX(T.videoTrack))return T.logger.debug("Pausing appends for server-selectable format"),"ssf";if(T.policy.Jj&&j3(T.videoTrack)&&j3(T.audioTrack))return"updateEnd";if(i4(T.audioTrack)||i4(T.videoTrack)&&T.videoTrack.T.info.yR!=="f")return"";if(T.Eh.isSeeking()){var Q=T.j;var k=T.videoTrack;var l=T.audioTrack;if(Q.policy.T){var v=Q.policy.iS;lY(Q.policy)&&(v=VS(Q,!1,yS(Q)));Q=v;k=er(l,!0)>=Q&&er(k,!0)>=Q}else k.L.length||l.L.length?(v=k.T.info.qY+l.T.info.qY,v=10*(1-yS(Q)/v),Q=Math.max(v, Q.policy.iS),k=er(l,!0)>=Q&&er(k,!0)>=Q):k=!0;if(!k)return"abr";k=T.videoTrack;if(k.L.length>0&&k.Y.S.length===1&&Vqu(k.Y).info.j360);l=lY(T.policy)&&T.policy.Jp;if(!T.Wf||!l&&k)return"";k=T.policy.Yh;lY(T.policy)&&(k=VS(T.j,T.Wf,yS(T.j)));k=wLf(T.videoTrack,T.getCurrentTime(),k)||wLf(T.audioTrack,T.getCurrentTime(), k);return lY(T.policy)?k?"mbnm":"":(T.videoTrack.L.length>0||T.audioTrack.L.length>0||q7(T.N,T.videoTrack,T.audioTrack)||q7(T.N,T.audioTrack,T.videoTrack))&&k?"nord":""}; WKt=function(T){if(T.C){var Q=T.C.Jh(T.audioTrack,V4(T.j6.S.LG()));Q&&T.yq.seekTo(Q,{M5:!0,I_:"pollSubsegmentReadahead",J_:!0})}}; iXX=function(T,Q,k){if(T.policy.Jj&&j3(Q))return!1;if(k.WI())return!0;if(!k.aq())return!1;var l=YR(Q);if(!l||l.info.type===6)return!1;var v;if(T.policy.Ws||((v=T.L)==null?0:Mqu(v,Q,l.info.NO)))T.sK=0;else return T.Eh.isSeeking()&&Tj(T),T.sK=T.sK||(0,g.XY)(),!1;if(!UF(T,Q,k,l.info))return!1;if(T.C_.S&&l.info.S===0){if(v=$f5(Q,k,l)){var L=P7(Q);T.T9("initchg",{it:l.info.T.info.id,sr:!!L&&L.T===l.info.T,ty:l.info.type,seg:l.info.NO})}L=g.x9(l.info.T.info);T.policy.YP&&L&&!v&&vTT(l)}L=T.C&&!!T.C.Y&&Q.T.info.audio; v=T.C_.isManifestless||l.N;if(!(T.C_.S&&l.info.S!==0||v&&!L)&&JyJ(T,Q,k,l))return!0;if(L)return!1;L=vJ(T,Q);L=T.getCurrentTime()+L;if(l.info.N>L)return T.policy.T&&eqH(T,Q),T.policy.f5&&r_C(Q.Y,L,!1),!1;FKI(T,Q);var q;T.policy.pG&&k===((q=T.j6)==null?void 0:q.T)&&T.zg&&(k.h4()===0?(T.zg=!1,T.policy.pG=!1):T.Tg=k.h4());if(!EDC(T,k,l,Q))return!1;T.policy.Jj&&l.info.Dq()?(T.yq.G().J3()&&T.T9("eosl",{ls:l.info.Bh()}),l.isLocked=!0):(Q.Z0(l),w9C(T.T,l.info),T.logger.debug(function(){return"Appended "+ l.info.Bh()+", buffered: "+FL(k.LG())})); v&&yyy(T,l.info.T.vM);return!0}; eqH=function(T,Q){Q===T.videoTrack?T.Jj=T.Jj||(0,g.XY)():T.Bd=T.Bd||(0,g.XY)()}; FKI=function(T,Q){Q===T.videoTrack?T.Jj=0:T.Bd=0}; EDC=function(T,Q,k,l){var v=T.policy.Ig?(0,g.XY)():0,L=k.N&&k.info.T.T||void 0,q=k.S;k.N&&(q=V$C(T,k,q)||q);var Y=Mg(q);q=T.policy.Ig?(0,g.XY)():0;Q=Th5(T,Q,Y,k.info,L);(l=l.D)!=null&&(L=k.info,v=q-v,q=(0,g.XY)()-q,!l.S||BCH(l.S,L)&&l.S.NO===L.NO||l.flush(),l.Y+=v,l.L+=q,v=1,!l.S&&L.S&&(v=2),Im(l,v,Q),q=Math.ceil(L.S/1024),v===2&&l.T.add(q),l.T.add(Math.ceil((L.S+L.L)/1024)-q),l.S=L);T.e6=0;if(Q===0)return T.p_&&(T.logger.debug("Retry succeed, back to normal append logic."),T.p_=!1,T.Ig=!1),T.h3= 0,!0;if(Q===2||Q===5)return QRu(T,"checked",Q,k.info),!1;if(Q===1){if(!T.p_)return T.logger.debug("QuotaExceeded, retrying."),T.p_=!0,!1;if(!T.Ig)return T.Ig=!0,T.yq.seekTo(T.getCurrentTime(),{I_:"quotaExceeded",J_:!0}),!1;k.info.bK()?(v=T.policy,v.Bd=Math.floor(v.Bd*.8),v.hj=Math.floor(v.hj*.8)):(v=T.policy,v.zg=Math.floor(v.zg*.8),v.hj=Math.floor(v.hj*.8));T.policy.T?Lf(T.Y.T,k.info.T,!1):Zs(T.T,k.info.T)}T.yq.Lt({reattachOnAppend:Q});return!1}; V$C=function(T,Q,k){var l;if(l=T.policy.CR&&T.j6&&!T.j6.j&&!T.yq.NI())Q=Q.info.T.info,l=Q.Rd()&&cj(Q)&&Q.video&&Q.video.width<3840&&Q.video.width>Q.video.height;if(l&&(T.j6.j=!0,s_('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return k=yqH(k),T.policy.L&&T.T9("sp4k",{s:!!k}),k}; QRu=function(T,Q,k,l){var v="fmt.unplayable",L=1;k===5||k===3?(v="fmt.unparseable",T.policy.T?!l.T.info.video||qv(T.Y.T).size>0||Lf(T.Y.T,l.T,!1):!l.T.info.video||qv(T.T.N).size>0||Zs(T.T,l.T)):k===2&&(T.h3<15?(T.h3++,v="html5.invalidstate",L=0):v="fmt.unplayable");l=Ly(l);var q;l.mrs=(q=T.j6)==null?void 0:Zl(q);l.origin=Q;l.reason=k;l.trg="appenderr";T.handleError(v,l,L)}; Zc6=function(T,Q,k,l,v){var L=T.C_;var q=T.policy.T,Y=!1,U=-1,R;for(R in L.T){var Z=Wj(L.T[R].info.mimeType)||L.T[R].info.bK();if(l===Z)if(Z=L.T[R].index,Z.f7(Q.NO)){Y=Z;var f=Q,G=Y.Ix(f.NO);G&&G.startTime!==f.startTime?(Y.segments=[],Y.LK(f),Y=!0):Y=!1;Y?U=Q.NO:!Q.pending&&q&&(f=Z.getDuration(Q.NO),f!==Q.duration&&(L.publish("clienttemp","mfldurUpdate",{itag:L.T[R].info.itag,seg:Q.NO,od:f,nd:Q.duration},!1),Z.LK(Q),Y=!0))}else Z.LK(Q),Y=!0}U>=0&&(q={},L.publish("clienttemp","resetMflIndex",(q[l? "v":"a"]=U,q),!1));L=Y;uQg(T.Eh,Q,l,L);if(T.policy.K_&&T.policy.S&&(U=Q.Bn||null)){var m;q=(m=T.S)==null?void 0:zz5(m).requestNumber;var I;(I=T.xm)==null||Utu(I,U,q)}T.L.WC(Q,k,l,v);Q.NO===T.C_.sW&&L&&eq(T.C_)&&Q.startTime>eq(T.C_)&&(T.C_.xm=Q.startTime+(isNaN(T.timestampOffset)?0:T.timestampOffset),T.Eh.isSeeking()&&T.Eh.targetTime5)return T.e6= 0,T.yq.Lt({initSegStuck:1,as:l.info.Bh()}),!0}else T.e6=0,T.Fk=l;T.policy.Qd&&(k.abort(),(q=Q.D)!=null&&(Im(q,4),q.flush()));v=Th5(T,k,L,U,v);var R;(R=Q.D)==null||uG5(R,v,U);if(v!==0)return jRT(T,v,l),!0;l.info.bK()?ywX(T.timing):iou(T.timing);T.logger.debug(function(){return"Appended init for "+l.info.T.info.id}); yyy(T,l.info.T.vM);return k.Wc()}; $f5=function(T,Q,k){if(Q.A1()==null){T=P7(T);if(!(Q=!T||T.T!==k.info.T)){a:if(T=T.D,k=k.info.D,T.length!==k.length)k=!1;else{for(Q=0;Q1)return 6;q.e6=new g.FA(function(){var Y=YR(q);T.wd()||Y==null||!Y.isLocked?T.yq.G().J3()&&T.T9("eosl",{delayA:Y==null?void 0:Y.info.Bh()}):kQt(q)?(T.yq.G().J3()&&T.T9("eosl",{dunlock:Y==null?void 0:Y.info.Bh()}),lRI(T,q===T.audioTrack)):(T.T9("nue",{ls:Y.info.Bh()}),Y.info.z9+=1,T.j6&&T.Qv())},1E4,T); T.yq.G().J3()&&T.T9("eosl",{delayS:l.Bh()});q.e6.start()}T.policy.GT&&(l==null?void 0:l.T)instanceof RX&&l.Dq()&&T.T9("poseos",{itag:l.T.info.itag,seg:l.NO,lseg:l.T.index.a_(),es:l.T.index.L});Q.appendBuffer(k,l,v)}catch(Y){if(Y instanceof DOMException){if(Y.code===11)return 2;if(Y.code===12)return 5;if(Y.code===22||Y.message.indexOf("Not enough storage")===0)return Q=Object.assign({name:"QuotaExceededError",buffered:FL(Q.LG()).replace(/,/g,"_"),vheap:$C(T.videoTrack),aheap:$C(T.audioTrack),message:g.N_(Y.message, 3),track:T.j6?Q===T.j6.S?"v":"a":"u"},$YC()),T.handleError("player.exception",Q),1;g.bA(Y)}return 4}return T.j6.FG()?3:0}; Mm=function(T,Q,k){cyT(T,k.I_||"unknown");T.yq.seekTo(Q,k)}; yyy=function(T,Q){Q&&T.yq.tX(new wX(Q.key,Q.type))}; b4=function(T,Q){T.yq.tC(Q)}; vJ=function(T,Q){if(T.p_&&!T.Wf)return 3;if(T.isSuspended)return 1;var k;if((k=T.j6)==null?0:k.j6&&k.j6.streaming===!1)return 4;k=(Q.T.info.audio?T.policy.zg:T.policy.Bd)/(Q.qY*T.policy.Rx);if(T.policy.Zy>0&&T.j6&&gf(T.j6)&&(Q=Q.T.info.video?T.j6.S:T.j6.T)&&!Q.Wc()){Q=Q.LG();var l=E_(Q,T.getCurrentTime());l>=0&&(Q=T.getCurrentTime()-Q.start(l),k+=Math.max(0,Math.min(Q-T.policy.Zy,T.policy.Yb)))}T.policy.hj>0&&(k=Math.min(k,T.policy.hj));return k}; Rzt=function(T,Q){return(vJ(T,Q)+T.policy.Mo)*Q.qY}; vH5=function(T){T.f_&&!T.isSuspended&&FK(T.schedule)&&(oHT(T,T.f_),T.f_="")}; oHT=function(T,Q){JN(Q,"cms",function(k){T.policy.L&&T.T9("pathprobe",k)},function(k){T.yq.handleError(k)})}; LWb=function(T,Q){if(T.j6&&T.j6.Y&&!T.j6.FG()&&(Q.Qh=er(T.videoTrack),Q.S=er(T.audioTrack),T.policy.L)){var k=$C(T.videoTrack),l=$C(T.audioTrack),v=FL(T.j6.S.LG(),"_",5),L=FL(T.j6.T.LG(),"_",5);Object.assign(Q.T,{lvq:k,laq:l,lvb:v,lab:L})}Q.bandwidthEstimate=Fe(T.j);var q;(q=T.audioTrack.D)==null||q.flush();var Y;(Y=T.videoTrack.D)==null||Y.flush();T.logger.debug(function(){return RE(Q.T)})}; qQC=function(T,Q){T.D=Q;T.L&&(T.L.L=Q);T.D.WW(T.videoTrack.T.info.Rd());T.N.S=T.D;T.policy.S&&(T.S.j=T.D)}; McI=function(T,Q){if(T.j6&&T.j6.S){if(T.policy.Y3){var k=DxX(T.audioTrack);if(k&&k.uH()){var l=T.yq;if(l.GJ&&(l.GJ.T=k,k=l.Kc,k.qoe)){k=k.qoe;l=l.GJ;var v=g.qR(k.provider);Bs5(k,v,l)}}}T.policy.Q5&&(k=DxX(T.videoTrack))&&k.bK()&&(l=T.yq,l.Pr&&(l.Pr.T=k,k=l.Kc,k.qoe&&SUI(k.qoe,l.Pr)));Q-=isNaN(T.timestampOffset)?0:T.timestampOffset;T.getCurrentTime()!==Q&&T.resume();T.Eh.isSeeking()&&T.j6&&!T.j6.FG()&&(l=T.getCurrentTime()<=Q&&Q=Q&&Xi5(T,l.startTime,!1)}); return k&&k.startTimeT.getCurrentTime())return k.start/1E3;return Infinity}; GVJ=function(T){if(T.yq.getVideoData().isLivePlayback)return!1;var Q=T.yq.T_();if(!Q)return!1;Q=Q.getDuration();if(T.j6&&T.j6.T&&T.j6.S){var k=T.getCurrentTime(),l=T.j6.T.LG();T=T.j6.S.LG();l=l?ik(l,k):k;k=T?ik(T,k):k;k=Math.min(l,k);Q=isNaN(k)?!1:k>=Q-.01}else Q=!1;return Q}; jRT=function(T,Q,k){T.policy.FK&&NY(T.yq.getVideoData())?(T.yq.Mw()||QRu(T,"sepInit",Q,k.info),m7I(T.yq,"sie")):QRu(T,"sepInit",Q,k.info)}; ySg=function(T){return T.yq.jX()0){var l=k.T.shift();hN5(k,l.info)}k.T.length>0&&(l=k.T[0].time-(0,g.XY)(),k.S.start(Math.max(0,l)))}},0); g.P(this,this.S);Q.subscribe("widevine_set_need_key_info",this.Y,this)}; hN5=function(T,Q){a:{var k=Q.cryptoPeriodIndex;if(isNaN(k)&&T.L.size>0)k=!0;else{for(var l=g.B(T.L.values()),v=l.next();!v.done;v=l.next())if(v.value.cryptoPeriodIndex===k){k=!0;break a}k=!1}}T.publish("log_qoe",{wvagt:"reqnews",canskip:k});k||T.publish("rotated_need_key_info_ready",Q)}; svb=function(){var T={};var Q=T.url;var k=T.interval;T=T.retries;this.url=Q;this.interval=k;this.retries=T}; SNy=function(T,Q){this.statusCode=T;this.message=Q;this.S=this.heartbeatParams=this.errorMessage=null;this.T={};this.nextFairplayKeyId=null}; CY5=function(T,Q,k){k=k===void 0?"":k;g.x.call(this);this.message=T;this.requestNumber=Q;this.timer=k;this.onError=this.onSuccess=null;this.T=new g.al(5E3,2E4,.2)}; Bo5=function(T,Q,k){T.onSuccess=Q;T.onError=k}; X6u=function(T,Q,k,l){var v={timeout:3E4,onSuccess:function(L){if(!T.wd()){dS("drm_net_r",void 0,T.timer);var q=L.status==="LICENSE_STATUS_OK"?0:9999,Y=null;if(L.license)try{Y=Am(L.license)}catch(I){g.bA(I)}if(q!==0||Y){Y=new SNy(q,Y);q!==0&&L.reason&&(Y.errorMessage=L.reason);if(L.authorizedFormats){q={};for(var U=[],R={},Z=g.B(L.authorizedFormats),f=Z.next();!f.done;f=Z.next())if(f=f.value,f.trackType&&f.keyId){var G=zN5[f.trackType];if(G){G==="HD"&&L.isHd720&&(G="HD720");f.isHdr&&(G+="HDR");q[G]|| (U.push(G),q[G]=!0);var m=null;try{m=Am(f.keyId)}catch(I){g.bA(I)}m&&(R[g.dJ(m,4)]=G)}}Y.S=U;Y.T=R}L.nextFairplayKeyId&&(Y.nextFairplayKeyId=L.nextFairplayKeyId);L.sabrLicenseConstraint&&(Y.sabrLicenseConstraint=Am(L.sabrLicenseConstraint));L=Y}else L=null;if(L)T.onSuccess(L,T.requestNumber);else T.onError(T,"drm.net","t.p;p.i")}}, onError:function(L){if(!T.wd())if(L&&L.error)L=L.error,T.onError(T,"drm.net.badstatus","t.r;p.i;c."+L.code+";s."+L.status,L.code);else T.onError(T,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){T.onError(T,"drm.net","rt.req."+T.requestNumber)}}; l&&(v.eq="Bearer "+l);g.Fh(k,"player/get_drm_license",Q,v)}; w65=function(T,Q,k,l){g.ox.call(this);this.videoData=T;this.Hd=Q;this.j=k;this.sessionId=l;this.N={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.z9=this.qO=!1;this.L=null;this.hj=[];this.Y=[];this.authorizedFormats=[];this.C=!1;this.T={};this.status="";this.B=NaN;this.S=T.N;this.cryptoPeriodIndex=k.cryptoPeriodIndex;T={};Object.assign(T,this.Hd.T);T.cpn=this.videoData.clientPlaybackNonce;this.videoData.i9&&(T.vvt=this.videoData.i9,this.videoData.mdxEnvironment&&(T.mdx_environment= this.videoData.mdxEnvironment));this.Hd.hj&&(T.authuser=this.Hd.hj);this.Hd.pageId&&(T.pageid=this.Hd.pageId);isNaN(this.cryptoPeriodIndex)||(T.cpi=this.cryptoPeriodIndex.toString());var v=(v=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.KJ()))?v[1]:"";v==="ATV"&&(T.cdt=v);this.N=T;this.N.session_id=l;this.D=!0;this.S.flavor==="widevine"&&(this.N.hdr="1");this.S.flavor==="playready"&&(Q=Number(S4(Q.experiments,"playready_first_play_expiration")),!isNaN(Q)&&Q>=0&&(this.N.mfpe=""+Q),this.D=!1);Q="";g.Ud(this.S)? Ym(this.S)?(l=k.S)&&(Q="https://www.youtube.com/api/drm/fps?ek="+Bz5(l)):(Q=k.initData.subarray(4),Q=new Uint16Array(Q.buffer,Q.byteOffset,Q.byteLength/2),Q=String.fromCharCode.apply(null,Q).replace("skd://","https://")):Q=this.S.S;this.baseUrl=Q;this.fairplayKeyId=X6(this.baseUrl,"ek")||"";if(Q=X6(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(Q);this.hj=k.Rd?[g.dJ(k.initData,4)]:k.L;If(this,{sessioninit:k.cryptoPeriodIndex});this.status="in"}; b$I=function(T,Q){If(T,{createkeysession:1});T.status="gr";dS("drm_gk_s",void 0,T.videoData.z9);T.url=d7y(T);try{T.L=Q.createSession(T.j,function(k){If(T,{m:k})})}catch(k){Q="t.g"; k instanceof DOMException&&(Q+=";c."+k.code);T.publish("licenseerror","drm.unavailable",1,Q,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}T.L&&(NoI(T.L,function(k,l){AfX(T,k,l)},function(k,l,v){if(!T.wd()){l=void 0; var L=1;g.Ud(T.S)&&g.q0(T.Hd)&&T.Hd.V("html5_enable_safari_fairplay")&&v===1212433232&&(l="ERROR_HDCP",L=T.Hd.V("html5_safari_fairplay_ignore_hdcp")?0:L);T.error("drm.keyerror",L,k,l)}},function(){T.wd()||(If(T,{onkyadd:1}),T.z9||(T.publish("sessionready"),T.z9=!0))},function(k){T.e9(k)}),g.P(T,T.L))}; d7y=function(T){var Q=T.baseUrl;CA5(Q)||T.error("drm.net",2,"t.x");if(!X6(Q,"fexp")){var k=["23898307","23914062","23916106","23883098"].filter(function(v){return T.Hd.experiments.experiments[v]}); k.length>0&&(T.N.fexp=k.join())}k=g.B(Object.keys(T.N));for(var l=k.next();!l.done;l=k.next())l=l.value,Q=JZ6(Q,l,T.N[l]);return Q}; AfX=function(T,Q,k){if(!T.wd())if(Q){If(T,{onkmtyp:k});T.status="km";switch(k){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":rfy(T,Q);return;default:T.publish("ctmp","message_type",{t:k,l:Q.byteLength})}T.qO||(dS("drm_gk_f",void 0,T.videoData.z9),T.qO=!0,T.publish("newsession",T));if(qx(T.S)&&(Q=cfI(Q),!Q))return;Q=new CY5(Q,++T.requestNumber,T.videoData.z9);Bo5(Q,function(l){D7J(T,l)},function(l,v,L){if(!T.wd()){var q=0; l.T.S>=3&&(q=1,v="drm.net.retryexhausted");If(T,{onlcsrqerr:v,info:L});T.error(v,q,L);T.shouldRetry(fu(q),l)&&aIT(T,l)}}); g.P(T,Q);uJ6(T,Q)}else T.error("drm.unavailable",1,"km.empty")}; rfy=function(T,Q){If(T,{sdpvrq:1});T.B=Date.now();if(T.S.flavor!=="widevine")T.error("drm.provision",1,"e.flavor;f."+T.S.flavor+";l."+Q.byteLength);else{var k={cpn:T.videoData.clientPlaybackNonce};Object.assign(k,T.Hd.T);k=g.sD("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",k);Q={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, Q)}),responseType:"arraybuffer"};g.N2(k,Q,3,500).then(pQ(function(l){l=l.xhr;if(!T.wd()){l=new Uint8Array(l.response);var v=String.fromCharCode.apply(null,l);try{var L=JSON.parse(v)}catch(q){}L&&L.signedResponse?(T.publish("ctmp","drminfo",{provisioning:1}),L=(Date.now()-T.B)/1E3,T.B=NaN,T.publish("ctmp","provs",{et:L.toFixed(3)}),T.L&&T.L.update(l)):(L=L&&L.error&&L.error.message,l="e.parse",L&&(l+=";m."+L),T.error("drm.provision",1,l))}}),pQ(function(l){T.wd()||T.error("drm.provision",1,"e."+l.errorCode+ ";c."+(l.xhr&&l.xhr.status))}))}}; h2=function(T){var Q;if(Q=T.D&&T.L!=null)T=T.L,Q=!(!T.T||!T.T.keyStatuses);return Q}; uJ6=function(T,Q){T.status="km";dS("drm_net_s",void 0,T.videoData.z9);var k=new g.ez(T.Hd.Lp),l={context:g.Yr(k.config_||g.MU())};l.drmSystem=nxJ[T.S.flavor];l.videoId=T.videoData.videoId;l.cpn=T.videoData.clientPlaybackNonce;l.sessionId=T.sessionId;l.licenseRequest=g.dJ(Q.message);l.drmParams=T.videoData.drmParams;isNaN(T.cryptoPeriodIndex)||(l.isKeyRotated=!0,l.cryptoPeriodIndex=T.cryptoPeriodIndex);var v,L,q=!!((v=T.videoData.S)==null?0:(L=v.video)==null?0:L.isHdr());l.drmVideoFeature=q?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(l.context&&l.context.client){if(v=T.Hd.T)l.context.client.deviceMake=v.cbrand,l.context.client.deviceModel=v.cmodel,l.context.client.browserName=v.cbr,l.context.client.browserVersion=v.cbrver,l.context.client.osName=v.cos,l.context.client.osVersion=v.cosver;l.context.user=l.context.user||{};l.context.request=l.context.request||{};T.videoData.i9&&(l.context.user.credentialTransferTokens=[{token:T.videoData.i9,scope:"VIDEO"}]);l.context.request.mdxEnvironment=T.videoData.mdxEnvironment|| l.context.request.mdxEnvironment;T.videoData.Z8&&(l.context.user.kidsParent={oauthToken:T.videoData.Z8});g.Ud(T.S)&&(l.fairplayKeyId=g.dJ(zWH(T.fairplayKeyId)));g.rj(T.Hd,g.YD(T.videoData)).then(function(Y){X6u(Q,l,k,Y);T.status="rs"})}else T.error("drm.net",2,"t.r;ic.0")}; D7J=function(T,Q){if(!T.wd())if(If(T,{onlcsrsp:1}),T.status="rr",Q.statusCode!==0)T.error("drm.auth",1,"t.f;c."+Q.statusCode,Q.errorMessage||void 0);else{dS("drm_kr_s",void 0,T.videoData.z9);if(Q.heartbeatParams&&Q.heartbeatParams.url&&T.videoData.V("outertube_streaming_data_always_use_staging_license_service")){var k=T.S.S.match(/(.*)youtube.com/g);k&&(Q.heartbeatParams.url=k[0]+Q.heartbeatParams.url)}Q.heartbeatParams&&T.publish("newlicense",Q.heartbeatParams);Q.S&&(T.Y=Q.S,T.videoData.TB||T.publish("newlicense", new svb),T.videoData.TB=!0,T.C=$4(T.Y,function(l){return l.includes("HDR")})); Q.T&&(T.Hd.V("html5_enable_vp9_fairplay")&&Ym(T.S)?(k=g.dJ(zWH(T.fairplayKeyId),4),T.T[k]={type:Q.T[k],status:"unknown"}):T.T=Q2(Q.T,function(l){return{type:l,status:"unknown"}})); Mx(T.S)&&(Q.message=Jx5(g.dJ(Q.message)));T.L&&(If(T,{updtks:1}),T.status="ku",T.L.update(Q.message).then(function(){dS("drm_kr_f",void 0,T.videoData.z9);h2(T)||(If(T,{ksApiUnsup:1}),T.publish("keystatuseschange",T))},function(l){l="msuf.req."+T.requestNumber+";msg."+g.N_(l.message,3); T.error("drm.keyerror",1,l)})); g.Ud(T.S)&&T.publish("fairplay_next_need_key_info",T.baseUrl,Q.nextFairplayKeyId);T.Hd.V("html5_enable_vp9_fairplay")&&Ym(T.S)&&T.publish("qualitychange",KTJ(T.Y));Q.sabrLicenseConstraint&&T.publish("sabrlicenseconstraint",Q.sabrLicenseConstraint)}}; aIT=function(T,Q){var k=Q.T.getValue();k=new g.FA(function(){uJ6(T,Q)},k); g.P(T,k);k.start();g.ur(Q.T);If(T,{rtyrq:1})}; x75=function(T,Q){for(var k=[],l=g.B(Object.keys(T.T)),v=l.next();!v.done;v=l.next())v=v.value,k.push(v+"_"+T.T[v].type+"_"+T.T[v].status);return k.join(Q)}; PYf=function(T){var Q={};Q[T.status]=h2(T)?x75(T,"."):T.Y.join(".");return Q}; H$g=function(T,Q,k){var l={};l.isHdr=Q.includes("HDR");switch(Q.replace("HDR","").replace("720","")){case "AUDIO":l.trackType=1;break;case "SD":l.trackType=2;break;case "HD":l.trackType=3;break;case "UHD1":l.trackType=4;break;case "UHD2":l.trackType=5;break;default:l.trackType=0}!l.trackType||k[Q]||h2(T)&&!sF(T,Q)||(T.authorizedFormats.push(l),k[Q]=!0)}; sF=function(T,Q){for(var k in T.T)if(T.T[k].status==="usable"&&T.T[k].type===Q)return!0;return!1}; t3I=function(T,Q){for(var k in T.T)if(T.T[k].type===Q)return T.T[k].status}; If=function(T,Q){var k=k===void 0?!1:k;RE(Q);(k||T.Hd.J3())&&T.publish("ctmp","drmlog",Q)}; O$J=function(T){var Q=T[0];T[0]=T[3];T[3]=Q;Q=T[1];T[1]=T[2];T[2]=Q;Q=T[4];T[4]=T[5];T[5]=Q;Q=T[6];T[6]=T[7];T[7]=Q}; KTJ=function(T){return g.CW(T,"UHD2")||g.CW(T,"UHD2HDR")?"highres":g.CW(T,"UHD1")||g.CW(T,"UHD1HDR")?"hd2160":g.CW(T,"HD")||g.CW(T,"HDHDR")?"hd1080":g.CW(T,"HD720")||g.CW(T,"HD720HDR")?"hd720":"large"}; cfI=function(T){for(var Q="",k=0;k'.charCodeAt(l);T=T.L.createSession("video/mp4",Q,k);return new S2(null,null,null,null,T)}; yf5=function(T,Q){var k=T.B[Q.sessionId];!k&&T.Y&&(k=T.Y,T.Y=null,k.sessionId=Q.sessionId,T.B[Q.sessionId]=k);return k}; eN5=function(T,Q){var k=T.subarray(4);k=new Uint16Array(k.buffer,k.byteOffset,k.byteLength/2);k=String.fromCharCode.apply(null,k).match(/ek=([0-9a-f]+)/)[1];for(var l="",v=0;v19.2999?(T=k.Ps,k=k.Gt,k>=T&&(k=T* .75),Q=(T-k)*.5,k=new Gj(Q,T,T-Q-k,this)):k=null;break a;case "widevine":k=new m7(Q,this,T);break a;default:k=null}if(this.N=k)g.P(this,this.N),this.N.subscribe("rotated_need_key_info_ready",this.Xe,this),this.N.subscribe("log_qoe",this.b8,this);ZE(this.Hd.experiments);this.b8({cks:this.T.getInfo()})}; V3C=function(T){var Q=Jf5(T.Y);Q?Q.then(pQ(function(){QfH(T)}),pQ(function(k){if(!T.wd()){g.bA(k); var l="t.a";k instanceof DOMException&&(l+=";n."+k.name+";m."+k.message);T.publish("licenseerror","drm.unavailable",1,l,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(T.b8({mdkrdy:1}),T.D=!0); T.z9&&(Q=Jf5(T.z9))}; kju=function(T,Q,k){T.sK=!0;k=new wX(Q,k);T.Hd.V("html5_eme_loader_sync")&&(T.B.get(Q)||T.B.set(Q,k));jft(T,k)}; jft=function(T,Q){if(!T.wd()){T.b8({onInitData:1});if(T.Hd.V("html5_eme_loader_sync")&&T.videoData.L&&T.videoData.L.T){var k=T.C.get(Q.initData);Q=T.B.get(Q.initData);if(!k||!Q)return;Q=k;k=Q.initData;T.B.remove(k);T.C.remove(k)}T.b8({initd:Q.initData.length,ct:Q.contentType});if(T.T.flavor==="widevine")if(T.i9&&!T.videoData.isLivePlayback)zj(T);else{if(!(T.Hd.V("vp9_drm_live")&&T.videoData.isLivePlayback&&Q.Rd)){T.i9=!0;k=Q.cryptoPeriodIndex;var l=Q.T;$tu(Q);Q.Rd||(l&&Q.T!==l?T.publish("ctmp","cpsmm", {emsg:l,pssh:Q.T}):k&&Q.cryptoPeriodIndex!==k&&T.publish("ctmp","cpimm",{emsg:k,pssh:Q.cryptoPeriodIndex}));T.publish("widevine_set_need_key_info",Q)}}else T.Xe(Q)}}; QfH=function(T){if(!T.wd())if(T.Hd.V("html5_drm_set_server_cert")||Ym(T.T)){var Q=T.Y.setServerCertificate();Q?Q.then(pQ(function(k){T.Hd.J3()&&T.publish("ctmp","ssc",{success:k})}),pQ(function(k){T.publish("ctmp","ssce",{n:k.name, m:k.message})})).then(pQ(function(){lvt(T)})):lvt(T)}else lvt(T)}; lvt=function(T){T.wd()||(T.D=!0,T.b8({onmdkrdy:1}),zj(T))}; oOy=function(T){return T.T.flavor==="widevine"&&T.videoData.V("html5_drm_cpi_license_key")}; zj=function(T){if(T.sK&&T.D&&!T.xm){for(;T.L.length;){var Q=T.L[0],k=oOy(T)?JqT(Q):g.dJ(Q.initData);if(Ym(T.T)&&!Q.S)T.L.shift();else{if(T.S.get(k))if(T.T.flavor!=="fairplay"||Ym(T.T)){T.L.shift();continue}else T.S.delete(k);$tu(Q);break}}T.L.length&&T.createSession(T.L[0])}}; vOb=function(T){var Q,k;g.a(function(l){if(l.S==1){var v;if(v=g.ph()){var L;v=!((L=T.Y.S)==null||!L.getMetrics)}return v?g.c(l,T.Y.getMetrics(),2):l.return()}Q=l.T;if(!Q)return l.return();VP(Q)||(Q=g.GU(Q));k=/^[A-Za-z0-9_-]+={0,3}$/;k.test(Q)||(Q=g.N_(Q,void 0,!0));T.publish("ctmp","drm",{metrics:Q});g.BT(l)})}; L75=function(){var T=K_b();return!(!T||T==="visible")}; gOI=function(T){var Q=qFJ();Q&&document.addEventListener(Q,T,!1)}; M2X=function(T){var Q=qFJ();Q&&document.removeEventListener(Q,T,!1)}; qFJ=function(){if(document.visibilityState)var T="visibilitychange";else{if(!document[R1+"VisibilityState"])return"";T=R1+"visibilitychange"}return T}; YFf=function(T){g.x.call(this);var Q=this;this.yq=T;this.FC=0;this.B=this.S=this.N=!1;this.Y=0;this.FB=this.yq.G();this.videoData=this.yq.getVideoData();this.L=g.jj(this.FB.experiments,"html5_delayed_retry_count");this.T=new g.FA(function(){Q.yq.s$()},g.jj(this.FB.experiments,"html5_delayed_retry_delay_ms")); g.P(this,this.T)}; GjH=function(T,Q,k){var l=T.videoData.S,v=T.videoData.Y,L=T.FB.V("html5_disable_codec_fallback_for_drm")&&T.videoData.bl();NY(T.yq.getVideoData())&&T.FB.V("html5_gapless_fallback_on_qoe_restart")&&m7I(T.yq,"pe");if((Q==="progressive.net.retryexhausted"||Q==="fmt.unplayable"||Q==="fmt.decode")&&!T.yq.BG.N&&l&&l.itag==="22")return T.yq.BG.N=!0,T.RK("qoe.restart",{reason:"fmt.unplayable.22"}),T.yq.yV(),!0;var q=!1;if(T.videoData.isExternallyHostedPodcast){if(q=T.videoData.mKH)k.mimeType=q.type,T.T9("3pp", {url:q.url});k.ns="3pp";T.yq.NL(Q,1,"VIDEO_UNAVAILABLE",RE((new g.ZK(Q,k,1)).details));return!0}var Y=T.FC+3E4<(0,g.XY)()||T.T.isActive();if(T.FB.V("html5_empty_src")&&T.videoData.isAd()&&Q==="fmt.unplayable"&&/Empty src/.test(""+k.msg))return k.origin="emptysrc",T.RK("auth",k),!0;Y||URT(T.yq.Gk())||(k.nonfg="paused",Y=!0,T.yq.pauseVideo());(Q==="fmt.decode"||Q==="fmt.unplayable")&&(v==null?0:nu(v)||Ku(v))&&(vJI(T.FB.N,v.yR),k.acfallexp=v.yR,q=Y=!0);!Y&&T.L>0&&(T.T.start(),Y=!0,k.delayed="1",--T.L); v=T.yq.loader;Y||!((l==null?0:uk(l))||(l==null?0:cj(l)))||L||(vJI(T.FB.N,l.yR),q=Y=!0,k.cfallexp=l.yR);if(!Y)return R2t(T,k);L=!1;T.N?T.FC=(0,g.XY)():L=T.N=!0;Y=T.videoData;if(Y.u9){Y=Y.u9.T1();var U=Date.now()/1E3+1800;Y=Y6048E5&&sfb(T,"signature");return!1}; sfb=function(T,Q){try{Q={detail:"pr."+Q},g.s8(T.FB)&&T.FB.V("html5_reload_by_kabuki_app")?T.yq.NL("qoe.restart",1,void 0,RE(Q),"7"):(T.RK("qoe.restart",Q),window.location.reload())}catch(k){}}; Cg5=function(T,Q){var k=T.FB.N;k.C=!1;k.S=!0;T.RK("qoe.restart",{e:Q===void 0?"fmt.noneavailable":Q,detail:"hdr"});T.yq.s$(!0)}; BT5=function(T,Q,k,l,v,L){this.videoData=T;this.T=Q;this.reason=k;this.S=l;this.token=v;this.videoId=L}; XO=function(T,Q,k){this.Hd=T;this.GQ=Q;this.yq=k;this.j=this.B=this.T=this.Y=this.C=this.S=0;this.N=!1;this.D=g.jj(this.Hd.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.L=new Map}; z2u=function(T,Q,k){!T.Hd.V("html5_tv_ignore_capable_constraint")&&g.G4(T.Hd)&&(k=k.compose(T.KP(Q)));return k}; XVH=function(T){if(T.yq.Gk().isInline())return GV;var Q;T.V("html5_exponential_memory_for_sticky")?Q=Ed(T.Hd.nG,"sticky-lifetime")<.5?"auto":rt[mk()]:Q=rt[mk()];return g.NQ("auto",Q,!1,"s")}; dRC=function(T,Q){var k,l=wVT(T,(k=Q.T)==null?void 0:k.videoInfos);k=T.yq.getPlaybackRate();return k>1&&l?(T=jNC(T.Hd.N,Q.T.videoInfos,k),new dt(0,T,!0,"o")):new dt(0,0,!1,"o")}; wVT=function(T,Q){return Q&&g.G4(T.Hd)?Q.some(function(k){return k.video.fps>32}):!1}; NT5=function(T,Q){if(T.V("html5_disable_ustreamer_constraint_for_sabr")&&cv(Q.videoData))return GV;var k=T.yq.Py();T.V("html5_use_video_quality_cap_for_ustreamer_constraint")&&k&&k.Od>0&&bd(Q.videoData.CH)&&(T=k.Od,Q.videoData.CH=new dt(0,T,!1,"u"));return Q.videoData.CH}; A26=function(T,Q){var k;a:if((k=Q.T)&&k.videoInfos.length){for(var l=g.B(k.videoInfos),v=l.next();!v.done;v=l.next()){v=v.value;var L=void 0;if((L=v.S)==null?0:L.smooth){k=v.video.qualityOrdinal;break a}}k=k.videoInfos[0].video.qualityOrdinal}else k=0;h1y()&&!g.G4(T.Hd)&&cj(Q.T.videoInfos[0])&&(k=Math.min(k,g.wC.large));l=g.jj(T.Hd.experiments,"html5_chipset_soft_cap");l>0&&(k=Math.min(k,l));if(l=g.jj(T.Hd.experiments,"html5_max_vertical_resolution")){v=4320;for(L=0;Ll&&(v=Math.min(v,q.video.qualityOrdinal))}if(v<4320){for(q=L=0;q32){v=!0;break a}}v=!1}v&&(k=Math.min(k,l));(l=g.jj(T.Hd.experiments,"html5_live_quality_cap"))&&Q.videoData.isLivePlayback&&(k=Math.min(k,l));k=b6T(T,Q,k);T=g.jj(T.Hd.experiments,"html5_byterate_soft_cap");return new dt(0,k===4320?0:k,!1,"d",T)}; c2f=function(T){var Q,k,l,v;return g.a(function(L){switch(L.S){case 1:return T.T.T&&typeof((Q=navigator.mediaCapabilities)==null?void 0:Q.decodingInfo)==="function"?g.c(L,Promise.resolve(),2):L.return(Promise.resolve());case 2:k=g.B(T.T.videoInfos),l=k.next();case 3:if(l.done){L.Ym(0);break}v=l.value;return g.c(L,KMt(v),4);case 4:l=k.next(),L.Ym(3)}})}; avT=function(T,Q){if(!Q.videoData.S||T.V("html5_disable_performance_downgrade"))return!1;Date.now()-T.C>6E4&&(T.S=0);T.S++;T.C=Date.now();if(T.S!==4)return!1;DRT(T,Q.videoData.S);return!0}; nOu=function(T,Q,k,l){if(!Q||!k||!Q.videoData.S)return!1;var v=g.jj(T.Hd.experiments,"html5_df_downgrade_thresh"),L=T.V("html5_log_media_perf_info");if(!((0,g.XY)()-T.Y<5E3?0:L||v>0))return!1;var q=((0,g.XY)()-T.Y)/1E3;T.Y=(0,g.XY)();k=k.getVideoPlaybackQuality();if(!k)return!1;var Y=k.droppedVideoFrames-T.B,U=k.totalVideoFrames-T.j;T.B=k.droppedVideoFrames;T.j=k.totalVideoFrames;var R=k.displayCompositedVideoFrames===0?0:k.displayCompositedVideoFrames||-1;L&&T.Hd.J3()&&T.yq.T9("ddf",{dr:k.droppedVideoFrames, de:k.totalVideoFrames,comp:R});if(l)return T.T=0,!1;if((U-Y)/q>T.D||!v||g.G4(T.Hd))return!1;T.T=(U>60?Y/U:0)>v?T.T+1:0;if(T.T!==3)return!1;DRT(T,Q.videoData.S);T.yq.T9("dfd",Object.assign({dr:k.droppedVideoFrames,de:k.totalVideoFrames},uOb()));return!0}; DRT=function(T,Q){var k=Q.yR,l=Q.video.fps,v=Q.video.qualityOrdinal-1,L=T.L;Q=""+k+(l>49?"p60":l>32?"p48":"");k=km(k,l,L);v>0&&(k=Math.min(k,v));if(!wT.has(Q)&&sV().includes(Q)){var q=k;k=h_();+k[Q]>0&&(q=Math.min(+k[Q],q));k[Q]!==q&&(k[Q]=q,g.ri("yt-player-performance-cap",k,2592E3))}else if(wT.has(Q)||L==null){a:{q=q===void 0?!0:q;l=sV().slice();if(q){if(l.includes(Q))break a;l.push(Q)}else{if(!l.includes(Q))break a;l.splice(l.indexOf(Q),1)}g.ri("yt-player-performance-cap-active-set",l,2592E3)}j4.set(Q, k)}else wT.add(Q),L==null||L.set(Q,k);T.yq.B5()}; K7J=function(T,Q){if(!Q.T.T)return T.N?new dt(0,360,!1,"b"):GV;for(var k=!1,l=!1,v=g.B(Q.T.videoInfos),L=v.next();!L.done;L=v.next())uk(L.value)?k=!0:l=!0;k=k&&l;l=0;v=g.jj(T.Hd.experiments,"html5_performance_cap_floor");v=T.Hd.S?240:v;Q=g.B(Q.T.videoInfos);for(L=Q.next();!L.done;L=Q.next()){var q=L.value;if(!k||!uk(q))if(L=km(q.yR,q.video.fps,T.L),q=q.video.qualityOrdinal,Math.max(L,v)>=q){l=q;break}}return new dt(0,l,!1,"b")}; xRX=function(T,Q){var k=T.yq.Gk();return k.isInline()&&!Q.tQ?new dt(0,480,!1,"v"):cv(Q)?GV:k.isBackground()&&Bd()/1E3>60&&!g.G4(T.Hd)?new dt(0,360,!1,"v"):GV}; Pgy=function(T,Q,k){if(T.Hd.experiments.Wd("html5_disable_client_autonav_cap_for_onesie")&&Q.fetchType==="onesie"||g.G4(T.Hd)&&(mk(-1)>=1080||Q.osid))return GV;var l=g.jj(T.Hd.experiments,"html5_autonav_quality_cap"),v=g.jj(T.Hd.experiments,"html5_autonav_cap_idle_secs");return l&&Q.isAutonav&&Bd()/1E3>v?(k&&(l=b6T(T,k,l)),new dt(0,l,!1,"e")):GV}; b6T=function(T,Q,k){if(T.V("html5_optimality_defaults_chooses_next_higher")&&k)for(T=Q.T.videoInfos,Q=1;Q=0||(T.provider.yq.getVisibilityState()===3?T.N=!0:(T.T=g.qR(T.provider),T.delay.start()))}; O6y=function(T){if(!(T.S<0)){var Q=g.qR(T.provider),k=Q-T.Y;T.Y=Q;T.playerState.state===8?T.playTimeSecs+=k:T.playerState.isBuffering()&&!g.J(T.playerState,16)&&(T.rebufferTimeSecs+=k)}}; pVu=function(T){var Q;switch((Q=T.Hd.playerCanaryStage)==null?void 0:Q.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"}}; W7f=function(T){this.provider=T;this.C=!1;this.T=0;this.Y=-1;this.U_=NaN;this.L=0;this.segments=[];this.B=this.N=0;this.previouslyEnded=!1;this.D=this.provider.yq.getVolume();this.j=this.provider.yq.isMuted()?1:0;this.S=NR(this.provider)}; A2=function(T){T.S.startTime=T.L;T.S.endTime=T.T;var Q=!1;T.segments.length&&g.m9(T.segments).isEmpty()?(T.segments[T.segments.length-1].previouslyEnded&&(T.S.previouslyEnded=!0),T.segments[T.segments.length-1]=T.S,Q=!0):T.segments.length&&T.S.isEmpty()||(T.segments.push(T.S),Q=!0);Q?T.S.endTime===0&&(T.previouslyEnded=!1):T.S.previouslyEnded&&(T.previouslyEnded=!0);T.N+=T.T-T.L;T.S=NR(T.provider);T.S.previouslyEnded=T.previouslyEnded;T.previouslyEnded=!1;T.L=T.T}; J2t=function(T){$R5(T);T.B=g.fh(function(){T.update()},100); T.U_=g.qR(T.provider);T.S=NR(T.provider)}; $R5=function(T){g.m6(T.B);T.B=NaN}; e2y=function(T,Q,k){k-=T.U_;return Q===T.T&&k>.5}; F7J=function(T,Q,k,l){this.Hd=Q;this.OG=k;this.segments=[];this.experimentIds=[];this.u9=this.Ig=this.isFinal=this.delayThresholdMet=this.d5=this.t6=this.autoplay=this.autonav=!1;this.DP="yt";this.B=[];this.C=this.D=null;this.sendVisitorIdHeader=this.K_=!1;this.j=this.pageId="";this.N=k==="watchtime";this.L=k==="playback";this.xm=k==="atr";this.Tw=k==="engage";this.sendVisitorIdHeader=!1;this.uri=this.xm?"/api/stats/"+k:"//"+Q.VF+"/api/stats/"+k;l&&(this.Ig=l.fs,l.rtn&&(this.C=l.rtn),this.N?(this.playerState= l.state,l.rti>0&&(this.D=l.rti)):(this.Wk=l.mos,this.ek=l.volume,l.at&&(this.adType=l.at)),l.autonav&&(this.autonav=l.autonav),l.inview!=null&&(this.Z8=l.inview),l.size&&(this.Fk=l.size),l.playerwidth&&(this.nG=l.playerwidth),l.playerheight&&(this.iK=l.playerheight));this.Ah=g.Gs(Q.T);this.j=S4(Q.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.j==="all"||this.j==="once")this.Gg=g.Gs(Q.d5);this.uK=Q.DP;this.experimentIds=id5(Q.experiments);this.p_=Q.F_;this.DP=Q.z9;this.region=Q.region; this.userAge=Q.userAge;this.zg=Q.NV;this.gt=Bd();this.sendVisitorIdHeader=Q.sendVisitorIdHeader;this.i9=Q.V("vss_pings_using_networkless")||Q.V("kevlar_woffle");this.OW=Q.V("vss_final_ping_send_and_write");this.e6=Q.V("vss_use_send_and_write");this.pageId=Q.pageId;this.vk=Q.V("vss_playback_use_send_and_write");Q.livingRoomAppMode&&(this.livingRoomAppMode=Q.livingRoomAppMode);this.pG=Q.Y&&Q.V("embeds_append_synth_ch_headers");g.Qk(Q)&&(this.sK=Q.xm);g.gi(g.M0(Q))&&this.B.push(1);this.accessToken=g.YD(T); T.Rx[this.OG]?this.Y=T.Rx[this.OG]:T.Rx.playback&&(this.Y=T.Rx.playback);this.adFormat=T.adFormat;this.adQueryId=T.adQueryId;this.autoplay=yCg(T);this.L&&(this.t6=T.nU&&vi(T)==="adunit"?!0:!1);this.autonav=T.isAutonav||this.autonav;this.contentVideoId=qf(T);this.clientPlaybackNonce=T.clientPlaybackNonce;this.d5=T.hh;T.B&&(this.qO=T.B,this.h3=T.Yz);T.mdxEnvironment&&(this.mdxEnvironment=T.mdxEnvironment);this.T=T.Ah;this.QR=T.QR;T.S&&(this.F_=T.S.itag,T.Y&&T.Y.itag!==this.F_&&(this.Tg=T.Y.itag));T.T&& nP(T.T)&&(this.offlineDownloadUserChoice="1");this.eventLabel=vi(T);this.u9=T.vk?!1:T.ek;this.vn=T.GT;if(Q=JL(T))this.m0=Q;this.YP=T.nR;this.partnerId=T.partnerId;this.eventId=T.eventId;this.playlistId=T.Ur||T.playlistId;this.rZ=T.rZ;this.w8=T.w8;this.SO=T.SO;this.Ap=T.Ap;this.subscribed=T.subscribed;this.videoId=T.videoId;this.videoMetadata=T.videoMetadata;this.visitorData=T.visitorData;this.osid=T.osid;this.XF=T.XF;this.referrer=T.referrer;this.wV=T.H2||T.wV;this.f_=T.FZ;this.LH=T.LH;this.userGenderAge= T.userGenderAge;this.SP=T.SP;this.embedsRct=T.embedsRct;this.embedsRctn=T.embedsRctn;g.Qk(this.Hd)&&T.mutedAutoplay&&(T.mutedAutoplayDurationMode===2&&T.limitedPlaybackDurationInSeconds===0&&T.endSeconds===0?this.B.push(7):this.B.push(2));T.isEmbedsShortsMode(new g.Ji(this.nG,this.iK),!!this.playlistId)&&this.B.push(3);g.S$(T)&&this.B.push(4);this.Jj=T.i4;T.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=T.compositeLiveIngestionOffsetToken)}; EOg=function(T,Q){var k=T.sendVisitorIdHeader?T.visitorData:void 0;return g.rj(T.Hd,T.accessToken).then(function(l){return Ts5(T.uri,T.Hd,T.pageId,k,l,Q,T.pG)})}; V2y=function(T,Q){return function(){T.Hd.V("html5_simplify_pings")?(T.T=T.Bd,T.Hn=Q(),T.gt=0,T.send()):EOg(T).then(function(k){var l=y25(T);l.cmt=l.len;l.lact="0";var v=Q().toFixed(3);l.rt=Number(v).toString();l=g.sD(T.uri,l);T.Hd.V("vss_through_gel_double")&&i6g(l);T.i9?(k==null&&(k={}),T.e6?$r().sendAndWrite(l,k):$r().sendThenWrite(l,k)):k?g.zO(l,k):g.uM(l)})}}; y25=function(T){var Q={ns:T.DP,el:T.eventLabel,cpn:T.clientPlaybackNonce,ver:2,cmt:T.S(T.T),fmt:T.F_,fs:T.Ig?"1":"0",rt:T.S(T.Hn),adformat:T.adFormat,content_v:T.contentVideoId,euri:T.uK,lact:T.gt,live:T.m0,cl:(787819992).toString(),mos:T.Wk,state:T.playerState,volume:T.ek};T.subscribed&&(Q.subscribed="1");Object.assign(Q,T.Ah);T.j==="all"?Object.assign(Q,T.Gg):T.j==="once"&&T.L&&Object.assign(Q,T.Gg);T.autoplay&&(Q.autoplay="1");T.t6&&(Q.sautoplay="1");T.d5&&(Q.dni="1");!T.N&&T.sK&&(Q.epm=TWb[T.sK]); T.isFinal&&(Q["final"]="1");T.u9&&(Q.splay="1");T.QR&&(Q.delay=T.QR);T.p_&&(Q.hl=T.p_);T.region&&(Q.cr=T.region);T.userGenderAge&&(Q.uga=T.userGenderAge);T.userAge!==void 0&&T.zg&&(Q.uga=T.zg+T.userAge);T.Bd!==void 0&&(Q.len=T.S(T.Bd));!T.N&&T.experimentIds.length>0&&(Q.fexp=T.experimentIds.toString());T.C!==null&&(Q.rtn=T.S(T.C));T.wV&&(Q.feature=T.wV);T.w8&&(Q.ctrl=T.w8);T.SO&&(Q.ytr=T.SO);T.Tg&&(Q.afmt=T.Tg);T.offlineDownloadUserChoice&&(Q.ODUC=T.offlineDownloadUserChoice);T.z9&&(Q.lio=T.S(T.z9)); T.N?(Q.idpj=T.vn,Q.ldpj=T.YP,T.delayThresholdMet&&(Q.dtm="1"),T.D!=null&&(Q.rti=T.S(T.D)),T.SP&&(Q.ald=T.SP),T.compositeLiveIngestionOffsetToken&&(Q.clio=T.compositeLiveIngestionOffsetToken)):T.adType!==void 0&&(Q.at=T.adType);T.Fk&&(T.L||T.N)&&(Q.size=T.Fk);T.L&&T.B.length&&(Q.pbstyle=T.B.join(","));T.Z8!=null&&(T.L||T.N)&&(Q.inview=T.S(T.Z8));T.N&&(Q.volume=bg(T,g.IQ(T.segments,function(l){return l.volume})),Q.st=bg(T,g.IQ(T.segments,function(l){return l.startTime})),Q.et=bg(T,g.IQ(T.segments,function(l){return l.endTime})), $4(T.segments,function(l){return l.playbackRate!==1})&&(Q.rate=bg(T,g.IQ(T.segments,function(l){return l.playbackRate}))),$4(T.segments,function(l){return l.T!=="-"})&&(Q.als=g.IQ(T.segments,function(l){return l.T}).join(",")),$4(T.segments,function(l){return l.previouslyEnded})&&(Q.pe=g.IQ(T.segments,function(l){return""+ +l.previouslyEnded}).join(","))); Q.muted=bg(T,g.IQ(T.segments,function(l){return l.muted?1:0})); $4(T.segments,function(l){return l.visibilityState!==0})&&(Q.vis=bg(T,g.IQ(T.segments,function(l){return l.visibilityState}))); $4(T.segments,function(l){return l.connectionType!==0})&&(Q.conn=bg(T,g.IQ(T.segments,function(l){return l.connectionType}))); $4(T.segments,function(l){return l.S!==0})&&(Q.blo=bg(T,g.IQ(T.segments,function(l){return l.S}))); $4(T.segments,function(l){return!!l.L})&&(Q.blo=g.IQ(T.segments,function(l){return l.L}).join(",")); $4(T.segments,function(l){return!!l.compositeLiveStatusToken})&&(Q.cbs=g.IQ(T.segments,function(l){return l.compositeLiveStatusToken}).join(",")); $4(T.segments,function(l){return l.Y!=="-"})&&(Q.cc=g.IQ(T.segments,function(l){return l.Y}).join(",")); $4(T.segments,function(l){return l.clipId!=="-"})&&(Q.clipid=g.IQ(T.segments,function(l){return l.clipId}).join(",")); if($4(T.segments,function(l){return!!l.audioId})){var k="au"; T.L&&(k="au_d");Q[k]=g.IQ(T.segments,function(l){return l.audioId}).join(",")}Lh()&&T.qO&&(Q.ctt=T.qO,Q.cttype=T.h3,Q.mdx_environment=T.mdxEnvironment); T.Tw&&(Q.etype=T.hj!==void 0?T.hj:0);T.f_&&(Q.uoo=T.f_);T.livingRoomAppMode&&T.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(Q.clram=Q46[T.livingRoomAppMode]||T.livingRoomAppMode);T.Y?j4T(T,Q):(Q.docid=T.videoId,Q.referrer=T.referrer,Q.ei=T.eventId,Q.of=T.XF,Q.osid=T.osid,Q.vm=T.videoMetadata,T.adQueryId&&(Q.aqi=T.adQueryId),T.autonav&&(Q.autonav="1"),T.playlistId&&(Q.list=T.playlistId),T.Ap&&(Q.ssrt="1"),T.LH&&(Q.upt=T.LH));T.L&&(T.embedsRct&&(Q.rct=T.embedsRct),T.embedsRctn&&(Q.rctn= T.embedsRctn),T.compositeLiveIngestionOffsetToken&&(Q.clio=T.compositeLiveIngestionOffsetToken));T.Jj&&(Q.host_cpn=T.Jj);return Q}; j4T=function(T,Q){if(Q&&T.Y){var k=new Set(["q","feature","mos"]),l=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),v=new Set(["aqi","autonav","list","ssrt","upt"]);T.Y.ns==="3pp"&&(Q.ns="3pp");for(var L=g.B(Object.keys(T.Y)),q=L.next();!q.done;q=L.next())q=q.value,l.has(q)||k.has(q)||v.has(q)&&!T.Y[q]||(Q[q]=T.Y[q])}}; bg=function(T,Q){return g.IQ(Q,T.S).join(",")}; i6g=function(T){T.indexOf("watchtime")!==-1&&g.LM("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:T}})}; kkt=function(T,Q){T.attestationResponse&&EOg(T).then(function(k){k=k||{};k.method="POST";k.postParams={atr:T.attestationResponse};T.i9?T.e6?$r().sendAndWrite(Q,k):$r().sendThenWrite(Q,k):g.zO(Q,k)})}; rT=function(T){g.x.call(this);this.provider=T;this.B="paused";this.N=NaN;this.C=[10,10,10,40];this.D=this.j=0;this.qO=this.xm=this.hj=this.z9=this.L=!1;this.S=this.Y=NaN;this.logger=new g.Cy("vss");this.T=new W7f(T)}; qlg=function(T){if(!T.L){T.provider.videoData.tO===16623&&g.rB(Error("Playback for EmbedPage"));var Q=cV(T,"playback");T.C=lxC(T);J2t(T.T);Q.C=Dv(T);T.S>0&&(Q.T-=T.S);Q.send();if(T.provider.videoData.f5){Q=T.provider.Hd;var k=T.provider.videoData,l={html5:"1",video_id:k.videoId,cpn:k.clientPlaybackNonce,ei:k.eventId,ptk:k.f5,oid:k.zX,ptchn:k.y_,pltype:k.qx,content_v:qf(k)};k.K5&&Object.assign(l,{m:k.K5});Q=g.sD(Q.fz+"ptracking",l);okb(T,Q)}T.provider.videoData.QR||(vkt(T),L8b(T));T.L=!0;T=T.T;T.T= T.Jb();T.U_=g.qR(T.provider);!(T.L===0&&T.T<5)&&T.T-T.L>2&&(T.L=T.T);T.C=!0}}; lxC=function(T){var Q=T.provider.videoData.GT,k=T.provider.videoData.nR,l=[10+Q,10,10,40+k-Q,40],v,L=(v=T.provider.videoData.getPlayerResponse())==null?void 0:v.playbackTracking,q=L==null?void 0:L.videostatsScheduledFlushWalltimeSeconds;v=L==null?void 0:L.videostatsDefaultFlushIntervalSeconds;if(!(q&&q.length>0&&v))return T.logger.info("Missing valid scheduled pings config "+q+" "+v),l;Q=[q[0]+Q].concat(g.ZH(q.slice(1).map(function(Y,U){return Y-q[U]})),[v+k-Q, v]);return Q.some(function(Y){return Y<0})?(T.logger.T(347111855,"Neg vss scheduled pings "+q+" "+v),l):Q}; Dv=function(T,Q){Q=Q===void 0?NaN:Q;var k=g.qR(T.provider);Q=isNaN(Q)?k:Q;Q=Math.ceil(Q);var l=T.C[T.j];T.j+11E3;!(L.length>1)&&L[0].isEmpty()||Y||(q.C=Dv(T,v));q.send();T.D++}},(v-k)*1E3); return T.Y=v}; af=function(T){g.GO(T.N);T.N=NaN}; gku=function(T){T.T.update();T=T.T;T.segments.length&&T.T===T.L||A2(T);var Q=T.segments;T.segments=[];return Q}; cV=function(T,Q){var k=Ylt(T.provider);Object.assign(k,{state:T.B});Q=new F7J(T.provider.videoData,T.provider.Hd,Q,k);Q.T=T.provider.yq.Jb();k=T.provider.videoData.clientPlaybackNonce;Q.T=T.provider.yq.Km(k);T.provider.videoData.isLivePlayback||(Q.Bd=T.provider.yq.getDuration(k));T.provider.videoData.T&&(k=T.provider.videoData.T.xM(Q.T))&&(Q.z9=k-Q.T,T.provider.Hd.V("html5_disable_live_dvr_shrink_for_cdm_vss")&&r4(T.provider.videoData)&&(Q.T+=T.provider.yq.Px(),Q.z9-=T.provider.yq.Px()));Q.Hn=g.qR(T.provider); Q.segments=[NR(T.provider)];return Q}; M8t=function(T,Q){var k=cV(T,"watchtime");U4y(T)&&(k.delayThresholdMet=!0,T.hj=!0);if(T.S>0){for(var l=g.B(Q),v=l.next();!v.done;v=l.next())v=v.value,v.startTime-=T.S,v.endTime-=T.S;k.T-=T.S}else k.T=T.T.T;k.segments=Q;return k}; ug=function(T,Q){var k=R5C(T,!isNaN(T.Y));Q&&(T.Y=NaN);return k}; R5C=function(T,Q){var k=M8t(T,gku(T));!isNaN(T.Y)&&Q&&(k.D=T.Y);return k}; U4y=function(T){var Q;if(Q=T.provider.videoData.isLoaded()&&T.provider.videoData.QR&&T.L&&!T.hj)Q=T.T,Q=Q.N+Q.Jb()-Q.L>=T.provider.videoData.QR;return!!Q}; vkt=function(T){T.provider.videoData.youtubeRemarketingUrl&&!T.xm&&(okb(T,T.provider.videoData.youtubeRemarketingUrl),T.xm=!0)}; L8b=function(T){T.provider.videoData.googleRemarketingUrl&&!T.qO&&(okb(T,T.provider.videoData.googleRemarketingUrl),T.qO=!0)}; Zvg=function(T){if(!T.wd()&&T.L){T.B="paused";var Q=ug(T);Q.isFinal=!0;Q.send();T.dispose()}}; fxg=function(T,Q){if(!T.wd())if(g.J(Q.state,2)||g.J(Q.state,512)){if(T.B="paused",g.RY(Q,2)||g.RY(Q,512))g.RY(Q,2)&&(T.T.previouslyEnded=!0),T.L&&(af(T),ug(T).send(),T.Y=NaN)}else if(g.J(Q.state,8)){T.B="playing";var k=T.L&&isNaN(T.N)?Dv(T):NaN;if(!isNaN(k)&&(Ue(Q,64)<0||Ue(Q,512)<0)){var l=R5C(T,!1);l.C=k;l.send()}g.RY(Q,16)&&Q.state.seekSource===58&&(T.T.previouslyEnded=!0)}else T.B="paused"}; GkJ=function(T,Q,k){if(!T.z9){k||(k=cV(T,"atr"));k.attestationResponse=Q;try{k.send()}catch(l){if(l.message!=="Unknown Error")throw l;}T.z9=!0}}; okb=function(T,Q){var k=T.provider.Hd;g.rj(T.provider.Hd,g.YD(T.provider.videoData)).then(function(l){var v=T.provider.Hd.pageId,L=T.provider.Hd.sendVisitorIdHeader?T.provider.videoData.visitorData:void 0,q=T.provider.Hd.V("vss_pings_using_networkless")||T.provider.Hd.V("kevlar_woffle"),Y=T.provider.Hd.V("allow_skip_networkless");l=Ts5(Q,k,v,L,l);Qay(Q,l,{token:T.provider.videoData.B,Bv:T.provider.videoData.Yz,mdxEnvironment:T.provider.videoData.mdxEnvironment},k,void 0,q&&!Y,!1,!0)})}; m4T=function(){this.endTime=this.startTime=-1;this.Y="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.S=0;this.compositeLiveStatusToken=this.L=void 0;this.volume=this.connectionType=0;this.muted=!1;this.T=this.clipId="-";this.previouslyEnded=!1}; n6=function(T,Q,k){this.videoData=T;this.Hd=Q;this.yq=k;this.T=void 0}; g.qR=function(T){return Ixb(T)()}; Ixb=function(T){if(!T.T){var Q=g.YE(function(l){var v=(0,g.XY)();l&&v<=631152E6&&(T.yq.T9("ytnerror",{issue:28799967,value:""+v}),v=(new Date).getTime()+2);return v},T.Hd.V("html5_validate_yt_now")),k=Q(); T.T=function(){return Math.round(Q()-k)/1E3}; T.yq.UP()}return T.T}; Ylt=function(T){var Q=T.yq.Z_()||{};Q.fs=T.yq.m_();Q.volume=T.yq.getVolume();Q.muted=T.yq.isMuted()?1:0;Q.mos=Q.muted;Q.clipid=T.yq.Gc();var k;Q.playerheight=((k=T.yq.getPlayerSize())==null?void 0:k.height)||0;var l;Q.playerwidth=((l=T.yq.getPlayerSize())==null?void 0:l.width)||0;T=T.videoData;k={};T.S&&(k.fmt=T.S.itag,T.Y&&(T.OG?T.Y.itag!==T.S.itag:T.Y.itag!=T.S.itag)&&(k.afmt=T.Y.itag));k.ei=T.eventId;k.list=T.playlistId;k.cpn=T.clientPlaybackNonce;T.videoId&&(k.v=T.videoId);T.kh&&(k.infringe=1); (T.vk?0:T.ek)&&(k.splay=1);(l=JL(T))&&(k.live=l);T.nU&&(k.sautoplay=1);T.dO&&(k.autoplay=1);T.rZ&&(k.sdetail=T.rZ);T.partnerId&&(k.partnerid=T.partnerId);T.osid&&(k.osid=T.osid);T.v9&&(k.cc=g.zrg(T.v9));return Object.assign(Q,k)}; UfT=function(T){var Q=D15();if(Q)return h5C[Q]||h5C.other;if(g.G4(T.Hd)){T=navigator.userAgent;if(/[Ww]ireless[)]/.test(T))return 3;if(/[Ww]ired[)]/.test(T))return 30}return 0}; NR=function(T){var Q=new m4T,k;Q.Y=((k=Ylt(T).cc)==null?void 0:k.toString())||"-";Q.playbackRate=T.yq.getPlaybackRate();k=T.yq.getVisibilityState();k!==0&&(Q.visibilityState=k);T.Hd.f_&&(Q.S=1);Q.L=T.videoData.u$;Q.compositeLiveStatusToken=T.videoData.compositeLiveStatusToken;k=T.yq.getAudioTrack();k.MY&&k.MY.id&&k.MY.id!=="und"&&(Q.audioId=k.MY.id);Q.connectionType=UfT(T);Q.volume=T.yq.getVolume();Q.muted=T.yq.isMuted();Q.clipId=T.yq.Gc()||"-";Q.T=T.videoData.mL||"-";return Q}; g.K6=function(T,Q){g.x.call(this);var k=this;this.provider=T;this.L=new Map;this.yU=new g.Cd;this.dn={FHK:function(){return k.qoe}, rnK:function(){return k.T}, fSV:function(){return k.S}}; this.provider.videoData.Hk()&&!this.provider.videoData.U1&&(this.T=new rT(this.provider),this.T.S=0,g.P(this,this.T),this.qoe=new g.vV(this.provider,Q),g.P(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Bl=this.provider.videoData.clientPlaybackNonce)&&this.L.set(this.Bl,this.T));if(T.Hd.playerCanaryState==="canary"||T.Hd.playerCanaryState==="holdback")this.S=new dT(this.provider),g.P(this,this.S)}; s45=function(T){T.S&&t2g(T.S);T.qoe&&CtC(T.qoe)}; Slu=function(T){if(T.qoe){T=T.qoe;for(var Q=T.provider.videoData,k=T.provider.Hd,l=g.B(k.Dz),v=l.next();!v.done;v=l.next())MR(T,v.value);if(T.provider.V("html5_enable_qoe_cat_list"))for(l=g.B(Q.VF),v=l.next();!v.done;v=l.next())MR(T,v.value);else Q.Dz&&MR(T,T.provider.videoData.Dz);Q.Cc()&&(l=Q.T,Kt(Q)&&MR(T,"manifestless"),l&&FG(l)&&MR(T,"live-segment-"+FG(l).toFixed(1)));cv(Q)?MR(T,"sabr"):T.Sy(Hv(Q));if(UU(Q)||Q.lf())Q.lf()&&MR(T,"ssa"),MR(T,"lifa");r4(Q)&&MR(T,"cdm");Q.gatewayExperimentGroup&& (l=Q.gatewayExperimentGroup,l==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?l="spkadtrt":l==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(l="spkadctrl"),MR(T,l));k.z9!=="yt"&&T.T.set("len",[Q.lengthSeconds.toFixed(2)]);Q.cotn&&!Z_(Q)&&T.Vf(!0);k.J3()&&(Q=gDy())&&T.T9("cblt",{m:Q});if(k.V("html5_log_screen_diagonal")){k=T.T9;var L;Q=((L=window.H5vccScreen)==null?0:L.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;k.call(T,"cbltdiag",{v:Q})}}}; C_H=function(T,Q){T.T&&(T=T.T,Q===58?T.T.update():T.L&&(af(T),ug(T).send(),T.Y=NaN))}; BWC=function(T,Q){if(g.RY(Q,1024)||g.RY(Q,512)||g.RY(Q,4)){if(T.S){var k=T.S;k.S>=0||(k.T=-1,k.delay.stop())}T.qoe&&(k=T.qoe,k.C||(k.L=-1))}if(T.provider.videoData.enableServerStitchedDai&&T.Bl){var l;(l=T.L.get(T.Bl))==null||fxg(l,Q)}else T.T&&fxg(T.T,Q);if(T.qoe){l=T.qoe;k=Q.state;var v=g.qR(l.provider),L=l.getPlayerState(k),q=k.seekSource||void 0;if(L!==l.yU){l.hj||v= 10&&l.playTimeSecs<=180&&(l.T.set("qoealert",["1"]),l.QR=!0)),L!=="B"||l.yU!=="PL"&&l.yU!=="PB"||(l.isBuffering=!0),l.S=v);l.yU==="PL"&&(L==="B"||L==="S")||l.provider.Hd.J3()?gT(l,v):(l.h3||L!=="PL"||(l.h3=!0,Rqb(l,v,l.provider.yq.rH())),YUC(l,v));L==="PL"&&g.Ez(l.Hn);var Y=[L];L==="S"&&q&&Y.push("ss."+q);g.of(l,v,"vps",Y);l.yU=L;l.z9=v;l.S=v;l.Y=!0}L=k.ge;g.J(k,128)&&L&&(L.sT=L.sT||"",mfX(l,v,L.errorCode,L.sN,L.sT));(g.J(k,2)||g.J(k,128))&&l.reportStats(v);k.isPlaying()&&!l.C&&(l.L>=0&&l.T.set("user_intent", [l.L.toString()]),l.C=!0);f_y(l)}T.S&&(T=T.S,O6y(T),T.playerState=Q.state,T.S>=0&&g.RY(Q,16)&&T.seekCount++,Q.state.isError()&&T.send())}; z5b=function(T){T.S&&T.S.send();if(T.qoe){var Q=T.qoe;if(Q.Y){Q.yU==="PL"&&(Q.yU="N");var k=g.qR(Q.provider);g.of(Q,k,"vps",[Q.yU]);Q.C||(Q.L>=0&&Q.T.set("user_intent",[Q.L.toString()]),Q.C=!0);Q.provider.Hd.J3()&&Q.T9("finalized",{});Q.i9=!0;Q.reportStats(k)}}if(T.provider.videoData.enableServerStitchedDai)for(Q=g.B(T.L.values()),k=Q.next();!k.done;k=Q.next())Zvg(k.value);else T.T&&Zvg(T.T);T.dispose()}; Xpg=function(T,Q){T.T&&GkJ(T.T,Q)}; wpH=function(T){if(!T.T)return null;var Q=cV(T.T,"atr");return function(k){T.T&&GkJ(T.T,k,Q)}}; d4g=function(T,Q,k,l){k.adFormat=k.pG;var v=Q.yq;Q=new rT(new n6(k,Q.Hd,{getDuration:function(){return k.lengthSeconds}, getCurrentTime:function(){return v.getCurrentTime()}, Jb:function(){return v.Jb()}, Km:function(){return v.Km()}, rH:function(){return v.rH()}, getPlayerSize:function(){return v.getPlayerSize()}, getAudioTrack:function(){return k.getAudioTrack()}, getPlaybackRate:function(){return v.getPlaybackRate()}, Ir:function(){return v.Ir()}, getVisibilityState:function(){return v.getVisibilityState()}, eZ:function(){return v.eZ()}, Z_:function(){return v.Z_()}, getVolume:function(){return v.getVolume()}, isMuted:function(){return v.isMuted()}, m_:function(){return v.m_()}, Gc:function(){return v.Gc()}, getProximaLatencyPreference:function(){return v.getProximaLatencyPreference()}, UP:function(){v.UP()}, T9:function(L,q){v.T9(L,q)}, ri:function(){return v.ri()}, Px:function(){return v.Px()}})); Q.S=l;g.P(T,Q);return Q}; NWg=function(){this.Qh=0;this.L=this.oS=this.Pz=this.S=NaN;this.T={};this.bandwidthEstimate=NaN}; AOu=function(){this.T=g.J0;this.array=[]}; rOg=function(T,Q,k){var l=[];for(Q=bvC(T,Q);Qk)break}return l}; cOt=function(T,Q){var k=[];T=g.B(T.array);for(var l=T.next();!l.done&&!(l=l.value,l.contains(Q)&&k.push(l),l.start>Q);l=T.next());return k}; D45=function(T){return T.array.slice(bvC(T,0x7ffffffffffff),T.array.length)}; bvC=function(T,Q){T=pW(T.array,function(k){return Q-k.start||1}); return T<0?-(T+1):T}; axC=function(T,Q){var k=NaN;T=g.B(T.array);for(var l=T.next();!l.done;l=T.next())if(l=l.value,l.contains(Q)&&(isNaN(k)||l.endQ&&(isNaN(k)||l.startT.mediaTime+T.N&&Q1)T.Y=!0;if((v===void 0?0:v)||isNaN(T.S))T.S=Q;if(T.T)Q!==T.mediaTime&&(T.T=!1);else if(Q>0&&T.mediaTime===Q){v=1500;if(T.Hd.V("html5_buffer_underrun_transition_fix")){v=g.jj(T.Hd.experiments,"html5_min_playback_advance_for_steady_state_secs");var L=g.jj(T.Hd.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");v=v>0&&L>0&&Math.abs(Q-T.S)(l||!T.Y?v:400)}T.mediaTime=Q;T.L=k;return!1}; W86=function(T,Q){this.videoData=T;this.T=Q}; $4J=function(T,Q,k){return Q.pK(k).then(function(){return rV(new W86(Q,Q.L))},function(l){l instanceof Error&&g.rB(l); var v=IE('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),L=s_('audio/mp4; codecs="mp4a.40.2"'),q=v||L,Y=Q.isLivePlayback&&!g.z6(T.N,!0);l="fmt.noneavailable";Y?l="html5.unsupportedlive":q||(l="html5.missingapi");q=Y||!q?2:1;v={buildRej:"1",a:Q.Wm(),d:!!Q.DP,drm:Q.bl(),f18:Q.Wk.indexOf("itag=18")>=0,c18:v};Q.T&&(Q.bl()?(v.f142=!!Q.T.T["142"],v.f149=!!Q.T.T["149"],v.f279=!!Q.T.T["279"]):(v.f133=!!Q.T.T["133"],v.f140=!!Q.T.T["140"],v.f242=!!Q.T.T["242"]),v.cAAC=L,v.cAVC=s_('video/mp4; codecs="avc1.42001E"'), v.cVP9=s_('video/webm; codecs="vp9"'));Q.N&&(v.drmsys=Q.N.keySystem,L=0,Q.N.T&&(L=Object.keys(Q.N.T).length),v.drmst=L);return new g.ZK(l,v,q)})}; HV=function(T){this.data=window.Float32Array?new Float32Array(T):Array(T);this.S=this.T=T-1}; JOt=function(T){return T.data[T.T]||0}; e5I=function(T){this.N=T;this.L=this.S=0;this.Y=new HV(50)}; OF=function(T,Q,k){g.ox.call(this);this.videoData=T;this.experiments=Q;this.N=k;this.S=[];this.hS=0;this.L=!0;this.Y=!1;this.B=0;k=new F8f;T.latencyClass==="ULTRALOW"&&(k.B=!1);T.zg?k.L=3:g.iO(T)&&(k.L=2);T.latencyClass==="NORMAL"&&(k.N=!0);k.z9=cv(T)&&Q.Wd("html5_refactor_decouple_liveness");g.jj(Q,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.jj(Q,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||T.latencyClass!=="LOW"&&T.latencyClass!=="ULTRALOW"||(k.N=!0);var l= g.jj(Q,"html5_liveness_drift_proxima_override");if(Hv(T)!==0&&l){k.T=l;var v;((v=T.T)==null?0:flC(v))&&k.T--}cv(T)&&Q.Wd("html5_sabr_parse_live_metadata_playback_boundaries")&&(k.qO=!0);if(g.tH("trident/")||g.tH("edge/"))v=g.jj(Q,"html5_platform_minimum_readahead_seconds")||3,k.Y=Math.max(k.Y,v);g.jj(Q,"html5_minimum_readahead_seconds")&&(k.Y=g.jj(Q,"html5_minimum_readahead_seconds"));g.jj(Q,"html5_maximum_readahead_seconds")&&(k.D=g.jj(Q,"html5_maximum_readahead_seconds"));Q.Wd("html5_force_adaptive_readahead")&& (k.B=!0);if(v=g.jj(Q,"html5_liveness_drift_chunk_override"))k.T=v;xa(T)&&(k.T=(k.T+1)/5,T.latencyClass==="LOW"&&(k.T*=2));!cv(T)||T.latencyClass!=="ULTRALOW"&&T.latencyClass!=="LOW"||(k.j=g.jj(Q,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,k.C=g.jj(Q,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=k;this.C=this.policy.L!==1;this.T=t2(this,Ek5(this,isNaN(T.liveChunkReadahead)?3:T.liveChunkReadahead,T))}; yOT=function(T,Q){if(Q)return Q=T.videoData,Q=Ek5(T,isNaN(Q.liveChunkReadahead)?3:Q.liveChunkReadahead,Q),t2(T,Q);if(T.S.length){if(Math.min.apply(null,T.S)>1)return t2(T,T.T-1);if(T.policy.B)return t2(T,T.T+1)}return T.T}; ivH=function(T,Q){if(!T.S.length)return!1;var k=T.T;T.T=yOT(T,Q===void 0?!1:Q);if(Q=k!==T.T)T.S=[],T.hS=0;return Q}; p6=function(T,Q){return Q>=T.u8()-V8X(T)}; TNI=function(T,Q,k){Q=p6(T,Q);k||Q?Q&&(T.L=!0):T.L=!1;T.C=T.policy.L===2||T.policy.L===3&&T.L}; Qht=function(T,Q){Q=p6(T,Q);T.Y!==Q&&T.publish("livestatusshift",Q);T.Y=Q}; V8X=function(T){var Q=T.policy.T;T.Y||(Q=Math.max(Q-1,0));return Q*WV(T)}; Ek5=function(T,Q,k){k.zg&&Q--;xa(k)&&(Q=1);if(Hv(k)!==0&&(T=g.jj(T.experiments,"html5_live_chunk_readahead_proxima_override"))){Q=T;var l;((l=k.T)==null?0:flC(l))&&Q++}return Q}; WV=function(T){return T.videoData.T?FG(T.videoData.T)||5:5}; t2=function(T,Q){Q=Math.max(Math.max(1,Math.ceil(T.policy.Y/WV(T))),Q);return Math.min(Math.min(8,Math.floor(T.policy.D/WV(T))),Q)}; F8f=function(){this.Y=0;this.D=Infinity;this.B=!0;this.S=this.T=2;this.L=1;this.N=!1;this.C=10;this.qO=!1;this.j=1;this.z9=!1}; e2=function(T){g.x.call(this);this.yq=T;this.T=0;this.S=null;this.B=this.Y=0;this.L={};this.Hd=this.yq.G();this.N=new g.FA(this.Jh,1E3,this);this.u9=$O(this,"html5_seek_timeout_delay_ms");this.hj=$O(this,"html5_long_rebuffer_threshold_ms");this.K_=$O(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.e6=$O(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.sK=$O(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.d5=$O(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.z9=$O(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.qO=new J2(2E4);this.Bd=$O(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.p_=$O(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.Jj=$O(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.i9=$O(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.j=$O(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.D=$O(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.f_=$O(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.zg=$O(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.C=$O(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.Tg=new J2(g.jj(this.Hd.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.Hd.V("html5_report_slow_ads_as_error"));this.QR=new J2(g.jj(this.Hd.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.Hd.V("html5_skip_slow_buffering_ad"));this.h3=$O(this,"html5_slow_start_timeout_delay_ms");this.xm=$O(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.P(this,this.N)}; $O=function(T,Q,k){k=k===void 0?null:k;var l=l===void 0?0:l;return new J2(g.jj(T.Hd.experiments,Q)||l,k?T.Hd.V(k):!1)}; jhu=function(T,Q){T.T=Q}; FO=function(T,Q,k,l,v,L,q,Y){Q?Q.test(k)?(T.RK(v,Q,q),Q.B||L()):(!Q.S||Q.Y?k=!1:(k=(0,g.XY)(),l?Q.T||(Q.T=k):Q.T=0,L=!l&&k-Q.S>3E4,k=Q.T&&k-Q.T>1E3||L?Q.Y=!0:!1),k&&(Y=Object.assign({},T.Tx(Q),Y),Y.wn=q,Y.we=v,Y.wsuc=l,T.yq.T9("workaroundReport",Y),l&&(Q.reset(),T.L[v]=!1))):T.yq.NL("auth",2,"BROWSER_OR_EXTENSION_ERROR",RE({source:"watchdog",name:q}))}; J2=function(T,Q){this.B=Q===void 0?!1:Q;this.T=this.S=this.L=this.startTimestamp=0;this.Y=!1;this.N=Math.ceil(T/1E3)}; vYC=function(T){g.x.call(this);var Q=this;this.yq=T;this.j=this.T=this.loader=this.mediaElement=this.playbackData=null;this.L=0;this.N=this.hj=this.Y=null;this.i9=!1;this.h3=0;this.qO=!1;this.timestampOffset=0;this.D=!0;this.p_=0;this.K_=this.Gg=!1;this.C=0;this.zg=!1;this.xm=0;this.Hd=this.yq.G();this.videoData=this.yq.getVideoData();this.policy=new kxg;this.z9=new e2(this.yq);this.Tg=this.Jj=this.sK=this.B=this.S=NaN;this.Bd=new g.FA(function(){lGt(Q,!1)},2E3); this.d5=new g.FA(function(){EF(Q)}); this.u9=new g.FA(function(){oYu(Q,{})}); this.QR=NaN;this.e6=new g.FA(function(){var k=Q.Hd.nG;k.T+=1E4/36E5;k.T-k.L>1/6&&(Dlf(k),k.L=k.T);Q.e6.start()},1E4); g.P(this,this.z9);g.P(this,this.Bd);g.P(this,this.u9);g.P(this,this.d5);g.P(this,this.e6)}; gYT=function(T,Q){T.playbackData=Q;T.videoData.isLivePlayback&&(T.j=new e5I(function(){a:{if(T.playbackData&&T.playbackData.T.T){if(Kt(T.videoData)&&T.loader){var l=T.loader.Ad.hx()||0;break a}if(T.videoData.T){l=T.videoData.T.i9;break a}}l=0}return l}),T.T=new OF(T.videoData,T.Hd.experiments,function(){return T.EM(!0)})); if(yE(T.yq)){var k;(k=T.videoData.Ct)!=null&&k.gM||(Q=Lc5(T),Q.IV?(cv(T.videoData)&&T.R3(Q.IV,Q.startSeconds),T.L=Q.startSeconds):Q.startSeconds>0&&T.seekTo(Q.startSeconds,{I_:"seektimeline_startPlayback",seekSource:15}));T.D=!1}else qsf(T)||(T.L=T.L||T.videoData.startSeconds||0,T.videoData.isLivePlayback||(Q=T.yq.videoData.EM(),T.L>Q&&(T.V("html5_sabr_log_invalid_sabr_current_time")&&T.yq.T9("invalidSabrCmtStart",{rt:T.L,mst:Q}),T.V("html5_sabr_vod_invalid_start_time_fallback")&&(T.L=0))))}; Ysu=function(T,Q){(T.loader=Q)?MpI(T,!0):ig(T)}; UDb=function(T,Q){g.Ez(T.z9.N);T.V("html5_exponential_memory_for_sticky")&&(Q.state.isPlaying()?g.Ez(T.e6):T.e6.stop());if(T.mediaElement)if(Q.oldState.state===8&&be(Q.state)&&Q.state.isBuffering()){Q=T.mediaElement.getCurrentTime();var k=T.mediaElement.Q8();var l=T.V("manifestless_post_live_ufph")||T.V("manifestless_post_live")?E_(k,Math.max(Q-3.5,0)):E_(k,Q-3.5);l>=0&&Q>k.end(l)-1.1&&l+10?(VE(T.yq,T.getCurrentTime()+T.videoData.limitedPlaybackDurationInSeconds),T.K_=!0):T.videoData.isLivePlayback&&T.videoData.endSeconds>0&&(VE(T.yq,T.getCurrentTime()+T.videoData.endSeconds),T.K_=!0))}; Zk5=function(T,Q){var k=T.getCurrentTime(),l=T.isAtLiveHead(k);if(T.j&&l){var v=T.j;if(v.T&&!(k>=v.S&&k50&&v.S.shift())),v=T.T,TNI(v,k,Q===void 0?!0:Q),Qht(v,k),Q&&lGt(T,!0));l!==T.Gg&&(Q=T.getCurrentTime()-T.Tg<=500,k=T.h3>=1E3,Q||k||(Q=T.yq.Kc,Q.qoe&&(Q=Q.qoe,k=g.qR(Q.provider), g.of(Q,k,"lh",[l?"1":"0"])),T.Gg=l,T.h3++,T.Tg=T.getCurrentTime()))}; lGt=function(T,Q){if(T.T){var k=T.T;var l=T.getCurrentTime(),v=k.u8();var L=k.policy.S;k.Y||(L=Math.max(L-1,0));L*=WV(k);l>=v-L||!k.iX()?k=lk+1&&Q0&&IL(T.mediaElement)>0&&(T.S=Tk(T,T.S,!1)),Q=T.V("html5_pseudogapless_shorts_seek_to_next_start")&&(Q==null?void 0:Q.seekSource)===60,!T.mediaElement||!SsT(T,Q))T.d5.start(750);else if(!isNaN(T.S)&&isFinite(T.S)&&(Q=T.Jj-(T.S-T.timestampOffset),!(Q===0||Math.abs(Q)<.005)))if(Q=T.mediaElement.getCurrentTime()-T.S,Math.abs(Q)<=T.p_||Math.abs(Q)<.005)Cjb(T);else{if(T.videoData.zB)T.videoData.zB= !1;else if(!nt(T.videoData)&&T.S>=T.EM()-.1){T.S=T.EM();T.Y.resolve(T.EM());T.Hd.J3()&&T.yq.T9("setEndedInSeek",{tgt:""+T.S,maxst:""+T.EM()});T.yq.fn();return}try{var k=T.S-T.timestampOffset;T.mediaElement.seekTo(k);T.z9.T=k;T.Jj=k;T.L=T.S;T.qO=!1}catch(l){}}}; SsT=function(T,Q){Q=Q===void 0?!1:Q;if(!T.mediaElement||T.mediaElement.Nm()===0||T.mediaElement.hasError())return!1;var k=T.mediaElement.getCurrentTime()>0;return T.videoData.L&&T.videoData.L.T||T.videoData.isLivePlayback||!T.videoData.bl()?T.S>=0&&!Q&&(Q=T.mediaElement.MD(),Q.length||!k)?y4(Q,T.S-T.timestampOffset):k:k}; Cjb=function(T){T.Y&&(T.Y.resolve(T.mediaElement.getCurrentTime()),T.z9.S=null)}; hSH=function(T,Q){T.N&&(T.N.resolve(Q),T.yq.BL(),T.Hd.J3()||shT(T))&&(Q=T.Tx(),Q["native"]=""+ +T.qO,Q.otgt=""+(T.S+T.timestampOffset),T.yq.T9("seekEnd",Q));ig(T)}; ig=function(T){T.S=NaN;T.B=NaN;T.Jj=NaN;T.Y=null;T.hj=null;T.N=null;T.i9=!1;T.qO=!1;T.p_=0;T.Bd.stop();T.u9.stop()}; zSb=function(T,Q){var k=T.mediaElement,l=Q.type;switch(l){case "seeking":var v=k.getCurrentTime()+T.timestampOffset;if(!T.Y||T.qO&&v!==T.S){T.Y=new GN;T.Y.then(function(q){hSH(T,q)},function(){ig(T)}); if(T.videoData.isAd()){var L;LpC({adCpn:T.videoData.clientPlaybackNonce,contentCpn:(L=T.videoData.i4)!=null?L:""},Q.T)}T.Jj=v;jhu(T.z9,k.getCurrentTime());T.seekTo(v,{seekSource:104,I_:"seektimeline_mediaElementEvent"});T.qO=!0}break;case "seeked":Cjb(T);break;case "loadedmetadata":yE(T.yq)||BN5(T);EF(T);break;case "progress":EF(T);break;case "pause":T.C=T.getCurrentTime()}T.C&&((l==="play"||l==="playing"||l==="timeupdate"||l==="progress")&&T.getCurrentTime()-T.C>10&&(T.V("html5_sky_skip_pause_jump")? T.yq.T9("skipPauseJump",{evt:l,cmt:T.getCurrentTime(),lpt:T.C}):T.seekTo(T.C,{I_:"pauseJump"})),l!=="pause"&&l!=="play"&&l!=="playing"&&l!=="progress"&&(T.C=0))}; XaX=function(T){return(Vv(T.videoData)||!!T.videoData.liveUtcStartSeconds)&&(!!T.videoData.liveUtcStartSeconds||qsf(T))&&!!T.videoData.T}; qsf=function(T){return!!T.videoData.startSeconds&&isFinite(T.videoData.startSeconds)&&T.videoData.startSeconds>1E9}; Lc5=function(T){var Q=0,k=NaN,l="";if(!T.D)return{startSeconds:Q,IV:k,source:l};T.videoData.hj?Q=T.videoData.xm:nt(T.videoData)&&(Q=Infinity);if(g.iO(T.videoData))return{startSeconds:Q,IV:k,source:l};T.videoData.startSeconds?(l="ss",Q=T.videoData.startSeconds):T.videoData.gt&&(l="stss",Q=T.videoData.gt);T.videoData.liveUtcStartSeconds&&(k=T.videoData.liveUtcStartSeconds);if(isFinite(Q)&&(Q>T.EM()||QT.EM()||k 0?(l.onesie="0",T.handleError(new g.ZK("html5.missingapi",l)),!1):!0}; aGH=function(T){var Q=lf();oR(Q,T);return g.Jt(Q,uN5())}; r4b=function(T,Q){var k,l,v,L,q,Y,U,R,Z,f,G,m,I,z,w,r,A,D,K,O,E,e,vT,f5,qJ,g6;return g.a(function(QC){if(QC.S==1)return Q.fetchType="onesie",k=fQg(Q,T.getPlayerSize(),T.getVisibilityState()),l=new FJ(T,k),g.c(QC,l.fetch(),2);v=QC.T;L={player_response:v};Q.loading=!1;q=T.nA.m9;if(l.Ug){Y=g.B(l.Ug.entries());for(U=Y.next();!U.done;U=Y.next())R=U.value,Z=g.B(R),f=Z.next().value,G=Z.next().value,m=f,I=G,q.T.set(m,I,180),m===Q.videoId&&(z=I.eX(),Q.mJ=z);q.J1=l}w=g.B(l.MM.entries());for(r=w.next();!r.done;r= w.next())A=r.value,D=g.B(A),K=D.next().value,O=D.next().value,E=K,e=O,q.S.set(E,e,180);g.sy(Q,L,!0);if(Q.loading||I8(Q))return QC.return(Promise.resolve());q.T.removeAll();q.S.removeAll();Q.mJ=[];vT={};f5="onesie.response";qJ=0;Q.errorCode?(f5="auth",vT.ec=Q.errorCode,vT.ed=Q.errorDetail,vT.es=Q.by||"",qJ=2):(vT.successButUnplayable="1",vT.disposed=""+ +Q.wd(),vT.afmts=""+ +/adaptiveFormats/.test(v),vT.cpn=Q.clientPlaybackNonce);g6=new g.ZK(f5,vT,qJ);return QC.return(Promise.reject(g6))})}; A4y=function(T,Q){var k,l,v,L,q,Y,U,R,Z,f,G;return g.a(function(m){switch(m.S){case 1:k=Q.isAd(),l=!k,v=k?1:3,L=0;case 2:if(!(L0)){m.Ym(5);break}return g.c(m,H4(5E3),6);case 6:q=new g.Wy("Retrying OnePlatform request",{attempt:L}),g.rB(q);case 5:return g.z5(m,7),g.c(m,uB5(T,Q),9);case 9:return m.return();case 7:Y=g.by(m);U=GX(Y);R=U.errorCode;Z=T.G();f=Z.V("html5_use_network_error_code_enums")?401:"401";l&&R==="manifest.net.badstatus"&&U.details.rc===f&&(l=!1,L===v-1&&(v+= 1));if(L===v-1)return G=nYI(k,U.details),G.details.backend="op",G.details.originec=R,m.return(Promise.reject(G));if(R==="auth"||R==="manifest.net.retryexhausted")return m.return(Promise.reject(U));T.handleError(U);if(fu(U.severity)){m.Ym(4);break}case 3:L++;m.Ym(2);break;case 4:return m.return(Promise.reject(nYI(k,{backend:"op"})))}})}; uB5=function(T,Q){function k(f5){f5.readyState===2&&T.z_("ps_c")} var l,v,L,q,Y,U,R,Z,f,G,m,I,z,w,r,A,D,K,O,E,e,vT;return g.a(function(f5){switch(f5.S){case 1:Q.fetchType="gp";l=T.G();v=g.rj(l,g.YD(Q));if(!v.T){L=v.getValue();f5.Ym(2);break}return g.c(f5,v.T,3);case 3:L=f5.T;case 2:return q=L,Y=aGH(q),U=fQg(Q,T.getPlayerSize(),T.getVisibilityState()),R=g.Vr(Kcg),Z=g.YD(Q),f=(0,g.XY)(),G=!1,m="empty",I=0,T.z_("psns"),z={Hw:k},g.c(f5,g.uU(Y,U,R,void 0,z),4);case 4:w=f5.T;T.z_("psnr");if(Q.wd())return f5.return();w?"error"in w&&w.error?(G=!0,m="esf:"+w.error.message, I=w.error.code):w.errorMetadata&&(G=!0,m="its",I=w.errorMetadata.status):G=!0;if(G)return r=0,A=((0,g.XY)()-f).toFixed(),D={},D=l.V("html5_use_network_error_code_enums")?{backend:"op",rc:I,rt:A,reason:m,has_kpt:Q.Z8?"1":"0",has_mdx_env:Q.mdxEnvironment?"1":"0",has_omit_key_flag:g.$i("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:l.pageId?"1":"0",has_token:Z?"1":"0",has_vvt:Q.i9?"1":"0",is_mdx:Q.isMdxPlayback?"1":"0",mdx_ctrl:Q.w8||"",token_eq:Z===g.YD(Q)?"1":"0"}:{backend:"op", rc:""+I,rt:A,reason:m,has_kpt:Q.Z8?"1":"0",has_mdx_env:Q.mdxEnvironment?"1":"0",has_omit_key_flag:g.$i("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:l.pageId?"1":"0",has_token:Z?"1":"0",has_vvt:Q.i9?"1":"0",is_mdx:Q.isMdxPlayback?"1":"0",mdx_ctrl:Q.w8||"",token_eq:Z===g.YD(Q)?"1":"0"},K="manifest.net.connect",I===429?(K="auth",r=2):I>200&&(K="manifest.net.badstatus",I===400&&(r=2)),f5.return(Promise.reject(new g.ZK(K,D,r)));Q.loading=!1;g.sy(Q,{raw_player_response:w},!0); O=w;g.Ln(Q.G())&&O&&O.trackingParams&&i8(O.trackingParams);if(Q.errorCode)return E={ec:Q.errorCode,ed:Q.errorDetail,es:Q.by||""},f5.return(Promise.reject(new g.ZK("auth",E,2)));if(!Q.loading&&!I8(Q))return e=Q.isAd()?"auth":"manifest.net.retryexhausted",vT=Q.isAd()?2:1,f5.return(Promise.reject(new g.ZK(e,{successButUnplayable:"1",hasMedia:g.FC(Q)?"1":"0"},vT)));g.BT(f5)}})}; NNt=function(T,Q,k){function l(I){I=GX(I);if(fu(I.severity))return Promise.reject(I);T.handleError(I);return!1} function v(){return!0} var L,q,Y,U,R,Z,f,G,m;return g.a(function(I){switch(I.S){case 1:var z=T.G();T.getPlayerSize();T.getVisibilityState();T.isFullscreen();if(Q.partnerId===38&&z.playerStyle==="books")z=Q.videoId.indexOf(":"),z=g.sD("//play.google.com/books/volumes/"+Q.videoId.slice(0,z)+"/content/media",{aid:Q.videoId.slice(z+1),sig:Q.yuj});else if(Q.partnerId===30&&z.playerStyle==="docs")z=g.sD("https://docs.google.com/get_video_info",{docid:Q.videoId,authuser:Q.OX,authkey:Q.Be,eurl:z.DP});else if(Q.partnerId===33&& z.playerStyle==="google-live")z=g.sD("//google-liveplayer.appspot.com/get_video_info",{key:Q.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+z.z9);L=z;Y=(q=Q.isAd())?1:3;U=0;case 2:if(!(U0)){I.Ym(5);break}return g.c(I,H4(5E3),6);case 6:Z={playerretry:U,playerretrysrc:k},q||(Z.recover="embedded"),R=oU(L,Z);case 5:return g.c(I,xDT(Q,R).then(v,l),7);case 7:if(f=I.T)return I.return();U++;I.Ym(2);break;case 4:G=q?"auth":"manifest.net.retryexhausted";m= q?2:1;if(!q&&Math.random()<1E-4)try{g.rB(new g.Wy("b/152131571",btoa(L)))}catch(w){}return I.return(Promise.reject(new g.ZK(G,{backend:"gvi"},m)))}})}; xDT=function(T,Q){function k(w){return l(w.xhr)} function l(w){if(!T.wd()){w=w?w.status:-1;var r=0,A=((0,g.XY)()-Z).toFixed();A=v.V("html5_use_network_error_code_enums")?{backend:"gvi",rc:w,rt:A}:{backend:"gvi",rc:""+w,rt:A};var D="manifest.net.connect";w===429?(D="auth",r=2):w>200&&(D="manifest.net.badstatus",w===400&&(r=2));return Promise.reject(new g.ZK(D,A,r))}} var v,L,q,Y,U,R,Z,f,G,m,I,z;return g.a(function(w){if(w.S==1){T.fetchType="gvi";v=T.G();var r={};T.oe&&(r.ytrext=T.oe);(Y=g.Rs(r)?void 0:r)?(L={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:Y},q=oU(Q,{action_display_post:1})):(L={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},q=Q);U={};v.sendVisitorIdHeader&&T.visitorData&&(U["X-Goog-Visitor-Id"]=T.visitorData);(R=S4(v.experiments,"debug_sherlog_username"))&&(U["X-Youtube-Sherlog-Username"]=R);Object.keys(U).length> 0&&(L.headers=U);Z=(0,g.XY)();return g.c(w,u7(dV,q,L).then(void 0,k),2)}f=w.T;if(!f||!f.responseText)return w.return(l(f));T.loading=!1;G=QI(f.responseText);g.sy(T,G,!0);if(T.errorCode)return m={ec:T.errorCode,ed:T.errorDetail,es:T.by||""},w.return(Promise.reject(new g.ZK("auth",m,2)));if(!T.loading&&!I8(T))return I=T.isAd()?"auth":"manifest.net.retryexhausted",z=T.isAd()?2:1,w.return(Promise.reject(new g.ZK(I,{successButUnplayable:"1"},z)));g.BT(w)})}; nYI=function(T,Q){return new g.ZK(T?"auth":"manifest.net.retryexhausted",Q,T?2:1)}; o4=function(T,Q,k){k=k===void 0?!1:k;var l,v,L,q;g.a(function(Y){if(Y.S==1){l=T.G();if(k&&(!g.XT(l)||vi(Q)!=="embedded")||Q.qq||vi(Q)!=="adunit"&&(g.G4(l)||Ze(l)||g.uP(l)||g.zW(l)||g.q0(l)||hS(l)==="WEB_CREATOR"))return Y.return();v=g.rj(l,g.YD(Q));return v.T?g.c(Y,v.T,3):(L=v.getValue(),Y.Ym(2))}Y.S!=2&&(L=Y.T);q=L;return Y.return(Pjf(T,Q,q))})}; Pjf=function(T,Q,k){var l,v,L,q,Y;return g.a(function(U){if(U.S==1){g.z5(U,2);l=aGH(k);var R=Q.G();g.xq();var Z={context:g.zh(Q),videoId:Q.videoId,racyCheckOk:Q.racyCheckOk,contentCheckOk:Q.contentCheckOk,autonavState:"STATE_NONE"};vi(Q)==="adunit"&&(Z.isAdPlayback=!0);R.embedConfig&&(Z.serializedThirdPartyEmbedConfig=R.embedConfig);R.Ek&&(Z.showContentOwnerOnly=!0);Q.o6&&(Z.showShortsOnly=!0);g.Py(0,141)&&(Z.autonavState=g.Py(0,140)?"STATE_OFF":"STATE_ON");if(g.Cn(R)){var f=g.Py(0,65);f=f!=null? !f:!1;var G=!!g.cy("yt-player-sticky-caption");Z.captionsRequested=f&&G}var m;if(R=(m=R.getWebPlayerContextConfig())==null?void 0:m.encryptedHostFlags)Z.playbackContext={encryptedHostFlags:R};v=Z;L=g.Vr(HkI);T.z_("wn_s");return g.c(U,g.uU(l,v,L),4)}if(U.S!=2)return q=U.T,T.z_("wn_r"),!q||"error"in q&&q.error||(Y=q,g.Ln(Q.G())&&Y.trackingParams&&i8(Y.trackingParams),g.sy(Q,{raw_watch_next_response:q},!1)),g.d6(U,0);g.by(U);g.BT(U)})}; tp5=function(T){T.z_("vir");T.z_("ps_s");cP("vir",void 0,"video_to_ad");var Q=DDT(T);Q.then(function(){T.z_("virc");cP("virc",void 0,"video_to_ad");T.z_("ps_r");cP("ps_r",void 0,"video_to_ad")},function(){T.z_("virc"); cP("virc",void 0,"video_to_ad")}); return Q}; g.q4=function(T,Q,k,l,v,L,q,Y,U,R){U=U===void 0?new g.mR(T):U;R=R===void 0?!0:R;g.ox.call(this);var Z=this;this.Hd=T;this.playerType=Q;this.Rg=k;this.GQ=l;this.getVisibilityState=L;this.visibility=q;this.nA=Y;this.videoData=U;this.yG=R;this.logger=new g.Cy("VideoPlayer");this.QU=null;this.Si=new BV;this.N3=null;this.Oy=!0;this.j6=this.loader=null;this.ZS=[];this.YQ=new l_;this.lK=this.ob=null;this.mP=new l_;this.F9=null;this.zr=this.HJ=!1;this.Y0=NaN;this.Cx=!1;this.playerState=new g.Cd;this.x0=[]; this.PP=new g.Bj;this.rJ=new YFf(this);this.mediaElement=null;this.X8=new g.FA(this.F1K,15E3,this);this.w4=this.Nr=!1;this.zT=NaN;this.KK=!1;this.zF=0;this.Zw=!1;this.Wp=NaN;this.kC=new QW(new Map([["bufferhealth",function(){return RSI(Z.KA)}], ["bandwidth",function(){return Z.Jz()}], ["networkactivity",function(){return Z.Hd.schedule.hj}], ["livelatency",function(){return Z.isAtLiveHead()&&Z.isPlaying()?Okf(Z):NaN}], ["rawlivelatency",function(){return Okf(Z)}]])); this.FC=0;this.loop=!1;this.playbackRate=1;this.Zi=0;this.KA=new vYC(this);this.ZT=!1;this.d6=[];this.EO=this.lm=0;this.d4=this.M0=!1;this.oS=this.Pz=0;this.GL=new g.FA(this.X2,0,this);this.vu=!1;this.Gx=null;this.dOq=[this.PP,this.GL,this.X8,this.kC];this.Pr=this.GJ=null;this.H1=function(){var f=Z.Kc;f.provider.Hd.pG||f.provider.yq.getVisibilityState()===3||(f.provider.Hd.pG=!0);f.wZ();if(f.S){var G=f.S;G.N&&G.T<0&&G.provider.yq.getVisibilityState()!==3&&t2g(G)}f.qoe&&(f=f.qoe,f.u9&&f.L<0&&f.provider.Hd.pG&& CtC(f),f.Y&&gT(f));Z.loader&&vp(Z);Z.Hd.xs&&!Z.videoData.backgroundable&&Z.mediaElement&&!Z.Ax()&&(Z.isBackground()&&Z.mediaElement.Ef()?(Z.T9("bgmobile",{suspend:1}),Z.T0(!0,!0)):Z.isBackground()||Lv(Z)&&Z.T9("bgmobile",{resume:1}))}; this.dn={e9:function(f){Z.e9(f)}, Dkd:function(f){Z.QU=f}, T_k:function(){return Z.Kc}, JH:function(){return Z.j6}, lSj:function(){return Z.qd}, rVK:function(){return Z.gg}, xk_:function(){}, G:function(){return Z.Hd}, T_:function(){return Z.mediaElement}, XzB:function(f){Z.Xn(f)}, VP6:function(){return Z.GQ}}; this.logger.debug(function(){return"creating, type "+Q}); this.V3=new ppX(this.Hd);this.BG=new XO(this.Hd,this.GQ,this);this.lH=new g.xO(this,function(f,G){f!==g.ej("endcr")||g.J(Z.playerState,32)||Z.fn();v(f,G,Z.playerType);if(f===g.ej("transitiondetector")&&(f=Z.loader)!=null&&(f=f.QR)!=null){var m=g.B(xY5(G.id));m.next();m=m.next().value;adH(f,m,G.start/1E3-f.yq.Px(),wvg(f.Y))}}); g.P(this,this.lH);g.P(this,this.KA);pau(this,U);this.videoData.subscribe("dataupdated",this.mFd,this);this.videoData.subscribe("dataloaded",this.X5,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.T9,this);this.videoData.subscribe("ctmpstr",this.HW,this);!this.Kc||this.Kc.wd();this.Kc=new g.K6(new n6(this.videoData,this.Hd,this));gOI(this.H1);this.visibility.subscribe("visibilitystatechange",this.H1);this.qd=new g.FA(this.Hr,g.jj(this.Hd.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.gg=new g.FA(this.Hr,g.jj(this.Hd.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.S0=new g.Vq(this.x2K,350,this);g.P(this,this.S0)}; pau=function(T,Q){if(T.playerType===2||T.Hd.R0)Q.m5=!0;var k=NOb(Q.pG,Q.qU,T.Hd.Y,T.Hd.j);k&&(Q.adFormat=k);T.playerType===2&&(Q.dO=!0);if(T.isFullscreen()||T.Hd.Y)k=g.cy("yt-player-autonavstate"),Q.autonavState=k||(T.Hd.Y?2:T.videoData.autonavState);Q.endSeconds&&Q.endSeconds>Q.startSeconds&&VE(T,Q.endSeconds)}; Wc6=function(T){var Q=T.videoData;tp5(T).then(void 0,function(k){T.videoData!==Q||Q.wd()||(k=GX(k),k.errorCode==="auth"&&T.videoData.errorDetail?T.NL(k.errorCode,2,unescape(T.videoData.errorReason),RE(k.details),T.videoData.errorDetail,T.videoData.by||void 0):T.handleError(k))})}; eSC=function(T){if(!g.J(T.playerState,128))if(T.videoData.isLoaded(),T.logger.debug("finished loading playback data"),T.ZS=g.r$(T.videoData.D),g.FC(T.videoData)){T.Rg.tick("bpd_s");gW(T).then(function(){T.Rg.tick("bpd_c");if(!T.wd()){T.HJ&&(T.LA(wf(wf(T.playerState,512),1)),Lv(T));var l=T.videoData;l.endSeconds&&l.endSeconds>l.startSeconds&&VE(T,l.endSeconds);T.YQ.finished=!0;M4(T,"dataloaded");T.mP.gT()&&$DH(T);H65(T.BG,T.lK)}}); T.V("html5_log_media_perf_info")&&T.T9("loudness",{v:T.videoData.uK.toFixed(3)},!0);var Q,k=(Q=T.mediaElement)==null?void 0:Q.xB();if(k&&"disablePictureInPicture"in k&&T.Hd.dV)try{k.disablePictureInPicture=T.Hd.i5&&!T.videoData.backgroundable}catch(l){g.rB(l)}J46(T)}else M4(T,"dataloaded")}; gW=function(T){Yk(T);T.lK=null;var Q=$4J(T.Hd,T.videoData,T.Ax());T.ob=Q;T.ob.then(function(k){Fc5(T,k)},function(k){T.wd()||(k=GX(k),T.visibility.isBackground()?(Ul(T,"vp_none_avail"),T.ob=null,T.YQ.reset()):(T.YQ.finished=!0,T.NL(k.errorCode,k.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",RE(k.details))))}); return Q}; Fc5=function(T,Q){if(!T.wd()&&!Q.videoData.wd()){T.logger.debug("finished building playback data");T.lK=Q;gYT(T.KA,T.lK);if(T.videoData.isLivePlayback){var k=EYH(T.nA.m9,T.videoData.videoId)||T.loader&&!isNaN(T.loader.i9);k=T.V("html5_onesie_live")&&k;yE(T)||T.videoData.h3>0&&!Kt(T.videoData)||k||T.seekTo(T.EM(),{I_:"videoplayer_playbackData",seekSource:18})}if(T.videoData.L.T){if(lQg(T.videoData)){T.NL("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",RE({missabrurl:1}));return}T.loader?g.rB(Error("Duplicated Loader")): (k=g.jj(T.Hd.experiments,"html5_onesie_defer_content_loader_ms"))&&T.ME()&&EYH(T.nA.m9,T.videoData.RZB)?g.Zq(function(){T.wd()||T.loader||y4b(T)},k):y4b(T)}else!T.videoData.L.T&&Z_(T.videoData)&&T.tC(new dX(T.videoData.videoId||"",4)); T.zE();c2f(Q).then(function(){var l={};T.B5(l);T.Hd.J3()&&T.V("html5_log_media_perf_info")&&T.T9("av1Info",l);vp(T)})}}; $DH=function(T){T.wd();T.logger.debug("try finish readying playback");if(T.mP.finished)T.logger.debug("already finished readying");else if(T.YQ.finished)if(g.J(T.playerState,128))T.logger.debug("cannot finish readying because of error");else if(T.ZS.length)T.logger.debug(function(){return"cannot finish readying because of pending preroll: "+T.ZS}); else if(T.lH.started||nk6(T.lH),T.Pc())T.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{T.loader&&(T.zr=jXI(T.loader.timing));T.mP.finished||(T.mP.finished=!0);var Q=T.V("html5_onesie_live")&&T.loader&&!isNaN(T.loader.i9);!T.videoData.isLivePlayback||T.videoData.h3>0&&!Kt(T.videoData)||Q||yE(T)||(T.logger.debug("seek to head for live"),T.seekTo(Infinity,{I_:"videoplayer_readying",seekSource:18}),T.isBackground()&&(T.w4=!0));Slu(T.Kc);T.logger.debug("finished readying playback"); T.publish("playbackready");bU("pl_c",T.Rg.timerName)||(T.Rg.tick("pl_c"),cP("pl_c",void 0,"video_to_ad"));bU("pbr",T.Rg.timerName)||(T.Rg.tick("pbr"),cP("pbr",void 0,"video_to_ad"))}else T.logger.debug("playback data not loaded")}; VE=function(T,Q){T.N3&&ikT(T);T.N3=new g.$d(Q*1E3,0x7ffffffffffff);T.N3.namespace="endcr";T.addCueRange(T.N3)}; ikT=function(T){T.removeCueRange(T.N3);T.N3=null}; VpI=function(T,Q,k,l,v){var L=T.Kc,q=T.videoData;q.S=k;var Y=g.R4(T);k=new BT5(q,k,Q,Y?Y.itag:"",l);T.Hd.experiments.Wd("html5_refactor_sabr_video_format_selection_logging")?(k.videoId=v,T.Pr=k):L.qoe&&SUI(L.qoe,k);v=T.BG;v.S=0;v.T=0;T.publish("internalvideoformatchange",q,Q==="m")}; g.R4=function(T){var Q=Zx(T);return bd(Q)||!T.lK?null:g.sA(T.lK.T.videoInfos,function(k){return Q.Y(k)})}; Zx=function(T){if(T.lK){var Q=T.BG;var k=T.lK;T=T.IH();var l=XVH(Q);if(bd(l)){if(l=Q.KP(k).compose(A26(Q,k)).compose(r2y(Q,k)).compose(xRX(Q,k.videoData)).compose(Pgy(Q,k.videoData,k)).compose(K7J(Q,k)).compose(dRC(Q,k)),bd(T)||Q.V("html5_apply_pbr_cap_for_drm"))l=l.compose(NT5(Q,k))}else Q.V("html5_perf_cap_override_sticky")&&(l=l.compose(K7J(Q,k))),Q.V("html5_ustreamer_cap_override_sticky")&&(l=l.compose(NT5(Q,k)));l=l.compose(dRC(Q,k));Q=k.videoData.kH.compose(l).compose(k.videoData.wE).compose(T)}else Q= GV;return Q}; oa5=function(T){var Q=T.BG;T=T.videoData;var k=xRX(Q,T);Q.V("html5_disable_client_autonav_cap_for_onesie")||k.compose(Pgy(Q,T));return k}; vp=function(T){if(T.videoData.L&&T.videoData.L.T){var Q=Zx(T);T.loader&&PtX(T.loader,Q)}}; TuH=function(T){var Q;return!!(T.V("html5_native_audio_track_switching")&&g.mp&&((Q=T.videoData.S)==null?0:Pj(Q)))}; QGT=function(T){if(!TuH(T))return!1;var Q;T=(Q=T.mediaElement)==null?void 0:Q.audioTracks();return!!(T&&T.length>1)}; kKy=function(T){var Q=jGT(T);if(Q)return T.videoData.getAvailableAudioTracks().find(function(k){return k.MY.getName()===Q})}; jGT=function(T){var Q;if(T=(Q=T.mediaElement)==null?void 0:Q.audioTracks())for(Q=0;Q0&&(Q.Hl=k.Wz));Q.VD=k.NV;Q.ID=lc(l,{},k.L||void 0,bO(k));Q.f_=AL(k)&&(g.uP(l)||g.zW(l));cv(k)&&(Q.N=!0,Q.u$=l.V("html5_estimate_live_partial_slice_duration"),Q.vn=!0,l.V("html5_sabr_report_partial_segment_estimated_duration")&&(Q.Dy=!0),Q.T=!0,Q.XQ=l.V("html5_sabr_enable_live_clock_offset"),Q.Jp= l.V("html5_disable_client_resume_policy_for_sabr"),Q.jy=l.V("html5_trigger_loader_when_idle_network"),Q.IS=l.V("html5_sabr_parse_live_metadata_playback_boundaries"),Q.wV=l.V("html5_consume_onesie_next_request_policy_for_sabr"),Q.aS=l.V("html5_sabr_report_next_ad_break_time"),Q.cf=l.V("html5_log_high_res_buffer_timeline")&&l.J3(),Q.f5=l.V("html5_remove_stuck_slices_beyond_max_buffer_limits"),Q.xF=l.V("html5_gapless_sabr_btl_last_slice")&&NY(k),Q.O6=l.V("html5_reset_last_appended_slice_on_seek")&&NY(k), Kt(k)?(Q.O2=!0,Q.Z6=l.V("html5_disable_variability_tracker_for_live"),Q.u9=!0,l.V("html5_simplified_backup_timeout_sabr_live")&&(Q.RM=!0,Q.OW=Q.SP)):Q.Fk=l.V("html5_probe_request_on_sabr_request_progress"),Q.n5=l.V("html5_serve_start_seconds_seek_for_post_live_sabr"),Q.nG=l.V("html5_flush_index_on_updated_timestamp_offset"),Q.D=cv(k),Q.FU=l.V("html5_ignore_partial_segment_from_live_readahead"),l.V("html5_include_partial_segment_for_jumbo_ll")&&xa(k)&&(Q.FU=!1),Q.GT=l.V("html5_use_non_active_broadcast_for_post_live"), Q.i9=l.V("html5_use_centralized_player_time"),Q.Gg=l.V("html5_log_centralized_player_time"),Q.K7=l.V("html5_consume_onesie_sabr_seek"),Q.qO=l.V("html5_enable_sabr_seek_loader_refactor"),Q.KR=l.V("html5_update_segment_start_time_from_media_header"),k.enableServerStitchedDai&&(Q.S=!0,Q.CH=l.V("html5_reset_server_stitch_state_for_non_sabr_seek"),Q.Ws=l.V("html5_remove_ssdai_append_pause")&&!k.lf(),Q.uK=l.V("html5_ssdai_log_ssevt_in_loader")||l.V("html5_ssdai_log_ssevt_in_loader_200ms")||l.V("html5_ssdai_log_ssevt_in_loader_timers")|| l.V("html5_ssdai_log_ssevt_in_loader_cuerange"),l.V("html5_ssdai_log_ssevt_in_loader_timers")?Q.Tg=1:l.V("html5_ssdai_log_ssevt_in_loader_200ms")?Q.Tg=3:l.V("html5_ssdai_log_ssevt_in_loader_cuerange")&&(Q.Tg=0)),Q.Hf=l.J3()||k.lf());Q.F_=g.Qrg(k);Wr(l.N,$g.BITRATE)&&(Q.qY=NaN);if(Y=g.jj(l.experiments,"html5_request_size_max_kb"))Q.sK=Y*1024;l.N.L?Q.E4="; "+$g.EXPERIMENTAL.name+"=allowed":l.V("html5_enable_cobalt_tunnel_mode")&&g.ph()&&(Y=$g.TUNNELMODE,Q.E4="; "+Y.name+"="+Y.valid);k=k.serverPlaybackStartConfig; (k==null?0:k.enable)&&(k==null?0:k.playbackStartPolicy)&&(Q.Sf=!0,ov(Q,k.playbackStartPolicy,2));k=lLg(T);T.Si.removeAll();a:{Y=T.nA.m9;if(l=T.videoData.videoId)if(v=Y.T.get(l)){Y.T.remove(l);Y=v;break a}Y=void 0}T.loader=new g.Rf(T,T.Hd.schedule,Q,T.videoData.T,T.videoData.L,Zx(T),k,T.videoData.enableServerStitchedDai,Y,T.videoData.z9);Q=T.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&T.videoData.isLivePlayback&&T.ME()?!0:T.HJ&&g.G4(T.Hd)&&T.videoData.isLivePlayback;T.loader.initialize(T.getCurrentTime(), Zx(T),Q);T.videoData.probeUrl&&(T.loader.f_=T.videoData.probeUrl);if(T.ZS.length||T.HJ)T.videoData.cotn||fv(T,!1);Ysu(T.KA,T.loader);T.Gx&&(qQC(T.loader,new g.Zv(T.Gx)),T.T9("sdai",{sdl:1}));g.mK(T.videoData)&&(T=T.loader,T.policy.vA=T.policy.Re)}; Yk=function(T){T.loader&&(T.loader.dispose(),T.loader=null,Ysu(T.KA,null));T.e1()?oWb(T):T.I0()}; oWb=function(T){if(T.j6)if(T.logger.debug("release media source"),T.wN(),T.j6.N)try{T.Hd.J3()&&T.T9("rms",{l:"vprms",sr:T.e1(),rs:Zl(T.j6)});T.j6.clear();var Q;(Q=T.mediaElement)!=null&&(Q.S=T.j6);T.j6=null}catch(k){Q=new g.Wy("Error while clearing Media Source in VideoPlayer: "+k.name+", "+k.message),Q=GX(Q),T.handleError(Q),T.I0()}else T.I0()}; vWH=function(T,Q){Q=Q===void 0?!1:Q;if(T.j6)return T.j6.L;T.logger.debug("update media source");a:{Q=Q===void 0?!1:Q;try{g.ph()&&T.videoData.vI()&&ei5(T.mediaElement);var k=T.mediaElement.JH(T.My(),T.If())}catch(v){if(GjH(T.rJ,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",v);T.NL("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}T.lz(k,!1,!1,Q)}var l;return((l=T.JH())==null?void 0:l.L)||null}; LJu=function(T,Q){Q=Q===void 0?!1:Q;if(T.loader){T.videoData.enableServerStitchedDai&&GD5(T.loader);var k=T.getCurrentTime()-T.Px();T.loader.seek(k,{SM:Q}).kE(function(){})}else y4b(T)}; gW5=function(T,Q,k,l){k=k===void 0?!1:k;l=l===void 0?!1:l;if(T.j6&&(!Q||T.j6===Q)){T.logger.debug("media source opened");var v=T.getDuration();!v&&Kt(T.videoData)&&(v=25200);if(T.j6.isView){var L=v;T.logger.debug(function(){return"Set media source duration to "+L+", video duration "+v}); L>T.j6.getDuration()&&quC(T,L)}else quC(T,v);nDC(T.loader,T.j6,k,l);T.publish("mediasourceattached")}}; quC=function(T,Q){if(T.j6){T.j6.SR(Q);var k;(k=T.loader)!=null&&k.policy.i9&&(k.B=Q)}}; t$5=function(T,Q){VpI(T,Q.reason,Q.T.info,Q.token,Q.videoId)}; M4=function(T,Q){T.publish("internalvideodatachange",Q===void 0?"dataupdated":Q,T.videoData)}; ML5=function(T){for(var Q=g.B("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),k=Q.next();!k.done;k=Q.next())T.PP.Z(T.mediaElement,k.value,T.Xn,T);T.Hd.Xm&&T.mediaElement.rQ()&&(T.PP.Z(T.mediaElement,"webkitplaybacktargetavailabilitychanged",T.Bd_,T),T.PP.Z(T.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",T.Nde,T))}; Uag=function(T){g.m6(T.Y0);Yug(T)||(T.Y0=g.fh(function(){return Yug(T)},100))}; Yug=function(T){var Q=T.mediaElement;Q&&T.Nr&&!T.videoData.qO&&!bU("vfp",T.Rg.timerName)&&Q.Nm()>=2&&!Q.isEnded()&&TN(Q.Q8())&&T.Rg.tick("vfp");return(Q=T.mediaElement)&&!T.videoData.qO&&Q.getDuration()>0&&(Q.isPaused()&&Q.Nm()>=2&&TN(Q.Q8())&&(bU("pbp",T.Rg.timerName)||T.Rg.tick("pbp"),!T.videoData.dC||T.Cx||Q.isSeeking()||(T.Cx=!0,T.publish("onPlaybackPauseAtStart"))),Q=Q.getCurrentTime(),PV(T.V3,Q))?(T.KO(),!0):!1}; Zmg=function(T){T.Kc.M_();if(nt(T.videoData)&&Date.now()>T.Zi+6283){if(!(!T.isAtLiveHead()||T.videoData.T&&$0(T.videoData.T))){var Q=T.Kc;if(Q.qoe){Q=Q.qoe;var k=Q.provider.yq.rH(),l=g.qR(Q.provider);Rqb(Q,l,k);k=k.L;isNaN(k)||g.of(Q,l,"e2el",[k.toFixed(3)])}}T.V("html5_alc_live_log_rawlat")?(Q=T.videoData,Q=g.ZX(Q.G())?!0:g.s8(Q.G())?Q.drmProduct==="6":!1):Q=g.ZX(T.Hd);l=T.V("html5_always_log_rawlat");(Q||l)&&T.T9("rawlat",{l:kk(T.kC,"rawlivelatency").toFixed(3)});T.Zi=Date.now()}T.videoData.S&& Pj(T.videoData.S)&&(Q=T.I9())&&Q.videoHeight!==T.EO&&(T.EO=Q.videoHeight,VpI(T,"a",Rgf(T,T.videoData.u9)))}; Rgf=function(T,Q){if(Q.T.video.quality==="auto"&&Pj(Q.getInfo())&&T.videoData.t6)for(var k=g.B(T.videoData.t6),l=k.next();!l.done;l=k.next())if(l=l.value,l.getHeight()===T.EO&&l.T.video.quality!=="auto")return l.getInfo();return Q.getInfo()}; Okf=function(T){if(!nt(T.videoData))return NaN;var Q=0;T.loader&&T.videoData.T&&(Q=Kt(T.videoData)?T.loader.Ad.hx()||0:T.videoData.T.i9);return(0,g.XY)()/1E3-T.xM()-Q}; GK5=function(T){T.mediaElement&&T.mediaElement.Ax()&&(T.Wp=(0,g.XY)());T.Hd.SP?g.Zq(function(){fLu(T)},0):fLu(T)}; fLu=function(T){var Q;if((Q=T.j6)==null||!Q.u0()){if(T.mediaElement)try{T.F9=T.mediaElement.playVideo()}catch(l){Ul(T,"err."+l)}if(T.F9){var k=T.F9;k.then(void 0,function(l){T.logger.debug(function(){return"playMediaElement failed: "+l}); if(!g.J(T.playerState,4)&&!g.J(T.playerState,256)&&T.F9===k)if(l&&l.name==="AbortError"&&l.message&&l.message.includes("load"))T.logger.debug(function(){return"ignore play media element failure: "+l.message}); else{var v="promise";l&&l.name&&(v+=";m."+l.name);Ul(T,v);T.ZT=!0;T.videoData.vk=!0}})}}}; Ul=function(T,Q){g.J(T.playerState,128)||(T.LA(N3(T.playerState,1028,9)),T.T9("dompaused",{r:Q}),T.publish("onAutoplayBlocked"))}; Lv=function(T,Q){Q=Q===void 0?!1:Q;if(!T.mediaElement||!T.videoData.L)return!1;var k=Q;k=k===void 0?!1:k;var l=null;var v;if((v=T.videoData.L)==null?0:v.T){l=vWH(T,k);var L;(L=T.loader)==null||L.resume()}else Yk(T),T.videoData.u9&&(l=T.videoData.u9.Ge());v=T.mediaElement.Ef();k=!1;v&&v.equals(l)||(maf(T,l),k=!0);g.J(T.playerState,2)||(l=T.KA,Q=Q===void 0?!1:Q,l.N||!(l.L>0)||l.mediaElement&&l.mediaElement.getCurrentTime()>0||(Q={I_:"seektimeline_resumeTime",SM:Q},l.videoData.qO||(Q.seekSource=15), l.seekTo(l.L,Q)));a:{Q=k;if(cv(T.videoData)){if(!T.videoData.bl())break a}else if(!g.Wv(T.videoData))break a;if(T.mediaElement)if((l=T.videoData.N)&&T.mediaElement.rQ()){v=T.mediaElement.xB();if(T.QU)if(v!==T.QU.element)Gk(T);else if(Q&&l.flavor==="fairplay"&&!WD())Gk(T);else break a;if(T.V("html5_report_error_for_unsupported_tvos_widevine")&&WD()&&l.flavor==="widevine")T.NL("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{T.QU=new TT6(v,T.videoData,T.Hd);T.QU.subscribe("licenseerror", T.ut,T);T.QU.subscribe("qualitychange",T.kg9,T);T.QU.subscribe("heartbeatparams",T.qg,T);T.QU.subscribe("keystatuseschange",T.e9,T);T.QU.subscribe("ctmp",T.T9,T);Q=g.B(T.Si.keys);for(l=Q.next();!l.done;l=Q.next())l=T.Si.get(l.value),T.QU.tX(l);T.V("html5_eme_loader_sync")||T.Si.removeAll()}}else T.NL("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return k}; maf=function(T,Q){T.Rg.tick("vta");cP("vta",void 0,"video_to_ad");T.getCurrentTime()>0&&fGX(T.KA,T.getCurrentTime());T.mediaElement.activate(Q);T.j6&&TB(4);!T.videoData.qO&&T.playerState.isOrWillBePlaying()&&T.X8.start();if(TuH(T)){var k;if(Q=(k=T.mediaElement)==null?void 0:k.audioTracks())Q.onchange=function(){T.publish("internalaudioformatchange",T.videoData,!0)}}}; Gk=function(T){T.QU&&(T.QU.dispose(),T.QU=null)}; ILJ=function(T){var Q=Q===void 0?!1:Q;T.logger.debug("reattachVideoSource");T.mediaElement&&(T.j6?(Gk(T),T.I0(),vWH(T,Q)):(T.videoData.u9&&T.videoData.u9.Cq(),T.mediaElement.stopVideo()),T.playVideo())}; hgX=function(T,Q){T.Hd.V("html5_log_rebuffer_reason")&&(Q={r:Q,lact:Bd()},T.mediaElement&&(Q.bh=hB(T.mediaElement)),T.T9("bufreason",Q))}; sG5=function(T,Q){if(T.Hd.J3()&&T.mediaElement){var k=T.mediaElement.Tx();k.omt=(T.mediaElement.getCurrentTime()+T.Px()).toFixed(3);k.ps=T.playerState.state.toString(16);k.rt=(g.qR(T.Kc.provider)*1E3).toFixed();k.e=Q;T.d6[T.lm++%5]=k}try{if(Q==="timeupdate"||Q==="progress")return}catch(l){}T.logger.debug(function(){return"video element event "+Q})}; Suy=function(T){if(T.Hd.J3()){T.d6.sort(function(l,v){return+l.rt-+v.rt}); for(var Q=g.B(T.d6),k=Q.next();!k.done;k=Q.next())k=k.value,T.T9("vpe",Object.assign({t:k.rt},k));T.d6=[];T.lm=0}}; CzT=function(T){if(g.tH("cobalt")&&g.tH("nintendo switch")){var Q=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;T.T9("nxdock",{d:Q})}}; fv=function(T,Q){var k;(k=T.loader)==null||ryI(k,Q)}; J46=function(T){hy(T.videoData,"html5_set_debugging_opt_in")&&(T=g.xq(),g.Py(0,183)||(tg(183,!0),T.save()))}; m7I=function(T,Q){T.nA.jZ()||(T.T9("sgap",{f:Q}),T.nA.clearQueue(!1,Q==="pe"))}; yE=function(T){return T.V("html5_disable_video_player_initiated_seeks")&&cv(T.videoData)}; BuC=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);ws(this.api,"isLifaAdPlaying",function(){return Q.api.isLifaAdPlaying()}); this.events.Z(T,"serverstitchedvideochange",function(){var k;(k=Q.api.getVideoData())!=null&&k.lf()&&(Q.api.isLifaAdPlaying()?(Q.playbackRate=Q.api.getPlaybackRate(),Q.api.setPlaybackRate(1)):Q.api.setPlaybackRate(Q.playbackRate))}); this.playbackRate=1}; m8=function(T){zQ.call(this,"En bucle",g.rh.gG);this.U=T;var Q=T.V("delhi_modern_web_player_icons")?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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"}}]}:ak6();this.setIcon(Q);this.subscribe("select",this.S,this);T.createClientVe(this.element,this,28661);this.Z(T,"settingsMenuVisibilityChanged",this.T);this.listen("click",this.logClick);this.Z(T,"onLoopChange",this.onLoopChange);Xe(this,T.getLoopVideo());T.K$().A6(this)}; zgb=function(T){GQ.call(this,T);var Q=this;T.addEventListener("settingsMenuInitialized",function(){Q.menuItem||(Q.menuItem=new m8(Q.api),g.P(Q,Q.menuItem))}); T.addEventListener("videodatachange",function(k,l){k=Q.api.getPresentingPlayerType()===2;var v;(v=Q.menuItem)==null||v.o_(!l.isLivePlayback&&!k)})}; X1J=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);ws(this.api,"seekToChapterWithAnimation",function(k){Q.seekToChapterWithAnimation(k)}); ws(this.api,"seekToTimeWithAnimation",function(k,l){Q.seekToTimeWithAnimation(k,l)}); ws(this.api,"renderChapterSeekingAnimation",function(k,l,v){Q.api.renderChapterSeekingAnimation(k,l,v)}); ws(this.api,"setMacroMarkers",function(k){Q.setMacroMarkers(T,k)}); ws(this.api,"changeMarkerVisibility",function(k,l,v){Q.changeMarkerVisibility(k,l,v)}); ws(this.api,"isSameMarkerTypeVisible",function(k){return Q.isSameMarkerTypeVisible(k)})}; w1X=function(T,Q,k){var l=T.api.getCurrentTime()*1E30&&v>0&&(k.width+=v,g.W2(Q.element,"width",k.width+"px")));T.size=k}}; g.Dx=function(T,Q){var k=T.T[T.T.length-1];k!==Q&&(T.T.push(Q),v$g(T,k,Q))}; g.a4=function(T){if(!(T.T.length<=1)){var Q=T.T.pop(),k=T.T[0];T.T=[k];v$g(T,Q,k,!0)}}; v$g=function(T,Q,k,l){Lvu(T);Q&&(Q.unsubscribe("size-change",T.yd,T),Q.unsubscribe("back",T.NN,T));k.subscribe("size-change",T.yd,T);k.subscribe("back",T.NN,T);if(T.Sr){g.oF(k.element,l?"ytp-panel-animate-back":"ytp-panel-animate-forward");k.XB(T.element);k.focus();T.element.scrollLeft=0;T.element.scrollTop=0;var v=T.size;o$f(T);g.QP(T.element,v);T.B=new g.FA(function(){qLt(T,Q,k,l)},20,T); T.B.start()}else k.XB(T.element),Q&&Q.detach()}; qLt=function(T,Q,k,l){T.B.dispose();T.B=null;g.oF(T.element,"ytp-popup-animating");l?(g.oF(Q.element,"ytp-panel-animate-forward"),g.Lb(k.element,"ytp-panel-animate-back")):(g.oF(Q.element,"ytp-panel-animate-back"),g.Lb(k.element,"ytp-panel-animate-forward"));g.QP(T.element,T.size);T.C=new g.FA(function(){g.Lb(T.element,"ytp-popup-animating");Q.detach();g.qN(Q.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);T.C.dispose();T.C=null},250,T); T.C.start()}; Lvu=function(T){T.B&&g.yq(T.B);T.C&&g.yq(T.C)}; u_=function(T){g.cp.call(this,T,"ytp-shopping-product-menu");this.xP=new g.b_(this.U);g.P(this,this.xP);this.hide();g.Dx(this,this.xP);g.TQ(this.U,this.element,4)}; MWt=function(T,Q,k){var l,v=Q==null?void 0:(l=Q.text)==null?void 0:l.simpleText;v&&(k=g$X(T,k,v,Q==null?void 0:Q.icon,Q==null?void 0:Q.secondaryIcon),Q.navigationEndpoint&&k.listen("click",function(){T.U.tj("innertubeCommand",Q.navigationEndpoint);T.hide()},T))}; YLC=function(T,Q,k){var l,v=Q==null?void 0:(l=Q.text)==null?void 0:l.simpleText;v&&g$X(T,k,v,Q==null?void 0:Q.icon).listen("click",function(){var L;(Q==null?void 0:(L=Q.icon)==null?void 0:L.iconType)==="HIDE"?T.U.publish("featuredproductdismissed"):Q.serviceEndpoint&&T.U.tj("innertubeCommand",Q.serviceEndpoint);T.hide()},T)}; g$X=function(T,Q,k,l,v){Q=new g.UQ(g.RR({},[],!1,!!v),Q,k);v&&Q.updateValue("secondaryIcon",UKy(v));Q.setIcon(UKy(l));g.P(T,Q);T.xP.A6(Q,!0);return Q}; UKy=function(T){if(!T)return null;switch(T.iconType){case "ACCOUNT_CIRCLE":return{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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 SrX();case "HIDE":return{X:"svg",K:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"g",W:[{X:"path",K:{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 BZ()}}; nv=function(T){N4.call(this,T,!1,!0);this.isCounterfactual=this.S=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.j=!0;this.overflowButton=new g.p({X:"button",Rk:["ytp-featured-product-overflow-icon","ytp-button"],K:{"aria-haspopup":"true"}});this.overflowButton.hide();g.P(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.p({X:"img",J:"ytp-suggested-action-badge-img",K:{src:"{{url}}"}}); this.thumbnailImage.hide();g.P(this,this.thumbnailImage);this.thumbnailIcon=new g.p({X:"div",J:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.P(this,this.thumbnailIcon);this.banner=new g.p({X:"a",J:"ytp-suggested-action-container",W:[this.thumbnailImage,this.thumbnailIcon,{X:"div",J:"ytp-suggested-action-details",W:[{X:"text",J:"ytp-suggested-action-title",S6:"{{title}}"},{X:"text",J:"ytp-suggested-action-subtitle",S6:"{{subtitle}}"},{X:"text",J:"ytp-suggested-action-metadata-text", S6:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.P(this,this.banner);this.banner.XB(this.L.element);this.Z(this.U,"videodatachange",this.onVideoDataChange);this.Z(this.U,g.ej("suggested_action_view_model"),this.qG6);this.Z(this.U,g.Ft("suggested_action_view_model"),this.T5q);this.Z(this.overflowButton.element,"click",this.xv);this.Z(T,"featuredproductdismissed",this.Np);this.U.createServerVe(this.banner.element,this.banner,!0)}; R95=function(T){T.isInitialized&&(T.enabled=T.isVisible,T.qO=T.isVisible,dW(T),T.FE(),T.thumbnailImage.o_(T.isVisible),T.shouldHideDismissButton||T.dismissButton.o_(T.isVisible),T.shouldShowOverflowButton&&T.overflowButton.o_(T.isVisible))}; Kv=function(){nv.apply(this,arguments)}; Za6=function(T){GQ.call(this,T);this.T=new Kv(this.api);g.P(this,this.T);g.TQ(this.api,this.T.element,4)}; xk=function(T){GQ.call(this,T);var Q=this;this.T=!0;var k=new g.Bj(T);g.P(this,k);k.Z(T,"internalaudioformatchange",function(l,v){f4b(Q,l,v)}); k.Z(T,"videoplayerreset",function(){GuT(Q)}); k.Z(T,"videodatachange",function(l,v){Q.onVideoDataChange(l,v)})}; f4b=function(T,Q,k){if(k){var l="";mKu(T,Q)&&(l=Q,T.api.G().K_=Q);if(l&&I4X(T,l)){uvu(T.api,l);var v;DQ(cB(T.api.G(),(v=T.api.getVideoData())==null?void 0:g.YD(v)),function(L){h9b(T,l,L)})}}}; GuT=function(T){var Q;if((Q=CP())==null?0:Q.size){var k;DQ(cB(T.api.G(),(k=T.api.getVideoData())==null?void 0:g.YD(k)),function(l){(l=sCg(l))&&I4X(T,l)&&(T.api.G().K_=l)})}}; h9b=function(T,Q,k){sCg(k)!==Q&&(SLC([{settingItemId:Pp(k),settingOptionValue:{stringValue:Q}}]),DQ(T.HG(),function(l){Cvy(l,Pp(k),{stringValue:Q})}))}; Caf=function(T,Q){ar(DQ(DQ(T.HG(),function(k){return s$b(k,[Pp(Q)])}),function(k){if(k){k=g.B(k); for(var l=k.next();!l.done;l=k.next()){var v=l.value;l=v.key;v=v.value;l&&v&&(SLC([{settingItemId:l,settingOptionValue:v}]),GuT(T))}}}),function(){T.T=!0})}; mKu=function(T,Q){T=T.api.getAvailableAudioTracks();T=g.B(T);for(var k=T.next();!k.done;k=T.next())if(k=k.value,k.getLanguageInfo().getId()===Q)return k;return null}; sCg=function(T){T=Pp(T);var Q=CP();T=Q?Q.get(T):void 0;return T&&T.stringValue?T.stringValue:""}; Pp=function(T){var Q=(484).toString();T&&(Q=(483).toString());return Q}; I4X=function(T,Q){var k;return Q.split(".")[0]!==""&&((k=T.api.getVideoData())==null?void 0:!Ra(k))}; SLC=function(T){var Q=CP();Q||(Q=new Map);T=g.B(T);for(var k=T.next();!k.done;k=T.next())k=k.value,Q.set(k.settingItemId,k.settingOptionValue);Q=JSON.stringify(Object.fromEntries(Q));g.ri("yt-player-user-settings",Q,2592E3)}; g.Hp=function(T,Q,k,l,v,L,q){g.UQ.call(this,g.RR({"aria-haspopup":"true"}),Q,T);this.YB=l;this.D=!1;this.L=null;this.options={};this.S=new g.b_(k,void 0,T,v,L,q);g.P(this,this.S);this.listen("keydown",this.Xy);this.listen("click",this.open)}; BU6=function(T){if(T.L){var Q=T.options[T.L];Q.element.getAttribute("aria-checked");Q.element.setAttribute("aria-checked","false");T.L=null}}; z9g=function(T,Q){g.Hp.call(this,"Temporizador de apagado",g.rh.SLEEP_TIMER,T,Q);this.U=T;this.j={};this.B=this.W0("Off");this.C=this.T="";T.V("web_settings_menu_icons")&&(Q=T.V("delhi_modern_web_player_icons")?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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"}}]}:{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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(Q)); this.Y=new g.p({X:"div",Rk:["ytp-menuitem-label-wrapper"],W:[{X:"div",S6:"Fin del video"},{X:"div",Rk:["ytp-menuitem-sublabel"],S6:"{{content}}"}]});g.P(this,this.Y);this.listen("click",this.onClick);this.Z(T,"videodatachange",this.onVideoDataChange);this.Z(T,"presentingplayerstatechange",this.Aj);this.Z(T,"settingsMenuVisibilityChanged",this.Uv);T.createClientVe(this.element,this,218889);this.Aj();this.U.tj("onSleepTimerFeatureAvailable")}; Xwf=function(T){var Q="Off 10 15 20 30 45 60".split(" "),k;((k=T.U.getVideoData())==null?0:k.isLivePlayback)||Q.push("End of video");k=T.U.getPlaylist();var l;k&&((l=k.listId)==null?void 0:l.type)!=="RD"&&Q.push("End of playlist");T.VE(g.IQ(Q,T.W0));T.j=g.yJ(Q,T.W0,T);Q=T.W0("End of video");T.options[Q]&&g.YH(T.options[Q],T.Y)}; wwX=function(T,Q){var k=T.j[Q],l=k==="End of video"||k==="End of playlist";k==="Off"&&(T.T="");T.U.getPlayerState()!==0&&T.U.getPlayerState()!==5||!l?(T.B=Q,g.Hp.prototype.BT.call(T,Q),T.U$(Q),T.U.tj("onSleepTimerSettingsChanged",k)):T.U.tj("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El video ya finaliz\u00f3"}}}}})}; tO=function(T){GQ.call(this,T);var Q=this;T.addEventListener("settingsMenuInitialized",function(){Q.menuItem||(Q.menuItem=new z9g(Q.api,Q.api.K$()),g.P(Q,Q.menuItem))}); T.addEventListener("openSettingsMenuItem",function(k){if(k==="menu_item_sleep_timer"){if(!Q.menuItem){var l;(l=Q.api.K$())==null||l.fA()}Q.menuItem.open()}}); ws(T,"resetSleepTimerMenuSettings",function(){Q.resetSleepTimerMenuSettings()}); ws(T,"setSleepTimerTimeLeft",function(k){Q.setSleepTimerTimeLeft(k)}); ws(T,"setVideoTimeLeft",function(k){Q.setVideoTimeLeft(k)})}; dK5=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"onSnackbarMessage",function(k){switch(k){case 1:k=Q.api.getPlayerStateObject(),k.isBuffering()&&(Q.api.V("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.J(k,8)&&g.J(k,16))&&Q.api.tj("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"\u00bfEl video se interrumpe?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT", text:{runs:[{text:"Descubre los motivos"}]},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.pv=function(T,Q,k,l,v){Q=Q===void 0?!1:Q;l=l===void 0?!1:l;v=v===void 0?!1:v;g.ox.call(this);this.D=v;this.C=!1;this.Y=new wi(this);this.N=this.B=null;this.L=this.S=!1;g.P(this,this.Y);this.target=T;this.T=Q;this.j=k||T;this.C=l;Q&&(g.Y1&&this.target.setAttribute("draggable","true"),v||(this.target.style.touchAction="none"));Ol(this)}; Wp=function(T){g.N5(T.Y,!T.T)}; Ol=function(T){T.N=null;T.B=null;T.Z($k("over"),T.JX);T.Z("touchstart",T.Vn);T.T&&T.Z($k("down"),T.Le6)}; NUf=function(T,Q){for(var k=0;kZ.start&&k>=5;z+=r}v=z.substr(0,4)+" "+z.substr(4,4)+" "+z.substr(8,4)+" "+(z.substr(12,4)+" "+z.substr(16,4))}else v="";q={video_id_and_cpn:String(Q.videoId)+" / "+v,codecs:"",dims_and_frames:"",bandwidth_kbps:q.toFixed(0)+" Kbps",buffer_health_seconds:U.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:R?"":"display:none",drm:R,debug_info:k,extra_debug_info:"",bandwidth_style:G,network_activity_style:G,network_activity_bytes:Y.toFixed(0)+" KB",shader_info:f,shader_info_style:f?"":"display:none",playback_categories:""};Y=l.clientWidth+"x"+l.clientHeight+(Z>1?"*"+Z.toFixed(2):"");U="-";L.totalVideoFrames&&(U=(L.droppedVideoFrames||0)+" dropped of "+L.totalVideoFrames);q.dims_and_frames=Y+" / "+U;T=T.getVolume();Y=Vwu(Q);var D;if((D=Q.Y)==null?0:D.audio.S)D= "VB";else{var K;D=((K=Q.Y)==null?0:K.audio.T)?"DRC":Math.round(T*Y)+"%"}K=Math.round(T)+"% / "+D;D=Q.uK.toFixed(1);isFinite(Number(D))&&(K+=" (content loudness "+D+"dB)");q.volume=K;q.resolution=l.videoWidth+"x"+l.videoHeight;if(l=Q.S){if(K=l.video)D=K.fps,D>1&&(q.resolution+="@"+D),(D=L.N6)&&D.video&&(q.resolution+=" / "+D.video.width+"x"+D.video.height,D.video.fps>1&&(q.resolution+="@"+D.video.fps)),q.codecs=DKC(l),!Q.Y||l.audio&&l.video?l.Xb&&(q.codecs+=" / "+l.Xb+"A"):q.codecs+=" / "+DKC(Q.Y), K.T||K.primaries?(D=K.T||"unknown",D==="smpte2084"?D+=" (PQ)":D==="arib-std-b67"&&(D+=" (HLG)"),q.color=D+" / "+(K.primaries||"unknown"),q.color_style=""):q.color_style="display:none";if(l.debugInfo)for(q.fmt_debug_info="",l=g.B(l.debugInfo),K=l.next();!K.done;K=l.next())K=K.value,q.fmt_debug_info+=K.label+":"+K.text+" ";q.fmt_debug_info_style=q.fmt_debug_info&&q.fmt_debug_info.length>0?"":"display:none"}l=Q.isLivePlayback;K=Q.KY;q.live_mode_style=l||K?"":"display:none";q.live_latency_style=l?"": "display:none";if(K)q.live_mode="Post-Live"+(Kt(Q)?" Manifestless":"");else if(l){K=L.n0;q.live_latency_secs=K.toFixed(2)+"s";l=Kt(Q)?"Manifestless, ":"";Q.hj&&(l+="Windowed, ");D="Uncertain";if(K>=0&&K<120)if(Q.latencyClass&&Q.latencyClass!=="UNKNOWN")switch(Q.latencyClass){case "NORMAL":D="Optimized for Normal Latency";break;case "LOW":D="Optimized for Low Latency";break;case "ULTRALOW":D="Optimized for Ultra Low Latency";break;default:D="Unknown Latency Setting"}else D=Q.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";l+=D;(K=L.Z7)&&(l+=", seq "+K.sequence);q.live_mode=l}!L.isGapless||NY(Q)&&L.jZ||(q.playback_categories+="Gapless ");q.playback_categories_style=q.playback_categories?"":"display:none";q.bandwidth_samples=L.I6;q.network_activity_samples=L.ea;q.live_latency_samples=L.f0;q.buffer_health_samples=L.hS;L=g.mK(Q);if(Q.cotn||L)q.cotn_and_local_media=(Q.cotn?Q.cotn:"null")+" / "+L;q.cotn_and_local_media_style=q.cotn_and_local_media?"":"display:none"; hy(Q,"web_player_release_debug")?(q.release_name=M[7],q.release_style=""):q.release_style="display:none";q.debug_info&&m.length>0&&q.debug_info.length+m.length<=60?q.debug_info+=" "+m:q.extra_debug_info=m;q.extra_debug_info_style=q.extra_debug_info&&q.extra_debug_info.length>0?"":"display:none";return q}; DKC=function(T){var Q=/codecs="([^"]*)"/.exec(T.mimeType);return Q&&Q[1]?Q[1]+" ("+T.itag+")":T.itag}; VW=function(T,Q,k,l,v){g.p.call(this,{X:"div",J:"ytp-horizonchart"});this.C=Q;this.sampleCount=k;this.Y=l;this.B=v;this.index=0;this.heightPx=-1;this.L=this.S=null;this.T=Math.round(T/k);this.element.style.width=this.T*this.sampleCount+"px";this.element.style.height=this.C+"em"}; Tx=function(T,Q){if(T.heightPx===-1){var k=null;try{k=g.fO("CANVAS"),T.S=k.getContext("2d")}catch(Y){}if(T.S){var l=T.T*T.sampleCount;T.L=k;T.L.width=l;T.L.style.width=l+"px";T.element.appendChild(T.L)}else for(T.sampleCount=Math.floor(T.sampleCount/4),T.T*=4,k=0;k1?2:1,T.L.height=T.heightPx*k,T.L.style.height= T.heightPx+"px",T.S.scale(1,k)));Q=g.B(Q);for(l=Q.next();!l.done;l=Q.next()){k=T;var v=T.index,L=l.value;for(l=0;l+20&&g.IO(Q.S.element);l.classList.add("ytp-timely-actions-overlay");Q.S.element.appendChild(l)}); g.P(this,this.S);this.V("web_player_overlay_positioned_layout")?this.events.Z(T,"basechromeinitialized",function(){Q.api.EF(Q.S.element,4,!0);Q.S.element.setAttribute("data-overlay-order","10")}):g.TQ(this.api,this.S.element,4)}; E$u=function(T){T.timelyActions&&(T.Y=T.timelyActions.reduce(function(Q,k){if(k.cueRangeId===void 0)return Q;Q[k.cueRangeId]=0;return Q},{}))}; lj=function(T,Q){if(T.timelyActions){T=g.B(T.timelyActions);for(var k=T.next();!k.done;k=T.next())if(k=k.value,k.cueRangeId===Q)return k}}; yEb=function(T,Q){if((T=lj(T,Q))&&T.onCueRangeExit)return uA(T.onCueRangeExit)}; $Kb=function(T,Q){return T.L===void 0?!1:Q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(Q.seekLengthMilliseconds)===5E3?T.L===72:Q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(Q.seekLengthMilliseconds)===1E4?T.L===74:Q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(Q.seekLengthMilliseconds)===5E3?T.L===71:Q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(Q.seekLengthMilliseconds)===1E4?T.L===73:!1}; ia6=function(T,Q){var k=Number(Q==null?void 0:Q.maxVisibleDurationMilliseconds);k&&(oh(T),T.qO=setTimeout(function(){if(T.T!==void 0&&(Q==null?void 0:Q.cueRangeId)===T.T){T.D=!1;var l=yEb(T,T.T);l&&T.api.tj("innertubeCommand",l)}},k))}; oh=function(T){T.qO&&clearTimeout(T.qO);T.qO=void 0;T.D=!1}; JE5=function(T){if(T=T.getWatchNextResponse()){var Q,k;T=(Q=T.playerOverlays)==null?void 0:(k=Q.playerOverlayRenderer)==null?void 0:k.timelyActionsOverlayViewModel;Q=g.t(T,VWy);if(Q!=null&&Q.timelyActions)return Q==null?void 0:Q.timelyActions.map(function(l){return g.t(l,Tkt)}).filter(function(l){return!!l})}}; QgJ=function(T){GQ.call(this,T);var Q=this;ds(this.api,"getPlaybackRate",function(){return Q.api.getPlaybackRate()}); ds(this.api,"setPlaybackRate",function(k){typeof k==="number"&&Q.api.setPlaybackRate(k)})}; va=function(T,Q,k,l){zQ.call(this,"VOICE_BOOST",g.rh.CZ);this.T=!1;this.U=T;this.YB=T.K$();this.Y=Q;this.L=k;this.hasVoiceBoostAudioTrack=l;this.Z(T,"videodatachange",this.S);this.setIcon(AgI());this.subscribe("select",this.B,this);this.S()}; Lk=function(T){GQ.call(this,T);var Q=this;this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"settingsMenuInitialized",function(){jgg(Q)}); ws(this.api,"getVoiceBoostUserPreference",function(){return Q.getVoiceBoostUserPreference()}); ws(this.api,"setVoiceBoostUserPreference",function(l){Q.setVoiceBoostUserPreference(l)}); ws(this.api,"hasVoiceBoostAudioTrack",function(){return Q.hasVoiceBoostAudioTrack()}); var k;this.T=(k=vpC())!=null?k:0;this.updateEnvironmentData()}; jgg=function(T){T.menuItem||(T.menuItem=new va(T.api,function(Q){T.setVoiceBoostUserPreference(Q)},function(){return T.getVoiceBoostUserPreference()},function(){return T.hasVoiceBoostAudioTrack()}),g.P(T,T.menuItem))}; ktf=function(T){T=T.IK();if(!T)return!1;T=g.k5(T).exp||"";return T.includes("xpv")||T.includes("xpe")}; lNy=function(T){T=g.B(g.qD(T,!0));for(var Q=T.next();!Q.done;Q=T.next())if(ktf(Q.value))return!0;return!1}; o7g=function(T,Q){T=g.B(g.qD(T,!0));for(var k=T.next();!k.done;k=T.next())if(k=k.value,ktf(k)){var l={potc:"1",pot:Q};k.url&&(k.url=lC(k.url,l))}}; v7f=function(T){return g.a(function(Q){if(Q.S==1)return g.z5(Q,2),g.c(Q,T,4);if(Q.S!=2)return g.d6(Q,0);g.by(Q);g.BT(Q)})}; MD=function(T){GQ.call(this,T);var Q=this;this.useLivingRoomPoToken=!1;this.N=new g.Zb;this.T=!1;this.Rg=null;this.j=!1;this.Y=null;this.B=!1;var k=T.G().getWebPlayerContextConfig();this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"spsumpreject",function(l,v,L){Q.B=v;l&&Q.j&&!Q.Y&&(Q.V("html5_generate_content_po_token")&&L?Q.rY(L):Q.V("html5_generate_session_po_token")&&LLb(Q));Q.Y||Q.api.T9("stp",{s:+Q.j,b:+Q.B})}); this.events.Z(T,"poTokenVideoBindingChange",function(l){Q.rY(l)}); this.useLivingRoomPoToken=!(k==null||!k.useLivingRoomPoToken);T.addEventListener("csiinitialized",function(){Q.Rg=T.eZ();var l=(Q.V("html5_generate_session_po_token")||Q.V("html5_generate_content_po_token"))&&!Q.useLivingRoomPoToken;try{if(Q.V("html5_use_shared_owl_instance"))q05(Q);else if(l){Q.Rg.Uh("pot_isc");var v=g.jj(Q.api.G().experiments,"html5_webpo_kaios_defer_timeout_ms");v?(Q.L=Hn(),g.Zq(function(){gN(Q)},v)):Q.V("html5_webpo_idle_priority_job")?(Q.L=Hn(),g.Er(g.iu(),function(){gN(Q)})): gN(Q)}}catch(L){L instanceof Error&&g.rB(L)}}); T.addEventListener("trackListLoaded",this.Ts.bind(this));T.G2(this)}; g7y=function(T){var Q=S4(T.experiments,"html5_web_po_request_key");return Q?Q:g.G4(T)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; M5J=function(T){var Q=new vf5,k={},l=(k["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",k);return new sp(Q,T,function(){return l})}; Y0f=function(T){return new Sh(T)}; YY=function(T,Q){T.V("html5_webpo_bge_ctmp")&&T.api.T9(Q,{hwpo:!!T.S,hwpor:T.T})}; q05=function(T){var Q,k;g.a(function(l){if(l.S==1)return YY(T,"swpo_i"),T.L=Hn(),Us(T),g.c(l,Ty(),2);if(l.S!=3)return Q=l.T,YY(T,"swpo_co"),g.c(l,aUu(Q),3);k=l.T;T.V("html5_web_po_token_disable_caching")||k.bI(150);T.S=k;YY(T,"swpo_cc");v7f(k.Rf()).then(function(){T.T=!0;T.N.resolve();YY(T,"swpo_re")}); g.Zq(function(){gN(T);YY(T,"swpo_si")},0); g.BT(l)})}; ZqX=function(T){var Q=T.api.G(),k=M5J(g7y(Q)),l=k.Xo.bind(k);k.Xo=function(Y){var U;return g.a(function(R){if(R.S==1)return g.c(R,l(Y),2);U=R.T;T.api.T9("itr",{});return R.return(U)})}; try{var v=Y0f({J1:k,s3:{maxAttempts:5},uA:{XJ:"CLEn",disable:Q.experiments.Wd("html5_web_po_disable_remote_logging")||UdI.includes(g.Rq(Q.fz)||""),F7:yBC(Q.experiments),Ww:Q.experiments.Wd("wpo_gel_strz")?function(Y){var U=RR6.get(Y);U||(U=new mht(Y),U=new g.td(U),RR6.set(Y,U));return U}:void 0, Em9:T.V("wpo_dis_lfdms")?0:1E3},gBd:g.rB});var L=new x2({FI:v,J1:k,onError:g.rB});v7f(L.Rf()).then(function(){T.T=!0;T.N.resolve()}); T.V("html5_web_po_token_disable_caching")||L.bI(150);g.P(T,v);g.P(T,L);T.S=L}catch(Y){g.rB(Y);var q;(q=v)==null||q.dispose()}}; gN=function(T){var Q=T.api.G();T.Rg.Uh("pot_ist");T.S||ZqX(T);T.V("html5_bandaid_attach_content_po_token")||(T.V("html5_generate_session_po_token")&&(Us(T),LLb(T)),Q=g.jj(Q.experiments,"html5_session_po_token_interval_time_ms")||0,Q>0&&(T.C=g.fh(function(){Us(T)},Q)),T.j=!0)}; Us=function(T){var Q,k,l,v;g.a(function(L){if(!T.V("html5_generate_session_po_token")||T.useLivingRoomPoToken)return L.return();Q=T.api.G();k=g.$i("EOM_VISITOR_DATA")||g.$i("VISITOR_DATA");l=Q.kh?Q.datasyncId:k;v=S4(Q.experiments,"html5_mock_content_binding_for_session_token")||Q.livingRoomPoTokenId||l;Q.vk=Rh(T,v);g.BT(L)})}; Rh=function(T,Q){if(!T.S){if(T.L)try{return T.L(Q)}catch(L){g.rB(L)}return""}try{T.Rg.Uh(T.T?"pot_cms":"pot_csms");var k={Nl:!0,V0:!0,uh:Q};T.V("html5_web_po_token_disable_caching")||(k.Qo={QN:Q,VO:!0,Hb:!0});var l=T.S.JL(k);T.Rg.Uh(T.T?"pot_cmf":"pot_csmf");if(T.T){var v;(v=T.Y)==null||v.resolve();T.Y=null;T.B&&(T.B=!1,T.api.app.Pd().NG(!1))}return l}catch(L){return g.rB(L),""}}; LLb=function(T){T.S&&(T.Y=new GN,T.N.promise.then(function(){T.Rg.Uh("pot_if");Us(T)}))}; g.ZG=function(T,Q,k){g.gl(T.element,"ytp-suggestion-set",!!Q.videoId);var l=Q.playlistId;k=Q.rO(k?k:"mqdefault.jpg");var v=null,L=null;Q instanceof iF&&(Q.lengthText?(v=Q.lengthText||null,L=Q.mO||null):Q.lengthSeconds&&(v=g.CN(Q.lengthSeconds),L=g.CN(Q.lengthSeconds,!0)));var q=!!l;l=q&&E8(l).type==="RD";var Y=Q instanceof iF?Q.isLivePlayback:null,U=Q instanceof iF?Q.isUpcoming:null,R=Q.author,Z=Q.shortViewCount,f=Q.publishedTimeText,G=[],m=[];R&&G.push(R);Z&&(G.push(Z),m.push(Z));f&&m.push(f);k= {title:Q.title,author:R,author_and_views:G.join(" \u2022 "),aria_label:Q.ariaLabel||g.o0("Ver $TITLE",{TITLE:Q.title}),duration:v,timestamp:L,url:Q.fB(),is_live:Y,is_upcoming:U,is_list:q,is_mix:l,background:k?"background-image: url("+k+")":"",views_and_publish_time:m.join(" \u2022 "),autoplayAlternativeHeader:Q.o9};Q instanceof yk&&(k.playlist_length=Q.playlistLength);T.update(k)}; g.fk=function(T){var Q=T.G(),k=g.hW||g.Va?{style:"will-change: opacity"}:void 0,l=Q.Y,v=["ytp-modern-videowall-still"];Q.S&&v.push("ytp-videowall-show-text");g.p.call(this,{X:"a",Rk:v,K:{href:"{{url}}",target:l?Q.D:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},W:[{X:"div",J:"ytp-modern-videowall-still-image",K:{style:"{{background}}"},W:[{X:"span",J:"ytp-modern-videowall-still-info-duration",S6:"{{duration}}"}]},{X:"span",J:"ytp-modern-videowall-still-info", K:{"aria-hidden":"true"},W:[{X:"span",J:"ytp-modern-videowall-still-info-bg",W:[{X:"span",J:"ytp-modern-videowall-still-info-content",K:k,W:[{X:"span",J:"ytp-modern-videowall-still-info-title",S6:"{{title}}"},{X:"span",J:"ytp-modern-videowall-still-info-author",S6:"{{author_and_views}}"},{X:"span",J:"ytp-modern-videowall-still-info-live",S6:"En vivo"}]}]}]},{X:"span",Rk:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],K:{"aria-hidden":"true"},W:[{X:"span",J:"ytp-modern-videowall-still-listlabel-icon"}, "Playlist",{X:"span",J:"ytp-modern-videowall-still-listlabel-length",W:[" (",{X:"span",S6:"{{playlist_length}}"},")"]}]},{X:"span",Rk:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],K:{"aria-hidden":"true"},W:[{X:"span",J:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{X:"span",J:"ytp-modern-videowall-still-listlabel-length",S6:" (50+)"}]}]});this.suggestion=null;this.S=l;this.api=T;this.T=new g.Bj(this);g.P(this,this.T);this.listen("click",this.onClick); this.listen("keypress",this.onKeyPress);this.T.Z(T,"videodatachange",this.onVideoDataChange);T.createServerVe(this.element,this);this.onVideoDataChange()}; g.fNb=function(T,Q){if(T.suggestion!==Q){T.suggestion=Q;var k=T.api.G();g.ZG(T,Q,"hqdefault.jpg");if(g.Qk(k)&&!T.api.V("web_player_log_click_before_generating_ve_conversion_params")){k=Q.fB();var l={};g.Ay(T.api,"addEmbedsConversionTrackingParams",[l]);k=g.sD(k,l);T.updateValue("url",k)}(Q=(Q=Q.sessionData)&&Q.itct)&&T.api.setTrackingParams(T.element,Q)}}; mdt=function(T,Q){g.p.call(this,{X:"div",Rk:["ytp-fullscreen-grid"],W:[{X:"div",J:"ytp-fullscreen-grid-hover-overlay",K:{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"},W:[{X:"div",J:"ytp-fullscreen-grid-hover-overlay-chevron",W:[{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"g",K:{filter:"url(#filter0_d_3104_799356)"},W:[{X:"path",K:{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"}}]},{X:"defs",W:[{X:"filter",K:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},W:[{X:"feFlood",K:{"flood-opacity":"0",result:"BackgroundImageFix"}},{X:"feColorMatrix",K:{"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"}},{X:"feOffset"},{X:"feGaussianBlur",K:{stdDeviation:"0.5"}},{X:"feComposite",K:{in2:"hardAlpha",operator:"out"}},{X:"feColorMatrix",K:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}}, {X:"feBlend",K:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{X:"feBlend",K:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{X:"div",J:"ytp-fullscreen-grid-main-content",W:[{X:"div",J:"ytp-fullscreen-grid-header",W:[{X:"div",J:"ytp-fullscreen-grid-header-buttons",W:[{X:"button",Rk:["ytp-grid-replay-button","ytp-button"],K:{title:"Volver a reproducir","aria-keyshortcuts":"r","aria-label":"Volver a reproducir","data-title-no-tooltip":"Volver a reproducir"}, W:[u45()]},{X:"button",J:"ytp-fullscreen-grid-header-button",K:{"aria-label":"{{ariaLabel}}"}}]},{X:"button",Rk:["ytp-grid-menu-close","ytp-button"],K:{"aria-label":"Cerrar"},W:[g.Ix()]}]},{X:"div",J:"ytp-fullscreen-grid-stills-container"}]}]});var k=this;this.player=T;this.stills=[];this.videoData=null;this.currentState=0;this.C=this.L_("ytp-fullscreen-grid-main-content");this.B=this.L_("ytp-fullscreen-grid-header");T=this.L_("ytp-fullscreen-grid-header-buttons");this.L=this.L_("ytp-grid-menu-close"); this.S=this.L_("ytp-grid-replay-button");this.T=this.L_("ytp-fullscreen-grid-header-button");this.D=this.L_("ytp-fullscreen-grid-stills-container");this.Y=new g.Bj(this);g.P(this,this.Y);this.j=Q;if(this.B&&this.C&&T&&this.D&&this.T&&this.L){if(Q=this.L_("ytp-fullscreen-grid-hover-overlay"))this.Z(Q,"click",this.qC),OU(this.player,Q,this);this.S&&(this.Z(this.S,"click",function(l){k.yS(l)}),OU(this.player,this.S,this)); this.T&&this.Z(this.T,"click",this.qC);this.L&&this.Z(this.L,"click",this.qC);if(Q=this.player.getVideoData(1))this.videoData=Q,GtJ(this);this.player.createClientVe(this.B,this,223051);this.Y.Z(this.player,"videodatachange",this.onVideoDataChange);this.Y.Z(this.player,"presentingplayerstatechange",this.Pl)}}; GtJ=function(T){var Q=T.player.getPlayerStateObject();g.gl(T.player.getRootNode(),"ytp-grid-ended-state",g.J(Q,2))}; Ih=function(T){GQ.call(this,T);var Q=this;this.C=this.T=this.S=0;this.B=null;this.Y=0;this.isEnded=!1;this.j=null;var k=new g.Bj(T);g.P(this,k);this.qO=this.api.V("web_player_imax_theater_mode");this.L=this.api.V("web_player_enable_fullscreen_grid_components");k.Z(T,"fullscreentoggled",function(){Gx(Q)}); k.Z(T,"autohideupdate",function(l){l&&Q.S===2&&mc(Q,1)}); k.Z(T,"videodatachange",function(){if(Q.L){var l=Q.api.getVideoData(1);Q.videoData!==l&&Q.S===2&&mc(Q,1);Q.videoData=l}},this); k.Z(T,"sizestylechange",function(){Q.L&&Gx(Q)}); ws(this.api,"setFullscreenQuickActions",function(l){Q.setFullscreenQuickActions(l)}); ws(this.api,"setPlayerOverlayVideoDetailsRenderer",function(l){Q.setPlayerOverlayVideoDetailsRenderer(l)}); this.L&&INX(this,k,T)}; INX=function(T,Q,k){Q.Z(k,"keyboardserviceglobalkeydown",function(l,v){T.L&&l.keyCode===86&&!l.repeat&&T.S!==0&&(v&&(v.Va=!0),hRC(T,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); Q.Z(T.api.getRootNode(),"wheel",function(l){if(!T.j){var v;if(T.L&&(v=T.N)!=null&&v.element&&T.S!==0&&h4(T))if(g.oF(T.api.getRootNode(),"ytp-grid-scrolling"),T.Y===0&&(T.Y=window.innerHeight),T.S===1)T.Y!==0&&(T.T+=l.deltaY/T.Y,T.T=Math.min(Math.max(T.T,0),.85),Sp(T),sgt(T,Math.abs(T.T)>=.85));else if(T.S===2){v=l.deltaY<0;var L,q=((L=T.N)==null?void 0:L.element.scrollTop)===0;v&&q?T.Y!==0&&(T.T+=l.deltaY/T.Y,Sp(T),sgt(T,Math.abs(T.T)>=.85)):T.T!==0&&(T.T=0,Sp(T))}}},{passive:!0}); Q.Z(k,"standardControlsInitialized",function(){if(!T.N){T.N=new mdt(T.api,T.z9.bind(T));g.P(T,T.N);var l=T.api.getRootNode().querySelector(".ytp-chrome-bottom");l&&l.parentNode&&l.parentNode.insertBefore(T.N.element,l.nextSibling)}}); Q.Z(k,"presentingplayerstatechange",function(){Ck(T)}); Q.Z(k,"autonavvisibility",function(){Ck(T)}); T.api.Gk().subscribe("visibilitystatechange",function(){Ck(T)}); S0t(T,T.S)}; sgt=function(T,Q){T.B&&clearTimeout(T.B);Q?CG5(T):T.B=window.setTimeout(function(){CG5(T)},150)}; CG5=function(T){T.B&&(clearTimeout(T.B),T.B=null);T.Y=0;T.L&&T.S!==0&&(Math.abs(T.T)>=.15&&hRC(T,"INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),T.T=0,Sp(T),g.Lb(T.api.getRootNode(),"ytp-grid-scrolling"))}; hRC=function(T,Q){T.L&&(Q==="INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"&&(T.j&&clearTimeout(T.j),T.j=window.setTimeout(function(){T.j=null},1E3)),T.S===1?mc(T,2):mc(T,1))}; h4=function(T){return T.api.isFullscreen()||T.qO&&T.api.zs()}; Gx=function(T){var Q=h4(T);g.gl(T.api.getRootNode(),"ytp-full-bleed-player",Q);T.D&&g.kj(T.D,Q);T.playerOverlayVideoDetailsRenderer&&g.kj(T.playerOverlayVideoDetailsRenderer,Q);T.L&&Ck(T)}; Ck=function(T){if(T.L){var Q;if(T.api.getPresentingPlayerType()===2||T.api.eD()||((Q=g.aa(T.api))==null?0:Q.tb())||T.api.isMinimized())mc(T,0);else{if(Q=g.J(T.api.getPlayerStateObject(),2))mc(T,2);else if(T.isEnded&&!Q){var k=h4(T)?1:0;T.isEnded=Q;mc(T,k)}else h4(T)?T.S!==2&&mc(T,1):mc(T,0);T.isEnded=Q}}}; mc=function(T,Q){T.S=Q;var k;(k=T.N)==null||k.OH(Q);T.T=0;Sp(T);S0t(T,Q)}; S0t=function(T,Q){T=T.api.getRootNode();g.gl(T,"ytp-fullscreen-grid-peaking",Q===1);g.gl(T,"ytp-fullscreen-grid-active",Q===2)}; Sp=function(T){requestAnimationFrame(function(){var Q=T.T-T.C,k=Q;T.T!==0&&(k=Math.max(-.01,Math.min(Q,.01)));T.C+=k;T.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+T.C.toString());T.C!==T.T&&Sp(T)})}; Bkt=function(T){GQ.call(this,T);var Q=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Bj(T);g.P(this,this.events);this.events.Z(T,"heartbeatRequest",function(k){if(Q.freePreviewUsageDetails.length||Q.freePreviewWatchedDuration!==null)k.heartbeatRequestParams||(k.heartbeatRequestParams={}),k.heartbeatRequestParams.unpluggedParams||(k.heartbeatRequestParams.unpluggedParams={}),Q.freePreviewUsageDetails.length>0?k.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= Q.freePreviewUsageDetails:k.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+Q.freePreviewWatchedDuration}}); ws(T,"setFreePreviewWatchedDuration",function(k){Q.freePreviewWatchedDuration=k}); ws(T,"setFreePreviewUsageDetails",function(k){Q.freePreviewUsageDetails=k})}; Ba=function(T){g.x.call(this);this.features=[];var Q=this.T,k=new $H(T),l=new mW(T),v=new S8(T),L=new MD(T);var q=g.ZX(T.G())?void 0:new xH(T);var Y=new sl(T),U=new Kvy(T),R=new QgJ(T),Z=new WR(T);var f=g.ZX(T.G())?new Bkt(T):void 0;var G;var m=(G=T.G().getWebPlayerContextConfig())!=null&&G.cinematicSettingsAvailable?new aR(T):void 0;G=new pA(T);var I=T.V("enable_courses_player_overlay_purchase")?new RxC(T):void 0;var z=g.Cn(T.G())?new ggH(T):void 0;var w=new PR(T);var r=T.G().Y?new kqu(T):void 0; var A=g.Qk(T.G())?new j36(T):void 0;var D=T.V("web_player_move_autonav_toggle")&&T.G().Ah?new eEJ(T):void 0;var K=g.Cn(T.G())?new X1J(T):void 0;var O=T.V("web_enable_speedmaster")&&g.Cn(T.G())?new F9(T):void 0;var E=T.G().QE?void 0:new Wv6(T);var e=T.V("report_pml_debug_signal")?new pC5(T):void 0;var vT=new PzX(T),f5=new X9(T);var qJ=g.uP(T.G())?new jCg(T):void 0;var g6=navigator.mediaSession&&window.MediaMetadata&&T.G().Ap?new I4(T):void 0;var QC=T.V("html5_enable_drc")&&!T.G().B?new KA(T):void 0; var A5=new hN(T);var Et=g.Cn(T.G())?new Za6(T):void 0;var QJ=T.V("html5_enable_d6de4")?new Cv(T):void 0;var I_=g.Cn(T.G())&&T.V("web_sleep_timer")?new tO(T):void 0;var g$$=g.Qk(T.G())?new ogb(T):void 0;var cT=new xk(T),vg=new VsI(T),KW=new BuC(T);var Wm=T.V("enable_sabr_snackbar_message")?new dK5(T):void 0;var LJ=T.V("web_enable_timely_actions")?new Fvy(T):void 0;var b=new uf(T);var Hg=g.Cn(T.G())?new Ih(T):void 0;var D1=T.V("html5_enable_voice_boost")?new Lk(T):void 0;var kb=T.V("web_player_loop_settings_menu")&& T.G().dC?new zgb(T):void 0;var w$=T.V("html5_masthead_default_playback_rate")&&!g.ZX(T.G())?new AGg(T):void 0;var X=T.V("web_player_playable_sequences_refactor")?new yGI(T):void 0;var jf=T.V("html5_enable_audio_quality_setting")&&T.V("html5_enable_audio_quality_setting_feature")?new CA(T):void 0;T=T.V("html5_ypc_clickwrap_module_refactor")?new HmX(T):void 0;Q.call(this,k,l,v,L,q,Y,U,R,Z,f,m,G,I,z,w,r,A,D,K,O,E,e,vT,f5,qJ,void 0,g6,QC,A5,void 0,Et,QJ,I_,g$$,void 0,cT,vg,KW,void 0,Wm,LJ,b,Hg,D1,void 0, kb,void 0,w$,X,jf,T)}; zRb=function(){this.S=this.T=NaN}; X5g=function(T,Q){this.Hd=T;this.timerName="";this.L=!1;this.S=NaN;this.Y=new zRb;this.T=Q||null;this.L=!1}; w5X=function(T,Q,k){var l=g.Ln(Q.FB)&&!Q.FB.B;if(Q.FB.iS&&(kL(Q.FB)||Q.FB.i9==="shortspage"||N0(Q.FB)||l)&&!T.L){T.L=!0;T.B=Q.clientPlaybackNonce;g.$i("TIMING_ACTION")||WN("TIMING_ACTION",T.Hd.csiPageType);T.Hd.csiServiceName&&WN("CSI_SERVICE_NAME",T.Hd.csiServiceName);if(T.T){l=T.T.eZ();for(var v=g.B(Object.keys(l)),L=v.next();!L.done;L=v.next())L=L.value,dS(L,l[L],T.timerName);l=g.E4(yFT)(T.T.hM);g.NL(l,T.timerName);l=T.T;l.T={};l.hM={}}g.NL({playerInfo:{visibilityState:g.E4(Enb)()},playerType:"LATENCY_PLAYER_HTML5"}, T.timerName);T.N!==Q.clientPlaybackNonce||Number.isNaN(T.S)||(bU("_start",T.timerName)?k=g.E4(CG)("_start",T.timerName)+T.S:g.rB(new g.Wy("attempted to log gapless pbs before CSI timeline started",{cpn:Q.clientPlaybackNonce})));k&&!bU("pbs",T.timerName)&&zx(T,k)}}; zx=function(T,Q,k){dS("pbs",Q!=null?Q:(0,g.XY)(),k!=null?k:T.timerName)}; XB=function(T){L4T();vrX();T.timerName=""}; ddX=function(T){if(T.T){var Q=T.T;Q.T={};Q.hM={}}T.L=!1;T.N=void 0;T.S=NaN}; NkX=function(T,Q){g.ox.call(this);this.FB=T;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.T=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.j={};this.S=0;if(T=Q.session_data)this.sessionData=Vt(T,"&");this.index=Math.max(0,Number(Q.index)||0);this.loop=!!Q.loop;this.startSeconds=Number(Q.startSeconds)||0;this.title=Q.playlist_title||"";this.description=Q.playlist_description||"";this.author= Q.author||Q.playlist_author||"";Q.video_id&&(this.items[this.index]=Q);if(T=Q.api)typeof T==="string"&&T.length===16?Q.list="PL"+T:Q.playlist=T;if(T=Q.list)switch(Q.listType){case "user_uploads":this.listId=new FT("UU","PLAYER_"+T);break;default:var k=Q.playlist_length;k&&(this.length=Number(k)||0);this.listId=E8(T);if(T=Q.video)this.items=T.slice(0),this.loaded=!0}else if(Q.playlist){T=Q.playlist.toString().split(",");this.index>0&&(this.items=[]);T=g.B(T);for(k=T.next();!k.done;k=T.next())(k=k.value)&& this.items.push({video_id:k});this.length=this.items.length;if(T=Q.video)this.items=T.slice(0),this.loaded=!0}this.setShuffle(!!Q.shuffle);if(T=Q.suggestedQuality)this.quality=T;this.j=WB(Q,"playlist_");this.L=(Q=Q.thumbnail_ids)?Q.split(","):[]}; AnC=function(T){return!!(T.playlist||T.list||T.api)}; bqf=function(T){var Q=T.index+1;return Q>=T.length?0:Q}; rnt=function(T){var Q=T.index-1;return Q<0?T.length-1:Q}; g.wN=function(T,Q,k,l){Q=Q!==void 0?Q:T.index;Q=T.items&&Q in T.items?T.items[T.order[Q]]:null;var v=null;Q&&(k&&(Q.autoplay="1"),l&&(Q.autonav="1"),v=new g.mR(T.FB,Q),g.P(T,v),v.xF=!0,v.startSeconds=T.startSeconds||v.clipStart||0,T.listId&&(v.playlistId=T.listId.toString()));return v}; cnb=function(T,Q){T.index=g.ti(Q,0,T.length-1);T.startSeconds=0}; DdX=function(T,Q){if(Q.video&&Q.video.length){T.title=Q.title||"";T.description=Q.description;T.views=Q.views;T.likes=Q.likes;T.dislikes=Q.dislikes;T.author=Q.author||"";var k=Q.loop;k&&(T.loop=k);k=g.wN(T);T.items=[];for(var l=g.B(Q.video),v=l.next();!v.done;v=l.next())if(v=v.value)v.video_id=v.encrypted_id,T.items.push(v);T.length=T.items.length;(Q=Q.index)?T.index=Q:T.findIndex(k);T.setShuffle(!1);T.loaded=!0;T.S++;T.T&&T.T()}}; n7X=function(T,Q){var k,l,v,L,q,Y,U;return g.a(function(R){if(R.S==1){k=g.Jt();var Z=T.G(),f={context:g.zh(T),playbackContext:{contentPlaybackContext:{ancestorOrigins:Z.ancestorOrigins}}},G=Z.getWebPlayerContextConfig();if(G==null?0:G.encryptedHostFlags)f.playbackContext.contentPlaybackContext.encryptedHostFlags=G.encryptedHostFlags;if(G==null?0:G.hideInfo)f.playerParams={showinfo:!1};G=Z.embedConfig;var m=T.bR;var I=Q.docid||Q.video_id||Q.videoId||Q.id;if(!I){I=Q.raw_embedded_player_response;if(!I){var z= Q.embedded_player_response;z&&(I=JSON.parse(z))}if(I){var w,r,A,D,K,O;I=((O=g.t((w=I)==null?void 0:(r=w.embedPreview)==null?void 0:(A=r.thumbnailPreviewRenderer)==null?void 0:(D=A.playButton)==null?void 0:(K=D.buttonRenderer)==null?void 0:K.navigationEndpoint,g.Bv))==null?void 0:O.videoId)||null}else I=null}w=(w=I)?w:void 0;r=T.playlistId?T.playlistId:Q.list;A=Q.listType;if(r){var E;A==="user_uploads"?E={username:r}:E={playlistId:r};aNT(G,m,w,Q,E,Z.experiments);f.playlistRequest=E}else Q.playlist? (E={templistVideoIds:Q.playlist.toString().split(",")},aNT(G,m,w,Q,E,Z.experiments),f.playlistRequest=E):w&&(E={videoId:w},m&&Z.V("embeds_enable_per_video_embed_config")?E.serializedThirdPartyEmbedConfig=m:G&&(E.serializedThirdPartyEmbedConfig=G),f.singleVideoRequest=E);l=f;v=g.Vr(uUJ);g.z5(R,2);return g.c(R,g.uU(k,l,v),4)}if(R.S!=2)return L=R.T,q=T.G(),Q.raw_embedded_player_response=L,q.xm=q5(Q,g.Qk(q)),q.L=q.xm==="EMBEDDED_PLAYER_MODE_PFL",L&&(Y=L,Y.trackingParams&&i8(Y.trackingParams)),R.return(new g.mR(q, Q));U=g.by(R);U instanceof Error||(U=Error("b259802748"));g.bA(U);return R.return(T)})}; aNT=function(T,Q,k,l,v,L){l.index&&(v.playlistIndex=String(Number(l.index)+1));v.videoId=k?k:"";Q&&L.Wd("embeds_enable_per_video_embed_config")?v.serializedThirdPartyEmbedConfig=Q:T&&(v.serializedThirdPartyEmbedConfig=T)}; g.ND=function(T,Q){dN.get(T);dN.set(T,Q)}; g.A4=function(T){g.ox.call(this);this.loaded=!1;this.player=T}; KLT=function(){this.S=[];this.T=[]}; g.qD=function(T,Q){return Q?T.T.concat(T.S):T.T}; g.bj=function(T,Q){switch(Q.kind){case "asr":xdg(Q,T.S);break;default:xdg(Q,T.T)}}; xdg=function(T,Q){g.sA(Q,function(k){return T.equals(k)})||Q.push(T)}; g.rN=function(T){g.x.call(this);this.ZV=T;this.S=new KLT;this.L=null;this.N=[];this.j=[]}; g.ca=function(T,Q,k){g.rN.call(this,T);this.videoData=Q;this.audioTrack=k;this.T=null;this.Y=!1;this.N=Q.RS;this.j=Q.uL;this.Y=g.LX(Q)}; g.PGy=function(T,Q){var k;return T.G().V("safari_live_drm_captions_fix")&&((k=T.getVideoData())==null?0:k.bl())?!1:g.ZX(T.G())&&!Q.isManifestless}; g.DG=function(T,Q){return Wj(T.info.mimeType)?Q?T.info.itag===Q:!0:!1}; g.Hqg=function(T,Q){if(T.T!=null&&g.PGy(Q,T.T)&&T.T.T.rawcc!=null)return!0;if(!T.Cc())return!1;Q=!!T.T&&T.T.isManifestless&&Object.values(T.T.T).some(function(k){return g.DG(k,"386")}); T=!!T.T&&!T.T.isManifestless&&g.GNg(T.T);return Q||T}; g.ah=function(T,Q,k,l,v,L){g.rN.call(this,T);this.videoId=k;this.hR=v;this.eventId=L;this.B={};this.T=null;T=l||g.k5(Q).hl||"";T=T.split("_").join("-");this.Y=lC(Q,{hl:T})}; t5J=function(T,Q){g.x.call(this);var k=this;this.U=T;this.Y=Q;this.hM={};this.T={};this.S=null;this.L=new Set;this.N=new g.Bj(this);this.dn={U3_:function(){return k.Y}}; this.B=this.U.V("web_player_defer_modules");this.kP=new Map;g.P(this,this.N);this.N.Z(T,"videodatachange",this.onVideoDataChange)}; Oqy=function(T,Q){T.S=Q}; g.uj=function(T){return T.kP.get("captions")}; E7I=function(T,Q){switch(Q){case "ad":return p5t(T);case "annotations_module":return T.U.isEmbedsShortsMode()?T=!1:(Q=T.U,T=Q.G(),Q=Q.getVideoData(),T=T.L||Q.Lo||T.controlsType==="3"?!1:T.Bd.isEmpty()&&T.playerStyle!=="annotation-editor"&&T.playerStyle!=="live-dashboard"?!!Q.sK||!!g.lt(Q)||!!g.oa(Q):!0),T;case "asmjs":return WL6(T);case "creatorendscreen":return $db(T);case "embed":return g.Qk(T.U.G());case "endscreen":return g.JnX(T);case "heartbeat":return T.fq();case "kids":return Ze(T.U.G()); case "remote":return T.U.G().cg;case "miniplayer":return T.U.G().showMiniplayerUiWhenMinimized;case "offline":return T.U.G().A9;case "captions":return eRT(T);case "unplugged":return g.q0(T.U.G());case "ux":return T.U.G().u9;case "webgl":return FLf(T);case "ypc":return T.E3();case "ypc_clickwrap":return kE5(T.U.getVideoData());case "yto":return T.U.V("web_player_playable_sequences_refactor")?!1:!!T.U.getVideoData().D.includes("yto");default:return g.bA(Error("Module descriptor "+Q+" does not match")), !1}}; nk=function(T,Q,k,l,v){var L;k=k===void 0?!1:k;l=l===void 0?!1:l;var q=T.kP.get(Q);if(!q||l)if(v||(v=function(){nk(T,Q,k,l)}),L||(L=function(){T.U.Ju(Q)}),q=q||yn6(T,Q,E7I(T,Q),v,L))T.kP.set(Q,q),q.create(),T.U.publish("modulecreated",Q),k&&T.U.Pk("onApiChange")}; V5g=function(T){var Q=Q===void 0?!1:Q;var k,l,v,L,q;return g.a(function(Y){if(Y.S==1)return(k=T.kP.get("asmjs"))&&!Q?Y.return(k):(l=dN.get("asmjs"))!=null?(v=l,Y.Ym(2)):g.c(Y,new Promise(function(U,R){iq5(T,"asmjs",function(){var Z=dN.get("asmjs");Z?U(Z):R("cannot load module asmjs")},R)}),3); Y.S!=2&&(v=Y.T);L=v;if(!L)return Y.return(Promise.reject("cannot load module asmjs"));q=new L(T.U);T.kP.set("asmjs",q);q.create();return Y.return(q)})}; jwC=function(T){TY5(T)&&T.j$();QwJ(T)&&(nk(T,"captions",!0),nk(T,"endscreen"),T.Qs(),nk(T,"creatorendscreen",!0))}; QwJ=function(T){var Q=T.U.getVideoData(),k=T.B&&!Q.isInlinePlaybackNoAd;T.U.V("html5_defer_modules_on_ads_only")&&!Q.isAd()&&(k=!1);return k}; TY5=function(T){T=T.U.getVideoData();var Q;if(Q=T.V("web_player_defer_ad")){if(g.CW(T.D,"ad")||xyI(T)||T.enableServerStitchedDai)T=!1;else{Q=T.playerResponse;T=T.startSeconds;var k=Q==null?void 0:Q.adPlacements;if(Q=k){Q=Number.MAX_VALUE;k=g.B(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value.adPlacementRenderer){var v=void 0,L=(v=l.config)==null?void 0:v.adPlacementConfig;v=void 0;if(((v=L)==null?void 0:v.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var q=v=void 0;L=Number((v=L)==null?void 0:(q= v.adTimeOffset)==null?void 0:q.offsetStartMilliseconds)||0;q=v=void 0;l=Number(((v=l.renderer)==null?void 0:(q=v.adBreakServiceRenderer)==null?void 0:q.prefetchMilliseconds)||0);l=L-l;l=11;T=T.api.G().C&&Wa;return!(!Q&&!T)}; kW=function(T,Q){return!T.api.isInline()&&!BYJ(T,zL(Q))&&g.B8(Q)}; CIT=function(T){T.Ci.DS();if(T.eS&&T.Ac)T.Ac=!1;else if(!T.api.G().sK&&!T.VV()){var Q=T.api.getPlayerStateObject();g.J(Q,2)&&g.$D(T.api)||T.Qu(Q);!T.api.G().Tg||Q.isCued()||g.J(Q,1024)?T.GR():T.NP.isActive()?(T.sb(),T.NP.stop()):T.NP.start()}}; Xbg=function(T,Q){var k;if((k=T.api.getVideoData())==null?0:k.mutedAutoplay){var l,v;if((l=Q.target)==null?0:(v=l.className)==null?0:v.includes("ytp-info-panel"))return!1}return g.B8(Q)&&T.api.isMutedByMutedAutoplay()?(T.api.unMute(),T.api.getPresentingPlayerType()===2&&T.api.playVideo(),Q=T.api.getPlayerStateObject(),!g.J(Q,4)||g.J(Q,8)||g.J(Q,2)||T.GR(),!0):!1}; wbX=function(T,Q,k){T.api.isFullscreen()?k<1-Q&&T.api.toggleFullscreen():k>1+Q&&T.api.toggleFullscreen()}; Smu=function(T){var Q=OG()&&PD()>=67&&!T.api.G().C;T=T.api.G().disableOrganicUi;return!g.tH("tizen")&&!ic&&!Q&&!T}; g.lz=function(T){g.p.call(this,{X:"div",W:[{X:"div",J:"ytp-bezel-text-wrapper",W:[{X:"div",J:"ytp-bezel-text",S6:"{{title}}"}]},{X:"div",J:"ytp-bezel",K:{role:"status","aria-label":"{{label}}"},W:[{X:"div",J:"ytp-bezel-icon",S6:"{{icon}}"}]}]});this.U=T;this.S=new g.FA(this.show,10,this);T=this.U.V("delhi_modern_web_player")?1E3:500;this.T=new g.FA(this.hide,T,this);g.P(this,this.S);g.P(this,this.T);this.hide()}; v1=function(T,Q,k){if(Q<=0){k=Ac();Q="silenciado";var l=0}else k=k?{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,K:{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"}}]}:{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,K:{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"}}]},l=Math.floor(Q),Q=l+"volumen";oG(T,k,Q,l+"%")}; dCI=function(T,Q){Q=Q?{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{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"}}]}:s16();var k=T.U.getPlaybackRate(),l=g.o0("La velocidad es de $RATE",{RATE:String(k)});oG(T,Q,l,k+"x")}; NYb=function(T,Q){Q=Q?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";oG(T,ESC(T.U),Q)}; oG=function(T,Q,k,l){l=l===void 0?"":l;T.updateValue("label",k===void 0?"":k);T.updateValue("icon",Q);g.iN(T.T);T.S.start();T.updateValue("title",l);g.gl(T.element,"ytp-bezel-text-hide",!l)}; AYy=function(T,Q){g.p.call(this,{X:"button",Rk:["ytp-button","ytp-cards-button"],K:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.Qk(T.G()))},W:[{X:"span",J:"ytp-cards-button-icon-default",W:[{X:"div",J:"ytp-cards-button-icon",W:[T.G().V("player_new_info_card_format")?Bi6():{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{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"}}]}]}, {X:"div",J:"ytp-cards-button-title",S6:"Informaci\u00f3n"}]},{X:"span",J:"ytp-cards-button-icon-shopping",W:[{X:"div",J:"ytp-cards-button-icon",W:[{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",J:"ytp-svg-shadow",K:{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"}},{X:"path",J:"ytp-svg-fill",K:{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"}},{X:"path",J:"ytp-svg-shadow-fill",K:{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"}}]}]},{X:"div", J:"ytp-cards-button-title",S6:"Shopping"}]}]});this.U=T;this.S=Q;this.T=null;this.fade=new g.TZ(this,250,!0,100);g.P(this,this.fade);g.gl(this.S,"ytp-show-cards-title",g.Qk(T.G()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.g2(!0)}; b_I=function(T,Q){g.p.call(this,{X:"div",J:"ytp-cards-teaser",W:[{X:"div",J:"ytp-cards-teaser-box"},{X:"div",J:"ytp-cards-teaser-text",W:T.G().V("player_new_info_card_format")?[{X:"button",J:"ytp-cards-teaser-info-icon",K:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},W:[Bi6()]},{X:"img",J:"ytp-cards-teaser-channel-avatar",K:{alt:"","aria-hidden":"true"}},{X:"span",J:"ytp-cards-teaser-label",S6:"{{text}}"},{X:"button",J:"ytp-cards-teaser-close-button",K:{"aria-label":"Cerrar"},W:[g.Ix()]}]: [{X:"span",J:"ytp-cards-teaser-label",S6:"{{text}}"}]}]});var k=this;this.U=T;this.cT=Q;this.fade=new g.TZ(this,250,!1,250);this.T=null;this.C=new g.FA(this.B5e,300,this);this.B=new g.FA(this.ReB,2E3,this);this.Y=[];this.S=null;this.j=new g.FA(function(){k.element.style.margin="0"},250); this.onClickCommand=this.L=null;g.P(this,this.fade);g.P(this,this.C);g.P(this,this.B);g.P(this,this.j);T.G().V("player_new_info_card_format")?(g.oF(T.getRootNode(),"ytp-cards-teaser-dismissible"),this.Z(this.L_("ytp-cards-teaser-close-button"),"click",this.e7),this.Z(this.L_("ytp-cards-teaser-info-icon"),"click",this.dW),this.Z(this.L_("ytp-cards-teaser-label"),"click",this.dW)):this.listen("click",this.dW);this.Z(Q.element,"mouseover",this.rj);this.Z(Q.element,"mouseout",this.lB);this.Z(T,"cardsteasershow", this.SMe);this.Z(T,"cardsteaserhide",this.sG);this.Z(T,"cardstatechange",this.fg);this.Z(T,"presentingplayerstatechange",this.fg);this.Z(T,"appresize",this.wD);this.Z(T,"onShowControls",this.wD);this.Z(T,"onHideControls",this.QG);this.listen("mouseenter",this.CL)}; rY6=function(T){g.p.call(this,{X:"button",Rk:[Lm.BUTTON,Lm.TITLE_NOTIFICATIONS],K:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},W:[{X:"div",J:Lm.TITLE_NOTIFICATIONS_ON,K:{title:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},W:[g.CD()]},{X:"div",J:Lm.TITLE_NOTIFICATIONS_OFF,K:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},W:[{X:"svg",K:{fill:"#fff",height:"24px", viewBox:"0 0 24 24",width:"24px"},W:[{X:"path",K:{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=T;this.T=!1;T.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Recibir notificaciones sobre todos los videos nuevos")}; cYJ=function(T,Q){T.T=Q;T.element.classList.toggle(Lm.NOTIFICATIONS_ENABLED,T.T);var k=T.api.getVideoData();k?(Q=Q?k.No:k.Re)?(T=T.api.HG())?ao(T,Q):g.bA(Error("No innertube service available when updating notification preferences.")):g.bA(Error("No update preferences command available.")):g.bA(Error("No video data when updating notification preferences."))}; apy=function(T,Q,k){var l=l===void 0?800:l;var v=v===void 0?600:v;var L=document.location.protocol;T=WmX(L+"//"+T+"/signin?context=popup","feature",Q,"next",L+"//"+location.hostname+"/post_login");DCg(T,k,l,v)}; DCg=function(T,Q,k,l){k=k===void 0?800:k;l=l===void 0?600:l;if(T=g.GH(window,T,"loginPopup","width="+k+",height="+l+",resizable=yes,scrollbars=yes"))I0f(function(){Q()}),T.moveTo((screen.width-k)/2,(screen.height-l)/2)}; g.qa=function(T,Q,k,l,v,L,q,Y,U,R,Z,f){T=T.charAt(0)+T.substring(1).toLowerCase();k=k.charAt(0)+k.substring(1).toLowerCase();if(Q==="0"||Q==="-1")Q=null;if(l==="0"||l==="-1")l=null;var G=Z.G(),m=G.userDisplayName&&g.Ln(G);g.p.call(this,{X:"div",Rk:["ytp-button","ytp-sb"],W:[{X:"div",J:"ytp-sb-subscribe",K:m?{title:Z.G().V("player_tooltip_data_title_killswitch")?g.o0("Suscribirse como $USER_NAME",{USER_NAME:G.userDisplayName}):"","data-tooltip-title":g.o0("Suscribirse como $USER_NAME",{USER_NAME:G.userDisplayName}), "aria-label":"Suscribirse al canal","data-tooltip-image":A9(G),"data-tooltip-opaque":String(g.Qk(G)),tabindex:"0",role:"button"}:{"aria-label":"Suscribirse al canal"},W:[{X:"div",J:"ytp-sb-text",W:[{X:"div",J:"ytp-sb-icon"},T]},Q?{X:"div",J:"ytp-sb-count",S6:Q}:""]},{X:"div",J:"ytp-sb-unsubscribe",K:m?{title:Z.V("player_tooltip_data_title_killswitch")?g.o0("Suscrito como $USER_NAME",{USER_NAME:G.userDisplayName}):"","data-tooltip-title":g.o0("Suscrito como $USER_NAME",{USER_NAME:G.userDisplayName}), "aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":A9(G),"data-tooltip-opaque":String(g.Qk(G)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},W:[{X:"div",J:"ytp-sb-text",W:[{X:"div",J:"ytp-sb-icon"},k]},l?{X:"div",J:"ytp-sb-count",S6:l}:""]}],K:{"aria-live":"polite"}});var I=this;this.channelId=q;this.U=Z;this.L=f;var z=this.L_("ytp-sb-subscribe"),w=this.L_("ytp-sb-unsubscribe");L&&g.oF(this.element,"ytp-sb-classic");if(v){Y?this.T():this.S(); var r=function(){if(G.hj){var D=I.channelId;if(U||R){var K={c:D};var O;g.jX.isInitialized()&&(O=WUT(K));K=O||"";if(O=Z.getVideoData())if(O=O.subscribeCommand){var E=Z.HG();E?(ao(E,O,{botguardResponse:K,feature:U}),Z.tj("SUBSCRIBE",D)):g.bA(Error("No innertube service available when updating subscriptions."))}else g.bA(Error("No subscribe command in videoData."));else g.bA(Error("No video data available when updating subscription."))}w.focus();w.removeAttribute("aria-hidden");z.setAttribute("aria-hidden", "true")}else apy(g.mq(I.U.G()),"sb_button",I.Y)},A=function(){var D=I.channelId; if(U||R){var K=Z.getVideoData();ao(Z.HG(),K.unsubscribeCommand,{feature:U});Z.tj("UNSUBSCRIBE",D)}z.focus();z.removeAttribute("aria-hidden");w.setAttribute("aria-hidden","true")}; this.Z(z,"click",r);this.Z(w,"click",A);this.Z(z,"keypress",function(D){D.keyCode===13&&r(D)}); this.Z(w,"keypress",function(D){D.keyCode===13&&A(D)}); this.Z(Z,"SUBSCRIBE",this.T);this.Z(Z,"UNSUBSCRIBE",this.S);this.L&&m&&(c1I(Z),OU(Z,z,this),OU(Z,w,this))}else g.oF(z,"ytp-sb-disabled"),g.oF(w,"ytp-sb-disabled")}; Kwt=function(T){g.p.call(this,{X:"div",J:"ytp-title-channel",W:[{X:"div",J:"ytp-title-beacon"},{X:"a",J:"ytp-title-channel-logo",K:{href:"{{channelLink}}",target:T.G().D,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{X:"div",J:"ytp-title-expanded-overlay",K:{"aria-hidden":"{{flyoutUnfocusable}}"},W:[{X:"div",J:"ytp-title-expanded-heading",W:[{X:"div",J:"ytp-title-expanded-title",W:[{X:"a",S6:"{{expandedTitle}}",K:{href:"{{channelTitleLink}}",target:T.G().D,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{X:"div",J:"ytp-title-expanded-subtitle",S6:"{{expandedSubtitle}}",K:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var Q=this;this.api=T;this.channel=this.L_("ytp-title-channel");this.S=this.L_("ytp-title-channel-logo");this.channelName=this.L_("ytp-title-expanded-title");this.B=this.L_("ytp-title-expanded-overlay");this.L=this.T=this.subscribeButton=null;this.Y=!1;T.createClientVe(this.S,this,36925);T.createClientVe(this.channelName,this, 37220);g.Qk(this.api.G())&&uX5(this);this.Z(T,"videodatachange",this.Aj);this.Z(T,"videoplayerreset",this.Aj);this.Z(this.channelName,"click",function(k){Q.api.logClick(Q.channelName);g.GH(window,nFX(Q));k.preventDefault()}); this.Z(this.S,"click",this.G9K);this.Aj()}; xCy=function(T){if(!T.api.G().Gg){var Q=T.api.getVideoData(),k=new g.qa("Suscribirse",null,"Suscrito/a",null,!0,!1,Q.hH,Q.subscribed,"channel_avatar",null,T.api,!0);T.api.createServerVe(k.element,T);var l;T.api.setTrackingParams(k.element,((l=Q.subscribeButtonRenderer)==null?void 0:l.trackingParams)||null);T.Z(k.element,"click",function(){T.api.logClick(k.element)}); T.subscribeButton=k;g.P(T,T.subscribeButton);T.subscribeButton.XB(T.B);T.subscribeButton.hide();var v=new rY6(T.api);T.T=v;g.P(T,v);v.XB(T.B);v.hide();T.Z(T.api,"SUBSCRIBE",function(){Q.XU&&(v.show(),T.api.logVisibility(v.element,!0))}); T.Z(T.api,"UNSUBSCRIBE",function(){Q.XU&&(v.hide(),T.api.logVisibility(v.element,!1),cYJ(v,!1))})}}; uX5=function(T){var Q=T.api.G();xCy(T);T.updateValue("flyoutUnfocusable","true");T.updateValue("channelTitleFocusable","-1");T.updateValue("shouldHideExpandedTitleForA11y","true");T.updateValue("shouldHideExpandedSubtitleForA11y","true");Q.S||Q.Jj||(T.Z(T.channel,"mouseenter",T.mz),T.Z(T.channel,"mouseleave",T.wg),T.Z(T.channel,"focusin",T.mz),T.Z(T.channel,"focusout",function(k){T.channel.contains(k.relatedTarget)||T.wg()})); T.L=new g.FA(function(){T.isExpanded()&&(T.api.logVisibility(T.channelName,!1),T.subscribeButton&&(T.subscribeButton.hide(),T.api.logVisibility(T.subscribeButton.element,!1)),T.T&&(T.T.hide(),T.api.logVisibility(T.T.element,!1)),T.channel.classList.remove("ytp-title-expanded"),T.channel.classList.add("ytp-title-show-collapsed"))},500); g.P(T,T.L);T.Z(T.channel,PII,function(){H_f(T)}); T.Z(T.api,"onHideControls",T.Lq);T.Z(T.api,"appresize",T.Lq);T.Z(T.api,"fullscreentoggled",T.Lq)}; H_f=function(T){T.channel.classList.remove("ytp-title-show-collapsed");T.channel.classList.remove("ytp-title-show-expanded")}; tDu=function(T){var Q=T.api.getPlayerSize();return g.Qk(T.api.G())&&Q.width>=524}; nFX=function(T){var Q=T.api.G(),k=T.api.getVideoData(),l=g.bF(Q)+k.Tg;g.S$(k)&&(l="https://music.youtube.com"+k.Tg);if(!g.Qk(Q))return l;Q={};g.Ay(T.api,"addEmbedsConversionTrackingParams",[Q]);return g.sD(l,Q)}; gu=function(T){var Q=g.RR({"aria-haspopup":"true"});g.UQ.call(this,Q,T);this.listen("keydown",this.T)}; Ma=function(T,Q){T.element.setAttribute("aria-haspopup",String(Q))}; O_6=function(T,Q){g.p.call(this,{X:"div",J:"ytp-user-info-panel",K:{"aria-label":"Informaci\u00f3n del usuario"},W:T.G().hj&&!T.V("embeds_web_always_enable_signed_out_state")?[{X:"div",J:"ytp-user-info-panel-icon",S6:"{{icon}}"},{X:"div",J:"ytp-user-info-panel-content",W:[{X:"div",J:"ytp-user-info-panel-info",K:{tabIndex:"{{userInfoFocusable}}",role:"text"},S6:"{{watchingAsUsername}}"},{X:"div",J:"ytp-user-info-panel-info",K:{tabIndex:"{{userInfoFocusable2}}",role:"text"},S6:"{{watchingAsEmail}}"}]}]: [{X:"div",J:"ytp-user-info-panel-icon",S6:"{{icon}}"},{X:"div",J:"ytp-user-info-panel-content",W:[{X:"div",W:[{X:"text",K:{tabIndex:"{{userInfoFocusable}}"},S6:"Saliste de la cuenta"}]},{X:"div",J:"ytp-user-info-panel-login",W:[{X:"a",K:{tabIndex:"{{userInfoFocusable2}}",role:"button"},S6:T.G().Gg?"":"Acceder a YouTube"}]}]}]});this.ZV=T;this.T=Q;T.G().hj||T.G().Gg||this.Z(this.L_("ytp-user-info-panel-login"),"click",this.rk);this.closeButton=new g.p({X:"button",Rk:["ytp-collapse","ytp-button"],K:{title:"Cerrar"}, W:[g.N1()]});this.closeButton.XB(this.element);g.P(this,this.closeButton);this.Z(window,"blur",this.hide);this.Z(document,"click",this.lJ);this.Aj()}; $C5=function(T,Q,k){g.b_.call(this,T);this.YB=Q;this.G_=k;this.getVideoUrl=new gu(6);this.OY=new gu(5);this.PH=new gu(4);this.Tx=new gu(3);this.AO=new g.UQ(g.RR({href:"{{href}}",target:this.U.G().D},void 0,!0),2,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.UQ(g.RR(),1,"Estad\u00edsticas");this.B0=new g.M1({X:"div",Rk:["ytp-copytext","ytp-no-contextmenu"],K:{draggable:"false",tabindex:"1"},S6:"{{text}}"});this.Fv=new AO(this.U,this.B0);this.K6=this.Op=null;g.Qk(this.U.G())&& (this.closeButton=new g.p({X:"button",Rk:["ytp-collapse","ytp-button"],K:{title:"Cerrar"},W:[g.N1()]}),g.P(this,this.closeButton),this.closeButton.XB(this.element),this.closeButton.listen("click",this.LF,this));g.Qk(this.U.G())&&(this.Se=new g.UQ(g.RR(),8,"Cuenta"),g.P(this,this.Se),this.A6(this.Se,!0),this.Se.listen("click",this.a8m,this),T.createClientVe(this.Se.element,this.Se,137682));this.U.G().dC&&(this.vc=new zQ("En bucle",7),g.P(this,this.vc),this.A6(this.vc,!0),this.vc.listen("click",this.mYK, this),T.createClientVe(this.vc.element,this.vc,28661));g.P(this,this.getVideoUrl);this.A6(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.EBk,this);T.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.P(this,this.OY);this.A6(this.OY,!0);this.OY.listen("click",this.QgO,this);T.createClientVe(this.OY.element,this.OY,28660);g.P(this,this.PH);this.A6(this.PH,!0);this.PH.listen("click",this.oBd,this);T.createClientVe(this.PH.element,this.PH,28658);g.P(this,this.Tx);this.A6(this.Tx, !0);this.Tx.listen("click",this.c3B,this);g.P(this,this.AO);this.A6(this.AO,!0);this.AO.listen("click",this.l8_,this);g.P(this,this.showVideoInfo);this.A6(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.MVB,this);g.P(this,this.B0);this.B0.listen("click",this.t6k,this);g.P(this,this.Fv);Q=document.queryCommandSupported&&document.queryCommandSupported("copy");eub("Chromium")>=43&&(Q=!0);eub("Firefox")<=40&&(Q=!1);Q&&(this.Op=new g.p({X:"textarea",J:"ytp-html5-clipboard",K:{readonly:"", tabindex:"-1"}}),g.P(this,this.Op),this.Op.XB(this.element));var l;(l=this.Se)==null||l.setIcon(NiX());var v;(v=this.vc)==null||v.setIcon(ak6());this.Tx.setIcon({X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{"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.AO.setIcon(SrX());this.showVideoInfo.setIcon(Cut());this.Z(T,"onLoopChange",this.onLoopChange);this.Z(T,"videodatachange",this.onVideoDataChange);pbu(this);WwH(this,this.U.getVideoData())}; YW=function(T,Q){var k=!1;if(T.Op){var l=T.Op.element;l.value=Q;l.select();try{k=document.execCommand("copy")}catch(v){}}k?T.YB.sG():(T.B0.qF(Q,"text"),g.Dx(T.YB,T.Fv),bf(T.B0.element),T.Op&&(T.Op=null,pbu(T)));return k}; WwH=function(T,Q){var k=T.U.G(),l=T.U.getPresentingPlayerType()===2,v=!l||Q.isListed;v=!k.qO&&!!Q.videoId&&v;k.playerStyle!=="play"?k="https://support.google.com/youtube/?p=report_playback":(k={contact_type:"playbackissue",html5:1,ei:Q.eventId,v:Q.videoId,p:"movies_playback"},Q.S&&(k.fmt=Q.S.itag),Q.clientPlaybackNonce&&(k.cpn=Q.clientPlaybackNonce),Q.partnerId&&(k.partnerid=Q.partnerId),k=g.sD("//support.google.com/googleplay/",k));T.PH.o_(v&&Q.allowEmbed);T.getVideoUrl.o_(v);T.OY.o_(v&&!Q.isLivePlayback); T.AO.qF(k,"href");var L;(L=T.vc)==null||L.o_(!Q.isLivePlayback&&!l);var q;(q=T.Se)==null||q.o_(!l)}; pbu=function(T){var Q=!!T.Op;g.YH(T.Tx,Q?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener la informaci\u00f3n de depuraci\u00f3n");Ma(T.Tx,!Q);g.YH(T.PH,Q?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener el c\u00f3digo de inserci\u00f3n");Ma(T.PH,!Q);g.YH(T.getVideoUrl,Q?"Copiar URL del video":"Obtener la URL del video");Ma(T.getVideoUrl,!Q);g.YH(T.OY,Q?"Copiar URL del video en el momento actual":"Obtener la URL del video en el momento actual");Ma(T.OY,!Q);T.PH.setIcon(Q?Ikb():null);T.getVideoUrl.setIcon(Q? sC():null);T.OY.setIcon(Q?sC():null)}; JY5=function(T){return g.Qk(T.U.G())?T.Se:T.vc}; Fwf=function(T,Q){g.cp.call(this,T);this.G_=Q;this.Y=new g.Bj(this);this.z9=new g.FA(this.LFO,1E3,this);this.qO=this.L=null;g.P(this,this.Y);g.P(this,this.z9);Q=this.U.G();T.createClientVe(this.element,this,28656);g.oF(this.element,"ytp-contextmenu");this.U.G().experiments.Wd("delhi_modern_web_player")&&g.Cn(Q)&&g.oF(this.element,"ytp-delhi-modern-contextmenu");ecC(this);this.hide()}; ecC=function(T){g.N5(T.Y);var Q=T.U.G();Q.playerStyle==="gvn"||Q.S||Q.Jj||(Q=T.U.Hx(),T.Y.Z(Q,"contextmenu",T.pdK),T.Y.Z(Q,"touchstart",T.onTouchStart,null,!0),T.Y.Z(Q,"touchmove",T.df,null,!0),T.Y.Z(Q,"touchend",T.df,null,!0))}; EF5=function(T){T.U.isFullscreen()?g.TQ(T.U,T.element,10):T.XB(qz(T).body)}; Uu=function(T,Q,k){k=k===void 0?240:k;g.p.call(this,{X:"button",Rk:["ytp-button","ytp-copylink-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.Qk(T.G()))},W:[{X:"div",J:"ytp-copylink-icon",S6:"{{icon}}"},{X:"div",J:"ytp-copylink-title",S6:"Copiar v\u00ednculo",K:{"aria-hidden":"true"}}]});this.api=T;this.T=Q;this.S=k;this.visible=!1;this.tooltip=this.T.aK();Q=T.G();this.tooltip.element.setAttribute("aria-live", "polite");g.gl(this.element,"ytp-show-copylink-title",g.Qk(Q));T.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.Z(T,"videodatachange",this.Aj);this.Z(T,"videoplayerreset",this.Aj);this.Z(T,"appresize",this.Aj);this.Aj();this.addOnDisposeCallback(g.ty(this.tooltip,this.element))}; yYH=function(T){var Q=T.api.G(),k=T.api.getVideoData(),l=T.api.Hx().getPlayerSize().width;Q=Q.L;return!!k.videoId&&l>=T.S&&k.W5&&!k.hh&&!T.api.isEmbedsShortsMode()&&!Q}; i_5=function(T){T.updateValue("icon",fD());if(T.api.G().S)T.tooltip.hA(T.element,"Se copi\u00f3 el v\u00ednculo en el portapapeles");else{T.updateValue("title-attr","Se copi\u00f3 el v\u00ednculo en el portapapeles");T.updateValue("tooltip-title","Se copi\u00f3 el v\u00ednculo en el portapapeles");T.tooltip.wO();T.tooltip.hA(T.element);var Q=T.listen("mouseleave",function(){T.J6(Q);T.Aj();T.tooltip.Vb()})}}; VDu=function(T,Q){return g.a(function(k){if(k.S==1)return g.z5(k,2),g.c(k,navigator.clipboard.writeText(Q),4);if(k.S!=2)return k.return(!0);g.by(k);var l=k.return,v=!1,L=g.fO("TEXTAREA");L.value=Q;L.setAttribute("readonly","");var q=T.api.getRootNode();q.appendChild(L);if(We){var Y=window.getSelection();Y.removeAllRanges();var U=document.createRange();U.selectNodeContents(L);Y.addRange(U);L.setSelectionRange(0,Q.length)}else L.select();try{v=document.execCommand("copy")}catch(R){}q.removeChild(L); return l.call(k,v)})}; T9t=function(T){g.p.call(this,{X:"div",J:"ytp-doubletap-ui-legacy",W:[{X:"div",J:"ytp-doubletap-fast-forward-ve"},{X:"div",J:"ytp-doubletap-rewind-ve"},{X:"div",J:"ytp-doubletap-static-circle",W:[{X:"div",J:"ytp-doubletap-ripple"}]},{X:"div",J:"ytp-doubletap-overlay-a11y"},{X:"div",J:"ytp-doubletap-seek-info-container",W:[{X:"div",J:"ytp-doubletap-arrows-container",W:[{X:"span",J:"ytp-doubletap-base-arrow"},{X:"span",J:"ytp-doubletap-base-arrow"},{X:"span",J:"ytp-doubletap-base-arrow"}]},{X:"div", J:"ytp-doubletap-tooltip",W:[{X:"div",J:"ytp-seek-icon-text-container",W:[{X:"div",J:"ytp-seek-icon",S6:"{{seekIcon}}"},{X:"div",J:"ytp-chapter-seek-text-legacy",S6:"{{seekText}}"}]},{X:"div",J:"ytp-doubletap-tooltip-label",S6:"{{seekTime}}"}]}]}]});this.U=T;this.Y=new g.FA(this.show,10,this);this.S=new g.FA(this.hide,700,this);this.C=this.L=0;this.z9=this.B=!1;this.T=this.L_("ytp-doubletap-static-circle");g.P(this,this.Y);g.P(this,this.S);this.hide();this.j=this.L_("ytp-doubletap-fast-forward-ve"); this.D=this.L_("ytp-doubletap-rewind-ve");this.U.createClientVe(this.j,this,28240);this.U.createClientVe(this.D,this,28239);this.U.logVisibility(this.j,!0);this.U.logVisibility(this.D,!0);this.B=T.V("web_show_cumulative_seek_time");this.z9=T.V("web_center_static_circles")}; Q6X=function(T,Q){Q=g.o0("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:Q.toString()});T.updateValue("seekTime",Q)}; j6y=function(T){N4.call(this,T,!1,!0);this.xm=[];this.Ig=[];this.element.setAttribute("data-overlay-order","9");this.j=!0;this.badge.element.classList.add("ytp-featured-product");this.i9=new g.p({X:"div",J:"ytp-featured-product-open-in-new"});g.P(this,this.i9);this.countdownTimer=new g.p({X:"text",J:"ytp-featured-product-countdown",S6:"{{content}}"});this.countdownTimer.hide();g.P(this,this.countdownTimer);this.S=new g.p({X:"div",J:"ytp-featured-product-trending",W:[{X:"div",J:"ytp-featured-product-trending-icon"}, {X:"text",J:"ytp-featured-product-trending-text",S6:"{{trendingOffer}}"}]});this.S.hide();g.P(this,this.S);this.overflowButton=new g.p({X:"button",Rk:["ytp-featured-product-overflow-icon","ytp-button"],K:{"aria-haspopup":"true"}});this.overflowButton.hide();g.P(this,this.overflowButton);this.C=new g.p({X:"text",J:"ytp-featured-product-exclusive-countdown",S6:"{{content}}",K:{id:"exclusiveCountdown","aria-hidden":"true"}});this.C.hide();g.P(this,this.C);this.B=new g.p({X:"div",J:"ytp-featured-product-exclusive-container", K:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},W:[{X:"div",J:"ytp-featured-product-exclusive-badge-container",W:[{X:"div",J:"ytp-featured-product-exclusive-badge",W:[{X:"text",J:"ytp-featured-product-exclusive-badge-text",S6:"{{exclusive}}",K:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.C]});this.B.hide();g.P(this,this.B);this.banner=new g.p({X:"a",J:"ytp-featured-product-container",W:[{X:"div",J:"ytp-featured-product-thumbnail",W:[{X:"img",K:{src:"{{thumbnail}}"}},this.i9]},{X:"div", J:"ytp-featured-product-details",W:[{X:"text",J:"ytp-featured-product-title",S6:"{{title}}"},this.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{X:"div",J:"ytp-featured-product-price-container",K:{"aria-label":"{{priceA11yText}}"},W:[{X:"text",J:"ytp-featured-product-price-when-promotion-text-enabled",S6:"{{price}}",K:{"aria-hidden":"true"}},{X:"text",J:"ytp-featured-product-promotion-text",S6:"{{promotionText}}",K:{"aria-hidden":"true"}}]}:{X:"div",K:{"aria-label":"{{priceA11yText}}"}, W:[{X:"text",J:"ytp-featured-product-price",S6:"{{price}}",K:{"aria-hidden":"true"}},{X:"text",J:"ytp-featured-product-sales-original-price",S6:"{{salesOriginalPrice}}",K:{"aria-hidden":"true"}},{X:"text",J:"ytp-featured-product-price-drop-reference-price",S6:"{{priceDropReferencePrice}}",K:{"aria-hidden":"true"}}]},this.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{X:"div",J:"ytp-featured-product-when-promotion-text-enabled",W:[{X:"text",J:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", S6:"{{affiliateDisclaimer}}"},this.S,{X:"text",J:"ytp-featured-product-vendor-when-promotion-text-enabled",S6:"{{vendor}}"}]}:{X:"div",W:[{X:"text",J:"ytp-featured-product-affiliate-disclaimer",S6:"{{affiliateDisclaimer}}"},this.U.V("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.B:null,this.S,{X:"text",J:"ytp-featured-product-vendor",S6:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.P(this,this.banner);this.banner.XB(this.L.element);this.Z(this.U,g.ej("featured_product"), this.PKm);this.Z(this.U,g.Ft("featured_product"),this.rp);this.Z(this.U,"videodatachange",this.onVideoDataChange);this.Z(this.overflowButton.element,"click",this.ZJ);this.Z(T,"featuredproductdismissed",this.Np)}; k2t=function(T){var Q,k;T=(Q=T.T)==null?void 0:(k=Q.bannerData)==null?void 0:k.itemData;var l,v,L;return(T==null||!T.affiliateDisclaimer)&&(T==null?0:(l=T.exclusivesData)==null?0:l.exclusiveOfferLabelText)&&(T==null?0:(v=T.exclusivesData)==null?0:v.expirationTimestampMs)&&(T==null?0:(L=T.exclusivesData)==null?0:L.exclusiveOfferCountdownText)?!0:!1}; ov5=function(T){var Q,k,l,v,L=(Q=T.T)==null?void 0:(k=Q.bannerData)==null?void 0:(l=k.itemData)==null?void 0:(v=l.exclusivesData)==null?void 0:v.expirationTimestampMs;Q=(Number(L)-Date.now())/1E3;if(Q>0){if(Q<604800){var q,Y,U,R;k=(q=T.T)==null?void 0:(Y=q.bannerData)==null?void 0:(U=Y.itemData)==null?void 0:(R=U.exclusivesData)==null?void 0:R.exclusiveOfferCountdownText;if(k!==void 0)for(q=Date.now(),Y=g.B(k),U=Y.next();!U.done;U=Y.next())if(U=U.value,U!==void 0&&U.text!==void 0&&(R=Number(U.textDisplayStartTimestampMs), !isNaN(R)&&q>=R)){U.insertCountdown?(Q=U.text.replace(/\$0/,String(t1({seconds:Q}))),T.C.qF(Q)):T.C.qF(U.text);T.C.show();break}}var Z,f,G,m;T.B.update({exclusive:(Z=T.T)==null?void 0:(f=Z.bannerData)==null?void 0:(G=f.itemData)==null?void 0:(m=G.exclusivesData)==null?void 0:m.exclusiveOfferLabelText});T.B.show();RG(T);var I;(I=T.OG)==null||I.start()}else l3b(T)}; l3b=function(T){var Q;(Q=T.OG)==null||Q.stop();T.C.hide();T.B.hide();ZL(T)}; vv5=function(T){var Q,k,l=(Q=T.T)==null?void 0:(k=Q.bannerData)==null?void 0:k.itemData;return T.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(l==null||!l.priceReplacementText)&&(l==null?0:l.promotionText)?l==null?void 0:l.promotionText.content:null}; L$b=function(T){var Q,k,l=(Q=T.T)==null?void 0:(k=Q.bannerData)==null?void 0:k.itemData,v,L;if(!(l!=null&&l.priceReplacementText||T.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(l==null?0:(v=l.dealsData)==null?0:(L=v.sales)==null?0:L.originalPrice)){var q,Y;return l==null?void 0:(q=l.dealsData)==null?void 0:(Y=q.sales)==null?void 0:Y.originalPrice}return null}; qZ5=function(T){var Q,k,l=(Q=T.T)==null?void 0:(k=Q.bannerData)==null?void 0:k.itemData,v,L,q,Y;if(!((l==null?0:l.priceReplacementText)||T.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(l==null?0:(v=l.dealsData)==null?0:(L=v.sales)==null?0:L.originalPrice))&&(l==null?0:(q=l.dealsData)==null?0:(Y=q.priceDrop)==null?0:Y.referencePrice)){var U,R;return l==null?void 0:(U=l.dealsData)==null?void 0:(R=U.priceDrop)==null?void 0:R.referencePrice}return null}; gvt=function(T){var Q,k,l=(Q=T.T)==null?void 0:(k=Q.bannerData)==null?void 0:k.itemData;if(l==null?0:l.priceReplacementText)return l==null?void 0:l.priceReplacementText;if((l==null?0:l.promotionText)&&T.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var v;return(l==null?void 0:l.price)+" "+(l==null?void 0:(v=l.promotionText)==null?void 0:v.content)}var L,q;if(l==null?0:(L=l.dealsData)==null?0:(q=L.sales)==null?0:q.originalPrice){var Y,U;return l==null?void 0:(Y=l.dealsData)== null?void 0:(U=Y.sales)==null?void 0:U.salesPriceAccessibilityLabel}var R,Z;if(l==null?0:(R=l.dealsData)==null?0:(Z=R.priceDrop)==null?0:Z.referencePrice){var f,G;return(l==null?void 0:l.price)+" "+(l==null?void 0:(f=l.dealsData)==null?void 0:(G=f.priceDrop)==null?void 0:G.referencePrice)}return l==null?void 0:l.price}; MUJ=function(T){if(T.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var Q,k,l;return T.S.Sr?null:(Q=T.T)==null?void 0:(k=Q.bannerData)==null?void 0:(l=k.itemData)==null?void 0:l.vendorName}var v,L,q,Y,U,R;return T.S.Sr||T.B.Sr||((v=T.T)==null?0:(L=v.bannerData)==null?0:(q=L.itemData)==null?0:q.affiliateDisclaimer)?null:(Y=T.T)==null?void 0:(U=Y.bannerData)==null?void 0:(R=U.itemData)==null?void 0:R.vendorName}; Uc5=function(T,Q){fm(T);if(Q){var k=g.w4.getState().entities;k=V8(k,"featuredProductsEntity",Q);if(k!=null&&k.productsData){Q=[];k=g.B(k.productsData);for(var l=k.next();!l.done;l=k.next()){l=l.value;var v=void 0;if((v=l)!=null&&v.identifier&&l.featuredSegments){T.xm.push(l);var L=void 0;v=g.B((L=l)==null?void 0:L.featuredSegments);for(L=v.next();!L.done;L=v.next()){var q=L.value;L=YZH(q.startTimeSec);L!==void 0&&(q=YZH(q.endTimeSec),Q.push(new g.$d(L*1E3,q===void 0?0x7ffffffffffff:q*1E3,{id:l.identifier, namespace:"featured_product"})))}}}T.U.fY(Q)}}}; ZL=function(T){if(T.trendingOfferEntityKey){var Q=g.w4.getState().entities;if(Q=V8(Q,"trendingOfferEntity",T.trendingOfferEntityKey)){var k,l,v;Q.encodedSkuId!==((k=T.T)==null?void 0:(l=k.bannerData)==null?void 0:(v=l.itemData)==null?void 0:v.encodedOfferSkuId)?RG(T):(T.S.update({trendingOffer:Q.shortLabel+" \u2022 "+Q.countLabel}),T.S.show(),T.banner.update({vendor:MUJ(T)}))}else RG(T)}else RG(T)}; RG=function(T){T.S.hide();T.banner.update({vendor:MUJ(T)})}; fm=function(T){T.xm=[];T.rp();T.U.uf("featured_product")}; RoX=function(T){var Q,k,l,v,L=(Q=T.T)==null?void 0:(k=Q.bannerData)==null?void 0:(l=k.itemData)==null?void 0:(v=l.hiddenProductOptions)==null?void 0:v.dropTimestampMs;Q=(Number(L)-Date.now())/1E3;T.countdownTimer.qF(t1({seconds:Q}));if(Q>0){var q;(q=T.d5)==null||q.start()}}; Zs6=function(T){var Q;(Q=T.d5)==null||Q.stop();T.countdownTimer.hide()}; YZH=function(T){if(T!==void 0&&T.trim()!==""&&(T=Math.trunc(Number(T.trim())),!(isNaN(T)||T<0)))return T}; ho5=function(T,Q,k){g.p.call(this,{X:"div",Rk:["ytp-info-panel-action-item"],W:[{X:"div",J:"ytp-info-panel-action-item-disclaimer",S6:"{{disclaimer}}"},{X:"a",Rk:["ytp-info-panel-action-item-button","ytp-button"],K:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},W:[{X:"div",J:"ytp-info-panel-action-item-icon",S6:"{{icon}}"},{X:"div",J:"ytp-info-panel-action-item-label",S6:"{{label}}"}]}]});this.U=T;this.T=k;this.disclaimer=this.L_("ytp-info-panel-action-item-disclaimer");this.button= this.L_("ytp-info-panel-action-item-button");this.Hk=!1;this.U.createServerVe(this.element,this,!0);this.listen("click",this.onClick);T="";k=g.t(Q==null?void 0:Q.onTap,Dh);var l=g.t(k,g.uD);this.Hk=!1;l?(T=l.url||"",T.startsWith("//")&&(T="https:"+T),this.Hk=!0,g.YP(this.button,g.Ll(T))):(l=g.t(k,f3t))&&!this.T?((T=l.phoneNumbers)&&T.length>0?(T="sms:"+T[0],l.messageText&&(T+="?&body="+encodeURI(l.messageText))):T="",this.Hk=!0,g.YP(this.button,g.Ll(T,[G2H]))):(k=g.t(k,mc6))&&!this.T&&(T=k.phoneNumber? "tel:"+k.phoneNumber:"",this.Hk=!0,g.YP(this.button,g.Ll(T,[I36])));var v;if(k=(v=Q.disclaimerText)==null?void 0:v.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var L;this.update({label:(L=Q.bodyText)==null?void 0:L.content,icon:BZ(),disclaimer:k})}else{this.disclaimer.style.display="none";var q;this.update({label:(q=Q.bodyText)==null?void 0:q.content,icon:BZ()})}this.U.setTrackingParams(this.element,Q.trackingParams||null);this.Hk&&(this.S={externalLinkData:{url:T}})}; s6b=function(T,Q){var k=vZ();g.LA.call(this,T,{X:"div",J:"ytp-info-panel-detail-skrim",W:[{X:"div",J:"ytp-info-panel-detail",K:{role:"dialog",id:k},W:[{X:"div",J:"ytp-info-panel-detail-header",W:[{X:"div",J:"ytp-info-panel-detail-title",S6:"{{title}}"},{X:"button",Rk:["ytp-info-panel-detail-close","ytp-button"],K:{"aria-label":"Cerrar"},W:[g.Ix()]}]},{X:"div",J:"ytp-info-panel-detail-body",S6:"{{body}}"},{X:"div",J:"ytp-info-panel-detail-items"}]}]},250);this.T=Q;this.items=this.L_("ytp-info-panel-detail-items"); this.L=new g.Bj(this);this.itemData=[];this.Y=k;this.Z(this.L_("ytp-info-panel-detail-close"),"click",this.sG);this.Z(this.L_("ytp-info-panel-detail-skrim"),"click",this.sG);this.Z(this.L_("ytp-info-panel-detail"),"click",function(l){l.stopPropagation()}); g.P(this,this.L);this.U.createServerVe(this.element,this,!0);this.Z(T,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",T.getVideoData());this.hide()}; SZt=function(T,Q){T=g.B(T.itemData);for(var k=T.next();!k.done;k=T.next())k=k.value,k.U.logVisibility(k.element,Q)}; zof=function(T,Q){g.p.call(this,{X:"div",J:"ytp-info-panel-preview",K:{"aria-live":"assertive","aria-atomic":"true","aria-owns":Q.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.Qk(T.G()))},W:[{X:"div",J:"ytp-info-panel-preview-text",S6:"{{text}}"},{X:"div",J:"ytp-info-panel-preview-chevron",S6:"{{chevron}}"}]});var k=this;this.U=T;this.yU=this.T=this.videoId=null;this.L=this.showControls=this.S=!1;this.Z(this.element,"click",function(){T.logClick(k.element);T.VV();gh(Q)}); this.fade=new g.TZ(this,250,!1,100);g.P(this,this.fade);this.U.createServerVe(this.element,this,!0);this.Z(T,"videodatachange",this.onVideoDataChange);this.Z(T,"presentingplayerstatechange",this.bJ);this.Z(this.U,"paidcontentoverlayvisibilitychange",this.pI);this.Z(this.U,"infopaneldetailvisibilitychange",this.pI);var l=T.getVideoData()||{};CsI(l)&&B95(this,l);this.Z(T,"onShowControls",this.j7);this.Z(T,"onHideControls",this.Ai)}; B95=function(T,Q){if(!Q.m0||!T.U.Pc()){var k=Q.o$||1E4,l=CsI(Q);T.T?Q.videoId&&Q.videoId!==T.videoId&&(g.iN(T.T),T.videoId=Q.videoId,l?(X_X(T,k,Q),T.fA()):(T.sG(),T.T.dispose(),T.T=null)):l&&(Q.videoId&&(T.videoId=Q.videoId),X_X(T,k,Q),T.fA())}}; CsI=function(T){var Q,k,l,v;return!!((Q=T.iK)==null?0:(k=Q.title)==null?0:k.content)||!!((l=T.iK)==null?0:(v=l.bodyText)==null?0:v.content)}; X_X=function(T,Q,k){T.T&&T.T.dispose();T.T=new g.FA(T.OG9,Q,T);g.P(T,T.T);var l;Q=((l=k.iK)==null?void 0:l.trackingParams)||null;T.U.setTrackingParams(T.element,Q);var v;var L,q;if(k==null?0:(L=k.iK)==null?0:(q=L.title)==null?0:q.content){var Y;l=(v=k.iK)==null?void 0:(Y=v.title)==null?void 0:Y.content;var U,R;if((U=k.iK)==null?0:(R=U.bodyText)==null?0:R.content)l+=" \u2022 ";v=l}else v="";var Z,f;k=((Z=k.iK)==null?void 0:(f=Z.bodyText)==null?void 0:f.content)||"";T.update({text:v+k,chevron:g.mM()})}; w_u=function(T,Q){T.T&&(g.J(Q,8)?(T.S=!0,T.fA(),T.T.start()):(g.J(Q,2)||g.J(Q,64))&&T.videoId&&(T.videoId=null))}; GK=function(T){var Q=null;try{Q=T.toLocaleString("es-419",{style:"percent"})}catch(k){Q=T.toLocaleString(void 0,{style:"percent"})}return Q}; mJ=function(T,Q){var k=0;T=g.B(T);for(var l=T.next();!(l.done||l.value.startTime>Q);l=T.next())k++;return k===0?k:k-1}; dc5=function(T,Q){for(var k=0,l=g.B(T),v=l.next();!v.done;v=l.next()){v=v.value;if(Q=v.timeRangeStartMillis&&Q2147483647?"0":String(T)}; hG=function(T,Q,k){var l=T.api.getCurrentTime(),v=DcH(T,l);T=DcH(T,l+Q);return{startMediaTimeMs:v,endMediaTimeMs:T,seekSource:k}}; a3t=function(T){var Q,k=(Q=T.api.getVideoData())==null?void 0:Q.lf();return T.api.getPresentingPlayerType(k)!==2}; IG=function(T,Q){T.L.n9=Q;g.gl(T.api.getRootNode(),"ytp-probably-keyboard-focus",Q);g.gl(T.contextMenu.element,"ytp-probably-keyboard-focus",Q)}; Cm=function(T,Q,k,l){var v=g.uj(T.api.Bx());if(v&&v.loaded){var L=T.api.getSubtitlesUserSettings();v=void 0;for(var q=0;q0?Q[0]:null;var k=g.gK("ytp-chrome-bottom"),l=g.gK("ytp-ad-module");T.Y=!(k==null||!k.contains(Q));T.j=!(l==null||!l.contains(Q));T.D=!(Q==null||!Q.hasAttribute("data-tooltip-target-fixed"));return Q}; W$C=function(T,Q,k){if(!T.B){if(Q){T.tooltipRenderer=Q;Q=T.tooltipRenderer.text;var l=!1,v;(Q==null?0:(v=Q.runs)==null?0:v.length)&&Q.runs[0].text&&(T.update({title:Q.runs[0].text.toString()}),l=!0);g.kj(T.title,l);Q=T.tooltipRenderer.detailsText;v=!1;var L;if((Q==null?0:(L=Q.runs)==null?0:L.length)&&Q.runs[0].text){l=Q.runs[0].text.toString();L=l.indexOf("$TARGET_ICON");if(L>-1)if(T.tooltipRenderer.targetId){Q=[];l=l.split("$TARGET_ICON");var q=new g.LD({X:"span",J:"ytp-promotooltip-details-icon", W:[Os5[T.tooltipRenderer.targetId]]});g.P(T,q);for(var Y=[],U=g.B(l),R=U.next();!R.done;R=U.next())R=new g.LD({X:"span",J:"ytp-promotooltip-details-component",S6:R.value}),g.P(T,R),Y.push(R);l.length===2?(Q.push(Y[0].element),Q.push(q.element),Q.push(Y[1].element)):l.length===1&&(L===0?(Q.push(q.element),Q.push(Y[0].element)):(Q.push(Y[0].element),Q.push(q.element)));L=Q.length?Q:null}else L=null;else L=l;if(L){if(typeof L!=="string")for(g.IO(T.details),v=g.B(L),L=v.next();!L.done;L=v.next())T.details.appendChild(L.value); else T.update({details:L});v=!0}}g.kj(T.details,v);v=T.tooltipRenderer.acceptButton;L=!1;var Z,f,G;((Z=g.t(v,g.jw))==null?0:(f=Z.text)==null?0:(G=f.runs)==null?0:G.length)&&g.t(v,g.jw).text.runs[0].text&&(T.update({acceptButtonText:g.t(v,g.jw).text.runs[0].text.toString()}),L=!0);g.kj(T.acceptButton,L);Z=T.tooltipRenderer.dismissButton;f=!1;var m,I,z;((m=g.t(Z,g.jw))==null?0:(I=m.text)==null?0:(z=I.runs)==null?0:z.length)&&g.t(Z,g.jw).text.runs[0].text&&(T.update({dismissButtonText:g.t(Z,g.jw).text.runs[0].text.toString()}), f=!0);g.kj(T.dismissButton,f)}k&&(T.L=k);T.T=tUg(T);T.C=!1;T.U.G().V("web_player_hide_nitrate_promo_tooltip")||T.o_(!0);p_6(T);T.Sr&&!T.z9&&(T.z9=!0,T.dn.M8(0));T.S&&T.U.logVisibility(T.element,T.Sr)}}; Xa=function(T){T.o_(!1);T.S&&T.U.logVisibility(T.element,T.Sr)}; $cy=function(T){var Q,k,l,v=((Q=g.t(T.acceptButton,g.jw))==null?void 0:(k=Q.text)==null?void 0:(l=k.runs)==null?void 0:l.length)&&!!g.t(T.acceptButton,g.jw).text.runs[0].text,L,q,Y;Q=((L=g.t(T.dismissButton,g.jw))==null?void 0:(q=L.text)==null?void 0:(Y=q.runs)==null?void 0:Y.length)&&!!g.t(T.dismissButton,g.jw).text.runs[0].text;return v||Q}; p_6=function(T){var Q;if(!(Q=!T.T)){Q=T.T;var k=window.getComputedStyle(Q);Q=k.display==="none"||k.visibility==="hidden"||Q.getAttribute("aria-hidden")==="true"}if(Q||T.U.isMinimized())T.o_(!1);else if(Q=g.jC(T.T),Q.width&&Q.height){T.U.MG(T.element,T.T);var l=T.U.Hx().getPlayerSize().height;k=g.jC(T.L_("ytp-promotooltip-container")).height;T.Y?T.element.style.top=l-k-Q.height-12+"px":T.D||(l=T.U.IM().height-k-Q.height-12,T.element.style.top=l+"px");l=T.L_("ytp-promotooltip-pointer");var v=g.To(T.T, T.U.getRootNode()),L=Number(T.element.style.left.replace(/[^\d\.]/g,""));T=T.U.isFullscreen()?18:12;l.style.left=v.x-L+Q.width/2-T+"px";l.style.top=k+"px"}else T.o_(!1)}; wu=function(T){g.p.call(this,{X:"button",Rk:["ytp-replay-button","ytp-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"Volver a reproducir":"","data-tooltip-title":"Volver a reproducir"},W:[g.wD()]});this.U=T;this.Z(T,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.OH(T.getPlayerStateObject());OU(this.U,this.element,this)}; du=function(T,Q){Q=Q===void 0?240:Q;g.p.call(this,{X:"button",Rk:["ytp-button","ytp-search-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"Buscar":"","data-tooltip-title":"Buscar","data-tooltip-opaque":String(g.Qk(T.G()))},W:[{X:"div",J:"ytp-search-icon",S6:"{{icon}}"},{X:"div",J:"ytp-search-title",S6:"Buscar"}]});this.api=T;this.S=Q;this.visible=!1;this.updateValue("icon",{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{X:"path",J:"ytp-svg-fill",K:{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"}}]}); T.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.T();this.Z(T,"appresize",this.T);this.Z(T,"videodatachange",this.T);OU(T,this.element,this)}; Na=function(T){g.p.call(this,{X:"div",J:"ytp-seek-overlay",W:[{X:"div",Rk:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],W:[{X:"div",Rk:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],W:[{X:"svg",K:{viewBox:"0 0 22 32",width:"22",height:"24"},W:[{X:"path",K:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{X:"div",J:"ytp-seek-overlay-duration",S6:"{{durationBack}}"}]},{X:"div",Rk:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],W:[{X:"div",J:"ytp-seek-overlay-duration",S6:"{{durationForward}}"},{X:"div",Rk:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],W:[{X:"svg",K:{viewBox:"0 0 22 32",width:"22",height:"24"},W:[{X:"path",K:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{X:"div",J:"ytp-seek-overlay-message",W:[{X:"div",J:"ytp-seek-overlay-message-icon",S6:"{{icon}}"},{X:"div",J:"ytp-seek-overlay-message-text", S6:"{{text}}"}]}]});var Q=this;this.U=T;this.C=0;this.T="hidden";this.j=this.L_("ytp-seek-overlay-animation-back");this.D=this.L_("ytp-seek-overlay-animation-forward");this.z9=this.L_("ytp-seek-overlay-message");this.B=new g.FA(function(){JXX(Q)},g.jj(this.U.G().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.P(this,this.B);this.U.createClientVe(this.D,this,28240);this.U.createClientVe(this.j,this,28239);this.U.logVisibility(this.D,!0);this.U.logVisibility(this.j,!0);this.hide()}; eoH=function(T,Q){T.L=T.Y.animate([{offset:0,opacity:Q,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});T.L.addEventListener("finish",function(){T.L=void 0;T.B.start();T.T="lingering"})}; F$y=function(T,Q,k,l){k=k===void 0?!1:k;l=l===void 0?!1:l;var v=[];v.push({offset:0,transform:"translateX("+(T.S===-1?20:-20)+"px)",opacity:k?"0":"1"});k&&v.push({offset:.5,opacity:"1"});v.push({offset:1,transform:"translateX(0)"});k=Q.animate(v,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});Q=Q.querySelector("path");v=[];v.push({offset:0,d:T.S===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'});l&&v.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"}); T={offset:1,d:T.S===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};l&&(T.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");v.push(T);Q.animate(v,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return k}; EvI=function(T){var Q=T.Y.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);Q.classList.add("ytp-seek-overlay-arrow-additional");Q.classList.remove("ytp-seek-overlay-arrow-persistent");T.Y.appendChild(Q);F$y(T,Q,!0,!0).addEventListener("finish",function(){Q.remove()})}; JXX=function(T,Q,k){k=k===void 0?!0:k;T.L=T.Y.animate([{offset:0,opacity:Q===void 0?1:Q},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});k&&(T.L.addEventListener("finish",function(){T.L=void 0;yXu(T);T.hide()}),T.T="fading-out")}; isT=function(T){var Q=Number(getComputedStyle(T.Y).opacity),k;(k=T.L)==null||k.cancel();T.L=void 0;return Q}; yXu=function(T){T.C=0;T.T="hidden";T.S=void 0;T.Y=void 0;T.B.stop();T.L=void 0}; VUX=function(T,Q,k){T.updateValue("text",Q);if(k){a:{switch(k){case "PREMIUM_STANDALONE":Q=rgf();break a;case "PREMIUM_STANDALONE_CAIRO":Q=cgg();break a}Q=void 0}T.updateValue("icon",Q)}Q=g.B(T.z9.getAnimations());for(k=Q.next();!k.done;k=Q.next())k.value.cancel();T.z9.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){T.updateValue("text","");T.updateValue("icon","")})}; AG=function(T,Q,k,l){l=l===void 0?240:l;g.p.call(this,{X:"button",Rk:["ytp-button","ytp-share-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"Compartir":"","data-tooltip-title":"Compartir","aria-haspopup":"true","aria-owns":k.element.id,"data-tooltip-opaque":String(g.Qk(T.G()))},W:[{X:"div",J:"ytp-share-icon",S6:"{{icon}}"},{X:"div",J:"ytp-share-title",S6:"Compartir"}]});this.api=T;this.T=Q;this.S=k;this.L=l;this.visible=!1;this.tooltip=this.T.aK();T.createClientVe(this.element,this, 28664);this.listen("click",this.onClick);this.Z(T,"videodatachange",this.Aj);this.Z(T,"videoplayerreset",this.Aj);this.Z(T,"appresize",this.Aj);this.Z(T,"presentingplayerstatechange",this.Aj);this.Aj();this.addOnDisposeCallback(g.ty(this.tooltip,this.element))}; TF6=function(T){var Q=T.api.G(),k=T.api.getVideoData(),l=g.Qk(Q)&&g.FZ(T.api)&&g.J(T.api.getPlayerStateObject(),128);Q=Q.L||Q.disableSharing&&T.api.getPresentingPlayerType()!==2||!k.showShareButton||k.W5||l||k.hh||!1;l=T.api.Hx().getPlayerSize().width;return!!k.videoId&&l>=T.L&&!Q}; QMf=function(T,Q){Q.name!=="InvalidStateError"&&Q.name!=="AbortError"&&(Q.name==="NotAllowedError"?(T.T.VV(),gh(T.S,T.element,!1)):g.bA(Q))}; krT=function(T,Q){var k=vZ(),l=T.G();k={X:"div",J:"ytp-share-panel",K:{id:vZ(),role:"dialog","aria-labelledby":k},W:[{X:"div",J:"ytp-share-panel-inner-content",W:[{X:"div",J:"ytp-share-panel-title",K:{id:k},S6:"Compartir"},{X:"a",Rk:["ytp-share-panel-link","ytp-no-contextmenu"],K:{href:"{{link}}",target:l.D,title:"Compartir v\u00ednculo","aria-label":"{{shareLinkWithUrl}}"},S6:"{{linkText}}"},{X:"label",J:"ytp-share-panel-include-playlist",W:[{X:"input",J:"ytp-share-panel-include-playlist-checkbox", K:{type:"checkbox",checked:"true"}},"Incluir playlist"]},{X:"div",J:"ytp-share-panel-loading-spinner",W:[AN()]},{X:"div",J:"ytp-share-panel-service-buttons",S6:"{{buttons}}"},{X:"div",J:"ytp-share-panel-error",S6:"Error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{X:"button",Rk:["ytp-share-panel-close","ytp-button"],K:{title:"Cerrar"},W:[g.Ix()]}]};g.LA.call(this,T,k,250);var v=this;this.moreButton=null;this.api=T;this.tooltip=Q.aK();this.L=[];this.B= this.L_("ytp-share-panel-inner-content");this.closeButton=this.L_("ytp-share-panel-close");this.Z(this.closeButton,"click",this.sG);this.addOnDisposeCallback(g.ty(this.tooltip,this.closeButton));this.Y=this.L_("ytp-share-panel-include-playlist-checkbox");this.Z(this.Y,"click",this.Aj);this.T=this.L_("ytp-share-panel-link");this.addOnDisposeCallback(g.ty(this.tooltip,this.T));this.api.createClientVe(this.T,this,164503);this.Z(this.T,"click",function(L){L.preventDefault();v.api.logClick(v.T);var q= v.api.getVideoUrl(!0,!0,!1,!1);q=jMg(v,q);g.dh(q,v.api,L)&&v.api.tj("SHARE_CLICKED")}); this.listen("click",this.nL);this.Z(T,"videoplayerreset",this.hide);this.Z(T,"fullscreentoggled",this.onFullscreenToggled);this.Z(T,"onLoopRangeChange",this.u2);this.hide()}; vGf=function(T,Q){l6I(T);for(var k=Q.links||Q.shareTargets,l=0,v={},L=0;L0&&!E&&!K?(D.length===2&&(D=["noreferrer"]),g.GH(m,z,G,D[0]),m=QSy()):(w=A.join(","),Kl()&&m.navigator&&m.navigator.standalone&&G&&G!="_self"?(w=g.fO("A"),g.YP(w,z),w.target=G,r&&(w.rel="noreferrer"),((I=I.attributionsrc)||I==="")&&w.setAttribute("attributionsrc",I),I=document.createEvent("MouseEvent"), I.initMouseEvent("click",!0,!0,m,1),w.dispatchEvent(I),m=QSy()):r?(m=g.GH(m,"",G,w),I=g.lX(z),m&&(m.opener=null,I===""&&(I="javascript:''"),I='',I=Zo(I),(z=m.document)&&z.write&&(z.write(fl(I)),z.close()))):((m=g.GH(m,z,G,w))&&I.noopener&&(m.opener=null),m&&I.noreferrer&&(m.opener=null)));m&&(m.opener||(m.opener=window),m.focus());f.preventDefault()}}}(v)); v.T6.addOnDisposeCallback(g.ty(T.tooltip,v.T6.element));Y==="Facebook"?T.api.createClientVe(v.T6.element,v.T6,164504):Y==="Twitter"&&T.api.createClientVe(v.T6.element,v.T6,164505);T.Z(v.T6.element,"click",function(Z){return function(){T.api.logClick(Z.T6.element)}}(v)); T.api.logVisibility(v.T6.element,!0);T.L.push(v.T6);l++}}var U=Q.more||Q.moreLink,R=new g.p({X:"a",Rk:["ytp-share-panel-service-button","ytp-button"],W:[{X:"span",J:"ytp-share-panel-service-button-more",W:[{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{X:"rect",K:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{X:"path",K:{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"}}]}]}],K:{href:U,target:"_blank",title:"M\u00e1s"}});R.listen("click",function(Z){var f=U;T.api.logClick(T.moreButton.element);f=jMg(T,f);g.dh(f,T.api,Z)&&T.api.tj("SHARE_CLICKED")}); R.addOnDisposeCallback(g.ty(T.tooltip,R.element));T.api.createClientVe(R.element,R,164506);T.Z(R.element,"click",function(){T.api.logClick(R.element)}); T.api.logVisibility(R.element,!0);T.L.push(R);T.moreButton=R;T.updateValue("buttons",T.L)}; jMg=function(T,Q){var k={};g.Qk(T.api.G())&&(g.Ay(T.api,"addEmbedsConversionTrackingParams",[k]),Q=g.sD(Q,k));return Q}; l6I=function(T){for(var Q=g.B(T.L),k=Q.next();!k.done;k=Q.next())k=k.value,k.detach(),g.od(k);T.L=[]}; bz=function(T){return T===void 0||T.startSec===void 0||T.endSec===void 0?!1:!0}; LH6=function(T,Q){T.startSec+=Q;T.endSec+=Q}; gG6=function(T){N4.call(this,T);this.S=this.T=this.isContentForward=this.C=!1;this.element.setAttribute("data-overlay-order","8");qOJ(this);this.Z(this.U,"changeProductsInVideoVisibility",this.hge);this.Z(this.U,"videodatachange",this.onVideoDataChange)}; M0H=function(T){T.B&&T.e6.element.removeChild(T.B.element);T.B=void 0}; UeC=function(T,Q){return Q.map(function(k){var l,v;if((k=(l=g.t(k,YOy))==null?void 0:(v=l.thumbnail)==null?void 0:v.thumbnails)&&k.length!==0)return k[0].url}).filter(function(k){return k!==void 0}).map(function(k){k=new g.p({X:"img", J:"ytp-suggested-action-product-thumbnail",K:{alt:"",src:k}});g.P(T,k);return k})}; Rl5=function(T,Q){T.isContentForward=Q;g.gl(T.badge.element,"ytp-suggested-action-badge-content-forward",Q)}; ru=function(T){var Q=T.isContentForward&&!T.FY();g.gl(T.badge.element,"ytp-suggested-action-badge-preview-collapsed",Q&&T.T);g.gl(T.badge.element,"ytp-suggested-action-badge-preview-expanded",Q&&T.S)}; c1=function(T,Q,k){return new g.$d(T*1E3,Q*1E3,{priority:9,namespace:k})}; Z0t=function(T){T.U.uf("shopping_overlay_visible");T.U.uf("shopping_overlay_preview_collapsed");T.U.uf("shopping_overlay_preview_expanded");T.U.uf("shopping_overlay_expanded")}; qOJ=function(T){T.Z(T.U,g.ej("shopping_overlay_visible"),function(){T.H1(!0)}); T.Z(T.U,g.Ft("shopping_overlay_visible"),function(){T.H1(!1)}); T.Z(T.U,g.ej("shopping_overlay_expanded"),function(){T.qO=!0;dW(T)}); T.Z(T.U,g.Ft("shopping_overlay_expanded"),function(){T.qO=!1;dW(T)}); T.Z(T.U,g.ej("shopping_overlay_preview_collapsed"),function(){T.T=!0;ru(T)}); T.Z(T.U,g.Ft("shopping_overlay_preview_collapsed"),function(){T.T=!1;ru(T)}); T.Z(T.U,g.ej("shopping_overlay_preview_expanded"),function(){T.S=!0;ru(T)}); T.Z(T.U,g.Ft("shopping_overlay_preview_expanded"),function(){T.S=!1;ru(T)})}; mef=function(T){g.p.call(this,{X:"div",J:"ytp-shorts-title-channel",W:[{X:"a",J:"ytp-shorts-title-channel-logo",K:{href:"{{channelLink}}",target:T.G().D,"aria-label":"{{channelLogoLabel}}"}},{X:"div",J:"ytp-shorts-title-expanded-heading",W:[{X:"div",J:"ytp-shorts-title-expanded-title",W:[{X:"a",S6:"{{expandedTitle}}",K:{href:"{{channelTitleLink}}",target:T.G().D,tabIndex:"0"}}]}]}]});var Q=this;this.api=T;this.T=this.L_("ytp-shorts-title-channel-logo");this.channelName=this.L_("ytp-shorts-title-expanded-title"); this.subscribeButton=null;T.createClientVe(this.T,this,36925);this.Z(this.T,"click",function(k){Q.api.logClick(Q.T);g.GH(window,f6g(Q));k.preventDefault()}); T.createClientVe(this.channelName,this,37220);this.Z(this.channelName,"click",function(k){Q.api.logClick(Q.channelName);g.GH(window,f6g(Q));k.preventDefault()}); GrH(this);this.Z(T,"videodatachange",this.Aj);this.Z(T,"videoplayerreset",this.Aj);this.Aj()}; GrH=function(T){if(!T.api.G().Gg){var Q=T.api.getVideoData(),k=new g.qa("Suscribirse",null,"Suscrito/a",null,!0,!1,Q.hH,Q.subscribed,"channel_avatar",null,T.api,!0);T.api.createServerVe(k.element,T);var l;T.api.setTrackingParams(k.element,((l=Q.subscribeButtonRenderer)==null?void 0:l.trackingParams)||null);T.Z(k.element,"click",function(){T.api.logClick(k.element)}); T.subscribeButton=k;g.P(T,T.subscribeButton);T.subscribeButton.XB(T.element)}}; f6g=function(T){var Q=T.api.G(),k=T.api.getVideoData();k=g.bF(Q)+k.Tg;if(!g.Qk(Q))return k;Q={};g.Ay(T.api,"addEmbedsConversionTrackingParams",[Q]);return g.sD(k,Q)}; DL=function(T){g.LA.call(this,T,{X:"button",Rk:["ytp-skip-intro-button","ytp-popup","ytp-button"],W:[{X:"div",J:"ytp-skip-intro-button-text",S6:"Omitir introducci\u00f3n"}]},100);var Q=this;this.L=!1;this.T=new g.FA(function(){Q.hide()},5E3); this.nG=this.VD=NaN;g.P(this,this.T);this.C=function(){Q.show()}; this.B=function(){Q.hide()}; this.Y=function(){var k=Q.U.getCurrentTime();k>Q.VD/1E3&&k0?{X:"svg",K:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{X:"path",Rk:["ytp-circle-arrow","ytp-svg-fill"],K:{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"}}, {X:"text",Rk:["ytp-jump-button-text","ytp-svg-fill"],K:{x:"7.05",y:"15.05"}}]}:{X:"svg",K:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{X:"path",Rk:["ytp-circle-arrow","ytp-svg-fill"],K:{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"}}, {X:"text",Rk:["ytp-jump-button-text","ytp-svg-fill"],K:{x:"6.5",y:"15"}}]}]});var k=this;this.U=T;this.T=Q;this.S=new g.FA(function(){k.L?(k.L=!1,k.S.start()):k.element.classList.remove("ytp-jump-spin","backwards")},250); this.L=!1;(Q=Q>0)?this.U.createClientVe(this.element,this,36843):this.U.createClientVe(this.element,this,36844);var l=g.o0(Q?"Avanzar $SECONDS segundos (\u2192)":"Retroceder $SECONDS segundos (\u2190)",{SECONDS:Math.abs(this.T).toString()});this.U.V("player_tooltip_data_title_killswitch")?this.update({title:l,"data-title-no-tooltip":l,"aria-keyshortcuts":Q?"\u2192":"\u2190"}):this.update({"tooltip-title":l,"data-title-no-tooltip":l,"aria-keyshortcuts":Q?"\u2192":"\u2190"});this.Y=this.element.querySelector(".ytp-jump-button-text"); this.Y.textContent=Math.abs(this.T).toString();this.listen("click",this.onClick,this);OU(T,this.element,this)}; X$b=function(T,Q){Q?T.element.classList.add("ytp-jump-button-enabled"):T.element.classList.remove("ytp-jump-button-enabled");T.U.logVisibility(T.element,Q);T.U.wO()}; H1=function(T,Q){uz.call(this,T,Q,"timedMarkerCueRange","Ver momentos clave");this.Z(T,g.Ft("timedMarkerCueRange"),this.bC);this.Z(T,"updatemarkervisibility",this.updateVideoData)}; w$5=function(T){var Q,k=(Q=T.U.getVideoData())==null?void 0:Q.K_;if(k)for(T=T.Y.p_,k=g.B(k),Q=k.next();!Q.done;Q=k.next())if(Q=T[Q.value]){var l=void 0,v=void 0,L=void 0;if(((l=Q.onTap)==null?void 0:(v=l.innertubeCommand)==null?void 0:(L=v.changeEngagementPanelVisibilityAction)==null?void 0:L.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return Q}}; tG=function(T){var Q=T.V("web_enable_pip_on_miniplayer");g.p.call(this,{X:"button",Rk:["ytp-miniplayer-button","ytp-button"],K:{title:T.V("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"},W:["{{icon}}"]});this.U=T;this.visible=!1;this.listen("click",this.onClick);this.Z(T,"fullscreentoggled",this.Aj);this.U.V("player_tooltip_data_title_killswitch")? this.update({title:g.pX(T,"Reproductor en miniatura","i"),"data-title-no-tooltip":"Reproductor en miniatura",icon:dey(this,Q)}):this.update({"tooltip-title":g.pX(T,"Reproductor en miniatura","i"),"data-title-no-tooltip":"Reproductor en miniatura",icon:dey(this,Q)});OU(T,this.element,this);T.createClientVe(this.element,this,62946);this.Aj()}; dey=function(T,Q){return T.U.V("delhi_modern_web_player_icons")?{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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"}}]}:Q?{X:"svg",K:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},W:[{X:"g",K:{transform:"translate(96, -96) scale(0.8)"},W:[{X:"path",kc:!0,K:{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"}}]}]}:bY6()}; Ou=function(T,Q,k,l,v,L){L=L===void 0?!1:L;var q={X:"div",Rk:["ytp-input-slider-section"],W:[{X:"input",J:"ytp-input-slider",K:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};v&&q.W.unshift(v);L&&q.Rk.push("ytp-vertical-slider");g.p.call(this,q);this.Y=T;this.B=Q;this.j=k;this.initialValue=l;this.header=v;this.S=this.L_("ytp-input-slider");this.T=l?l:T;this.init();this.Z(this.S,"input",this.L);this.Z(this.S,"keydown", this.C)}; pm=function(T,Q){T.T=Q;T.updateValue("slidervalue",T.T);T.S.valueAsNumber=T.T;NFf(T,Q)}; NFf=function(T,Q){T.S.style.setProperty("--yt-slider-shape-gradient-percent",(Q-T.Y)/(T.B-T.Y)*100+"%")}; W1=function(T){var Q=T.isMuted()?0:T.getVolume();Ou.call(this,0,100,1,Q,void 0,!0);this.U=T;this.z9=nO(this.hj,10,this);this.D=!1;this.Z(T,"onVolumeChange",this.onVolumeChange);this.Z(this.element,"wheel",this.qO)}; ApC=function(T,Q){g.p.call(this,{X:"div",K:{tabindex:"0",title:T.V("player_tooltip_data_title_killswitch")?"Volumen":"","data-tooltip-title":"Volumen","data-tooltip-offset-y":"-120"},Rk:["ytp-volume-popover"]});var k=this;this.isVisible=!1;this.tooltip=Q.aK();this.S=new W1(T);g.P(this,this.S);this.S.XB(this.element);this.T=new g.FA(function(){$W(k,!1)},300); this.listen("mouseenter",function(){k.T.stop()}); this.listen("mouseleave",function(){k.T.start()}); this.listen("focus",function(){k.T.stop()}); this.Z(this.S.S,"focus",function(){k.T.stop()}); this.listen("focusout",function(){k.T.start();k.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.ty(Q.aK(),this.element));g.P(this,this.T)}; $W=function(T,Q){T.element.classList.toggle("ytp-volume-popover-hovering",Q);T.isVisible=Q;(T=T.element.closest(".ytp-chrome-bottom"))&&T.classList.toggle("ytp-volume-popover-showing",Q)}; JG=function(T,Q,k){k=k===void 0?!1:k;var l=T.G().e6?{"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:T.V("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};l=T.V("delhi_modern_web_player")?{X:"div",J:"ytp-mute-button",W:[{X:"button",K:l,Rk:["ytp-volume-icon", "ytp-button"],S6:"{{icon}}"}]}:{X:"button",Rk:["ytp-mute-button","ytp-button"],K:l,W:[{X:"div",J:"ytp-volume-icon",S6:"{{icon}}"}]};g.p.call(this,l);this.U=T;this.Bd=k;this.S=null;this.C=this.hj=this.D=this.j=NaN;this.i9=this.z9=null;this.B=[];this.Y=[];this.visible=!1;this.L=this.T=this.qO=null;T.V("delhi_modern_web_player")&&this.update({"data-priority":4});k=this.U.G();this.updateValue("icon",Ac());this.tooltip=Q.aK();this.updateValue("dataTooltipOffsetY",0);this.L=g.gK("ytp-volume-icon",this.element); l=this.U.V("delhi_modern_web_player_icons")?{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",Rk:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],K:{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"}},{X:"path",J:"ytp-svg-volume-animation-small-ripple",K:{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"}},{X:"path",J:"ytp-svg-volume-animation-big-ripple",K:{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"}}]}:{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"defs",W:[{X:"clipPath",K:{id:"ytp-svg-volume-animation-mask"},W:[{X:"path",K:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{X:"path",K:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{X:"path",J:"ytp-svg-volume-animation-mover",K:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{X:"clipPath",K:{id:"ytp-svg-volume-animation-slash-mask"},W:[{X:"path",J:"ytp-svg-volume-animation-mover", K:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{X:"path",kc:!0,Rk:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],K:{"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"}},{X:"path",kc:!0,Rk:["ytp-svg-fill","ytp-svg-volume-animation-hider"],K:{"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.S=new g.LD(l);g.P(this,this.S);this.z9=this.S.L_("ytp-svg-volume-animation-speaker");this.i9=this.z9.getAttribute("d");this.B=g.LO("ytp-svg-volume-animation-mover",this.S.element);this.U.V("delhi_modern_web_player_icons");this.Y=g.LO("ytp-svg-volume-animation-hider",this.S.element);this.U.V("delhi_modern_web_player_icons");this.e6=new jp;g.P(this,this.e6);this.xm=new jp;g.P(this,this.xm);this.Z(T,"appresize",this.ZO);this.Z(T,"onVolumeChange",this.onVolumeChange);T.V("delhi_modern_web_player")? this.listen("click",this.iYd):this.listen("click",this.YK);k.e6?(T.V("delhi_modern_web_player")&&(this.T=new ApC(T,Q),this.T.XB(this.element),g.P(this,this.T),this.Z(this.L,"mouseover",this.Jw),this.Z(this.L,"focus",this.Jw),this.Z(this.L,"mouseout",this.Tr),this.Z(this.L,"blur",this.Tr)),k=T.V("delhi_modern_web_player")?this.L:this.element,this.addOnDisposeCallback(g.ty(Q.aK(),k))):b0y(this);this.message=null;T.createClientVe(this.element,this,28662);this.ZO(T.Hx().getPlayerSize());this.setVolume(T.getVolume(), T.isMuted())}; rp5=function(T,Q){if(T.U.G().e6){var k=g.pX(T.U,"Silenciar","m"),l=g.pX(T.U,"Activar sonido","m");k=Q?l:k;T.U.G().V("player_tooltip_data_title_killswitch")?T.updateValue("title",k):T.update({"tooltip-title":k,"aria-label":k});T.update({"data-title-no-tooltip":Q?"Activar sonido":"Silenciar"});T.tooltip.wO()}}; a6t=function(T,Q){T.j=Q;var k=T.i9;T.U.V("delhi_modern_web_player_icons")?T.S.L_("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(Q+") translate(-22,-12)")):Q&&(k+=tWt(cp5,De5,Q));T.z9.setAttribute("d",k)}; u55=function(T,Q){var k;Q===1?k=T.U.V("delhi_modern_web_player_icons")?{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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"}}]}:Ac():k=T.S;T.hj=Q;if(T.U.V("delhi_modern_web_player_icons"))T.S.L_("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-Q+") translate(-18,-12)")),T.S.L_("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(T.j-Q+") translate(-22, -12)"));else{for(var l=20*Q,v=0;v=3&&T.U.getPresentingPlayerType()!==2}; t0X=function(T){var Q=e$(T.U.Bx());return Q?T.T?Q.G0():Q.E_():!1}; xe6=function(T){var Q={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},k=T.playlist!=null&&T.playlist.G0();k=g.FZ(T.U)&&(!T.T||k);var l=T.T&&g.QS(T.U),v=t0X(T),L=T.T&&T.U.getPresentingPlayerType()===5,q=g.pX(T.U,"Siguiente","SHIFT+n"),Y=g.pX(T.U,"Anterior","SHIFT+p");if(L)Q.title="Iniciar video",Q["tooltip-title"]="Iniciar video";else if(T.L)Q.title="Volver a reproducir",Q["tooltip-title"]="Volver a reproducir";else if(k){var U= null;T.playlist&&(U=g.wN(T.playlist,T.T?bqf(T.playlist):rnt(T.playlist)));if(U){if(U.videoId){var R=T.playlist.listId;Q.url=T.U.G().getVideoUrl(U.videoId,R?R.toString():void 0)}Q.text=U.title;Q.duration=U.lengthText?U.lengthText:U.lengthSeconds?g.CN(U.lengthSeconds):null;Q.preview=U.rO("mqdefault.jpg")}T.T?(Q.title=q,Q["tooltip-title"]=q,Q["data-title-no-tooltip"]="Siguiente",Q["aria-keyshortcuts"]="SHIFT+n"):(Q.title=Y,Q["tooltip-title"]=Y,Q["data-title-no-tooltip"]="Anterior",Q["aria-keyshortcuts"]= "SHIFT+p")}else if(l){if(Y=(U=T.videoData)==null?void 0:g.zV(U))Q.url=Y.fB(),Q.text=Y.title,Q.duration=Y.lengthText?Y.lengthText:Y.lengthSeconds?g.CN(Y.lengthSeconds):null,Q.preview=Y.rO("mqdefault.jpg");Q.title=q;Q["tooltip-title"]=q;Q["data-title-no-tooltip"]="Siguiente";Q["aria-keyshortcuts"]="SHIFT+n"}Q.disabled=!l&&!k&&!v&&!L;T.update(Q);T.C=!!Q.url;l||k||T.L||v||L?T.S||(T.S=g.ty(T.tooltip,T.element),T.B=T.listen("click",T.onClick,T)):T.S&&(T.S(),T.S=null,T.J6(T.B),T.B=null);T.tooltip.wO();g.gl(T.element, "ytp-playlist-ui",T.T&&(k||T.U.V("web_hide_next_button")))}; KHX=function(T,Q){return T?Q?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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"}}]}:Sx():Q?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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"}}]}:D5f()}; p$f=function(T,Q){g.p.call(this,{X:"div",J:"ytp-fine-scrubbing",W:[{X:"div",J:"ytp-fine-scrubbing-draggable",W:[{X:"div",J:"ytp-fine-scrubbing-thumbnails",K:{tabindex:"0",role:"slider",type:"range","aria-label":"Haz clic en el panel o despl\u00e1zate por \u00e9l para usar la b\u00fasqueda precisa.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{X:"div",K:{"aria-hidden":"true"},J:"ytp-fine-scrubbing-cursor"},{X:"div", J:"ytp-fine-scrubbing-seek-time",K:{"aria-hidden":"true"},S6:"{{seekTime}}"},{X:"div",J:"ytp-fine-scrubbing-play",W:[T.V("delhi_modern_web_player_icons")?Xc():zI()],K:{title:"Reproducir desde este momento",role:"button"}},{X:"div",J:"ytp-fine-scrubbing-dismiss",W:[g.Ix()],K:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var k=this;this.api=T;this.B=this.L_("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.L_("ytp-fine-scrubbing-dismiss");this.hj=this.L_("ytp-fine-scrubbing-draggable"); this.playButton=this.L_("ytp-fine-scrubbing-play");this.thumbnails=[];this.S=[];this.Bd=this.T=0;this.e6=void 0;this.z9=NaN;this.sK=this.D=this.L=this.j=0;this.Y=[];this.interval=this.frameCount=0;this.C=160;this.scale=1;this.Jj=0;this.isEnabled=this.i9=!1;O05(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.ty(Q,this.dismissButton));this.addOnDisposeCallback(g.ty(Q,this.playButton));this.xm=new g.pv(this.hj,!0);this.xm.subscribe("dragstart",this.J$,this);this.xm.subscribe("dragmove",this.rD, this);this.xm.subscribe("dragend",this.uJ,this);this.Z(T,"SEEK_COMPLETE",this.Ov);T.V("web_fix_fine_scrubbing_false_play")&&this.Z(T,"rootnodemousedown",function(l){k.qO=l}); this.B.addEventListener("keydown",function(){}); g.P(this,this.xm);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.B,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; O05=function(T,Q){var k=g.CN(Q),l=g.o0("Saltar a: $PROGRESS",{PROGRESS:g.CN(Q,!0)});T.update({ariamin:0,ariamax:Math.floor(T.api.getDuration()),arianow:Math.floor(Q),arianowtext:l,seekTime:k})}; WHX=function(T){T.z9=NaN;T.D=0;T.j=T.L}; elC=function(T){var Q=T.api.l7();if(Q){var k=90*T.scale,l=g4(Q,160*T.scale);if(Q=Q.levels[l]){T.C=Q.width;if(!T.Y.length){l=[];for(var v=MY(Q,Q.MU()),L=Q.columns*Q.rows,q=Q.frameCount,Y=0;Y<=v;Y++)for(var U=qT.Y.length;)l= void 0,(l=T.thumbnails.pop())==null||l.dispose();for(;T.thumbnails.lengthk.length;)l=void 0,(l=T.S.pop())==null||l.dispose(); for(;T.S.length-k?-Q/k*T.interval*.5:-(Q+k/2)/k*T.interval}; FHt=function(T){return-((T.B.offsetWidth||(T.frameCount-1)*T.C*T.scale)-T.T/2)}; $ef=function(){g.p.call(this,{X:"div",J:"ytp-fine-scrubbing-thumbnail"})}; Jpf=function(){g.p.call(this,{X:"div",J:"ytp-fine-scrubbing-chapter-title",W:[{X:"div",J:"ytp-fine-scrubbing-chapter-title-content",S6:"{{chapterTitle}}"}]})}; yp5=function(T){g.p.call(this,{X:"div",J:"ytp-heat-map-chapter",W:[{X:"svg",J:"ytp-heat-map-svg",K:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},W:[{X:"defs",W:[{X:"clipPath",K:{id:"{{id}}"},W:[{X:"path",J:"ytp-heat-map-path",K:{d:"",fill:"white"}}]},{X:"linearGradient",K:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},W:[{X:"stop",K:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{X:"stop",K:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{X:"rect",J:"ytp-heat-map-graph",K:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{X:"rect",J:"ytp-heat-map-hover",K:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{X:"rect",J:"ytp-heat-map-play",K:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{X:"path",J:"ytp-modern-heat-map",K:{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=T;this.j=this.L_("ytp-heat-map-svg");this.B=this.L_("ytp-heat-map-path");this.Y=this.L_("ytp-heat-map-graph");this.C=this.L_("ytp-heat-map-play");this.T=this.L_("ytp-heat-map-hover");this.L=this.L_("ytp-modern-heat-map");this.Hk=!1;this.S=60;T=""+g.qp(this);this.update({id:T});T="url(#"+T+")";this.Y.setAttribute("clip-path",T);this.C.setAttribute("clip-path",T);this.T.setAttribute("clip-path",T)}; i05=function(T,Q){Q>0&&(T.S=Q,T.j.style.height=T.S+"px")}; y7=function(){g.p.call(this,{X:"div",J:"ytp-chapter-hover-container",W:[{X:"div",J:"ytp-progress-bar-padding"},{X:"div",J:"ytp-progress-list",W:[{X:"div",Rk:["ytp-play-progress","ytp-swatch-background-color"]},{X:"div",J:"ytp-progress-linear-live-buffer"},{X:"div",J:"ytp-load-progress"},{X:"div",J:"ytp-hover-progress"},{X:"div",J:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.S=this.L_("ytp-progress-list");this.B=this.L_("ytp-progress-linear-live-buffer"); this.Y=this.L_("ytp-ad-progress-list");this.C=this.L_("ytp-load-progress");this.j=this.L_("ytp-play-progress");this.L=this.L_("ytp-hover-progress");this.T=this.L_("ytp-chapter-hover-container")}; iz=function(T,Q){g.W2(T.T,"width",Q)}; V0f=function(T,Q){g.W2(T.T,"margin-right",Q+"px")}; TAH=function(){this.S=this.position=this.L=this.T=this.Y=this.width=NaN}; Qib=function(){g.p.call(this,{X:"div",J:"ytp-timed-marker"});this.T=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.Tu=function(T,Q){g.M1.call(this,{X:"div",J:"ytp-progress-bar-container",K:{"aria-disabled":"true"},W:[{X:"div",Rk:["ytp-heat-map-container"],W:[{X:"div",J:"ytp-heat-map-edu"}]},{X:"div",Rk:["ytp-progress-bar"],K:{tabindex:"0",role:"slider","aria-label":"Control deslizante de b\u00fasqueda","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},W:[{X:"div",J:"ytp-chapters-container"},{X:"div",J:"ytp-timed-markers-container"}, {X:"div",J:"ytp-clip-start-exclude"},{X:"div",J:"ytp-clip-end-exclude"},{X:"div",J:"ytp-scrubber-container",W:[{X:"div",Rk:["ytp-scrubber-button","ytp-swatch-background-color"],W:[{X:"div",J:"ytp-scrubber-pull-indicator"},{X:"img",Rk:["ytp-decorated-scrubber-button"]}]}]}]},{X:"div",Rk:["ytp-fine-scrubbing-container"],W:[{X:"div",J:"ytp-fine-scrubbing-edu"}]},{X:"div",J:"ytp-bound-time-left",S6:"{{boundTimeLeft}}"},{X:"div",J:"ytp-bound-time-right",S6:"{{boundTimeRight}}"},{X:"div",J:"ytp-clip-start", K:{title:"{{clipstarttitle}}"},S6:"{{clipstarticon}}"},{X:"div",J:"ytp-clip-end",K:{title:"{{clipendtitle}}"},S6:"{{clipendicon}}"}]});this.api=T;this.ek=!1;this.uK=this.b7=this.K_=this.B=this.A9=0;this.Tw=null;this.pG=!1;this.Jj={};this.DP={};this.clipEnd=Infinity;this.Ig=this.L_("ytp-clip-end");this.gt=new g.pv(this.Ig,!0);this.Hn=this.L_("ytp-clip-end-exclude");this.F_=this.L_("ytp-clip-start-exclude");this.clipStart=0;this.OG=this.L_("ytp-clip-start");this.Ah=new g.pv(this.OG,!0);this.z9=this.QR= 0;this.progressBar=this.L_("ytp-progress-bar");this.d5={};this.p_={};this.f_=this.L_("ytp-chapters-container");this.VD=this.L_("ytp-timed-markers-container");this.T=[];this.C=[];this.vk={};this.NK=null;this.i9=-1;this.h3=this.e6=0;this.iK=this.j=null;this.Wk=this.L_("ytp-scrubber-button");this.hj=this.L_("ytp-decorated-scrubber-button");this.Dz=this.L_("ytp-scrubber-container");this.Tg=new g.WX;this.t6=0;this.Hl=new TAH;this.L=new r3(0,0);this.VR=null;this.D=this.m0=!1;this.NV=null;this.qO=this.L_("ytp-heat-map-container"); this.YP=this.L_("ytp-heat-map-edu");this.Y=[];this.heatMarkersDecorations=[];this.zg=this.L_("ytp-fine-scrubbing-container");this.vn=this.L_("ytp-fine-scrubbing-edu");this.S=void 0;this.Bd=this.nG=this.sK=!1;this.tooltip=Q.aK();this.addOnDisposeCallback(g.ty(this.tooltip,this.Ig));g.P(this,this.gt);this.gt.subscribe("hoverstart",this.Gu,this);this.gt.subscribe("hoverend",this.KI,this);this.Z(this.Ig,"click",this.jw);this.addOnDisposeCallback(g.ty(this.tooltip,this.OG));g.P(this,this.Ah);this.Ah.subscribe("hoverstart", this.Gu,this);this.Ah.subscribe("hoverend",this.KI,this);this.Z(this.OG,"click",this.jw);jif(this);this.Z(T,"resize",this.zx);this.Z(T,"presentingplayerstatechange",this.rX);this.Z(T,"videodatachange",this.Kp);this.Z(T,"videoplayerreset",this.l_);this.Z(T,"cuerangesadded",this.veO);this.Z(T,"cuerangesremoved",this.Llm);this.Z(T,"onLoopRangeChange",this.Aw);this.Z(T,"innertubeCommand",this.onClickCommand);this.Z(T,"onRetroModeChanged",this.ZAB);this.Z(T,g.ej("timedMarkerCueRange"),this.EMH);this.Z(T, "updatemarkervisibility",this.aP);this.Z(T,"serverstitchedvideochange",this.fGe);this.updateVideoData(T.getVideoData(),!0);this.Aw(T.getLoopRange());V7(this)&&!this.S&&(this.S=new p$f(this.api,this.tooltip),T=g.Vf(this.element).x||0,this.S.zx(T,this.B),this.S.XB(this.zg),g.P(this,this.S),this.Z(this.S.dismissButton,"click",this.Zu),this.Z(this.S.playButton,"click",this.UL),this.Z(this.S.element,"dblclick",this.UL));this.api.createClientVe(this.qO,this,139609,!0);this.api.createClientVe(this.YP,this, 140127,!0);this.api.createClientVe(this.vn,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; jif=function(T){if(T.T.length===0){var Q=new y7;T.T.push(Q);g.P(T,Q);Q.XB(T.f_,0)}for(;T.T.length>1;)T.T.pop().dispose();iz(T.T[0],"100%");T.T[0].startTime=0;T.T[0].title=""}; k0C=function(T){var Q=Q===void 0?NaN:Q;var k=new yp5(T.api);T.Y.push(k);g.P(T,k);k.XB(T.qO);Q>=0&&(k.element.style.width=Q+"px")}; lrb=function(T){for(;T.C.length;)T.C.pop().dispose()}; vwu=function(T){var Q,k,l,v,L;return(L=g.t((v=g.t((Q=T.getWatchNextResponse())==null?void 0:(k=Q.playerOverlays)==null?void 0:(l=k.playerOverlayRenderer)==null?void 0:l.decoratedPlayerBarRenderer,Vk))==null?void 0:v.playerBar,owC))==null?void 0:L.chapters}; LVg=function(T){for(var Q=T.T,k=[],l=0;l=q&&z<=Z&&L.push(G)}U>0&&(T.qO.style.height=U+"px");q=T.Y[l];Z=L;G=v;I=U;z=l===0;z=z===void 0?!1:z;i05(q,I);f=Z;m=q.S;z=z===void 0?!1:z;var w=1E3/f.length,r=[];r.push({x:0,y:100});for(var A=0;A0&&(k=L[L.length-1])}g.Qg(T);Y=[];Q=g.B(Q.heatMarkersDecorations||[]);for(v=Q.next();!v.done;v=Q.next())if(v=g.t(v.value,ZEH))U=v.label,l=k=R=void 0,Y.push({visibleTimeRangeStartMillis:(R=v.visibleTimeRangeStartMillis)!=null?R:-1,visibleTimeRangeEndMillis:(k=v.visibleTimeRangeEndMillis)!=null?k:-1,decorationTimeMillis:(l=v.decorationTimeMillis)!=null?l:NaN,label:U?g.Rx(U):""});T.heatMarkersDecorations=Y}}; M15=function(T,Q){T.C.push(Q);g.P(T,Q);Q.XB(T.VD,T.VD.children.length)}; Yf5=function(T,Q){Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next()){k=k.value;var l=jW(T,k.timeRangeStartMillis/(T.L.T*1E3),k$(T)),v=T.api.V("delhi_modern_web_player")?.667:.6;g.W2(k.element,"transform","translateX("+l+"px) scaleX("+v+")")}}; qfX=function(T,Q){var k=0,l=!1;Q=g.B(Q);for(var v=Q.next();!v.done;v=Q.next()){v=v.value;if(g.t(v,G0C)){v=g.t(v,G0C);var L={startTime:NaN,title:null,onActiveCommand:void 0},q=v.title;L.title=q?g.Rx(q):"";q=v.timeRangeStartMillis;q!=null&&(L.startTime=q);L.onActiveCommand=v.onActiveCommand;v=L;k===0&&v.startTime!==0&&(T.T[k].startTime=0,T.T[k].title="",T.T[k].onActiveCommand=v.onActiveCommand,k++,l=!0);T.T.length<=k&&(L=new y7,T.T.push(L),g.P(T,L),L.XB(T.f_,T.f_.children.length));T.T[k].startTime= v.startTime;T.T[k].title=v.title?v.title:"";T.T[k].onActiveCommand=v.onActiveCommand;T.T[k].index=l?k-1:k}k++}for(;k=0;l--)if(T.T[l].width>0){V0f(T.T[l],0);var v=Math.floor(T.T[l].width);T.T[l].width=v;iz(T.T[l],v+"px");break}T.T[k].width=0;iz(T.T[k],"0")}else k===T.T.length-1?(l=Math.floor(T.T[k].width+Q),T.T[k].width=l,iz(T.T[k],l+"px")):(Q=T.T[k].width+Q,l=Math.round(Q),Q-=l,T.T[k].width=l,iz(T.T[k],l+"px"));k=0;if(T.Y.length===T.T.length)for(Q=0;Q< T.Y.length;Q++)l=T.T[Q].width,T.Y[Q].element.style.width=l+"px",T.Y[Q].element.style.left=k+"px",k+=l+oC(T);T.api.V("delhi_modern_web_player")&&(T.T.length===1?T.T[0].S.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(T.T[0].S.classList.remove("ytp-progress-bar-end"),T.T[0].S.classList.add("ytp-progress-bar-start"),T.T[T.T.length-1].S.classList.add("ytp-progress-bar-end")))}; mqb=function(T,Q){var k=0,l=!1,v=T.T.length,L=T.L.T*1E3;L===0&&(L=T.api.getProgressState().seekableEnd*1E3);if(L>0&&T.B>0){for(var q=T.B-oC(T)*T.e6,Y=T.h3===0?3:q*T.h3,U=g.B(T.T),R=U.next();!R.done;R=U.next())R.value.width=0;for(;k1);R=(L===0?0:U/L*q)+T.T[k].width;if(R>Y)T.T[k].width=R;else{T.T[k].width=0;var Z=T,f=k,G=Z.T[f-1];G!==void 0&&G.width>0? G.width+=R:fT.h3&&(T.h3=U/L),l=!0)}k++}}return l}; la=function(T){if(T.B){var Q=T.api.getProgressState(),k=T.api.getVideoData();if(!(k&&k.enableServerStitchedDai&&k.IS)||isFinite(Q.current)){var l;if(((l=T.api.getVideoData())==null?0:sU(l))&&Q.airingStart&&Q.airingEnd)var v=vw(T,Q.airingStart,Q.airingEnd);else if(T.api.getPresentingPlayerType()===2){var L,q,Y;v=(k=(v=T.api.getVideoData())==null?void 0:(L=v.getPlayerResponse())==null?void 0:(q=L.playerConfig)==null?void 0:(Y=q.webPlayerConfig)==null?void 0:Y.skippableAdProgressBarDuration)?vw(T,Q.seekableStart, k/1E3):vw(T,Q.seekableStart,Q.seekableEnd)}else v=vw(T,Q.seekableStart,Q.seekableEnd);L=c8(v,Q.loaded,0);Q=c8(v,Q.current,0);q=T.L.S!==v.S||T.L.T!==v.T;T.L=v;La(T,Q,L);q&&Ir5(T);hMJ(T)}}}; vw=function(T,Q,k){return si6(T)?new r3(Math.max(Q,T.VR.startTimeMs/1E3),Math.min(k,T.VR.endTimeMs/1E3)):new r3(Q,k)}; CJ5=function(T,Q){var k,l,v;Q=g.t((k=Q.getWatchNextResponse())==null?void 0:(l=k.playerOverlays)==null?void 0:(v=l.playerOverlayRenderer)==null?void 0:v.decoratedPlayerBarRenderer,Vk);if(Q==null?0:Q.progressColor)for(k=0;k1){k=qK(T,Q.L,!0);for(var l=0,v=0;v0&&(l+=T.T[v].width,l+=oC(T));k=(T.T[k].startTime+(Q.L-l)/T.T[k].width*((k===T.T.length-1?T.L.T*1E3:T.T[k+1].startTime)-T.T[k].startTime))/1E3||0}return k}; zMb=function(T,Q){if(Q<0)return"0";T=Math.floor(Math.min(Q,T.api.getDuration())*1E3);return T>2147483647?"0":String(T)}; MK=function(T,Q,k,l,v){Q=zMb(T,Q);k=zMb(T,k);T=T.progressBar.visualElement;l={seekData:{startMediaTimeMs:Q,endMediaTimeMs:k,seekSource:l}};(Q=g.C9())&&jx(Q,T,v,l)}; XAu=function(T,Q,k){if(k>=T.T.length)return!1;var l=T.B-oC(T)*T.e6;return Math.abs(Q-T.T[k].startTime/1E3)/T.L.T*l<4}; Ir5=function(T){T.Wk.style.removeProperty("height");for(var Q=g.B(Object.keys(T.Jj)),k=Q.next();!k.done;k=Q.next())wAJ(T,k.value);Y$(T);La(T,T.z9,T.QR)}; k$=function(T){var Q=T.Tg.x;Q=g.ti(Q,0,T.B);T.Hl.update(Q,T.B);return T.Hl}; RC=function(T){return(T.D?135:90)-UL(T)}; UL=function(T){var Q=48,k=T.api.G();T.api.V("delhi_modern_web_player")?Q=T.api.getPlayerSize().width<=528?64:T.D?96:72:T.D?Q=54:g.Qk(k)&&!k.S&&(Q=40);return Q}; La=function(T,Q,k){T.z9=Q;T.QR=k;var l=k$(T),v=T.L.T,L=ZMC(T.L,T.z9),q=g.o0("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.CN(L,!0),DURATION:g.CN(v,!0)}),Y=mJ(T.T,L*1E3);Y=T.T[Y].title;T.update({ariamin:Math.floor(T.L.S),ariamax:Math.floor(v),arianow:Math.floor(L),arianowtext:Y?Y+" "+q:q});v=T.clipStart;L=T.clipEnd;T.VR&&T.api.getPresentingPlayerType()!==2&&(v=T.VR.startTimeMs/1E3,L=T.VR.endTimeMs/1E3);v=c8(T.L,v,0);Y=c8(T.L,L,1);q=T.api.getVideoData();L=g.ti(Q,v,Y);k=(q==null?0:g.mK(q))?1:g.ti(k, v,Y);Q=jW(T,Q,l);g.W2(T.Dz,"transform","translateX("+Q+"px)");T.api.V("delhi_modern_web_player")&&T.api.V("delhi_modern_web_player_cutout")&&dq5(T,Q);Z4(T,l,v,L,"PLAY_PROGRESS");(q==null?0:sU(q))?(Q=T.api.getProgressState().seekableEnd)&&Z4(T,l,L,c8(T.L,Q),"LIVE_BUFFER"):Z4(T,l,v,k,"LOAD_PROGRESS");if(T.api.V("web_player_heat_map_played_bar")){var U;(U=T.Y[0])!=null&&U.C.setAttribute("width",(L*100).toFixed(2)+"%")}}; dq5=function(T,Q){T.api.getPresentingPlayerType()!==1?T.f_.style.removeProperty("clip-path"):(Q||(Q=jW(T,T.z9,k$(T))),T.f_.style.clipPath='path("'+(T.pG?NAb(T,8,Q,T.D?50:36,0,6):NAb(T,4,Q,T.D?34:24,2,3))+'")')}; NAb=function(T,Q,k,l,v,L){var q=k-l/2;k+=l/2;Q+=v;return"M 0 "+v+" L 0 "+(Q+" L ")+(q+" "+Q+" C ")+(q+L+" "+Q+" "+(q+L)+" "+v+" "+q+" "+v+" L 0 ")+(v+" M ")+(k+" "+v+" L ")+(T.B+" "+v+" L ")+(T.B+" "+Q+" L ")+(k+" "+Q+" C ")+(k-L+" "+Q+" "+(k-L)+" "+v+" "+k+" "+v)}; Z4=function(T,Q,k,l,v){var L=T.T.length,q=Q.T-T.e6*oC(T),Y=k*q;k=qK(T,Y);var U=l*q;q=qK(T,U);v==="HOVER_PROGRESS"&&(q=qK(T,Q.T*l,!0),U=Q.T*l-Ar5(T,Q.T*l)*oC(T));l=Math.max(Y-bEH(T,k),0);for(Y=k;Y=T.T.length)return T.B;for(var k=0,l=0;l0||T.Hn.clientWidth>0?(L=Q.clientWidth/k,T=-1*T.F_.clientWidth/k):(L/=k,T=-1*T.T[v].element.offsetLeft/k),g.W2(Q,"background-size",L+"px"),g.W2(Q,"background-position-x",T+"px"))}; fa=function(T,Q,k,l,v){v||T.api.G().S?Q.style.width=k+"px":g.W2(Q,"transform","scalex("+(l?k/l:0)+")")}; qK=function(T,Q,k){var l=0;(k===void 0?0:k)&&(Q-=Ar5(T,Q)*oC(T));k=g.B(T.T);for(var v=k.next();!v.done;v=k.next()){v=v.value;if(Q>v.width)Q-=v.width;else break;l++}return l===T.T.length?l-1:l}; jW=function(T,Q,k){var l=Q*T.L.T*1E3;for(var v=-1,L=g.B(T.T),q=L.next();!q.done;q=L.next())q=q.value,l>q.startTime&&q.width>0&&v++;l=v<0?0:v;v=k.T-oC(T)*T.e6;return Q*v+oC(T)*l+k.Y}; Ar5=function(T,Q){for(var k=T.T.length,l=0,v=g.B(T.T),L=v.next();!L.done;L=v.next())if(L=L.value,L.width!==0)if(Q>L.width)Q-=L.width,Q-=oC(T),l++;else break;return l===k?k-1:l}; g.DqI=function(T,Q,k,l){var v=T.B!==k,L=T.D!==l;T.A9=Q;T.B=k;T.D=l;V7(T)&&(Q=T.S)!=null&&(Q.scale=l?1.5:1);Ir5(T);T.T.length===1&&(T.T[0].width=k||0);v&&g.Qg(T);T.S&&L&&V7(T)&&(T.S.isEnabled&&(k=T.D?135:90,l=k-UL(T),T.zg.style.height=k+"px",g.W2(T.qO,"transform","translateY("+-l+"px)"),g.W2(T.progressBar,"transform","translateY("+-l+"px)")),elC(T.S))}; Y$=function(T){var Q=!!T.VR&&T.api.getPresentingPlayerType()!==2,k=T.clipStart,l=T.clipEnd,v=!0,L=!0;Q&&T.VR?(k=T.VR.startTimeMs/1E3,l=T.VR.endTimeMs/1E3):(v=k>T.L.S,L=T.L.T>0&&lT.z9);g.gl(T.Wk,"ytp-scrubber-button-hover",k===l&&T.T.length>1);if(T.api.V("web_player_heat_map_played_bar")){var L;(L=T.Y[0])!=null&&L.T.setAttribute("width",(Q.S*100).toFixed(2)+"%")}}}; wAJ=function(T,Q){var k=T.Jj[Q];Q=T.DP[Q];var l=k$(T),v=c8(T.L,k.start/1E3,0),L=NBg(k,T.D)/l.width;var q=c8(T.L,k.end/1E3,1);L!==Number.POSITIVE_INFINITY&&(v=g.ti(v,0,q-L));q=Math.min(q,v+L);k.color&&(Q.style.background=k.color);k=v;Q.style.left=Math.max(k*l.T+l.Y,0)+"px";fa(T,Q,g.ti((q-k)*l.T+l.Y,0,l.width),l.width,!0)}; ary=function(T,Q){var k=Q.getId();T.Jj[k]===Q&&(g.s$(T.DP[k]),delete T.Jj[k],delete T.DP[k])}; V7=function(T){var Q=g.Cn(T.api.G())&&(T.api.V("web_shorts_pip")||T.api.V("web_watch_pip")),k;return!((k=T.api.getVideoData())==null?0:k.isLivePlayback)&&!T.api.isMinimized()&&!T.api.isInline()&&(!T.api.x$()||!Q)}; Gu=function(T){T.S&&(T.S.disable(),T.K_=0,T.qO.style.removeProperty("transform"),T.progressBar.style.removeProperty("transform"),T.zg.style.removeProperty("height"),T.element.parentElement&&T.element.parentElement.style.removeProperty("height"))}; uq5=function(T,Q){var k=Q/RC(T)*UL(T);g.W2(T.progressBar,"transform","translateY("+-Q+"px)");g.W2(T.qO,"transform","translateY("+-Q+"px)");g.W2(T.zg,"transform","translateY("+k+"px)");T.zg.style.height=Q+k+"px";T.element.parentElement&&(T.element.parentElement.style.height=UL(T)-k+"px")}; nw6=function(T,Q){Q?T.j||(T.element.removeAttribute("aria-disabled"),T.j=new g.pv(T.progressBar,!0),T.api.V("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&T.j.subscribe("hoverstart",T.kxB,T),T.j.subscribe("hovermove",T.YHO,T),T.j.subscribe("hoverend",T.FrH,T),T.j.subscribe("dragstart",T.LrV,T),T.j.subscribe("dragmove",T.iAK,T),T.j.subscribe("dragend",T.m2O,T),T.api&&T.api.V("delhi_modern_web_player")&&T.api.V("delhi_modern_web_player_cutout")&&(T.iK=new g.pv(T.progressBar, !0),T.iK.subscribe("hoverstart",function(){T.pG=!0;dq5(T)},T),T.iK.subscribe("hoverend",function(){T.pG=!1; dq5(T)},T)),T.NV=T.listen("keydown",T.v8)):T.j&&(T.element.setAttribute("aria-disabled","true"),T.J6(T.NV),T.j.cancel(),T.j.dispose(),T.j=null)}; oC=function(T){return T.api.V("delhi_modern_web_player")?4:T.D?3:2}; si6=function(T){var Q;return!((Q=T.VR)==null||!Q.postId)&&T.api.getPresentingPlayerType()!==2}; mv=function(T,Q){g.p.call(this,{X:"button",Rk:["ytp-remote-button","ytp-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"Reproducir en el televisor":"","data-tooltip-title":"Reproducir en el televisor","aria-haspopup":"true","data-priority":"10"},S6:"{{icon}}"});this.U=T;this.YB=Q;this.T=null;this.Z(T,"onMdxReceiversChange",this.Aj);this.Z(T,"presentingplayerstatechange",this.Aj);this.Z(T,"appresize",this.Aj);T.createClientVe(this.element,this,139118);this.Aj();this.listen("click",this.S, this);OU(T,this.element,this)}; IC=function(T,Q){g.p.call(this,{X:"button",Rk:["ytp-button","ytp-settings-button"],K:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":vZ(),title:T.V("player_tooltip_data_title_killswitch")?"Configuraci\u00f3n":"","data-tooltip-title":"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},W:[T.V("delhi_modern_web_player_icons")?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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.dD()]});this.U=T;this.YB=Q;this.S=!0;this.listen("click",this.L);this.Z(T,"onPlaybackQualityChange",this.updateBadge);this.Z(T,"videodatachange",this.updateBadge);this.Z(T,"webglsettingschanged",this.updateBadge);this.Z(T,"appresize",this.T);OU(T,this.element,this);this.U.createClientVe(this.element,this,28663);this.updateBadge();this.T(T.Hx().getPlayerSize())}; KVC=function(T,Q){T.S=!!Q;T.T(T.U.Hx().getPlayerSize())}; hE=function(T,Q){zQ.call(this,"Anotaciones",g.rh.R4);this.U=T;this.YB=Q;this.T=!1;T.V("web_settings_menu_icons")&&(Q=T.V("delhi_modern_web_player_icons")?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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"}}]}:{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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(Q));this.Z(T,"videodatachange",this.Aj);this.Z(T,"onApiChange",this.Aj);this.subscribe("select",this.onSelect,this);this.Aj()}; sL=function(T,Q){g.Hp.call(this,"Pista de audio",g.rh.AUDIO,T,Q);this.U=T;this.tracks={};g.oF(this.element,"ytp-audio-menu-item");this.countLabel=new g.p({X:"div",W:[{X:"span",S6:"Pista de audio"},{X:"span",J:"ytp-menuitem-label-count",S6:"{{content}}"}]});T.V("web_settings_menu_icons")&&(Q=T.V("delhi_modern_web_player_icons")?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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"}}]}:AgI(),this.setIcon(Q));g.P(this,this.countLabel);g.YH(this,this.countLabel);this.Z(T,"videodatachange",this.Aj);this.Z(T,"onPlaybackAudioChange",this.Aj);this.Aj()}; SW=function(T,Q){zQ.call(this,"Reproducci\u00f3n autom\u00e1tica",g.rh.sB);this.U=T;this.YB=Q;this.T=!1;this.L=[];this.Z(T,"presentingplayerstatechange",this.S);this.subscribe("select",this.onSelect,this);T.createClientVe(this.element,this,113682);this.S()}; xq5=function(T,Q){g.UQ.call(this,g.RR({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.U=T;this.YB=Q;this.Z(this.element,"click",this.onClick);this.YB.A6(this)}; PJu=function(T,Q){var k;g.Cn(T.G())&&(k={X:"div",J:"ytp-panel-footer-content",W:[{X:"span",S6:"Ajusta la calidad de descarga en la "},{X:"a",J:"ytp-panel-footer-content-link",S6:"Configuraci\u00f3n",K:{href:"/account_downloads"}}]});g.Hp.call(this,"Calidad",g.rh.m8,T,Q,void 0,void 0,k);this.U=T;this.hj={};this.j={};this.Y={};this.xm=new Set;this.T=this.B=!1;this.C="unknown";this.z9="";this.qO=new g.OS;g.P(this,this.qO);this.B=this.U.V("web_player_use_new_api_for_quality_pullback");this.T=this.U.V("web_player_enable_premium_hbr_playback_cap"); T.V("web_settings_menu_icons")&&(Q=T.V("delhi_modern_web_player_icons")?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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"}}]}:{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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(Q));g.oF(this.S.element,"ytp-quality-menu");this.Z(T,"videodatachange",this.nh);this.Z(T,"videoplayerreset",this.nh);this.Z(T,"onPlaybackQualityChange",this.j4);this.nh();T.createClientVe(this.element,this,137721)}; t1f=function(T,Q,k){var l=T.hj[Q],v=g.wC[Q];return HEC(T,l?l.qualityLabel:v?v+"p":"Autom\u00e1tica",Q,k)}; OE6=function(T,Q,k,l,v){var L=(Q=T.T?T.Y[Q]:T.j[Q])&&Q.quality,q=Q&&Q.qualityLabel;q=q?q:"Autom\u00e1tica";l&&(q="("+q);T=HEC(T,q,L||"",v);l&&T.W.push(")");(l=(l=Q&&Q.paygatedQualityDetails)&&l.paygatedIndicatorText)&&k&&T.W.push({X:"div",J:"ytp-premium-label",S6:l});return T}; HEC=function(T,Q,k,l){Q={X:"span",Rk:l,W:[Q]};var v;l="ytp-swatch-color";if(T.B||T.T)l="ytp-swatch-color-white";k==="highres"?v="8K":k==="hd2880"?v="5K":k==="hd2160"?v="4K":k.indexOf("hd")===0&&k!=="hd720"&&(v="HD");v&&(Q.W.push(" "),Q.W.push({X:"sup",J:l,S6:v}));return Q}; Ca=function(T){Ou.call(this,T.getAvailablePlaybackRates()[0],T.getAvailablePlaybackRates()[T.getAvailablePlaybackRates().length-1],.05,T.getPlaybackRate(),{X:"div",J:"ytp-speedslider-indicator-container",W:[{X:"div",J:"ytp-speedslider-badge"},{X:"p",J:"ytp-speedslider-text"}]});this.U=T;this.z9=nO(this.hj,50,this);g.oF(this.S,"ytp-speedslider");this.D=this.L_("ytp-speedslider-text");this.qO=this.L_("ytp-speedslider-badge");pA5(this);this.Z(this.S,"change",this.xm)}; pA5=function(T){T.D.textContent=T.T.toFixed(2)+"x";var Q=T.T>2&&T.U.V("enable_web_premium_varispeed");T.qO.classList.toggle("ytp-speedslider-premium-badge",Q);T.qO.setAttribute("aria-label",Q?"Premium":"")}; Bw=function(T,Q,k,l,v,L,q){g.p.call(this,{X:"div",J:"ytp-slider-section",K:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{X:"div",J:"ytp-slider",W:[{X:"div",J:"ytp-slider-handle"}]}]});this.j=T;this.D=Q;this.S=k;this.L=l;this.z9=v;this.i9=L;this.range=this.L-this.S;this.e6=this.L_("ytp-slider-section");this.Y=this.L_("ytp-slider");this.qO=this.L_("ytp-slider-handle");this.C=new g.pv(this.Y, !0);this.T=q?q:k;g.P(this,this.C);this.C.subscribe("dragmove",this.DJ,this);this.Z(this.element,"keydown",this.aL);this.Z(this.element,"wheel",this.fL);this.init()}; zu=function(T){Bw.call(this,.05,.05,T.getAvailablePlaybackRates()[0],T.getAvailablePlaybackRates()[T.getAvailablePlaybackRates().length-1],150,20,T.getPlaybackRate());this.U=T;this.B=g.fO("P");this.xm=nO(this.hj,50,this);g.oF(this.Y,"ytp-speedslider");g.oF(this.B,"ytp-speedslider-text");T=this.B;var Q=this.Y;Q.parentNode&&Q.parentNode.insertBefore(T,Q.nextSibling);WV6(this);this.Z(this.U,"onPlaybackRateChange",this.updateValues)}; WV6=function(T){T.B.textContent=$qf(T,T.T)+"x"}; $qf=function(T,Q){T=Number(g.ti(Q,T.S,T.L).toFixed(2));Q=Math.floor((T+.001)*100%5+2E-15);var k=T;Q!==0&&(k=T-Q*.01);return Number(k.toFixed(2))}; Jrt=function(T){g.M1.call(this,{X:"div",J:"ytp-speedslider-component"});T.V("web_settings_use_input_slider")?this.T=new Ca(T):this.T=new zu(T);g.P(this,this.T);this.element.appendChild(this.T.element)}; eM6=function(T){var Q=new Jrt(T);AO.call(this,T,Q,"Personalizada");g.P(this,Q)}; Ew5=function(T,Q){var k=new eM6(T);g.Hp.call(this,"Velocidad de reproducci\u00f3n",g.rh.X$,T,Q,Xx(T)?void 0:"Personalizada",Xx(T)?void 0:function(){g.Dx(Q,k)}); var l=this;this.Y=!1;g.P(this,k);this.j=new Ca(T);g.P(this,this.j);if(T.V("web_settings_menu_icons")){var v=T.V("delhi_modern_web_player_icons")?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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"}}]}:{X:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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(v)}this.U=T;this.Y=!1;this.qO=null;Xx(T)?(this.T=g.o0("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.U.getPlaybackRate().toString()}),this.C=this.U.getPlaybackRate()):this.C=this.T=null;FVf(T)?this.B=wU(4):this.B=null;this.z9=this.U.getAvailablePlaybackRates();this.Z(T,"presentingplayerstatechange",this.Aj);var L;((L=this.U.getVideoData())==null?0:L.lf())&&this.Z(T,"serverstitchedvideochange",this.Aj);this.Z(this.j.S,"change",function(){l.Y=!0;l.Aj()}); this.Aj()}; yrg=function(T,Q){var k=wU(Q);T.T&&(T.Y||Q===T.C)?(T.U$(T.T),T.qF(Q.toString())):T.U$(k)}; V1f=function(T){var Q=T.z9.map(wU);T.B&&Q.push(T.B);T.VE(Q);T.T=null;T.C=null;Q=T.U.getPlaybackRate();Xx(T.U)&&iEI(T,Q);!T.z9.includes(Q)||T.Y?T.U$(T.T):T.U$(wU(Q))}; iEI=function(T,Q){T.C=Q;T.T=g.o0("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:Q.toString()});Q=T.z9.map(wU);Q.unshift(T.T);T.B&&Q.push(T.B);T.VE(Q)}; Trt=function(T,Q,k,l){k=new g.UQ({X:"div",Rk:["ytp-menuitem"],K:{tabindex:"0",role:"menuitemradio","aria-checked":l?"true":"false"},W:[{X:"div",Rk:["ytp-menuitem-label"],W:[{X:"div",Rk:["ytp-menuitem-container-with-badge"],W:[{X:"div",S6:"{{label}}"},{X:"div",Rk:["ytp-menuitem-premium-badge"]}]}]}]},k,T.U4(Q));k.listen("click",function(){T.Yj(Q)}); return k}; wU=function(T){return T.toString()}; Xx=function(T){return T.V("web_settings_menu_surface_custom_playback")}; FVf=function(T){return T.V("enable_web_premium_varispeed_upsell")&&T.getAvailablePlaybackRates()[T.getAvailablePlaybackRates().length-1]<=2}; Q95=function(T){return T.V("web_settings_menu_surface_custom_playback")&&T.V("web_settings_use_input_slider")}; kYC=function(T,Q,k,l){var v=new g.b_(Q,void 0,"Anulaci\u00f3n de video");g.Hp.call(this,l.text||"",T,Q,k,"Anulaci\u00f3n de video",function(){g.Dx(k,v)}); var L=this;g.oF(this.element,"ytp-subtitles-options-menu-item");this.setting=l.option.toString();T=l.options;this.settings=g.yJ(T,this.bB,this);this.B=v;g.P(this,this.B);Q=new g.UQ({X:"div",J:"ytp-menuitemtitle",S6:"Permitir un estilo de subt\u00edtulos diferente si as\u00ed lo especifica el video."},0);g.P(this,Q);this.B.A6(Q,!0);this.Y=new g.UQ({X:"div",J:"ytp-menuitem",K:{role:"menuitemradio",tabindex:"0"},W:[{X:"div",J:"ytp-menuitem-label",S6:"S\u00ed"}]},-1);g.P(this,this.Y);this.B.A6(this.Y, !0);this.Z(this.Y.element,"click",function(){j9I(L,!0)}); this.T=new g.UQ({X:"div",J:"ytp-menuitem",K:{role:"menuitemradio",tabindex:"0"},W:[{X:"div",J:"ytp-menuitem-label",S6:"No"}]},-2);g.P(this,this.T);this.B.A6(this.T,!0);this.Z(this.T.element,"click",function(){j9I(L,!1)}); this.VE(g.IQ(T,this.bB))}; j9I=function(T,Q){T.publish("settingChange",T.setting+"Override",!Q);T.YB.NN()}; dU=function(T,Q){g.b_.call(this,T,void 0,"Opciones");var k=this;this.dT={};for(var l=0;l=0);if(!(Q<0||Q===T.Y)){T.Y=Q;Q=243*T.scale;var k=141*T.scale,l=QAf(T.S,T.Y,Q);sMb(T.bg,l,Q,k,!0);T.qO.start()}}; rvg=function(T){var Q=T.T;T.type===3&&T.hj.stop();T.api.removeEventListener("appresize",T.z9);T.j||(T.env.V("player_tooltip_data_title_killswitch")?Q.setAttribute("title",T.L):Q.setAttribute("data-tooltip-title",T.L));T.L="";T.T=null;T.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});T.wrapper.style.width=""}; DBJ=function(T){g.p.call(this,{X:"button",Rk:["ytp-watch-later-button","ytp-button"],K:{title:T.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.Qk(T.G()))},W:[{X:"div",J:"ytp-watch-later-icon",S6:"{{icon}}"},{X:"div",J:"ytp-watch-later-title",S6:"Ver m\u00e1s tarde"}]});this.U=T;this.icon=null;this.visible=this.isRequestPending=this.T=!1;c1I(T);T.createClientVe(this.element,this,28665); this.listen("click",this.onClick,this);this.Z(T,"videoplayerreset",this.onReset);this.Z(T,"appresize",this.Vd);this.Z(T,"videodatachange",this.Vd);this.Z(T,"presentingplayerstatechange",this.Vd);this.Vd();T=this.U.G();var Q=g.cy("yt-player-watch-later-pending");T.Y&&Q?(k15(),cvg(this)):this.Aj(2);g.gl(this.element,"ytp-show-watch-later-title",g.Qk(T));OU(this.U,this.element,this)}; aSu=function(T){var Q=T.U.getPlayerSize(),k=T.U.G(),l=T.U.getVideoData(),v=g.Qk(k)&&g.FZ(T.U)&&g.J(T.U.getPlayerStateObject(),128),L=k.L;return k.Tw&&Q.width>=240&&!l.isAd()&&l.Tw&&!v&&!l.hh&&!T.U.isEmbedsShortsMode()&&!L}; u$6=function(T,Q){apy(g.mq(T.U.G()),"wl_button",function(){k15({videoId:Q});window.location.reload()})}; cvg=function(T){if(!T.isRequestPending){T.isRequestPending=!0;T.Aj(3);var Q=T.U.getVideoData();Q=T.T?Q.removeFromWatchLaterCommand:Q.addToWatchLaterCommand;var k=T.U.HG(),l=T.T?function(){T.T=!1;T.isRequestPending=!1;T.Aj(2);T.U.G().j&&T.U.tj("WATCH_LATER_VIDEO_REMOVED")}:function(){T.T=!0; T.isRequestPending=!1;T.Aj(1);T.U.G().S&&T.U.hA(T.element);T.U.G().j&&T.U.tj("WATCH_LATER_VIDEO_ADDED")}; ao(k,Q).then(l,function(){T.isRequestPending=!1;T.Aj(4,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.");T.U.G().j&&T.U.tj("WATCH_LATER_ERROR","Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; nV6=function(T,Q){if(Q!==T.icon){switch(Q){case 3:var k=AN();break;case 1:k=fD();break;case 2:k={X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{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:k={X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path", kc:!0,K:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}T.updateValue("icon",k);T.icon=Q}}; Kty=function(){g.Q7.apply(this,arguments);this.A4=(this.nS=g.Qk(this.api.G()))&&(this.api.G().S||VI()||yI());this.UQ=48;this.R5=69;this.PM=this.MV=null;this.Um=[];this.VY=this.O$=this.wK=this.xV=this.G_=null;this.C6=[];this.contextMenu=this.zw=this.overflowButton=this.nz=this.cT=this.searchButton=this.copyLinkButton=this.shareButton=this.wy=this.Iy=this.title=this.channelAvatar=this.aA=this.tooltip=null;this.TF=!1;this.mA=this.F8=this.Ss=this.cU=null;this.BtO=this.Vj=this.ZI=!1}; xBg=function(T){var Q=T.api.G(),k=g.J(T.api.getPlayerStateObject(),128);return Q.Y&&k&&!T.api.isFullscreen()}; Pmf=function(T){if(T.tb()&&!T.api.isEmbedsShortsMode()&&T.nz){var Q=T.api.V("web_player_hide_overflow_button_if_empty_menu");!T.wy||Q&&!aSu(T.wy)||nvb(T.nz,T.wy);!T.shareButton||Q&&!TF6(T.shareButton)||nvb(T.nz,T.shareButton);!T.copyLinkButton||Q&&!yYH(T.copyLinkButton)||nvb(T.nz,T.copyLinkButton)}else{Q=T.api.G().getWebPlayerContextConfig();if(T.nz){for(var k=T.nz,l=g.B(k.actionButtons),v=l.next();!v.done;v=l.next())v.value.detach();k.actionButtons=[]}T.searchButton&&!g.SO(T.Iy.element,T.searchButton.element)&& T.searchButton.XB(T.Iy.element);!T.wy||(Q==null?0:Q.hideTopWatchNextButton)||g.SO(T.Iy.element,T.wy.element)||T.wy.XB(T.Iy.element);!T.shareButton||(Q==null?0:Q.hideTopShareButton)||g.SO(T.Iy.element,T.shareButton.element)||T.shareButton.XB(T.Iy.element);T.copyLinkButton&&!g.SO(T.Iy.element,T.copyLinkButton.element)&&T.copyLinkButton.XB(T.Iy.element)}}; HR6=function(T,Q,k){Q=k?Q.lastElementChild:Q.firstElementChild;for(var l=null;Q;){if(eO(Q,"display")!=="none"&&Q.getAttribute("aria-hidden")!=="true"){var v=void 0;Q.tabIndex>=0?v=Q:v=HR6(T,Q,k);v&&(l?k?v.tabIndex>l.tabIndex&&(l=v):v.tabIndexl/1E3+1)return{msg:"in-the-past"};if(L.isLivePlayback&&!isFinite(l))return{msg:"live-infinite"};(l=Q.T_())&&l.isView()&&(l=l.mediaElement);if(l&&l.nX().length>12&&g.Wv(v))return{msg:"played-ranges"};if(!v.L)return null;if(!q)return{msg:"no-pvd-formats"};if(!v.L.T||!q.T)return{msg:"non-dash"};l=q.videoInfos[0];var Y=v.L.videoInfos[0];T.z9&&NY(L)&&(l=Q.My(), Y=k.My());if(!l||!Y)return{msg:"no-video-info"};if(T.B&&(uk(l)||uk(Y)))return{msg:"av1"};Q=T.Y&&L.aD()&&vM();if(Y.containerType!==l.containerType)if(Q)L.T9("sgap",{ierr:"container"});else return{msg:"container"};if(T.N&&!Q&&(Y.yR!==l.yR||Y.yR===""||l.yR===""))return{msg:"codec"};if(T.C&&Y.video&&l.video&&Math.abs(Y.video.width/Y.video.height-l.video.width/l.video.height)>.01)return{msg:"ratio"};if(g.Wv(L)&&g.Wv(v))return{msg:"content-protection"};q=q.T[0];v=v.L.T[0];k=q.audio;var U=v.audio;if(k.sampleRate!== U.sampleRate&&!g.hW)if(Q)L.T9("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:q.itag,cr:k.sampleRate,ni:v.itag,nr:U.sampleRate};return(k.numChannels||2)!==(U.numChannels||2)?{msg:"channel-count"}:T.j&&L.aD()&&l.video.fps!==Y.video.fps?{msg:"fps"}:null}; Wt6=function(T,Q,k){var l=T.getVideoData(),v=Q.getVideoData();if(!l.G().supportsGaplessShorts())return{nq:"env"};if((!k.D||l.dO&&!l.isAd()||v.dO&&!v.isAd())&&(!k.S||l.dO&&!l.isAd()||v.dO)&&(!k.L||v.dO&&!v.isAd()||l.dO)&&(l.dO||v.dO))return{nq:"autoplay"};if(l.endSeconds>0)return{nq:"endcr"};if(!l.C)return{nq:"client"};if(!T.jZ())return{nq:"no-empty"};T=ps6(k,T,Q,Infinity);return T!=null?{nq:T.msg}:null}; Ww=function(T){g.x.call(this);this.app=T;this.N=this.Y=this.S=this.T=null;this.L=1;this.events=new g.Bj(this);this.events.Z(this.app.ZV,g.Ft("gaplessshortslooprange"),this.j);g.P(this,this.events)}; $B5=function(){this.T=this.C=this.L=this.S=this.D=this.B=this.z9=this.j=this.N=this.Y=!1}; JvT=function(T){var Q=new $B5;Q.Y=T.V("h5_gapless_support_types_diff");Q.j=T.V("h5_gapless_error_on_fps_diff");Q.z9=T.V("html5_gapless_use_format_info_fix");Q.B=T.V("html5_gapless_disable_on_av1")&&!T.V("html5_gapless_enable_on_av1");Q.N=T.V("html5_gapless_check_codec_diff_strictly");Q.D=T.V("html5_gapless_on_ad_autoplay");Q.C=T.V("html5_gapless_disable_diff_aspect_radio");Q.S=T.V("html5_gapless_ad_autoplay_on_ad_to_video_only");Q.T=T.V("html5_pseudogapless_shorts_seek_to_next_start");Q.L=T.V("html5_gapless_ad_autoplay_on_video_to_ad_only"); return Q}; g.$$=function(T,Q,k,l){l=l===void 0?!1:l;ml.call(this);this.mediaElement=T;this.start=Q;this.end=k;this.T=l}; e4t=function(T,Q,k,l,v,L){L=L===void 0?0:L;g.x.call(this);var q=this;this.policy=T;this.T=Q;this.S=k;this.nA=v;this.N=L;this.Y=this.L=null;this.currentVideoDuration=this.B=-1;this.C=!1;this.O_=new GN;this.kz=l-Q.Px()*1E3;this.O_.then(void 0,function(){}); this.timeout=new g.FA(function(){q.XG("timeout")},1E4); g.P(this,this.timeout);this.j=isFinite(l)||this.nA.G().experiments.Wd("html5_pseudogapless_shorts")&&NY(Q.getVideoData());this.status={status:0,error:null}}; EV5=function(T){var Q,k,l,v,L,q,Y,U,R;return g.a(function(Z){if(Z.S==1){if(T.wd())return Z.return(Promise.reject(Error(T.status.error||"disposed")));T.timeout.start();return g.c(Z,T.O_,2)}Q=T.T.T_();if(Q.isEnded())return T.XG("ended_in_finishTransition"),Z.return(Promise.reject(Error(T.status.error||"")));if(!T.Y||!gf(T.Y))return T.XG("next_mse_closed"),Z.return(Promise.reject(Error(T.status.error||"")));if(T.S.JH()!==T.Y)return T.XG("next_mse_mismatch"),Z.return(Promise.reject(Error(T.status.error|| "")));k=JE(T);l=k.RO;v=k.Ro;L=k.sD;T.T.u7(!1,!0);q=Ftg(Q,l,L,!T.S.getVideoData().isAd());T.S.setMediaElement(q);(Y=T.T.J5())&&T.S.aQ(Y.L4,Y.kT);T.j&&(T.policy.T||T.S.seekTo(T.S.getCurrentTime()+.001,{M5:!0,Nf:3,I_:"gapless_pseudo"}),q.play(),rV());U=Q.Tx();U.cpn=T.T.getVideoData().clientPlaybackNonce;U.st=""+l;U.et=""+L;T.S.T9("gapless",U);T.T.T9("gaplessTo",{cpn:T.S.getVideoData().clientPlaybackNonce});R=T.T.getPlayerType()===T.S.getPlayerType();T.T.N8(v,!0,!1,R,T.S.getVideoData().clientPlaybackNonce); T.S.N8(T.S.getCurrentTime(),!0,!0,R,T.T.getVideoData().clientPlaybackNonce);T.S.aO();g.Ad(function(){!T.S.getVideoData().qO&&T.S.getPlayerState().isOrWillBePlaying()&&T.S.KO()}); eW(T,6);T.dispose();return Z.return(Promise.resolve())})}; Tp5=function(T){if(T.S.getVideoData().L){var Q=T.nA.G().V("html5_gapless_suspend_next_loader")&&T.N===1;T.S.lz(T.Y,Q,yvX(T));eW(T,3);iRT(T);var k=Vi5(T);Q=k.O5;k=k.ZR;Q.subscribe("updateend",T.pR,T);k.subscribe("updateend",T.pR,T);T.pR(Q);T.pR(k)}}; iRT=function(T){T.T.unsubscribe("internalvideodatachange",T.rV,T);T.S.unsubscribe("internalvideodatachange",T.rV,T);T.nA.G().V("html5_gapless_use_format_info_fix")&&(T.T.unsubscribe("internalvideoformatchange",T.rV,T),T.S.unsubscribe("internalvideoformatchange",T.rV,T));T.T.unsubscribe("mediasourceattached",T.rV,T);T.S.unsubscribe("statechange",T.FT,T)}; Ftg=function(T,Q,k,l){T=T.isView()?T.mediaElement:T;return new g.$$(T,Q,k,l)}; eW=function(T,Q){Q<=T.status.status||(T.status={status:Q,error:null},Q===5&&T.O_.resolve())}; yvX=function(T){return T.nA.G().V("html5_gapless_no_clear_buffer_timeline")&&T.N===1&&cv(T.T.getVideoData())}; JE=function(T){var Q=T.T.T_();Q=Q.isView()?Q.start:0;var k=T.T.getVideoData().isLivePlayback?Infinity:T.T.WG(!0);k=Math.min(T.kz/1E3,k)+Q;var l=T.j?100:0;T=k-T.S.Jb()+l;return{BR:Q,RO:T,Ro:k,sD:Infinity}}; Vi5=function(T){return{O5:T.L.T.kM,ZR:T.L.S.kM}}; Fx=function(T){g.x.call(this);var Q=this;this.app=T;this.B=this.S=this.T=null;this.j=!1;this.L=this.Y=null;this.N=JvT(this.app.G());this.C=function(){g.Ad(function(){QJt(Q)})}}; jJT=function(T,Q,k,l,v){l=l===void 0?0:l;v=v===void 0?0:v;T.jZ()||EL(T);T.Y=new GN;T.T=Q;var L=k,q=v===0;q=q===void 0?!0:q;var Y=T.app.Pd(),U=Y.getVideoData().isLivePlayback?Infinity:Y.WG(!0)*1E3;L>U&&(L=U-200,T.j=!0);q&&Y.getCurrentTime()>=L/1E3?T.C():(T.S=Y,q&&(q=L,L=T.S,T.app.ZV.addEventListener(g.ej("vqueued"),T.C),q=isFinite(q)||q/1E3>L.getDuration()?q:0x8000000000000,T.B=new g.$d(q,0x8000000000000,{namespace:"vqueued"}),L.addCueRange(T.B)));q=l/=1E3;L=Q.getVideoData().T;l&&L&&T.S&&(Y=l,U=0, Q.getVideoData().isLivePlayback&&(q=Math.min(k/1E3,T.S.WG(!0)),U=Math.max(0,q-T.S.getCurrentTime()),Y=Math.min(l,Q.WG()+U)),q=nTt(L,Y)||l,q!==l&&T.T.T9("qvaln",{st:l,at:q,rm:U,ct:Y}));Q=q;l=T.T;l.getVideoData().A9=!0;l.getVideoData().C=!0;l.I3(!0);L={};T.S&&(L=T.S.jO(),q=T.S.getVideoData().clientPlaybackNonce,L={crt:(L*1E3).toFixed(),cpn:q});l.T9("queued",L);Q!==0&&l.seekTo(Q+.01,{M5:!0,Nf:3,I_:"videoqueuer_queued"});T.L=new e4t(T.N,T.app.Pd(),T.T,k,T.app,v);k=T.L;k.status.status!==Infinity&&(eW(k, 1),k.T.subscribe("internalvideodatachange",k.rV,k),k.S.subscribe("internalvideodatachange",k.rV,k),k.nA.G().V("html5_gapless_use_format_info_fix")&&(k.T.subscribe("internalvideoformatchange",k.rV,k),k.S.subscribe("internalvideoformatchange",k.rV,k)),k.T.subscribe("mediasourceattached",k.rV,k),k.S.subscribe("statechange",k.FT,k),k.T.subscribe("newelementrequired",k.fI,k),k.rV());return T.Y}; QJt=function(T){var Q,k,l,v,L,q,Y;g.a(function(U){switch(U.S){case 1:if(T.wd()||!T.Y||!T.T)return U.return();T.j&&T.app.Pd().fn(!0,!1);Q=null;if(!T.L){U.Ym(2);break}g.z5(U,3);return g.c(U,EV5(T.L),5);case 5:g.d6(U,2);break;case 3:Q=k=g.by(U);case 2:if(!T.T)return U.return();kGg.Mg("vqsp",function(){T.app.l$(T.T)}); if(!T.T)return U.return();l=T.T.T_();T.app.G().V("html5_gapless_seek_on_negative_time")&&l&&l.getCurrentTime()<-.01&&T.T.seekTo(0);kGg.Mg("vqpv",function(){T.app.playVideo()}); Q&&(T.T?(v=Q?Q.message:"forced",(L=T.S)==null||L.T9("gapfulfbk",{r:v}),T.T.xk(v)):(q=T.S)==null||q.T9("gapsp",{}));Y=T.Y;EL(T);Y&&Y.resolve();return U.return(Promise.resolve())}})}; EL=function(T,Q){Q=Q===void 0?!1:Q;if(T.S){if(T.B){var k=T.S;T.app.ZV.removeEventListener(g.ej("vqueued"),T.C);k.removeCueRange(T.B)}T.S=null;T.B=null}T.L&&(T.L.status.status!==6&&(k=T.L,k.status.status!==Infinity&&k.N!==1&&k.XG("Canceled")),T.L=null);T.Y=null;T.T&&!Q&&T.T!==T.app.Lc()&&T.T!==T.app.Pd()&&T.T.dispose();T.T&&Q&&T.T.I0();T.T=null;T.j=!1}; lPI=function(T){var Q;return((Q=T.L)==null?void 0:Q.currentVideoDuration)||-1}; oIy=function(T,Q,k){if(T.jZ())return"qie";if(T.T==null||T.T.wd()||T.T.getVideoData()==null)return"qpd";if(Q.videoId!==T.T.Dg())return"vinm";if(lPI(T)<=0)return"ivd";if(k!==1)return"upt";if((k=T.L)==null)T=void 0;else if(k.getStatus().status!==5)T="niss";else if(ps6(k.policy,k.T,k.S,k.kz)!=null)T="pge";else{Q=Vi5(k);T=Q.O5;var l=Q.ZR;Q=g.jj(k.nA.G().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var v=k.B+Q;k.nA.G().experiments.Wd("html5_pseudogapless_shorts")&&(v=JE(k).RO+Q);k=y4(l.LG(), v);T=y4(T.LG(),v);T=!(Q>0)||k&&T?null:"neb"}return T!=null?T:null}; vI5=function(){g.ox.call(this);var T=this;this.fullscreen=0;this.Y=this.L=this.pictureInPicture=this.T=this.S=this.inline=!1;this.N=function(){T.H1()}; gOI(this.N);this.B=this.getVisibilityState(this.Ax(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.x$(),this.Uj(),this.CM(),this.zs())}; URT=function(T){return!(T.isMinimized()||T.isInline()||T.isBackground()||T.x$()||T.Uj()||T.CM()||T.zs())}; g.yg=function(T){g.x.call(this);this.Hd=T;this.videoData=this.playerState=null}; Tt=function(T,Q){g.x.call(this);var k=this;this.data=[];this.L=T||NaN;this.S=Q||null;this.T=new g.FA(function(){ia(k);Vg(k)}); g.P(this,this.T)}; aQX=function(T){ia(T);return T.data.map(function(Q){return Q.value})}; ia=function(T){var Q=(0,g.XY)();T.data.forEach(function(k){k.expire0));T.J3()&& qUy();Error.stackTraceLimit=50;var v=g.jj(Q,"html5_idle_rate_limit_ms");v&&Object.defineProperty(window,"requestIdleCallback",{value:function(L){return window.setTimeout(L,v)}}); lYg(T.N);tv5(k("html5_use_ump_request_slicer"));Gqu(k("html5_record_now"));k("html5_disable_streaming_xhr")&&(sd=!1);k("html5_byterate_constraints")&&(A_=!0);k("html5_use_non_active_broadcast_for_post_live")&&(mN=!0);k("html5_enable_encrypted_av1")&&(aE=!0);Vj5(g.jj(T.experiments,"html5_sticky_duration_mos"))}; RTg=function(T,Q){return T.slice(Q.length).replace(/_[a-z]/g,function(k){return k.toUpperCase().replace("_","")}).replace("Dot",".")}; ZU6=function(T){var Q={},k=Object.keys(T.experiments.flags);k=g.B(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.startsWith("cobalt_h5vcc"))if(l.startsWith("cobalt_h5vcc_string")){var v=RTg(l,"cobalt_h5vcc_string");l=S4(T.experiments,l);v&&l&&(Q[v]=vDH(v,l))}else l.startsWith("cobalt_h5vcc")&&(v=RTg(l,"cobalt_h5vcc"),l=g.jj(T.experiments,l),v&&l&&(Q[v]=vDH(v,l)));return Q}; GGy=function(T,Q,k,l){l=l===void 0?0:l;g.vR.call(this,k.Le());var v=this;this.Gx=T;this.videoData=Q;this.duration=l;this.T=this.startTimeSecs=0;this.S=new fPu(function(L,q){return void v.T9(L,q)})}; fPu=function(T){this.T9=T;this.T={}}; mO5=function(T,Q,k){T.T[Q]||(T.T9("huli-sdai-err",k),T.T[Q]=!0)}; IPb=function(T){this.end=this.start=T}; g.og=function(){this.T=new Map;this.L=new Map;this.S=new Map}; hTX=function(T){var Q=this;this.Hd=T;this.T=[];this.L=new Map;this.Y=new Map;this.S=new Map;this.dn={HO:function(){return Q.L}, ezK:function(){return Q.Y}}; this.N=this.Hd.V("html5_huli_ssdai_deprecate_playback_timeline_id")}; S3H=function(T,Q){g.Fd(T.T,Q,function(k,l){return k.R_===l.R_?k.durationMs-l.durationMs:k.R_-l.R_}); T.L.set(Q.cpn,Q);Q.lC&&!T.N&&T.Y.set(Q.lC,Q);Q.RB&&sJg(T,Q.RB,Q)}; CTt=function(T,Q){for(var k=[],l=g.B(T.T),v=l.next();!v.done;v=l.next())v=v.value,Q(v)||k.push(v);if(T.Hd.V("html5_sstm_fixes"))for(l=g.B(T.T),v=l.next();!v.done;v=l.next())v=v.value,Q(v)&&(T.L.delete(v.cpn),v.lC&&T.Y.delete(v.lC));T.T=k}; Bp5=function(T,Q){Q=g.OA(T.T,{X_:Q},function(k,l){return k.X_-l.X_}); return Q>=0?T.T[Q]:null}; zTC=function(T,Q){var k=T.T.indexOf(Q);k>=0&&T.T.splice(k,1);T.L.delete(Q.cpn);Q.lC&&T.Y.delete(Q.lC)}; sJg=function(T,Q,k){var l=T.S.get(Q);l?(l.push(k),g.JT(l,function(v,L){return v.R_-L.R_})):T.S.set(Q,[k])}; g.v5=function(T,Q,k,l){g.x.call(this);var v=this;this.api=T;this.Hd=Q;this.playback=k;this.app=l;this.qO=new g.og;this.S=new Map;this.i9=new Map;this.xm=null;this.Tg=NaN;this.K_=this.zg=null;this.f_=new g.FA(function(){XKb(v,v.Tg,v.zg||void 0)}); this.events=new g.Bj(this);this.Jj=15E3;this.C=new g.FA(function(){v.j=!0;v.playback.r6(v.Jj);wKC(v);if(v.playback.getVideoData().lf()){var L;v.Fs({togab:(L=v.B)==null?void 0:L.identifier})}v.Ky(!1)},this.Jj); this.j=!1;this.N=new Map;this.Bd=[];this.B=null;this.Fk=new Set;this.D=[];this.p_=[];this.Ig=[];this.d5=[];this.e6=new Set;this.Al=0;this.z9=!1;this.Gg=new Set;this.DP=new Set;this.OG=new Set;this.u9=new Set;this.h3=this.N5=0;this.l0=this.QR=!1;this.Tb=this.Y="";this.hj=null;this.logger=new g.Cy("dai");this.dn={BrB:function(){return v.S}, HO:function(){return v.T.dn.HO()}, eF6:function(){return v.Y}, Esd:function(L){v.onCueRangeEnter(v.S.get(L))}, Y_d:function(L){v.onCueRangeExit(v.S.get(L))}, tnd:function(L,q){v.S.set(L,q)}, Oa_:function(L){v.Tb=L}, eP:function(){return v.eP()}, wAO:function(L){return v.T.S.get(L)}, wfm:function(){return v.hj}, V9j:function(){return v.T.T}}; this.playback.getPlayerType();this.T=new hTX(this.Hd);this.playback.E7(this);this.sK=this.Hd.J3();g.P(this,this.f_);g.P(this,this.events);g.P(this,this.C);this.events.Z(this.api,g.ej("serverstitchedcuerange"),this.onCueRangeEnter);this.events.Z(this.api,g.Ft("serverstitchedcuerange"),this.onCueRangeExit);lG(this.app.vG(),this.playback,!1)}; rbJ=function(T,Q,k,l,v,L,q,Y){var U=dOC(T,L,L+v);T.j&&T.Fs({adaftto:1});k||T.Fs({missadcon:1,enter:L,len:v,aid:Y});T.L&&!T.L.CK&&(T.L.CK=Y);T.l0&&T.Fs({adfbk:1,enter:L,len:v,aid:Y});var R=T.playback;L>q&&Lq(T,{reason:"enterTime_greater_than_return",R_:L,X_:q});var Z=R.SY()*1E3;LR&&Lq(T,{reason:"parent_return_greater_than_content_duration",X_:q,NvV:R});(R=Bp5(T.T,L))&&R.X_>L&&NpC(T,Q.video_id||"", L,q,R);if(U&&R)for(Z=0;Z=0)for(var v=Q*1E3,L=l;L<=l+1&&L=q.R_-k*1E3&&v<=q.X_+k*1E3)return{sU:q,BJ:Q}}return{sU:void 0,BJ:Q}}; nIf=function(T,Q){var k="";(Q=aP5(T,Q))&&(k=Q.getId());return k?T.T.pA({cpn:k}):void 0}; aP5=function(T,Q){if(T.Tb){var k=T.S.get(T.Tb);if(k&&k.start-200<=Q&&k.end+200>=Q)return k}T=g.B(T.S.values());for(k=T.next();!k.done;k=T.next())if(k=k.value,k.start<=Q&&k.end>=Q)return k}; XKb=function(T,Q,k){var l=T.K_||T.app.Pd().getPlayerState();Md(T,!0);T.playback.seekTo(Q,k);T=T.app.Pd();Q=T.getPlayerState();l.isOrWillBePlaying()&&!Q.isOrWillBePlaying()?T.playVideo():l.isPaused()&&!Q.isPaused()&&T.pauseVideo()}; Md=function(T,Q){T.Tg=NaN;T.zg=null;T.f_.stop();T.xm&&Q&&T.xm.jK();T.K_=null;T.xm=null}; OUg=function(T){var Q=Q===void 0?-1:Q;var k=k===void 0?Infinity:k;HU5(T,Q,k);for(var l=g.B(T.S.values()),v=l.next();!v.done;v=l.next())v=v.value,v.start>=Q&&v.end<=k&&(T.playback.removeCueRange(v),T.S.delete(v.getId()),T.Fs({rmAdCR:1}));l=gk(T,Q/1E3);Q=l.sU;l=l.BJ;Q&&(l=l*1E3-Q.R_,tbT(T,Q,l,Q.R_+l),l=T.S.get(Q.cpn))&&(l.start=Q.R_,l.end=Q.R_+Q.durationMs);if(Q=gk(T,k/1E3).sU){var L;l="playback_timelinePlaybackId_"+Q.lC+"_video_id_"+((L=Q.videoData)==null?void 0:L.videoId)+"_durationMs_"+Q.durationMs+ "_enterTimeMs_"+Q.R_+"_parentReturnTimeMs_"+Q.X_;T.O4("Invalid_clearEndTimeMs_"+k+"_that_falls_during_"+l+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; pK6=function(T){T.qO.clearAll();T.S.clear();T.T.clear();T.N.clear();T.Bd=[];T.B=null;T.Fk.clear();T.Hd.experiments.Wd("html5_ssdai_log_missing_ad_config_reason")&&T.e6.clear();T.D=[];T.p_=[];T.Ig=[];T.d5=[];T.Gg.clear();T.DP.clear();T.OG.clear();T.u9.clear();T.j=!1;T.Al=0;T.z9=!1;T.N5=0;T.h3=0;T.QR=!1;T.l0=!1;T.Y="";LFJ(T.app.vG());lG(T.app.vG(),T.playback,!1);T.i9.clear();T.C.isActive()&&qd(T)}; tbT=function(T,Q,k,l){Q.durationMs=k;Q.X_=l;(l=T.i9.get(Q.cpn))?l.SR(k/1E3):T.Fs({nop_d:Q.cpn})}; HU5=function(T,Q,k){CTt(T.T,function(l){return l.R_>=Q&&l.X_<=k})}; Jby=function(T,Q,k,l,v,L){if(!T.l0)if(g.WFX(T,k))T.Fs({gdu:"undec",seg:k,itag:v});else if(Q=$OT(T,Q,k,l,L),!(T.playback.getVideoData().lf()&&(Q==null?0:Q.C0)))return Q}; $OT=function(T,Q,k,l,v){var L=T.N.get(k);if(!L){if(L=eTg(T,Q))return L;Q=T.H$(k-1,l!=null?l:2);if(v)return T.Fs({misscue:v,sq:k,type:l,prevsstate:Q==null?void 0:Q.gN,prevrecord:T.N.has(k-1)}),T.N.get(k-1);if((Q==null?void 0:Q.gN)===2)return T.Fs({adnf:1,sq:k,type:l,prevrecord:T.N.has(k-1)}),T.N.get(k-1)}return L}; eTg=function(T,Q){Q+=T.TG();if(T.playback.getVideoData().lf())a:{var k=1;k=k===void 0?0:k;var l=Q*1E3;T=g.B(T.T.T);for(var v=T.next();!v.done;v=T.next()){v=v.value;var L=v.SK?v.SK*1E3:v.R_;if(l>=v.R_-k*1E3&&l<=L+v.durationMs+k*1E3){l={sU:v,BJ:Q};break a}}l={sU:void 0,BJ:Q}}else l=gk(T,Q),((k=l)==null?0:k.sU)||(l=gk(T,Q,1));var q;return(q=l)==null?void 0:q.sU}; FFJ=function(T,Q){Q=Q===void 0?"":Q;var k=DE(Q)||void 0;if(!Q||!k){var l;T.Fs({adcfg:(l=Q)==null?void 0:l.length,dcfg:k==null?void 0:k.length})}return k}; EIt=function(T){for(var Q=g.B(T.S.values()),k=Q.next();!k.done;k=Q.next())T.playback.removeCueRange(k.value);T.S.clear();T.qO.clearAll()}; ybt=function(T,Q,k,l,v,L,q){if(Q&&k){T.Tb=k.cpn;T.PB(k.cpn,k.startTimeSecs||v);DOJ(T,k);var Y=cbT(T,"a2a",k);T.Fs(Y);T.N5++;T.playback.sz(Q,k,l||0,v||0,!!L,!!q)}else T.Fs({misspbkonadtrans:1,enter:(k==null?void 0:k.cpn)||"",exit:(Q==null?void 0:Q.cpn)||"",seek:L,skip:q})}; Y7=function(T,Q,k){if(k===void 0||!k){k=g.B(T.Bd);for(var l=k.next();!l.done;l=k.next()){l=l.value;if(Q>=l.start&&Q<=l.end)return;if(Q===l.end+1){l.end+=1;return}}T.Bd.push(new IPb(Q))}}; g.WFX=function(T,Q){T=g.B(T.Bd);for(var k=T.next();!k.done;k=T.next())if(k=k.value,Q>=k.start&&Q<=k.end)return!0;return!1}; iU5=function(T,Q,k){var l;if(l=T.playback.getVideoData().lf())l=(l=T.T.pA({cpn:Q}))&&l.RB?(T=T.T.S.get(l==null?void 0:l.RB))&&T.slice(-1)[0].cpn===Q:!1;return l&&k===2?1E3:0}; NpC=function(T,Q,k,l,v){var L;Q={reason:"overlapping_playbacks",iad:Q,R_:k,X_:l,kGB:v.lC,F_6:((L=v.videoData)==null?void 0:L.videoId)||"",Q0e:v.durationMs,hzq:v.R_,L_O:v.X_};Lq(T,Q)}; Lq=function(T,Q,k){T.playback.JU(Q,k)}; Vbg=function(T,Q){var k=[];T=T.T.S.get(Q);if(!T)return[];T=g.B(T);for(Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q.cpn&&k.push(Q.cpn);return k}; Te5=function(T,Q,k){var l=0;T=T.T.S.get(k);if(!T)return-1;T=g.B(T);for(k=T.next();!k.done;k=T.next()){if(k.value.cpn===Q)return l;l++}return-1}; Q7b=function(T,Q){var k=0;T=T.T.S.get(Q);if(!T)return 0;T=g.B(T);for(Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q.durationMs!==0&&Q.X_!==Q.R_&&k++;return k}; j7C=function(T,Q,k){var l=!1;if(k=T.T.S.get(k)){k=g.B(k);for(var v=k.next();!v.done;v=k.next())v=v.value,v.durationMs!==0&&v.X_!==v.R_&&(v=v.cpn,Q===v&&(l=!0),l&&!T.DP.has(v)&&(T.Fs({decoratedAd:v}),T.DP.add(v)))}}; wKC=function(T){T.sK&&T.Fs({adf:"0_"+((new Date).getTime()/1E3-T.h3)+"_isTimeout_"+T.j})}; dOC=function(T,Q,k){if(T.D.length)for(var l=g.B(T.D),v=l.next(),L={};!v.done;L={ND:void 0},v=l.next()){L.ND=v.value;v=L.ND.startSecs*1E3;var q=L.ND.bf*1E3+v;if(Q>v&&Qv&&k0?T:0}else T.eP().videoData.Ah=T.playback.getCurrentTime()}; laX=function(T){T.u9.add(T.Y);T.Y="";T.z9=!1}; MdC=function(T,Q,k,l){g.x.call(this);var v=this;this.api=T;this.Hd=Q;this.T=k;this.app=l;this.N=new Map;this.S=[];this.L=this.C=null;this.z9=NaN;this.B=this.Y=this.D=null;this.j=new g.FA(function(){gU6(v,v.z9,v.D||void 0)}); this.qO=[];this.hj=new g.FA(function(){var L=v.qO.pop();if(L){var q=L.lC,Y=L.playerVars;L=L.playerType;Y&&(Y.prefer_gapless=!0,v.api.preloadVideoByPlayerVars(Y,L,NaN,"",q),v.qO.length&&g.Ez(v.hj,4500))}}); this.events=new g.Bj(this);this.dn={j09:function(){return v.S}}; this.T.getPlayerType();g.P(this,this.j);g.P(this,this.hj);g.P(this,this.events);this.events.Z(this.api,g.ej("childplayback"),this.onCueRangeEnter);this.events.Z(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.Z(this.api,"presentingplayerstatechange",this.Pl)}; ZzJ=function(T,Q,k,l,v,L){var q=Q.cpn,Y=Q.docid||Q.video_id||Q.videoId||Q.id,U=T.T;L=L===void 0?v+l:L;if(v>L)return Rg(T,"enterAfterReturn enterTimeMs="+v+" is greater than parentReturnTimeMs="+L.toFixed(3),q,Y),"";var R=U.SY()*1E3;if(vR)return U="returnAfterDuration parentReturnTimeMs="+L.toFixed(3)+" is greater than parentDurationMs="+R+". And timestampOffset in seconds is "+ U.Px(),Rg(T,U,q,Y),"";R=null;for(var Z=g.B(T.S),f=Z.next();!f.done;f=Z.next()){f=f.value;if(v>=f.R_&&vf.R_)return Rg(T,"overlappingReturn",q,Y),"";if(L===f.R_)return Rg(T,"outOfOrder",q,Y),"";v===f.X_&&(R=f)}q="cs_childplayback_"+Y1f++;Y={qV:ZN(l,!0),kz:Infinity,target:null};var G={lC:q,playerVars:Q,playerType:k,durationMs:l,R_:v,X_:L,R9:Y};T.S=T.S.concat(G).sort(function(z,w){return z.R_-w.R_}); R?UbX(T,R,{qV:ZN(R.durationMs,!0),kz:R.R9.kz,target:G}):(Q={qV:ZN(v,!1),kz:v,target:G},T.N.set(Q.qV,Q),U.addCueRange(Q.qV));Q=!0;if(T.T===T.app.Pd()&&(U=U.getCurrentTime()*1E3,U>=G.R_&&UQ)break;if(L>Q)return{sU:l,BJ:Q-v};k=L-l.X_/1E3}return{sU:null,BJ:Q-k}}; gU6=function(T,Q,k){k=k===void 0?{}:k;var l=T.B||T.app.Pd().getPlayerState();mL(T,!0);Q=isFinite(Q)?Q:T.T.u8();var v=Iab(T,Q);Q=v.BJ;var L=(v=v.sU)&&!fq(T,v)||!v&&T.T!==T.app.Pd(),q=Q*1E3;q=T.L&&T.L.start<=q&&q<=T.L.end;!L&&q||Gt(T);v?R_u(T,v,Q,k,l):h_y(T,Q,k,l)}; h_y=function(T,Q,k,l){var v=T.T;v!==T.app.Pd()&&T.app.WJ();v.seekTo(Q,Object.assign({},{I_:"application_timelinemanager"},k));s76(T,l)}; R_u=function(T,Q,k,l,v){var L=fq(T,Q);if(!L){Q.playerVars.prefer_gapless=!0;var q=new g.mR(T.Hd,Q.playerVars);q.lC=Q.lC;T.api.Ln(q,Q.playerType)}q=T.app.Pd();L||q.addCueRange(Q.R9.qV);q.seekTo(k,Object.assign({},{I_:"application_timelinemanager"},l));s76(T,v)}; s76=function(T,Q){T=T.app.Pd();var k=T.getPlayerState();Q.isOrWillBePlaying()&&!k.isOrWillBePlaying()?T.playVideo():Q.isPaused()&&!k.isPaused()&&T.pauseVideo()}; mL=function(T,Q){T.z9=NaN;T.D=null;T.j.stop();T.Y&&Q&&T.Y.jK();T.B=null;T.Y=null}; fq=function(T,Q){T=T.app.Pd();return!!T&&T.getVideoData().lC===Q.lC}; S1u=function(T){var Q=T.S.find(function(v){return fq(T,v)}); if(Q){var k=T.app.Pd();Gt(T);var l=new g.Cd(8);Q=mbu(T,Q)/1E3;h_y(T,Q,{},l);k.T9("forceParentTransition",{childPlayback:1});T.T.T9("forceParentTransition",{parentPlayback:1})}}; BeX=function(T,Q,k){Q=Q===void 0?-1:Q;k=k===void 0?Infinity:k;for(var l=Q,v=k,L=g.B(T.N),q=L.next();!q.done;q=L.next()){var Y=g.B(q.value);q=Y.next().value;Y=Y.next().value;Y.kz>=l&&Y.target&&Y.target.X_<=v&&(T.T.removeCueRange(q),T.N.delete(q))}l=Q;v=k;L=[];q=g.B(T.S);for(Y=q.next();!Y.done;Y=q.next())if(Y=Y.value,Y.R_>=l&&Y.X_<=v){var U=T;U.C===Y&&Gt(U);fq(U,Y)&&U.app.WJ()}else L.push(Y);T.S=L;l=Iab(T,Q/1E3);Q=l.sU;l=l.BJ;Q&&(l*=1E3,C9y(T,Q,l,Q.X_===Q.R_+Q.durationMs?Q.R_+l:Q.X_));(Q=Iab(T,k/1E3).sU)&& Rg(T,"Invalid clearEndTimeMs="+k+" that falls during playback={timelinePlaybackId="+(Q.lC+" video_id="+Q.playerVars.video_id+" durationMs="+Q.durationMs+" enterTimeMs="+Q.R_+" parentReturnTimeMs="+Q.X_+"}.Child playbacks can only have duration updated not their start."))}; C9y=function(T,Q,k,l){Q.durationMs=k;Q.X_=l;l={qV:ZN(k,!0),kz:k,target:null};UbX(T,Q,l);fq(T,Q)&&T.app.Pd().getCurrentTime()*1E3>k&&(Q=mbu(T,Q)/1E3,k=T.app.Pd().getPlayerState(),h_y(T,Q,{},k))}; Rg=function(T,Q,k,l){T.T.T9("timelineerror",{e:Q,cpn:k?k:void 0,videoId:l?l:void 0})}; Xo5=function(T){T&&T!=="web"&&z_5.includes(T)}; Ig=function(){g.x.call(this);this.T=new Tt(5,null);g.P(this,this.T);this.S=new Tt(15,null);g.P(this,this.S)}; EYH=function(T,Q){return Q?!!T.T.get(Q):!1}; wo6=function(T,Q){T.dataset.version=Q}; AhC=function(T){g.p.call(this,{X:"div",Rk:["html5-video-player"],K:{tabindex:T.G().disableOrganicUi?"":"-1",id:T.webPlayerContextConfig.rootElementId},W:[{X:"div",J:g.Br.VIDEO_CONTAINER,K:{"data-layer":"0"}}]});var Q=this;this.app=T;this.XO=this.L_(g.Br.VIDEO_CONTAINER);this.hJ=new g.tZ(0,0,0,0);this.Q4=null;this.Nu=new g.tZ(0,0,0,0);this.Fa=this.sO=this.eH=NaN;this.Nb=this.X9=this.WL=this.fb=!1;this.rg=NaN;this.TD=!1;this.VA=null;this.HL=function(){Q.element.focus({preventScroll:!0})}; this.Mr=function(){Q.app.ZV.publish("playerUnderlayVisibilityChange","visible");Q.Q4.classList.remove(g.Br.VIDEO_CONTAINER_TRANSITIONING);Q.Q4.removeEventListener(cR,Q.Mr);Q.Q4.removeEventListener("transitioncancel",Q.Mr)}; this.Yy=this.kU=!1;var k=this.element.addEventListener,l=this.element.removeEventListener;this.addEventListener=function(L,q,Y){k.apply(Q.element,[L,q,Y])}; this.removeEventListener=function(L,q,Y){l.apply(Q.element,[L,q,Y])}; var v=T.G();v.transparentBackground&&this.SX("ytp-transparent");v.controlsType==="0"&&this.SX("ytp-hide-controls");g.oF(this.element,"ytp-exp-bottom-control-flexbox");g.oF(this.element,"ytp-modern-caption");v.V("enable_new_paid_product_placement")&&!g.XT(v)&&g.oF(this.element,"ytp-exp-ppp-update");v.V("html5_enable_ssap")&&g.oF(this.element,"ytp-ssap");g.oF(this.element,"ytp-livebadge-color");if(v.V("delhi_modern_web_player"))switch(g.oF(this.element,"ytp-delhi-modern"),v.V("delhi_modern_web_player_icons")&& g.oF(this.element,"ytp-delhi-modern-icons"),S4(v.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.oF(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.oF(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.oF(this.element,"ytp-delhi-modern-with-exclusion")}wo6(this.element,dbX(T));this.AP=!1;this.TZ=new g.Ji(NaN,NaN);Neb(this);this.Z(T.ZV,"onMutedAutoplayChange",this.onMutedAutoplayChange);T=g.jj(v.experiments,"html5_android_mweb_resize_delay"); T>0&&(this.N7=new g.FA(function(){return void Q.resize()},T),g.P(this,this.N7))}; Neb=function(T){function Q(q){T.Q4&&hn(T);s0(T)!==T.TD&&T.resize();T.app.G().V("web_enable_smart_zoom")&&T.W3&&(q.state.isPaused()?T.W3.pause():g.RY(q,8)&&T.W3.playState==="paused"&&T.W3.play())} function k(q,Y){T.Kp(q,Y)} function l(q){q.getVideoData()&&T.updateVideoData(q.getVideoData())} function v(){T.Nu=new g.tZ(0,0,0,0);T.hJ=new g.tZ(0,0,0,0)} var L=T.app.ZV;L.addEventListener("initializingmode",v);L.addEventListener("videoplayerreset",l);L.addEventListener("videodatachange",k);L.addEventListener("presentingplayerstatechange",Q);T.addOnDisposeCallback(function(){L.removeEventListener("initializingmode",v);L.removeEventListener("videoplayerreset",l);L.removeEventListener("videodatachange",k);L.removeEventListener("presentingplayerstatechange",Q)})}; rhu=function(T){var Q=T.app.Pd();if(Q=Q?Q.getVideoData():null){if(g.Th(Q)||g.Q5(Q)||g.j$(Q))return 16/9;if(d4(Q)&&Q.L.T)return T=Q.L.videoInfos[0].video,bz5(T.width,T.height)}return(T=T.Q4)?bz5(T.videoWidth,T.videoHeight):16/9}; ch5=function(T,Q,k,l){var v=k,L=bz5(Q.width,Q.height);T.fb?v=kL?{width:Q.width,height:Q.width/v,aspectRatio:v}:vv?T.width=T.height*k:kU;if(s0(T)){var R=rhu(T);var Z=isNaN(R)||g.$n||Gz&&g.mp||U;We&&!g.HX(601)?R=v.aspectRatio:Z=Z||L.controlsType==="3";Z?U?(Z=L.V("place_shrunken_video_on_left_of_player")?16:T.getPlayerSize().width-Q.width-16,R=Math.max((T.getPlayerSize().height-Q.height)/2,0),Z=new g.tZ(Z,R,Q.width, Q.height),T.Q4.style.setProperty("border-radius","12px")):Z=new g.tZ(0,0,Q.width,Q.height):(k=v.aspectRatio/R,Z=new g.tZ((Q.width-v.width/k)/2,(Q.height-v.height)/2,v.width/k,v.height),k===1&&g.mp&&(R=Z.width-Q.height*R,R>0&&(Z.width+=R,Z.height+=R)));g.gl(T.element,"ytp-fit-cover-video",Math.max(Z.width-v.width,Z.height-v.height)<1);if(Y||T.AP)T.Q4.style.display="";T.TD=!0}else{Z=-Q.height;We?Z*=window.devicePixelRatio:g.wj&&(Z-=window.screen.height);Z=new g.tZ(0,Z,Q.width,Q.height);if(Y||T.AP)T.Q4.style.display= "none";T.TD=!1}O$(T.Nu,Z)||(T.Nu=Z,g.q0(L)?(T.Q4.style.setProperty("width",Z.width+"px","important"),T.Q4.style.setProperty("height",Z.height+"px","important")):g.QP(T.Q4,Z.getSize()),l=new g.WX(Z.left,Z.top),g.yf(T.Q4,Math.round(l.x),Math.round(l.y)),l=!0);Q=new g.tZ((Q.width-v.width)/2,(Q.height-v.height)/2,v.width,v.height);O$(T.hJ,Q)||(T.hJ=Q,l=!0);g.W2(T.Q4,"transform",k===1?"":"scaleX("+k+")");q&&U!==T.X9&&(U&&(T.Q4.addEventListener(cR,T.Mr),T.Q4.addEventListener("transitioncancel",T.Mr),T.Q4.classList.add(g.Br.VIDEO_CONTAINER_TRANSITIONING)), T.X9=U,T.app.ZV.publish("playerUnderlayVisibilityChange",T.X9?"transitioning":"hidden"));return l}; um5=function(T){T.kU=!T.kU;T.Yy=!0;T.element.classList.toggle("ytp-retro-player",T.kU);T.resize();T.Yy=!1;T.app.ZV.tj("onRetroModeChanged",T.kU)}; nUt=function(){this.csn=g.C9();this.clientPlaybackNonce=null;this.elements=new Set;this.L=new Set;this.T=new Set;this.S=new Set}; KiC=function(T){if(T.csn!==g.C9())if(T.csn==="UNDEFINED_CSN")T.csn=g.C9();else{var Q=g.C9(),k=g.ST();if(Q&&k){T.csn=Q;for(var l=g.B(T.elements),v=l.next();!v.done;v=l.next())(v=v.value.visualElement)&&v.isClientVe()&&Q&&k&&(g.hH("combine_ve_grafts")?yh(Fv(),v,k):g.E4(g.p9)(void 0,Q,k,v))}if(Q)for(T=g.B(T.T),k=T.next();!k.done;k=T.next())(k=k.value.visualElement)&&k.isClientVe()&&g.iA(Q,k)}}; g.S5=function(T,Q,k,l){g.x.call(this);var v=this;this.logger=new g.Cy("App");this.Oj=this.PG=!1;this.w6={};this.Bw=[];this.ij=!1;this.G7=null;this.intentionalPlayback=!1;this.oA=!0;this.D9=!1;this.YI=this.bj=this.h0=null;this.ql=!0;this.mediaElement=this.VR=null;this.A0=NaN;this.cY=!1;this.OM=this.gq=this.SD=this.screenLayer=this.playlist=null;this.l1=[];this.XX=0;this.dn={vG:function(){return v.CA}, N_B:function(){return v.SD}}; this.logger.debug("constructor begin");if(!k)throw Error("b/179532961");this.C9=(Q==null?void 0:Q.args)||{};this.webPlayerContextConfig=k;LoX();Q=this.C9;this.Hd=new fn(Q,k,k.canaryState,l,this);g.P(this,this.Hd);UO5(this.Hd);k=ZU6(this.Hd);this.Hd.J3()&&this.y7("h5vcc",k);this.Hd.experiments.Wd("jspb_serialize_with_worker")&&tmu();this.Hd.experiments.Wd("gzip_gel_with_worker")&&DNH();this.Hd.S&&!xbC&&(window.addEventListener(ya?"touchstart":"click",ORf,{capture:!0,passive:!0}),xbC=!0);this.V("html5_onesie")&& (this.fH=new Iv(this.Hd),g.P(this,this.fH));this.bF=jG(kL(this.Hd)&&!0,Q.enablesizebutton);this.qJ=jG(!1,Q.player_wide);this.visibility=new vI5;g.P(this,this.visibility);this.V("web_log_theater_mode_visibility")&&this.bz(jG(!1,Q.player_wide));this.PG=jG(!1,Q.external_list);this.events=new g.Bj(this);g.P(this,this.events);this.V("start_client_gcf")&&(d1(r1(),{mj:qU,u3:key()}),this.mT=r1().resolve(qU),vh5(this.mT));this.aCq=new bt;g.P(this,this.aCq);this.GE=new nUt;k=new rs;this.ZV=new g.Wi(this,k); g.P(this,this.ZV);this.template=new AhC(this);g.P(this,this.template);this.appState=1;this.cG=P9f(this);g.P(this,k);k={};this.yN=(k.internalvideodatachange=this.nN,k.playbackready=this.skK,k.playbackstarted=this.C99,k.statechange=this.lVK,k);this.xJ=new Ba(this.ZV);this.TH=Hz5(this);k=this.Hd.B;!1!==k&&this.y7("badps",{hbp:k,hostname:window.location.hostname,ps:this.Hd.playerStyle});this.Rg=new X5g(this.Hd,this.TH);this.ZV.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||WL6(this.TH))&& tdC(this);k=10;g.G4(this.Hd)&&(k=3);BB(this.Hd)&&(k=g.jj(this.Hd.experiments,"tvhtml5_unplugged_preload_cache_size"));this.CA=new g.j5(this.ZV,k);k=Oz5(this);this.CA.zj(k);poJ(this);k={};this.Kx=(k.airplayactivechange=this.A3q,k.airplayavailabilitychange=this.jgB,k.beginseeking=this.K16,k.sabrCaptionsDataLoaded=this.y6d,k.endseeking=this.Pg9,k.internalAbandon=this.pxO,k.internalaudioformatchange=this.bce,k.internalvideodatachange=this.c6d,k.internalvideoformatchange=this.EcH,k.liveviewshift=this.trk, k.playbackstalledatstart=this.SHO,k.progresssync=this.MrO,k.onAbnormalityDetected=this.Zcd,k.onSnackbarMessage=this.TnO,k.onLoadProgress=this.W1j,k.SEEK_COMPLETE=this.zgm,k.SEEK_TO=this.qHV,k.onVideoProgress=this.Q_V,k.onLoadedMetadata=this.Oc9,k.onAutoplayBlocked=this.IPm,k.onPlaybackPauseAtStart=this.fPH,k.playbackready=this.DYd,k.statechange=this.gf,k.newelementrequired=this.q6,k.heartbeatparams=this.nBk,k.videoelementevent=this.oc6,k.drmoutputrestricted=this.GgH,k.signatureexpired=this.gc_,k.nonfatalerror= this.vBm,k.reloadplayer=this.HA_,k);this.Yd=new g.Bj(this);g.P(this,this.Yd);this.m9=new Ig;g.P(this,this.m9);this.di=this.JM=-1;this.uw=new g.FA(this.template.resize,16,this.template);g.P(this,this.uw);this.Gx=new MdC(this.ZV,this.Hd,this.Lc(),this);this.Zq=new Fx(this);g.P(this,this.Zq);this.uM=new Ww(this);g.P(this,this.uM);Xo5(this.Hd.T.c);this.events.Z(this.ZV,g.ej("appapi"),this.V6d);this.events.Z(this.ZV,g.Ft("appapi"),this.wdV);this.events.Z(this.ZV,g.ej("appprogressboundary"),this.d2B);this.events.Z(this.ZV, g.Ft("applooprange"),this.aU);this.events.Z(this.ZV,"presentingplayerstatechange",this.Pl);this.events.Z(this.ZV,"resize",this.r6K);this.template.XB(oO(document,T));this.events.Z(this.ZV,"offlineslatestatechange",this.eek);this.events.Z(this.ZV,"sabrCaptionsTrackChanged",this.ph_);this.events.Z(this.ZV,"sabrCaptionsBufferedRangesUpdated",this.ncq);this.TH.U.G().A9&&nk(this.TH,"offline");this.Hd.u9&&g.ND("ux",g.OL);T=g.jj(this.Hd.experiments,"html5_defer_fetch_att_ms");this.wF=new g.FA(this.gP9,T, this);g.P(this,this.wF);this.mF().Hk()&&(g.a1()&&this.mF().D.push("remote"),WiT(this));this.Rg.tick("fs");$bT(this);this.Hd.u9&&nk(this.TH,"ux",!0);g.Qk(this.TH.U.G())&&nk(this.TH,"embed");this.V("web_player_sentinel_is_uniplayer")||g.rB(new g.Wy("Player experiment flags missing","web_player_sentinel_is_uniplayer"));T=this.V("web_player_sentinel_yt_experiments_sync");k=g.hH("web_player_sentinel_yt_experiments_sync");T!==k&&g.rB(new g.Wy("b/195699950",{yt:T,player:k}));this.Pb=Jh6(this);if(T=g.jj(this.Hd.experiments, "html5_block_pip_safari_delay"))this.eG=new g.FA(this.t8,T,this),g.P(this,this.eG);cD=this.Hd.OG;this.ZV.publish("applicationInitialized");this.logger.debug("constructor end")}; Jh6=function(T){function Q(k){k.stack&&k.stack.indexOf("player")!==-1&&T.Pd().GA(k)} cx.subscribe("handleError",Q);em.push(Q);return function(){cx.unsubscribe("handleError",Q);var k=em.indexOf(Q);k!==-1&&em.splice(k,1)}}; Oz5=function(T){var Q=new g.mR(T.Hd,T.C9);T.ZV.publish("initialvideodatacreated",Q);return Cq(T,1,Q,!1)}; poJ=function(T){var Q=T.Lc();Q.setPlaybackRate(T.Hd.Y?1:e_t(T,Number(g.cy("yt-player-playback-rate"))||1));Q.L7(T.yN,T);Q.Ij()}; Hz5=function(T){var Q="",k=dbX(T);k.indexOf("//")===0&&(k=T.Hd.protocol+":"+k);var l=k.lastIndexOf("/base.js");l!==-1&&(Q=k.substring(0,l+1));if(k=Error().stack)if(k=k.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))k=k[1],k.includes(Q)||g.rB(Error("Player module URL mismatch: "+(k+" vs "+Q+".")));Q=new t5J(T.ZV,Q);k={};Oqy(Q,(k.destroyed=function(){T.onApiChange()},k)); return Q}; P9f=function(T){if(T.Hd.storeUserVolume){T=g.cy("yt-player-volume")||{};var Q=T.volume;T={volume:isNaN(Q)?100:g.ti(Math.floor(Q),0,100),muted:!!T.muted}}else T={volume:100,muted:T.Hd.mute};return T}; B5=function(T){T.mediaElement=T.Hd.deviceIsAudioOnly?new g.i_(g.fO("AUDIO")):pa.pop()||new g.i_(g.fO("VIDEO"));g.P(T,T.mediaElement);T.Pd().setMediaElement(T.mediaElement);try{T.Hd.t6?(T.gq&&T.events.J6(T.gq),T.gq=T.events.Z(T.mediaElement,"volumechange",T.UYB)):(T.mediaElement.r9(T.cG.muted),T.mediaElement.setVolume(T.cG.volume/100))}catch(v){T.XG("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(v&&typeof v==="object"&&"message"in v&&typeof v.message==="string"&&v.message.replace(/[;:,]/g, "_")));return}g.N5(T.Yd);FiC(T);var Q=T.template,k=T.mediaElement.xB();Q.Q4=k;Q.Nb=!1;Q.Q4.parentNode||hZ(Q.XO,Q.Q4,0);Q.Nu=new g.tZ(0,0,0,0);aay(Q);hn(Q);k=Q.Q4;g.oF(k,"video-stream");g.oF(k,g.Br.MAIN_VIDEO);var l=Q.app.G();l.E4&&k.setAttribute("data-no-fullscreen","true");l.V("html5_local_playsinline")?"playsInline"in mD()&&(k.playsInline=!0):l.xz&&(k.setAttribute("webkit-playsinline",""),k.setAttribute("playsinline",""));l.vz&&Q.Q4&&Q.Z(k,"click",k.play,k);try{T.mediaElement.activate()}catch(v){T.XG("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(v&&typeof v==="object"&&"message"in v&&typeof v.message==="string"&&v.message.replace(/[;:,]/g,"_")))}}; yh5=function(T){if(!EUX(T)){var Q=T.Lc().T_();Q&&(Q=Q.qz(),Q instanceof Promise&&Q.catch(function(){})); zt(T,rf(T.getPlayerStateObject()))}}; FiC=function(T){var Q=T.mediaElement;SI()?T.Yd.Z(Q,"webkitpresentationmodechanged",T.tVH):window.document.pictureInPictureEnabled&&(T.Yd.Z(Q,"enterpictureinpicture",function(){T.DN(!0)}),T.Yd.Z(Q,"leavepictureinpicture",function(){T.DN(!1)})); Fw&&(T.Yd.Z(Q,"webkitbeginfullscreen",function(){T.gA(3)}),T.Yd.Z(Q,"webkitendfullscreen",function(){T.gA(0)}))}; izX=function(T,Q){var k=Q.getPlayerType(),l=T.CA.L[k]||null;Q!==T.Lc()&&Q!==l&&(l==null||l.dispose(),T.CA.L[k]=Q)}; Vd5=function(T,Q){Q=Q===void 0?!0:Q;T.logger.debug("start clear presenting player");var k;if(k=T.OM){k=T.OM;var l=T.mediaElement;k=!!l&&l===k.mediaElement}k&&(T.u7(),B5(T));k=T.Pd();k.u7(!Q);k.L5(T.Kx,T);k.getPlayerType()!==1&&k.dispose();Q=T.CA;Q.S=Q.T;k7(Q);T.logger.debug("finish clear presenting player")}; g.TZC=function(T,Q,k,l){var v=T.Rg;Q===2&&(v=new X5g(T.Hd));return new g.q4(T.Hd,Q,v,T.template,function(L,q,Y){T.ZV.publish(L,q,Y)},function(){return T.ZV.getVisibilityState()},T.visibility,T,k,l)}; Cq=function(T,Q,k,l,v){T=g.TZC(T,Q,k,v);T=new g.vR(T);l&&T.Ij();return T}; XU=function(T,Q){return T.Xj(Q)?T.Lc():Q}; wk=function(T,Q){var k=T.Pd();return Q===T.Lc()&&T.Xj(Q)&&T.Xj(k)?k:Q}; kMu=function(T){T.logger.debug("start application playback");if(T.Lc().getPlayerState().isError())T.logger.debug("start application playback done, player in error state");else{var Q=dk(T);T.mF().isLoaded();Q&&T.pU(6);QeJ(T);TY5(T.TH)||jey(T)}}; jey=function(T){if(!dk(T)){var Q=xY(T.TH);Q&&!Q.created&&p5t(T.TH)&&(T.logger.debug("reload ad module"),Q.create())}}; QeJ=function(T){T.logger.debug("start presenter playback");var Q=T.getVideoData(),k=T.TH;TY5(k)||k.j$();!rx&&k.U.V("html5_allow_asmjs")&&vFu(k);nk(k,"embed");nk(k,"kids");nk(k,"remote");nk(k,"miniplayer");nk(k,"offline");nk(k,"unplugged");nk(k,"ypc",!1,!0);k.U.V("html5_ypc_clickwrap_module_refactor")||nk(k,"ypc_clickwrap",!1,!0);nk(k,"yto",!1,!0);nk(k,"webgl",!1,!0);QwJ(k)||(nk(k,"captions",!0),nk(k,"endscreen"),k.Qs(),nk(k,"creatorendscreen",!0));k.Yr();k.U.publish("modulesCreated");T.ZV.publish("videoready", Q)}; Nd=function(T){T=T.mF();T.Hk();return Mf(T)}; $bT=function(T){T.logger.debug("start prepare initial playback");T.f1();var Q=T.C9;B5(T);T.events.Z(window,"resize",T.J6d);var k=T.mF();T.ZV.Pk("onVolumeChange",T.cG);if(Q&&AnC(Q)){var l=h9(T.Hd);l&&!T.PG&&(Q.fetch=0);var v=g.Qk(T.Hd);v&&!T.PG&&(Q.fetch=0);An(T,Q);g.Qk(T.Hd)&&T.Rg.tick("ep_pr_s");if(!l||T.PG)if(v&&!T.PG)luH(T);else if(!k.Hk())T.playlist.onReady(function(){bG(T)})}T.l$(T.Lc(),!1,!0); g.J(T.Lc().getPlayerState(),128)||(Q=ccT(!T.Hd.deviceIsAudioOnly),Q==="fmt.noneavailable"?T.XG("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):Q==="html5.missingapi"?T.XG(Q,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):k&&k.Hk()&&Nd(T)&&(T.Hd.ek||T.Hd.NK)?rk(T):k.iL?T.ZV.mutedAutoplay({durationMode:k.mutedAutoplayDurationMode}):g.cy("yt-player-playback-on-reload")?(g.LM("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!T.Hd.hj}),g.ri("yt-player-playback-on-reload",!1), rk(T)):N0(T.Hd)||ooy(T),g.Cn(T.Hd)||hS(T.Hd)==="MWEB"?(g.Er(g.iu(),function(){c5(T)}),g.Er(g.iu(),function(){rxb()})):(c5(T),rxb()),T.logger.debug("finish prepare initial playback"))}; c5=function(T){if(!T.V("use_rta_for_player"))if(T.V("fetch_att_independently"))g.Ez(T.wF);else{var Q=T.getVideoData().botguardData;Q&&g.o3(Q,T.Hd,T.getVideoData().d_||"")}}; ooy=function(T){T.logger.debug("start initialize to CUED mode");T.ZV.publish("initializingmode");T.pU(2);nk(T.TH,"remote");nk(T.TH,"miniplayer");T.logger.debug("initialized to CUED mode")}; rk=function(T){T.logger.debug("start initialize application playback");var Q=T.Lc();if(g.J(Q.getPlayerState(),128))return!1;Q=Q.getVideoData();Nd(T)&&T.Hd.NK&&(pa.length&&T.Oj?(DN(T,{muted:!1,volume:T.cG.volume},!1),ag(T,!1)):pa.length||T.cG.muted||(DN(T,{muted:!0,volume:T.cG.volume},!1),ag(T,!0)));Nd(T)&&g.Qk(T.Hd)&&Q.mutedAutoplay&&(DN(T,{muted:!0,volume:T.cG.volume},!1),ag(T,!0));Q.Rq&&DN(T,{muted:!0,volume:T.cG.volume},!1);voC(T,1,Q,!1);var k=T.Lc();T.ZV.publish("initializingmode");T.l$(k);T.pU(3); var l;if(!(l=!T.Hd.BH)){if(l=T.OM){l=T.OM;var v=T.mediaElement;l=!!v&&v===l.mediaElement}l=l&&T.ij}l&&(T.u7(),B5(T),k.setMediaElement(T.mediaElement));k.Pw();if(g.J(k.getPlayerState(),128))return!1;Q.dC||zt(T,3);return T.ij=!0}; dk=function(T){T=e$(T.TH);return!!T&&T.loaded}; Lgt=function(T,Q){if(!T.VR)return!1;var k=T.VR.startTimeMs*.001-1,l=T.VR.endTimeMs*.001;T.VR.type==="repeatChapter"&&l--;return Math.abs(Q-k)<=1E-6||Math.abs(Q-l)<=1E-6||Q>=k&&Q<=l}; qbI=function(T){var Q=T.Pd();NY(Q.getVideoData())&&!Q.qG()&&(Q=uG(T)*1E3-T.getVideoData().Sq,T.V("html5_gapless_new_slr")?(T=T.uM,nq(T.app,"gaplessshortslooprange"),Q=new g.$d(0,Q,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(T=T.app.Pd())&&T.addCueRange(Q)):T.setLoopRange({startTimeMs:0,endTimeMs:Q,type:"shortsLoop"}))}; gog=function(T){var Q=T.Lc();if(!(g.J(Q.getPlayerState(),64)&&T.mF().isLivePlayback&&T.VR.startTimeMs<5E3)){if(T.VR.type==="repeatChapter"){var k,l=(k=zE5(T.Bx()))==null?void 0:k.nB(),v;k=(v=T.getVideoData())==null?void 0:v.NK;l instanceof g.Q7&&k&&(v=k[mJ(k,T.VR.startTimeMs)],l.renderChapterSeekingAnimation(0,v.title));isNaN(Number(T.VR.loopCount))?T.VR.loopCount=0:T.VR.loopCount++;T.VR.loopCount===1&&T.ZV.tj("innertubeCommand",T.getVideoData().goB)}l={I_:"application_loopRangeStart"};if(T.VR.type=== "clips"||T.VR.type==="shortsLoop")l.seekSource=58;Q.seekTo(T.VR.startTimeMs*.001,l)}}; e_t=function(T,Q){var k=T.ZV.getAvailablePlaybackRates();Q=Number(Q.toFixed(2));T=k[0];k=k[k.length-1];Q<=T?Q=T:Q>=k?Q=k:(T=Math.floor(Q*100+.001)%5,Q=T===0?Q:Math.floor((Q-T*.01)*100+.001)/100);return Q}; uG=function(T,Q){Q=T.pA({playerType:Q});if(!Q)return T.CA.T.WG();Q=XU(T,Q);return Kq(T,Q.WG(),Q)}; Kq=function(T,Q,k){if(T.Xj(k)&&(k=k.getVideoData(),!x7(T))){T=T.Gx;for(var l=g.B(T.S),v=l.next();!v.done;v=l.next())if(v=v.value,k.lC===v.lC){Q+=v.R_/1E3;break}l=Q;T=g.B(T.S);for(v=T.next();!v.done;v=T.next()){v=v.value;if(k.lC===v.lC)break;var L=v.R_/1E3;if(L1&&(v=!1);if(!T.cY||v!==Q){k=k.lock(v?"portrait":"landscape");if(k!=null)k["catch"](function(){}); T.cY=!0}}else T.cY&&(T.cY=!1,k.unlock())}; pq=function(T,Q,k){T.ZV.publish(Q,k);var l=g.G4(T.Hd)||g.q0(T.Hd)||g.uP(T.Hd);if(k&&l){switch(Q){case "cuerangemarkersupdated":var v="onCueRangeMarkersUpdated";break;case "cuerangesadded":v="onCueRangesAdded";break;case "cuerangesremoved":v="onCueRangesRemoved"}v&&T.ZV.tj(v,k.map(function(L){return{getId:function(){return this.id}, end:L.end,id:L.getId(),namespace:L.namespace==="ad"?"ad":"",start:L.start,style:L.style,visible:L.visible,markerPositionMs:L.markerPositionMs}}))}}; W5=function(T,Q,k,l,v,L){k=k===void 0?!0:k;var q=T.pA({playerType:v});if(!q||(q.getPlayerType()!==2||T.Xj(q))&&!g.iO(q.getVideoData())){var Y=T.CA.GP;Y?Y.seekTo(Q,{aj:!k,JI:l,I_:"application",seekSource:L}):(q&&q===T.Lc()&&T.VR&&!Lgt(T,Q)&&T.setLoopRange(null),T.seekTo(Q,k,l,v,L))}}; XF5=function(T,Q,k,l){k&&(T.u7(),B5(T));k=T.Pd();k.Zm(Q);var v=T.getVideoData(),L={};L.video_id=v.videoId;L.adformat=v.adFormat;v.isLivePlayback||(L.start=k.getCurrentTime(),L.resume="1");v.isLivePlayback&&Kt(v)&&g.ZX(T.Hd)&&(L.live_utc_start=k.xM(),L.resume="1");v.i9&&(L.vvt=v.i9);v.B&&(L.vss_credentials_token=v.B,L.vss_credentials_token_type=v.Yz);v.oauthToken&&(L.oauth_token=v.oauthToken);L.autoplay=1;L.reload_count=v.Gg+1;L.reload_reason=Q;v.FZ&&(L.unplugged_partner_opt_out=v.FZ);v.QE&&(L.ypc_is_premiere_trailer= v.QE);v.playerParams&&(L.player_params=v.playerParams);T.loadVideoByPlayerVars(L,void 0,!0,void 0,void 0,l);Q==="signature"&&T.SD&&jey(T)}; wFT=function(T,Q){T.mF().autonavState=Q;g.ri("yt-player-autonavstate",Q);T.ZV.publish("autonavchange",Q)}; dG5=function(T){var Q=T.getVideoData().kh,k=T.Hd.f_,l=T.isInline()&&!T.getVideoData().L9,v=T.mediaElement;Q||k||l?v.a5():(v.qZ(),DN(T,T.cG))}; P5=function(T){var Q=xY(T.Bx());Q&&Q.created&&(T.logger.debug("reset ad module"),Q.destroy())}; x7=function(T){return T.getVideoData().enableServerStitchedDai&&!!T.SD}; NZ5=function(T,Q){Q.bounds=T.getBoundingClientRect();for(var k=g.B(["display","opacity","visibility","zIndex"]),l=k.next();!l.done;l=k.next())l=l.value,Q[l]=eO(T,l);Q.hidden=!!T.hidden}; dbX=function(T){var Q=T.webPlayerContextConfig.trustedJsUrl;return Q?Ce(Q).toString():T.webPlayerContextConfig.jsUrl}; ARu=function(T,Q){var k=T.pA({playerType:1});if(k){if(k.getVideoData().clientPlaybackNonce===Q)return k;if((T=T.Zq.T)&&T.getVideoData().clientPlaybackNonce===Q)return T}return null}; tdC=function(T){function Q(l){return DQ(LwT(T.TH),function(v){return v.oa(l)})} T.Rg.tick("wasm_s");var k=CZg(T.webPlayerContextConfig.wasmModuleUrl,WL6(T.TH)?Q:void 0,T.y7.bind(T));k==null||DQ(k,function(l){T.Rg.tick(l.T?"wasm_fa":"wasm_fw")},function(){T.Rg.tick("wasm_ferr")}); VnJ(T.Hd,k)}; bKT=function(T){return T.name==="TypeError"&&T.stack.includes("/s/player/")&&PD()<=105}; rR5=function(T){return T.isTimeout?"NO_BID":"ERR_BID"}; cR5=function(){var T=null;c8X().then(function(Q){return T=Q},function(Q){return T=rR5(Q)}); return T}; DGX=function(){var T=H4(1E3,"NO_BID");return g.nL(J35([c8X(),T]).kE(rR5),function(){T.cancel()})}; $7=function(T){return T.Ah?g.Py(g.xq(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; Jn=function(T){this.player=T;this.L=this.T=1}; no6=function(T,Q,k,l,v,L){Q.client||(Q.client={});T.player.G().V("h5_remove_url_for_get_ad_break")||(Q.client.originalUrl=k);var q=vD(k),Y=g.Rq(k)?!1:!0;(q||Y)&&typeof Intl!=="undefined"&&(Q.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);Y=g.Rq(k)?!1:!0;if(q||Y||l!==""){var U={};k=TO(Y5(l)).split("&");var R=new Map;k.forEach(function(Z){Z=Z.split("=");Z.length>1&&R.set(Z[0].toString(),decodeURIComponent(Z[1].toString()))}); R.has("bid")&&(U.bid=R.get("bid"));U.params=[];auf.forEach(function(Z){R.has(Z)&&(Z={key:Z,value:R.get(Z)},U.params.push(Z))}); uFb(T,U);Q.adSignalsInfo=U}Q.client.unpluggedAppInfo||(Q.client.unpluggedAppInfo={});Q.client.unpluggedAppInfo.enableFilterMode=!1;k=v.T.cosver;k!=null&&k!=="cosver"&&(Q.client.osVersion=k);k=v.T.cplatform;k!=null&&k!=="cplatform"&&k!==""&&(Q.client.platform=k);k=v.T.cmodel;k!=null&&k!=="cmodel"&&(Q.client.deviceModel=k);k=v.T.cplayer;k!=null&&k!=="cplayer"&&(Q.client.playerType=k);k=v.T.cbrand;k!=null&&k!=="cbrand"&&(Q.client.deviceMake=k);Q.user||(Q.user={});Q.user.lockedSafetyMode=!1;(v.V("embeds_web_enable_iframe_api_send_full_embed_url")|| v.V("embeds_enable_autoplay_and_visibility_signals"))&&g.Ln(v)&&MBt(Q,L,T.player.getPlayerState(1))}; PR5=function(T,Q){var k=!1;if(Q==="")return k;Q.split(",").forEach(function(l){var v={},L={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},q="ACTIVE";l[0]==="!"&&(l=l.substring(1),q="INACTIVE");l=l.split("-");l.length<3||(l[0]in Kgy&&(L.clientName=Kgy[l[0]]),l[1]in xGC&&(L.platform=xGC[l[1]]),L.applicationState=q,L.clientVersion=l.length>2?l[2]:"",v.remoteClient=L,T.remoteContexts?T.remoteContexts.push(v):T.remoteContexts=[v],k=!0)}); return k}; tR5=function(T){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in HK5))return!1;T=T.split(RegExp("[:&]"));var Q=HK5.FLAG_AUTO_CAPTIONS_DEFAULT_ON,k="f"+(1+Math.floor(Q/31)).toString();Q=1<=2?q[1]:"";var Y=pF5.test(Q),U=Wgb.exec(Q);U=U!=null&&U.length>=2?U[1]:"";var R=$GH.exec(Q);R=R!=null&&R.length>=2&&!Number.isNaN(Number(R[1]))?Number(R[1]):1;var Z=JRH.exec(Q);Z=Z!=null&&Z.length>=2?Z[1]:"0";var f=U8(T.player.G().fz),G=T.player.getVideoData(1),m=g.Ee(G.Bd,!0),I="BISCOTTI_ID"in k?k.BISCOTTI_ID:"";no6(T,m,Q,I.toString(),T.player.G(), G);G={splay:!1,lactMilliseconds:k.LACT.toString(),playerHeightPixels:Math.trunc(k.P_H),playerWidthPixels:Math.trunc(k.P_W),vis:Math.trunc(k.VIS),signatureTimestamp:20297,autonavState:$7(T.player.G())};l&&(l={},PR5(l,k.YT_REMOTE)&&(G.mdxContext=l));if(l=ek5.includes(f)?void 0:g.uC("PREF")){for(var z=l.split(RegExp("[:&]")),w=0,r=z.length;w1&&A[1].toUpperCase()==="TRUE"){m.user.lockedSafetyMode=!0;break}}G.autoCaptionsDefaultOn= tR5(l)}Q=Fg5.exec(Q);(Q=Q!=null&&Q.length>=2?Q[1]:"")&&U&&(m.user.credentialTransferTokens=[{token:Q,scope:"VIDEO"}]);Q={contentPlaybackContext:G};q={adBlock:Math.trunc(k.AD_BLOCK),params:q,breakIndex:R,breakPositionMs:Z,clientPlaybackNonce:k.CPN,topLevelDomain:f,isProxyAdTagRequest:Y,context:m,adSignalsInfoString:TO(Y5(I.toString())),overridePlaybackContext:Q};v!==void 0&&(q.cueProcessedMs=Math.round(v).toString());U&&(q.videoId=U);k.LIVE_TARGETING_CONTEXT&&(q.liveTargetingParams=k.LIVE_TARGETING_CONTEXT); k.AD_BREAK_LENGTH&&(q.breakLengthMs=Math.trunc(k.AD_BREAK_LENGTH*1E3).toString());L&&(q.driftFromHeadMs=L.toString());q.currentMediaTimeMs=Math.round(T.player.getCurrentTime(1)*1E3);(T=T.player.getGetAdBreakContext())&&(q.getAdBreakContext=T);return q}; yRH=function(){Jn.apply(this,arguments)}; iKf=function(T,Q,k,l,v){var L=k.Bm;var q=k.qV;var Y=T.player.G().Sf,U=0;k.cueProcessedMs&&q&&!L&&(k=q.end-q.start,k>0&&(U=Math.floor(k/1E3)));var R={AD_BLOCK:v,AD_BREAK_LENGTH:L?L.bf:U,AUTONAV_STATE:$7(T.player.G()),CA_TYPE:"image",CPN:T.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:T.player.As()*1E3,LACT:Bd(),LIVE_INDEX:L?T.L++:1,LIVE_TARGETING_CONTEXT:L&&L.context?L.context:"",MIDROLL_POS:q?Math.round(q.start/1E3):0,MIDROLL_POS_MS:q?Math.round(q.start):0,VIS:T.player.getVisibilityState(), P_H:T.player.Hx().J9().height,P_W:T.player.Hx().J9().width,YT_REMOTE:Y?Y.join(","):""},Z=M2(gV);Object.keys(Z).forEach(function(f){Z[f]!=null&&(R[f.toUpperCase()]=Z[f].toString())}); l!==""&&(R.BISCOTTI_ID=l);l={};q2(Q)&&(l.sts="20297",(T=T.player.G().forcedExperiments)&&(l.forced_experiments=T));return oU(g.Ae(Q,R),l)}; VRC=function(T,Q){var k=T.player.G(),l,v=(l=T.player.getVideoData(1))==null?void 0:l.oauthToken;return g.rj(k,v).then(function(L){if(L&&Lh()){var q=lf();oR(q,L)}return g.uU(T.player.HG(q),Q,"/youtubei/v1/player/ad_break").then(function(Y){return Y})})}; TPf=function(T){this.Vq=T}; Qk5=function(T){this.U=T}; jkg=function(T){this.Vq=T}; l$f=function(T){g.x.call(this);this.T=T;this.tB=kit(this)}; kit=function(T){var Q=new cuy(T.T.yp);g.P(T,Q);T=[new TPf(T.T.Vq),new Qk5(T.T.U),new jkg(T.T.Vq),new sa(T.T.O1,T.T.c5),new CT,new X2(T.T.Fj,T.T.Js,T.T.Vq),new S6,new h6];T=g.B(T);for(var k=T.next();!k.done;k=T.next())DEy(Q,k.value);T=g.B(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(k=T.next();!k.done;k=T.next())BQ(Q,k.value,function(){}); return Q}; e5=function(T){var Q=T.l9,k=T.Qq;T=T.dc;var l=new FSb,v={mx:new bDI(Q.get(),k),Qq:k};return{A3:new zE(k,T,Q,v),context:v,QD:l}}; FU=function(T,Q,k,l,v){g.x.call(this);this.S=Q;this.UK=k;this.l9=l;this.DC=v;this.listeners=[];var L=new wi(this);g.P(this,L);L.Z(T,"internalAbandon",this.hek);this.addOnDisposeCallback(function(){g.N5(L)})}; E0=function(T){this.U=T;this.adVideoId=this.T=this.videoId=this.adCpn=this.contentCpn=null;this.N=!0;this.S=this.L=!1;this.adFormat=null;this.Y="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; ozu=function(T){T.contentCpn=null;T.adCpn=null;T.videoId=null;T.adVideoId=null;T.adFormat=null;T.Y="AD_PLACEMENT_KIND_UNKNOWN";T.actionType="unknown_type";T.L=!1;T.S=!1}; vzy=function(T,Q){T=g.B(Q);for(Q=T.next();!Q.done;Q=T.next())if((Q=Q.value.renderer)&&(Q.instreamVideoAdRenderer||Q.linearAdSequenceRenderer||Q.sandwichedLinearAdRenderer||Q.instreamSurveyAdRenderer)){dS("ad_i");g.NL({isMonetized:!0});break}}; LOf=function(T){var Q;(Q=T.U.getVideoData(1))!=null&&Q.qO&&(T.S=!1,Q={},T.T&&T.videoId&&(Q.cttAuthInfo={token:T.T,videoId:T.videoId}),At("video_to_ad",Q))}; YJ=function(T){T.S=!1;var Q={};T.T&&T.videoId&&(Q.cttAuthInfo={token:T.T,videoId:T.videoId});At("ad_to_video",Q);qKt(T)}; qKt=function(T){if(T.L)if(T.Y==="AD_PLACEMENT_KIND_START"&&T.actionType==="video_to_ad")zC("video_to_ad");else{var Q={adBreakType:tB(T.Y),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:T.videoStreamType};T.actionType==="ad_to_video"?(T.contentCpn&&(Q.targetCpn=T.contentCpn),T.videoId&&(Q.targetVideoId=T.videoId)):(T.adCpn&&(Q.targetCpn=T.adCpn),T.adVideoId&&(Q.targetVideoId=T.adVideoId));T.adFormat&&(Q.adType=T.adFormat);T.contentCpn&& (Q.clientPlaybackNonce=T.contentCpn);T.videoId&&(Q.videoId=T.videoId);T.adCpn&&(Q.adClientPlaybackNonce=T.adCpn);T.adVideoId&&(Q.adVideoId=T.adVideoId);g.NL(Q,T.actionType);T.U.G().experiments.Wd("html5_ads_csi_qoes")&&(Q=T.U.jO(T.actionType==="ad_to_video"?1:2),Q=(0,g.XY)()-1E3*Q,rS("qoes",Q,T.actionType))}}; yQ=function(T){g.x.call(this);this.U=T;this.T=new Map;this.S=new wi(this);g.P(this,this.S);this.S.Z(this.U,g.ej("ad"),this.onCueRangeEnter,this);this.S.Z(this.U,g.Ft("ad"),this.onCueRangeExit,this)}; gzu=function(T,Q,k,l,v,L,q){g.$d.call(this,Q,k,{id:T,namespace:"ad",priority:v,visible:l,associatedClipId:L,markerPositionMs:q})}; iG=function(T){this.U=T}; M95=function(T,Q){T.U.cueVideoByPlayerVars(Q,2)}; VQ=function(T){this.U=T}; Tw=function(T){this.U=T;g.jj(this.U.G().experiments,"tv_pacf_logging_sample_rate")}; YKC=function(T){return KF(T,"html5_ssap_play_cached_preroll")}; Y9=function(T,Q){Q=Q===void 0?!1:Q;return T.U.G().V("html5_ssap_force_ads_ctmp")?!0:(Q||T.U.G().J3())&&T.U.G().V("html5_ssap_pacf_qoe_ctmp")}; Qs=function(T){var Q;return(Q=T.U.getVideoData(1)==null?void 0:!1)!=null?Q:!1}; KF=function(T,Q){return T.U.G().V(Q)}; Uk6=function(T){return T.U.G().V("substitute_ad_cpn_macro_in_ssdai")}; tC=function(T){var Q,k,l;return((Q=T.U.getVideoData(1).getPlayerResponse())==null?void 0:(k=Q.playerConfig)==null?void 0:(l=k.daiConfig)==null?void 0:l.enableServerStitchedDai)||!1}; t6I=function(T){return T.U.G().V("html5_enable_vod_slar_with_notify_pacf")}; Rsy=function(T){return T.U.G().V("html5_recognize_predict_start_cue_point")}; sg=function(T){return T.U.G().experiments.Wd("enable_desktop_player_underlay")}; Z4y=function(T){return T.U.G().experiments.Wd("html5_load_empty_player_in_media_break_sub_lra")}; Tn=function(T){return T.U.G().experiments.Wd("html5_load_ads_instead_of_cue")}; QG=function(T){return T.U.G().experiments.Wd("html5_preload_ads")}; f$6=function(T){return T.U.G().experiments.Wd("should_ignore_cuepoints_during_lifa_preroll")}; Ir=function(T){return T.U.G().experiments.Wd("enable_ads_control_flow_deterministic_id_generation")}; Giu=function(T){return T.U.G().experiments.Wd("enable_desktop_discovery_video_abandon_pings")||g.s8(T.U.G())}; mkg=function(T){return T.U.G().experiments.Wd("enable_progres_commands_lr_feeds")}; Og=function(T){return T.U.G().experiments.Wd("html5_cuepoint_identifier_logging")}; FBf=function(T){T=T.U.getVideoData(1);return!!T&&T.V("html5_preload_first_vod_video_ad")&&!T.isDaiEnabled()&&!T.isLivePlayback}; I$t=function(T){return T.U.G().experiments.Wd("html5_ssdai_enable_media_end_cue_range")}; hst=function(T){switch(T){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}}; skt=function(){g.ox.call(this);var T=this;this.T={};this.addOnDisposeCallback(function(){for(var Q=g.B(Object.keys(T.T)),k=Q.next();!k.done;k=Q.next())delete T.T[k.value]})}; jD=function(){if(SKI===null){SKI=new skt;SC(Fn).S="b";var T=SC(Fn),Q=ts(T)=="h"||ts(T)=="b",k=!(vf(),!1);Q&&k&&(T.N=!0,T.B=new UsX)}return SKI}; C6f=function(T,Q,k){T.T[Q]=k}; BPX=function(T){switch(T){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}}; kF=function(T,Q,k){this.UK=T;this.U=Q;this.Qq=k;this.S=new Set;this.T=new Map;jD().subscribe("adactiveviewmeasurable",this.GM,this);jD().subscribe("adfullyviewableaudiblehalfdurationimpression",this.KH,this);jD().subscribe("adviewableimpression",this.PV,this);jD().subscribe("adaudioaudible",this.bq,this);jD().subscribe("adaudiomeasurable",this.IA,this)}; ow=function(T,Q,k){var l=k.Tm,v=k.n6,L=k.listener,q=k.JZ;k=k.yl===void 0?!1:k.yl;if(T.T.has(Q))MH("Unexpected registration of layout in LidarApi");else{if(q){if(T.S.has(q))return;T.S.add(q)}T.T.set(Q,L);Xl(vf().sH,"fmd",1);CVT(SC(Fn),l);var Y=k?Q:void 0;C6f(jD(),Q,{pm:function(){if(!v)return{};var U=T.U.getPresentingPlayerType(!0),R;return(R=T.U.getVideoData(U))!=null&&R.isAd()?{currentTime:T.UK.get().getCurrentTimeSec(U,!1,Y),duration:v,isPlaying:lI(T.UK.get(),U).isPlaying(),isVpaid:!1,isYouTube:!0, volume:T.UK.get().isMuted()?0:T.UK.get().getVolume()/100}:{}}})}}; vb=function(T,Q){T.T.has(Q)?(T.T.delete(Q),delete jD().T[Q]):MH("Unexpected unregistration of layout in LidarApi")}; zsH=function(T,Q){if(T.U.isLifaAdPlaying()){var k=T.U.IM(!0,!0);T.mU(Q,k.width*.5*1.1,k.height*.25*1.1,k.width*.5*.9,k.height*.5*.9)}}; dk5=function(T,Q,k){var l={};XYg(T,l,Q,k);wYT(l);l.LACT=L_(function(){return Bd().toString()}); l.VIS=L_(function(){return T.getVisibilityState().toString()}); l.SDKV="h.3.0";l.VOL=L_(function(){return T.isMuted()?"0":Math.round(T.getVolume()).toString()}); l.VED="";return l}; NPb=function(T,Q){var k={};if(Q||!T||!T.kind)return k;if(T.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||T.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!T.adTimeOffset||!T.adTimeOffset.offsetStartMilliseconds)return g.bA(Error("malformed AdPlacementConfig")),k;k.MIDROLL_POS=L_(c2(Math.round(aT(T.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else k.MIDROLL_POS=L_(c2("0"));return k}; L_=function(T){return{toString:function(){return T()}}}; ADI=function(T,Q,k){function l(Y,U){(U=k[U])&&(L[Y]=U)} function v(Y,U){(U=k[U])&&(L[Y]=q(U))} if(!k||g.Rs(k))return T;var L=Object.assign({},T),q=Q?encodeURIComponent:function(Y){return Y}; v("DV_VIEWABILITY","doubleVerifyViewability");v("IAS_VIEWABILITY","integralAdsViewability");v("MOAT_INIT","moatInit");v("MOAT_VIEWABILITY","moatViewability");l("GOOGLE_VIEWABILITY","googleViewability");l("VIEWABILITY","viewability");return L}; XYg=function(T,Q,k,l){Q.CPN=L_(function(){var v;(v=T.getVideoData(1))?v=v.clientPlaybackNonce:(g.rB(Error("Video data is null.")),v=null);return v}); Q.AD_MT=L_(function(){if(l!=null)var v=l;else{var L=k;T.G().V("html5_ssap_use_cpn_to_get_time")||(L=void 0);if(T.G().V("enable_h5_shorts_ad_fill_ad_mt_macro")||T.G().V("enable_desktop_discovery_pings_ad_mt_macro")||g.s8(T.G())){var q=T.getPresentingPlayerType(!0),Y;v=((Y=T.getVideoData(q))==null?0:Y.isAd())?b45(T,q,L):0}else v=b45(T,2,L)}return rDT(v)}); Q.MT=L_(function(){return rDT(T.getCurrentTime(1,!1))}); Q.P_H=L_(function(){return T.Hx().J9().height.toString()}); Q.P_W=L_(function(){return T.Hx().J9().width.toString()}); Q.PV_H=L_(function(){return T.Hx().getVideoContentRect().height.toString()}); Q.PV_W=L_(function(){return T.Hx().getVideoContentRect().width.toString()})}; rDT=function(T){return Math.round(Math.max(0,T*1E3)).toString()}; wYT=function(T){T.CONN=L_(c2("0"));T.WT=L_(function(){return Date.now().toString()})}; b45=function(T,Q,k){return k!==void 0?T.getCurrentTime(Q,!1,k):T.getCurrentTime(Q,!1)}; cDt=function(){}; DkT=function(T,Q,k,l,v){var L,q,Y,U,R,Z,f,G,m,I,z,w,r;g.a(function(A){switch(A.S){case 1:L=!!Q.scrubReferrer;q=g.Ae(Q.baseUrl,ADI(k,L,l));Y={};if(!Q.headers){A.Ym(2);break}U=T.Y();if(!U.T){R=U.getValue();A.Ym(3);break}return g.c(A,U.T,4);case 4:R=A.T;case 3:Z=R;f=g.B(Q.headers);for(G=f.next();!G.done;G=f.next())switch(m=G.value,m.headerType){case "VISITOR_ID":g.$i("VISITOR_DATA")&&(Y["X-Goog-Visitor-Id"]=g.$i("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.$i("EOM_VISITOR_DATA")&&(Y["X-Goog-EOM-Visitor-Id"]= g.$i("EOM_VISITOR_DATA"));break;case "USER_AUTH":Z&&(Y.Authorization="Bearer "+Z);break;case "PLUS_PAGE_ID":(I=T.N())&&(Y["X-Goog-PageId"]=I);break;case "AUTH_USER":z=T.T();!Z&&z&&(Y["X-Goog-AuthUser"]=z);break;case "DATASYNC_ID":if(w=void 0,(w=T.L())==null?0:w.Wd("enable_datasync_id_header_in_web_vss_pings"))r=T.S(),vD(q)&&g.$i("LOGGED_IN")&&r&&(Y["X-YouTube-DataSync-Id"]=r)}"X-Goog-EOM-Visitor-Id"in Y&&"X-Goog-Visitor-Id"in Y&&delete Y["X-Goog-Visitor-Id"];case 2:g.uM(q,void 0,L,Object.keys(Y).length!== 0?Y:void 0,"",!0,v),g.BT(A)}})}; a$J=function(T,Q,k,l,v){this.Y=T;this.N=Q;this.T=k;this.S=l;this.L=v}; u75=function(T,Q){this.T=T;this.Qq=Q}; qC=function(T,Q,k,l,v,L,q){var Y=Y===void 0?new a$J(function(){var U=T.G(),R=T.getVideoData(1);return g.rj(U,R?g.YD(R):"")},function(){return T.G().pageId},function(){return T.G().hj},function(){var U; return(U=T.G().datasyncId)!=null?U:""},function(){return T.G().experiments}):Y; this.U=T;this.S=Q;this.kB=k;this.l9=l;this.A3=v;this.Qq=L;this.QD=q;this.Y=Y;this.BP=null;this.T=new Map;this.L=new u75(Y,this.Qq)}; KOT=function(T,Q,k,l,v){var L=i1(T.S.get(),k);L?(k=mj(T,nz5(L),L,void 0,void 0,l),Q.hasOwnProperty("baseUrl")?T.Y.send(Q,k):T.L.send(Q,k,{},v)):MH("Trying to ping from an unknown layout",void 0,void 0,{layoutId:k})}; PAu=function(T,Q,k,l,v,L){l=l===void 0?[]:l;var q=i1(T.S.get(),Q);if(q){var Y=T.kB.get().Fw(Q,k),U=mj(T,nz5(q),q,v,L);l.forEach(function(R,Z){R.baseUrl&&(T.L.send(R.baseUrl,U,Y,R.attributionSrcMode),R.serializedAdPingMetadata&&T.A3.M3("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,q,new Iyt(R,Z),void 0,void 0,q.adLayoutLoggingData))})}else MH("Trying to track from an unknown layout.",void 0,void 0,{layoutId:Q, trackingType:k})}; MP=function(T,Q){T.U.sendVideoStatsEngageEvent(Q,void 0,2)}; hQ=function(T,Q){g.LM("adsClientStateChange",Q)}; xk5=function(T,Q){T.T.has(Q.v0())?MH("Trying to register an existing AdErrorInfoSupplier."):T.T.set(Q.v0(),Q)}; P6X=function(T,Q){T.T.delete(Q.v0())||MH("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; Cw=function(T,Q,k){typeof k==="string"?T.U.getVideoData(1).HW(Q,k):T.U.getVideoData(1).T9(Q,k)}; nz5=function(T){var Q=FN(T.clientMetadata,"metadata_type_ad_placement_config");T=FN(T.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:Q,F4:T}}; mj=function(T,Q,k,l,v,L){var q=k?H45(T):{},Y=k?t9g(T,k.layoutId):{},U=O4I(T),R,Z=v!=null?v:(R=Kd(T.l9.get(),2))==null?void 0:R.clientPlaybackNonce;v=void 0;if(k){var f;if((f=T.QD.T.get(k.layoutId))==null?0:f.yl)v=k.layoutId}f={};T=Object.assign({},dk5(T.U,v,l),NPb(Q.adPlacementConfig,(k==null?void 0:k.renderingContent)!==void 0),Y,q,U,(f.FINAL=L_(function(){return"1"}),f.AD_CPN=L_(function(){return Z||""}),f)); (k==null?void 0:k.renderingContent)!==void 0||(T.SLOT_POS=L_(function(){return(Q.F4||0).toString()})); k={};L=Object.assign({},T,L);T=g.B(Object.values(pYT));for(l=T.next();!l.done;l=T.next())l=l.value,q=L[l],q!=null&&q.toString()!=null&&(k[l]=q.toString());return k}; H45=function(T){var Q={},k,l=(k=T.BP)==null?void 0:k.l8/1E3;l!=null&&(Q.SURVEY_ELAPSED_MS=L_(function(){return Math.round(l*1E3).toString()})); Q.SURVEY_LOCAL_TIME_EPOCH_S=L_(function(){return Math.round(Date.now()/1E3).toString()}); return Q}; t9g=function(T,Q){T=T.T.get(Q);if(!T)return{};T=T.sL();if(!T)return{};Q={};return Q.YT_ERROR_CODE=T.Wr.toString(),Q.ERRORCODE=T.GU.toString(),Q.ERROR_MSG=T.errorMessage,Q}; O4I=function(T){var Q={},k=T.U.getVideoData(1);Q.ASR=L_(function(){var l;return(l=k==null?void 0:k.Ek)!=null?l:null}); Q.EI=L_(function(){var l;return(l=k==null?void 0:k.eventId)!=null?l:null}); return Q}; gY=function(T,Q,k){g.x.call(this);this.U=T;this.fU=Q;this.Qq=k;this.listeners=[];this.YS=null;this.t$=new Map;Q=new g.Bj(this);g.P(this,Q);Q.Z(T,"videodatachange",this.YM9);Q.Z(T,"serverstitchedvideochange",this.vce);this.Vh=Kd(this)}; Kd=function(T,Q){var k=T.U.getVideoData(Q);return k?T.pK(k,Q||T.U.getPresentingPlayerType(!0)):null}; WOu=function(T,Q,k){var l=T.pK(Q,k);T.Vh=l;T.listeners.forEach(function(v){v.Os(l)})}; $k5=function(T){switch(T){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}}; MC=function(T,Q,k){g.x.call(this);this.U=T;this.l9=Q;this.Qq=k;this.listeners=[];this.KQ=[];this.T=function(){MH("Called 'doUnlockPreroll' before it's initialized.")}; Q=new wi(this);k=new g.Bj(this);g.P(this,k);g.P(this,Q);Q.Z(T,"progresssync",this.Xhe);Q.Z(T,"presentingplayerstatechange",this.aPj);Q.Z(T,"fullscreentoggled",this.onFullscreenToggled);Q.Z(T,"onVolumeChange",this.onVolumeChange);Q.Z(T,"minimized",this.Gw);Q.Z(T,"overlayvisibilitychange",this.zk);Q.Z(T,"shortsadswipe",this.gC);Q.Z(T,"resize",this.zx);k.Z(T,g.ej("appad"),this.Hg)}; YF=function(T){Qs(T.Qq.get())||T.T()}; JDf=function(T,Q){T.KQ=T.KQ.filter(function(k){return k!==Q})}; Um=function(T,Q,k){return T.getCurrentTimeSec(Q,k)}; Rw=function(T,Q){var k;Q=(k=T.l9.get().t$.get(Q))!=null?k:null;if(Q===null)return MH("Expected ad video start time on playback timeline"),0;T=T.U.getCurrentTime(2,!0);return T0){var L=Q.end.toString();v.forEach(function(q){(q=q.config&&q.config.adPlacementConfig)&&q.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&q.adTimeOffset&&q.adTimeOffset.offsetEndMilliseconds==="-1"&&q.adTimeOffset.offsetEndMilliseconds!==L&&(q.adTimeOffset.offsetEndMilliseconds=L)}); l.map(function(q){return g.t(q,oA)}).forEach(function(q){var Y; (q=q==null?void 0:(Y=q.slotEntryTrigger)==null?void 0:Y.mediaTimeRangeTrigger)&&q.offsetEndMilliseconds==="-1"&&(q.offsetEndMilliseconds=L)})}return{yh:v, adSlots:l,Oi:!1,ssdaiAdsConfig:T.ssdaiAdsConfig}}; Iw=function(T){g.x.call(this);this.U=T;this.listeners=[];this.T=new wi(this);g.P(this,this.T);this.T.Z(this.U,"aduxclicked",this.onAdUxClicked);this.T.Z(this.U,"aduxmouseover",this.P6);this.T.Z(this.U,"aduxmouseout",this.GD);this.T.Z(this.U,"muteadaccepted",this.RHj)}; i4f=function(T,Q,k){Q=g.IQ(Q,function(l){return new $56(l,k,l.id)}); T.U.tj("onAdUxUpdate",Q)}; hY=function(T,Q){T=g.B(T.listeners);for(var k=T.next();!k.done;k=T.next())Q(k.value)}; sm=function(T,Q){this.S=T;this.L=Q===void 0?!1:Q;this.T={}}; V95=function(T,Q){var k=T.startSecs+T.bf;k=k<=0?null:k;if(k===null)return null;switch(T.event){case "start":case "continue":case "stop":break;case "predictStart":if(Q)break;return null;default:return null}Q=Math.max(T.startSecs,0);return{eh:new Cb(Q,k),hm:new M6(Q,k-Q,T.context,T.identifier,T.event,T.T)}}; T61=function(){this.T=[]}; nXI=function(T,Q,k){var l=g.OA(T.T,Q);if(l>=0)return Q;Q=-l-1;return Q>=T.T.length||T.T[Q]>k?null:T.T[Q]}; SD=function(T,Q,k){g.x.call(this);this.U=T;this.Qq=Q;this.Vq=k;this.listeners=[];this.Y=!1;this.DF=[];this.T=null;this.N=new sm(this,Rsy(Q.get()));this.L=new T61;this.S=null}; QI9=function(T,Q){T.DF.push(Q);for(var k=!1,l=g.B(T.listeners),v=l.next();!v.done;v=l.next())k=v.value.mI(Q)||k;T.Y=k;Og(T.Qq.get())&&Cw(T.Vq.get(),"onci","cpi."+Q.identifier+";cpe."+Q.event+";cps."+Q.startSecs+";cbi."+k)}; k5m=function(T,Q){hQ(T.Vq.get(),{cuepointTrigger:{event:jIJ(Q.event),cuepointId:Q.identifier,totalCueDurationMs:Q.bf*1E3,playheadTimeMs:Q.T,cueStartTimeMs:Q.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:T.U.getVideoData(1).clientPlaybackNonce}})}; jIJ=function(T){switch(T){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 Uk(T,"Unexpected cuepoint event")}}; C_=function(T){this.U=T}; Bb=function(T){this.U=T}; lHd=function(T){switch(T){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:Uk(T,"unknown transitionReason")}}; zw=function(){g.x.apply(this,arguments);this.ICB=new Map}; obW=function(T){this.U=T}; vbT=function(T,Q,k,l,v){g.x.call(this);var L=this,q=bh(function(){return new mx(L.Qq)}); g.P(this,q);var Y=bh(function(){return new h1(q,L.Qq)}); g.P(this,Y);var U=bh(function(){return new Eg}); g.P(this,U);var R=bh(function(){return new ew(T)}); g.P(this,R);var Z=bh(function(){return new sn(q,Y,L.Qq)}); g.P(this,Z);var f=bh(function(){return new Xv}); g.P(this,f);this.h6=bh(function(){return new Iw(Q)}); g.P(this,this.h6);this.er=bh(function(){return new cI(v)}); g.P(this,this.er);this.eV=bh(function(){return new E0(Q)}); g.P(this,this.eV);this.Xk=bh(function(){return new yQ(Q)}); g.P(this,this.Xk);this.UH=bh(function(){return new iG(Q)}); g.P(this,this.UH);this.yp=bh(function(){return new VQ(Q)}); g.P(this,this.yp);this.Qq=bh(function(){return new Tw(Q)}); g.P(this,this.Qq);var G=bh(function(){return new mw(l)}); g.P(this,G);var m=bh(function(){return new kd(L.Qq)}); g.P(this,m);this.Og=bh(function(){return new C_(Q)}); g.P(this,this.Og);this.Tz=bh(function(){return new uh}); g.P(this,this.Tz);this.l9=bh(function(){return new gY(Q,f,L.Qq)}); g.P(this,this.l9);var I=e5({l9:this.l9,Qq:this.Qq,dc:m}),z=I.context,w=I.QD;this.A3=I.A3;this.DC=bh(function(){return new SD(Q,L.Qq,L.Vq)}); g.P(this,this.DC);this.iC=bh(function(){return new Bb(Q)}); g.P(this,this.iC);this.UK=bh(function(){return new MC(Q,L.l9,L.Qq)}); g.P(this,this.UK);this.B1=bh(function(){return new zw}); g.P(this,this.B1);I=bh(function(){return new K1(q,Z,Y,L.Qq,m,"SLOT_TYPE_ABOVE_FEED",L.UK,L.zP,L.yy)}); g.P(this,I);this.q_=bh(function(){return new nF(L.Qq)}); this.kB=bh(function(){return new kF(L.UK,Q,L.Qq)}); g.P(this,this.kB);this.Vq=bh(function(){return new qC(Q,U,L.kB,L.l9,L.A3,L.Qq,w)}); g.P(this,this.Vq);this.yE=new $N(Wh,XX,function(A,D,K,O){return hC(Y.get(),A,D,K,O)},R,Z,Y,m,this.Qq,this.l9); g.P(this,this.yE);this.Vp=new JC(R,I,k,this.Qq,T,this.l9,this.UK,this.eV);g.P(this,this.Vp);var r=new FU(Q,this.Vp,this.UK,this.l9,this.DC);this.Ki=bh(function(){return r}); this.nH=r;this.zP=new Hh(R,Z,this.Ki,this.DC,this.UK,this.Qq,this.Vq,this.iC);g.P(this,this.zP);this.qK=new Fu(R,Z,this.Xk,this.Ki,z);g.P(this,this.qK);this.sM=new l1(this.Qq,R,Z,I,this.l9,this.qK,k,this.UH);g.P(this,this.sM);this.N1=bh(function(){return new Q1(G,Y,m,L.Qq,L.Vq,L.UK,L.iC)}); g.P(this,this.N1);this.VU=bh(function(){return new jB}); g.P(this,this.VU);this.V8=new kS(T,this.h6,this.Qq);g.P(this,this.V8);this.ag=new l8(T);g.P(this,this.ag);this.xf=new or(T);g.P(this,this.xf);this.yD=new LQ(T,this.Ki,z);g.P(this,this.yD);this.gw=new qZ(T,this.Xk,this.UK,this.l9,z);g.P(this,this.gw);this.xH=new gq(T,this.l9);g.P(this,this.xH);this.yy=new Un(T,this.DC,this.UK,this.Vq,this.Ki,this.zP);g.P(this,this.yy);this.CG=new MZ(T);g.P(this,this.CG);this.ZC=new GE(T);g.P(this,this.ZC);this.M1=new YS(T);g.P(this,this.M1);this.Vt=new fQ(T);g.P(this, this.Vt);this.ZC=new GE(T);g.P(this,this.ZC);this.UW=bh(function(){return new VN}); g.P(this,this.UW);this.z0=bh(function(){return new TE(L.UK)}); g.P(this,this.z0);this.Fe=bh(function(){return new v8T(L.h6,L.Vq,T,U,L.kB)}); g.P(this,this.Fe);this.Bg=bh(function(){return new Pk(L.sM,R,q)}); g.P(this,this.Bg);this.JW=bh(function(){return new OP(L.Qq,L.Vq,L.CG,L.kB)}); g.P(this,this.JW);this.Hc=bh(function(){return new AQ(T,L.ZC,L.CG,L.l9,L.iC,L.UK,L.B1,L.Vq,f,L.DC,L.kB,L.q_,L.UH,L.Xk,L.eV,L.yp,L.er,L.Og,L.Qq,U,z,w)}); g.P(this,this.Hc);this.PL=bh(function(){return new sx6(L.UK,L.Vq,L.er,L.Qq,L.kB,L.l9)}); g.P(this,this.PL);this.vB=bh(function(){return new LBf(L.h6,L.UK,L.Vq,U,L.kB,L.xf,L.Vt,L.er,L.Qq,k)}); g.P(this,this.vB);this.pg=bh(function(){return new LMt(L.h6,L.Vq,U)}); g.P(this,this.pg);this.Pq=new Gw(T,this.Tz,q);g.P(this,this.Pq);this.Df={g9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sM],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.zP],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.yE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Vp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qK]]),Vo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N1],["SLOT_TYPE_ABOVE_FEED",this.VU],["SLOT_TYPE_FORECASTING",this.VU], ["SLOT_TYPE_IN_PLAYER",this.VU],["SLOT_TYPE_PLAYER_BYTES",this.VU],["SLOT_TYPE_PLAYER_UNDERLAY",this.VU],["SLOT_TYPE_PLAYBACK_TRACKING",this.VU],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.VU]]),Fm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.V8],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.V8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ag],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ag],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ag],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ag],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.ag],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ag],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.ag],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.ag],["TRIGGER_TYPE_CLOSE_REQUESTED",this.xf],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yD],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.gw],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.gw],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.gw],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.gw],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.gw],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.gw],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.gw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.xH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.xH],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CG],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.yD],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.M1],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Vt],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ZC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.yy],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.yy],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.yy],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.yy],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.yy]]),y$:new Map([["SLOT_TYPE_ABOVE_FEED",this.UW], ["SLOT_TYPE_AD_BREAK_REQUEST",this.UW],["SLOT_TYPE_FORECASTING",this.UW],["SLOT_TYPE_IN_PLAYER",this.UW],["SLOT_TYPE_PLAYER_BYTES",this.z0],["SLOT_TYPE_PLAYER_UNDERLAY",this.UW],["SLOT_TYPE_PLAYBACK_TRACKING",this.UW],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.UW]]),Em:new Map([["SLOT_TYPE_ABOVE_FEED",this.Fe],["SLOT_TYPE_AD_BREAK_REQUEST",this.Bg],["SLOT_TYPE_FORECASTING",this.JW],["SLOT_TYPE_PLAYER_BYTES",this.Hc],["SLOT_TYPE_PLAYBACK_TRACKING",this.PL],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.PL],["SLOT_TYPE_IN_PLAYER",this.vB],["SLOT_TYPE_PLAYER_UNDERLAY",this.pg]])};this.listeners=[U.get()];this.jd={sM:this.sM,Js:this.Qq.get(),G9:this.er.get(),Ei:this.UK.get(),Vp:this.Vp,aH:q.get(),d$:this.Tz.get(),c5:this.V8,O1:U.get(),Fj:this.l9.get()}}; LX$=function(T,Q,k,l,v){g.x.call(this);var L=this,q=bh(function(){return new mx(L.Qq)}); g.P(this,q);var Y=bh(function(){return new h1(q,L.Qq)}); g.P(this,Y);var U=bh(function(){return new Eg}); g.P(this,U);var R=bh(function(){return new ew(T)}); g.P(this,R);var Z=bh(function(){return new sn(q,Y,L.Qq)}); g.P(this,Z);var f=bh(function(){return new Xv}); g.P(this,f);this.h6=bh(function(){return new Iw(Q)}); g.P(this,this.h6);this.er=bh(function(){return new cI(v)}); g.P(this,this.er);this.eV=bh(function(){return new E0(Q)}); g.P(this,this.eV);this.Xk=bh(function(){return new yQ(Q)}); g.P(this,this.Xk);this.UH=bh(function(){return new iG(Q)}); g.P(this,this.UH);this.yp=bh(function(){return new VQ(Q)}); g.P(this,this.yp);this.Qq=bh(function(){return new Tw(Q)}); g.P(this,this.Qq);var G=bh(function(){return new mw(l)}); g.P(this,G);var m=bh(function(){return new kd(L.Qq)}); g.P(this,m);var I=bh(function(){return new K1(q,Z,Y,L.Qq,m,null,null,L.zP,L.yy)}); g.P(this,I);this.Og=bh(function(){return new C_(Q)}); g.P(this,this.Og);this.Tz=bh(function(){return new uh}); g.P(this,this.Tz);this.l9=bh(function(){return new gY(Q,f,L.Qq)}); g.P(this,this.l9);var z=e5({l9:this.l9,Qq:this.Qq,dc:m}),w=z.context,r=z.QD;this.A3=z.A3;this.DC=bh(function(){return new SD(Q,L.Qq,L.Vq)}); this.UK=bh(function(){return new MC(Q,L.l9,L.Qq)}); g.P(this,this.UK);this.B1=bh(function(){return new zw}); g.P(this,this.B1);this.kB=bh(function(){return new kF(L.UK,Q,L.Qq)}); g.P(this,this.kB);this.Vq=bh(function(){return new qC(Q,U,L.kB,L.l9,L.A3,L.Qq,r)}); g.P(this,this.Vq);this.q_=bh(function(){return new nF(L.Qq)}); g.P(this,this.q_);this.yE=new $N(Wh,XX,function(D,K,O,E){return hC(Y.get(),D,K,O,E)},R,Z,Y,m,this.Qq,this.l9); g.P(this,this.yE);this.Vp=new JC(R,I,k,this.Qq,T,this.l9,this.UK,this.eV);g.P(this,this.Vp);var A=new FU(Q,this.Vp,this.UK,this.l9,this.DC);this.Ki=bh(function(){return A}); this.nH=A;this.zP=new Hh(R,Z,this.Ki,this.DC,this.UK,this.Qq,this.Vq);g.P(this,this.zP);this.qK=new Fu(R,Z,this.Xk,this.Ki,w);g.P(this,this.qK);this.sM=new l1(this.Qq,R,Z,I,this.l9,this.qK,k,this.UH);g.P(this,this.sM);this.N1=bh(function(){return new Q1(G,Y,m,L.Qq,L.Vq,L.UK)}); g.P(this,this.N1);this.VU=bh(function(){return new jB}); g.P(this,this.VU);this.V8=new kS(T,this.h6,this.Qq);g.P(this,this.V8);this.ag=new l8(T);g.P(this,this.ag);this.xf=new or(T);g.P(this,this.xf);this.yD=new LQ(T,this.Ki,w);g.P(this,this.yD);this.gw=new qZ(T,this.Xk,this.UK,this.l9,w);g.P(this,this.gw);this.CG=new MZ(T);g.P(this,this.CG);this.M1=new YS(T);g.P(this,this.M1);this.Vt=new fQ(T);g.P(this,this.Vt);this.iC=bh(function(){return new Bb(Q)}); g.P(this,this.iC);this.ZC=new GE(T);g.P(this,this.ZC);this.yy=new Un(T,this.DC,this.UK,this.Vq,this.Ki,this.zP);g.P(this,this.yy);this.UW=bh(function(){return new VN}); g.P(this,this.UW);this.z0=bh(function(){return new TE(L.UK)}); g.P(this,this.z0);this.Bg=bh(function(){return new Pk(L.sM,R,q)}); g.P(this,this.Bg);this.JW=bh(function(){return new OP(L.Qq,L.Vq,L.CG,L.kB)}); g.P(this,this.JW);this.vB=bh(function(){return new qHH(L.h6,L.UK,L.Vq,U,L.kB,L.xf,L.Vt,L.er,L.Qq,k)}); g.P(this,this.vB);this.Hc=bh(function(){return new bZ(T,L.ZC,L.CG,L.Vq,L.kB,L.q_,L.UH,L.l9,L.UK,L.B1,L.Xk,L.eV,L.yp,L.er,L.Og,L.Qq,L.iC,w,r)}); g.P(this,this.Hc);this.Pq=new Gw(T,this.Tz,q);g.P(this,this.Pq);this.Df={g9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sM],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.zP],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.yE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Vp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qK]]),Vo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N1],["SLOT_TYPE_FORECASTING",this.VU],["SLOT_TYPE_IN_PLAYER",this.VU], ["SLOT_TYPE_PLAYER_BYTES",this.VU]]),Fm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.V8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ag],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ag],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ag],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ag],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ag],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ag], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.ag],["TRIGGER_TYPE_CLOSE_REQUESTED",this.xf],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yD],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.gw],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.gw],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.gw],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CG],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yD],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.M1],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.Vt],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ZC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.yy],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.yy],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.yy],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.yy],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.yy]]),y$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.UW],["SLOT_TYPE_FORECASTING",this.UW],["SLOT_TYPE_IN_PLAYER",this.UW],["SLOT_TYPE_PLAYER_BYTES",this.z0]]), Em:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bg],["SLOT_TYPE_FORECASTING",this.JW],["SLOT_TYPE_IN_PLAYER",this.vB],["SLOT_TYPE_PLAYER_BYTES",this.Hc]])};this.listeners=[U.get()];this.jd={sM:this.sM,Js:this.Qq.get(),G9:this.er.get(),Ei:this.UK.get(),Vp:this.Vp,aH:q.get(),d$:this.Tz.get(),c5:this.V8,O1:U.get(),Fj:this.l9.get()}}; qtv=function(T,Q,k,l,v){g.x.call(this);var L=this,q=bh(function(){return new mx(L.Qq)}); g.P(this,q);var Y=bh(function(){return new h1(q,L.Qq)}); g.P(this,Y);var U=bh(function(){return new Eg}); g.P(this,U);var R=bh(function(){return new ew(T)}); g.P(this,R);var Z=bh(function(){return new sn(q,Y,L.Qq)}); g.P(this,Z);var f=bh(function(){return new Xv}); g.P(this,f);this.h6=bh(function(){return new Iw(Q)}); g.P(this,this.h6);this.er=bh(function(){return new cI(v)}); g.P(this,this.er);this.eV=bh(function(){return new E0(Q)}); g.P(this,this.eV);this.Xk=bh(function(){return new yQ(Q)}); g.P(this,this.Xk);this.UH=bh(function(){return new iG(Q)}); g.P(this,this.UH);this.yp=bh(function(){return new VQ(Q)}); g.P(this,this.yp);this.Qq=bh(function(){return new Tw(Q)}); g.P(this,this.Qq);var G=bh(function(){return new mw(l)}); g.P(this,G);var m=bh(function(){return new kd(L.Qq)}); g.P(this,m);var I=bh(function(){return new K1(q,Z,Y,L.Qq,m,null,null,null,null)}); g.P(this,I);this.Og=bh(function(){return new C_(Q)}); g.P(this,this.Og);this.l9=bh(function(){return new gY(Q,f,L.Qq)}); g.P(this,this.l9);var z=e5({l9:this.l9,Qq:this.Qq,dc:m}),w=z.context,r=z.QD;this.A3=z.A3;this.UK=bh(function(){return new MC(Q,L.l9,L.Qq)}); g.P(this,this.UK);this.B1=bh(function(){return new zw}); g.P(this,this.B1);this.kB=bh(function(){return new kF(L.UK,Q,L.Qq)}); g.P(this,this.kB);this.Vq=bh(function(){return new qC(Q,U,L.kB,L.l9,L.A3,L.Qq,r)}); g.P(this,this.Vq);this.q_=bh(function(){return new nF(L.Qq)}); g.P(this,this.q_);this.yE=new $N(Wh,XX,function(D,K,O,E){return hC(Y.get(),D,K,O,E)},R,Z,Y,m,this.Qq,this.l9); g.P(this,this.yE);this.Vp=new JC(R,I,k,this.Qq,T,this.l9,this.UK,this.eV);g.P(this,this.Vp);var A=new FU(Q,this.Vp,this.UK,this.l9);this.Ki=bh(function(){return A}); this.nH=A;this.qK=new Fu(R,Z,this.Xk,this.Ki,w);g.P(this,this.qK);this.sM=new l1(this.Qq,R,Z,I,this.l9,this.qK,k,this.UH);g.P(this,this.sM);this.N1=bh(function(){return new Q1(G,Y,m,L.Qq,L.Vq,L.UK)}); g.P(this,this.N1);this.VU=bh(function(){return new jB}); g.P(this,this.VU);this.V8=new kS(T,this.h6,this.Qq);g.P(this,this.V8);this.ag=new l8(T);g.P(this,this.ag);this.yD=new LQ(T,this.Ki,w);g.P(this,this.yD);this.gw=new qZ(T,this.Xk,this.UK,this.l9,w);g.P(this,this.gw);this.CG=new MZ(T);g.P(this,this.CG);this.M1=new YS(T);g.P(this,this.M1);this.iC=bh(function(){return new Bb(Q)}); g.P(this,this.iC);this.ZC=new GE(T);g.P(this,this.ZC);this.UW=bh(function(){return new VN}); g.P(this,this.UW);this.z0=bh(function(){return new TE(L.UK)}); g.P(this,this.z0);this.Bg=bh(function(){return new Pk(L.sM,R,q)}); g.P(this,this.Bg);this.JW=bh(function(){return new OP(L.Qq,L.Vq,L.CG,L.kB)}); g.P(this,this.JW);this.wf=bh(function(){return new hi6(L.h6,L.UK,L.Vq,U,k,L.Qq)}); g.P(this,this.wf);this.Hc=bh(function(){return new bZ(T,L.ZC,L.CG,L.Vq,L.kB,L.q_,L.UH,L.l9,L.UK,L.B1,L.Xk,L.eV,L.yp,L.er,L.Og,L.Qq,L.iC,w,r)}); g.P(this,this.Hc);this.Df={g9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sM],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.yE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Vp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qK]]),Vo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N1],["SLOT_TYPE_FORECASTING",this.VU],["SLOT_TYPE_IN_PLAYER",this.VU],["SLOT_TYPE_PLAYER_BYTES",this.VU]]),Fm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.V8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.ag],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ag],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ag],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ag],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ag],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ag],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yD],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.gw],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.gw],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CG],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yD],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.M1],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ZC]]),y$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.UW],["SLOT_TYPE_ABOVE_FEED",this.UW],["SLOT_TYPE_FORECASTING",this.UW],["SLOT_TYPE_IN_PLAYER",this.UW],["SLOT_TYPE_PLAYER_BYTES",this.z0]]),Em:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bg],["SLOT_TYPE_FORECASTING",this.JW],["SLOT_TYPE_IN_PLAYER", this.wf],["SLOT_TYPE_PLAYER_BYTES",this.Hc]])};this.listeners=[U.get()];this.jd={sM:this.sM,Js:this.Qq.get(),G9:this.er.get(),Ei:this.UK.get(),Vp:this.Vp,aH:q.get(),d$:null,c5:this.V8,O1:U.get(),Fj:this.l9.get()}}; gbA=function(T,Q,k,l,v){g.x.call(this);var L=this,q=bh(function(){return new mx(L.Qq)}); g.P(this,q);var Y=bh(function(){return new h1(q,L.Qq)}); g.P(this,Y);var U=bh(function(){return new Eg}); g.P(this,U);var R=bh(function(){return new ew(T)}); g.P(this,R);var Z=bh(function(){return new sn(q,Y,L.Qq)}); g.P(this,Z);var f=bh(function(){return new Xv}); g.P(this,f);this.eR=bh(function(){return new obW(Q)}); g.P(this,this.eR);this.h6=bh(function(){return new Iw(Q)}); g.P(this,this.h6);this.er=bh(function(){return new cI(v)}); g.P(this,this.er);this.eV=bh(function(){return new E0(Q)}); g.P(this,this.eV);this.Xk=bh(function(){return new yQ(Q)}); g.P(this,this.Xk);this.UH=bh(function(){return new iG(Q)}); g.P(this,this.UH);this.yp=bh(function(){return new VQ(Q)}); g.P(this,this.yp);this.Qq=bh(function(){return new Tw(Q)}); g.P(this,this.Qq);var G=bh(function(){return new mw(l)}); g.P(this,G);var m=bh(function(){return new kd(L.Qq)}); g.P(this,m);var I=bh(function(){return new K1(q,Z,Y,L.Qq,m,null,null,null,null)}); g.P(this,I);this.Og=bh(function(){return new C_(Q)}); g.P(this,this.Og);this.l9=bh(function(){return new gY(Q,f,L.Qq)}); g.P(this,this.l9);var z=e5({l9:this.l9,Qq:this.Qq,dc:m}),w=z.context,r=z.QD;this.A3=z.A3;this.UK=bh(function(){return new MC(Q,L.l9,L.Qq)}); g.P(this,this.UK);this.B1=bh(function(){return new zw}); g.P(this,this.B1);this.kB=bh(function(){return new kF(L.UK,Q,L.Qq)}); g.P(this,this.kB);this.Vq=bh(function(){return new qC(Q,U,L.kB,L.l9,L.A3,L.Qq,r)}); g.P(this,this.Vq);this.q_=bh(function(){return new nF(L.Qq)}); g.P(this,this.q_);this.yE=new $N($9C,XX,function(D,K,O,E){return fiy(Y.get(),D,K,O,E)},R,Z,Y,m,this.Qq,this.l9); g.P(this,this.yE);this.Vp=new JC(R,I,k,this.Qq,T,this.l9,this.UK,this.eV);g.P(this,this.Vp);var A=new FU(Q,this.Vp,this.UK,this.l9);this.Ki=bh(function(){return A}); this.nH=A;this.qK=new Fu(R,Z,this.Xk,this.Ki,w);g.P(this,this.qK);this.sM=new l1(this.Qq,R,Z,I,this.l9,this.qK,k,this.UH);g.P(this,this.sM);this.N1=bh(function(){return new Q1(G,Y,m,L.Qq,L.Vq,L.UK)}); g.P(this,this.N1);this.VU=bh(function(){return new jB}); g.P(this,this.VU);this.V8=new kS(T,this.h6,this.Qq);g.P(this,this.V8);this.ag=new l8(T);g.P(this,this.ag);this.yD=new LQ(T,this.Ki,w);g.P(this,this.yD);this.gw=new qZ(T,this.Xk,this.UK,this.l9,w);g.P(this,this.gw);this.CG=new MZ(T);g.P(this,this.CG);this.M1=new YS(T);g.P(this,this.M1);this.iC=bh(function(){return new Bb(Q)}); g.P(this,this.iC);this.ZC=new GE(T);g.P(this,this.ZC);this.UW=bh(function(){return new VN}); g.P(this,this.UW);this.z0=bh(function(){return new TE(L.UK)}); g.P(this,this.z0);this.Bg=bh(function(){return new Pk(L.sM,R,q)}); g.P(this,this.Bg);this.JW=bh(function(){return new OP(L.Qq,L.Vq,L.CG,L.kB)}); g.P(this,this.JW);this.Hc=bh(function(){return new bZ(T,L.ZC,L.CG,L.Vq,L.kB,L.q_,L.UH,L.l9,L.UK,L.B1,L.Xk,L.eV,L.yp,L.er,L.Og,L.Qq,L.iC,w,r)}); g.P(this,this.Hc);this.hB=bh(function(){return new MKC(L.h6,L.UK,L.Vq,U,L.eR,k,L.l9)}); g.P(this,this.hB);this.Df={g9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sM],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.yE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Vp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qK]]),Vo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N1],["SLOT_TYPE_FORECASTING",this.VU],["SLOT_TYPE_IN_PLAYER",this.VU],["SLOT_TYPE_PLAYER_BYTES",this.VU]]),Fm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.V8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.ag],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ag],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ag],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ag],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ag],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ag],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yD],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.gw],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.gw],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CG],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yD],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.M1],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ZC]]),y$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.UW],["SLOT_TYPE_FORECASTING",this.UW],["SLOT_TYPE_IN_PLAYER",this.UW],["SLOT_TYPE_PLAYER_BYTES",this.z0]]),Em:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bg],["SLOT_TYPE_FORECASTING",this.JW],["SLOT_TYPE_IN_PLAYER",this.hB],["SLOT_TYPE_PLAYER_BYTES", this.Hc]])};this.listeners=[U.get()];this.jd={sM:this.sM,Js:this.Qq.get(),G9:this.er.get(),Ei:this.UK.get(),Vp:this.Vp,aH:q.get(),d$:null,c5:this.V8,O1:U.get(),Fj:this.l9.get()}}; Mfp=function(T,Q,k,l,v){g.x.call(this);var L=this,q=bh(function(){return new mx(L.Qq)}); g.P(this,q);var Y=bh(function(){return new h1(q,L.Qq)}); g.P(this,Y);var U=bh(function(){return new Eg}); g.P(this,U);var R=bh(function(){return new ew(T)}); g.P(this,R);var Z=bh(function(){return new sn(q,Y,L.Qq)}); g.P(this,Z);var f=bh(function(){return new Xv}); g.P(this,f);this.eR=bh(function(){return new obW(Q)}); g.P(this,this.eR);this.h6=bh(function(){return new Iw(Q)}); g.P(this,this.h6);this.er=bh(function(){return new cI(v)}); g.P(this,this.er);this.eV=bh(function(){return new E0(Q)}); g.P(this,this.eV);this.Xk=bh(function(){return new yQ(Q)}); g.P(this,this.Xk);this.UH=bh(function(){return new iG(Q)}); g.P(this,this.UH);this.yp=bh(function(){return new VQ(Q)}); g.P(this,this.yp);this.Qq=bh(function(){return new Tw(Q)}); g.P(this,this.Qq);var G=bh(function(){return new mw(l)}); g.P(this,G);var m=bh(function(){return new kd(L.Qq)}); g.P(this,m);this.Og=bh(function(){return new C_(Q)}); g.P(this,this.Og);this.l9=bh(function(){return new gY(Q,f,L.Qq)}); g.P(this,this.l9);var I=e5({l9:this.l9,Qq:this.Qq,dc:m}),z=I.context,w=I.QD;this.A3=I.A3;this.DC=bh(function(){return new SD(Q,L.Qq,L.Vq)}); g.P(this,this.DC);this.iC=bh(function(){return new Bb(Q)}); g.P(this,this.iC);this.UK=bh(function(){return new MC(Q,L.l9,L.Qq)}); g.P(this,this.UK);this.B1=bh(function(){return new zw}); g.P(this,this.B1);I=bh(function(){return new K1(q,Z,Y,L.Qq,m,null,L.UK,L.zP,L.yy,3)}); g.P(this,I);this.q_=bh(function(){return new nF(L.Qq)}); this.kB=bh(function(){return new kF(L.UK,Q,L.Qq)}); g.P(this,this.kB);this.Vq=bh(function(){return new qC(Q,U,L.kB,L.l9,L.A3,L.Qq,w)}); g.P(this,this.Vq);this.Vp=new JC(R,I,k,this.Qq,T,this.l9,this.UK,this.eV);g.P(this,this.Vp);var r=new FU(Q,this.Vp,this.UK,this.l9,this.DC);this.Ki=bh(function(){return r}); this.nH=r;this.yE=new $N(J66,XX,function(A,D,K,O){return fiy(Y.get(),A,D,K,O)},R,Z,Y,m,this.Qq,this.l9); g.P(this,this.yE);this.zP=new Hh(R,Z,this.Ki,this.DC,this.UK,this.Qq,this.Vq,this.iC);g.P(this,this.zP);this.qK=new Fu(R,Z,this.Xk,this.Ki,z);g.P(this,this.qK);this.sM=new l1(this.Qq,R,Z,I,this.l9,this.qK,k,this.UH);g.P(this,this.sM);this.N1=bh(function(){return new Q1(G,Y,m,L.Qq,L.Vq,L.UK,L.iC)}); g.P(this,this.N1);this.VU=bh(function(){return new jB}); g.P(this,this.VU);this.V8=new kS(T,this.h6,this.Qq);g.P(this,this.V8);this.ag=new l8(T);g.P(this,this.ag);this.yD=new LQ(T,this.Ki,z);g.P(this,this.yD);this.gw=new qZ(T,this.Xk,this.UK,this.l9,z);g.P(this,this.gw);this.xH=new gq(T,this.l9);g.P(this,this.xH);this.yy=new Un(T,this.DC,this.UK,this.Vq,this.Ki,this.zP);g.P(this,this.yy);this.CG=new MZ(T);g.P(this,this.CG);this.M1=new YS(T);g.P(this,this.M1);this.ZC=new GE(T);g.P(this,this.ZC);this.UW=bh(function(){return new VN}); g.P(this,this.UW);this.z0=bh(function(){return new TE(L.UK)}); g.P(this,this.z0);this.Bg=bh(function(){return new Pk(L.sM,R,q)}); g.P(this,this.Bg);this.JW=bh(function(){return new OP(L.Qq,L.Vq,L.CG,L.kB)}); g.P(this,this.JW);this.Hc=bh(function(){return new AQ(T,L.ZC,L.CG,L.l9,L.iC,L.UK,L.B1,L.Vq,f,L.DC,L.kB,L.q_,L.UH,L.Xk,L.eV,L.yp,L.er,L.Og,L.Qq,U,z,w)}); g.P(this,this.Hc);this.vB=bh(function(){return new YHJ(L.h6,L.UK,L.Vq,U,L.eR,k,L.Qq,L.l9)}); g.P(this,this.vB);this.Df={g9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sM],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.zP],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.yE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Vp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qK]]),Vo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N1],["SLOT_TYPE_FORECASTING",this.VU],["SLOT_TYPE_IN_PLAYER",this.VU],["SLOT_TYPE_PLAYER_BYTES",this.VU]]),Fm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.V8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ag],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ag],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ag],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ag],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ag],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ag],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ag],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yD],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.gw],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.gw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.xH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.xH],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CG],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yD],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.M1],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ZC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.yy],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.yy],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.yy],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.yy],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.yy]]),y$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.UW],["SLOT_TYPE_FORECASTING",this.UW],["SLOT_TYPE_IN_PLAYER",this.UW],["SLOT_TYPE_PLAYER_BYTES",this.z0]]),Em:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bg],["SLOT_TYPE_FORECASTING",this.JW],["SLOT_TYPE_PLAYER_BYTES",this.Hc],["SLOT_TYPE_IN_PLAYER",this.vB]])};this.listeners=[U.get()]; this.jd={sM:this.sM,Js:this.Qq.get(),G9:this.er.get(),Ei:this.UK.get(),Vp:this.Vp,aH:q.get(),d$:null,c5:this.V8,O1:U.get(),Fj:this.l9.get()}}; UJp=function(T,Q,k,l){function v(){return L.S} g.x.call(this);var L=this;T.G().experiments.Wd("html5_dispose_of_manager_before_dependency")?(this.T=Yt$(v,T,Q,k,l),this.S=(new r2(this.T)).L(),g.P(this,this.S),g.P(this,this.T)):(this.T=Yt$(v,T,Q,k,l),g.P(this,this.T),this.S=(new r2(this.T)).L(),g.P(this,this.S))}; wY=function(T){return T.T.jd}; Yt$=function(T,Q,k,l,v){try{var L=Q.G();if(g.Cn(L))var q=new vbT(T,Q,k,l,v);else if(g.XT(L))q=new LX$(T,Q,k,l,v);else if(Ze(L))q=new qtv(T,Q,k,l,v);else if(g.uP(L))q=new gbA(T,Q,k,l,v);else if(g.q0(L))q=new Mfp(T,Q,k,l,v);else throw new TypeError("Unknown web interface");return q}catch(Y){return q=Q.G(),MH("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:q.T.cplatform,interface:q.T.c,pfk:q.T.cver,nuV:q.T.ctheme,P6e:q.T.cplayer,rYd:q.playerStyle}),new Ez5(T,Q,k,l,v)}}; RuW=function(T){OC.call(this,T)}; Z5_=function(T,Q,k,l,v){y6.call(this,T,{X:"div",J:"ytp-ad-timed-pie-countdown-container",W:[{X:"svg",J:"ytp-ad-timed-pie-countdown",K:{viewBox:"0 0 20 20"},W:[{X:"circle",J:"ytp-ad-timed-pie-countdown-background",K:{r:"10",cx:"10",cy:"10"}},{X:"circle",J:"ytp-ad-timed-pie-countdown-inner",K:{r:"5",cx:"10",cy:"10"}},{X:"circle",J:"ytp-ad-timed-pie-countdown-outer",K:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",Q,k,l,v);this.Y=this.L_("ytp-ad-timed-pie-countdown-container");this.L=this.L_("ytp-ad-timed-pie-countdown-inner"); this.B=this.L_("ytp-ad-timed-pie-countdown-outer");this.S=Math.ceil(2*Math.PI*5);this.hide()}; fHv=function(T,Q,k,l,v,L){Y8.call(this,T,{X:"div",J:"ytp-ad-action-interstitial",K:{tabindex:"0"},W:[{X:"div",J:"ytp-ad-action-interstitial-background-container"},{X:"div",J:"ytp-ad-action-interstitial-slot",W:[{X:"div",J:"ytp-ad-action-interstitial-instream-info"},{X:"div",J:"ytp-ad-action-interstitial-card",W:[{X:"div",J:"ytp-ad-action-interstitial-image-container"},{X:"div",J:"ytp-ad-action-interstitial-headline-container"},{X:"div",J:"ytp-ad-action-interstitial-description-container"},{X:"div", J:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",Q,k,l);this.Hv=v;this.kq=L;this.navigationEndpoint=this.T=this.skipButton=this.S=this.actionButton=null;this.sK=this.L_("ytp-ad-action-interstitial-instream-info");this.Bd=this.L_("ytp-ad-action-interstitial-image-container");this.D=new x8(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,"ytp-ad-action-interstitial-image");g.P(this,this.D);this.D.XB(this.Bd);this.i9=this.L_("ytp-ad-action-interstitial-headline-container"); this.B=new Fc(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,"ytp-ad-action-interstitial-headline");g.P(this,this.B);this.B.XB(this.i9);this.qO=this.L_("ytp-ad-action-interstitial-description-container");this.L=new Fc(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,"ytp-ad-action-interstitial-description");g.P(this,this.L);this.L.XB(this.qO);this.f_=this.L_("ytp-ad-action-interstitial-background-container");this.Jj=new x8(this.api,this.layoutId,this.interactionLoggingClientData, this.G9,"ytp-ad-action-interstitial-background",!0);g.P(this,this.Jj);this.Jj.XB(this.f_);this.K_=this.L_("ytp-ad-action-interstitial-action-button-container");this.slot=this.L_("ytp-ad-action-interstitial-slot");this.fG=this.L_("ytp-ad-action-interstitial-card");this.Y=new wi;g.P(this,this.Y);this.hide()}; G5d=function(T){var Q=g.gK("html5-video-player");Q&&g.gl(Q,"ytp-ad-display-override",T)}; sIe=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-ad-overlay-slot",W:[{X:"div",J:"ytp-ad-overlay-container"}]},"invideo-overlay",Q,k,l);this.D=[];this.f_=this.i9=this.Y=this.K_=this.sK=null;this.Jj=!1;this.B=null;this.qO=0;T=this.L_("ytp-ad-overlay-container");this.Bd=new oY(T,45E3,6E3,.3,.4);g.P(this,this.Bd);this.L=mJv(this);g.P(this,this.L);this.L.XB(T);this.S=IHT(this);g.P(this,this.S);this.S.XB(T);this.T=huA(this);g.P(this,this.T);this.T.XB(T);this.hide()}; mJv=function(T){var Q=new g.M1({X:"div",J:"ytp-ad-text-overlay",W:[{X:"div",J:"ytp-ad-overlay-ad-info-button-container"},{X:"div",J:"ytp-ad-overlay-close-container",W:[{X:"button",J:"ytp-ad-overlay-close-button",W:[bD(Ste)]}]},{X:"div",J:"ytp-ad-overlay-title",S6:"{{title}}"},{X:"div",J:"ytp-ad-overlay-desc",S6:"{{description}}"},{X:"div",Rk:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],S6:"{{displayUrl}}"}]});T.Z(Q.L_("ytp-ad-overlay-title"),"click",function(k){dY(T,Q.element,k)}); T.Z(Q.L_("ytp-ad-overlay-link"),"click",function(k){dY(T,Q.element,k)}); T.Z(Q.L_("ytp-ad-overlay-close-container"),"click",T.Dv);Q.hide();return Q}; IHT=function(T){var Q=new g.M1({X:"div",Rk:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],W:[{X:"div",J:"ytp-ad-overlay-ad-info-button-container"},{X:"div",J:"ytp-ad-overlay-close-container",W:[{X:"button",J:"ytp-ad-overlay-close-button",W:[bD(Ste)]}]},{X:"div",J:"ytp-ad-overlay-text-image",W:[{X:"img",K:{src:"{{imageUrl}}"}}]},{X:"div",J:"ytp-ad-overlay-title",S6:"{{title}}"},{X:"div",J:"ytp-ad-overlay-desc",S6:"{{description}}"},{X:"div",Rk:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], S6:"{{displayUrl}}"}]});T.Z(Q.L_("ytp-ad-overlay-title"),"click",function(k){dY(T,Q.element,k)}); T.Z(Q.L_("ytp-ad-overlay-link"),"click",function(k){dY(T,Q.element,k)}); T.Z(Q.L_("ytp-ad-overlay-close-container"),"click",T.Dv);T.Z(Q.L_("ytp-ad-overlay-text-image"),"click",T.chj);Q.hide();return Q}; huA=function(T){var Q=new g.M1({X:"div",J:"ytp-ad-image-overlay",W:[{X:"div",J:"ytp-ad-overlay-ad-info-button-container"},{X:"div",J:"ytp-ad-overlay-close-container",W:[{X:"button",J:"ytp-ad-overlay-close-button",W:[bD(Ste)]}]},{X:"div",J:"ytp-ad-overlay-image",W:[{X:"img",K:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});T.Z(Q.L_("ytp-ad-overlay-image"),"click",function(k){dY(T,Q.element,k)}); T.Z(Q.L_("ytp-ad-overlay-close-container"),"click",T.Dv);Q.hide();return Q}; Cym=function(T,Q){if(Q){var k=g.t(Q,TT)||null;k==null?g.bA(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(Q=g.gK("video-ads ytp-ad-module")||null,Q==null?g.bA(Error("Could not locate the root ads container element to attach the ad info dialog.")):(T.i9=new g.M1({X:"div",J:"ytp-ad-overlay-ad-info-dialog-container"}),g.P(T,T.i9),T.i9.XB(Q),Q=new ex(T.api,T.layoutId,T.interactionLoggingClientData,T.G9,T.i9.element,!1),g.P(T,Q),Q.init(k8("ad-info-hover-text-button"),k,T.macros), T.B?(Q.XB(T.B,0),Q.subscribe("f",T.Xdm,T),Q.subscribe("e",T.FA,T),T.Z(T.B,"click",T.UOj),T.Z(g.gK("ytp-ad-button",Q.element),"click",function(){var l;if(g.t((l=g.t(k.button,g.jw))==null?void 0:l.serviceEndpoint,jp5))T.Jj=T.api.getPlayerState(1)===2,T.api.pauseVideo();else T.api.onAdUxClicked("ad-info-hover-text-button",T.layoutId)}),T.f_=Q):g.bA(Error("Ad info button container within overlay ad was not present."))))}else g.rB(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; zuW=function(T,Q){if(B6d(T,NC)||T.api.isMinimized())return!1;var k=UC(Q.title),l=UC(Q.description);if(g.bB(k)||g.bB(l))return!1;T.createServerVe(T.L.element,Q.trackingParams||null);T.L.updateValue("title",UC(Q.title));T.L.updateValue("description",UC(Q.description));T.L.updateValue("displayUrl",UC(Q.displayUrl));Q.navigationEndpoint&&g.cm(T.D,Q.navigationEndpoint);T.L.show();T.Bd.start();T.logVisibility(T.L.element,!0);T.Z(T.L.element,"mouseover",function(){T.qO++}); return!0}; XTE=function(T,Q){if(B6d(T,NC)||T.api.isMinimized())return!1;var k=UC(Q.title),l=UC(Q.description);if(g.bB(k)||g.bB(l))return!1;T.createServerVe(T.S.element,Q.trackingParams||null);T.S.updateValue("title",UC(Q.title));T.S.updateValue("description",UC(Q.description));T.S.updateValue("displayUrl",UC(Q.displayUrl));T.S.updateValue("imageUrl",U5T(Q.image));Q.navigationEndpoint&&g.cm(T.D,Q.navigationEndpoint);T.K_=Q.imageNavigationEndpoint||null;T.S.show();T.Bd.start();T.logVisibility(T.S.element,!0); T.Z(T.S.element,"mouseover",function(){T.qO++}); return!0}; wTW=function(T,Q){if(T.api.isMinimized())return!1;var k=RYt(Q.image),l=k;k.width0?(Q=new DV(T.api,T.T), Q.XB(T.playerOverlay),g.P(T,Q)):(T=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(Q)),g.bA(T))}}else g.bA(Error("addCommonComponents() needs to be called before starting countdown."))}; KXm=function(T){function Q(k){return{toString:function(){return k()}}} T.macros.SURVEY_LOCAL_TIME_EPOCH_S=Q(function(){var k=new Date;return(Math.round(k.valueOf()/1E3)+-1*k.getTimezoneOffset()*60).toString()}); T.macros.SURVEY_ELAPSED_MS=Q(function(){return(Date.now()-T.L).toString()})}; xJv=function(T,Q,k,l,v){cb.call(this,T,Q,k,l,"survey-question-multi-select");this.qO=v;this.noneOfTheAbove=null;this.submitEndpoints=[];this.B=null;this.hide()}; Py_=function(T,Q,k){T.noneOfTheAbove=new c5m(T.api,T.layoutId,T.interactionLoggingClientData,T.G9);T.noneOfTheAbove.XB(T.answers);T.noneOfTheAbove.init(k8("survey-none-of-the-above"),Q,k)}; tfp=function(T){T.S.forEach(function(Q){Q.T.toggleButton(!1)}); H5W(T,!0)}; H5W=function(T,Q){var k=T.Y;T=O5W(T);Q=Q===void 0?!1:Q;k.T&&(T?k.T.hide():k.T.show(),Q&&k.T instanceof GZ&&!k.T.Y&&YY6(k.T,!1));k.S&&(T?k.S.show():k.S.hide())}; O5W=function(T){return T.S.some(function(Q){return Q.T.isToggled()})||T.noneOfTheAbove.button.isToggled()}; Dp=function(T,Q,k,l,v){cb.call(this,T,Q,k,l,"survey-question-single-select",function(q){L.api.G().V("supports_multi_step_on_desktop")&&v([q])}); var L=this;this.hide()}; aw=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-ad-survey",W:[{X:"div",J:"ytp-ad-survey-questions"}]},"survey",Q,k,l);this.questions=[];this.S=[];this.conditioningRules=[];this.T=0;this.B=this.L_("ytp-ad-survey-questions");this.api.G().V("fix_survey_color_contrast_on_destop")&&this.L_("ytp-ad-survey").classList.add("color-contrast-fix");this.api.G().V("web_enable_speedmaster")&&this.L_("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; $JT=function(T,Q){var k=T.S[Q],l;(l=T.L)==null||l.dispose();g.t(k,iQ)?pTd(T,g.t(k,iQ),T.macros):g.t(k,yM)&&WXd(T,g.t(k,yM),T.macros);T.T=Q}; pTd=function(T,Q,k){var l=new Dp(T.api,T.layoutId,T.interactionLoggingClientData,T.G9,T.Y.bind(T));l.XB(T.B);l.init(k8("survey-question-single-select"),Q,k);T.api.G().V("supports_multi_step_on_desktop")?T.L=l:T.questions.push(l);g.P(T,l)}; WXd=function(T,Q,k){var l=new xJv(T.api,T.layoutId,T.interactionLoggingClientData,T.G9,T.Y.bind(T));l.XB(T.B);l.init(k8("survey-question-multi-select"),Q,k);T.api.G().V("supports_multi_step_on_desktop")?T.L=l:T.questions.push(l);g.P(T,l)}; uI=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-ad-survey-interstitial",W:[{X:"div",J:"ytp-ad-survey-interstitial-contents",W:[{X:"div",J:"ytp-ad-survey-interstitial-logo",W:[{X:"div",J:"ytp-ad-survey-interstitial-logo-image"}]},{X:"div",J:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",Q,k,l);this.T=this.actionButton=null;this.interstitial=this.L_("ytp-ad-survey-interstitial");this.S=this.L_("ytp-ad-survey-interstitial-contents");this.text=this.L_("ytp-ad-survey-interstitial-text"); this.logoImage=this.L_("ytp-ad-survey-interstitial-logo-image");this.transition=new g.TZ(this,500,!1,300);g.P(this,this.transition)}; J5v=function(T,Q){Q=Q&&KD(Q)||"";if(g.bB(Q))g.rB(Error("Found ThumbnailDetails without valid image URL"));else{var k=T.style;T=T.style.cssText;var l=document.implementation.createHTMLDocument("").createElement("DIV");l.style.cssText=T;T=HSI(l.style);k.cssText=[T,'background-image:url("'+Q+'");'].join("")}}; euE=function(T){var Q=g.gK("html5-video-player");Q&&g.gl(Q,"ytp-ad-display-override",T)}; n_=function(T,Q,k,l,v,L){L=L===void 0?0:L;y6.call(this,T,{X:"div",J:"ytp-preview-ad",W:[{X:"div",J:"ytp-preview-ad__text"}]},"preview-ad",Q,k,l,v);var q=this;this.qO=L;this.S=0;this.Y=-1;this.L=this.L_("ytp-preview-ad__text");switch(this.qO){case 1:this.L.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.TZ(this,400,!1,100,function(){q.hide()}); g.P(this,this.transition);this.hide()}; K_=function(T,Q,k,l){Y8.call(this,T,{X:"img",J:"ytp-ad-avatar"},"ad-avatar",Q,k,l);this.hide()}; FXE=function(T){switch(T.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}}; xF=function(T,Q,k,l,v,L){v=v===void 0?!1:v;L=L===void 0?!1:L;Y8.call(this,T,{X:"button",J:"ytp-ad-button-vm"},"ad-button",Q,k,l);this.buttonText=this.buttonIcon=null;this.hide();this.T=v;this.S=L}; EbE=function(T,Q,k,l,v){y6.call(this,T,{X:"div",Rk:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],W:[{X:"div",J:"ytp-ad-avatar-lockup-card__avatar_and_text_container",W:[{X:"div",J:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",Q,k,l,v);this.startMilliseconds=0;this.adAvatar=new K_(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,this.adAvatar);hZ(this.element,this.adAvatar.element,0);this.headline=new d3(this.api,this.layoutId, this.interactionLoggingClientData,this.G9);g.P(this,this.headline);this.headline.XB(this.L_("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new d3(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,this.description);this.description.XB(this.L_("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new xF(this.api, this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,this.adButton);this.adButton.XB(this.element);this.hide()}; Pb=function(T,Q,k,l){Y8.call(this,T,{X:"button",J:"ytp-skip-ad-button",W:[{X:"div",J:"ytp-skip-ad-button__text"}]},"skip-button",Q,k,l);var v=this;this.S=!1;this.Y=this.L_("ytp-skip-ad-button__text");this.transition=new g.TZ(this,500,!1,100,function(){v.hide()}); g.P(this,this.transition);this.T=new oY(this.element,15E3,5E3,.5,.5,!0);g.P(this,this.T);this.hide()}; y5W=function(T,Q,k,l,v){y6.call(this,T,{X:"div",J:"ytp-skip-ad"},"skip-ad",Q,k,l,v);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.L=new Pb(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,this.L);this.L.XB(this.element);this.hide()}; Hb=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-visit-advertiser-link"},"visit-advertiser-link",Q,k,l);this.hide()}; tY=function(T,Q,k,l,v){Y8.call(this,T,{X:"div",J:"ytp-ad-player-overlay-layout",W:[{X:"div",J:"ytp-ad-player-overlay-layout__player-card-container"},{X:"div",J:"ytp-ad-player-overlay-layout__ad-info-container"},{X:"div",J:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{X:"div",J:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",Q,k,l);this.S=v;this.i9=this.L_("ytp-ad-player-overlay-layout__player-card-container");this.T=this.L_("ytp-ad-player-overlay-layout__ad-info-container"); this.D=this.L_("ytp-ad-player-overlay-layout__skip-or-preview-container");this.qO=this.L_("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; i5d=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-ad-grid-card-text",W:[{X:"div",J:"ytp-ad-grid-card-text__metadata",W:[{X:"div",J:"ytp-ad-grid-card-text__metadata__headline"},{X:"div",J:"ytp-ad-grid-card-text__metadata__description",W:[{X:"div",J:"ytp-ad-grid-card-text__metadata__description__line"},{X:"div",J:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{X:"div",J:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",Q,k,l);this.headline=new d3(this.api,this.layoutId,this.interactionLoggingClientData, this.G9);g.P(this,this.headline);this.headline.XB(this.L_("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new xF(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,!0);g.P(this,this.moreInfoButton);this.moreInfoButton.XB(this.L_("ytp-ad-grid-card-text__button"))}; Om=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",Q,k,l);this.T=[]}; p_=function(T,Q,k,l,v,L,q){y6.call(this,T,L,q,Q,k,l,v);this.playerProgressOffsetMs=0;this.S=!1}; VfT=function(T){var Q=g.gK("html5-video-player");Q&&g.gl(Q,"ytp-ad-display-override",T)}; T$v=function(T,Q,k,l,v){p_.call(this,T,Q,k,l,v,{X:"div",J:"ytp-display-underlay-text-grid-cards",W:[{X:"div",J:"ytp-display-underlay-text-grid-cards__content_container",W:[{X:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header",W:[{X:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{X:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{X:"div",J:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {X:"div",J:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Om(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,this.adGridCardCollection);this.adGridCardCollection.XB(this.L_("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new xF(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,this.adButton);this.adButton.XB(this.L_("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.L=this.L_("ytp-display-underlay-text-grid-cards__content_container");this.Y=this.L_("ytp-display-underlay-text-grid-cards__content_container__header")}; Wb=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-ad-details-line"},"ad-details-line",Q,k,l);this.T=[];this.hide()}; $F=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-image-background",W:[{X:"img",J:"ytp-image-background-image"}]},"image-background",Q,k,l);this.hide()}; Q_1=function(T,Q,k,l,v){y6.call(this,T,{X:"svg",J:"ytp-timed-pie-countdown",K:{viewBox:"0 0 20 20"},W:[{X:"circle",J:"ytp-timed-pie-countdown__background",K:{r:"10",cx:"10",cy:"10"}},{X:"circle",J:"ytp-timed-pie-countdown__inner",K:{r:"5",cx:"10",cy:"10"}},{X:"circle",J:"ytp-timed-pie-countdown__outer",K:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",Q,k,l,v);this.L=this.L_("ytp-timed-pie-countdown__inner");this.S=Math.ceil(2*Math.PI*5);this.hide()}; JY=function(T,Q,k,l){Y8.call(this,T,{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout",K:{tabindex:"0"},W:[{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content",W:[{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",W:[{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",Q,k,l);this.S=null;this.Y=this.L_("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.L=new wi;g.P(this,this.L);this.hide()}; j_A=function(T){var Q=g.gK("html5-video-player");Q&&g.gl(Q,"ytp-ad-display-override",T)}; kve=function(T){if(!T.adAvatar||!g.t(T.adAvatar,eD))return g.bA(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!T.headline)return g.bA(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!T.adBadge||!g.t(T.adBadge,FX))return g.bA(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!T.adButton||!g.t(T.adButton,Em))return g.bA(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!T.adInfoRenderer|| !g.t(T.adInfoRenderer,TT))return g.bA(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;T=T.durationMilliseconds||0;return typeof T!=="number"||T<=0?(g.bA(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+T)),!1):!0}; ys=function(T,Q){Q=Q===void 0?2:Q;g.ox.call(this);this.api=T;this.T=null;this.Qp=new wi(this);g.P(this,this.Qp);this.S=UhC;this.Qp.Z(this.api,"presentingplayerstatechange",this.WD);this.T=this.Qp.Z(this.api,"progresssync",this.bC);this.Lv=Q;this.Lv===1&&this.bC()}; iI=function(T,Q,k){OC.call(this,T);this.api=T;this.G9=Q;this.components={};T=new g.p({X:"div",Rk:["video-ads","ytp-ad-module"]});g.P(this,T);ic&&g.oF(T.element,"ytp-ads-tiny-mode");this.Y=new ZZ(T.element);g.P(this,this.Y);g.TQ(this.api,T.element,4);sg(k)&&(k=new g.p({X:"div",Rk:["ytp-ad-underlay"]}),g.P(this,k),this.S=new ZZ(k.element),g.P(this,this.S),g.TQ(this.api,k.element,0));g.P(this,HYy())}; l1E=function(T,Q){T=g.ZW(T.components,Q.id,null);T==null&&g.rB(Error("Component not found for element id: "+Q.id));return T||null}; oET=function(T){g.A4.call(this,T);var Q=this;this.S=null;this.created=!1;this.L=T.G().V("h5_use_refactored_get_ad_break")?new yRH(this.player):new Jn(this.player);this.Y=function(){if(Q.S!=null)return Q.S;var l=new l$f({c5:wY(Q.T).c5,Fj:wY(Q.T).Fj,U:Q.player,Js:wY(Q.T).Js,Vq:Q.T.T.Vq,O1:wY(Q.T).O1,yp:Q.T.T.yp});Q.S=l.tB;return Q.S}; this.T=new UJp(this.player,this,this.L,this.Y);g.P(this,this.T);var k=T.G();!fF(k)||g.q0(k)||Ze(k)||(g.P(this,new iI(T,wY(this.T).G9,wY(this.T).Js)),g.P(this,new RuW(T)))}; vEd=function(T){T.created!==T.loaded&&MH("Created and loaded are out of sync")}; gEA=function(T){g.A4.prototype.load.call(T);var Q=wY(T.T).Js;try{T.player.getRootNode().classList.add("ad-created")}catch(U){MH(U instanceof Error?U:String(U))}var k=T.player.getVideoData(1),l=k&&k.videoId||"",v=k&&k.getPlayerResponse()||{},L=(v&&v.adPlacements||[]).map(function(U){return U.adPlacementRenderer}),q=((v==null?void 0:v.adSlots)||[]).map(function(U){return g.t(U,oA)}); v=v.playerConfig&&v.playerConfig.daiConfig&&v.playerConfig.daiConfig.enableDai||!1;k&&k.Cc();L=L9W(L,q,Q,wY(T.T).aH);q=k&&k.clientPlaybackNonce||"";k=k&&k.LX||!1;if(Y9(Q,!0)&&k){var Y;Q={};(Y=T.player.getVideoData())==null||Y.T9("p_cpb",(Q.cc=q,Q))}Y=1E3*T.player.getDuration(1);qAW(T);T.T.T.nH.yw(q,Y,k,L.ET,L.xD,L.ET,v,l)}; qAW=function(T){var Q,k;if(k=(Q=T.player.getVideoData(1))==null||!Q.LX)Q=T.player.G(),k=fF(Q)&&!g.ZX(Q)&&Q.playerStyle==="desktop-polymer";k&&(T=T.player.getInternalApi(),T.addEventListener("updateKevlarOrC3Companion",CnJ),T.addEventListener("updateEngagementPanelAction",BmC),T.addEventListener("changeEngagementPanelVisibility",zp5),window.addEventListener("yt-navigate-start",wef))}; Vs=function(T,Q){Q===T.gS&&(T.gS=void 0)}; MAe=function(T){var Q=wY(T.T).Vp,k=Q.Y().gR("SLOT_TYPE_PLAYER_BYTES",1);Q=Kd(Q.l9.get(),1).clientPlaybackNonce;var l=!1;k=g.B(k);for(var v=k.next();!v.done;v=k.next()){v=v.value;var L=v.slotType==="SLOT_TYPE_PLAYER_BYTES"&&v.slotEntryTrigger instanceof WE?v.slotEntryTrigger.hk:void 0;L&&L===Q&&(l&&MH("More than 1 preroll playerBytes slot detected",v),l=!0)}l||YF(wY(T.T).Ei)}; YA1=function(T){if(Qs(wY(T.T).Js))return!0;var Q="";T=g.B(wY(T.T).O1.sF.keys());for(var k=T.next();!k.done;k=T.next()){k=k.value;if(k.slotType==="SLOT_TYPE_PLAYER_BYTES"&&k.Ik==="core")return!0;Q+=k.slotType+" "}Math.random()<.01&&MH("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:Q});return!1}; Upm=function(T){T=g.B(wY(T.T).O1.sF.values());for(var Q=T.next();!Q.done;Q=T.next())if(Q.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; $LI=function(T,Q,k,l,v,L,q){k=k===void 0?[]:k;l=l===void 0?"":l;v=v===void 0?"":v;var Y=wY(T.T).Js,U=T.player.getVideoData(1);U&&U.getPlayerResponse();U&&U.Cc();k=L9W(Q,k,Y,wY(T.T).aH);ytg(wY(T.T).sM,l,k.ET,k.xD,Q,v,L,q)}; L9W=function(T,Q,k,l){Q={ET:[],xD:Q};T=g.B(T);for(var v=T.next();!v.done;v=T.next())if((v=v.value)&&v.renderer!=null){var L=v.renderer;if(!k.U.G().V("html5_enable_vod_lasr_with_notify_pacf")){var q=void 0,Y=void 0,U=void 0,R=void 0,Z=l;g.t((R=L.sandwichedLinearAdRenderer)==null?void 0:R.adVideoStart,n1)?(q=g.t((U=L.sandwichedLinearAdRenderer)==null?void 0:U.adVideoStart,n1),q=Y9X(q,Z),g.n9(L.sandwichedLinearAdRenderer.adVideoStart,n1,q)):g.t((Y=L.linearAdSequenceRenderer)==null?void 0:Y.adStart,n1)&& (U=g.t((q=L.linearAdSequenceRenderer)==null?void 0:q.adStart,n1),q=Y9X(U,Z),g.n9(L.linearAdSequenceRenderer.adStart,n1,q))}Q.ET.push(v)}return Q}; g.T2=function(T){if(typeof DOMParser!="undefined")return da(new DOMParser,u_5(T),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.Qo=function(T){g.x.call(this);this.callback=T;this.T=new s7(0,0,.4,0,.2,1,1,1);this.delay=new g.ee(this.next,window,this);g.P(this,this.delay)}; g.Red=function(T){var Q=T.G();return Q.Hn&&!Q.L&&g.Qk(Q)?T.isEmbedsShortsMode()?(T=T.IM(),Math.min(T.width,T.height)>=315):!T.tb():!1}; g.jU=function(T){g.p.call(this,{X:"div",J:"ytp-more-videos-view",K:{tabIndex:"-1"}});var Q=this;this.api=T;this.S=!0;this.L=new g.Bj(this);this.T=[];this.suggestionData=[];this.columns=this.containerWidth=this.j=this.Y=this.scrollPosition=0;this.title=new g.p({X:"h2",J:"ytp-related-title",S6:"{{title}}"});this.previous=new g.p({X:"button",Rk:["ytp-button","ytp-previous"],K:{"aria-label":"Mostrar videos sugeridos anteriores"},W:[g.GI()]});this.C=new g.Qo(function(k){Q.suggestions.element.scrollLeft= -k}); this.next=new g.p({X:"button",Rk:["ytp-button","ytp-next"],K:{"aria-label":"Mostrar m\u00e1s videos sugeridos"},W:[g.mM()]});g.P(this,this.L);this.B=T.G().Y;g.P(this,this.title);this.title.XB(this.element);this.suggestions=new g.p({X:"div",J:"ytp-suggestions"});g.P(this,this.suggestions);this.suggestions.XB(this.element);g.P(this,this.previous);this.previous.XB(this.element);this.previous.listen("click",this.vD,this);g.P(this,this.C);ZW9(this);g.P(this,this.next);this.next.XB(this.element);this.next.listen("click", this.OB,this);this.L.Z(this.api,"appresize",this.zx);this.L.Z(this.api,"fullscreentoggled",this.pH);this.L.Z(this.api,"videodatachange",this.onVideoDataChange);this.zx(this.api.Hx().getPlayerSize());this.onVideoDataChange()}; ZW9=function(T){for(var Q={hN:0};Q.hN<16;Q={hN:Q.hN},++Q.hN){var k=new g.p({X:"a",J:"ytp-suggestion-link",K:{href:"{{link}}",target:T.api.G().D,"aria-label":"{{aria_label}}"},W:[{X:"div",J:"ytp-suggestion-image"},{X:"div",J:"ytp-suggestion-overlay",K:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},W:[{X:"div",J:"ytp-suggestion-title",S6:"{{title}}"},{X:"div",J:"ytp-suggestion-author",S6:"{{author_and_views}}"},{X:"div",K:{"data-is-live":"{{is_live}}"},J:"ytp-suggestion-duration", S6:"{{duration}}"}]}]});g.P(T,k);var l=k.L_("ytp-suggestion-link");g.W2(l,"transitionDelay",Q.hN/20+"s");T.L.Z(l,"click",function(v){return function(L){var q=v.hN;if(T.S){var Y=T.suggestionData[q],U=Y.sessionData;T.B&&T.api.V("web_player_log_click_before_generating_ve_conversion_params")?(T.api.logClick(T.T[q].element),q=Y.fB(),Y={},g.EU(T.api,Y),q=g.sD(q,Y),g.dh(q,T.api,L)):g.wh(L,T.api,T.B,U||void 0)&&T.api.mG(Y.videoId,U,Y.playlistId)}else L.preventDefault(),document.activeElement.blur()}}(Q)); k.XB(T.suggestions.element);T.T.push(k);T.api.createServerVe(k.element,k)}}; f19=function(T){if(T.api.G().V("web_player_log_click_before_generating_ve_conversion_params"))for(var Q=Math.floor(-T.scrollPosition/(T.Y+8)),k=Math.min(Q+T.columns,T.suggestionData.length)-1;Q<=k;Q++)T.api.logVisibility(T.T[Q].element,!0)}; g.kv=function(T){var Q=T.api.jj()?32:16;Q=T.j/2+Q;T.next.element.style.bottom=Q+"px";T.previous.element.style.bottom=Q+"px";Q=T.scrollPosition;var k=T.containerWidth-T.suggestionData.length*(T.Y+8);g.gl(T.element,"ytp-scroll-min",Q>=0);g.gl(T.element,"ytp-scroll-max",Q<=k)}; mpJ=function(T){for(var Q=T.suggestionData.length,k=0;k>>0)+"_",v=0;return Q}); Yb("Symbol.iterator",function(T){if(T)return T;T=Symbol("Symbol.iterator");for(var Q="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),k=0;k0&&k>0;)if(l[--k]!=Q[--v])return!1;return v<=0}}); Yb("Array.prototype.find",function(T){return T?T:function(Q,k){return UJJ(this,Q,k).Kr}}); Yb("Array.prototype.entries",function(T){return T?T:function(){return WT(this,function(Q,k){return[Q,k]})}}); Yb("Array.prototype.keys",function(T){return T?T:function(){return WT(this,function(Q){return Q})}}); Yb("String.prototype.startsWith",function(T){return T?T:function(Q,k){var l=Ot(this,Q,"startsWith");Q+="";var v=l.length,L=Q.length;k=Math.max(0,Math.min(k|0,l.length));for(var q=0;q=L}}); Yb("Number.isFinite",function(T){return T?T:function(Q){return typeof Q!=="number"?!1:!isNaN(Q)&&Q!==Infinity&&Q!==-Infinity}}); Yb("String.prototype.repeat",function(T){return T?T:function(Q){var k=Ot(this,null,"repeat");if(Q<0||Q>1342177279)throw new RangeError("Invalid count value");Q|=0;for(var l="";Q;)if(Q&1&&(l+=k),Q>>>=1)k+=k;return l}}); Yb("Object.entries",function(T){return T?T:function(Q){var k=[],l;for(l in Q)mX(Q,l)&&k.push([l,Q[l]]);return k}}); Yb("Array.from",function(T){return T?T:function(Q,k,l){k=k!=null?k:function(Y){return Y}; var v=[],L=typeof Symbol!="undefined"&&Symbol.iterator&&Q[Symbol.iterator];if(typeof L=="function"){Q=L.call(Q);for(var q=0;!(L=Q.next()).done;)v.push(k.call(l,L.value,q++))}else for(L=Q.length,q=0;q>>0;if(Q===0)return 32;var k=0;(Q&4294901760)===0&&(Q<<=16,k+=16);(Q&4278190080)===0&&(Q<<=8,k+=8);(Q&4026531840)===0&&(Q<<=4,k+=4);(Q&3221225472)===0&&(Q<<=2,k+=2);(Q&2147483648)===0&&k++;return k}}); Yb("Number.isNaN",function(T){return T?T:function(Q){return typeof Q==="number"&&isNaN(Q)}}); Yb("Array.prototype.values",function(T){return T?T:function(){return WT(this,function(Q,k){return k})}}); Yb("Array.prototype.fill",function(T){return T?T:function(Q,k,l){var v=this.length||0;k<0&&(k=Math.max(0,v+k));if(l==null||l>v)l=v;l=Number(l);l<0&&(l=Math.max(0,v+l));for(k=Number(k||0);k0&&k?k.repeat(Math.ceil(Q/k.length)).substring(0,Q):"")+l}}); Yb("Array.prototype.findIndex",function(T){return T?T:function(Q,k){return UJJ(this,Q,k).Ej}}); Yb("Promise.prototype.finally",function(T){return T?T:function(Q){return this.then(function(k){return Promise.resolve(Q()).then(function(){return k})},function(k){return Promise.resolve(Q()).then(function(){throw k; })})}}); Yb("Math.imul",function(T){return T?T:function(Q,k){Q=Number(Q);k=Number(k);var l=Q&65535,v=k&65535;return l*v+((Q>>>16&65535)*v+l*(k>>>16&65535)<<16>>>0)|0}}); Yb("Math.sign",function(T){return T?T:function(Q){Q=Number(Q);return Q===0||isNaN(Q)?Q:Q>0?1:-1}}); Yb("WeakSet",function(T){function Q(k){this.T=new WeakMap;if(k){k=g.B(k);for(var l;!(l=k.next()).done;)this.add(l.value)}} if(function(){if(!T||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),v=new T([k]);if(!v.has(k)||v.has(l))return!1;v.delete(k);v.add(l);return!v.has(k)&&v.has(l)}catch(L){return!1}}())return T; Q.prototype.add=function(k){this.T.set(k,!0);return this}; Q.prototype.has=function(k){return this.T.has(k)}; Q.prototype.delete=function(k){return this.T.delete(k)}; return Q}); Yb("AggregateError",function(T){function Q(k,l){l=Error(l);"stack"in l&&(this.stack=l.stack);this.errors=k;this.message=l.message} if(T)return T;g.S(Q,Error);Q.prototype.name="AggregateError";return Q}); Yb("Array.prototype.copyWithin",function(T){function Q(k){k=Number(k);return k===Infinity||k===-Infinity?k:k|0} return T?T:function(k,l,v){var L=this.length;k=Q(k);l=Q(l);v=v===void 0?L:Q(v);k=k<0?Math.max(L+k,0):Math.min(k,L);l=l<0?Math.max(L+l,0):Math.min(l,L);v=v<0?Math.max(L+v,0):Math.min(v,L);if(kl;)--v in this?this[--k]=this[v]:delete this[--k];return this}}); Yb("Int8Array.prototype.copyWithin",J5);Yb("Uint8Array.prototype.copyWithin",J5);Yb("Uint8ClampedArray.prototype.copyWithin",J5);Yb("Int16Array.prototype.copyWithin",J5);Yb("Uint16Array.prototype.copyWithin",J5);Yb("Int32Array.prototype.copyWithin",J5);Yb("Uint32Array.prototype.copyWithin",J5);Yb("Float32Array.prototype.copyWithin",J5);Yb("Float64Array.prototype.copyWithin",J5);Yb("Array.prototype.at",function(T){return T?T:Fg}); Yb("Int8Array.prototype.at",yC);Yb("Uint8Array.prototype.at",yC);Yb("Uint8ClampedArray.prototype.at",yC);Yb("Int16Array.prototype.at",yC);Yb("Uint16Array.prototype.at",yC);Yb("Int32Array.prototype.at",yC);Yb("Uint32Array.prototype.at",yC);Yb("Float32Array.prototype.at",yC);Yb("Float64Array.prototype.at",yC);Yb("String.prototype.at",function(T){return T?T:Fg}); Yb("Array.prototype.findLastIndex",function(T){return T?T:function(Q,k){return Ru5(this,Q,k).Ej}}); Yb("Int8Array.prototype.findLastIndex",iy);Yb("Uint8Array.prototype.findLastIndex",iy);Yb("Uint8ClampedArray.prototype.findLastIndex",iy);Yb("Int16Array.prototype.findLastIndex",iy);Yb("Uint16Array.prototype.findLastIndex",iy);Yb("Int32Array.prototype.findLastIndex",iy);Yb("Uint32Array.prototype.findLastIndex",iy);Yb("Float32Array.prototype.findLastIndex",iy);Yb("Float64Array.prototype.findLastIndex",iy);Yb("Number.parseInt",function(T){return T||parseInt});var F_,LW,fH5;F_=F_||{};g.VC=this||self;LW="closure_uid_"+(Math.random()*1E9>>>0);fH5=0;g.fW(Gv,Error);Gv.prototype.name="CustomError";var rTC;var CyT,so,$4;CyT=Array.prototype.indexOf?function(T,Q){return Array.prototype.indexOf.call(T,Q,void 0)}:function(T,Q){if(typeof T==="string")return typeof Q!=="string"||Q.length!=1?-1:T.indexOf(Q,0); for(var k=0;k=0;k--)if(k in T&&T[k]===Q)return k;return-1}; g.EA=Array.prototype.forEach?function(T,Q,k){Array.prototype.forEach.call(T,Q,k)}:function(T,Q,k){for(var l=T.length,v=typeof T==="string"?T.split(""):T,L=0;L=.3:this.Pn>=.5};var NM={MZV:0,Kx6:1},AZT={NONE:0,Vfj:1,WxB:2};var nby="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");hV.prototype.getValue=function(){return this.S}; g.S(si,hV);si.prototype.L=function(T){this.S===null&&g.YZ(this.Y,T)&&(this.S=T)}; g.S(SP,hV);SP.prototype.L=function(T){this.S===null&&typeof T==="number"&&(this.S=T)}; g.S(CJ,hV);CJ.prototype.L=function(T){this.S===null&&typeof T==="string"&&(this.S=T)};Bg.prototype.disable=function(){this.S=!1}; Bg.prototype.enable=function(){this.S=!0}; Bg.prototype.isEnabled=function(){return this.S}; Bg.prototype.reset=function(){this.T={};this.S=!0;this.L={}};var el=document,rK=window;var XmW=lW(1,!0),xZ=lW(610401301,!1);lW(899588437,!1);var wm$=lW(772657768,!1),dpJ=lW(513659523,!1),N$A=lW(568333945,!1),oGt=lW(1331761403,!1);lW(651175828,!1);lW(722764542,!1);lW(748402145,!1);lW(748402146,!1);var Sk5=lW(748402147,!1);lW(333098724,!1);lW(2147483644,!1);lW(2147483645,!1);lW(2147483646,XmW);lW(2147483647,!0);var Pg=!!g.jA("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var as=String.prototype.trim?function(T){return T.trim()}:function(T){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(T)[1]},L9y=/&/g,qA5=//g,MAu=/"/g,YAH=/'/g,UpT=/\x00/g,vEg=/[\x00&<>"']/;var Oi,ATm=g.VC.navigator;Oi=ATm?ATm.userAgentData||null:null;var FXb=globalThis.trustedTypes,y2;V2.prototype.toString=function(){return this.T+""};kP.prototype.toString=function(){return this.T}; var i5g=new kP("about:invalid#zClosurez");var I36=vX("tel"),G2H=vX("sms"),y55=[vX("data"),vX("http"),vX("https"),vX("mailto"),vX("ftp"),new oT(function(T){return/^[^:]*([/?#]|$)/.test(T)})],Vf5=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;RT.prototype.toString=function(){return this.T+""};IT.prototype.toString=function(){return this.T+""};BX.prototype.toString=function(){return this.T};var Xs={};g.bWm=String.prototype.repeat?function(T,Q){return T.repeat(Q)}:function(T,Q){return Array(Q+1).join(T)};PX[" "]=function(){};var $1,Gz,BZg,rTJ,cTE,Dpv,ya,ic,a1A;g.Va=JV();g.RF=O55();g.$n=Wg("Edge");g.wj=g.$n||g.RF;$1=Wg("Gecko")&&!(DW(g.KJ(),"WebKit")&&!Wg("Edge"))&&!(Wg("Trident")||Wg("MSIE"))&&!Wg("Edge");g.Y1=DW(g.KJ(),"WebKit")&&!Wg("Edge");Gz=xP();BZg=I15();g.iC=mpC();rTJ=nl();cTE=Wg("iPad");Dpv=Wg("iPod");ya=Kl();ic=DW(g.KJ(),"KaiOS"); a:{var udm="",nEA=function(){var T=g.KJ();if($1)return/rv:([^\);]+)(\)|;)/.exec(T);if(g.$n)return/Edge\/([\d\.]+)/.exec(T);if(g.RF)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(T);if(g.Y1)return/WebKit\/(\S+)/.exec(T);if(g.Va)return/(?:Version)[ \/]?(\S+)/.exec(T)}(); nEA&&(udm=nEA?nEA[1]:"");if(g.RF){var ls,K9$=g.VC.document;ls=K9$?K9$.documentMode:void 0;if(ls!=null&&ls>parseFloat(udm)){a1A=String(ls);break a}}a1A=udm}var CW5=a1A,s_b={};var Fw,EG;g.Rn=eP();Fw=nl()||Wg("iPod");EG=Wg("iPad");g.TW=WXg();g.hW=Fl();g.mp=Ei()&&!Kl();var DrT=!g.RF&&!Ei();g.h=g.WX.prototype;g.h.clone=function(){return new g.WX(this.x,this.y)}; g.h.equals=function(T){return T instanceof g.WX&&$P(this,T)}; g.h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.h.scale=function(T,Q){this.x*=T;this.y*=typeof Q==="number"?Q:T;return this};g.h=g.Ji.prototype;g.h.clone=function(){return new g.Ji(this.width,this.height)}; g.h.aspectRatio=function(){return this.width/this.height}; g.h.isEmpty=function(){return!Fs(this)}; g.h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.h.scale=function(T,Q){this.width*=T;this.height*=typeof Q==="number"?Q:T;return this};yw.prototype.toString=function(){return this.T}; var Ek={};new yw(Ek,"");var Xm5=/^[a-z][a-z\d-]*$/i,wm6="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),N$t="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),bWT=["action","formaction","href"];var cTb={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.h=T8.prototype;g.h.xB=function(T){return oO(this.T,T)}; g.h.getElementsByTagName=function(T,Q){return(Q||this.T).getElementsByTagName(String(T))}; g.h.L_=function(T){return g.gK(T,this.T)}; g.h.setProperties=MX;g.h.createElement=function(T){return RO(this.T,T)}; g.h.appendChild=g.mm;g.h.append=function(T,Q){nEt(Qf(T),T,arguments,1)}; g.h.canHaveChildren=function(T){if(T.nodeType!=1)return!1;switch(T.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.h.removeNode=g.s$;g.h.getChildren=function(T){return T.children!=void 0?T.children:Array.prototype.filter.call(T.childNodes,function(Q){return Q.nodeType==1})}; g.h.contains=g.SO;NX.prototype.now=function(){return 0}; NX.prototype.S=function(){return 0}; NX.prototype.L=function(){return 0}; NX.prototype.T=function(){return 0};g.S(b5,NX);b5.prototype.now=function(){return AZ()&&rK.performance.now?rK.performance.now():NX.prototype.now.call(this)}; b5.prototype.S=function(){return AZ()&&rK.performance.memory?rK.performance.memory.totalJSHeapSize||0:NX.prototype.S.call(this)}; b5.prototype.L=function(){return AZ()&&rK.performance.memory?rK.performance.memory.usedJSHeapSize||0:NX.prototype.L.call(this)}; b5.prototype.T=function(){return AZ()&&rK.performance.memory?rK.performance.memory.jsHeapSizeLimit||0:NX.prototype.T.call(this)};var r3T=function(){if(!g.VC.addEventListener||!Object.defineProperty)return!1;var T=!1,Q=Object.defineProperty({},"passive",{get:function(){T=!0}}); try{var k=function(){}; g.VC.addEventListener("test",k,Q);g.VC.removeEventListener("test",k,Q)}catch(l){}return T}();var PII=HW5("AnimationEnd"),cR=HW5("TransitionEnd");g.h=KO.prototype;g.h.getHeight=function(){return this.bottom-this.top}; g.h.clone=function(){return new KO(this.top,this.right,this.bottom,this.left)}; g.h.contains=function(T){return this&&T?T instanceof KO?T.left>=this.left&&T.right<=this.right&&T.top>=this.top&&T.bottom<=this.bottom:T.x>=this.left&&T.x<=this.right&&T.y>=this.top&&T.y<=this.bottom:!1}; g.h.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.h.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.h.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.h.scale=function(T,Q){Q=typeof Q==="number"?Q:T;this.left*=T;this.right*=T;this.top*=Q;this.bottom*=Q;return this};g.h=g.tZ.prototype;g.h.clone=function(){return new g.tZ(this.left,this.top,this.width,this.height)}; g.h.contains=function(T){return T instanceof g.WX?T.x>=this.left&&T.x<=this.left+this.width&&T.y>=this.top&&T.y<=this.top+this.height:this.left<=T.left&&this.left+this.width>=T.left+T.width&&this.top<=T.top&&this.top+this.height>=T.top+T.height}; g.h.getSize=function(){return new g.Ji(this.width,this.height)}; g.h.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.h.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.h.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.h.scale=function(T,Q){Q=typeof Q==="number"?Q:T;this.left*=T;this.width*=T;this.top*=Q;this.height*=Q;return this};var OW5={};var F9f=aO(function(){var T=!1;try{var Q=Object.defineProperty({},"passive",{get:function(){T=!0}}); g.VC.addEventListener("test",null,Q)}catch(k){}return T});EET.prototype.isVisible=function(){return vu(el)===1};var pgI=L8(function(T){return typeof T==="number"}),VP=L8(function(T){return typeof T==="string"}),WyC=L8(function(T){return typeof T==="boolean"}),NZ=L8(function(T){return T!=null&&typeof T==="object"&&typeof T.then==="function"}),Xzg=L8(function(T){return typeof T==="function"}),xpA=L8(function(T){return!!T&&(typeof T==="object"||typeof T==="function")});var iWX={Zdd:"allow-forms",Ax6:"allow-modals",jnd:"allow-orientation-lock",bdq:"allow-pointer-lock",If6:"allow-popups",Kt9:"allow-popups-to-escape-sandbox",Gw6:"allow-presentation",Pl9:"allow-same-origin",nod:"allow-scripts",pTB:"allow-top-navigation",uG9:"allow-top-navigation-by-user-activation"},jsT=aO(function(){return VAX()});var vZu=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Z9.prototype.IK=function(T,Q,k){T=T+"//"+Q+k;var l=MPt(this)-k.length;if(l<0)return"";this.T.sort(function(R,Z){return R-Z}); k=null;Q="";for(var v=0;v=U.length){l-=U.length;T+=U;Q=this.L;break}k=k==null?L:k}}l="";k!=null&&(l=""+Q+"trn="+k);return T+l};C8.prototype.setInterval=function(T,Q){return rK.setInterval(T,Q)}; C8.prototype.clearInterval=function(T){rK.clearInterval(T)}; C8.prototype.setTimeout=function(T,Q){return rK.setTimeout(T,Q)}; C8.prototype.clearTimeout=function(T){rK.clearTimeout(T)};var ZU=void 0,Ry,WIu=typeof TextDecoder!=="undefined",Sig,ssI=typeof String.prototype.isWellFormed==="function",hW5=typeof TextEncoder!=="undefined";var wgu={},bS=null,dM5=$1||g.Y1||typeof g.VC.btoa=="function";var Ky6=typeof Uint8Array!=="undefined",cV6=!g.RF&&typeof btoa==="function",DM6=/[-_.]/g,bJC={"-":"+",_:"/",".":"="},cu={};rJ.prototype.isEmpty=function(){return this.T==null}; rJ.prototype.sizeBytes=function(){var T=aQ(this);return T?T.length:0}; var nZg;var xMf=void 0;var Pu=typeof Symbol==="function"&&typeof Symbol()==="symbol",PW1=xj("jas",void 0,!0),s5=xj(void 0,"1oa"),ac=xj(void 0,Symbol()),HWW=xj(void 0,"0ub"),RCf=xj(void 0,"0ubs"),fMH=xj(void 0,"0ubsb"),BaJ=xj(void 0,"0actk"),r_=xj("m_m","Q3V",!0),GH5=xj(void 0,"vps"),tA_=xj();Math.max.apply(Math,g.ZH(Object.values({Wme:1,tfO:2,uEK:4,KK_:8,lrm:16,ls_:32,fbK:64,TCd:128,pGV:256,TVB:512,t16:1024,S4k:2048,rsK:4096})));var HJT={EC:{value:0,configurable:!0,writable:!0,enumerable:!1}},PBX=Object.defineProperties,Hu=Pu?PW1:"EC",vS,OWW=[];Oo(OWW,7);vS=Object.freeze(OWW);var cG={},Wu={},ri5=Object.freeze({}),F1={};var TS=typeof g.VC.BigInt==="function"&&typeof g.VC.BigInt(0)==="bigint";var p2=L8(function(T){return TS?T>=pmd&&T<=W9m:T[0]==="-"?$M5(T,$pW):$M5(T,JTW)}),$pW=Number.MIN_SAFE_INTEGER.toString(),pmd=TS?BigInt(Number.MIN_SAFE_INTEGER):void 0,JTW=Number.MAX_SAFE_INTEGER.toString(),W9m=TS?BigInt(Number.MAX_SAFE_INTEGER):void 0;var PXt=typeof Uint8Array.prototype.slice==="function",jk=0,ky=0,G8g;var C2=typeof BigInt==="function"?BigInt.asIntN:void 0,LII=typeof BigInt==="function"?BigInt.asUintN:void 0,w_=Number.isSafeInteger,Rc=Number.isFinite,d_=Math.trunc,yV5=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var mng={};var ee_={ULm:!0};var PG;var Io5,hCy;var aof=Ql(0),uq={};WS.prototype.init=function(T,Q,k,l){var v=l===void 0?{}:l;l=v.AT===void 0?!1:v.AT;v=v.s7===void 0?!1:v.s7;this.AT=l;this.s7=v;T&&(T=pg(T,this.s7),this.S=T.buffer,this.N=T.T,this.Y=Q||0,this.L=k!==void 0?this.Y+k:this.S.length,this.T=this.Y)}; WS.prototype.free=function(){this.clear();VK.length<100&&VK.push(this)}; WS.prototype.clear=function(){this.S=null;this.N=!1;this.T=this.L=this.Y=0;this.AT=!1}; WS.prototype.reset=function(){this.T=this.Y}; var VK=[];TR.prototype.free=function(){this.T.clear();this.S=this.Y=-1;Q$.length<100&&Q$.push(this)}; TR.prototype.reset=function(){this.T.reset();this.L=this.T.T;this.S=this.Y=-1}; var Q$=[];var JiT,FIH;Iy.prototype.length=function(){return this.T.length}; Iy.prototype.end=function(){var T=this.T;this.T=[];return T};var dg=Xb(),F9A=Xb(),EEm=Xb(),yTE=Xb(),iW9=Xb(),VA9=Xb(),Tz$=Xb(),Qs9=Xb(),jsm=Xb(),ksp=Xb(),lWW=Xb();wg.prototype.toJSON=function(){return $y(this)}; wg.prototype.xo=function(T){return JSON.stringify($y(this,T))}; wg.prototype.clone=function(){var T=this.g5,Q=T[Hu]|0;return Ev(this,T,Q)?yl(this,T,!0):new this.constructor(FW(T,Q,!1))}; wg.prototype[r_]=cG;wg.prototype.toString=function(){return this.g5.toString()};var o1C=A7(function(T,Q,k,l,v){if(T.S!==2)return!1;U6(T,SQ(Q,l,k),v);return!0},lMf),v1X=A7(function(T,Q,k,l,v){if(T.S!==2)return!1; U6(T,SQ(Q,l,k),v);return!0},lMf),$A=Symbol(),ay=Symbol(),p3=Symbol(),UXT=Symbol(),g1H=Symbol(),bV,rg;var oZd=E6(function(T,Q,k){if(T.S!==1)return!1;iV(Q,k,yK(T.T));return!0},V$,jsm),vZe=E6(function(T,Q,k){if(T.S!==1)return!1; T=yK(T.T);iV(Q,k,T===0?void 0:T);return!0},V$,jsm),LyT=E6(function(T,Q,k,l){if(T.S!==1)return!1; I2(Q,k,l,yK(T.T));return!0},V$,jsm),qiW=E6(function(T,Q,k){if(T.S!==0)return!1; iV(Q,k,JK(T.T));return!0},Tg,Tz$),gZ$=E6(function(T,Q,k){if(T.S!==0)return!1; T=JK(T.T);iV(Q,k,T===0?void 0:T);return!0},Tg,Tz$),MPA=E6(function(T,Q,k,l){if(T.S!==0)return!1; I2(Q,k,l,JK(T.T));return!0},Tg,Tz$),YiJ=E6(function(T,Q,k){if(T.S!==0)return!1; iV(Q,k,eQ(T.T));return!0},QY,yTE),UMA=E6(function(T,Q,k){if(T.S!==0)return!1; T=eQ(T.T);iV(Q,k,T===0?void 0:T);return!0},QY,yTE),RW$=E6(function(T,Q,k,l){if(T.S!==0)return!1; I2(Q,k,l,eQ(T.T));return!0},QY,yTE),ZJp=E6(function(T,Q,k){if(T.S!==1)return!1; iV(Q,k,E5(T.T));return!0},function(T,Q,k){QOy(T,k,qk6(Q))},Qs9),fWe=y$(function(T,Q,k){if(T.S!==1&&T.S!==2)return!1; Q=R2(Q,Q[Hu]|0,k);if(T.S==2)for(k=eQ(T.T)>>>0,k=T.T.T+k;T.T.T>>0);return!0},function(T,Q,k){Q=mY(Q); Q!=null&&Q!=null&&(BW(T,k,0),s6(T.T,Q))},iW9),Mc=E6(function(T,Q,k){if(T.S!==0)return!1; iV(Q,k,eQ(T.T));return!0},function(T,Q,k){Q=GS(Q); Q!=null&&(Q=parseInt(Q,10),BW(T,k,0),yi5(T.T,Q))},lWW);S$g.prototype.register=function(){PX(this)};g.S(lL,wg);lL.prototype.L=BKI([0,vZe,gZ$,-2,UMA]);var bOI={SUk:1,s0:2,BJ_:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};cZX.prototype.vL=function(T){if(typeof T==="string"&&T.length!=0){var Q=this.sH;if(Q.S){T=T.split("&");for(var k=T.length-1;k>=0;k--){var l=T[k].split("="),v=decodeURIComponent(l[0]);l.length>1?(l=decodeURIComponent(l[1]),l=/^[0-9]+$/g.exec(l)?parseInt(l,10):l):l=1;(v=Q.T[v])&&v.L(l)}}}};var Yv=null;var MT=g.VC.performance,BzT=!!(MT&&MT.mark&&MT.measure&&MT.clearMarks),qT=aO(function(){var T;if(T=BzT){var Q=Q===void 0?window:Q;if(Yv===null){Yv="";try{T="";try{T=Q.top.location.hash}catch(l){T=Q.location.hash}if(T){var k=T.match(/\bdeid=([\d,]+)/);Yv=k?k[1]:""}}catch(l){}}Q=Yv;T=!!Q.indexOf&&Q.indexOf("1337")>=0}return T}); gy.prototype.disable=function(){this.T=!1;this.events!==this.S.google_js_reporting_queue&&(qT()&&g.EA(this.events,xXI),this.events.length=0)}; gy.prototype.start=function(T,Q){if(!this.T)return null;var k=n1T()||u3y();T=new KmH(T,Q,k);Q="goog_"+T.label+"_"+T.uniqueId+"_start";MT&&qT()&&MT.mark(Q);return T}; gy.prototype.end=function(T){if(this.T&&typeof T.value==="number"){var Q=n1T()||u3y();T.duration=Q-T.value;Q="goog_"+T.label+"_"+T.uniqueId+"_end";MT&&qT()&&MT.mark(Q);!this.T||this.events.length>2048||this.events.push(T)}};var P5y=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),zg=/#|$/,$XH=/[?&]($|#)/;e75.prototype.RX=function(T,Q,k,l,v){v=v||this.Gf;try{var L=new Z9;L.T.push(1);L.S[1]=f8("context",T);Q.error&&Q.meta&&Q.id||(Q=new bL(ry(Q)));if(Q.msg){var q=Q.msg.substring(0,512);L.T.push(2);L.S[2]=f8("msg",q)}var Y=Q.meta||{};if(this.OJ)try{this.OJ(Y)}catch(m){}if(l)try{l(Y)}catch(m){}l=[Y];L.T.push(3);L.S[3]=l;var U=qiy();if(U.S){var R=U.S.url||"";L.T.push(4);L.S[4]=f8("top",R)}var Z={url:U.T.url||""};if(U.T.url){var f=g.UD(U.T.url);var G=Y4(f[1],null,f[3],f[4])}else G="";R=[Z,{url:G}];L.T.push(5); L.S[5]=R;DXb(this.T,v,L,k)}catch(m){try{DXb(this.T,v,{context:"ecmserr",rctx:T,msg:ry(m),url:U&&U.T.url},k)}catch(I){}}return this.qf}; g.S(bL,aMf);var NT,A3,dy=new gy;NT=new function(){var T="https:";rK&&rK.location&&rK.location.protocol==="http:"&&(T="http:");this.S=T;this.T=.01}; A3=new e75;rK&&rK.document&&(rK.document.readyState=="complete"?E1C():dy.T&&oQ(rK,"load",function(){E1C()}));var VO6=Date.now(),x4=-1,nI=-1,q5H,Pf=-1,KI=!1;Hf.prototype.equals=function(T,Q){return!!T&&(!(Q===void 0?0:Q)||this.volume==T.volume)&&this.L==T.L&&P2(this.T,T.T)&&!0};t3.prototype.xB=function(){return this.C}; t3.prototype.equals=function(T,Q){return this.Y.equals(T.Y,Q===void 0?!1:Q)&&this.C==T.C&&P2(this.L,T.L)&&P2(this.B,T.B)&&this.T==T.T&&this.N==T.N&&this.S==T.S&&this.j==T.j};var zW1={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Fy={RJ:"start",Gd:"firstquartile",cj:"midpoint",Bj:"thirdquartile",COMPLETE:"complete",ERROR:"error",S_:"metric",PAUSE:"pause",iT:"resume",dG:"skip",e_:"viewable_impression",E0:"mute",Vz:"unmute",PD:"fullscreen",Ko:"exitfullscreen",rM:"bufferstart",lD:"bufferfinish",po:"fully_viewable_audible_half_duration_impression",Ti:"measurable_impression",XP:"abandon",I4:"engagedview",uD:"impression",AB:"creativeview",LOADED:"loaded", QwO:"progress",CLOSE:"close",Ozj:"collapse",tOd:"overlay_resize",WKK:"overlay_unmeasurable_impression",OpO:"overlay_unviewable_impression",fsK:"overlay_viewable_immediate_impression",vh9:"overlay_viewable_end_of_session_impression",jm:"custom_metric_viewable",Nn:"audio_audible",wM:"audio_measurable",VP:"audio_impression"},hHX="start firstquartile midpoint thirdquartile resume loaded".split(" "),sy6=["start","firstquartile","midpoint","thirdquartile"],MQt=["abandon"],fH={UNKNOWN:-1,RJ:0,Gd:1,cj:2, Bj:3,COMPLETE:4,S_:5,PAUSE:6,iT:7,dG:8,e_:9,E0:10,Vz:11,PD:12,Ko:13,po:14,Ti:15,XP:16,I4:17,uD:18,AB:19,LOADED:20,jm:21,rM:22,lD:23,VP:27,wM:28,Nn:29};var QQ5={BOd:"addEventListener",v$B:"getMaxSize",fqK:"getScreenSize",DNV:"getState",aqm:"getVersion",xBB:"removeEventListener",O$O:"isViewable"};qob.prototype.update=function(T){T&&T.document&&(this.C=OD(!1,T,this.isMobileDevice),this.T=OD(!0,T,this.isMobileDevice),MC5(this,T),gjH(this,T))};ED.prototype.cancel=function(){Bu().clearTimeout(this.T);this.T=null}; ED.prototype.schedule=function(){var T=this,Q=Bu(),k=vf().T.T;this.T=Q.setTimeout(oq(k,Dz(143,function(){T.S++;T.L.sample()})),TJ5())};g.h=yY.prototype;g.h.jI=function(){return!1}; g.h.initialize=function(){return this.isInitialized=!0}; g.h.tS=function(){return this.T.i9}; g.h.PU=function(){return this.T.z9}; g.h.fail=function(T,Q){if(!this.z9||(Q===void 0?0:Q))this.z9=!0,this.i9=T,this.j=0,this.T!=this||VY(this)}; g.h.getName=function(){return this.T.sK}; g.h.lW=function(){return this.T.Ey()}; g.h.Ey=function(){return{}}; g.h.An=function(){return this.T.j}; g.h.Tn=function(){var T=J3();T.T=OD(!0,this.L,T.isMobileDevice)}; g.h.S4=function(){gjH(J3(),this.L)}; g.h.ez=function(){return this.Y.T}; g.h.sample=function(){}; g.h.isActive=function(){return this.T.B}; g.h.gm=function(T){var Q=this.T;this.T=T.An()>=this.j?T:this;Q!==this.T?(this.B=this.T.B,VY(this)):this.B!==this.T.B&&(this.B=this.T.B,VY(this))}; g.h.py=function(T){if(T.S===this.T){var Q=!this.Y.equals(T,this.D);this.Y=T;Q&&R$I(this)}}; g.h.PA=function(){return this.D}; g.h.dispose=function(){this.xm=!0}; g.h.wd=function(){return this.xm};g.h=TJ.prototype;g.h.observe=function(){return!0}; g.h.unobserve=function(){}; g.h.mU=function(T){this.N=T}; g.h.dispose=function(){if(!this.wd()){var T=this.S;g.zv(T.N,this);T.D&&this.PA()&&U_y(T);this.unobserve();this.hj=!0}}; g.h.wd=function(){return this.hj}; g.h.lW=function(){return this.S.lW()}; g.h.An=function(){return this.S.An()}; g.h.tS=function(){return this.S.tS()}; g.h.PU=function(){return this.S.PU()}; g.h.gm=function(){}; g.h.py=function(){this.h5()}; g.h.PA=function(){return this.xm};g.h=QB.prototype;g.h.An=function(){return this.T.An()}; g.h.tS=function(){return this.T.tS()}; g.h.PU=function(){return this.T.PU()}; g.h.create=function(T,Q,k){var l=null;this.T&&(l=this.TJ(T,Q,k),iL(this.T,l));return l}; g.h.cF=function(){return this.bL()}; g.h.bL=function(){return!1}; g.h.init=function(T){return this.T.initialize()?(iL(this.T,this),this.Y=T,!0):!1}; g.h.gm=function(T){T.An()==0&&this.Y(T.tS(),this)}; g.h.py=function(){}; g.h.PA=function(){return!1}; g.h.dispose=function(){this.N=!0}; g.h.wd=function(){return this.N}; g.h.lW=function(){return{}};jy.prototype.add=function(T,Q,k){++this.L;T=new f95(T,Q,k);this.T.push(new f95(T.S,T.T,T.L+this.L/4096));this.S=!0;return this};sQu.prototype.toString=function(){var T="//pagead2.googlesyndication.com//pagead/gen_204",Q=ll(this.T);Q.length>0&&(T+="?"+Q);return T};g.x.prototype.vA=!1;g.x.prototype.wd=function(){return this.vA}; g.x.prototype.dispose=function(){this.vA||(this.vA=!0,this.EK())}; g.x.prototype[Symbol.dispose]=function(){this.dispose()}; g.x.prototype.addOnDisposeCallback=function(T,Q){this.vA?Q!==void 0?T.call(Q):T():(this.K7||(this.K7=[]),Q&&(T=T.bind(Q)),this.K7.push(T))}; g.x.prototype.EK=function(){if(this.K7)for(;this.K7.length;)this.K7.shift()()};var Xgd=[0,qiW,GsA,-1];LC.prototype.update=function(T,Q,k){T&&(this.T+=Q,this.S+=Q,this.Y+=Q,this.L=Math.max(this.L,this.Y));if(k===void 0?!T:k)this.Y=0};var XuC=[1,.75,.5,.3,0];qV.prototype.update=function(T,Q,k,l,v,L){L=L===void 0?!0:L;Q=v?Math.min(T,Q):Q;for(v=0;v0&&Q>=q;q=!(T>0&&T>=q)||k;this.T[v].update(L&&Y,l,!L||q)}};Z7.prototype.update=function(T,Q,k,l){this.C=this.C!=-1?Math.min(this.C,Q.Pn):Q.Pn;this.qO=Math.max(this.qO,Q.Pn);this.hj=this.hj!=-1?Math.min(this.hj,Q.E1):Q.E1;this.i9=Math.max(this.i9,Q.E1);this.zg.update(Q.E1,k.E1,Q.T,T,l);this.Bd+=T;Q.Pn===0&&(this.sK+=T);this.S.update(Q.Pn,k.Pn,Q.T,T,l);k=l||k.gh!=Q.gh?k.isVisible()&&Q.isVisible():k.isVisible();Q=!Q.isVisible()||Q.T;this.p_.update(k,T,Q)}; Z7.prototype.D_=function(){return this.p_.L>=this.f_};if(el&&el.URL){var wge=el.URL,dMW;if(dMW=!!wge){var Nz$;a:{if(wge){var AVv=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var UZ=AVv.exec(decodeURIComponent(wge));if(UZ){Nz$=UZ[1]&&UZ[1].length>1?UZ[1].substring(1):"true";break a}}catch(T){}}Nz$=""}dMW=Nz$.length>0}A3.qf=!dMW};var bJJ=new KO(0,0,0,0);var rPg=new KO(0,0,0,0);g.S(BU,g.x);g.h=BU.prototype; g.h.EK=function(){if(this.C$.T){if(this.U6.Zt){var T=this.C$.T;typeof T.removeEventListener==="function"&&T.removeEventListener("mouseover",this.U6.Zt,lS());this.U6.Zt=null}this.U6.J0&&(T=this.C$.T,typeof T.removeEventListener==="function"&&T.removeEventListener("mouseout",this.U6.J0,lS()),this.U6.J0=null)}this.mE&&this.mE.dispose();this.nY&&this.nY.dispose();delete this.oO;delete this.B6;delete this.Wb;delete this.C$.kd;delete this.C$.T;delete this.U6;delete this.mE;delete this.nY;delete this.sH; g.x.prototype.EK.call(this)}; g.h.rS=function(){return this.nY?this.nY.T:this.position}; g.h.vL=function(T){vf().vL(T)}; g.h.PA=function(){return!1}; g.h.MI=function(){return new Z7}; g.h.OF=function(){return this.oO}; g.h.Yl=function(T){return uW6(this,T,1E4)}; g.h.Aj=function(T,Q,k,l,v,L,q){this.DH||(this.DY&&(T=this.EQ(T,k,v,q),l=l&&this.I2.Pn>=(this.gh()?.3:.5),this.IF(L,T,l),this.U_=Q,T.Pn>0&&-1===this.kG&&(this.kG=Q),this.Xz==-1&&this.D_()&&(this.Xz=Q),this.d3==-2&&(this.d3=Sy(this.rS())?T.Pn:-1),this.I2=T),this.B6(this))}; g.h.IF=function(T,Q,k){this.OF().update(T,Q,this.I2,k)}; g.h.Dj=function(){return new iW}; g.h.EQ=function(T,Q,k,l){k=this.Dj();k.T=Q;Q=Bu().S;Q=vu(el)===0?-1:Q.isVisible()?0:1;k.S=Q;k.Pn=this.C1(T);k.gh=this.gh();k.E1=l;return k}; g.h.C1=function(T){return this.opacity===0&&wz(this.sH,"opac")===1?0:T}; g.h.gh=function(){return!1}; g.h.Yq=function(){return this.mB||this.UC}; g.h.JX=function(){uL()}; g.h.W$=function(){uL()}; g.h.S9=function(){return 0}; g.h.D_=function(){return this.oO.D_()}; g.h.lr=function(){var T=this.DY;T=(this.hasCompleted||this.wd())&&!T;var Q=vf().S!==2||this.Jb9;return this.DH||Q&&T?2:this.D_()?4:3}; g.h.bV=function(){return 0};g.Xy.prototype.next=function(){return g.R6}; g.R6={done:!0,value:void 0};g.Xy.prototype.Xu=function(){return this};g.S(tkH,iW);var Z3=pGH([void 0,1,2,3,4,8,16]),fs=pGH([void 0,4,8,16]),rVA={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Ao("p0",fs),p1:Ao("p1",fs),p2:Ao("p2",fs),p3:Ao("p3",fs),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:NV("mtos1",[0,2,4],!1,fs),mtos2:NV("mtos2",[0,2,4],!1,fs),mtos3:NV("mtos3",[0,2,4],!1,fs),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Ao("a0",fs),a1:Ao("a1",fs),a2:Ao("a2",fs),a3:Ao("a3",fs),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:Ao("c0",fs),c1:Ao("c1",fs),c2:Ao("c2",fs),c3:Ao("c3",fs),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Ao("qmtos",Z3),qnc:Ao("qnc",Z3),qmv:Ao("qmv",Z3),qnv:Ao("qnv",Z3), 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:Ao("ss0",fs),ss1:Ao("ss1",fs),ss2:Ao("ss2",fs),ss3:Ao("ss3",fs),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"},cV$=Object.assign({},rVA,{avid:c2("audio"),avas:"avas",vs:"vs"}),DM$={atos:"atos",avt:NV("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(T,Q){return function(k){return k[T]===void 0&&Q!==void 0?Q:k[T]}}("ss",0), t:"t"};D7.prototype.getValue=function(){return this.S}; D7.prototype.update=function(T,Q){T>=32||(this.T&1<=.5;Wf(Q.volume)&&(this.Y=this.Y!=-1?Math.min(this.Y,Q.volume):Q.volume,this.B=Math.max(this.B,Q.volume));L&&(this.xm+=T,this.D+=v?T:0);this.T.update(Q.Pn,k.Pn,Q.T,T,l,v);this.L.update(!0,T);this.N.update(v,T);this.z9.update(k.fullscreen,T);this.Tg.update(v&&!L,T);T=Math.floor(Q.mediaTime/1E3);this.e6.update(T,Q.isVisible());this.K_.update(T,Q.Pn>=1);this.u9.update(T, dR(Q))}};Eyb.prototype.S=function(T){this.L||(this.T(T)?(T=Lsg(this.D,this.Y,T),this.N|=T,T=T==0):T=!1,this.L=T)};g.S(KC,Eyb);KC.prototype.T=function(){return!0}; KC.prototype.B=function(){return!1}; KC.prototype.getId=function(){var T=this,Q=Ui(Fy,function(k){return k==T.Y}); return fH[Q].toString()}; KC.prototype.toString=function(){var T="";this.B()&&(T+="c");this.L&&(T+="s");this.N>0&&(T+=":"+this.N);return this.getId()+T};g.S(x6,KC);x6.prototype.S=function(T,Q){Q=Q===void 0?null:Q;Q!=null&&this.C.push(Q);KC.prototype.S.call(this,T)};g.S(PU,yPC);PU.prototype.S=function(){return null}; PU.prototype.L=function(){return[]};g.S(HU,TJ);g.h=HU.prototype;g.h.L1=function(){if(this.element){var T=this.element,Q=this.S.T.L;try{try{var k=ojt(T.getBoundingClientRect())}catch(R){k=new KO(0,0,0,0)}var l=k.right-k.left,v=k.bottom-k.top,L=$py(T,Q),q=L.x,Y=L.y;var U=new KO(Math.round(Y),Math.round(q+l),Math.round(Y+v),Math.round(q))}catch(R){U=bJJ.clone()}this.L=U;this.T=Z8H(this,this.L)}}; g.h.P2=function(){this.B=this.S.Y.T}; g.h.VX=function(T){var Q=wz(this.sH,"od")==1;return b25(T,this.B,this.element,Q)}; g.h.uP=function(){this.timestamp=uL()}; g.h.h5=function(){this.uP();this.L1();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var T=this.element;var Q=new g.Ji(T.videoWidth,T.videoHeight);T=this.T;var k=x1(T),l=T.getHeight(),v=Q.width;Q=Q.height;v<=0||Q<=0||k<=0||l<=0||(v/=Q,Q=k/l,T=T.clone(),v>Q?(k/=v,l=(l-k)/2,l>0&&(l=T.top+l,T.top=Math.round(l),T.bottom=Math.round(l+k))):(l*=v,k=Math.round((k-l)/2),k>0&&(k=T.left+k,T.left=Math.round(k),T.right=Math.round(k+l))));this.T=T}this.P2(); T=this.T;k=this.B;T=T.left<=k.right&&k.left<=T.right&&T.top<=k.bottom&&k.top<=T.bottom?new KO(Math.max(T.top,k.top),Math.min(T.right,k.right),Math.min(T.bottom,k.bottom),Math.max(T.left,k.left)):new KO(0,0,0,0);k=T.top>=T.bottom||T.left>=T.right?new KO(0,0,0,0):T;T=this.S.Y;Q=v=l=0;if((this.T.bottom-this.T.top)*(this.T.right-this.T.left)>0)if(this.VX(k))k=new KO(0,0,0,0);else{l=J3().Y;Q=new KO(0,l.height,l.width,0);var L;l=CC(k,(L=this.N)!=null?L:this.T);v=CC(k,J3().T);Q=CC(k,Q)}L=k.top>=k.bottom|| k.left>=k.right?new KO(0,0,0,0):H2(k,-this.T.left,-this.T.top);F6()||(v=l=0);this.D=new t3(T,this.element,this.T,L,l,v,this.timestamp,Q)}; g.h.getName=function(){return this.S.getName()};var aW$=new KO(0,0,0,0);g.S(to,HU);g.h=to.prototype;g.h.observe=function(){this.Y();return!0}; g.h.py=function(){HU.prototype.h5.call(this)}; g.h.uP=function(){}; g.h.L1=function(){}; g.h.h5=function(){this.Y();HU.prototype.h5.call(this)}; g.h.gm=function(T){T=T.isActive();T!==this.j&&(T?this.Y():(J3().T=new KO(0,0,0,0),this.T=new KO(0,0,0,0),this.B=new KO(0,0,0,0),this.timestamp=-1));this.j=T};var G2={},LnJ=(G2.firstquartile=0,G2.midpoint=1,G2.thirdquartile=2,G2.complete=3,G2);g.S(pC,BU);g.h=pC.prototype;g.h.PA=function(){return!0}; g.h.zz=function(){return this.vg==2}; g.h.Yl=function(T){return uW6(this,T,Math.max(1E4,this.L/3))}; g.h.Aj=function(T,Q,k,l,v,L,q){var Y=this,U=this.C(this)||{};g.Is(U,v);this.L=U.duration||this.L;this.D=U.isVpaid||this.D;this.sK=U.isYouTube||this.sK;Bu();this.zg=!1;v=Vkt(this,Q);i2g(this)===1&&(L=v);BU.prototype.Aj.call(this,T,Q,k,l,U,L,q);this.yQ&&this.yQ.L&&g.EA(this.B,function(R){R.S(Y)})}; g.h.IF=function(T,Q,k){BU.prototype.IF.call(this,T,Q,k);Jo(this).update(T,Q,this.I2,k);this.f_=dR(this.I2)&&dR(Q);this.i9==-1&&this.K_&&(this.i9=this.OF().L.T);this.Sj.L=0;T=this.D_();Q.isVisible()&&cU(this.Sj,"vs");T&&cU(this.Sj,"vw");Wf(Q.volume)&&cU(this.Sj,"am");dR(Q)?cU(this.Sj,"a"):cU(this.Sj,"mut");this.YX&&cU(this.Sj,"f");Q.S!=-1&&(cU(this.Sj,"bm"),Q.S==1&&(cU(this.Sj,"b"),dR(Q)&&cU(this.Sj,"umutb")));dR(Q)&&Q.isVisible()&&cU(this.Sj,"avs");this.f_&&T&&cU(this.Sj,"avw");Q.Pn>0&&cU(this.Sj, "pv");ey(this,this.OF().L.T,!0)&&cU(this.Sj,"gdr");UB(this.OF().S,1)>=2E3&&cU(this.Sj,"pmx");this.zg&&cU(this.Sj,"tvoff")}; g.h.MI=function(){return new ul}; g.h.OF=function(){return this.oO}; g.h.Dj=function(){return new tkH}; g.h.EQ=function(T,Q,k,l){T=BU.prototype.EQ.call(this,T,Q,k,l===void 0?-1:l);T.fullscreen=this.YX;T.paused=this.zz();T.volume=k.volume;Wf(T.volume)||(this.QR++,Q=this.I2,Wf(Q.volume)&&(T.volume=Q.volume));k=k.currentTime;T.mediaTime=k!==void 0&&k>=0?k:-1;return T}; g.h.C1=function(T){return J3(),this.YX?1:BU.prototype.C1.call(this,T)}; g.h.S9=function(){return 1}; g.h.getDuration=function(){return this.L}; g.h.lr=function(){return this.DH?2:Q25(this)?5:this.D_()?4:3}; g.h.bV=function(){return this.Tg?this.OF().N.L>=2E3?4:3:2}; g.h.mU=function(T){this.nY&&this.nY.mU(T)};var ul_=g.R_();Iff.prototype.reset=function(){this.T=[];this.S=[]}; var T9=SC(Iff);g.S(kB,QB);g.h=kB.prototype;g.h.getName=function(){return(this.S?this.S:this.T).getName()}; g.h.lW=function(){return(this.S?this.S:this.T).lW()}; g.h.An=function(){return(this.S?this.S:this.T).An()}; g.h.init=function(T){var Q=!1;(0,g.EA)(this.L,function(k){k.initialize()&&(Q=!0)}); Q&&(this.Y=T,iL(this.T,this));return Q}; g.h.dispose=function(){(0,g.EA)(this.L,function(T){T.dispose()}); QB.prototype.dispose.call(this)}; g.h.cF=function(){return $4(this.L,function(T){return T.jI()})}; g.h.bL=function(){return $4(this.L,function(T){return T.jI()})}; g.h.TJ=function(T,Q,k){return new HU(T,this.T,Q,k)}; g.h.py=function(T){this.S=T.S};var dsC={threshold:[0,.3,.5,.75,1]};g.S(lp,HU);g.h=lp.prototype;g.h.observe=function(){var T=this;this.qO||(this.qO=uL());if(iOH(298,function(){return NL5(T)}))return!0; this.S.fail("msf");return!1}; g.h.unobserve=function(){if(this.Y&&this.element)try{this.Y.unobserve(this.element),this.j?(this.j.unobserve(this.element),this.j=null):this.C&&(this.C.disconnect(),this.C=null)}catch(T){}}; g.h.h5=function(){var T=oj(this);T.length>0&&vH(this,T);HU.prototype.h5.call(this)}; g.h.L1=function(){}; g.h.VX=function(){return!1}; g.h.P2=function(){}; g.h.lW=function(){var T={};return Object.assign(this.S.lW(),(T.niot_obs=this.qO,T.niot_cbk=this.z9,T))}; g.h.getName=function(){return"nio"};g.S(LH,QB);LH.prototype.getName=function(){return"nio"}; LH.prototype.bL=function(){return!J3().S&&this.T.T.L.IntersectionObserver!=null}; LH.prototype.TJ=function(T,Q,k){return new lp(T,this.T,Q,k)};g.S(qi,yY);qi.prototype.ez=function(){return J3().T}; qi.prototype.jI=function(){var T=bgJ();this.j!==T&&(this.T!=this&&T>this.T.j&&(this.T=this,VY(this)),this.j=T);return T==2};gw.prototype.sample=function(){UX(this,QR(),!1)}; gw.prototype.Y=function(){var T=F6(),Q=uL();T?(KI||(x4=Q,g.EA(T9.T,function(k){var l=k.OF();l.Jj=nC(l,Q,k.vg!=1)})),KI=!0):(this.C=uV6(this,Q),KI=!1,q5H=Q,g.EA(T9.T,function(k){k.DY&&(k.OF().j=Q)})); UX(this,QR(),!T)}; var Mi=SC(gw);var Kn5=null,PH="",xB=!1;var HgT=Pqg().nt,Zt=Pqg().tp;var pSX={Gs6:"visible",kPd:"audible",ozH:"time",Ezj:"timetype"},Wnt={visible:function(T){return/^(100|[0-9]{1,2})$/.test(T)}, audible:function(T){return T=="0"||T=="1"}, timetype:function(T){return T=="mtos"||T=="tos"}, time:function(T){return/^(100|[0-9]{1,2})%$/.test(T)||/^([0-9])+ms$/.test(T)}}; Ogb.prototype.setTime=function(T,Q,k){Q=="ms"?(this.L=T,this.Y=-1):(this.L=-1,this.Y=T);this.N=k===void 0?"tos":k;return this};g.S(Ij,KC);Ij.prototype.getId=function(){return this.C}; Ij.prototype.B=function(){return!0}; Ij.prototype.T=function(T){var Q=T.OF(),k=T.getDuration();return $4(this.j,function(l){if(l.T!=void 0)var v=JKC(l,Q);else b:{switch(l.N){case "mtos":v=l.S?Q.N.L:Q.L.T;break b;case "tos":v=l.S?Q.N.T:Q.L.T;break b}v=0}v==0?l=!1:(l=l.L!=-1?l.L:k!==void 0&&k>0?l.Y*k:-1,l=l!=-1&&v>=l);return l})};g.S(hs,$ru);hs.prototype.T=function(T){var Q=new WYg;Q.T=rR(T,rVA);Q.S=rR(T,DM$);return Q};g.S(sX,KC);sX.prototype.T=function(T){return Q25(T)};g.S(Su,yPC);g.S(CH,KC);CH.prototype.T=function(T){return T.OF().D_()};g.S(BH,x6);BH.prototype.T=function(T){var Q=g.CW(this.C,wz(vf().sH,"ovms"));return!T.DH&&(T.vg!=0||Q)};g.S(z9,Su);z9.prototype.S=function(){return new BH(this.T)}; z9.prototype.L=function(){return[new CH("viewable_impression",this.T),new sX(this.T)]};g.S(Xn,to);Xn.prototype.Y=function(){var T=g.jA("ima.admob.getViewability"),Q=wz(this.sH,"queryid");typeof T==="function"&&Q&&T(Q)}; Xn.prototype.getName=function(){return"gsv"};g.S(ww,QB);ww.prototype.getName=function(){return"gsv"}; ww.prototype.bL=function(){var T=J3();vf();return T.S&&!1}; ww.prototype.TJ=function(T,Q,k){return new Xn(this.T,Q,k)};g.S(dw,to);dw.prototype.Y=function(){var T=this,Q=g.jA("ima.bridge.getNativeViewability"),k=wz(this.sH,"queryid");typeof Q==="function"&&k&&Q(k,function(l){g.Rs(l)&&T.C++;var v=l.opt_nativeViewVisibleBounds||{},L=l.opt_nativeViewHidden;T.T=vjt(l.opt_nativeViewBounds||{});var q=T.S.Y;q.T=L?aW$.clone():vjt(v);T.timestamp=l.opt_nativeTime||-1;J3().T=q.T;l=l.opt_nativeVolume;l!==void 0&&(q.volume=l)})}; dw.prototype.getName=function(){return"nis"};g.S(Ni,QB);Ni.prototype.getName=function(){return"nis"}; Ni.prototype.bL=function(){var T=J3();vf();return T.S&&!1}; Ni.prototype.TJ=function(T,Q,k){return new dw(this.T,Q,k)};g.S(As,yY);g.h=As.prototype;g.h.jI=function(){return this.S.So!=null}; g.h.Ey=function(){var T={};this.e6&&(T.mraid=this.e6);this.hj&&(T.mlc=1);T.mtop=this.S.zo6;this.C&&(T.mse=this.C);this.Bd&&(T.msc=1);T.mcp=this.S.compatibility;return T}; g.h.vJ=function(T){var Q=g.HT.apply(1,arguments);try{return this.S.So[T].apply(this.S.So,Q)}catch(k){aq(538,k,.01,function(l){l.method=T})}}; g.h.initialize=function(){var T=this;if(this.isInitialized)return!this.PU();this.isInitialized=!0;if(this.S.compatibility===2)return this.C="ng",this.fail("w"),!1;if(this.S.compatibility===1)return this.C="mm",this.fail("w"),!1;J3().j=!0;this.L.document.readyState&&this.L.document.readyState=="complete"?yKI(this):GJ(this.L,"load",function(){Bu().setTimeout(Dz(292,function(){return yKI(T)}),100)},292); return!0}; g.h.Tn=function(){var T=J3(),Q=jy5(this,"getMaxSize");T.T=new KO(0,Q.width,Q.height,0)}; g.h.S4=function(){J3().Y=jy5(this,"getScreenSize")}; g.h.dispose=function(){VQT(this);yY.prototype.dispose.call(this)};var dXu=new function(T,Q){this.key=T;this.defaultValue=Q===void 0?!1:Q;this.valueType="boolean"}("45378663");g.h=rw.prototype;g.h.iV=function(T){zJ(T,!1);Cqg(T)}; g.h.EA=function(){}; g.h.CV=function(T,Q,k,l){var v=this;T=new pC(rK,T,k?Q:-1,7,this.K1(),this.iQ());T.V1=l;KXT(T.sH);Xl(T.sH,"queryid",T.V1);T.vL("");xr5(T,function(){return v.IR.apply(v,g.ZH(g.HT.apply(0,arguments)))},function(){return v.Ku.apply(v,g.ZH(g.HT.apply(0,arguments)))}); (l=SC(ju).T)&&aOH(T,l);this.L&&(T.mU(this.L),this.L=null);T.C$.kd&&SC(rK6);return T}; g.h.gm=function(T){switch(T.An()){case 0:if(T=SC(ju).T)T=T.T,g.zv(T.N,this),T.D&&this.PA()&&U_y(T);KH();break;case 2:YB()}}; g.h.py=function(){}; g.h.PA=function(){return!1}; g.h.Ku=function(T,Q){T.DH=!0;switch(T.S9()){case 1:q6y(T,Q);break;case 2:this.g4(T)}}; g.h.fu=function(T){var Q=T.C(T);Q&&(Q=Q.volume,T.Tg=Wf(Q)&&Q>0);lfb(T,0);return EB(T,"start",F6())}; g.h.H9=function(T,Q,k){UX(Mi,[T],!F6());return this.cA(T,Q,k)}; g.h.cA=function(T,Q,k){return EB(T,k,F6())}; g.h.pu=function(T){return pH(T,"firstquartile",1)}; g.h.W7=function(T){T.K_=!0;return pH(T,"midpoint",2)}; g.h.DZ=function(T){return pH(T,"thirdquartile",3)}; g.h.GI=function(T){var Q=pH(T,"complete",4);WU(T);return Q}; g.h.P7=function(T){T.vg=3;return EB(T,"error",F6())}; g.h.L2=function(T,Q,k){Q=F6();if(T.zz()&&!Q){var l=T.OF(),v=uL();l.j=v}UX(Mi,[T],!Q);T.zz()&&(T.vg=1);return EB(T,k,Q)}; g.h.v7=function(T,Q){Q=this.H9(T,Q||{},"skip");WU(T);return Q}; g.h.u_=function(T,Q){zJ(T,!0);return this.H9(T,Q||{},"fullscreen")}; g.h.nu=function(T,Q){zJ(T,!1);return this.H9(T,Q||{},"exitfullscreen")}; g.h.bZ=function(T,Q,k){Q=T.OF();var l=uL();Q.Jj=nC(Q,l,T.vg!=1);UX(Mi,[T],!F6());T.vg==1&&(T.vg=2);return EB(T,k,F6())}; g.h.Ou=function(T){UX(Mi,[T],!F6());return T.S()}; g.h.BI=function(T){UX(Mi,[T],!F6());this.zq(T);WU(T);return T.S()}; g.h.IR=function(){}; g.h.g4=function(){}; g.h.zq=function(){}; g.h.oW=function(){}; g.h.GF=function(){}; g.h.iQ=function(){this.T||(this.T=this.GF());return this.T==null?new PU:new z9(this.T)}; g.h.K1=function(){return new hs};g.S(WH,KC);WH.prototype.T=function(T){return T.bV()==4};g.S($B,x6);$B.prototype.T=function(T){T=T.bV();return T==3||T==4};g.S(Js,Su);Js.prototype.S=function(){return new $B(this.T)}; Js.prototype.L=function(){return[new WH(this.T)]};g.S(eu,$ru);eu.prototype.T=function(T){T&&(T.e===28&&(T=Object.assign({},T,{avas:3})),T.vs===4||T.vs===5)&&(T=Object.assign({},T,{vs:3}));var Q=new WYg;Q.T=rR(T,cV$);Q.S=rR(T,DM$);return Q};UWg.prototype.S=function(){return g.jA(this.T)};g.S(Fn,rw);g.h=Fn.prototype;g.h.EA=function(T,Q){var k=this,l=SC(ju);if(l.T!=null)switch(l.T.getName()){case "nis":var v=GRI(this,T,Q);break;case "gsv":v=fU5(this,T,Q);break;case "exc":v=mWC(this,T)}v||(Q.opt_overlayAdElement?v=void 0:Q.opt_adElement&&(v=MYu(this,T,Q.opt_adElement,Q.opt_osdId)));v&&v.S9()==1&&(v.C==g.DM&&(v.C=function(L){return k.oW(L)}),Z35(this,v,Q)); return v}; g.h.oW=function(T){T.S=0;T.xm=0;if(T.Y=="h"||T.Y=="n"){vf();T.u9&&(vf(),ts(this)!="h"&&ts(this));var Q=g.jA("ima.common.getVideoMetadata");if(typeof Q==="function")try{var k=Q(T.V1)}catch(v){T.S|=4}else T.S|=2}else if(T.Y=="b")if(Q=g.jA("ytads.bulleit.getVideoMetadata"),typeof Q==="function")try{k=Q(T.V1)}catch(v){T.S|=4}else T.S|=2;else if(T.Y=="ml")if(Q=g.jA("ima.common.getVideoMetadata"),typeof Q==="function")try{k=Q(T.V1)}catch(v){T.S|=4}else T.S|=2;else T.S|=1;T.S||(k===void 0?T.S|=8:k===null? T.S|=16:g.Rs(k)?T.S|=32:k.errorCode!=null&&(T.xm=k.errorCode,T.S|=64));k==null&&(k={});Q=k;T.j=0;for(var l in zW1)Q[l]==null&&(T.j|=zW1[l]);Y6b(Q,"currentTime");Y6b(Q,"duration");Wf(k.volume)&&Wf()&&(k.volume*=NaN);return k}; g.h.GF=function(){vf();ts(this)!="h"&&ts(this);var T=IUt(this);return T!=null?new UWg(T):null}; g.h.g4=function(T){!T.T&&T.DH&&OX(this,T,"overlay_unmeasurable_impression")&&(T.T=!0)}; g.h.zq=function(T){T.jx&&(T.D_()?OX(this,T,"overlay_viewable_end_of_session_impression"):OX(this,T,"overlay_unviewable_impression"),T.jx=!1)}; g.h.IR=function(){}; g.h.CV=function(T,Q,k,l){if(NKy()){var v=wz(vf().sH,"mm"),L={};(v=(L[LI.BD]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",L[LI.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",L)[v])&&CVT(this,v);this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&aq(1044,Error())}T=rw.prototype.CV.call(this,T,Q,k,l);this.N&&(Q=this.B,T.N==null&&(T.N=new PiH),Q.T[T.V1]=T.N,T.N.N=ul_);return T}; g.h.iV=function(T){T&&T.S9()==1&&this.N&&delete this.B.T[T.V1];return rw.prototype.iV.call(this,T)}; g.h.iQ=function(){this.T||(this.T=this.GF());return this.T==null?new PU:this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Js(this.T):new z9(this.T)}; g.h.K1=function(){return this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new eu:new hs}; g.h.mU=function(T,Q,k,l,v){Q=new KO(k,Q+l,k+v,Q);(T=VB(T9,T))?T.mU(Q):this.L=Q}; var nZd=cf(193,zH5,void 0,gAJ);g.Tv("Goog_AdSense_Lidar_sendVastEvent",nZd);var Ky$=Dz(194,function(T,Q){Q=Q===void 0?{}:Q;T=S6f(SC(Fn),T,Q);return Bg6(T)}); g.Tv("Goog_AdSense_Lidar_getViewability",Ky$);var xMA=cf(195,function(){return Gsf()}); g.Tv("Goog_AdSense_Lidar_getUrlSignalsArray",xMA);var PB9=Dz(196,function(){return JSON.stringify(Gsf())}); g.Tv("Goog_AdSense_Lidar_getUrlSignalsList",PB9);var dWu=g.G5(["//ep2.adtrafficquality.google/sodar/",""]),Ngt=g.G5(["//tpc.googlesyndication.com/sodar/",""]);g.S(ip,Error);g.S(QT,g.x);QT.prototype.Rf=function(){return this.wpc.f()}; QT.prototype.bI=function(T){this.wpc.c(T)}; QT.prototype.xd=function(T){return this.wpc.m(c76(T))}; QT.prototype.JL=function(T){return this.wpc.mws(c76(T))}; g.S(VR,g.x);VR.prototype.snapshot=function(T){return this.FI.s(Object.assign({},T.uh&&{c:T.uh},T.z3&&{s:T.z3},T.T3!==void 0&&{p:T.T3}))}; VR.prototype.QT=function(T){this.FI.e(T)}; VR.prototype.Lr=function(){return this.FI.l()};var xWJ;g.S(kf,g.x);kf.prototype.share=function(){if(this.wd())throw Error("E:AD");this.S++;return this}; kf.prototype.dispose=function(){--this.S||g.x.prototype.dispose.call(this)}; xWJ=Symbol.dispose;PVt.prototype.zW=function(T,Q){this.T.zW("/client_streamz/bg/frs",T,Q)}; H3I.prototype.zW=function(T,Q,k,l,v,L){this.T.zW("/client_streamz/bg/wrl",T,Q,k,l,v,L)}; tY5.prototype.ML=function(T,Q){this.T.m7("/client_streamz/bg/ec",T,Q)}; O3u.prototype.zW=function(T,Q,k){this.T.zW("/client_streamz/bg/el",T,Q,k)}; pWu.prototype.ML=function(T,Q){this.T.m7("/client_streamz/bg/cec",T,Q)}; WsX.prototype.ML=function(T,Q){this.T.m7("/client_streamz/bg/po/csc",T,Q)}; $WH.prototype.ML=function(T,Q){this.T.m7("/client_streamz/bg/po/ctav",T,Q)}; J7J.prototype.ML=function(T,Q){this.T.m7("/client_streamz/bg/po/cwsc",T,Q)};g.S(eHg,wg);g.S(vc,wg);var Rl=[1,2,3];var HJm=[0,Rl,ss_,RW$,IW1];var tPA=[0,v_,[0,oZd,qiW]];g.S(LS,wg);var Uc=[1,2,3];var OJE=[0,Uc,MPA,LyT,qc,tPA];g.S(qw,wg);var pg_=[0,v_,HJm,OJE];var WyJ=[0,o6];g.S(gI,wg);var $Mv=[0,o6,-1,mMT];var JVA=[0,o6,-1,YiJ,mMT];g.S(Mw,wg);var GB5=[1,2,3];var eWA=[0,GB5,qc,$Mv,qc,JVA,qc,WyJ];g.S(Yf,wg);Yf.prototype.CS=function(){var T=gL(this,3,AP,3,!0);eC(T);return T[void 0]};Yf.prototype.L=BKI([0,o6,eWA,hWv,v_,pg_,ZJp,fWe]);g.S(EAI,wg);g.h=ZB.prototype;g.h.isEnabled=function(){if(!g.VC.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{w$:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.h.set=function(T,Q,k){var l=!1;if(typeof k==="object"){var v=k.eZ_;l=k.secure||!1;var L=k.domain||void 0;var q=k.path||void 0;var Y=k.w$}if(/[;=\s]/.test(T))throw Error('Invalid cookie name "'+T+'"');if(/[;\r\n]/.test(Q))throw Error('Invalid cookie value "'+Q+'"');Y===void 0&&(Y=-1);k=L?";domain="+L:"";q=q?";path="+q:"";l=l?";secure":"";Y=Y<0?"":Y==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+Y*1E3)).toUTCString();this.T.cookie=T+"="+Q+k+q+Y+l+(v!=null?";samesite="+ v:"")}; g.h.get=function(T,Q){for(var k=T+"=",l=(this.T.cookie||"").split(";"),v=0,L;v=0;Q--)this.remove(T[Q])}; var Dq=new ZB(typeof document=="undefined"?null:document);Gy.prototype.compress=function(T){var Q,k,l,v;return g.a(function(L){switch(L.S){case 1:return Q=new CompressionStream("gzip"),k=(new Response(Q.readable)).arrayBuffer(),l=Q.writable.getWriter(),g.c(L,l.write((new TextEncoder).encode(T)),2);case 2:return g.c(L,l.close(),3);case 3:return v=Uint8Array,g.c(L,k,4);case 4:return L.return(new v(L.T))}})}; Gy.prototype.isSupported=function(T){return T<1024?!1:typeof CompressionStream!=="undefined"};g.S(mf,wg);Il.prototype.setInterval=function(T){this.intervalMs=T;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; Il.prototype.start=function(){var T=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){T.tick()},this.intervalMs),this.S=this.T())}; Il.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; Il.prototype.tick=function(){var T=this;if(this.enabled){var Q=Math.max(this.T()-this.S,0);Q0?k:void 0));k=lq(k,4,f2(v>0?v:void 0));k=lq(k,5,f2(L>0?L:void 0));v=k.g5;L=v[Hu]|0;k=Jm(k,L)?k:Ev(k,v,L)?yl(k,v):new k.constructor(FW(v,L,!0));Ns(q,SH,10,k)}q=this.T.clone();k=Date.now().toString();q=lq(q,4,XW(k));T=AK(q,Az,3,T.slice());l&&(q=new hz,l=lq(q,13,f2(l)),q=new sc, l=Ns(q,hz,2,l),q=new Nw,l=Ns(q,sc,1,l),l=HS(l,2,9),Ns(T,Nw,18,l));Q&&Kg(T,14,Q);return T};g.al.prototype.S=0;g.al.prototype.reset=function(){this.T=this.L=this.Y;this.S=0}; g.al.prototype.getValue=function(){return this.L};g.S(jl,wg);var Fyd=k4(jl);g.S(sOu,wg);var m$;m$=new S$g;g.S(xf,g.x);g.h=xf.prototype;g.h.EK=function(){KS(this);this.S.stop();this.e6.stop();g.x.prototype.EK.call(this)}; g.h.dispatch=function(T){if(T instanceof Az)this.log(T);else try{var Q=new Az,k=T.xo();var l=xM(Q,8,k);this.log(l)}catch(v){Pc(this,4,1)}}; g.h.log=function(T){Pc(this,2,1);if(this.Bd){T=T.clone();var Q=this.p_++;T=Kg(T,21,Q);this.componentId&&xM(T,26,this.componentId);Q=T;var k=jQ(Q,1);var l=l===void 0?!1:l;var v=typeof k;l=k==null?k:v==="bigint"?String(C2(64,k)):ZO(k)?v==="string"?Sk(k):l?BG(k):zS(k):void 0;l==null&&(l=Date.now(),l=Number.isFinite(l)?l.toString():"0",lq(Q,1,XW(l)));l=jQ(Q,15);l!=null&&(typeof l==="bigint"?p2(l)?l=Number(l):(l=C2(64,l),l=p2(l)?Number(l):String(l)):l=ZO(l)?typeof l==="number"?zS(l):Sk(l):void 0);l!=null|| Kg(Q,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(l=this.experimentIds.clone(),Ns(Q,mf,16,l));Pc(this,1,1);Q=this.T.length-1E3+1;Q>0&&(this.T.splice(0,Q),this.Y+=Q,Pc(this,3,Q));this.T.push(T);this.td||this.S.enabled||this.S.start()}}; g.h.flush=function(T,Q){var k=this;if(this.T.length===0)T&&T();else if(this.i9&&this.z9)this.L.S=3,sqf(this);else{var l=Date.now();if(this.Jj>l&&this.xm0&&(k.xm=Date.now(),k.Jj=k.xm+G);G=Z1(ac);var z;Pu&&G&&((z=m.g5[G])==null?void 0:z[175237375])!=null&&K8(HWW,3);a:{var w=w===void 0?!1:w;if(Z1(tA_)&&Z1(ac)&&void 0===tA_){z=m.g5;G=z[ac];if(!G)break a;if(G=G.X1)try{G(z,175237375,ee_);break a}catch(r){X1(r)}}w&&(w=m.g5, (z=Z1(ac))&&z in w&&(w=w[z])&&delete w[175237375])}w=m$.T?m$.S(m,m$.T,175237375,m$.L):m$.S(m,175237375,null,m$.L);if(w=w===null?void 0:w)w=rL(w,1,-1),w!==-1&&(k.N=new g.al(w<1?1:w,3E5,.1),k.S.setInterval(k.N.getValue()))}}T&&T();k.B=0},Z=function(G,m){var I=dL(L,Az,3); var z=Number(usX(L,14));g.ur(k.N);k.S.setInterval(k.N.getValue());G===401&&q&&(k.sK=q);z&&(k.Y+=z);m===void 0&&(m=k.isRetryable(G));m&&(k.T=I.concat(k.T),k.td||k.S.enabled||k.S.start());Pc(k,7,1);Q&&Q("net-send-failed",G);++k.B},f=function(){k.network&&k.network.send(U,R,Z)}; Y?Y.then(function(G){Pc(k,5,v);U.requestHeaders["Content-Encoding"]="gzip";U.requestHeaders["Content-Type"]="application/binary";U.body=G;U.aJ=2;f()},function(){Pc(k,6,v); f()}):f()}}}}; g.h.isRetryable=function(T){return 500<=T&&T<600||T===401||T===0};Hc.prototype.send=function(T,Q,k){var l=this,v,L,q,Y,U,R,Z,f,G,m;return g.a(function(I){switch(I.S){case 1:return L=(v=l.lT?new AbortController:void 0)?setTimeout(function(){v.abort()},T.timeoutMillis):void 0,g.z5(I,2,3),q=Object.assign({},{method:T.requestType, headers:Object.assign({},T.requestHeaders)},T.body&&{body:T.body},T.withCredentials&&{credentials:"include"},{signal:T.timeoutMillis&&v?v.signal:null}),g.c(I,fetch(T.url,q),5);case 5:Y=I.T;if(Y.status!==200){(U=k)==null||U(Y.status);I.Ym(3);break}if((R=Q)==null){I.Ym(7);break}return g.c(I,Y.text(),8);case 8:R(I.T);case 7:case 3:g.aI(I);clearTimeout(L);g.n5(I,0);break;case 2:Z=g.by(I);switch((f=Z)==null?void 0:f.name){case "AbortError":(G=k)==null||G(408);break;default:(m=k)==null||m(400)}I.Ym(3)}})}; Hc.prototype.oz=function(){return 4};g.S(tz,g.x);tz.prototype.Ha=function(){this.N=!0;return this}; tz.prototype.build=function(){this.network||(this.network=new Hc);var T=new xf({logSource:this.logSource,Kw:this.Kw?this.Kw:LCt,sessionIndex:this.sessionIndex,aGV:this.dS,Ok:this.Y,td:!1,Ha:this.N,jq:this.jq,network:this.network});g.P(this,T);if(this.S){var Q=this.S,k=DB(T.L);xM(k,7,Q)}T.C=new Gy;this.componentId&&(T.componentId=this.componentId);this.Ht&&(T.Ht=this.Ht);this.pageId&&(T.pageId=this.pageId);this.T&&((k=this.T)?(T.experimentIds||(T.experimentIds=new mf),Q=T.experimentIds,k=k.xo(),xM(Q, 4,k)):T.experimentIds&&lq(T.experimentIds,4));this.L&&(T.i9=T.z9);fzI(T.L);this.network.yu&&this.network.yu(this.logSource);this.network.vPq&&this.network.vPq(T);return T};g.S(Oc,g.x);Oc.prototype.flush=function(T){T=T||[];if(T.length){for(var Q=new EAI,k=[],l=0;l-1?(Q=T[q],k||(Q.fK=!1)):(Q=new NyH(Q,this.src,L,!!l,v),Q.fK=k,T.push(Q));return Q}; g.h.remove=function(T,Q,k,l){T=T.toString();if(!(T in this.listeners))return!1;var v=this.listeners[T];Q=VT(v,Q,k,l);return Q>-1?(Ec(v[Q]),g.Bm(v,Q),v.length==0&&(delete this.listeners[T],this.T--),!0):!1}; g.h.removeAll=function(T){T=T&&T.toString();var Q=0,k;for(k in this.listeners)if(!T||k==T){for(var l=this.listeners[k],v=0;v-1?T[v]:null}; g.h.hasListener=function(T,Q){var k=T!==void 0,l=k?T.toString():"",v=Q!==void 0;return g.jP(this.listeners,function(L){for(var q=0;q>>0);g.fW(g.fL,g.x);g.fL.prototype[wfb]=!0;g.h=g.fL.prototype;g.h.addEventListener=function(T,Q,k,l){g.Qu(this,T,Q,k,l)}; g.h.removeEventListener=function(T,Q,k,l){u6X(this,T,Q,k,l)}; g.h.dispatchEvent=function(T){var Q=this.Za;if(Q){var k=[];for(var l=1;Q;Q=Q.Za)k.push(Q),++l}Q=this.ZE;l=T.type||T;if(typeof T==="string")T=new g.Jz(T,Q);else if(T instanceof g.Jz)T.target=T.target||Q;else{var v=T;T=new g.Jz(l,Q);g.Is(T,v)}v=!0;var L;if(k)for(L=k.length-1;!T.S&&L>=0;L--){var q=T.currentTarget=k[L];v=Gl(q,l,!0,T)&&v}T.S||(q=T.currentTarget=Q,v=Gl(q,l,!0,T)&&v,T.S||(v=Gl(q,l,!1,T)&&v));if(k)for(L=0;!T.S&&L0){this.S--;var T=this.T;this.T=T.next;T.next=null}else T=this.L();return T};var hd;Sa.prototype.add=function(T,Q){var k=tlH.get();k.set(T,Q);this.S?this.S.next=k:this.T=k;this.S=k}; Sa.prototype.remove=function(){var T=null;this.T&&(T=this.T,this.T=this.T.next,this.T||(this.S=null),T.next=null);return T}; var tlH=new m5(function(){return new CL},function(T){return T.reset()}); CL.prototype.set=function(T,Q){this.T=T;this.scope=Q;this.next=null}; CL.prototype.reset=function(){this.next=this.scope=this.T=null};var B4,zl=!1,PL6=new Sa;OIC.prototype.reset=function(){this.context=this.S=this.L=this.T=null;this.Y=!1}; var pfI=new m5(function(){return new OIC},function(T){T.reset()}); g.rc.prototype.then=function(T,Q,k){return Vlf(this,IS(typeof T==="function"?T:null),IS(typeof Q==="function"?Q:null),k)}; g.rc.prototype.$goog_Thenable=!0;g.h=g.rc.prototype;g.h.finally=function(T){var Q=this;T=IS(T);return new Promise(function(k,l){eVf(Q,function(v){T();k(v)},function(v){T(); l(v)})})}; g.h.kE=function(T,Q){return Vlf(this,null,IS(T),Q)}; g.h.catch=g.rc.prototype.kE;g.h.cancel=function(T){if(this.T==0){var Q=new KL(T);g.Ad(function(){FCJ(this,Q)},this)}}; g.h.K0d=function(T){this.T=0;bo(this,2,T)}; g.h.Gbj=function(T){this.T=0;bo(this,3,T)}; g.h.kJ=function(){for(var T;T=E45(this);)y36(this,T,this.T,this.C);this.B=!1}; var kJJ=X1;g.fW(KL,Gv);KL.prototype.name="cancel";g.fW(g.x3,g.fL);g.h=g.x3.prototype;g.h.enabled=!1;g.h.D8=null;g.h.setInterval=function(T){this.d8=T;this.D8&&this.enabled?(this.stop(),this.start()):this.D8&&this.stop()}; g.h.Nwq=function(){if(this.enabled){var T=g.R_()-this.I7;T>0&&T0&&(this.getStatus(),this.B=setTimeout(this.Tp.bind(this), this.z9)),this.getStatus(),this.D=!0,this.T.send(T),this.D=!1}catch(q){this.getStatus(),I7b(this,q)}}; g.h.Tp=function(){typeof F_!="undefined"&&this.T&&(this.Y="Timed out after "+this.z9+"ms, aborting",this.S=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.h.abort=function(T){this.T&&this.L&&(this.getStatus(),this.L=!1,this.N=!0,this.T.abort(),this.N=!1,this.S=T||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ea(this))}; g.h.EK=function(){this.T&&(this.L&&(this.L=!1,this.N=!0,this.T.abort(),this.N=!1),ea(this,!0));g.Jd.Ye.EK.call(this)}; g.h.cX=function(){this.wd()||(this.hj||this.D||this.N?hQy(this):this.Bnm())}; g.h.Bnm=function(){hQy(this)}; g.h.isActive=function(){return!!this.T}; g.h.isComplete=function(){return g.EJ(this)==4}; g.h.getStatus=function(){try{return g.EJ(this)>2?this.T.status:-1}catch(T){return-1}}; g.h.getResponseHeader=function(T){if(this.T&&this.isComplete())return T=this.T.getResponseHeader(T),T===null?void 0:T}; g.h.getLastError=function(){return typeof this.Y==="string"?this.Y:String(this.Y)};Q9.prototype.send=function(T,Q,k){Q=Q===void 0?function(){}:Q; k=k===void 0?function(){}:k; GJJ(T.url,function(l){l=l.target;yu(l)?Q(g.io(l)):k(l.getStatus())},T.requestType,T.body,T.requestHeaders,T.timeoutMillis,T.withCredentials)}; Q9.prototype.oz=function(){return 1};k2.prototype.done=function(){this.logger.RA(this.event,jh()-this.startTime)}; g.S(lH,kf);g.S(vn,lH);g.h=vn.prototype;g.h.Rt=function(){}; g.h.NA=function(){}; g.h.RA=function(){}; g.h.O4=function(){}; g.h.UE=function(){}; g.h.BQ=function(T,Q,k,l){return l}; g.h.zA=function(){}; g.h.Mb=function(){}; g.h.yL=function(){}; g.S(Li,lH);g.h=Li.prototype;g.h.update=function(T){this.logger.dispose();this.logger=T}; g.h.NA=function(T){this.logger.NA(T)}; g.h.RA=function(T,Q){this.logger.RA(T,Q)}; g.h.O4=function(T){this.logger.O4(T)}; g.h.UE=function(){this.logger.UE()}; g.h.BQ=function(T,Q,k,l){return this.logger.BQ(T,Q,k,l)}; g.h.zA=function(T){this.logger.zA(T)}; g.h.Mb=function(T){this.logger.Mb(T)}; g.h.yL=function(T){this.logger.yL(T)}; g.h.Rt=function(T){this.logger.Rt(T)}; g.S(BRJ,g.x);g.S(qS,lH);g.h=qS.prototype;g.h.Rt=function(T){this.metrics.geB.zW(T,this.XJ)}; g.h.NA=function(T){this.metrics.eventCount.ML(T,this.XJ)}; g.h.RA=function(T,Q){this.metrics.Ll.zW(Q,T,this.XJ)}; g.h.O4=function(T){this.metrics.errorCount.ML(T,this.XJ)}; g.h.BQ=function(T,Q,k,l){function v(Y){if(!L.wd()){var U=jh()-q;L.metrics.oo9.zW(U,T,k,Y,Q,L.XJ)}} var L=this,q=jh();l.then(function(){return void v(0)},function(Y){return void v(Y instanceof OJ?Y.code:-1)}); return l}; g.h.zA=function(T){this.metrics.QnB.ML(T,this.XJ)}; g.h.Mb=function(T){this.metrics.HS.ML(T,this.XJ)}; g.h.yL=function(T){this.metrics.EoO.ML(T,this.XJ)}; g.S(gb,qS);gb.prototype.UE=function(){zQX(this.T)};g.S(MS,wg);g.S(Y2,wg);g.S(Up,wg);var xV5=k4(Up),dVX=function(T){return L8(function(Q){return Q instanceof T&&!Jm(Q)})}(Up); Up.messageId="bfkj";g.S(XUX,wg);g.S(jH,wg);g.S(R5,wg);var NRH=k4(R5);g.S(fi,g.x);fi.prototype.snapshot=function(T){if(this.wd())throw Error("Already disposed");this.logger.NA("n");var Q=this.logger.share();return this.L.then(function(k){var l=k.Wj;return new Promise(function(v){var L=new k2(Q,"n");l(function(q){L.done();Q.Rt(q.length);Q.UE();Q.dispose();v(q)},[T.uh, T.z3,T.QP,T.T3])})})}; fi.prototype.Gq=function(T){var Q=this;if(this.wd())throw Error("Already disposed");this.logger.NA("n");var k=o5(this.logger,function(){return Q.Y([T.uh,T.z3,T.QP,T.T3])},"n"); this.logger.Rt(k.length);this.logger.UE();return k}; fi.prototype.QT=function(T){this.L.then(function(Q){var k;(k=Q.sKj)==null||k(T)})}; fi.prototype.Lr=function(){return this.logger.share()};g.S(I5,wg);g.S(h8,wg);sp.prototype.Xo=function(T){return OCu(this,T,new vn,0)};g.S(Sh,g.x);Sh.prototype.snapshot=function(T){var Q=this;return g.a(function(k){switch(k.S){case 1:if(Q.wd())throw Error("Already disposed");if(Q.S||Q.C){k.Ym(2);break}return g.c(k,Q.N.promise,2);case 2:if(!Q.S){k.Ym(4);break}return g.c(k,Q.S.snapshot(T),5);case 5:return k.return(k.T);case 4:throw Q.C;}})}; Sh.prototype.QT=function(T){var Q,k;(Q=this.S)==null||(k=Q.QT)==null||k.call(Q,T)}; Sh.prototype.handleError=function(T){if(!this.wd()){this.C=T;this.N.resolve();var Q,k;(k=(Q=this.options).gBd)==null||k.call(Q,T)}}; Sh.prototype.Lr=function(){return this.logger.share()}; var $Vu={Tcj:432E5,Lg:3E5,xG:10,xW:1E4,X7:3E4,j3:3E4,agm:6E4,Ea:1E3,o8:6E4,Qe:6E5,hq:.25,cZ:2,maxAttempts:10};var iJ_,QjT=(iJ_=Math.imul)!=null?iJ_:function(T,Q){return T*Q|0},Xp=[196, 200,224,18];wb.prototype.xo=function(){return String(this.T)+","+this.S.join()}; wb.prototype.o2=function(T,Q){var k=void 0;if(this.S[this.T]!==T){var l=this.S.indexOf(T);l!==-1?(this.S.splice(l,1),l0;)Q[k++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(T%62),T=Math.floor(T/62);return Q.join("")}};var ZH5;g.S(NS,g.x);NS.prototype.JL=function(T,Q){var k=this.xd(T);Q==null||Q(k);return o5(this.logger,function(){return g.dJ(k,2)},this.S)}; ZH5=Symbol.dispose;g.S(rb,NS);rb.prototype.xd=function(T,Q){var k=this;this.logger.NA(this.T);++this.N>=this.B&&this.L.resolve();var l=T();T=o5(this.logger,function(){return k.Y(l)},"C"); if(T===void 0)throw new ip(17,"YNJ:Undefined");if(!(T instanceof Uint8Array))throw new ip(18,"ODM:Invalid");Q==null||Q(T);return T}; g.S(cn,NS);cn.prototype.xd=function(){return this.Y}; g.S(Db,NS);Db.prototype.xd=function(){var T=this;return o5(this.logger,function(){return Am(T.Y)},"d")}; Db.prototype.JL=function(){return this.Y}; g.S(a5,NS);a5.prototype.xd=function(){if(this.Y)return this.Y;this.Y=ftT(this,function(T){return"_"+Rtg(T)}); return ftT(this,function(T){return T})}; g.S(ni,NS);ni.prototype.xd=function(){var T=Math.floor(Date.now()/1E3),Q=[Math.random()*255,Math.random()*255],k=Q.concat([this.Y&255,this.clientState],[T>>24&255,T>>16&255,T>>8&255,T&255]);T=new Uint8Array(2+k.length);T[0]=34;T[1]=k.length;T.set(k,2);k=T.subarray(2);for(var l=Q=Q.length;l150))try{this.cache=new qXX(T,this.logger)}catch(Q){this.reportError(new ip(22,"GBJ:init",Q))}}; g.h.reportError=function(T){this.logger.O4(T.code);this.onError(T);return T}; var ItJ=function(T){return L8(function(Q){if(!xpA(Q))return!1;for(var k=g.B(Object.entries(T)),l=k.next();!l.done;l=k.next()){var v=g.B(l.value);l=v.next().value;v=v.next().value;if(!(l in Q)){if(v.WHe===!0)continue;return!1}if(!v(Q[l]))return!1}return!0})}({FI:function(T){return L8(function(Q){return Q instanceof T})}(Sh)},"");var Vay=(new Date).getTime();g.S(t8,wg);var VPA=k4(t8);dif.prototype.getMetadata=function(){return this.metadata};Op.prototype.getMetadata=function(){return this.metadata}; Op.prototype.getStatus=function(){return this.status};pi.prototype.C=function(T,Q){Q=Q===void 0?{}:Q;return new dif(T,this,Q)}; pi.prototype.getName=function(){return this.name};var TaW=new pi("/google.internal.waa.v1.Waa/Create",I5,t8,function(T){return T.xo()},VPA);g.S(Wn,wg);var HCb=new pi("/google.internal.waa.v1.Waa/GenerateIT",h8,Wn,function(T){return T.xo()},k4(Wn));var lB6=new Set(["SAPISIDHASH","APISIDHASH"]);g.S($2,wg);$2.prototype.getValue=function(){var T=jQ(this,2);if(Array.isArray(T)||T instanceof wg)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return YM(this,2)};g.S(J8,wg);J8.prototype.getMessage=function(){return Df(this,2)}; var Diy=k4(J8);eh.prototype.cz=function(T,Q){T=="data"?this.L.push(Q):T=="metadata"?this.N.push(Q):T=="status"?this.B.push(Q):T=="end"?this.Y.push(Q):T=="error"&&this.S.push(Q);return this}; eh.prototype.removeListener=function(T,Q){T=="data"?V9(this.L,Q):T=="metadata"?V9(this.N,Q):T=="status"?V9(this.B,Q):T=="end"?V9(this.Y,Q):T=="error"&&V9(this.S,Q);return this}; eh.prototype.cancel=function(){this.T.abort()}; eh.prototype.cancel=eh.prototype.cancel;eh.prototype.removeListener=eh.prototype.removeListener;eh.prototype.on=eh.prototype.cz;g.S(Asf,Error);g.fW(g.Tm,ZCt);g.Tm.prototype.T=function(){var T=new Qq(this.Y,this.L);this.S&&T.setCredentialsMode(this.S);return T}; g.Tm.prototype.setCredentialsMode=function(T){this.S=T}; g.fW(Qq,g.fL);g.h=Qq.prototype;g.h.open=function(T,Q){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.qO=T;this.z9=Q;this.readyState=1;je(this)}; g.h.send=function(T){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.j.signal.aborted)throw this.abort(),Error("Request was aborted.");this.T=!0;var Q={headers:this.D,method:this.qO,credentials:this.N,cache:void 0,signal:this.j.signal};T&&(Q.body=T);(this.hj||g.VC).fetch(new Request(this.z9,Q)).then(this.b_.bind(this),this.Xg.bind(this))}; g.h.abort=function(){this.response=this.responseText="";this.D=new Headers;this.status=0;this.j.abort();this.L&&this.L.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.T&&this.readyState!=4&&(this.T=!1,kQ(this));this.readyState=0}; g.h.b_=function(T){if(this.T&&(this.Y=T,this.S||(this.status=this.Y.status,this.statusText=this.Y.statusText,this.S=T.headers,this.readyState=2,je(this)),this.T&&(this.readyState=3,je(this),this.T)))if(this.responseType==="arraybuffer")T.arrayBuffer().then(this.Ar.bind(this),this.Xg.bind(this));else if(typeof g.VC.ReadableStream!=="undefined"&&"body"in T){this.L=T.body.getReader();if(this.B){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.C=new TextDecoder;at5(this)}else T.text().then(this.jC.bind(this),this.Xg.bind(this))}; g.h.NH=function(T){if(this.T){if(this.B&&T.value)this.response.push(T.value);else if(!this.B){var Q=T.value?T.value:new Uint8Array(0);if(Q=this.C.decode(Q,{stream:!T.done}))this.response=this.responseText+=Q}T.done?kQ(this):je(this);this.readyState==3&&at5(this)}}; g.h.jC=function(T){this.T&&(this.response=this.responseText=T,kQ(this))}; g.h.Ar=function(T){this.T&&(this.response=T,kQ(this))}; g.h.Xg=function(){this.T&&kQ(this)}; g.h.setRequestHeader=function(T,Q){this.D.append(T,Q)}; g.h.getResponseHeader=function(T){return this.S?this.S.get(T.toLowerCase())||"":""}; g.h.getAllResponseHeaders=function(){if(!this.S)return"";for(var T=[],Q=this.S.entries(),k=Q.next();!k.done;)k=k.value,T.push(k[0]+": "+k[1]),k=Q.next();return T.join("\r\n")}; g.h.setCredentialsMode=function(T){this.N=T}; Object.defineProperty(Qq.prototype,"withCredentials",{get:function(){return this.N==="include"}, set:function(T){this.setCredentialsMode(T?"include":"same-origin")}});g.lN.prototype.toString=function(){var T=[],Q=this.N;Q&&T.push(YQ(Q,QTd,!0),":");var k=this.T;if(k||Q=="file")T.push("//"),(Q=this.j)&&T.push(YQ(Q,QTd,!0),"@"),T.push(g.Nn(k).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),k=this.L,k!=null&&T.push(":",String(k));if(k=this.S)this.T&&k.charAt(0)!="/"&&T.push("/"),T.push(YQ(k,k.charAt(0)=="/"?jT9:kH$,!0));(k=this.Y.toString())&&T.push("?",k);(k=this.B)&&T.push("#",YQ(k,loJ));return T.join("")}; g.lN.prototype.resolve=function(T){var Q=this.clone(),k=!!T.N;k?g.oZ(Q,T.N):k=!!T.j;k?Q.j=T.j:k=!!T.T;k?g.v0(Q,T.T):k=T.L!=null;var l=T.S;if(k)g.LV(Q,T.L);else if(k=!!T.S){if(l.charAt(0)!="/")if(this.T&&!this.S)l="/"+l;else{var v=Q.S.lastIndexOf("/");v!=-1&&(l=Q.S.slice(0,v+1)+l)}v=l;if(v==".."||v==".")l="";else if(g.rz(v,"./")||g.rz(v,"/.")){l=AV(v,"/");v=v.split("/");for(var L=[],q=0;q1||L.length==1&&L[0]!="")&&L.pop(), l&&q==v.length&&L.push("")):(L.push(Y),l=!0)}l=L.join("/")}else l=v}k?Q.S=l:k=T.Y.toString()!=="";k?qj(Q,T.Y.clone()):k=!!T.B;k&&(Q.B=T.B);return Q}; g.lN.prototype.clone=function(){return new g.lN(this)}; var QTd=/[#\/\?@]/g,kH$=/[#\?:]/g,jT9=/[#\?]/g,PpH=/[#\?@]/g,loJ=/#/g;g.h=Mj.prototype;g.h.add=function(T,Q){Zg(this);this.L=null;T=fV(this,T);var k=this.T.get(T);k||this.T.set(T,k=[]);k.push(Q);this.S=this.S+1;return this}; g.h.remove=function(T){Zg(this);T=fV(this,T);return this.T.has(T)?(this.L=null,this.S=this.S-this.T.get(T).length,this.T.delete(T)):!1}; g.h.clear=function(){this.T=this.L=null;this.S=0}; g.h.isEmpty=function(){Zg(this);return this.S==0}; g.h.forEach=function(T,Q){Zg(this);this.T.forEach(function(k,l){k.forEach(function(v){T.call(Q,v,l,this)},this)},this)}; g.h.zG=function(){Zg(this);for(var T=Array.from(this.T.values()),Q=Array.from(this.T.keys()),k=[],l=0;l0?String(T[0]):Q}; g.h.toString=function(){if(this.L)return this.L;if(!this.T)return"";for(var T=[],Q=Array.from(this.T.keys()),k=0;k>>3;L.L!=1&&L.L!=2&&L.L!=15&&he(L,q,Y,"unexpected tag");L.T=1;L.S=0;L.Y=0} function k(U){L.Y++;L.Y==5&&U&240&&he(L,q,Y,"message length too long");L.S|=(U&127)<<(L.Y-1)*7;U&128||(L.T=2,L.j=0,typeof Uint8Array!=="undefined"?L.N=new Uint8Array(L.S):L.N=Array(L.S),L.S==0&&v())} function l(U){L.N[L.j++]=U;L.j==L.S&&v()} function v(){if(L.L<15){var U={};U[L.L]=L.N;L.C.push(U)}L.T=0} for(var L=this,q=T instanceof Array?T:new Uint8Array(T),Y=0;Y0?T:null};sz.prototype.isInputValid=function(){return this.T===null}; sz.prototype.dw=function(){return this.T}; sz.prototype.sf=function(){return!1}; sz.prototype.parse=function(T){this.T!==null&&etb(this,T,"stream already broken");var Q=null;try{var k=this.L;k.L||JsC(k,T,"stream already broken");k.T+=T;var l=Math.floor(k.T.length/4);if(l==0)var v=null;else{try{var L=AV5(k.T.slice(0,l*4))}catch(q){JsC(k,k.T,q.message)}k.S+=l*4;k.T=k.T.slice(l*4);v=L}Q=v===null?null:this.Y.parse(v)}catch(q){etb(this,T,q.message)}this.S+=T.length;return Q};var vPJ={INIT:0,Eq:1,j8:2,zc:3,SI:4,Te:5,STRING:6,Z4:7,Gn:8,yO:9,zl:10,q7:11,gs:12,TX:13,SJ:14,c_:15,uB:16,WF:17,Oo:18,LZ:19,A$:20};g.h=CV.prototype;g.h.isInputValid=function(){return this.N!=3}; g.h.dw=function(){return this.D}; g.h.done=function(){return this.N===2}; g.h.sf=function(){return!1}; g.h.parse=function(T){function Q(){for(;G0;)if(I=T[G++], L.j===4?L.j=0:L.j++,!I)break a;if(I==='"'&&!L.C){L.T=l();break}if(I==="\\"&&!L.C&&(L.C=!0,I=T[G++],!I))break;if(L.C)if(L.C=!1,I==="u"&&(L.j=1),I=T[G++])continue;else break;Y.lastIndex=G;I=Y.exec(T);if(!I){G=T.length+1;break}G=I.index+1;I=T[I.index];if(!I)break}L.L+=G-z;continue;case U.yO:if(!I)continue;I==="r"?L.T=U.zl:B0(L,T,G);continue;case U.zl:if(!I)continue;I==="u"?L.T=U.q7:B0(L,T,G);continue;case U.q7:if(!I)continue;I==="e"?L.T=l():B0(L,T,G);continue;case U.gs:if(!I)continue;I==="a"?L.T=U.TX: B0(L,T,G);continue;case U.TX:if(!I)continue;I==="l"?L.T=U.SJ:B0(L,T,G);continue;case U.SJ:if(!I)continue;I==="s"?L.T=U.c_:B0(L,T,G);continue;case U.c_:if(!I)continue;I==="e"?L.T=l():B0(L,T,G);continue;case U.uB:if(!I)continue;I==="u"?L.T=U.WF:B0(L,T,G);continue;case U.WF:if(!I)continue;I==="l"?L.T=U.Oo:B0(L,T,G);continue;case U.Oo:if(!I)continue;I==="l"?L.T=l():B0(L,T,G);continue;case U.LZ:I==="."?L.T=U.A$:B0(L,T,G);continue;case U.A$:if("0123456789.eE+-".indexOf(I)!==-1)continue;else G--,L.L--,L.T= l();continue;default:B0(L,T,G)}}} function l(){var I=q.pop();return I!=null?I:U.Eq} function v(I){L.S>1||(I||(I=f===-1?L.Y+T.substring(Z,G):T.substring(f,G)),L.z9?L.B.push(I):L.B.push(JSON.parse(I)),f=G)} for(var L=this,q=L.qO,Y=L.hj,U=vPJ,R=T.length,Z=0,f=-1,G=0;G0?(m=L.B,L.B=[],m):null}return null};zm.prototype.isInputValid=function(){return this.N===null}; zm.prototype.dw=function(){return this.N}; zm.prototype.sf=function(){return!1}; zm.prototype.parse=function(T){function Q(U){L.S=6;L.N="The stream is broken @"+L.T+"/"+q+". Error: "+U+". With input:\n";throw Error(L.N);} function k(){L.L=new CV({Ztd:!0,Il:!0})} function l(U){if(U)for(var R=0;R1)&&Q("extra status: "+U);L.B=!0;var R={};R[2]=U[0];L.Y.push(R)}} for(var L=this,q=0;q0?(T=L.Y,L.Y=[],T):null};XA.prototype.kO=function(){return this.T}; XA.prototype.getStatus=function(){return this.N}; XA.prototype.z9=function(T){T=T.target;try{if(T==this.T)a:{var Q=g.EJ(this.T),k=this.T.S,l=this.T.getStatus(),v=g.io(this.T);T=[];if(g.Vu(this.T)instanceof Array){var L=g.Vu(this.T);L.length>0&&L[0]instanceof Uint8Array&&(this.D=!0,T=L)}if(!(Q<3||Q==3&&!v&&T.length==0))if(l=l==200||l==206,Q==4&&(k==8?w0(this,7):k==7?w0(this,8):l||w0(this,3)),this.S||(this.S=Fey(this.T),this.S==null&&w0(this,5)),this.N>2)d0(this);else{if(T.length>this.L){var q=T.length;k=[];try{if(this.S.sf())for(var Y=0;Ythis.L){Y=v.slice(this.L);this.L=v.length;try{var R=this.S.parse(Y);R!=null&&this.Y&&this.Y(R)}catch(Z){w0(this,5);d0(this);break a}}Q==4?(v.length!= 0||this.D?w0(this,2):w0(this,4),d0(this)):w0(this,1)}}}catch(Z){w0(this,6),d0(this)}};g.h=EBI.prototype;g.h.cz=function(T,Q){var k=this.S[T];k||(k=[],this.S[T]=k);k.push(Q);return this}; g.h.addListener=function(T,Q){this.cz(T,Q);return this}; g.h.removeListener=function(T,Q){var k=this.S[T];k&&g.zv(k,Q);(T=this.T[T])&&g.zv(T,Q);return this}; g.h.once=function(T,Q){var k=this.T[T];k||(k=[],this.T[T]=k);k.push(Q);return this}; g.h.O_d=function(T){var Q=this.S.data;Q&&ysy(T,Q);(Q=this.T.data)&&ysy(T,Q);this.T.data=[]}; g.h.gM9=function(){switch(this.L.getStatus()){case 1:Nj(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Nj(this,"error");break;case 8:Nj(this,"close");break;case 2:Nj(this,"end")}};iH5.prototype.serverStreaming=function(T,Q,k,l){var v=this,L=T.substring(0,T.length-l.name.length);return ofX(function(q){var Y=q.X4,U=q.getMetadata(),R=Qlt(v,!1);U=jl5(v,U,R,L+Y.getName());var Z=kyf(R,Y.S,!0);q=Y.T(q.Sx);R.send(U,"POST",q);return Z},this.z8).call(this,l.C(Q,k))};vf5.prototype.create=function(T,Q,k){var l=this.T,v=this.S+"/$rpc/google.internal.waa.v1.Waa/Create";Q=Q||{};k=k===void 0?{}:k;return tyb(l,v,T,Q,TaW,k)};var Lfy="://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(" "),qcf=/\bocr\b/;var MHT=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(T){throw T;}},{a6K:!0, HUj:!0,yV_:!1,zzj:dpJ,q_m:N$A,gse:!1,Apq:!1,MoH:!0,S_d:wm$,Dyj:!1,XAH:!1,MPK:!1});var r0=null,Dg=!1,Cr5=1,hmX=Symbol("SIGNAL"),I6={version:0,D3V:0,RY:!1,pz:void 0,FF:void 0,j9:void 0,Us:0,Wg:void 0,dh:void 0,Ee:!1,QB:!1,kind:"unknown",nx:function(){return!1}, tK:function(){}, hD:function(){}, tod:function(){}};var hX=Symbol("UNSET"),sZ=Symbol("COMPUTING"),SU=Symbol("ERRORED");Object.assign({},I6,{value:hX,RY:!0,error:null,zZ:bN,kind:"computed",nx:function(T){return T.value===hX||T.value===sZ}, tK:function(T){if(T.value===sZ)throw Error("");var Q=T.value;T.value=sZ;var k=RmC(T),l=!1;try{var v=T.Fl();c0(null);l=Q!==hX&&Q!==SU&&v!==SU&&T.zZ(Q,v)}catch(L){v=SU,T.error=L}finally{ZS5(T,k)}l?T.value=Q:(T.value=v,T.version++)}});var IBJ=Object.assign({},I6,{zZ:bN,value:void 0,kind:"signal"});Object.assign({},I6,{value:hX,RY:!0,error:null,zZ:bN,kind:"linkedSignal",nx:function(T){return T.value===hX||T.value===sZ}, tK:function(T){if(T.value===sZ)throw Error("");var Q=T.value;T.value=sZ;var k=RmC(T);try{var l=T.source();var v=T.Fl(l,Q===hX||Q===SU?void 0:{source:T.Sgm,value:Q});T.Sgm=l}catch(L){v=SU,T.error=L}finally{ZS5(T,k)}Q!==hX&&v!==SU&&T.zZ(Q,v)?T.value=Q:(T.value=v,T.version++)}});Object.assign({},I6,{QB:!0,Ee:!1,hD:function(T){T.schedule!==null&&T.schedule(T.bae)}, Anq:!1,GzB:function(){}});g.S(xQ,g.fL);xQ.prototype.dispose=function(){window.removeEventListener("offline",this.L);window.removeEventListener("online",this.L);this.qy.wC(this.N);delete xQ.instance}; xQ.prototype.In=function(){return this.T}; xQ.prototype.Jh=function(){var T=this;this.N=this.qy.oD(function(){var Q;return g.a(function(k){if(k.S==1)return T.T?((Q=window.navigator)==null?0:Q.onLine)?k.Ym(3):g.c(k,KV(T),3):g.c(k,KV(T),3);T.Jh();g.BT(k)})},3E4)};g.S(zm6,wg);var LI_=C56(zm6,[0,Mc,Xgd,YiJ,Mc,-2,YiJ,qiW]);H0.prototype.set=function(T,Q){Q=Q===void 0?!0:Q;0<=T&&T<52&&Number.isInteger(T)&&this.data[T]!==Q&&(this.data[T]=Q,this.T=-1)}; H0.prototype.get=function(T){return!!this.data[T]};var Oz;g.fW(g.ee,g.x);g.h=g.ee.prototype;g.h.start=function(){this.stop();this.Y=!1;var T=wcI(this),Q=dw5(this);T&&!Q&&this.S.mozRequestAnimationFrame?(this.T=g.Qu(this.S,"MozBeforePaint",this.L),this.S.mozRequestAnimationFrame(null),this.Y=!0):this.T=T&&Q?T.call(this.S,this.L):this.S.setTimeout(tAI(this.L),20)}; g.h.stop=function(){if(this.isActive()){var T=wcI(this),Q=dw5(this);T&&!Q&&this.S.mozRequestAnimationFrame?Y3(this.T):T&&Q?Q.call(this.S,this.T):this.S.clearTimeout(this.T)}this.T=null}; g.h.isActive=function(){return this.T!=null}; g.h.S7=function(){this.Y&&this.T&&Y3(this.T);this.T=null;this.B.call(this.N,g.R_())}; g.h.EK=function(){this.stop();g.ee.Ye.EK.call(this)};g.fW(g.FA,g.x);g.h=g.FA.prototype;g.h.Ie=0;g.h.EK=function(){g.FA.Ye.EK.call(this);this.stop();delete this.T;delete this.S}; g.h.start=function(T){this.stop();this.Ie=g.P4(this.L,T!==void 0?T:this.d8)}; g.h.stop=function(){this.isActive()&&g.VC.clearTimeout(this.Ie);this.Ie=0}; g.h.isActive=function(){return this.Ie!=0}; g.h.Qk=function(){this.Ie=0;this.T&&this.T.call(this.S)};g.S(g.Vq,g.x);g.h=g.Vq.prototype;g.h.SF=function(T){this.L=arguments;this.D8||this.S?this.T=!0:Te(this)}; g.h.stop=function(){this.D8&&(g.VC.clearTimeout(this.D8),this.D8=null,this.T=!1,this.L=null)}; g.h.pause=function(){this.S++}; g.h.resume=function(){this.S--;this.S||!this.T||this.D8||(this.T=!1,Te(this))}; g.h.EK=function(){g.x.prototype.EK.call(this);this.stop()};g.QO.prototype[Symbol.iterator]=function(){return this}; g.QO.prototype.next=function(){var T=this.T.next();return{value:T.done?void 0:this.S.call(void 0,T.value),done:T.done}};g.fW(g.MN,g.fL);g.h=g.MN.prototype;g.h.isPlaying=function(){return this.T==1}; g.h.isPaused=function(){return this.T==-1}; g.h.ZQ=function(){this.jR("begin")}; g.h.EE=function(){this.jR("end")}; g.h.onFinish=function(){this.jR("finish")}; g.h.onStop=function(){this.jR("stop")}; g.h.jR=function(T){this.dispatchEvent(T)};var qk$=aO(function(){var T=g.fO("DIV"),Q=g.Y1?"-webkit":$1?"-moz":null,k="transition:opacity 1s linear;";Q&&(k+=Q+"-transition:opacity 1s linear;");Q=ATT({style:k});if(T.nodeType===1&&/^(script|style)$/i.test(T.tagName))throw Error("");T.innerHTML=fl(Q);return g.JZ(T.firstChild,"transition")!=""});g.fW(Yh,g.MN);g.h=Yh.prototype;g.h.play=function(){if(this.isPlaying())return!1;this.ZQ();this.jR("play");this.startTime=g.R_();this.T=1;if(qk$())return g.W2(this.S,this.B),this.L=g.P4(this.bYd,void 0,this),!0;this.xi(!1);return!1}; g.h.bYd=function(){g.jC(this.S);bSX(this.S,this.C);g.W2(this.S,this.Y);this.L=g.P4((0,g.Mp)(this.xi,this,!1),this.N*1E3)}; g.h.stop=function(){this.isPlaying()&&this.xi(!0)}; g.h.xi=function(T){g.W2(this.S,"transition","");g.VC.clearTimeout(this.L);g.W2(this.S,this.Y);this.endTime=g.R_();this.T=0;if(T)this.onStop();else this.onFinish();this.EE()}; g.h.EK=function(){this.stop();Yh.Ye.EK.call(this)}; g.h.pause=function(){};var czy={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};U7("Element","attributes")||U7("Node","attributes");U7("Element","innerHTML")||U7("HTMLElement","innerHTML");U7("Node","nodeName");U7("Node","nodeType");U7("Node","parentNode");U7("Node","childNodes");U7("HTMLElement","style")||U7("Element","style");U7("HTMLStyleElement","sheet");var xwb=aBX("getPropertyValue"),Pr5=aBX("setProperty");U7("Element","namespaceURI")||U7("Node","namespaceURI");var Kfu={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var pc6,GvA,OSt,tHg,WfX;pc6=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]");GvA=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.gPW=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.Z5=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]");OSt=/^http:\/\/.*/;g.MNp=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");tHg=/\s+/;WfX=/[\d\u06f0-\u06f9]/;Ge.prototype.Xu=function(){return new mz(this.S())}; Ge.prototype[Symbol.iterator]=function(){return new IF(this.S())}; Ge.prototype.T=function(){return new IF(this.S())}; g.S(mz,g.Xy);mz.prototype.next=function(){return this.S.next()}; mz.prototype[Symbol.iterator]=function(){return new IF(this.S)}; mz.prototype.T=function(){return new IF(this.S)}; g.S(IF,Ge);IF.prototype.next=function(){return this.L.next()};s7.prototype.clone=function(){return new s7(this.T,this.C,this.L,this.N,this.Y,this.B,this.S,this.j)}; s7.prototype.equals=function(T){return this.T==T.T&&this.C==T.C&&this.L==T.L&&this.N==T.N&&this.Y==T.Y&&this.B==T.B&&this.S==T.S&&this.j==T.j};Cb.prototype.clone=function(){return new Cb(this.start,this.end)};(function(){if(BZg){var T=/Windows NT ([0-9.]+)/;return(T=T.exec(g.KJ()))?T[1]:"0"}return Gz?(T=/1[0|1][_.][0-9_.]+/,(T=T.exec(g.KJ()))?T[0].replace(/_/g,"."):"10"):g.iC?(T=/Android\s+([^\);]+)(\)|;)/,(T=T.exec(g.KJ()))?T[1]:""):rTJ||cTE||Dpv?(T=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(T=T.exec(g.KJ()))?T[1].replace(/_/g,"."):""):""})();var JzI=function(){if(g.Rn)return Bq(/Firefox\/([0-9.]+)/);if(g.RF||g.$n||g.Va)return CW5;if(g.hW){if(Kl()||xP()){var T=Bq(/CriOS\/([0-9.]+)/);if(T)return T}return Bq(/Chrome\/([0-9.]+)/)}if(g.mp&&!Kl())return Bq(/Version\/([0-9.]+)/);if(Fw||EG){if(T=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.KJ()))return T[1]+"."+T[2]}else if(g.TW)return(T=Bq(/Android\s+([0-9.]+)/))?T:Bq(/Version\/([0-9.]+)/);return""}();g.fW(g.XE,g.x);g.h=g.XE.prototype;g.h.subscribe=function(T,Q,k){var l=this.S[T];l||(l=this.S[T]=[]);var v=this.B;this.T[v]=T;this.T[v+1]=Q;this.T[v+2]=k;this.B=v+3;l.push(v);return v}; g.h.unsubscribe=function(T,Q,k){if(T=this.S[T]){var l=this.T;if(T=T.find(function(v){return l[v+1]==Q&&l[v+2]==k}))return this.Y_(T)}return!1}; g.h.Y_=function(T){var Q=this.T[T];if(Q){var k=this.S[Q];this.Y!=0?(this.L.push(T),this.T[T+1]=function(){}):(k&&g.zv(k,T),delete this.T[T],delete this.T[T+1],delete this.T[T+2])}return!!Q}; g.h.publish=function(T,Q){var k=this.S[T];if(k){var l=Array(arguments.length-1),v=arguments.length,L;for(L=1;L0&&this.Y==0)for(;k=this.L.pop();)this.Y_(k)}}return L!=0}return!1}; g.h.clear=function(T){if(T){var Q=this.S[T];Q&&(Q.forEach(this.Y_,this),delete this.S[T])}else this.T.length=0,this.S={}}; g.h.EK=function(){g.XE.Ye.EK.call(this);this.clear();this.L.length=0};g.wl.prototype.set=function(T,Q){Q===void 0?this.T.remove(T):this.T.set(T,g.pL(Q))}; g.wl.prototype.get=function(T){try{var Q=this.T.get(T)}catch(k){return}if(Q!==null)try{return JSON.parse(Q)}catch(k){throw"Storage: Invalid value was encountered";}}; g.wl.prototype.remove=function(T){this.T.remove(T)};g.fW(dl,g.wl);dl.prototype.set=function(T,Q){dl.Ye.set.call(this,T,Eft(Q))}; dl.prototype.S=function(T){T=dl.Ye.get.call(this,T);if(T===void 0||T instanceof Object)return T;throw"Storage: Invalid value was encountered";}; dl.prototype.get=function(T){if(T=this.S(T)){if(T=T.data,T===void 0)throw"Storage: Invalid value was encountered";}else T=void 0;return T};g.fW(NN,dl);NN.prototype.set=function(T,Q,k){if(Q=Eft(Q)){if(k){if(k=k.length)return g.R6;var v=k.key(Q++);if(T)return g.wR(v);v=k.getItem(v);if(typeof v!=="string")throw"Storage mechanism: Invalid value was encountered";return g.wR(v)}; return l}; g.h.clear=function(){cq(this);this.T.clear()}; g.h.key=function(T){cq(this);return this.T.key(T)};g.fW(D5,rl);g.fW(VHy,rl);g.fW(aF,bw);aF.prototype.set=function(T,Q){this.S.set(this.T+T,Q)}; aF.prototype.get=function(T){return this.S.get(this.T+T)}; aF.prototype.remove=function(T){this.S.remove(this.T+T)}; aF.prototype.Xu=function(T){var Q=this.S[Symbol.iterator](),k=this,l=new g.Xy;l.next=function(){var v=Q.next();if(v.done)return v;for(v=v.value;v.slice(0,k.T.length)!=k.T;){v=Q.next();if(v.done)return v;v=v.value}return g.wR(T?v.slice(k.T.length):k.S.get(v))}; return l};nb.prototype.getValue=function(){return this.S}; nb.prototype.clone=function(){return new nb(this.T,this.S)};g.h=Kb.prototype;g.h.o2=function(T,Q){var k=this.T;k.push(new nb(T,Q));T=k.length-1;Q=this.T;for(k=Q[T];T>0;){var l=T-1>>1;if(Q[l].T>k.T)Q[T]=Q[l],T=l;else break}Q[T]=k}; g.h.remove=function(){var T=this.T,Q=T.length,k=T[0];if(!(Q<=0)){if(Q==1)T.length=0;else{T[0]=T.pop();T=0;Q=this.T;for(var l=Q.length,v=Q[T];T>1;){var L=T*2+1,q=T*2+2;L=qv.T)break;Q[T]=Q[L];T=L}Q[T]=v}return k.getValue()}}; g.h.b0=function(){for(var T=this.T,Q=[],k=T.length,l=0;l>>16&65535|0;for(var L;k!==0;){L=k>2E3?2E3:k;k-=L;do v=v+Q[l++]|0,T=T+v|0;while(--L);v%=65521;T%=65521}return v|T<<16|0};for(var Rb={},Cs,foT=[],B_=0;B_<256;B_++){Cs=B_;for(var GHW=0;GHW<8;GHW++)Cs=Cs&1?3988292384^Cs>>>1:Cs>>>1;foT[B_]=Cs}Rb=function(T,Q,k,l){k=l+k;for(T^=-1;l>>8^foT[(T^Q[l])&255];return T^-1};var ki={};ki={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 E7=[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],VO=[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],z8b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],R8I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Le=Array(576);tJ(Le);var qI=Array(60);tJ(qI);var iw=Array(512);tJ(iw);var FE=Array(256);tJ(FE);var yO=Array(29);tJ(yO);var Tf=Array(30);tJ(Tf);var SJT,Co5,BcH,sSt=!1;var Ib;Ib=[new ma(0,0,0,0,function(T,Q){var k=65535;for(k>T.MB-5&&(k=T.MB-5);;){if(T.Hh<=1){Z0(T);if(T.Hh===0&&Q===0)return 1;if(T.Hh===0)break}T.UG+=T.Hh;T.Hh=0;var l=T.l5+k;if(T.UG===0||T.UG>=l)if(T.Hh=T.UG-l,T.UG=l,gE(T,!1),T.Wn.EW===0)return 1;if(T.UG-T.l5>=T.Ay-262&&(gE(T,!1),T.Wn.EW===0))return 1}T.o2=0;if(Q===4)return gE(T,!0),T.Wn.EW===0?3:4;T.UG>T.l5&&gE(T,!1);return 1}), new ma(4,4,8,4,fe),new ma(4,5,16,8,fe),new ma(4,6,32,32,fe),new ma(4,4,16,16,Gf),new ma(8,16,32,32,Gf),new ma(8,16,128,128,Gf),new ma(8,32,128,256,Gf),new ma(32,128,258,1024,Gf),new ma(32,258,258,4096,Gf)];var h8u={};h8u=function(){this.input=null;this.wY=this.KB=this.jp=0;this.output=null;this.wW=this.EW=this.v$=0;this.msg="";this.state=null;this.v3=2;this.CY=0};var X4T=Object.prototype.toString; hI.prototype.push=function(T,Q){var k=this.Wn,l=this.options.chunkSize;if(this.ended)return!1;var v=Q===~~Q?Q:Q===!0?4:0;typeof T==="string"?k.input=jST(T):X4T.call(T)==="[object ArrayBuffer]"?k.input=new Uint8Array(T):k.input=T;k.jp=0;k.KB=k.input.length;do{k.EW===0&&(k.output=new Hq.Pt(l),k.v$=0,k.EW=l);T=IT5(k,v);if(T!==1&&T!==0)return this.EE(T),this.ended=!0,!1;if(k.EW===0||k.KB===0&&(v===4||v===2))if(this.options.to==="string"){var L=Hq.ya(k.output,k.v$);Q=L;L=L.length;if(L<65537&&(Q.subarray&& ZlT||!Q.subarray))Q=String.fromCharCode.apply(null,Hq.ya(Q,L));else{for(var q="",Y=0;Y0||k.EW===0)&&T!==1);if(v===4)return(k=this.Wn)&&k.state?(l=k.state.status,l!==42&&l!==69&&l!==73&&l!==91&&l!==103&&l!==113&&l!==666?T=lK(k,-2):(k.state=null,T=l===113?lK(k,-3):0)):T=-2,this.EE(T),this.ended=!0,T===0;v===2&&(this.EE(0),k.EW=0);return!0}; hI.prototype.EE=function(T){T===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Hq.Oe(this.chunks));this.chunks=[];this.err=T;this.msg=this.Wn.msg};var Sm="@@redux/INIT"+s4(),rd6="@@redux/REPLACE"+s4();var cdy=typeof Symbol==="function"&&Symbol.observable||"@@observable";var mnd=[0,Sid,-3,g9];g.S(n3b,wg);var WNf=C56(n3b,[0,Mc,CB9,o6,Sid,o6,-1,g9,Sid,g9,-1,Mc,g9,CB9,v_,mnd,o6,-1,g9]);var K5f=1317161496;var jp5=new g.zf("adInfoDialogEndpoint");var urC=new g.zf("adPingingEndpoint");var kZC=new g.zf("crossDeviceProgressCommand");var dO=new g.zf("actionCompanionAdRenderer");var y1=new g.zf("adActionInterstitialRenderer");var Iov=new g.zf("adDurationRemainingRenderer");var TT=new g.zf("adHoverTextButtonRenderer");var Tm6=new g.zf("adInfoDialogRenderer");var n1=new g.zf("adMessageRenderer");var QN=new g.zf("adPreviewRenderer");var Ak=new g.zf("adsEngagementPanelRenderer");var bGI=new g.zf("dismissablePanelTextPortraitImageRenderer");var NSu=new g.zf("adsEngagementPanelSectionListViewModel");var hCW=new g.zf("flyoutCtaRenderer");var NA=new g.zf("imageCompanionAdRenderer");var FS=new g.zf("instreamAdPlayerOverlayRenderer");var uge=new g.zf("instreamSurveyAdBackgroundImageRenderer");var VM=new g.zf("instreamSurveyAdPlayerOverlayRenderer");var HO=new g.zf("instreamSurveyAdRenderer"),iQ=new g.zf("instreamSurveyAdSingleSelectQuestionRenderer"),yM=new g.zf("instreamSurveyAdMultiSelectQuestionRenderer"),z2=new g.zf("instreamSurveyAdAnswerRenderer"),sTv=new g.zf("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var xK=new g.zf("instreamVideoAdRenderer");var SkW=new g.zf("textOverlayAdContentRenderer"),CXd=new g.zf("enhancedTextOverlayAdContentRenderer"),Bap=new g.zf("imageOverlayAdContentRenderer");var EP=new g.zf("playerOverlayLayoutRenderer");var iE=new g.zf("videoInterstitialButtonedCenteredLayoutRenderer");var uP6=new g.zf("aboveFeedAdLayoutRenderer");var ns5=new g.zf("belowPlayerAdLayoutRenderer");var ayT=new g.zf("inPlayerAdLayoutRenderer");var p7=new g.zf("playerBytesAdLayoutRenderer");var ER=new g.zf("playerBytesSequenceItemAdLayoutRenderer");var Fj=new g.zf("playerUnderlayAdLayoutRenderer");var PO=new g.zf("adIntroRenderer");var n7=new g.zf("playerBytesSequentialLayoutRenderer");var fCt=new g.zf("slidingTextPlayerOverlayRenderer");var tk=new g.zf("surveyTextInterstitialRenderer");var WO=new g.zf("videoAdTrackingRenderer");var XP5=new g.zf("videoInterstitialCenteredLayoutViewModel");var zCA=new g.zf("simpleAdBadgeRenderer");var wM=new g.zf("skipAdRenderer"),XXd=new g.zf("skipButtonRenderer");var oA=new g.zf("adSlotRenderer");var Jk=new g.zf("squeezebackPlayerSidePanelRenderer");var wXe=new g.zf("timedPieCountdownRenderer");var eD=new g.zf("adAvatarViewModel");var FX=new g.zf("adBadgeViewModel");var Em=new g.zf("adButtonViewModel");var dn9=new g.zf("adDetailsLineViewModel");var Nav=new g.zf("adDisclosureBannerViewModel");var Ai$=new g.zf("adPodIndexViewModel");var blm=new g.zf("imageBackgroundViewModel");var riv=new g.zf("adGridCardCollectionViewModel");var ciA=new g.zf("adGridCardTextViewModel");var Dne=new g.zf("adPreviewViewModel");var aoA=new g.zf("playerAdAvatarLockupCardButtonedViewModel");var us9=new g.zf("skipAdButtonViewModel");var nPA=new g.zf("skipAdViewModel");var KI1=new g.zf("timedPieCountdownViewModel");var xnJ=new g.zf("visitAdvertiserLinkViewModel");var bQ=new g.zf("bannerImageLayoutViewModel");var rO=new g.zf("topBannerImageTextIconButtonedLayoutViewModel");var cO=new g.zf("adsEngagementPanelLayoutViewModel");var eg=new g.zf("displayUnderlayTextGridCardsLayoutViewModel");g.Ey=new g.zf("browseEndpoint");var PXA=new g.zf("confirmDialogEndpoint");var e95=new g.zf("commandContext");var Zh5=new g.zf("rawColdConfigGroup");var RIu=new g.zf("rawHotConfigGroup");g.fN=new g.zf("commandExecutorCommand");g.S(Pog,wg);var pEI={r_q:0,tR9:1,qxB:32,EUe:61,myH:67,Lf9:103,hPq:86,zP6:42,gUd:60,O7V:62,oUq:73,SxO:76,kzj:88,Ffk:90,it9:99,Ht6:98,Yxd:100,cp_:102,dyO:41,xyk:69,X5B:70,Uy9:71,Jsq:2,Zp_:27,ANDROID:3,OdV:54,voq:14,Te9:91,ff6:55,DKq:24,af_:20,Mjd:18,y9_:21,z9B:104,c9H:30,Q2j:29,h9m:28,G6m:101,Loe:34,S$B:36,Hzj:38,IOS:5,e1k:15,Iz9:92,sB9:40,lz9:25,rWe:17,JWO:19,Z$j:64,AWB:66,jBj:26,GkO:22,PSm:33,nEK:68,pgk:35,b$k:53,KmV:37,CSq:39,i7k:7,dEm:57,xEK:43,UEK:59,XHK:93,E_6:74,RwO:75,BV6:85,NVV:65,wHk:80,ew_:8,YYd:10, Cyd:58,sxd:63,VRq:72,o_B:23,NyV:11,Voe:13,uwH:12,mEK:16,yp9:56,QGd:31,sMm:77,M19:84,TyK:87,yWH:89,H$B:94,Y16:95};g.S(XH,wg);XH.prototype.Kl=function(){return Df(this,3)}; XH.prototype.vZ=function(){return Df(this,5)}; XH.prototype.sE=function(T){return xM(this,5,T)};g.S(wE,wg);g.S(HLt,wg);g.S(dE,wg);g.h=dE.prototype;g.h.getDeviceId=function(){return Df(this,6)}; g.h.ue=function(T){var Q=gL(this,9,GS,3,!0);eC(Q,T);return Q[T]}; g.h.getPlayerType=function(){return a2(this,36)}; g.h.setHomeGroupInfo=function(T){return Ns(this,HLt,81,T)}; g.h.clearLocationPlayabilityToken=function(){return lq(this,89)};g.S(NI,wg);NI.prototype.getValue=function(){return Df(this,hK(this,YGb,2))}; var YGb=[2,3,4,5,6];g.S(AI,wg);AI.prototype.setTrackingParams=function(T){return lq(this,1,tPf(T,!1))};g.S(bK,wg);g.S(rE,wg);rE.prototype.ue=function(T){var Q=gL(this,5,mY,3,!0);eC(Q,T);return Q[T]};g.S(cN,wg);cN.prototype.getToken=function(){return ng(this,2)}; cN.prototype.setToken=function(T){return xM(this,2,T)};g.S(D0,wg);D0.prototype.setSafetyMode=function(T){return HS(this,5,T)};g.S(ab,wg);ab.prototype.HP=function(T){return Ns(this,dE,1,T)};var kN=new g.zf("thumbnailLandscapePortraitRenderer");g.Hl_=new g.zf("changeEngagementPanelVisibilityAction");var rF5=new g.zf("continuationCommand");g.tNJ=new g.zf("openPopupAction");g.XD=new g.zf("webCommandMetadata");var hDH=new g.zf("metadataBadgeRenderer");var bM6=new g.zf("signalServiceEndpoint");var Dh=new g.zf("innertubeCommand");var Rpf=new g.zf("loggingDirectives");var XnI={wGV:"EMBEDDED_PLAYER_MODE_UNKNOWN",B8O:"EMBEDDED_PLAYER_MODE_DEFAULT",V16:"EMBEDDED_PLAYER_MODE_PFP",N8d:"EMBEDDED_PLAYER_MODE_PFL"};var $yX=new g.zf("channelThumbnailEndpoint");var WZu=new g.zf("embeddedPlayerErrorMessageRenderer");var H1I=new g.zf("embeddedPlayerOverlayVideoDetailsRenderer"),JCg=new g.zf("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),eD5=new g.zf("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var GTX=new g.zf("embedsInfoPanelRenderer");var Ole=new g.zf("feedbackEndpoint");var pX$=new g.zf("callToActionButtonViewModel");var WIe=new g.zf("interactionLoggingCommandMetadata");var sFu={MR_:"WEB_DISPLAY_MODE_UNKNOWN",vz9:"WEB_DISPLAY_MODE_BROWSER",DE9:"WEB_DISPLAY_MODE_MINIMAL_UI",ar9:"WEB_DISPLAY_MODE_STANDALONE",frk:"WEB_DISPLAY_MODE_FULLSCREEN"};g.S(uK,wg);uK.prototype.getPlayerType=function(){return a2(this,7)}; uK.prototype.Dg=function(){return Df(this,19)}; uK.prototype.setVideoId=function(T){return xM(this,19,T)};g.S(ne,wg);g.S(Ke,wg);g.S(xi,wg); var $nv=[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 Jim=new g.zf("loggingContext");g.S(PN,wg);g.S(HN,wg);HN.prototype.Dg=function(){return ng(this,hK(this,L9,1))}; HN.prototype.setVideoId=function(T){return mn(this,1,L9,Nr(T))}; HN.prototype.getPlaylistId=function(){return ng(this,hK(this,L9,2))}; var L9=[1,2];g.S(taI,wg);var XC=new g.zf("changeKeyedMarkersVisibilityCommand");var eCA=new g.zf("changeMarkersVisibilityCommand");var Sgb=new g.zf("loadMarkersCommand");var FI1=new g.zf("suggestedActionDataViewModel");var Tkt=new g.zf("timelyActionViewModel");var VWy=new g.zf("timelyActionsOverlayViewModel");var YOy=new g.zf("productListItemRenderer");var EP_=new g.zf("shoppingOverlayRenderer");var twu=new g.zf("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var yiW=new g.zf("adFeedbackEndpoint");var ilT=new g.zf("menuEndpoint");var mc6=new g.zf("phoneDialerEndpoint");var f3t=new g.zf("sendSmsEndpoint");var P1y=new g.zf("copyTextEndpoint");var VNm=new g.zf("shareEndpoint"),TKA=new g.zf("shareEntityEndpoint"),QOW=new g.zf("shareEntityServiceEndpoint"),jOT=new g.zf("webPlayerShareEntityServiceEndpoint");g.uD=new g.zf("urlEndpoint");g.Bv=new g.zf("watchEndpoint");var k8p=new g.zf("watchPlaylistEndpoint");g.lMA=new g.zf("offlineOrchestrationActionCommand");var uaf=new g.zf("compositeVideoOverlayRenderer");var o1J=new g.zf("miniplayerRenderer");var KZt=new g.zf("paidContentOverlayRenderer");var v19=new g.zf("playerMutedAutoplayOverlayRenderer"),Lme=new g.zf("playerMutedAutoplayEndScreenRenderer");var DAH=new g.zf("unserializedPlayerResponse"),q$E=new g.zf("unserializedPlayerResponse");var g11=new g.zf("playlistEditEndpoint");var w9;g.jw=new g.zf("buttonRenderer");w9=new g.zf("toggleButtonRenderer");var dL5=new g.zf("counterfactualRenderer");var MOp=new g.zf("resolveUrlCommandMetadata");var Y$_=new g.zf("modifyChannelNotificationPreferenceEndpoint");var aZy=new g.zf("pingingEndpoint");var UXm=new g.zf("unsubscribeEndpoint");g.yv=new g.zf("subscribeButtonRenderer");var R7A=new g.zf("subscribeEndpoint");var YVX=new g.zf("buttonViewModel");var Atu=new g.zf("qrCodeRenderer");var $lC={S1H:"LIVING_ROOM_APP_MODE_UNSPECIFIED",q16:"LIVING_ROOM_APP_MODE_MAIN",zUB:"LIVING_ROOM_APP_MODE_KIDS",ghd:"LIVING_ROOM_APP_MODE_MUSIC",TJ9:"LIVING_ROOM_APP_MODE_UNPLUGGED",ys9:"LIVING_ROOM_APP_MODE_GAMING"};var RDC=new g.zf("autoplaySwitchButtonRenderer");var Vk,owC,H7C,G0C;Vk=new g.zf("decoratedPlayerBarRenderer");owC=new g.zf("chapteredPlayerBarRenderer");H7C=new g.zf("multiMarkersPlayerBarRenderer");G0C=new g.zf("chapterRenderer");g.gwf=new g.zf("markerRenderer");var SfC=new g.zf("decoratedPlayheadRenderer");var myu=new g.zf("desktopOverlayConfigRenderer");var rtf=new g.zf("engagementPanelSectionListRenderer");var fDt=new g.zf("gatedActionsOverlayViewModel");var RM5=new g.zf("heatMarkerRenderer");var Uq5=new g.zf("heatmapRenderer");var sAH=new g.zf("watchToWatchTransitionRenderer");var O15=new g.zf("playlistPanelRenderer");var ZO1=new g.zf("productUpsellSuggestedActionViewModel");var fM1=new g.zf("suggestedActionTimeRangeTrigger"),G8d=new g.zf("suggestedActionsRenderer"),mXv=new g.zf("suggestedActionRenderer");var ZEH=new g.zf("timedMarkerDecorationRenderer");var tB6=new g.zf("cipher");var awX=new g.zf("playerVars");var IME=new g.zf("playerVars");var d9=g.VC.window,h7E,sOe,tI=(d9==null?void 0:(h7E=d9.yt)==null?void 0:h7E.config_)||(d9==null?void 0:(sOe=d9.ytcfg)==null?void 0:sOe.data_)||{};g.Tv("yt.config_",tI);var em=[];var iLy=/^[\w.]*$/,e8t={q:!0,search_query:!0},Jd5=String(Vt);var gV=new function(){var T=window.document;this.T=window;this.S=T}; g.Tv("yt.ads_.signals_.getAdSignalsString",function(T){return TO(Y5(T))});g.R_();var TbJ="XMLHttpRequest"in g.VC?function(){return new XMLHttpRequest}:null;var S$d="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.ZH(S$d);var lbX={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"},fbt="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.ZH(S$d)),Ypt=!1,qpI=BD;g.S(wV,Gv);AH.prototype.then=function(T,Q,k){return this.T?this.T.then(T,Q,k):this.L===1&&T?(T=T.call(k,this.S))&&typeof T.then==="function"?T:rV(T):this.L===2&&Q?(T=Q.call(k,this.S))&&typeof T.then==="function"?T:bC(T):this}; AH.prototype.getValue=function(){return this.S}; AH.prototype.$goog_Thenable=!0;var cD=!1;var We=Fw||EG;var Bbg=/^([0-9\.]+):([0-9\.]+)$/;g.S(Yq,Gv);Yq.prototype.name="BiscottiError";g.S(M5,Gv);M5.prototype.name="BiscottiMissingError";var dS5={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Ur=null;var j_f=g.G5(["data-"]),n2t={};var C5$=0,R1=g.Y1?"webkit":$1?"moz":g.RF?"ms":g.Va?"o":"",BK_=g.jA("ytDomDomGetNextId")||function(){return++C5$}; g.Tv("ytDomDomGetNextId",BK_);var Hit={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};hg.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; hg.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; hg.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var sr=g.VC.ytEventsEventsListeners||{};g.Tv("ytEventsEventsListeners",sr);var pny=g.VC.ytEventsEventsCounter||{count:0};g.Tv("ytEventsEventsCounter",pny);var e1I=aO(function(){var T=!1;try{var Q=Object.defineProperty({},"passive",{get:function(){T=!0}}); window.addEventListener("test",null,Q)}catch(k){}return T}),W_I=aO(function(){var T=!1; try{var Q=Object.defineProperty({},"capture",{get:function(){T=!0}}); window.addEventListener("test",null,Q)}catch(k){}return T});var Nc;Nc=window;g.XY=Nc.ytcsi&&Nc.ytcsi.now?Nc.ytcsi.now:Nc.performance&&Nc.performance.timing&&Nc.performance.now&&Nc.performance.timing.navigationStart?function(){return Nc.performance.timing.navigationStart+Nc.performance.now()}:function(){return(new Date).getTime()};g.fW(X4,g.x);X4.prototype.D=function(T){T.T===void 0&&thu(T);var Q=T.T;T.S===void 0&&thu(T);this.T=new g.WX(Q,T.S)}; X4.prototype.rS=function(){return this.T||new g.WX}; X4.prototype.z9=function(){if(this.T){var T=(0,g.XY)();if(this.Y!=0){var Q=this.B,k=this.T,l=Q.x-k.x;Q=Q.y-k.y;l=Math.sqrt(l*l+Q*Q)/(T-this.Y);this.S[this.L]=Math.abs((l-this.N)/this.N)>.5?1:0;for(k=Q=0;k<4;k++)Q+=this.S[k]||0;Q>=3&&this.C();this.N=l}this.Y=T;this.B=this.T;this.L=(this.L+1)%4}}; X4.prototype.EK=function(){g.m6(this.j);g.CY(this.qO)};g.S(wi,g.x);wi.prototype.Z=function(T,Q,k,l,v){k=g.E4((0,g.Mp)(k,l||this.d5));k={target:T,name:Q,callback:k};var L;v&&e1I()&&(L={passive:!0});T.addEventListener(Q,k.callback,L);this.C.push(k);return k}; wi.prototype.J6=function(T){for(var Q=0;Q=O.C7)||w.T.version>=E||w.T.objectStoreNames.contains(K)||A.push(K)}U=A;if(U.length===0){z.Ym(5);break}R=Object.keys(k.options.Sn); Z=Y.objectStoreNames();if(k.Nk.options.version+1)throw G.close(),k.L=!1,agb(k,m);return z.return(G);case 8:throw Q(), f instanceof Error&&!g.hH("ytidb_async_stack_killswitch")&&(f.stack=f.stack+"\n"+q.substring(q.indexOf("\n")+1)),Ip(f,k.name,"",(I=k.options.version)!=null?I:-1);}})} function Q(){k.T===l&&(k.T=void 0)} var k=this;if(!this.L)throw agb(this);if(this.T)return this.T;var l,v={blocking:function(L){L.close()}, closed:Q,U_9:Q,upgrade:this.options.upgrade};return this.T=l=T()};var OY=new He("YtIdbMeta",{Sn:{databases:{C7:1}},upgrade:function(T,Q){Q(1)&&g.dm(T,"databases",{keyPath:"actualName"})}});var eo,JF=new function(){}(new function(){});new g.Zb;g.S(yH,He);yH.prototype.S=function(T,Q,k){k=k===void 0?{}:k;return(this.options.shared?p05:OVy)(T,Q,Object.assign({},k))}; yH.prototype.delete=function(T){T=T===void 0?{}:T;return(this.options.shared?ef5:Wog)(this.name,T)};var cZ9={},EQu=g.VH("ytGcfConfig",{Sn:(cZ9.coldConfigStore={C7:1},cZ9.hotConfigStore={C7:1},cZ9),shared:!1,upgrade:function(T,Q){Q(1)&&(g.DA(g.dm(T,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.DA(g.dm(T,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.S(QV,g.x);QV.prototype.EK=function(){for(var T=g.B(this.S),Q=T.next();!Q.done;Q=T.next()){var k=this.T;Q=k.indexOf(Q.value);Q>=0&&k.splice(Q,1)}this.S.length=0;g.x.prototype.EK.call(this)};qU.prototype.sE=function(T){this.hotHashData=T;g.Tv("yt.gcf.config.hotHashData",this.hotHashData||null)};var DXE=typeof TextEncoder!=="undefined"?new TextEncoder:null,xN5=DXE?function(T){return DXE.encode(T)}:function(T){T=g.wJ(T); for(var Q=new Uint8Array(T.length),k=0;k=Q?!1:!0}; g.h.Wi=function(){var T=this;if(!bM(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.E$.ir("QUEUED",this.Sk).then(function(Q){Q&&!T.nj(Q,T.vX)?T.qy.oD(function(){return g.a(function(k){if(k.S==1)return Q.id===void 0?k.Ym(2):g.c(k,T.E$.F1(Q.id,T.Sk),2);T.Wi();g.BT(k)})}):T.Kd.In()&&T.f4()})};var D2;var m2J={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 u3W={},kft=g.VH("ServiceWorkerLogsDatabase",{Sn:(u3W.SWHealthLog={C7:1},u3W),shared:!0,upgrade:function(T,Q){Q(1)&&g.DA(g.dm(T,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var nj={},gi5=0;var Kj;Pl.prototype.requestComplete=function(T,Q){Q&&(this.S=!0);T=this.removeParams(T);this.T.get(T)||this.T.set(T,Q)}; Pl.prototype.isEndpointCFR=function(T){T=this.removeParams(T);return(T=this.T.get(T))?!1:T===!1&&this.S?!0:null}; Pl.prototype.removeParams=function(T){return T.split("?")[0]}; Pl.prototype.removeParams=Pl.prototype.removeParams;Pl.prototype.isEndpointCFR=Pl.prototype.isEndpointCFR;Pl.prototype.requestComplete=Pl.prototype.requestComplete;Pl.getInstance=Hl;g.S(tx,g.fL);g.h=tx.prototype;g.h.In=function(){return this.T.In()}; g.h.ZK=function(T){this.T.T=T}; g.h.Y7=function(){var T=window.navigator.onLine;return T===void 0?!0:T}; g.h.al=function(){this.S=!0}; g.h.listen=function(T,Q){return this.T.listen(T,Q)}; g.h.yY=function(T){T=KV(this.T,T);T.then(function(Q){g.hH("use_cfr_monitor")&&Hl().requestComplete("generate_204",Q)}); return T}; tx.prototype.sendNetworkCheckRequest=tx.prototype.yY;tx.prototype.listen=tx.prototype.listen;tx.prototype.enableErrorFlushing=tx.prototype.al;tx.prototype.getWindowStatus=tx.prototype.Y7;tx.prototype.networkStatusHint=tx.prototype.ZK;tx.prototype.isNetworkAvailable=tx.prototype.In;tx.getInstance=UIT;g.S(g.OS,g.fL);g.OS.prototype.In=function(){var T=g.jA("yt.networkStatusManager.instance.isNetworkAvailable");return T?T.bind(this.S)():!0}; g.OS.prototype.ZK=function(T){var Q=g.jA("yt.networkStatusManager.instance.networkStatusHint").bind(this.S);Q&&Q(T)}; g.OS.prototype.yY=function(T){var Q=this,k;return g.a(function(l){k=g.jA("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(Q.S);return g.hH("skip_network_check_if_cfr")&&Hl().isEndpointCFR("generate_204")?l.return(new Promise(function(v){var L;Q.ZK(((L=window.navigator)==null?void 0:L.onLine)||!0);v(Q.In())})):k?l.return(k(T)):l.return(!0)})};var pj;g.S(Wl,r7);Wl.prototype.writeThenSend=function(T,Q){Q||(Q={});Q=Jx(T,Q);g.Jg()||(this.T=!1);r7.prototype.writeThenSend.call(this,T,Q)}; Wl.prototype.sendThenWrite=function(T,Q,k){Q||(Q={});Q=Jx(T,Q);g.Jg()||(this.T=!1);r7.prototype.sendThenWrite.call(this,T,Q,k)}; Wl.prototype.sendAndWrite=function(T,Q){Q||(Q={});Q=Jx(T,Q);g.Jg()||(this.T=!1);r7.prototype.sendAndWrite.call(this,T,Q)}; Wl.prototype.awaitInitialization=function(){return this.L.promise};var mI5=g.VC.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Tv("ytNetworklessLoggingInitializationOptions",mI5);g.ez.prototype.isReady=function(){!this.config_&&RKt()&&(this.config_=g.MU());return!!this.config_};var n1m,yV,VV;n1m=g.VC.ytPubsubPubsubInstance||new g.XE;yV=g.VC.ytPubsubPubsubSubscribedKeys||{};VV=g.VC.ytPubsubPubsubTopicToKeys||{};g.iM=g.VC.ytPubsubPubsubIsSynchronous||{};g.XE.prototype.subscribe=g.XE.prototype.subscribe;g.XE.prototype.unsubscribeByKey=g.XE.prototype.Y_;g.XE.prototype.publish=g.XE.prototype.publish;g.XE.prototype.clear=g.XE.prototype.clear;g.Tv("ytPubsubPubsubInstance",n1m);g.Tv("ytPubsubPubsubTopicToKeys",VV);g.Tv("ytPubsubPubsubIsSynchronous",g.iM); g.Tv("ytPubsubPubsubSubscribedKeys",yV);var BE5={};g.S(R$,g.x);R$.prototype.append=function(T){if(!this.S)throw Error("This does not support the append operation");T=T.xB();this.xB().appendChild(T)}; g.S(ZZ,R$);ZZ.prototype.xB=function(){return this.T};g.S(fZ,g.x);fZ.prototype.onTouchStart=function(T){this.C=!0;this.S=T.touches.length;this.T.isActive()&&(this.T.stop(),this.N=!0);T=T.touches;this.B=wNb(this,T)||T.length!=1;var Q=T.item(0);this.B||!Q?this.D=this.j=Infinity:(this.j=Q.clientX,this.D=Q.clientY);for(Q=this.L.length=0;Q=0)}if(Q||T&&Math.pow(T.clientX-this.j,2)+Math.pow(T.clientY-this.D,2)>25)this.Y=!0}; fZ.prototype.onTouchEnd=function(T){var Q=T.changedTouches;Q&&this.C&&this.S==1&&!this.Y&&!this.N&&!this.B&&wNb(this,Q)&&(this.z9=T,this.T.start());this.S=T.touches.length;this.S===0&&(this.Y=this.C=!1,this.L.length=0);this.N=!1};var GA=Date.now().toString();var CZ={};var NE=Symbol("injectionDeps");zA.prototype.toString=function(){return"InjectionToken("+this.name+")"}; AIu.prototype.resolve=function(T){return T instanceof Xr?Au(this,T.key,[],!0):Au(this,T,[])};var bv;var cd=window;var nZ=g.hH("web_enable_lifecycle_monitoring")&&DZ()!==0,ni5=g.hH("web_enable_lifecycle_monitoring");DIH.prototype.cancel=function(){for(var T=g.B(this.T),Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q.jobId===void 0||Q.VT||this.scheduler.wC(Q.jobId),Q.VT=!0;this.S.resolve()};g.h=KZ.prototype;g.h.install=function(T){this.plugins.push(T);return this}; g.h.uninstall=function(){var T=this;g.HT.apply(0,arguments).forEach(function(Q){Q=T.plugins.indexOf(Q);Q>-1&&T.plugins.splice(Q,1)})}; g.h.transition=function(T,Q){var k=this;nZ&&rIH(this.state);var l=this.transitions.find(function(L){return Array.isArray(L.from)?L.from.find(function(q){return q===k.state&&L.to===T}):L.from===k.state&&L.to===T}); if(l){this.S&&(a0t(this.S),this.S=void 0);Kab(this,T,Q);this.state=T;nZ&&a$(this.state);l=l.action.bind(this);var v=this.plugins.filter(function(L){return L[T]}).map(function(L){return L[T]}); l(uHu(this,v),Q)}else throw Error("no transition specified from "+this.state+" to "+T);}; g.h.NcH=function(T){var Q=g.HT.apply(1,arguments);g.iu();for(var k=g.B(T),l=k.next(),v={};!l.done;v={xI:void 0},l=k.next())v.xI=l.value,vQI(function(L){return function(){Pd(L.xI.name);tu(function(){return L.xI.callback.apply(L.xI,g.ZH(Q))}); Hd(L.xI.name)}}(v))}; g.h.BcV=function(T){var Q=g.HT.apply(1,arguments),k,l,v,L;return g.a(function(q){q.S==1&&(g.iu(),k=g.B(T),l=k.next(),v={});if(q.S!=3){if(l.done)return q.Ym(0);v.Qi=l.value;v.Iq=void 0;L=function(Y){return function(){Pd(Y.Qi.name);var U=tu(function(){return Y.Qi.callback.apply(Y.Qi,g.ZH(Q))}); NZ(U)?Y.Iq=g.hH("web_lifecycle_error_handling_killswitch")?U.then(function(){Hd(Y.Qi.name)}):U.then(function(){Hd(Y.Qi.name)},function(R){cIC(R); Hd(Y.Qi.name)}):Hd(Y.Qi.name)}}(v); vQI(L);return v.Iq?g.c(q,v.Iq,3):q.Ym(3)}v={Qi:void 0,Iq:void 0};l=k.next();return q.Ym(2)})}; g.h.C2=function(T){var Q=g.HT.apply(1,arguments),k=this,l=T.map(function(v){return{SH:function(){Pd(v.name);tu(function(){return v.callback.apply(v,g.ZH(Q))}); Hd(v.name)}, priority:x_(k,v)}}); l.length&&(this.S=new DIH(l))}; g.oI.Object.defineProperties(KZ.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var pZ;g.S(Oq,KZ);Oq.prototype.N=function(T,Q){var k=this;this.T=g.Er(0,function(){k.currentState==="application_navigating"&&k.transition("none")},5E3); T(Q==null?void 0:Q.event)}; Oq.prototype.B=function(T,Q){this.T&&(g.P0.wC(this.T),this.T=null);T(Q==null?void 0:Q.event)};var f9=[];g.Tv("yt.logging.transport.getScrapedGelPayloads",function(){return f9});Wd.prototype.storePayload=function(T,Q){T=$_(T);this.store[T]?this.store[T].push(Q):(this.S={},this.store[T]=[Q]);this.T++;g.hH("more_accurate_gel_parser")&&(Q=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(Q));return T}; Wd.prototype.smartExtractMatchingEntries=function(T){if(!T.keys.length)return[];for(var Q=eV(this,T.keys.splice(0,1)[0]),k=[],l=0;l=0){l=!1;break a}}l=!0}l&&(Q=uA(Q))&&this.WY(Q)}}; g.h.WX=function(T){return T}; g.h.onTouchStart=function(T){this.hj.onTouchStart(T)}; g.h.onTouchMove=function(T){this.hj.onTouchMove(T)}; g.h.onTouchEnd=function(T){if(this.hj)this.hj.onTouchEnd(T)}; g.h.WY=function(T){this.layoutId?this.G9.executeCommand(T,this.layoutId):(T=new g.Wy("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.bA(T))}; g.h.createServerVe=function(T,Q){this.api.createServerVe(T,this);this.api.setTrackingParams(T,Q)}; g.h.logVisibility=function(T,Q){this.api.hasVe(T)&&this.api.logVisibility(T,Q,this.interactionLoggingClientData)}; g.h.EK=function(){this.clear(null);this.J6(this.zg);for(var T=g.B(this.xm),Q=T.next();!Q.done;Q=T.next())this.J6(Q.value);g.M1.prototype.EK.call(this)};g.S(rD,Y8); rD.prototype.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);this.T=Q;if(Q.text==null&&Q.icon==null)g.rB(Error("ButtonRenderer did not have text or an icon set."));else{switch(Q.style||null){case "STYLE_UNKNOWN":T="ytp-ad-button-link";break;default:T=null}T!=null&&g.oF(this.element,T);Q.text!=null&&(T=g.Rx(Q.text),g.bB(T)||(this.element.setAttribute("aria-label",T),this.L=new g.M1({X:"span",J:"ytp-ad-button-text",S6:T}),g.P(this,this.L),this.L.XB(this.element)));Q.accessibilityData&&Q.accessibilityData.accessibilityData&& Q.accessibilityData.accessibilityData.label&&!g.bB(Q.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",Q.accessibilityData.accessibilityData.label);Q.icon!=null&&(Q=bD(Q.icon,this.Y),Q!=null&&(this.S=new g.M1({X:"span",J:"ytp-ad-button-icon",W:[Q]}),g.P(this,this.S)),this.B?hZ(this.element,this.S.element,0):this.S.XB(this.element))}}; rD.prototype.clear=function(){this.hide()}; rD.prototype.onClick=function(T){Y8.prototype.onClick.call(this,T);T=g.B(PuI(this));for(var Q=T.next();!Q.done;Q=T.next())Q=Q.value,this.layoutId?this.G9.executeCommand(Q,this.layoutId):g.bA(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.S(cZ,g.x);cZ.prototype.EK=function(){this.S&&g.CY(this.S);this.T.clear();DF=null;g.x.prototype.EK.call(this)}; cZ.prototype.register=function(T,Q){Q&&this.T.set(T,Q)}; var DF=null;g.S(nD,Y8); nD.prototype.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);T=Q.hoverText||null;Q=Q.button&&g.t(Q.button,g.jw)||null;Q==null?g.bA(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new rD(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,void 0,void 0,void 0,void 0,this.L),g.P(this,this.button),this.button.init(k8("button"),Q,this.macros),T&&this.button.element.setAttribute("aria-label",g.Rx(T)),this.button.XB(this.element),this.D&&!g.lw(this.button.element, "ytp-ad-clickable")&&g.oF(this.button.element,"ytp-ad-clickable"),this.L&&g.oF(this.button.element,"ytp-ad-hover-text-button--clean-player"),T&&(this.S=new g.M1({X:"div",J:"ytp-ad-hover-text-container"}),this.B&&(Q=new g.M1({X:"div",J:"ytp-ad-hover-text-callout"}),Q.XB(this.S.element),g.P(this,Q)),g.P(this,this.S),this.S.XB(this.element),Q=ax(T),hZ(this.S.element,Q,0)),this.show())}; nD.prototype.hide=function(){this.button&&this.button.hide();this.S&&this.S.hide();Y8.prototype.hide.call(this)}; nD.prototype.show=function(){this.button&&this.button.show();Y8.prototype.show.call(this)};g.S(x8,Y8); x8.prototype.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);k=(T=Q.thumbnail)&&KD(T)||"";g.bB(k)?Math.random()<.01&&g.rB(Error("Found AdImage without valid image URL")):(this.T?g.W2(this.element,"backgroundImage","url("+k+")"):MX(this.element,{src:k}),MX(this.element,{alt:T&&T.accessibility&&T.accessibility.label||""}),Q&&Q.adRendererCommands&&Q.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; x8.prototype.clear=function(){this.hide()};g.S(PZ,Y8);g.h=PZ.prototype;g.h.hide=function(){Y8.prototype.hide.call(this);this.L&&this.L.focus()}; g.h.show=function(){this.L=document.activeElement;Y8.prototype.show.call(this);this.Y.focus()}; g.h.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);this.S=Q;Q.dialogMessages||Q.title!=null?Q.confirmLabel==null?g.bA(Error("ConfirmDialogRenderer.confirmLabel was not set.")):Q.cancelLabel==null?g.bA(Error("ConfirmDialogRenderer.cancelLabel was not set.")):py5(this,Q):g.bA(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.h.clear=function(){g.N5(this.T);this.hide()}; g.h.us=function(){this.hide()}; g.h.Xf=function(){var T=this.S.cancelEndpoint;T&&(this.layoutId?this.G9.executeCommand(T,this.layoutId):g.bA(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.h.t0=function(){var T=this.S.confirmNavigationEndpoint||this.S.confirmEndpoint;T&&(this.layoutId?this.G9.executeCommand(T,this.layoutId):g.bA(Error("Missing layoutId for confirm dialog.")));this.hide()};g.S(HZ,Y8);g.h=HZ.prototype; g.h.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);this.L=Q;if(Q.defaultText==null&&Q.defaultIcon==null)g.bA(Error("ToggleButtonRenderer must have either text or icon set."));else if(Q.defaultIcon==null&&Q.toggledIcon!=null)g.bA(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(Q.style){switch(Q.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":T="ytp-ad-toggle-button-default-style";break;default:T=null}T!=null&&g.oF(this.Y,T)}T={};Q.defaultText? (k=g.Rx(Q.defaultText),g.bB(k)||(T.buttonText=k,this.api.G().experiments.Wd("a11y_h5_associate_survey_question")||this.T.setAttribute("aria-label",k),this.api.G().experiments.Wd("fix_h5_toggle_button_a11y")&&this.S.setAttribute("aria-label",k))):g.kj(this.i9,!1);Q.defaultTooltip&&(T.tooltipText=Q.defaultTooltip,this.T.hasAttribute("aria-label")||this.S.setAttribute("aria-label",Q.defaultTooltip));Q.defaultIcon?(k=bD(Q.defaultIcon),this.updateValue("untoggledIconTemplateSpec",k),Q.toggledIcon?(this.qO= !0,k=bD(Q.toggledIcon),this.updateValue("toggledIconTemplateSpec",k)):(g.kj(this.D,!0),g.kj(this.B,!1)),g.kj(this.T,!1)):g.kj(this.S,!1);g.Rs(T)||this.update(T);Q.isToggled&&(g.oF(this.Y,"ytp-ad-toggle-button-toggled"),this.toggleButton(Q.isToggled));tc(this);this.Z(this.element,"change",this.hw);this.show()}}; g.h.onClick=function(T){this.xm.length>0&&(this.toggleButton(!this.isToggled()),this.hw());Y8.prototype.onClick.call(this,T)}; g.h.hw=function(){g.gl(this.Y,"ytp-ad-toggle-button-toggled",this.isToggled());for(var T=g.B(Wd5(this,this.isToggled())),Q=T.next();!Q.done;Q=T.next())Q=Q.value,this.layoutId?this.G9.executeCommand(Q,this.layoutId):g.bA(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);tc(this)}; g.h.clear=function(){this.hide()}; g.h.toggleButton=function(T){g.gl(this.Y,"ytp-ad-toggle-button-toggled",T);this.T.checked=T;tc(this)}; g.h.isToggled=function(){return this.T.checked};g.S(OC,wi);OC.prototype.N=function(T){if(Array.isArray(T)){T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q instanceof $56&&this.L(Q)}};g.S(pD,Y8);g.h=pD.prototype;g.h.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);Q.reasons?Q.confirmLabel==null?g.bA(Error("AdFeedbackRenderer.confirmLabel was not set.")):(Q.cancelLabel==null&&g.rB(Error("AdFeedbackRenderer.cancelLabel was not set.")),Q.title==null&&g.rB(Error("AdFeedbackRenderer.title was not set.")),Eqg(this,Q)):g.bA(Error("AdFeedbackRenderer.reasons were not set."))}; g.h.clear=function(){By(this.B);By(this.D);this.Y.length=0;this.hide()}; g.h.hide=function(){this.T&&this.T.hide();this.S&&this.S.hide();Y8.prototype.hide.call(this);this.L&&this.L.focus()}; g.h.show=function(){this.T&&this.T.show();this.S&&this.S.show();this.L=document.activeElement;Y8.prototype.show.call(this);this.B.focus()}; g.h.PN=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.h.FFO=function(){this.hide()}; WZ.prototype.xB=function(){return this.T.element}; WZ.prototype.getCommand=function(){return this.S}; WZ.prototype.isChecked=function(){return this.L.checked};g.S($8,PZ);$8.prototype.us=function(T){PZ.prototype.us.call(this,T);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; $8.prototype.Xf=function(T){PZ.prototype.Xf.call(this,T);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; $8.prototype.t0=function(T){PZ.prototype.t0.call(this,T);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.S(Jc,Y8);g.h=Jc.prototype; g.h.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);this.B=Q;if(Q.dialogMessage==null&&Q.title==null)g.bA(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{Q.confirmLabel==null&&g.rB(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(T=Q.closeOverlayRenderer&&g.t(Q.closeOverlayRenderer,g.jw)||null)this.T=new rD(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.P(this,this.T),this.T.init(k8("button"),T,this.macros),this.T.XB(this.element);Q.title&&(T=g.Rx(Q.title),this.updateValue("title",T));if(Q.adReasons)for(T=Q.adReasons,k=0;k=this.Bd?(this.qO.hide(),this.Jj=!0,this.publish("i")):this.L&&this.L.isTemplated()&&(T=Math.max(0,Math.ceil((this.Bd-T)/1E3)),T!=this.K_&&(EC(this.L,{TIME_REMAINING:String(T)}),this.K_=T)))}};g.S(kX,y6);g.h=kX.prototype; g.h.init=function(T,Q,k){y6.prototype.init.call(this,T,Q,k);if(Q.image&&Q.image.thumbnail)if(Q.headline)if(Q.description)if((T=Q.actionButton&&g.t(Q.actionButton,g.jw))&&T.navigationEndpoint){var l=this.api.getVideoData(2);if(l!=null)if(Q.image&&Q.image.thumbnail){var v=Q.image.thumbnail.thumbnails;v!=null&&v.length>0&&g.bB(g.cX(v[0].url))&&(v[0].url=l.profilePicture)}else g.rB(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.L.init(k8("ad-image"),Q.image,k);this.B.init(k8("ad-text"), Q.headline,k);this.Y.init(k8("ad-text"),Q.description,k);this.S.init(k8("button"),T,k);k=Je(this.S.element);pV(this.S.element,k+" This link opens in new tab");this.qO=T.navigationEndpoint;this.api.VH()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.FN.bind(this));this.i9=Q.startMs||0;iD(this)}else g.bA(Error("FlyoutCtaRenderer has no valid action button."));else g.bA(Error("FlyoutCtaRenderer has no description AdText."));else g.bA(Error("FlyoutCtaRenderer has no headline AdText.")); else g.rB(Error("FlyoutCtaRenderer has no image."))}; g.h.onClick=function(T){y6.prototype.onClick.call(this,T);this.api.pauseVideo();!g.SO(this.S.element,T.target)&&this.qO&&(this.layoutId?this.G9.executeCommand(this.qO,this.layoutId):g.bA(Error("Missing layoutId for flyout cta.")))}; g.h.yb=function(){if(this.T){var T=this.T.getProgressState();(T&&T.current||this.Bd)&&1E3*T.current>=this.i9&&(V6(this),g.Lb(this.element,"ytp-flyout-cta-inactive"),this.S.element.removeAttribute("tabIndex"))}}; g.h.yF=function(){this.clear()}; g.h.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.FN.bind(this))}; g.h.show=function(){this.S&&this.S.show();y6.prototype.show.call(this)}; g.h.hide=function(){this.S&&this.S.hide();y6.prototype.hide.call(this)}; g.h.FN=function(T){T=="hidden"?this.show():this.hide()};g.S(lP,Y8);g.h=lP.prototype; g.h.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);this.T=Q;if(this.T.rectangle)for(T=this.T.likeButton&&g.t(this.T.likeButton,w9),Q=this.T.dislikeButton&&g.t(this.T.dislikeButton,w9),this.L.init(k8("toggle-button"),T,k),this.S.init(k8("toggle-button"),Q,k),this.Z(this.element,"change",this.Y2),this.Y.show(100),this.show(),k=g.B(this.T&&this.T.impressionCommands||[]),T=k.next();!T.done;T=k.next())T=T.value,this.layoutId?this.G9.executeCommand(T,this.layoutId):g.bA(Error("Missing layoutId for instream user sentiment."))}; g.h.clear=function(){this.hide()}; g.h.hide=function(){this.L.hide();this.S.hide();Y8.prototype.hide.call(this)}; g.h.show=function(){this.L.show();this.S.show();Y8.prototype.show.call(this)}; g.h.Y2=function(){AzX(this.element,"ytp-ad-instream-user-sentiment-selected");this.T.postMessageAction&&this.api.tj("onYtShowToast",this.T.postMessageAction);this.Y.hide()}; g.h.onClick=function(T){this.xm.length>0&&this.Y2();Y8.prototype.onClick.call(this,T)};g.S(oY,g.x);g.h=oY.prototype;g.h.EK=function(){this.reset();g.x.prototype.EK.call(this)}; g.h.reset=function(){g.N5(this.Y);this.B=!1;this.T&&this.T.stop();this.N.stop();this.L&&(this.L=!1,this.C.play())}; g.h.start=function(){this.reset();this.Y.Z(this.S,"mouseover",this.iB,this);this.Y.Z(this.S,"mouseout",this.mq,this);this.z9&&(this.Y.Z(this.S,"focusin",this.iB,this),this.Y.Z(this.S,"focusout",this.mq,this));this.T?this.T.start():(this.B=this.L=!0,g.W2(this.S,{opacity:this.D}))}; g.h.iB=function(){this.L&&(this.L=!1,this.C.play());this.N.stop();this.T&&this.T.stop()}; g.h.mq=function(){this.B?this.N.start():this.T&&this.T.start()}; g.h.lP=function(){this.L||(this.L=!0,this.j.play(),this.B=!0)};var qYX=[new v8("b.f_",!1,0),new v8("j.s_",!1,2),new v8("r.s_",!1,4),new v8("e.h_",!1,6),new v8("i.s_",!0,8),new v8("s.t_",!1,10),new v8("p.h_",!1,12),new v8("s.i_",!1,14),new v8("f.i_",!1,16),new v8("a.b_",!1,18),new v8("a.o_",!1),new v8("g.o_",!1,22),new v8("p.i_",!1,24),new v8("p.m_",!1),new v8("n.k_",!0,20),new v8("i.f_",!1),new v8("a.s_",!0),new v8("m.c_",!1),new v8("n.h_",!1,26),new v8("o.p_",!1),new v8("m.p_",!0,28),new v8("o.a_",!1),new v8("d.p_",!1),new v8("e.i_",!1)].reduce(function(T,Q){T[Q.S]= Q;return T},{});g.S(ZV,y6);g.h=ZV.prototype; g.h.init=function(T,Q,k){y6.prototype.init.call(this,T,Q,k);this.qO=Q;(this.i9=Mou(this))&&g.rB(Error("hasAdControlInClickCommands_ is true."));if(!Q||g.Rs(Q))g.bA(Error("SkipButtonRenderer was not specified or empty."));else if(!Q.message||g.Rs(Q.message))g.bA(Error("SkipButtonRenderer.message was not specified or empty."));else if(T=this.B?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},Q=bD(T),Q==null?g.bA(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+T.iconType+".")): (this.api.G().V("disable_touch_events_on_skip_button")&&(Q.K=Object.assign({},Q.K,{"aria-hidden":"true",UAB:"false"})),this.L=new g.M1({X:"button",Rk:[this.B?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],W:[{X:"span",J:this.B?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",W:[Q]}]}),g.P(this,this.L),this.L.XB(this.Y.element),this.S=new Fc(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,"ytp-ad-skip-button-text"),this.B&&this.S.element.classList.add("ytp-ad-skip-button-text-centered"), this.S.init(k8("ad-text"),this.qO.message,k),g.P(this,this.S),hZ(this.L.element,this.S.element,0)),!this.api.G().V("disable_touch_events_on_skip_button")){var l=l===void 0?null:l;k=this.api.G();!(this.xm.length>0)&&k.S&&(ic?0:"ontouchstart"in document.documentElement&&(yTb()||M_()))&&(this.J6(this.zg),l&&this.J6(l),this.xm=[this.Z(this.element,"touchstart",this.onTouchStart,this),this.Z(this.element,"touchmove",this.onTouchMove,this),this.Z(this.element,"touchend",this.onTouchEnd,this)])}}; g.h.clear=function(){this.Bd.reset();this.hide()}; g.h.hide=function(){this.Y.hide();this.S&&this.S.hide();V6(this);y6.prototype.hide.call(this)}; g.h.onClick=function(T){if(this.L!=null){if(T){var Q=T||window.event;Q.returnValue=!1;Q.preventDefault&&Q.preventDefault()}var k;if(vnu(T,{contentCpn:((k=this.api.getVideoData(1))==null?void 0:k.clientPlaybackNonce)||""})===0)this.api.tj("onAbnormalityDetected");else if(y6.prototype.onClick.call(this,T),this.publish("j"),this.api.tj("onAdSkip"),this.Jj||!this.i9)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.h.WX=function(T){if(!this.Jj)return this.i9&&MH("SkipButton click commands not pruned while ALC exist"),T;var Q,k=(Q=g.t(T,g.fN))==null?void 0:Q.commands;if(!k)return T;T=[];for(Q=0;Q=this.B&&YY6(this,!0)};g.S(mP,rD);mP.prototype.init=function(T,Q,k){rD.prototype.init.call(this,T,Q,k);T=!1;Q.text!=null&&(T=g.Rx(Q.text),T=!g.bB(T));T?Q.navigationEndpoint==null?g.rB(Error("No visit advertiser clickthrough provided in renderer,")):Q.style!=="STYLE_UNKNOWN"?g.rB(Error("Button style was not a link-style type in renderer,")):this.show():g.rB(Error("No visit advertiser text was present in the renderer."))};g.S(IY,Y8); IY.prototype.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);T=Q.text;g.bB(UC(T))?g.rB(Error("SimpleAdBadgeRenderer has invalid or empty text")):(T&&T.text&&(Q=T.text,this.L&&!this.S&&(Q=this.api.G(),Q=T.text+" "+(Q&&Q.S?"\u2022":"\u00b7")),Q={text:Q,isTemplated:T.isTemplated},T.style&&(Q.style=T.style),T.targetId&&(Q.targetId=T.targetId),T=new Fc(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),T.init(k8("simple-ad-badge"),Q,k),T.XB(this.element),g.P(this,T)),this.show())}; IY.prototype.clear=function(){this.hide()};g.S(h$,lD);g.S(se,g.ox);g.h=se.prototype;g.h.Kk=function(){return this.durationMs}; g.h.stop=function(){this.T&&this.Qp.J6(this.T)}; g.h.bC=function(T){this.S={seekableStart:0,seekableEnd:this.durationMs/1E3,current:T.current};this.publish("h")}; g.h.getProgressState=function(){return this.S}; g.h.c8=function(T){g.RY(T,2)&&this.publish("g")};g.S(SM,g.ox);g.h=SM.prototype;g.h.Kk=function(){return this.durationMs}; g.h.start=function(){this.T||(this.T=!0,this.timer.start())}; g.h.stop=function(){this.T&&(this.T=!1,this.timer.stop())}; g.h.bC=function(){this.l8+=100;var T=!1;this.l8>this.durationMs&&(this.l8=this.durationMs,this.timer.stop(),T=!0);this.S={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.l8/1E3};this.publish("h");T&&this.publish("g")}; g.h.getProgressState=function(){return this.S};g.S(zZ,y6);g.h=zZ.prototype;g.h.init=function(T,Q,k){y6.prototype.init.call(this,T,Q,k);var l;if(Q==null?0:(l=Q.templatedCountdown)==null?0:l.templatedAdText){T=Q.templatedCountdown.templatedAdText;if(!T.isTemplated){g.rB(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.S=new Fc(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);this.S.init(k8("ad-text"),T,{});this.S.XB(this.element);g.P(this,this.S)}this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){V6(this);y6.prototype.hide.call(this)}; g.h.yF=function(){this.hide()}; g.h.yb=function(){if(this.T!=null){var T=this.T.getProgressState();if(T!=null&&T.current!=null&&this.S){var Q=this.T instanceof se?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:T.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.T instanceof SM?T.seekableEnd:this.api.getDuration(2,!1);T=T.current;var k,l,v=((k=this.api.getVideoData())==null?0:(l=k.lf)==null?0:l.call(k))?Math.max(Q-T,0):Q-T;EC(this.S,{FORMATTED_AD_DURATION_REMAINING:String(g.CN(v)), TIME_REMAINING:String(Math.ceil(v))})}}}; g.h.show=function(){iD(this);y6.prototype.show.call(this)};g.S(X8,Fc);X8.prototype.onClick=function(T){Fc.prototype.onClick.call(this,T);this.api.onAdUxClicked(this.componentType)};g.S(d3,Y8);d3.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});if(T=Q.content){g.CO(this.element,T);var k,l;Q=((k=Q.interaction)==null?void 0:(l=k.accessibility)==null?void 0:l.label)||T;this.element.setAttribute("aria-label",Q)}else g.bA(Error("AdSimpleAttributedString does not have text content"))}; d3.prototype.clear=function(){this.hide()}; d3.prototype.onClick=function(T){Y8.prototype.onClick.call(this,T)};g.S(NH,Y8); NH.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});(T=Q.label)&&T.content&&!g.bB(T.content)?(this.adBadgeText.init(k8("ad-simple-attributed-string"),new w3(T)),(Q=Q.adPodIndex)&&Q.content&&!g.bB(Q.content)&&(this.T=new d3(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),this.T.XB(this.element),g.P(this,this.T),this.T.element.classList.add("ytp-ad-badge__pod-index"),this.T.init(k8("ad-simple-attributed-string"),new w3(Q))),this.element.classList.add(this.S?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.bA(Error("No label is returned in AdBadgeViewModel."))}; NH.prototype.show=function(){this.adBadgeText.show();var T;(T=this.T)==null||T.show();Y8.prototype.show.call(this)}; NH.prototype.hide=function(){this.adBadgeText.hide();var T;(T=this.T)==null||T.hide();Y8.prototype.hide.call(this)};g.S(A$,Y8);A$.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});(T=Q.adPodIndex)&&T.content&&!g.bB(T.content)&&(this.T=new d3(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),this.T.XB(this.element),g.P(this,this.T),this.T.init(k8("ad-simple-attributed-string"),new w3(T)),Q.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()}; A$.prototype.show=function(){var T;(T=this.T)==null||T.show();Y8.prototype.show.call(this)}; A$.prototype.hide=function(){var T;(T=this.T)==null||T.hide();Y8.prototype.hide.call(this)};g.S(bP,Y8); bP.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});if(Q!=null&&Q.text){var k;if(((k=Q.text)==null?0:k.content)&&!g.bB(Q.text.content)){this.T=new g.M1({X:"div",J:"ytp-ad-disclosure-banner__text",S6:Q.text.content});g.P(this,this.T);this.T.XB(this.element);var l,v;T=((l=Q.interaction)==null?void 0:(v=l.accessibility)==null?void 0:v.label)||Q.text.content;this.element.setAttribute("aria-label",T);var L;if((L=Q.interaction)==null?0:L.onTap)this.S=new g.M1({X:"div",J:"ytp-ad-disclosure-banner__chevron",W:[g.mM()]}), g.P(this,this.S),this.S.XB(this.element);this.show()}}else g.bA(Error("No banner text found in AdDisclosureBanner."))}; bP.prototype.clear=function(){this.hide()};g.S(DV,g.M1);DV.prototype.bC=function(){var T=this.S.getProgressState(),Q=T.seekableEnd;this.api.getPresentingPlayerType()===2&&(Q=this.L?this.L/1E3:T.seekableEnd);this.progressBar.style.width=c8(new r3(T.seekableStart,Q),T.current,0)*100+"%"}; DV.prototype.onStateChange=function(){g.q0(this.api.G())||(this.api.getPresentingPlayerType()===2?this.T===-1&&(this.show(),this.T=this.S.subscribe("h",this.bC,this),this.bC()):this.T!==-1&&(this.hide(),this.S.Y_(this.T),this.T=-1))};g.S(aY,Y8); aY.prototype.init=function(T,Q,k,l){Y8.prototype.init.call(this,T,Q,k);if(Q.skipOrPreviewRenderer){if(T=g.t(Q.skipOrPreviewRenderer,wM))k=new GZ(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.S,this.D),k.XB(this.sK),k.init(k8("skip-button"),T,this.macros),g.P(this,k);if(T=g.t(Q.skipOrPreviewRenderer,wM))var v=T.skipOffsetMilliseconds}Q.brandInteractionRenderer&&(T=Q.brandInteractionRenderer.brandInteractionRenderer,k=new lP(this.api,this.layoutId,this.interactionLoggingClientData,this.G9), k.XB(this.i9),k.init(k8("instream-user-sentiment"),T,this.macros),g.P(this,k));if(T=g.t(Q,hCW))if(T=g.t(T,hCW))k=new kX(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.S,!!Q.showWithoutLinkedMediaLayout),g.P(this,k),k.XB(this.B),k.init(k8("flyout-cta"),T,this.macros);l=l&&l.videoAdDurationSeconds;Q.adBadgeRenderer&&(k=Q.adBadgeRenderer,T=g.t(k,FX),T!=null?(k=new NH(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,!1),g.P(this,k),k.XB(this.T),k.init(k8("ad-badge"), T,this.macros),this.L=k.element):(T=k.simpleAdBadgeRenderer,T==null&&(T={text:{text:"Anuncio",isTemplated:!1}}),k=new IY(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,!0),g.P(this,k),k.XB(this.T),k.init(k8("simple-ad-badge"),T,this.macros)));Q.adPodIndex&&(T=g.t(Q.adPodIndex,Ai$),T!=null&&(k=new A$(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,k),k.XB(this.T),k.init(k8("ad-pod-index"),T)));Q.adDurationRemaining&&!Q.showWithoutLinkedMediaLayout&&(T=Q.adDurationRemaining.adDurationRemainingRenderer, T==null&&(T={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),l=new zZ(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.S,l,!1),g.P(this,l),l.XB(this.T),l.init(k8("ad-duration-remaining"),T,this.macros));Q.adInfoRenderer&&(l=g.t(Q.adInfoRenderer,TT))&&(T=new ex(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.element,void 0,!1),g.P(this,T),this.L!==null?this.T.insertBefore(T.element,this.L.nextSibling):T.XB(this.T), T.init(k8("ad-info-hover-text-button"),l,this.macros));Q.visitAdvertiserRenderer&&(T=g.t(Q.visitAdvertiserRenderer,g.jw))&&(k=fA5(this)&&this.Y?this.Y:this.T)&&(l=new mP(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,l),l.XB(k),l.init(k8("visit-advertiser"),T,this.macros),te(l.element),T=Je(l.element),pV(l.element,T+" This link opens in new tab"));!(l=this.api.G())||g.vB(l)||g.Qk(l)||l.controlsType!="3"&&!l.disableOrganicUi||(v=new DV(this.api,this.S,v,!1),v.XB(this.Bd), g.P(this,v));Q.adDisclosureBannerRenderer&&(Q=g.t(Q.adDisclosureBannerRenderer,Nav))&&(v=new bP(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),v.XB(this.qO),v.init(k8("ad-disclosure-banner"),Q),g.P(this,v));this.api.G().V("enable_updated_html5_player_focus_style")&&g.oF(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; aY.prototype.clear=function(){this.hide()};g.KN.prototype.flush=function(T,Q){T=T===void 0?[]:T;Q=Q===void 0?!1:Q;if(g.hH("enable_client_streamz_web")){T=g.B(T);for(var k=T.next();!k.done;k=T.next())k=VYy(k.value),this.T&&Ns(k,Mw,2,this.T),k={serializedIncrementBatch:g.dJ(k.L())},g.LM("streamzIncremented",k,{sendIsolatedPayload:Q})}}; g.S(mht,g.KN);var RR6=new Map;xX.prototype.set=function(T,Q,k){k=k!==void 0?Date.now()+k:void 0;this.T.set(T,Q,k)}; xX.prototype.get=function(T){return this.T.get(T)}; xX.prototype.remove=function(T){this.T.remove(T)};var hpX=null;var pN=null,W8=null,$X=null,XeC=null;g.Tv("yt.www.ads.eventcache.getLastCompanionData",function(){return pN}); g.Tv("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.Tv("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return W8}); g.Tv("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return $X}); g.Tv("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return XeC});var dhT=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);J$.prototype.handleResponse=function(T,Q){if(!Q)throw Error("request needs to be passed into ConsistencyService");var k,l;Q=((k=Q.Ys.context)==null?void 0:(l=k.request)==null?void 0:l.consistencyTokenJars)||[];var v;(T=(v=T.responseContext)==null?void 0:v.consistencyTokenJar)&&this.replace(Q,T)}; J$.prototype.replace=function(T,Q){T=g.B(T);for(var k=T.next();!k.done;k=T.next())delete this.T[k.value.encryptedTokenJarContents];AFT(this,Q)};var tOm=window.location.hostname.split(".").slice(-2).join("."),a6;F8.getInstance=function(){a6=g.jA("yt.clientLocationService.instance");a6||(a6=new F8,g.Tv("yt.clientLocationService.instance",a6));return a6}; g.h=F8.prototype; g.h.setLocationOnInnerTubeContext=function(T){T.client||(T.client={});if(this.T)T.client.locationInfo||(T.client.locationInfo={}),T.client.locationInfo.latitudeE7=Math.floor(this.T.coords.latitude*1E7),T.client.locationInfo.longitudeE7=Math.floor(this.T.coords.longitude*1E7),T.client.locationInfo.horizontalAccuracyMeters=Math.round(this.T.coords.accuracy),T.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.L||this.locationPlayabilityToken)T.client.locationPlayabilityToken=this.L|| this.locationPlayabilityToken}; g.h.handleResponse=function(T){var Q;T=(Q=T.responseContext)==null?void 0:Q.locationPlayabilityToken;T!==void 0&&(this.locationPlayabilityToken=T,this.T=void 0,g.$i("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=eM(this))&&this.localStorage.set("yt-location-playability-token",T,15552E3):g.aU("YT_CL",JSON.stringify({loctok:T}),15552E3,tOm,!0))}; g.h.clearLocationPlayabilityToken=function(T){T==="TVHTML5"?(this.localStorage=eM(this))&&this.localStorage.remove("yt-location-playability-token"):g.nh("YT_CL");this.L=void 0;this.S!==-1&&(clearTimeout(this.S),this.S=-1)}; g.h.getCurrentPositionFromGeolocation=function(){var T=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var Q=!1,k=1E4;g.$i("INNERTUBE_CLIENT_NAME")==="MWEB"&&(Q=!0,k=15E3);return new Promise(function(l,v){navigator.geolocation.getCurrentPosition(function(L){T.T=L;l(L)},function(L){v(L)},{enableHighAccuracy:Q, maximumAge:0,timeout:k})})}; g.h.createUnpluggedLocationInfo=function(T){var Q={};T=T.coords;if(T==null?0:T.latitude)Q.latitudeE7=Math.floor(T.latitude*1E7);if(T==null?0:T.longitude)Q.longitudeE7=Math.floor(T.longitude*1E7);if(T==null?0:T.accuracy)Q.locationRadiusMeters=Math.round(T.accuracy);return Q}; g.h.createLocationInfo=function(T){var Q={};T=T.coords;if(T==null?0:T.latitude)Q.latitudeE7=Math.floor(T.latitude*1E7);if(T==null?0:T.longitude)Q.longitudeE7=Math.floor(T.longitude*1E7);return Q};g.h=aAt.prototype;g.h.contains=function(T){return Object.prototype.hasOwnProperty.call(this.T,T)}; g.h.get=function(T){if(this.contains(T))return this.T[T]}; g.h.set=function(T,Q){this.T[T]=Q}; g.h.zG=function(){return Object.keys(this.T)}; g.h.remove=function(T){delete this.T[T]};yr.prototype.getModuleId=function(T){return T.serviceId.getModuleId()}; yr.prototype.get=function(T){a:{var Q=this.mappings.get(T.toString());switch(Q.type){case "mapping":T=Q.value;break a;case "factory":Q=Q.value();this.mappings.set(T.toString(),{type:"mapping",value:Q});T=Q;break a;default:T=Uk(Q)}}return T}; yr.prototype.registerService=function(T,Q){this.mappings.set(T.toString(),{type:"mapping",value:Q});return T}; new yr;var us={},uYy=(us.WEB_UNPLUGGED="^unplugged/",us.WEB_UNPLUGGED_ONBOARDING="^unplugged/",us.WEB_UNPLUGGED_OPS="^unplugged/",us.WEB_UNPLUGGED_PUBLIC="^unplugged/",us.WEB_CREATOR="^creator/",us.WEB_KIDS="^kids/",us.WEB_EXPERIMENTS="^experiments/",us.WEB_MUSIC="^music/",us.WEB_REMIX="^music/",us.WEB_MUSIC_EMBEDDED_PLAYER="^music/",us.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",us);TC.prototype.N=function(T,Q,k){Q=Q===void 0?{}:Q;k=k===void 0?US:k;var l={context:g.Ee(T.clickTrackingParams,!1,this.Y)};var v=this.S(T);if(v){this.T(l,v,Q);var L;Q=g.Vr(this.L());(v=(L=g.t(T.commandMetadata,g.XD))==null?void 0:L.apiUrl)&&(Q=v);L=Ib5(Kh(Q));T=Object.assign({},{command:T},void 0);l={input:L,Om:x5(L),Ys:l,config:T};l.config.gZ?l.config.gZ.identity=k:l.config.gZ={identity:k};return l}k=new g.Wy("Error: Failed to create Request from Command.",T);g.bA(k)}; g.oI.Object.defineProperties(TC.prototype,{Y:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.S(Qi,TC);g.S(jK,Qi);jK.prototype.N=function(){return{input:"/getDatasyncIdsEndpoint",Om:x5("/getDatasyncIdsEndpoint","GET"),Ys:{}}}; jK.prototype.L=function(){return[]}; jK.prototype.S=function(){}; jK.prototype.T=function(){};var OOW={},f2C=(OOW.GET_DATASYNC_IDS=iP(jK),OOW);var ns={},p2J=(ns["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",ns["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",ns["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",ns["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",ns["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",ns["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",ns["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", ns["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",ns["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",ns["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",ns["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",ns["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",ns["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",ns["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",ns["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", ns["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",ns["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",ns["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",ns["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",ns["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",ns["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",ns["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", ns["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",ns.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",ns["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",ns["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",ns["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",ns["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",ns["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",ns["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", ns["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",ns["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",ns["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",ns["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",ns["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",ns["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",ns["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",ns["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",ns["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",ns["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",ns.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",ns["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",ns["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",ns["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",ns["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",ns["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",ns["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",ns["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",ns["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",ns["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",ns["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",ns["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",ns["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",ns["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",ns["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",ns["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",ns["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",ns["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",ns["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",ns["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",ns["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",ns["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", ns["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",ns["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",ns["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",ns["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",ns["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",ns["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",ns["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",ns["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",ns["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", ns["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",ns["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",ns["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",ns["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",ns["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",ns["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",ns["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",ns["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", ns),Ks={},OMC=(Ks.auto_search="LATENCY_ACTION_AUTO_SEARCH",Ks.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Ks.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Ks.app_startup="LATENCY_ACTION_APP_STARTUP",Ks.browse="LATENCY_ACTION_BROWSE",Ks.cast_splash="LATENCY_ACTION_CAST_SPLASH",Ks.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Ks.channels="LATENCY_ACTION_CHANNELS",Ks.chips="LATENCY_ACTION_CHIPS",Ks.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Ks.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", Ks.editor="LATENCY_ACTION_EDITOR",Ks.embed="LATENCY_ACTION_EMBED",Ks.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Ks.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Ks.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Ks.explore="LATENCY_ACTION_EXPLORE",Ks.favorites="LATENCY_ACTION_FAVORITES",Ks.home="LATENCY_ACTION_HOME",Ks.inboarding="LATENCY_ACTION_INBOARDING",Ks.landing="LATENCY_ACTION_LANDING",Ks.learning="LATENCY_ACTION_LEARNING", Ks.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Ks.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Ks.library="LATENCY_ACTION_LIBRARY",Ks.live="LATENCY_ACTION_LIVE",Ks.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Ks.management="LATENCY_ACTION_MANAGEMENT",Ks.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Ks.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Ks.onboarding="LATENCY_ACTION_ONBOARDING",Ks.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", Ks.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Ks.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Ks.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Ks.prebuffer="LATENCY_ACTION_PREBUFFER",Ks.prefetch="LATENCY_ACTION_PREFETCH",Ks.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Ks.profile_switcher="LATENCY_ACTION_LOGIN",Ks.projects="LATENCY_ACTION_PROJECTS",Ks.reel_watch="LATENCY_ACTION_REEL_WATCH",Ks.results="LATENCY_ACTION_RESULTS",Ks.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", Ks.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Ks.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Ks.review="LATENCY_ACTION_REVIEW",Ks.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Ks.search_ui="LATENCY_ACTION_SEARCH_UI",Ks.search_suggest="LATENCY_ACTION_SUGGEST",Ks.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Ks.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Ks.seek="LATENCY_ACTION_PLAYER_SEEK",Ks.settings="LATENCY_ACTION_SETTINGS",Ks.store="LATENCY_ACTION_STORE", Ks.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Ks.tenx="LATENCY_ACTION_TENX",Ks.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Ks.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Ks.watch="LATENCY_ACTION_WATCH",Ks.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Ks["watch,watch7"]="LATENCY_ACTION_WATCH",Ks["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Ks["watch,watch7ad"]="LATENCY_ACTION_WATCH",Ks["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Ks.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", Ks.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Ks.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Ks.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Ks.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Ks.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Ks.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Ks.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Ks);Object.assign(OMC,p2J);g.S(Ys,RK);var kP6=new Z2("aft-recorded",Ys);var Wm9=g.VC.ytLoggingGelSequenceIdObj_||{};g.Tv("ytLoggingGelSequenceIdObj_",Wm9);var Zy=g.VC.ytLoggingLatencyUsageStats_||{};g.Tv("ytLoggingLatencyUsageStats_",Zy);UH.prototype.tick=function(T,Q,k,l){fG(this,"tick_"+T+"_"+Q)||g.LM("latencyActionTicked",{tickName:T,clientActionNonce:Q},{timestamp:k,cttAuthInfo:l})}; UH.prototype.info=function(T,Q,k){var l=Object.keys(T).join("");fG(this,"info_"+l+"_"+Q)||(T=Object.assign({},T),T.clientActionNonce=Q,g.LM("latencyActionInfo",T,{cttAuthInfo:k}))}; UH.prototype.jspbInfo=function(T,Q,k){for(var l="",v=0;v<$y(T).length;v++)$y(T)[v]!==void 0&&(l=v===0?l.concat(""+v):l.concat("_"+v));if(!fG(this,"info_"+l+"_"+Q)){xM(T,2,Q);k={cttAuthInfo:k};Q=g.hH("jspb_sparse_encoded_pivot")?new xi([{}]):new xi;Dnu(Q,uK,7,$nv,T);k=k===void 0?{}:k;T=!1;g.$i("ytLoggingEventsDefaultDisabled",!1)&&(T=!0);T=T?null:g.ez;k=k===void 0?{}:k;l=Math.round(k.timestamp||(0,g.XY)());Kg(Q,1,l=v.length?(Q.append(v),T-=v.length):T?(Q.append(new Uint8Array(v.buffer,v.byteOffset,T)),k.append(new Uint8Array(v.buffer,v.byteOffset+T,v.length-T)),T=0):k.append(v);return{Rz:Q,ow:k}}; oV.prototype.isFocused=function(T){return T>=this.L&&T=64&&(this.B.set(T.subarray(0,64-this.S),this.S),Q=64-this.S,this.S=0,v_H(this,this.B,0));for(;Q+64<=k;Q+=64)v_H(this,T,Q);Q=this.start&&(T=2&&k.ssdaiAdsConfig&&MH("Unexpected ad placement renderers length",T.slot,null,{length:l.length});var v;((v=k.adSlots)==null?0:v.some(function(L){var q,Y;return((q=g.t(L,oA))==null?void 0:(Y=q.adSlotMetadata)==null?void 0:Y.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||l.some(function(L){var q,Y,U,R; return!!((q=L.renderer)==null?0:(Y=q.linearAdSequenceRenderer)==null?0:(U=Y.linearAds)==null?0:U.length)||!((R=L.renderer)==null||!R.instreamVideoAdRenderer)})||Aab(T)})}; EI.prototype.F5=function(){Z9X(this.T)};y0.prototype.gH=function(){var T=this;RU5(this.S,function(){var Q=FN(T.slot.clientMetadata,"metadata_type_ad_break_request_data");return Q.cueProcessedMs?T.T.get().fetch({nT:Q.getAdBreakUrl,uI:new g.$d(Q.xQ,Q.i$),cueProcessedMs:Q.cueProcessedMs}):T.T.get().fetch({nT:Q.getAdBreakUrl,uI:new g.$d(Q.xQ,Q.i$)})})}; y0.prototype.F5=function(){Z9X(this.S)};ih.prototype.gH=function(){var T=this.slot.clientMetadata,Q,k=(Q=this.slot.fulfilledLayout)!=null?Q:FN(T,"metadata_type_fulfilled_layout");Juy(this.callback,this.slot,k)}; ih.prototype.F5=function(){qo(this.callback,this.slot,new F("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter.",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_FULFILLMENT_CANCELLATION_REQUEST"),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")};T1.prototype.build=function(T,Q){return Q.fulfilledLayout||V0(Q,{YM:["metadata_type_fulfilled_layout"]})?new ih(T,Q):this.L(T,Q)};g.S(Q1,T1); Q1.prototype.L=function(T,Q){if(V0(Q,{YM:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new EI(T,Q,this.T,this.S,this.dc,this.Qq,this.Vq,this.UK,this.iC);if(V0(Q,{YM:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new y0(T,Q,this.T,this.S,this.dc,this.Qq);throw new F("Unsupported slot with type: "+Q.slotType+" and client metadata: "+E9(Q.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.S(jB,T1);jB.prototype.L=function(T,Q){throw new F("Unsupported slot with type: "+Q.slotType+" and client metadata: "+E9(Q.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.h=b9b.prototype;g.h.t3=function(){return this.slot}; g.h.b9=function(){return this.layout}; g.h.init=function(){}; g.h.release=function(){}; g.h.startRendering=function(T){if(T.layoutId!==this.layout.layoutId)this.callback.ke(this.slot,T,new Jj("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 Q=FN(T.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.y4(this.slot,T),eyC(this.L, this.slot,Q)):MH("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,T)}}; g.h.oK=function(T,Q){T.layoutId!==this.layout.layoutId?this.callback.ke(this.slot,T,new Jj("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.N2(this.slot,T,Q),ca5(this),D8b(this))};g.S(LB,g.ox);g.h=LB.prototype;g.h.t3=function(){return this.S.slot}; g.h.b9=function(){return this.S.layout}; g.h.init=function(){this.L.get().addListener(this)}; g.h.release=function(){this.L.get().removeListener(this);this.dispose()}; g.h.xO=function(){}; g.h.iY=function(){}; g.h.ma=function(){}; g.h.Yk=function(){}; g.h.startRendering=function(T){var Q=this;vk(this.S,T,function(){return void Q.mQ()})}; g.h.mQ=function(){this.L.get().mQ(this.T)}; g.h.oK=function(T,Q){var k=this;vk(this.S,T,function(){var l=k.L.get();i4f(l,k.T,3);k.T=[];k.callback.N2(k.slot,T,Q)})}; g.h.EK=function(){this.L.wd()||this.L.get().removeListener(this);g.ox.prototype.EK.call(this)}; g.oI.Object.defineProperties(LB.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.S.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.S.layout}}});fB.prototype.Fw=function(T,Q){Q=Q===void 0?!1:Q;var k=(this.L.get(T)||[]).concat();if(Q=Q&&KAJ(T)){var l=this.L.get(Q);l&&k.push.apply(k,g.ZH(l))}I0(this,T,k);this.T.add(T);Q&&this.T.add(Q)}; fB.prototype.Wx=function(T,Q){Q=Q===void 0?!1:Q;if(!this.T.has(T)){var k=Q&&KAJ(T);k&&(Q=!this.T.has(k));this.Fw(T,Q)}};g.S(H9I,lD);g.S(Bk,LB);g.h=Bk.prototype;g.h.xe=function(T,Q){Yp("ads-engagement-panel-layout",T,this.B.get().sF,this.Vq.get(),this.Y,this.N,this.t3(),this.b9(),Q)}; g.h.startRendering=function(T){gv(this.n_,this.t3(),this.b9(),g.t(this.b9().renderingContent,cO),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(Q,k,l,v,L){return new H9I(Q,k,l,v,L)},this.T); LB.prototype.startRendering.call(this,T)}; g.h.y4=function(T,Q){this.N===Q.layoutId&&(this.Y===null?this.Y=this.Vq.get().Cd():MH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.N2=function(){}; g.h.HT=function(){}; g.h.vT=function(){}; g.h.PT=function(){}; g.h.Id=function(){}; g.h.KG=function(){}; g.h.ul=function(){}; g.h.Oh=function(){}; g.h.il=function(){}; g.h.Ry=function(){}; g.h.v1=function(){}; g.h.EK=function(){vI(this.EH(),this);LB.prototype.EK.call(this)};g.S(O9C,lD);g.S(z1,LB);g.h=z1.prototype;g.h.xe=function(T,Q){Yp("banner-image",T,this.B.get().sF,this.Vq.get(),this.Y,this.N,this.t3(),this.b9(),Q)}; g.h.startRendering=function(T){gv(this.n_,this.t3(),this.b9(),g.t(this.b9().renderingContent,bQ),this.callback,"metadata_type_banner_image_layout_view_model",function(Q,k,l,v,L){return new O9C(Q,k,l,v,L)},this.T); LB.prototype.startRendering.call(this,T)}; g.h.y4=function(T,Q){this.N===Q.layoutId&&(this.Y===null?this.Y=this.Vq.get().Cd():MH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.N2=function(){}; g.h.HT=function(){}; g.h.vT=function(){}; g.h.PT=function(){}; g.h.Id=function(){}; g.h.KG=function(){}; g.h.ul=function(){}; g.h.Oh=function(){}; g.h.il=function(){}; g.h.Ry=function(){}; g.h.v1=function(){}; g.h.EK=function(){vI(this.EH(),this);LB.prototype.EK.call(this)};g.S(XS,lD);g.S(wv,LB);g.h=wv.prototype;g.h.xe=function(T,Q){Yp("action-companion",T,this.B.get().sF,this.Vq.get(),this.Y,this.N,this.t3(),this.b9(),Q)}; g.h.startRendering=function(T){gv(this.n_,this.t3(),this.b9(),g.t(this.b9().renderingContent,dO),this.callback,"metadata_type_action_companion_ad_renderer",function(Q,k,l,v,L){return new XS(Q,k,l,v,L)},this.T); LB.prototype.startRendering.call(this,T)}; g.h.y4=function(T,Q){Q.layoutId===this.layout.layoutId?this.n_.Wx("impression"):this.N===Q.layoutId&&(this.Y===null?this.Y=this.Vq.get().Cd():MH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.N2=function(){}; g.h.HT=function(){}; g.h.vT=function(){}; g.h.PT=function(){}; g.h.Id=function(){}; g.h.KG=function(){}; g.h.ul=function(){}; g.h.Oh=function(){}; g.h.il=function(){}; g.h.Ry=function(){}; g.h.v1=function(){}; g.h.EK=function(){vI(this.EH(),this);LB.prototype.EK.call(this)};g.S($8y,lD);g.S(dv,LB);g.h=dv.prototype;g.h.xe=function(T,Q){Yp("image-companion",T,this.B.get().sF,this.Vq.get(),this.Y,this.N,this.t3(),this.b9(),Q)}; g.h.startRendering=function(T){gv(this.n_,this.t3(),this.b9(),g.t(this.b9().renderingContent,NA),this.callback,"metadata_type_image_companion_ad_renderer",function(Q,k,l,v,L){return new $8y(Q,k,l,v,L)},this.T); LB.prototype.startRendering.call(this,T)}; g.h.y4=function(T,Q){Q.layoutId===this.layout.layoutId?this.n_.Wx("impression"):this.N===Q.layoutId&&(this.Y===null?this.Y=this.Vq.get().Cd():MH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.N2=function(){}; g.h.HT=function(){}; g.h.vT=function(){}; g.h.PT=function(){}; g.h.Id=function(){}; g.h.KG=function(){}; g.h.ul=function(){}; g.h.Oh=function(){}; g.h.il=function(){}; g.h.Ry=function(){}; g.h.v1=function(){}; g.h.EK=function(){vI(this.EH(),this);LB.prototype.EK.call(this)};g.S(eUf,lD);g.S(NP,LB);g.h=NP.prototype;g.h.xe=function(T,Q){Yp("shopping-companion",T,this.B.get().sF,this.Vq.get(),this.Y,this.N,this.t3(),this.b9(),Q)}; g.h.startRendering=function(T){gv(this.n_,this.t3(),this.b9(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(Q,k,l,v,L){return new eUf(Q,k,l,v,L)},this.T); LB.prototype.startRendering.call(this,T)}; g.h.y4=function(T,Q){Q.layoutId===this.layout.layoutId?this.n_.Wx("impression"):this.N===Q.layoutId&&(this.Y===null?this.Y=this.Vq.get().Cd():MH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.N2=function(){}; g.h.HT=function(){}; g.h.vT=function(){}; g.h.PT=function(){}; g.h.Id=function(){}; g.h.KG=function(){}; g.h.ul=function(){}; g.h.Oh=function(){}; g.h.il=function(){}; g.h.Ry=function(){}; g.h.v1=function(){}; g.h.EK=function(){vI(this.EH(),this);LB.prototype.EK.call(this)};g.S(bE,LB);g.h=bE.prototype;g.h.startRendering=function(T){gv(this.n_,this.t3(),this.b9(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(Q,k,l,v,L){return new XS(Q,k,l,v,L)},this.T); LB.prototype.startRendering.call(this,T)}; g.h.y4=function(){}; g.h.N2=function(){}; g.h.HT=function(){}; g.h.vT=function(){}; g.h.PT=function(){}; g.h.Id=function(){}; g.h.KG=function(){}; g.h.ul=function(){}; g.h.Oh=function(){}; g.h.il=function(){}; g.h.Ry=function(){}; g.h.v1=function(){}; g.h.EK=function(){vI(this.EH(),this);LB.prototype.EK.call(this)}; g.h.xe=function(){};g.h=TDH.prototype;g.h.t3=function(){return this.slot}; g.h.b9=function(){return this.layout}; g.h.init=function(){this.UK.get().addListener(this);this.UK.get().KQ.push(this);var T=FN(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Q=FN(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");UP(this.layout.EG)&&ow(this.kB.get(),this.layout.layoutId,{Tm:Q,n6:T,listener:this})}; g.h.release=function(){this.UK.get().removeListener(this);JDf(this.UK.get(),this);UP(this.layout.EG)&&vb(this.kB.get(),this.layout.layoutId)}; g.h.startRendering=function(T){this.callback.y4(this.slot,T)}; g.h.oK=function(T,Q){Giu(this.Qq.get())&&!this.T&&(this.n_.Wx("abandon"),this.T=!0);this.callback.N2(this.slot,T,Q)}; g.h.Hg=function(T){switch(T.id){case "part2viewed":this.n_.Wx("start");this.n_.Wx("impression");break;case "videoplaytime25":this.n_.Wx("first_quartile");break;case "videoplaytime50":this.n_.Wx("midpoint");break;case "videoplaytime75":this.n_.Wx("third_quartile");break;case "videoplaytime100":Giu(this.Qq.get())?this.T||(this.n_.Wx("complete"),this.T=!0):this.n_.Wx("complete");CB(this.n_)&&sP(this.n_,Infinity,!0);mkg(this.Qq.get())&&AM(this.S,Infinity,!0);break;case "engagedview":CB(this.n_)||this.n_.Wx("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:MH("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.h.onVolumeChange=function(){}; g.h.UF=function(){}; g.h.Gw=function(){}; g.h.zk=function(){}; g.h.onFullscreenToggled=function(){}; g.h.DG=function(){}; g.h.qN=function(){}; g.h.W6=function(T){mkg(this.Qq.get())&&AM(this.S,T*1E3,!1);CB(this.n_)&&sP(this.n_,T*1E3,!1)}; g.h.gC=function(){}; g.h.GM=function(){this.n_.Wx("active_view_measurable")}; g.h.PV=function(){this.n_.Wx("active_view_viewable")}; g.h.KH=function(){this.n_.Wx("active_view_fully_viewable_audible_half_duration")}; g.h.IA=function(){this.n_.Wx("audio_measurable")}; g.h.bq=function(){this.n_.Wx("audio_audible")};g.S(rv,LB);g.h=rv.prototype;g.h.init=function(){LB.prototype.init.call(this);var T=FN(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),Q={adsClientData:this.layout.ZP};this.T.push(new h$(T,this.layout.layoutId,FN(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),Q,!0))}; g.h.wr=function(){this.Y||this.UK.get().resumeVideo(1)}; g.h.startRendering=function(T){LB.prototype.startRendering.call(this,T);Zp(this.UK.get(),"ad-showing");this.callback.y4(this.slot,T);this.N.gS=this}; g.h.oK=function(T,Q){LB.prototype.oK.call(this,T,Q);f_(this.UK.get(),"ad-showing");Vs(this.N,this)}; g.h.xe=function(T){switch(T){case "ad-info-icon-button":(this.Y=this.UK.get().zz(1))||this.UK.get().pauseVideo();break;case "visit-advertiser":this.UK.get().pauseVideo()}}; g.h.EK=function(){LB.prototype.EK.call(this)};g.S(ck,lD);g.S(DJ,LB);g.h=DJ.prototype;g.h.startRendering=function(T){gv(this.n_,this.t3(),this.b9(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(Q,k,l,v,L){return new ck(Q,k,l,v,L)},this.T); LB.prototype.startRendering.call(this,T)}; g.h.y4=function(){}; g.h.N2=function(){}; g.h.HT=function(){}; g.h.vT=function(){}; g.h.PT=function(){}; g.h.Id=function(){}; g.h.KG=function(){}; g.h.ul=function(){}; g.h.Oh=function(){}; g.h.il=function(){}; g.h.Ry=function(){}; g.h.v1=function(){}; g.h.EK=function(){vI(this.EH(),this);LB.prototype.EK.call(this)}; g.h.xe=function(){};g.S(a0,lD);g.S(uE,LB);uE.prototype.init=function(){LB.prototype.init.call(this);this.T.push(new a0(g.t(this.layout.renderingContent,eg),this.layout.layoutId,{adsClientData:this.layout.ZP}))}; uE.prototype.xe=function(){yN(this.Y.get(),this.N)&&MP(this.Vq.get(),3)}; uE.prototype.startRendering=function(T){LB.prototype.startRendering.call(this,T);this.callback.y4(this.slot,T)}; uE.prototype.EK=function(){LB.prototype.EK.call(this)};g.S(nB,lD);g.S(KB,LB);KB.prototype.init=function(){LB.prototype.init.call(this);var T=g.t(this.layout.renderingContent,y1)||FN(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),Q=qP(this.n_);this.T.push(new nB(T,Q,this.layout.layoutId,{adsClientData:this.layout.ZP},!0,!0))}; KB.prototype.startRendering=function(T){LB.prototype.startRendering.call(this,T);this.callback.y4(this.slot,T)}; KB.prototype.xe=function(T,Q){if(Q===this.layout.layoutId)switch(T){case "skip-button":var k;(T=(k=FN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:k.current)&&T.q8(this.t3(),this.layout)}}; KB.prototype.EK=function(){LB.prototype.EK.call(this)};Pk.prototype.build=function(T,Q,k,l){if(xp(l,{YM:["metadata_type_ad_break_response_data"],zH:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new b9b(T,k,l,this.S,this.L,this.T);throw new Jj("Unsupported layout with type: "+l.layoutType+" and client metadata: "+E9(l.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.S(kI5,lD);g.S(Hk,LB);g.h=Hk.prototype;g.h.xe=function(T,Q){Yp("ads-engagement-panel",T,this.B.get().sF,this.Vq.get(),this.Y,this.N,this.t3(),this.b9(),Q)}; g.h.startRendering=function(T){gv(this.n_,this.t3(),this.b9(),g.t(this.b9().renderingContent,Ak),this.callback,"metadata_type_ads_engagement_panel_renderer",function(Q,k,l,v,L){return new kI5(Q,k,l,v,L)},this.T); LB.prototype.startRendering.call(this,T)}; g.h.y4=function(T,Q){Q.layoutId===this.layout.layoutId?this.n_.Wx("impression"):this.N===Q.layoutId&&(this.Y===null?this.Y=this.Vq.get().Cd():MH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.N2=function(){}; g.h.HT=function(){}; g.h.vT=function(){}; g.h.PT=function(){}; g.h.Id=function(){}; g.h.KG=function(){}; g.h.ul=function(){}; g.h.Oh=function(){}; g.h.il=function(){}; g.h.Ry=function(){}; g.h.v1=function(){}; g.h.EK=function(){vI(this.EH(),this);LB.prototype.EK.call(this)};g.S(tM,LB);g.h=tM.prototype;g.h.xe=function(T,Q){Yp("top-banner-image-text-icon-buttoned",T,this.B.get().sF,this.Vq.get(),this.Y,this.N,this.t3(),this.b9(),Q)}; g.h.startRendering=function(T){gv(this.n_,this.t3(),this.b9(),g.t(this.b9().renderingContent,rO),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(Q,k,l,v,L){return new ck(Q,k,l,v,L)},this.T); LB.prototype.startRendering.call(this,T)}; g.h.y4=function(T,Q){this.N===Q.layoutId&&(this.Y===null?this.Y=this.Vq.get().Cd():MH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.N2=function(){}; g.h.HT=function(){}; g.h.vT=function(){}; g.h.PT=function(){}; g.h.Id=function(){}; g.h.KG=function(){}; g.h.ul=function(){}; g.h.Oh=function(){}; g.h.il=function(){}; g.h.Ry=function(){}; g.h.v1=function(){}; g.h.EK=function(){vI(this.EH(),this);LB.prototype.EK.call(this)};v8T.prototype.build=function(T,Q,k,l){if(xp(l,lFC())||g.t(l.renderingContent,Ak)!==void 0)return new Hk(T,k,l,this.h6,this.Vq,this.EH,this.kB,this.T);if(xp(l,WA5())||g.t(l.renderingContent,dO)!==void 0)return new wv(T,k,l,this.h6,this.Vq,this.EH,this.kB,this.T);if(xp(l,Ja5())||g.t(l.renderingContent,NA)!==void 0)return new dv(T,k,l,this.h6,this.Vq,this.EH,this.kB,this.T);if(xp(l,FAt()))return new NP(T,k,l,this.h6,this.Vq,this.EH,this.kB,this.T);if(xp(l,VTI()))return new bE(T,k,l,this.h6,this.Vq,this.EH, this.kB,this.T);if(xp(l,pxJ())||g.t(l.renderingContent,bQ)!==void 0)return new z1(T,k,l,this.h6,this.Vq,this.EH,this.kB,this.T);if(xp(l,o8y())||g.t(l.renderingContent,rO)!==void 0)return new tM(T,k,l,this.h6,this.Vq,this.EH,this.kB,this.T);if(xp(l,Qxu()))return new DJ(T,k,l,this.h6,this.Vq,this.EH,this.kB,this.T);if(xp(l,tTt())||g.t(l.renderingContent,cO)!==void 0)return new Bk(T,k,l,this.h6,this.Vq,this.EH,this.kB,this.T);throw new Jj("Unsupported layout with type: "+l.layoutType+" and client metadata: "+ E9(l.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};LMt.prototype.build=function(T,Q,k,l){if(xp(l,{YM:["metadata_type_linked_player_bytes_layout_id"],zH:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new uE(T,k,l,this.h6,this.Vq,this.T);throw new Jj("Unsupported layout with type: "+l.layoutType+" and client metadata: "+E9(l.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.h=qC6.prototype;g.h.t3=function(){return this.slot}; g.h.b9=function(){return this.layout}; g.h.init=function(){}; g.h.release=function(){}; g.h.startRendering=function(T){T.layoutId!==this.layout.layoutId?this.callback.ke(this.slot,T,new Jj("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.y4(this.slot,T),this.n_.Wx("impression"),UW(this.g8,T,"normal"))}; g.h.oK=function(T,Q){T.layoutId!==this.layout.layoutId?this.callback.ke(this.slot,T,new Jj("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.N2(this.slot,T,Q)};g.h=MxX.prototype;g.h.t3=function(){return this.slot}; g.h.b9=function(){return this.layout}; g.h.init=function(){}; g.h.release=function(){}; g.h.startRendering=function(T){T.layoutId!==this.layout.layoutId?this.callback.ke(this.slot,T,new Jj("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.y4(this.slot,T),this.n_.Wx("impression"),UW(this.g8,T,"normal"))}; g.h.oK=function(T,Q){T.layoutId!==this.layout.layoutId?this.callback.ke(this.slot,T,new Jj("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.N2(this.slot,T,Q)};OP.prototype.build=function(T,Q,k,l){if(!this.Qq.get().U.G().V("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(xp(l,g8f()))return new qC6(T,k,l,this.Vq,this.g8)}else if(xp(l,{YM:[],zH:["LAYOUT_TYPE_FORECASTING"]}))return new MxX(T,k,l,this.Vq,this.g8);throw new Jj("Unsupported layout with type: "+l.layoutType+" and client metadata: "+E9(l.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.S(Rif,lD);g.S(pB,LB);g.h=pB.prototype;g.h.init=function(){LB.prototype.init.call(this);var T=g.t(this.layout.renderingContent,EP)||FN(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),Q={adsClientData:this.layout.ZP};this.T.push(new Rif(T,FN(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,Q))}; g.h.wr=function(){this.Y||this.UK.get().resumeVideo(2)}; g.h.startRendering=function(T){LB.prototype.startRendering.call(this,T);this.callback.y4(this.slot,T);this.N.gS=this}; g.h.oK=function(T,Q){LB.prototype.oK.call(this,T,Q);Vs(this.N,this)}; g.h.xe=function(T,Q){if(!KF(this.Qq.get(),"stop_handling_click_for_non_rendering_overlay_layout")||Q===this.layout.layoutId){if(yN(this.B.get(),this.C))switch(T){case "visit-advertiser-link":MP(this.Vq.get(),3)}switch(T){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Y||this.UK.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Y=this.UK.get().zz(2))||this.UK.get().pauseVideo();break; case "visit-advertiser-link":this.UK.get().pauseVideo();ZDu(this).GK();break;case "skip-button":if(T=ZDu(this),this.layout.renderingContent&&!pp(this.layout.clientMetadata,"metadata_type_dai")||!T||!T.Iz){var k;(T=(k=FN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:k.current)&&T.q8(this.t3(),this.layout)}else MH("Requesting to skip by LegacyPlayerBytes when components enabled"),T.Ol(this.t3(),this.layout)}}}; g.h.EK=function(){LB.prototype.EK.call(this)};g.S(Wk,LB);g.h=Wk.prototype;g.h.init=function(){LB.prototype.init.call(this);var T=g.t(this.layout.renderingContent,FS)||FN(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),Q={adsClientData:this.layout.ZP},k;(k=!!this.layout.renderingContent)||(k=$p(this),k=!(k&&k.Iz));this.T.push(new h$(T,this.layout.layoutId,FN(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),Q,k))}; g.h.wr=function(){this.Y||this.UK.get().resumeVideo(2)}; g.h.startRendering=function(T){LB.prototype.startRendering.call(this,T);this.callback.y4(this.slot,T);this.N.gS=this}; g.h.oK=function(T,Q){LB.prototype.oK.call(this,T,Q);Vs(this.N,this)}; g.h.xe=function(T,Q){if(!this.Qq||!KF(this.Qq.get(),"stop_handling_click_for_non_rendering_overlay_layout")||Q===this.layout.layoutId){if(yN(this.B.get(),this.C))switch(T){case "visit-advertiser":MP(this.Vq.get(),3)}switch(T){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Y||this.UK.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Y=this.UK.get().zz(2))||this.UK.get().pauseVideo();break; case "visit-advertiser":this.UK.get().pauseVideo();$p(this).GK();break;case "skip-button":if(T=$p(this),this.layout.renderingContent&&!pp(this.layout.clientMetadata,"metadata_type_dai")||!T||!T.Iz){var k;(T=(k=FN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:k.current)&&T.q8(this.t3(),this.layout)}else MH("Requesting to skip by LegacyPlayerBytes"),T.Ol(this.t3(),this.layout)}}}; g.h.EK=function(){LB.prototype.EK.call(this)};g.S(GII,lD);g.S(JM,LB);g.h=JM.prototype;g.h.startRendering=function(T){var Q=this;vk(this.S,T,function(){Q.T.push(new GII(FN(Q.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),T.layoutId,T.ZP));Q.mQ();Q.callback.y4(Q.slot,T);g.J(lI(Q.UK.get(),1),512)&&Q.callback.ke(Q.t3(),Q.b9(),new Jj("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.h.qN=function(){}; g.h.DG=function(T){if(T.state.isError()){var Q;this.callback.ke(this.t3(),this.b9(),new Jj("A player error happened during adNotify",{playerErrorCode:(Q=T.state.ge)==null?void 0:Q.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.h.onFullscreenToggled=function(){}; g.h.Gw=function(){}; g.h.zk=function(){}; g.h.UF=function(){}; g.h.onVolumeChange=function(){}; g.h.Hg=function(){}; g.h.gC=function(){}; g.h.xe=function(){};g.S(IFt,lD);g.S(eB,LB);eB.prototype.init=function(){LB.prototype.init.call(this);var T=g.t(this.layout.renderingContent,iE),Q=qP(this.n_);this.T.push(new IFt(T,Q,this.layout.layoutId,{adsClientData:this.layout.ZP}))}; eB.prototype.startRendering=function(T){LB.prototype.startRendering.call(this,T);this.callback.y4(this.slot,T)}; eB.prototype.xe=function(T,Q){if(Q===this.layout.layoutId)switch(T){case "skip-button":var k;(T=(k=FN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:k.current)&&T.q8(this.t3(),this.layout)}}; eB.prototype.EK=function(){LB.prototype.EK.call(this)};hi6.prototype.build=function(T,Q,k,l){if(T=V1(T,k,l,this.h6,this.UK,this.Vq,this.S,this.T,this.Qq))return T;throw new Jj("Unsupported layout with type: "+l.layoutType+" and client metadata: "+E9(l.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.h=jI.prototype;g.h.t3=function(){return this.slot}; g.h.b9=function(){return this.layout}; g.h.init=function(){this.UK.get().addListener(this);this.UK.get().KQ.push(this);if(this.layout.renderingContent){var T=this.l9.get();T=Kd(T,1).s9/1E3}else T=FN(this.layout.clientMetadata,"metadata_type_video_length_seconds");var Q=g.t(this.layout.renderingContent,WO),k=Q?R0(Q.pings):FN(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Q=Q?nuH(Q.pings):FN(this.layout.clientMetadata,"metadata_type_active_view_identifier");UP(this.layout.EG)&&ow(this.kB.get(),this.layout.layoutId, {Tm:k,n6:T,listener:this,JZ:Q})}; g.h.release=function(){this.UK.get().removeListener(this);JDf(this.UK.get(),this);UP(this.layout.EG)&&vb(this.kB.get(),this.layout.layoutId)}; g.h.startRendering=function(T){this.callback.y4(this.slot,T)}; g.h.oK=function(T,Q){k9(this,"abandon");this.callback.N2(this.slot,T,Q)}; g.h.Hg=function(T){switch(T.id){case "part2viewed":this.n_.Wx("start");this.n_.Wx("impression");break;case "videoplaytime25":this.n_.Wx("first_quartile");break;case "videoplaytime50":this.n_.Wx("midpoint");break;case "videoplaytime75":this.n_.Wx("third_quartile");break;case "videoplaytime100":k9(this,"complete");CB(this.n_)&&sP(this.n_,Infinity,!0);break;case "engagedview":CB(this.n_)||this.n_.Wx("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:MH("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.h.onVolumeChange=function(){}; g.h.UF=function(){}; g.h.Gw=function(){}; g.h.zk=function(){}; g.h.onFullscreenToggled=function(){}; g.h.DG=function(T){this.T||(g.RY(T,4)&&!g.RY(T,2)?hM(this.n_,"pause"):Ue(T,4)<0&&!(Ue(T,2)<0)&&hM(this.n_,"resume"))}; g.h.qN=function(){}; g.h.W6=function(T){CB(this.n_)&&sP(this.n_,T*1E3,!1)}; g.h.gC=function(){k9(this,"swipe")}; g.h.GM=function(){this.n_.Wx("active_view_measurable")}; g.h.PV=function(){this.n_.Wx("active_view_viewable")}; g.h.KH=function(){this.n_.Wx("active_view_fully_viewable_audible_half_duration")}; g.h.IA=function(){this.n_.Wx("audio_measurable")}; g.h.bq=function(){this.n_.Wx("audio_audible")};sx6.prototype.build=function(T,Q,k,l){if(k.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.t(l.renderingContent,WO)!==void 0)return new jI(T,k,l,this.UK,this.Vq,this.Qq,this.kB,this.l9);Q=["metadata_type_ad_placement_config"];for(var v=g.B(G1()),L=v.next();!L.done;L=v.next())Q.push(L.value);if(xp(l,{YM:Q,zH:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return k.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new jI(T,k,l,this.UK,this.Vq,this.Qq,this.kB,this.l9):new TDH(T,k,l,this.UK,this.Vq, this.er,this.Qq,this.kB);throw new Jj("Unsupported layout with type: "+l.layoutType+" and client metadata: "+E9(l.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var Lu={contentCpn:"",ZY:new Map};bDI.prototype.Fs=function(T,Q){var k={};Q=Object.assign({},Q,(k.cc=this.Fj.Zs(),k));this.Fj.U.T9(T,Q)};var Yo_,OZ; Yo_={tj6:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",ize:"AUTHENTICATION_MALFORMED",dVe:"AUTHENTICATION_MISSING",UVk:"BAD_REQUEST",C7H:"CAST_SESSION_DEVICE_MISMATCHED",lbe:"CAST_SESSION_VIDEO_MISMATCHED",r9e:"CAST_TOKEN_EXPIRED",J99:"CAST_TOKEN_FAILED",ZzO:"CAST_TOKEN_MALFORMED",A9e:"CGI_PARAMS_MALFORMED",j2d:"CGI_PARAMS_MISSING",o$6:"DEVICE_FALLBACK",ryk:"GENERIC_WITH_LINK_AND_CPN",JyO:"ERROR_HDCP",ZBq:"LICENSE",jDm:"VIDEO_UNAVAILABLE",n$H:"FORMAT_UNAVAILABLE",OBH:"GEO_FAILURE", h19:"HTML5_AUDIO_RENDERER_ERROR",LmH:"GENERIC_WITHOUT_LINK",kkK:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Fme:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",Y4k:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",m16:"HTML5_SPS_UMP_STATUS_REJECTED",wgH:"INVALID_DRM_MESSAGE",L7j:"PURCHASE_NOT_FOUND",kWV:"PURCHASE_REFUNDED",X4d:"RENTAL_EXPIRED",esq:"RETRYABLE_ERROR",jwq:"SERVER_ERROR",W76:"SIGNATURE_EXPIRED",H7q:"STOPPED_BY_ANOTHER_PLAYBACK",y_d:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",zwH:"STREAMING_NOT_ALLOWED", qYe:"STREAM_LICENSE_NOT_FOUND",hwK:"TOO_MANY_REQUESTS",LGV:"TOO_MANY_REQUESTS_WITH_LINK",k6K:"TOO_MANY_STREAMS_PER_ENTITLEMENT",FG9:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",b7O:"VIDEO_FORBIDDEN",Ir9:"VIDEO_NOT_FOUND",wlH:"BROWSER_OR_EXTENSION_ERROR"};OZ={}; g.Es=(OZ.ALREADY_PINNED_ON_A_DEVICE="Este video ya se descarg\u00f3 en la cantidad m\u00e1xima de dispositivos permitidos por el propietario de los derechos de autor. Antes de que puedas reproducir el video en este dispositivo, debes desvincularlo de cualquier otro.",OZ.DEVICE_FALLBACK="Este video no est\u00e1 disponible en este dispositivo.",OZ.GENERIC_WITH_LINK_AND_CPN="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde (ID de reproducci\u00f3n: $CPN). $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", OZ.LICENSE="Se produjo un error de licencia con este video.",OZ.VIDEO_UNAVAILABLE="Video no disponible",OZ.FORMAT_UNAVAILABLE="Este video no est\u00e1 disponible en la calidad seleccionada. Vuelve a intentarlo.",OZ.GEO_FAILURE="Este video no est\u00e1 disponible en tu pa\u00eds.",OZ.HTML5_AUDIO_RENDERER_ERROR="Se produjo un error en el procesador de audio. Reinicia tu computadora.",OZ.GENERIC_WITHOUT_LINK="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.",OZ.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de video.",OZ.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="En este momento, tu navegador no reconoce ninguno de los formatos de video disponibles. $BEGIN_LINKHaz clic aqu\u00ed para ver las preguntas frecuentes sobre el video HTML5.$END_LINK",OZ.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="No puedes reproducir este video en tu navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",OZ.HTML5_SPS_UMP_STATUS_REJECTED="Se produjo un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", OZ.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico para el sistema DRM no es v\u00e1lido.",OZ.PURCHASE_NOT_FOUND="Este es un video pagado.",OZ.PURCHASE_REFUNDED="La compra de este video se reembols\u00f3.",OZ.RENTAL_EXPIRED="El per\u00edodo de alquiler de este video termin\u00f3.",OZ.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo en la sesi\u00f3n de transmisi\u00f3n no coincide con el dispositivo solicitado.",OZ.CAST_SESSION_VIDEO_MISMATCHED="El video en la sesi\u00f3n de transmisi\u00f3n no coincide con el video solicitado.", OZ.CAST_TOKEN_FAILED="La sesi\u00f3n de transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",OZ.CAST_TOKEN_EXPIRED="La sesi\u00f3n de transmisi\u00f3n termin\u00f3. Actualiza la p\u00e1gina.",OZ.CAST_TOKEN_MALFORMED="Sesi\u00f3n de transmisi\u00f3n no v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",OZ.SERVER_ERROR="Se produjo un error interno en el servidor. Vuelve a intentarlo m\u00e1s tarde.",OZ.STOPPED_BY_ANOTHER_PLAYBACK= "Tu cuenta est\u00e1 reproduciendo este video en otra ubicaci\u00f3n. Vuelve a cargar la p\u00e1gina para continuar mirando.",OZ.STREAM_LICENSE_NOT_FOUND="Se interrumpi\u00f3 la reproducci\u00f3n del video. Vuelve a intentarlo.",OZ.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Utilizaste demasiadas direcciones IP o dispositivos durante las \u00faltimas 24 horas.",OZ.STREAMING_NOT_ALLOWED="No se puede reproducir el video porque est\u00e1 vinculado con otro dispositivo.",OZ.RETRYABLE_ERROR="Se produjo un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.", OZ.TOO_MANY_REQUESTS="Accede para mirar el video.",OZ.TOO_MANY_REQUESTS_WITH_LINK="Haz $BEGIN_LINKclic aqu\u00ed$END_LINK para mirar este video en YouTube.",OZ.TOO_MANY_STREAMS_PER_USER="Se detuvo la reproducci\u00f3n porque se est\u00e1n reproduciendo demasiados videos que pertenecen a la misma cuenta.",OZ.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se detuvo la reproducci\u00f3n porque este video se est\u00e1 reproduciendo en demasiados dispositivos.",OZ.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.", OZ.VIDEO_FORBIDDEN="El acceso a este video est\u00e1 prohibido.",OZ.VIDEO_NOT_FOUND="No se puede encontrar este video.",OZ.BROWSER_OR_EXTENSION_ERROR="Se produjo un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",OZ);var U_W;var R$_=g.KJ(),Z81=R$_.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Z81||Z81.length<2)U_W=void 0;else{var f9T=R$_.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);U_W=f9T&&f9T.length===6?Number(f9T[5].replace("_",".")):0}var jL=U_W,Wa=jL>=0;g.S(g.Bj,wi);g.Bj.prototype.Z=function(T,Q,k,l,v){return wi.prototype.Z.call(this,T,Q,k,l,v)};var ps={},tq=(ps.FAIRPLAY="fairplay",ps.PLAYREADY="playready",ps.WIDEVINE="widevine",ps.CLEARKEY=null,ps.FLASHACCESS=null,ps.UNKNOWN=null,ps.WIDEVINE_CLASSIC=null,ps);zX.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var W_={},$g=(W_.WIDTH={name:"width",video:!0,valid:640,P4:99999},W_.HEIGHT={name:"height",video:!0,valid:360,P4:99999},W_.FRAMERATE={name:"framerate",video:!0,valid:30,P4:9999},W_.BITRATE={name:"bitrate",video:!0,valid:3E5,P4:2E9},W_.EOTF={name:"eotf",video:!0,valid:"bt709",P4:"catavision"},W_.CHANNELS={name:"channels",video:!1,valid:2,P4:99},W_.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",P4:"invalidformat"},W_.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", P4:"nope"},W_.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",P4:"av99.0.05M.08"},W_.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",P4:"invalid"},W_.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",P4:"false"},W_);var Goe=["h","H"],m_T=["9","("],I9E=["9h","(h"],h$9=["8","*"],sQe=["a","A"],So9=["o","O"],CSJ=["m","M"],BJW=["mac3","MAC3"],z$9=["meac3","MEAC3"],$v={},ttt=($v.h=Goe,$v.H=Goe,$v["9"]=m_T,$v["("]=m_T,$v["9h"]=I9E,$v["(h"]=I9E,$v["8"]=h$9,$v["*"]=h$9,$v.a=sQe,$v.A=sQe,$v.o=So9,$v.O=So9,$v.m=CSJ,$v.M=CSJ,$v.mac3=BJW,$v.MAC3=BJW,$v.meac3=z$9,$v.MEAC3=z$9,$v),XuJ=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),dPy=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var y={},bk=(y["0"]="f",y["160"]="h",y["133"]="h",y["134"]="h",y["135"]="h",y["136"]="h",y["137"]="h",y["264"]="h",y["266"]="h",y["138"]="h",y["298"]="h",y["299"]="h",y["304"]="h",y["305"]="h",y["214"]="h",y["216"]="h",y["374"]="h",y["375"]="h",y["140"]="a",y["141"]="a",y["327"]="sa",y["258"]="m",y["380"]="mac3",y["328"]="meac3",y["161"]="H",y["142"]="H",y["143"]="H",y["144"]="H",y["222"]="H",y["223"]="H",y["145"]="H",y["224"]="H",y["225"]="H",y["146"]="H",y["226"]="H",y["227"]="H",y["147"]="H",y["384"]= "H",y["376"]="H",y["385"]="H",y["377"]="H",y["149"]="A",y["261"]="M",y["381"]="MAC3",y["329"]="MEAC3",y["598"]="9",y["278"]="9",y["242"]="9",y["243"]="9",y["244"]="9",y["775"]="9",y["776"]="9",y["777"]="9",y["778"]="9",y["779"]="9",y["780"]="9",y["781"]="9",y["782"]="9",y["783"]="9",y["247"]="9",y["248"]="9",y["353"]="9",y["355"]="9",y["356"]="9",y["271"]="9",y["577"]="9",y["313"]="9",y["579"]="9",y["272"]="9",y["302"]="9",y["303"]="9",y["407"]="9",y["408"]="9",y["308"]="9",y["315"]="9",y["330"]= "9h",y["331"]="9h",y["332"]="9h",y["333"]="9h",y["334"]="9h",y["335"]="9h",y["336"]="9h",y["337"]="9h",y["338"]="so",y["600"]="o",y["250"]="o",y["251"]="o",y["774"]="o",y["194"]="*",y["195"]="*",y["220"]="*",y["221"]="*",y["196"]="*",y["197"]="*",y["279"]="(",y["280"]="(",y["317"]="(",y["318"]="(",y["273"]="(",y["274"]="(",y["357"]="(",y["358"]="(",y["275"]="(",y["359"]="(",y["360"]="(",y["276"]="(",y["583"]="(",y["584"]="(",y["314"]="(",y["585"]="(",y["561"]="(",y["277"]="(",y["361"]="(h",y["362"]= "(h",y["363"]="(h",y["364"]="(h",y["365"]="(h",y["366"]="(h",y["591"]="(h",y["592"]="(h",y["367"]="(h",y["586"]="(h",y["587"]="(h",y["368"]="(h",y["588"]="(h",y["562"]="(h",y["409"]="(",y["410"]="(",y["411"]="(",y["412"]="(",y["557"]="(",y["558"]="(",y["394"]="1",y["395"]="1",y["396"]="1",y["397"]="1",y["398"]="1",y["399"]="1",y["720"]="1",y["721"]="1",y["400"]="1",y["401"]="1",y["571"]="1",y["402"]="1",y["694"]="1h",y["695"]="1h",y["696"]="1h",y["697"]="1h",y["698"]="1h",y["699"]="1h",y["700"]="1h", y["701"]="1h",y["702"]="1h",y["703"]="1h",y["386"]="3",y["387"]="w",y["406"]="6",y["787"]="1",y["788"]="1",y["548"]="1e",y["549"]="1e",y["550"]="1e",y["551"]="1e",y["809"]="1e",y["810"]="1e",y["552"]="1e",y["811"]="1e",y["812"]="1e",y["553"]="1e",y["813"]="1e",y["814"]="1e",y["554"]="1e",y["815"]="1e",y["816"]="1e",y["555"]="1e",y["817"]="1e",y["818"]="1e",y["572"]="1e",y["556"]="1e",y["645"]="(",y["646"]="(",y["647"]="(",y["648"]="(",y["649"]="(",y["650"]="(",y["651"]="(",y["652"]="(",y["653"]="(", y["654"]="(",y["655"]="(",y["656"]="(",y["657"]="(",y["658"]="(",y["659"]="(",y["660"]="(",y["661"]="(",y["662"]="(",y["663"]="(",y["664"]="(",y["665"]="(",y["666"]="(",y["667"]="(",y["668"]="(",y["669"]="(",y["670"]="(",y["671"]="(",y["672"]="(",y["673"]="(",y["674"]="(h",y["675"]="(h",y["676"]="(h",y["677"]="(h",y["678"]="(h",y["679"]="(h",y["680"]="(h",y["681"]="(h",y["682"]="(h",y["683"]="(h",y["684"]="(h",y["685"]="(h",y["686"]="(h",y["687"]="(h",y["688"]="A",y["689"]="A",y["690"]="A",y["691"]= "MEAC3",y["773"]="i",y["806"]="I",y["805"]="I",y["829"]="9",y["830"]="9",y["831"]="9",y["832"]="9",y["833"]="9",y["834"]="9",y["835"]="9",y["836"]="9",y["892"]="9",y["893"]="9",y["837"]="9",y["838"]="9",y["839"]="9",y["840"]="9",y["841"]="(",y["842"]="(",y["843"]="(",y["844"]="(",y["845"]="(",y["846"]="(",y["847"]="(",y["848"]="(",y["894"]="(",y["895"]="(",y["849"]="(",y["850"]="(",y["851"]="(",y["852"]="(",y["865"]="9",y["866"]="9",y["867"]="9",y["868"]="9",y["869"]="9",y["870"]="9",y["871"]="9", y["872"]="9",y["896"]="9",y["897"]="9",y["873"]="9",y["874"]="9",y["875"]="9",y["876"]="9",y["877"]="(",y["878"]="(",y["879"]="(",y["880"]="(",y["881"]="(",y["882"]="(",y["883"]="(",y["884"]="(",y["898"]="(",y["899"]="(",y["885"]="(",y["886"]="(",y["887"]="(",y["888"]="(",y);var JX={},Cef=(JX.STEREO_LAYOUT_UNKNOWN=0,JX.STEREO_LAYOUT_LEFT_RIGHT=1,JX.STEREO_LAYOUT_TOP_BOTTOM=2,JX);var eU,rt;eU={};g.wC=(eU.auto=0,eU.tiny=144,eU.light=144,eU.small=240,eU.medium=360,eU.large=480,eU.hd720=720,eU.hd1080=1080,eU.hd1440=1440,eU.hd2160=2160,eU.hd2880=2880,eU.highres=4320,eU);rt={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var N$="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");dC.prototype.isHdr=function(){return this.T==="smpte2084"||this.T==="arib-std-b67"};rC.prototype.Rd=function(){return this.containerType===2}; rC.prototype.isEncrypted=function(){return!!this.jY}; rC.prototype.uH=function(){return!!this.audio}; rC.prototype.bK=function(){return!!this.video}; var aE=!1;g.S(kT,g.ox);g.h=kT.prototype;g.h.appendBuffer=function(T,Q,k){if(this.kM.hv()!==this.appendWindowStart+this.start||this.kM.jQ()!==this.appendWindowEnd+this.start||this.kM.Px()!==this.timestampOffset+this.start)this.kM.supports(1),this.kM.r4(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.kM.FL(this.timestampOffset+this.start);this.kM.appendBuffer(T,Q,k)}; g.h.abort=function(){this.kM.abort()}; g.h.remove=function(T,Q){this.kM.remove(T+this.start,Q+this.start)}; g.h.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.h.clear=function(){this.kM.clear()}; g.h.r4=function(T,Q){this.appendWindowStart=T;this.appendWindowEnd=Q}; g.h.Eb=function(){return this.timestampOffset+this.start}; g.h.hv=function(){return this.appendWindowStart}; g.h.jQ=function(){return this.appendWindowEnd}; g.h.FL=function(T){this.timestampOffset=T}; g.h.Px=function(){return this.timestampOffset}; g.h.LG=function(T){T=this.kM.LG(T===void 0?!1:T);return jt(T,this.start,this.end)}; g.h.Wc=function(){return this.kM.Wc()}; g.h.h4=function(){return this.kM.h4()}; g.h.u0=function(){return this.kM.u0()}; g.h.WI=function(){return this.kM.WI()}; g.h.YR=function(){this.kM.YR()}; g.h.QW=function(T){return this.kM.QW(T)}; g.h.A1=function(){return this.kM.A1()}; g.h.uV=function(){return this.kM.uV()}; g.h.AI=function(T,Q,k){this.kM.AI(T,Q,k)}; g.h.jT=function(T,Q,k){this.kM.jT(T,Q,k)}; g.h.G5=function(T,Q){return this.kM.G5(T,Q)}; g.h.supports=function(T){return this.kM.supports(T)}; g.h.Wy=function(){return this.kM.Wy()}; g.h.isView=function(){return!0}; g.h.aq=function(){return this.kM.aq()?this.isActive:!1}; g.h.isLocked=function(){return this.tA&&!this.isActive}; g.h.Tx=function(T){T=this.kM.Tx(T);T.vw=this.start+"-"+this.end;return T}; g.h.tM=function(){return this.kM.tM()}; g.h.Rr=function(){return this.kM.Rr()}; g.h.z7=function(){return this.kM.z7()}; g.h.EK=function(){this.kM.L5(this.WO);g.ox.prototype.EK.call(this)};var u4=!1;g.S(oL,g.ox);g.h=oL.prototype;g.h.appendBuffer=function(T,Q,k){this.CQ=!1;k&&(this.LO=k);if(T.length){var l;((l=this.jr)==null?0:l.appendBuffer)?this.jr.appendBuffer(T):this.jr?this.jr.append(T):this.fd&&this.fd.webkitSourceAppend(this.id,T)}Q&&(Q.isEncrypted()&&(this.Qj=this.LO),Q.type===3&&(this.Qy=Q),this.hL.push(Q.Bh()),this.hL.length>4&&this.hL.shift());this.Rj&&(this.Rj.length>=2||T.length>1048576?delete this.Rj:this.Rj.push(T))}; g.h.abort=function(){try{this.jr?this.jr.abort():this.fd&&this.fd.webkitSourceAbort(this.id)}catch(Q){if(Y3I){var T=new g.Wy("Error while abort the source buffer: "+Q.name+", "+Q.message);g.bA(T)}}this.LO=this.Qy=null}; g.h.remove=function(T,Q,k){this.CQ=!1;var l;if((l=this.jr)==null?0:l.remove)k&&k({b:FL(this.LG()),s:T,e:Q}),this.jr.remove(T,Q)}; g.h.removeAll=function(){this.remove(this.hv(),this.jQ())}; g.h.clear=function(){this.u0()||(this.abort(),this.removeAll(),this.Qj=this.LO=this.Qy=null,this.appendWindowStart=this.timestampOffset=0,this.hc=eI([],[]),this.CQ=!1,this.Rj=le?[]:void 0,this.gL=!0)}; g.h.hv=function(){if(u4&&this.bK)return this.appendWindowStart;var T;return((T=this.jr)==null?void 0:T.appendWindowStart)||0}; g.h.jQ=function(){var T;return((T=this.jr)==null?void 0:T.appendWindowEnd)||0}; g.h.r4=function(T,Q){this.jr&&(u4&&this.bK?(this.appendWindowStart=T,this.jr.appendWindowEnd=Q):T>this.hv()?(this.jr.appendWindowEnd=Q,this.jr.appendWindowStart=T):(this.jr.appendWindowStart=T,this.jr.appendWindowEnd=Q))}; g.h.Eb=function(){return this.timestampOffset}; g.h.FL=function(T){u4?this.timestampOffset=T:this.supports(1)&&(this.jr.timestampOffset=T)}; g.h.Px=function(){return u4?this.timestampOffset:this.supports(1)?this.jr.timestampOffset:0}; g.h.LG=function(T){if(T===void 0?0:T)return this.CQ||this.Wc()||(this.hc=this.LG(!1),this.CQ=!0),this.hc;try{return this.jr?this.jr.buffered:this.fd?this.fd.webkitSourceBuffered(this.id):eI([0],[Infinity])}catch(Q){return eI([],[])}}; g.h.Wc=function(){var T;return((T=this.jr)==null?void 0:T.updating)||!1}; g.h.u0=function(){return this.gL}; g.h.WI=function(){return!this.gL&&this.Wc()}; g.h.YR=function(){this.gL=!1}; g.h.QW=function(T){var Q=T==null?void 0:T.yR;T=T==null?void 0:T.containerType;return!Q&&!T||Q===this.yR&&T===this.containerType}; g.h.A1=function(){return this.LO}; g.h.uV=function(){return this.Qj}; g.h.G5=function(T,Q){return this.containerType!==T||this.yR!==Q}; g.h.AI=function(T,Q,k){if(this.containerType!==T||k&&this.G5(T,k))this.supports(4),vM()&&this.jr.changeType(Q),k&&(this.yR=k);this.containerType=T}; g.h.jT=function(T,Q,k){this.containerType&&this.G5(T,Q)&&vM()&&this.jr.changeType(k);this.containerType=T;this.yR=Q}; g.h.Wy=function(){return this.Qy}; g.h.isView=function(){return!1}; g.h.supports=function(T){switch(T){case 1:var Q;return((Q=this.jr)==null?void 0:Q.timestampOffset)!==void 0;case 0:var k;return!((k=this.jr)==null||!k.appendBuffer);case 2:var l;return!((l=this.jr)==null||!l.remove);case 3:var v,L;return!!(((v=this.jr)==null?0:v.addEventListener)&&((L=this.jr)==null?0:L.removeEventListener));case 4:return!(!this.jr||!this.jr.changeType);default:return!1}}; g.h.aq=function(){return!this.Wc()}; g.h.isLocked=function(){return!1}; g.h.Tx=function(T){T.to=this.Px();T.up=this.Wc();var Q,k=((Q=this.jr)==null?void 0:Q.appendWindowStart)||0,l;Q=((l=this.jr)==null?void 0:l.appendWindowEnd)||Infinity;T.aw=k.toFixed(3)+"-"+Q.toFixed(3);return T}; g.h.h4=function(){var T;return((T=this.jr)==null?void 0:T.writeHead)||0}; g.h.tM=function(){for(var T={},Q=0;Q=7&&(!Q||((l=this.yq)==null?0:l.V("mweb_ios_allow_playback_workaround_when_ready")))&&rcb(this,function(){g.Zq(function(){FMt(T,T.getCurrentTime(),0)},500)})}return Q}; g.h.seekTo=function(T){this.Nm()>0&&(Wa&&jL<4&&(T=Math.max(.1,T)),this.setCurrentTime(T))}; g.h.T0=function(){if(!this.S&&this.j6)if(this.j6.N)try{var T;UM(this,{l:"mer",sr:(T=this.yq)==null?void 0:T.e1(),rs:Zl(this.j6)});this.j6.clear();this.S=this.j6;this.j6=void 0}catch(Q){T=new g.Wy("Error while clearing Media Source in MediaElement: "+Q.name+", "+Q.message),g.bA(T),this.stopVideo()}else this.stopVideo()}; g.h.stopVideo=function(){var T=this;if(!this.S){var Q;(Q=this.j6)==null||$1I(Q);if(q3T){if(!this.L){var k=new GN;k.then(void 0,function(){}); this.L=k;gIb&&this.pause();g.Zq(function(){T.L===k&&(sM(T),k.resolve())},200)}}else sM(this)}}; g.h.bS=function(){var T=this.Q8();return TN(T)&&this.getDuration()?ik(T,this.getCurrentTime()):0}; g.h.KX=function(){var T=this.getDuration();return T===Infinity?1:T?this.bS()/T:0}; g.h.Tx=function(){try{var T=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:FL(this.nX(),",",3),vbu:FL(this.Q8()),vbs:FL(this.MD()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Nm(),vns:""+this.D2(),vec:""+this.SZ(),vemsg:this.dw(),vvol:""+this.getVolume(),vdom:""+ +this.Ob(),vsrc:""+ +!!this.Cz(),vw:""+T.width,vh:""+T.height}}catch(Q){return{}}}; g.h.hasError=function(){return this.SZ()>0}; g.h.addEventListener=function(T,Q){this.Y.listen(T,Q,!1,this);this.EL(T)}; g.h.removeEventListener=function(T,Q){this.Y.J6(T,Q,!1,this)}; g.h.dispatchEvent=function(T){if(this.L&&T.type==="pause")return!1;if(Mbf){var Q,k=((Q=T.T)==null?void 0:Q.timeStamp)||Infinity;Q=k>performance.now()?k-Date.now()+performance.now():k;k=this.S||this.j6;if((k==null?0:k.u0())||Q<=((k==null?void 0:k.B)||0)){var l;UM(this,{l:"mede",sr:(l=this.yq)==null?void 0:l.e1(),et:T.type});return!1}if(this.wz)return UM(this,{l:"medes",et:T.type}),k&&T.type==="seeking"&&(k.B=performance.now(),this.wz=!1),!1}return this.Y.dispatchEvent(T)}; g.h.qZ=function(){this.B=!1}; g.h.a5=function(){this.B=!0;this.r9(!0)}; g.h.HR=function(){this.B&&!this.fk()&&this.r9(!0)}; g.h.equals=function(T){return!!T&&T.xB()===this.xB()}; g.h.EK=function(){this.C&&this.removeEventListener("volumechange",this.HR);q3T&&sM(this);g.x.prototype.EK.call(this)}; var q3T=!1,gIb=!1,Mbf=!1,iDX=!1;g.h=g.Cd.prototype;g.h.isPaused=function(){return g.J(this,4)}; g.h.isPlaying=function(){return g.J(this,8)&&!g.J(this,512)&&!g.J(this,64)&&!g.J(this,2)}; g.h.isOrWillBePlaying=function(){return g.J(this,8)&&!g.J(this,2)&&!g.J(this,1024)}; g.h.isCued=function(){return g.J(this,64)&&!g.J(this,8)&&!g.J(this,4)}; g.h.isBuffering=function(){return g.J(this,1)&&!g.J(this,2)}; g.h.isError=function(){return g.J(this,128)}; g.h.isSuspended=function(){return g.J(this,512)}; g.h.a9=function(){return g.J(this,64)&&g.J(this,4)}; g.h.toString=function(){return"PSt."+this.state.toString(16)}; var FD={},EZ=(FD.BUFFERING="buffering-mode",FD.CUED="cued-mode",FD.ENDED="ended-mode",FD.PAUSED="paused-mode",FD.PLAYING="playing-mode",FD.SEEKING="seeking-mode",FD.UNSTARTED="unstarted-mode",FD);g.S(Dl,g.x);g.h=Dl.prototype;g.h.n7=function(){return this.L}; g.h.t3=function(){return this.slot}; g.h.b9=function(){return this.layout}; g.h.init=function(){var T=FN(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Q=FN(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");UP(this.layout.EG)&&ow(this.kB.get(),this.layout.layoutId,{Tm:Q,n6:T,listener:this,yl:this.Zg()});xk5(this.Vq.get(),this);T=this.QD;Q=this.layout.layoutId;var k={yl:this.Zg()};T.T.set(Q,k);this.eA()}; g.h.iA=function(){}; g.h.release=function(){UP(this.layout.EG)&&vb(this.kB.get(),this.layout.layoutId);P6X(this.Vq.get(),this);this.QD.T.delete(this.layout.layoutId);this.oT()}; g.h.Fx=function(){}; g.h.Nk=function(){}; g.h.startRendering=function(T){M$(aL(this));if(ue(this,T)){var Q=this.T;Y9(Q.params.mx.Qq.get(),!0)&&AcT(Q,"p_sr",{});nd(this);this.Uc(T);this.Zg()||this.nK(!1)}}; g.h.y4=function(T,Q){if(Q.layoutId===this.layout.layoutId){this.q2="rendering";this.S=this.UK.get().isMuted()||this.UK.get().getVolume()===0;this.Wx("impression");this.Wx("start");if(this.UK.get().isMuted()){OM(this,"mute");var k;T=((k=cM(this))==null?void 0:k.muteCommands)||[];DX(this.er.get(),T,this.layout.layoutId)}if(this.UK.get().isFullscreen()){this.Fw("fullscreen");var l;k=((l=cM(this))==null?void 0:l.fullscreenCommands)||[];DX(this.er.get(),k,this.layout.layoutId)}this.Zg()||(l=this.eV.get(), l.L&&!l.S&&(l.N=!1,l.S=!0,l.actionType!=="ad_to_video"&&(cP("pbs",void 0,l.actionType),g.hH("finalize_all_timelines")&&qSt(l.actionType))));this.z6(1);this.cL(Q);var v;Q=((v=cM(this))==null?void 0:v.impressionCommands)||[];DX(this.er.get(),Q,this.layout.layoutId)}}; g.h.wP=function(T,Q,k){this.C={Wr:3,GU:T==="load_timeout"?402:400,errorMessage:Q.message};this.Wx("error");var l;T=((l=cM(this))==null?void 0:l.errorCommands)||[];DX(this.er.get(),T,this.layout.layoutId);this.Zg()||this.xU.ke(this.slot,this.layout,Q,k)}; g.h.Cg=function(){if(this.q2==="rendering"){OM(this,"pause");var T,Q=((T=cM(this))==null?void 0:T.pauseCommands)||[];DX(this.er.get(),Q,this.layout.layoutId);this.z6(2)}}; g.h.Je=function(){if(this.q2==="rendering"){OM(this,"resume");var T,Q=((T=cM(this))==null?void 0:T.resumeCommands)||[];DX(this.er.get(),Q,this.layout.layoutId)}}; g.h.ey=function(T,Q){Q=Q===void 0?!1:Q;if(this.q2==="rendering"){var k={currentTimeSec:T,flush:Q};U_(this.T,"p_ip",k);sP(this.n_,T*1E3,Q);this.S||sP(this.n_,T*1E3,Q===void 0?!1:Q);var l=this.On();if(l){l/=1E3;if(T>=l*.25||Q)this.Wx("first_quartile"),U_(this.T,"p_fq",k);if(T>=l*.5||Q)this.Wx("midpoint"),U_(this.T,"p_sq",k);if(T>=l*.75||Q)this.Wx("third_quartile"),U_(this.T,"p_tq",k);this.Qq.get().U.G().experiments.Wd("enable_progress_command_flush_on_kabuki")?AM(this.Y,T*1E3,Q):AM(this.Y,T*1E3,lVt(this)? Q:!1)}}}; g.h.Zs=function(){var T;return((T=Kd(this.l9.get(),1))==null?void 0:T.clientPlaybackNonce)||""}; g.h.J7=function(T,Q){T.layoutId!==this.layout.layoutId?this.xU.ke(this.slot,T,new Jj("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"):Q()}; g.h.N2=function(T,Q,k){if(Q.layoutId===this.layout.layoutId)switch(this.q2="not_rendering",this.layoutExitReason=void 0,this.Zg()||(T=k!=="normal"||this.position+1===this.B)&&this.nK(T),this.eW(k),this.z6(0),k){case "abandoned":if(SB(this.n_,"impression")){var l,v=((l=cM(this))==null?void 0:l.abandonCommands)||[];DX(this.er.get(),v,this.layout.layoutId)}break;case "normal":l=((v=cM(this))==null?void 0:v.completeCommands)||[];DX(this.er.get(),l,this.layout.layoutId);break;case "skipped":var L;l=((L= cM(this))==null?void 0:L.skipCommands)||[];DX(this.er.get(),l,this.layout.layoutId)}}; g.h.v0=function(){return this.layout.layoutId}; g.h.sL=function(){return this.C}; g.h.GM=function(){if(this.q2==="rendering"){this.n_.Wx("active_view_measurable");var T,Q=((T=cM(this))==null?void 0:T.activeViewMeasurableCommands)||[];DX(this.er.get(),Q,this.layout.layoutId)}}; g.h.KH=function(){if(this.q2==="rendering"){this.n_.Wx("active_view_fully_viewable_audible_half_duration");var T,Q=((T=cM(this))==null?void 0:T.activeViewFullyViewableAudibleHalfDurationCommands)||[];DX(this.er.get(),Q,this.layout.layoutId)}}; g.h.PV=function(){if(this.q2==="rendering"){this.n_.Wx("active_view_viewable");var T,Q=((T=cM(this))==null?void 0:T.activeViewViewableCommands)||[];DX(this.er.get(),Q,this.layout.layoutId)}}; g.h.bq=function(){if(this.q2==="rendering"){this.n_.Wx("audio_audible");var T,Q=((T=cM(this))==null?void 0:T.activeViewAudioAudibleCommands)||[];DX(this.er.get(),Q,this.layout.layoutId)}}; g.h.IA=function(){if(this.q2==="rendering"){this.n_.Wx("audio_measurable");var T,Q=((T=cM(this))==null?void 0:T.activeViewAudioMeasurableCommands)||[];DX(this.er.get(),Q,this.layout.layoutId)}}; g.h.nK=function(T){this.eV.get().nK(FN(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,T,this.position,this.B,!1)}; g.h.onFullscreenToggled=function(T){if(this.q2==="rendering")if(T){this.Fw("fullscreen");var Q,k=((Q=cM(this))==null?void 0:Q.fullscreenCommands)||[];DX(this.er.get(),k,this.layout.layoutId)}else this.Fw("end_fullscreen"),Q=((k=cM(this))==null?void 0:k.endFullscreenCommands)||[],DX(this.er.get(),Q,this.layout.layoutId)}; g.h.onVolumeChange=function(){if(this.q2==="rendering")if(this.UK.get().isMuted()){OM(this,"mute");var T,Q=((T=cM(this))==null?void 0:T.muteCommands)||[];DX(this.er.get(),Q,this.layout.layoutId)}else OM(this,"unmute"),T=((Q=cM(this))==null?void 0:Q.unmuteCommands)||[],DX(this.er.get(),T,this.layout.layoutId)}; g.h.Gw=function(){}; g.h.zk=function(){}; g.h.UF=function(){}; g.h.Hg=function(){}; g.h.gC=function(){}; g.h.Fw=function(T){this.n_.Fw(T,!this.S)}; g.h.Wx=function(T){this.n_.Wx(T,!this.S)}; g.h.Zg=function(){var T=FN(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return T===void 0?(MH("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Qq.get().Zg(T)};g.S(et,Dl);g.h=et.prototype;g.h.eA=function(){}; g.h.oT=function(){var T=this.Vq.get();T.BP===this&&(T.BP=null);this.timer.stop()}; g.h.Fx=function(){this.timer.stop();Dl.prototype.Cg.call(this)}; g.h.Nk=function(){EM(this);Dl.prototype.Je.call(this)}; g.h.On=function(){return FN(this.b9().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.h.oK=function(T,Q){var k=this;this.J7(T,function(){k.q2!=="rendering_stop_requested"&&(k.q2="rendering_stop_requested",k.layoutExitReason=Q,xT(k,Q),k.timer.stop())})}; g.h.bC=function(){var T=Date.now(),Q=T-this.FX;this.FX=T;this.l8+=Q;this.l8>=this.On()?this.Ja():(this.ey(this.l8/1E3),FR(this,this.l8))}; g.h.eW=function(){}; g.h.qN=function(){}; g.S(yd,et);g.h=yd.prototype;g.h.DG=function(T){if(this.q2!=="not_rendering"){T=PM(this,T);var Q=this.UK.get().getPresentingPlayerType()===2;this.q2==="rendering_start_requested"?Q&&TX(T)&&this.EN():Q?g.RY(T,2)?MH("Receive player ended event during MediaBreak",this.t3(),this.b9()):HM(this,T):this.z4()}}; g.h.Uc=function(){jYH(this);FO5(this.UK.get());this.Vq.get().BP=this;bU("pbp")||bU("pbs")||cP("pbp");bU("pbp","watch")||bU("pbs","watch")||cP("pbp",void 0,"watch");this.EN()}; g.h.cL=function(T){this.eV.get();var Q=FN(T.clientMetadata,"metadata_type_ad_placement_config").kind,k=this.position===0;T=FN(T.clientMetadata,"metadata_type_linked_in_player_layout_type");T={adBreakType:tB(Q),adType:fVu(T)};var l=void 0;k?Q!=="AD_PLACEMENT_KIND_START"&&(l="video_to_ad"):l="ad_to_ad";dS("ad_mbs",void 0,l);g.NL(T,l);EM(this)}; g.h.z4=function(){this.bG()}; g.h.Ja=function(){vXC(this);this.bG()}; g.S(ie,et);g.h=ie.prototype;g.h.DG=function(T){this.q2!=="not_rendering"&&(T=PM(this,T),HM(this,T))}; g.h.Uc=function(){MH("Not used in SSAP")}; g.h.cL=function(){EM(this)}; g.h.z4=function(){MH("Not used in SSAP")}; g.h.Ja=function(){vXC(this);this.xU.XV(this.t3(),this.b9(),"normal")}; g.S(Vd,ie);Vd.prototype.oK=function(T,Q){var k=this;this.J7(T,function(){oE(k.L,Q)&&(k.q2="rendering_stop_requested",k.layoutExitReason=Q,xT(k,Q),k.timer.stop())})}; Vd.prototype.startRendering=function(T){M$(aL(this));ue(this,T)&&(nd(this),this.Vq.get().BP=this)};g.S(jn,Dl);g.h=jn.prototype;g.h.z4=function(){this.bG()}; g.h.DG=function(T){if(this.q2!=="not_rendering"){T=PM(this,T);var Q=this.UK.get().getPresentingPlayerType()===2;this.q2==="rendering_start_requested"?Q&&TX(T)&&this.EN():!Q||g.RY(T,2)?this.bG():HM(this,T)}}; g.h.eA=function(){FN(this.b9().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=FN(this.b9().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.h.oT=function(){FN(this.b9().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.ej){var T=this.context.mx,Q=this.ej,k=this.b9().layoutId;if(Y9(T.Qq.get(),!0)){var l={};T.Fs("mccru",(l.cid=Q,l.p_ac=k,l))}this.Xk.get().removeCueRange(this.ej)}this.ej=void 0;var v;(v=this.QL)==null||v.dispose();this.pM&&this.pM.dispose()}; g.h.Uc=function(T){var Q=Tn(this.Qq.get()),k=QG(this.Qq.get());if(Q&&k&&!this.Zg()){k=FN(T.clientMetadata,"metadata_type_preload_player_vars");var l=this.Qq.get();l=g.jj(l.U.G().experiments,"html5_preload_wait_time_secs");k&&this.pM&&this.pM.start(l*1E3)}gXf(this,T);jYH(this);Q?(k=this.UH.get(),T=FN(T.clientMetadata,"metadata_type_player_vars"),k.U.loadVideoByPlayerVars(T,!1,2)):M95(this.UH.get(),FN(T.clientMetadata,"metadata_type_player_vars"));var v;(v=this.QL)==null||v.start();Q||this.UH.get().U.playVideo(2)}; g.h.cL=function(){var T;(T=this.QL)==null||T.stop();this.mp();(this.adCpn=QYu(this))||MH("Media layout confirmed started, but ad CPN not set.");this.yp.get().bu("onAdStart",this.adCpn);this.dF=Date.now()}; g.h.On=function(){var T;return(T=Kd(this.l9.get(),2))==null?void 0:T.s9}; g.h.GK=function(){this.n_.Fw("clickthrough")}; g.h.oK=function(T,Q){var k=this;this.J7(T,function(){if(k.q2!=="rendering_stop_requested"){k.q2="rendering_stop_requested";k.layoutExitReason=Q;xT(k,Q);var l;(l=k.QL)==null||l.stop();k.pM&&k.pM.stop();MM6(k)}})}; g.h.onCueRangeEnter=function(T){if(T!==this.ej)MH("Received CueRangeEnter signal for unknown layout.",this.t3(),this.b9(),{cueRangeId:T});else{var Q=this.context.mx,k=this.b9().layoutId;if(Y9(Q.Qq.get(),!0)){var l={};Q.Fs("mccre",(l.cid=T,l.p_ac=k,l))}this.Xk.get().removeCueRange(this.ej);this.ej=void 0;KF(this.context.Qq.get(),"html5_ssap_flush_at_stop_rendering")&&this.Zg()||(T=FN(this.b9().clientMetadata,"metadata_type_video_length_seconds"),this.ey(T,!0),this.Wx("complete"))}}; g.h.eW=function(T){T!=="abandoned"&&this.yp.get().bu("onAdComplete");this.yp.get().bu("onAdEnd",this.adCpn)}; g.h.mp=function(){this.ej="adcompletioncuerange:"+this.b9().layoutId;this.Xk.get().addCueRange(this.ej,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var T=this.context.mx,Q=this.ej,k=this.b9().layoutId;if(Y9(T.Qq.get(),!0)){var l={};T.Fs("mccr",(l.cid=Q,l.p_ac=k,l))}}; g.h.onCueRangeExit=function(){}; g.h.qN=function(T){this.q2==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&T>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.UK.get().uX(!0),this.ey(T))}; g.h.ey=function(T,Q){Dl.prototype.ey.call(this,T,Q===void 0?!1:Q);Q=Date.now()-this.dF;var k=T*1E3,l={contentCpn:this.Zs(),adCpn:QYu(this)};if(T-this.JR>=5){var v=Q=2||(this.M2.oK(this.layout,Q),T=KF(this.params.context.Qq.get(),"html5_ssap_pass_transition_reason")&&Q==="abandoned",this.J4()&&!T&&(KF(this.params.context.Qq.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(Q)||MH("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:Q})),this.iC.get().finishSegmentByCpn(this.layout.layoutId, Kd(this.l9.get(),1).clientPlaybackNonce,WM(Q,this.params.context.Qq))),this.UK.get().removeListener(this),this.Mp()&&vj(this.M2.n7())&&this.Ka.N2(this.slot,this.layout,this.M2.n7().T))}; g.h.tL=function(T,Q,k){d1b({cpn:T,Fj:this.l9.get(),fS:!0});this.b9().layoutId!==T||KF(this.params.context.Qq.get(),"html5_ssap_pass_transition_reason")&&k===5||(this.M2.n7().currentState<2&&(T=$T(k,this.params.context.Qq),T==="error"?this.Ka.ke(this.slot,this.layout,new Jj("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:k},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):UW(this.CG, this.layout,T)),KF(this.params.context.Qq.get(),"html5_ssap_exit_without_waiting_for_transition")||this.Ka.N2(this.slot,this.layout,this.M2.n7().T))};g.S(Lw,g.x);g.h=Lw.prototype;g.h.t3=function(){return this.slot}; g.h.b9=function(){return this.layout}; g.h.Os=function(){}; g.h.oy=function(){return this.k_[this.x3]}; g.h.jf=function(){return this.x3}; g.h.Fx=function(T,Q){var k=this.oy();Q.layoutId!==gM(k,T,Q)?MH("pauseLayout for a PlayerBytes layout that is not currently active",T,Q):k.Fx()}; g.h.Nk=function(T,Q){var k=this.oy();Q.layoutId!==gM(k,T,Q)?MH("resumeLayout for a PlayerBytes layout that is not currently active",T,Q):k.Nk()}; g.h.Ol=function(T,Q){var k=this.oy();sYf(this,T,Q);SeH(k,T,Q)&&this.lV(k.t3(),k.b9(),"skipped")}; g.h.q8=function(T,Q){var k=this.oy();CPt(this);B3y(k,T,Q)&&(T=zB5(this,k,T,Q),T!==void 0&&(this.Zg()?MH("Should not happen. Should delete"):w8I(this,k.t3(),k.b9(),T)))}; g.h.Fn=function(T,Q){var k=Object.assign({},ql(this),{layoutId:Q.layoutId}),l=k.layoutId,v=k.fS;if(k.yl){var L={};gC(k.Fj,"wrse",(L.ec=l,L.is=v,L.ctp=q$(l),L))}m2(this.ih,T,Q)}; g.h.y4=function(T,Q){var k;(k=this.oy())==null||k.y4(T,Q)}; g.h.N2=function(T,Q,k){Q.layoutId===this.b9().layoutId&&(this.HV=!1,vI(this.EH(),this));var l;(l=this.oy())==null||l.N2(T,Q,k)}; g.h.qN=function(T){var Q;(Q=this.oy())==null||Q.qN(T)}; g.h.mW=function(T,Q,k){this.jf()===-1&&(this.callback.y4(this.slot,this.layout),this.x3++);var l=this.oy();l?(l.wP(T,Q,k),this.Zg()&&this.callback.ke(this.slot,this.layout,Q,k)):MH("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.jf()),layoutId:this.b9().layoutId})}; g.h.onFullscreenToggled=function(T){var Q;(Q=this.oy())==null||Q.onFullscreenToggled(T)}; g.h.Gw=function(T){var Q;(Q=this.oy())==null||Q.Gw(T)}; g.h.UF=function(T){var Q;(Q=this.oy())==null||Q.UF(T)}; g.h.onVolumeChange=function(){var T;(T=this.oy())==null||T.onVolumeChange()}; g.h.lI=function(T,Q,k){ID(this.ih,T,Q,k)}; g.h.LT=function(T){T.startRendering(T.b9())}; g.h.init=function(){var T=FN(this.b9().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");T&&(T.current=this);if(this.k_.length<1)throw new F("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.k_.length)});if(T=FN(this.b9().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))T.current=this;T=g.B(this.k_);for(var Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q.init(),eZ5(this.ih,this.slot,Q.b9()),Fb5(this.ih,this.slot,Q.b9()); if(this.Zg())for(this.l9.get().addListener(this),SCf(hBX(this),this.l9.get()),T=hBX(this),T=g.B(T),Q=T.next();!Q.done;Q=T.next())this.fW(Q.value)}; g.h.fW=function(T){var Q=FN(T.clientMetadata,"metadata_type_player_vars");Q?(T.layoutType!=="LAYOUT_TYPE_MEDIA"&&MH("Non-video ad contains playerVars",this.slot,T),this.UH.get().addPlayerResponseForAssociation({playerVars:Q})):(T=GZy(T),this.UH.get().addPlayerResponseForAssociation({xr:T}))}; g.h.release=function(){var T=FN(this.b9().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");T&&(T.current=null);if(T=FN(this.b9().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))T.current=null;T=g.B(this.k_);for(var Q=T.next();!Q.done;Q=T.next())Q=Q.value,E_f(this.ih,this.slot,Q.b9()),Q.release();this.Zg()&&(this.l9.get().removeListener(this),CD6())}; g.h.J7=function(T){return T.layoutId!==this.b9().layoutId?(this.callback.ke(this.t3(),T,new Jj("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.b9().layoutId+("and LayoutType: "+this.b9().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.h.ZX=function(){this.UK.get().addListener(this);oD(this.EH(),this)}; g.h.DG=function(T){if(T.state.isError()){var Q,k;this.mW((Q=T.state.ge)==null?void 0:Q.errorCode,new Jj("There was a player error during this media layout.",{playerErrorCode:(k=T.state.ge)==null?void 0:k.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(Q=this.oy())&&Q.DG(T)}; g.h.Zg=function(){var T=FN(this.t3().clientMetadata,"metadata_type_eligible_for_ssap");return T===void 0?(MH("Expected SSAP eligibility in PlayerBytes slots",this.t3(),this.b9()),!1):this.Qq.get().Zg(T)}; g.h.zk=function(){}; g.h.HT=function(){}; g.h.vT=function(){}; g.h.PT=function(){}; g.h.Id=function(){}; g.h.KG=function(){}; g.h.ul=function(){}; g.h.Oh=function(){}; g.h.il=function(){}; g.h.Ry=function(){}; g.h.v1=function(){}; g.h.Hg=function(){}; g.h.gC=function(){}; g.S(RN,Lw);g.h=RN.prototype;g.h.im=function(T,Q,k){this.lV(T,Q,k)}; g.h.Y8=function(T,Q){this.lV(T,Q,"error")}; g.h.lV=function(T,Q,k){var l=this;X8b(this,T,Q,k,function(){Ml(l,l.jf()+1)})}; g.h.startRendering=function(T){this.J7(T)&&(this.ZX(),LOf(this.eV.get()),Z4y(this.Qq.get())||FO5(this.UK.get()),this.jf()===-1&&Ml(this,this.jf()+1))}; g.h.oK=function(T,Q){var k=this;this.HV=!0;this.jf()===this.k_.length?this.callback.N2(this.slot,this.layout,Q):(T=this.oy(),T.oK(T.b9(),Q),this.E8=function(){k.callback.N2(k.slot,k.layout,Q)}); this.UK.get().U.WJ();M95(this.UH.get(),{});T=lI(this.UK.get(),1);T.isPaused()&&!g.J(T,2)&&this.UK.get().playVideo();this.UK.get().removeListener(this);this.HV&&dHC(this)}; g.h.tL=function(){}; g.h.un=function(){}; g.h.XV=function(){}; g.S(ZY,Lw);g.h=ZY.prototype;g.h.im=function(T,Q,k){T=Object.assign({},ql(this),{layoutId:Q.layoutId,layoutExitReason:k});Q=T.layoutId;k=T.layoutExitReason;var l={};gC(T.Fj,"prse",(l.xc=Q,l.ler=k,l.ctp=q$(Q),l))}; g.h.Y8=function(){MH("onSubLayoutError in SSAP")}; g.h.lV=function(){MH("exitSubLayoutAndPlayNext in SSAP")}; g.h.oy=function(){return this.Au}; g.h.jf=function(){var T=this;return this.k_.findIndex(function(Q){var k;return Q.b9().layoutId===((k=T.Au)==null?void 0:k.b9().layoutId)})}; g.h.LT=function(T){g3(this.Au===void 0,"replacing another adapter");this.Au=T;T.startRendering(T.b9())}; g.h.lI=function(T,Q,k){ID(this.ih,T,Q,k);var l;g3(Q.layoutId===((l=this.Au)==null?void 0:l.b9().layoutId),"currentAdapter does not match exiting layout",{slot:T?"slot: "+T.slotType:"",subLayout:qH(Q)})&&(this.Au=void 0)}; g.h.release=function(){Lw.prototype.release.call(this);g3(this.Au===void 0,"currentAdapter is still active during release");this.Au=void 0}; g.h.J4=function(){return this.UK.get().getPresentingPlayerType()===2}; g.h.oK=function(T,Q){function k(){fw(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(Q)||MH("Composite stopRendering: Unexpected layout exit reason",this.slot,T,{layoutExitReason:Q}))} function l(){this.Au&&Gn(this,this.Au,Q);if(this.J4()&&(!fw(this)||Q!=="abandoned")){k.call(this);var L;var q=((L=this.l9.get().U.getVideoData())==null?void 0:L.clientPlaybackNonce)||"";L=Kd(this.l9.get(),1).clientPlaybackNonce;this.iC.get().finishSegmentByCpn(q,L,WM(Q,this.Qq))}N3I(this,Q)} function v(){if(this.Au){var L=this.Au;L.n7().currentState<2&&L.oK(L.b9(),Q);L=fw(this)&&Q==="abandoned";this.J4()&&!L&&(k.call(this),this.iC.get().finishSegmentByCpn(this.Au.b9().layoutId,Kd(this.l9.get(),1).clientPlaybackNonce,WM(Q,this.Qq)))}} g3(T.layoutId===this.b9().layoutId,"StopRendering for wrong layout")&&oE(this.FD.S,Q)&&(this.Mp()?l.call(this):v.call(this))}; g.h.N2=function(T,Q,k){Lw.prototype.N2.call(this,T,Q,k);Q.layoutId===this.b9().layoutId&&this.UK.get().removeListener(this)}; g.h.Zs=function(){return Kd(this.l9.get(),1).clientPlaybackNonce}; g.h.tL=function(T,Q,k){d1b(Object.assign({},ql(this),{cpn:T}));if(!fw(this)||k!==5)if(this.Mp()){if(this.Au&&this.Au.b9().layoutId!==Q){var l=this.Au.b9().layoutId;l!==T&&MH("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:l,exitingCpn:T,enteringCpn:Q});T=$T(k,this.Qq);Gn(this,this.Au,T)}else this.Au&&MH("onClipExited: active layout is entering again");Q===this.Zs()&&bNf(this,k)}else{if(this.Au&&this.Au.b9().layoutId===T)A$J(this,this.Au,k);else{var v;MH("Exiting cpn does not match active cpn", this.slot,(l=this.Au)==null?void 0:l.b9(),{exitingCpn:T,transitionReason:k,activeCpn:(v=this.Au)==null?void 0:v.b9().layoutId})}Q===this.Zs()&&(this.Au!==void 0&&(MH("active adapter is not properly exited",this.slot,this.layout,{activeLayout:qH(this.Au.b9())}),A$J(this,this.Au,k)),bNf(this,k),N3I(this,this.FD.S.T))}}; g.h.Mp=function(){return KF(this.Qq.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.h.startRendering=function(T){this.J7(T)&&(T=this.FD,g3(T.T===1,"tickStartRendering: state is not initial"),T.T=2,this.ZX())}; g.h.un=function(T){wZI(Object.assign({},ql(this),{cpn:T}));var Q=this.k_.find(function(k){return k.b9().layoutId===T}); Q?(this.FD.T!==2&&(MEt(this.ZC,this.slot.slotId),g3(this.FD.T===2,"Expect started"),this.callback.y4(this.slot,this.layout)),this.LT(Q),m2(this.ih,this.slot,Q.b9())):r$y(this,T)}; g.h.Ol=function(T,Q){sYf(this,T,Q);var k=this.oy();k?SeH(k,T,Q)&&c$5(this,"skipped"):DH5(this,"onSkipRequested")}; g.h.q8=function(T,Q){var k;a:{if(k=this.oy()){if(CPt(this),B3y(k,T,Q)&&(T=zB5(this,k,T,Q),T!==void 0)){k={rG:k,x_k:this.k_[T]};break a}}else DH5(this,"SkipWithAdPodSkip");k=void 0}if(T=k)k=T.rG,Q=T.x_k,T=k.b9().layoutId,this.Mp()?Gn(this,k,"skipped"):k.oK(k.b9(),"skipped"),k=Q.b9().layoutId,this.iC.get().finishSegmentByCpn(T,k,WM("skipped",this.Qq))}; g.h.Fn=function(){MH("Not used in html5_ssap_fix_layout_exit")}; g.h.DG=function(T){var Q;(Q=this.oy())==null||Q.DG(T)}; g.h.mW=function(){MH("Not used in html5_ssap_fix_layout_exit")}; g.h.XV=function(T,Q,k){var l;if(((l=this.oy())==null?void 0:l.b9().layoutId)!==Q.layoutId)return void MH("requestToExitSubLayout: wrong layout");c$5(this,k)};g.S(m1,g.x);g.h=m1.prototype;g.h.t3=function(){return this.M2.t3()}; g.h.b9=function(){return this.M2.b9()}; g.h.init=function(){var T=FN(this.b9().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");T&&(T.current=this);this.eA()}; g.h.eA=function(){this.M2.init()}; g.h.release=function(){var T=FN(this.b9().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");T&&(T.current=null);this.oT()}; g.h.oT=function(){this.M2.release()}; g.h.Fx=function(){this.M2.Fx()}; g.h.Nk=function(){this.M2.Nk()}; g.h.Ol=function(T,Q){MH("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.t3(),this.b9(),{requestingSlot:T,requestingLayout:Q})}; g.h.startRendering=function(T){T.layoutId!==this.b9().layoutId?this.callback.ke(this.t3(),T,new Jj("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.b9().layoutId+("and LayoutType: "+this.b9().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.UK.get().addListener(this),oD(this.EH(),this),LOf(this.eV.get()),Z4y(this.Qq.get())||FO5(this.UK.get()),this.M2.startRendering(T))}; g.h.oK=function(T,Q){this.HV=!0;this.M2.oK(T,Q);this.UK.get().U.WJ();M95(this.UH.get(),{});T=lI(this.UK.get(),1);T.isPaused()&&!g.J(T,2)&&this.UK.get().playVideo();this.UK.get().removeListener(this);this.HV&&this.M2.z4()}; g.h.y4=function(T,Q){this.M2.y4(T,Q)}; g.h.N2=function(T,Q,k){Q.layoutId===this.b9().layoutId&&(this.HV=!1,vI(this.EH(),this));this.M2.N2(T,Q,k);Q.layoutId===this.b9().layoutId&&YJ(this.eV.get())}; g.h.qN=function(T){this.M2.qN(T)}; g.h.DG=function(T){if(T.state.isError()){var Q,k;this.mW((Q=T.state.ge)==null?void 0:Q.errorCode,new Jj("There was a player error during this media layout.",{playerErrorCode:(k=T.state.ge)==null?void 0:k.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.M2.DG(T)}; g.h.mW=function(T,Q,k){this.M2.wP(T,Q,k)}; g.h.onFullscreenToggled=function(T){this.M2.onFullscreenToggled(T)}; g.h.Gw=function(T){this.M2.Gw(T)}; g.h.UF=function(T){this.M2.UF(T)}; g.h.onVolumeChange=function(){this.M2.onVolumeChange()}; g.h.zk=function(){}; g.h.HT=function(){}; g.h.vT=function(){}; g.h.PT=function(){}; g.h.Id=function(){}; g.h.KG=function(){}; g.h.ul=function(){}; g.h.Oh=function(){}; g.h.il=function(){}; g.h.Ry=function(){}; g.h.v1=function(){}; g.h.Hg=function(){}; g.h.gC=function(){};g.h=IN.prototype;g.h.t3=function(){return this.slot}; g.h.b9=function(){return this.layout}; g.h.init=function(){this.DC.get().addListener(this);this.UK.get().addListener(this);var T=FN(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var Q=FN(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.Y){var k=this.DC.get().DF.slice(-1)[0];k!==void 0&&(T=k.startSecs*1E3,Q=(k.startSecs+k.bf)*1E3)}this.iA(T,Q);var l;k=(l=this.l9.get().Vh)==null?void 0:l.clientPlaybackNonce;l=this.layout.ZP.adClientDataEntry;hQ(this.Vq.get(),{daiStateTrigger:{filledAdsDurationMs:Q-T,contentCpn:k, adClientData:l}});var v=this.DC.get();v=nXI(v.L,T,Q);v!==null&&(hQ(this.Vq.get(),{daiStateTrigger:{filledAdsDurationMs:v-T,contentCpn:k,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:l}}),this.iC.get().Fc(v,Q))}; g.h.release=function(){this.oT();this.DC.get().removeListener(this);this.UK.get().removeListener(this)}; g.h.startRendering=function(){this.Uc();this.callback.y4(this.slot,this.layout)}; g.h.oK=function(T,Q){this.MS(Q);this.driftRecoveryMs!==null&&(sW(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(KPt(this)-FN(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.UK.get().U.As()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.N2(this.slot,this.layout,Q)}; g.h.mI=function(){return!1}; g.h.OO=function(T){var Q=FN(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),k=FN(this.layout.clientMetadata,"metadata_type_layout_exit_ms");T*=1E3;if(Q<=T&&T0&&h0(this.T(),Q)}; g.h.vT=function(T){this.N.delete(T.slotId);for(var Q=[],k=g.B(this.w5.values()),l=k.next();!l.done;l=k.next()){l=l.value;var v=l.trigger;v instanceof f7&&v.triggeringSlotId===T.slotId&&Q.push(l)}Q.length>0&&h0(this.T(),Q)}; g.h.PT=function(T){for(var Q=[],k=g.B(this.w5.values()),l=k.next();!l.done;l=k.next()){l=l.value;var v=l.trigger;v instanceof oB&&v.slotType===T.slotType&&v.T!==T.slotId&&Q.push(l)}Q.length>0&&h0(this.T(),Q)}; g.h.Id=function(T){this.L.add(T.slotId);for(var Q=[],k=g.B(this.w5.values()),l=k.next();!l.done;l=k.next())l=l.value,l.trigger instanceof MA&&T.slotId===l.trigger.triggeringSlotId&&Q.push(l);Q.length>0&&h0(this.T(),Q)}; g.h.KG=function(T){this.L.delete(T.slotId);this.Y.add(T.slotId);for(var Q=[],k=g.B(this.w5.values()),l=k.next();!l.done;l=k.next())if(l=l.value,l.trigger instanceof YK)T.slotId===l.trigger.triggeringSlotId&&Q.push(l);else if(l.trigger instanceof en){var v=l.trigger;T.slotId===v.slotId&&this.S.has(v.triggeringLayoutId)&&Q.push(l)}Q.length>0&&h0(this.T(),Q)}; g.h.ul=function(T){for(var Q=[],k=g.B(this.w5.values()),l=k.next();!l.done;l=k.next())l=l.value,l.trigger instanceof UR&&T.slotId===l.trigger.triggeringSlotId&&Q.push(l);Q.length>0&&h0(this.T(),Q)}; g.h.Oh=function(T){for(var Q=[],k=g.B(this.w5.values()),l=k.next();!l.done;l=k.next())l=l.value,l.trigger instanceof RB&&T.slotId===l.trigger.triggeringSlotId&&Q.push(l);Q.length>0&&h0(this.T(),Q)}; g.h.il=function(T,Q){this.B.add(Q.layoutId)}; g.h.Ry=function(T,Q){this.B.delete(Q.layoutId)}; g.h.y4=function(T,Q){this.S.add(Q.layoutId);for(var k=[],l=g.B(this.w5.values()),v=l.next();!v.done;v=l.next())if(v=v.value,v.trigger instanceof Fk)Q.layoutId===v.trigger.triggeringLayoutId&&k.push(v);else if(v.trigger instanceof lQ){var L=v.trigger;T.slotType===L.slotType&&Q.layoutType===L.layoutType&&Q.layoutId!==L.T&&k.push(v)}else v.trigger instanceof en&&(L=v.trigger,Q.layoutId===L.triggeringLayoutId&&this.Y.has(L.slotId)&&k.push(v));k.length>0&&h0(this.T(),k)}; g.h.N2=function(T,Q,k){this.S.delete(Q.layoutId);T=[];for(var l=g.B(this.w5.values()),v=l.next();!v.done;v=l.next())if(v=v.value,v.trigger instanceof yG&&Q.layoutId===v.trigger.triggeringLayoutId&&T.push(v),v.trigger instanceof EW){var L=v.trigger;Q.layoutId===L.triggeringLayoutId&&L.T.includes(k)&&T.push(v)}T.length>0&&h0(this.T(),T)}; g.h.v1=function(){}; g.h.yw=function(){this.Y.clear()}; g.h.v4=function(){};g.S(or,g.x);or.prototype.gJ=function(T,Q,k,l){if(this.w5.has(Q.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(Q instanceof $J))throw new F("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in CloseRequestedTriggerAdapter");this.w5.set(Q.triggerId,new Xj(T,Q,k,l))}; or.prototype.hs=function(T){this.w5.delete(T.triggerId)};g.S(LQ,g.x);LQ.prototype.gJ=function(T,Q,k,l){if(this.w5.has(Q.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(Q instanceof WE||Q instanceof L7))throw new F("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.w5.set(Q.triggerId,new Xj(T,Q,k,l))}; LQ.prototype.hs=function(T){this.w5.delete(T.triggerId)}; LQ.prototype.yw=function(T){for(var Q=[],k=Q.push,l=k.apply,v=[],L=g.B(this.w5.values()),q=L.next();!q.done;q=L.next())q=q.value,q.trigger instanceof WE&&q.trigger.hk===T&&v.push(q);l.call(k,Q,g.ZH(v));k=Q.push;l=k.apply;v=[];L=g.B(this.w5.values());for(q=L.next();!q.done;q=L.next())q=q.value,q.trigger instanceof L7&&q.trigger.T!==T&&v.push(q);l.call(k,Q,g.ZH(v));Q.length&&h0(this.T(),Q)}; LQ.prototype.v4=function(T){for(var Q=[],k=Q.push,l=k.apply,v=[],L=g.B(this.w5.values()),q=L.next();!q.done;q=L.next()){q=q.value;var Y=q.trigger;Y instanceof L7&&Y.T===T&&v.push(q)}l.call(k,Q,g.ZH(v));Q.length&&h0(this.T(),Q)};g.S(qZ,g.x);g.h=qZ.prototype;g.h.gJ=function(T,Q,k,l){if(this.w5.has(Q.triggerId))throw new F("Tried to register duplicate trigger for slot.");var v="adtriggercuerange:"+Q.triggerId;if(Q instanceof jg)TnJ(this,T,Q,k,l,v,Q.T.start,Q.T.end,Q.hk,Q.visible);else if(Q instanceof JQ)TnJ(this,T,Q,k,l,v,0x7ffffffffffff,0x8000000000000,Q.hk,Q.visible);else throw new F("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in CueRangeTriggerAdapter");}; g.h.hs=function(T){var Q=this.w5.get(T.triggerId);Q&&this.Xk.get().removeCueRange(Q.cueRangeId);this.w5.delete(T.triggerId)}; g.h.onCueRangeEnter=function(T){var Q=QHg(this,T);if(Q&&(Q=this.w5.get(Q)))if(g.J(lI(this.UK.get()),32))this.T.add(Q.cueRangeId);else{var k=Q==null?void 0:Q.wI.trigger;if(k instanceof jg||k instanceof JQ){if(Y9(this.context.Qq.get())){var l=Q.wI.slot,v=Q.wI.layout,L={};this.context.mx.Fs("cre",(L.ca=Q.wI.category,L.tt=k.triggerType,L.st=l.slotType,L.lt=v==null?void 0:v.layoutType,L.cid=T,L))}h0(this.S(),[Q.wI])}}}; g.h.onCueRangeExit=function(T){(T=QHg(this,T))&&(T=this.w5.get(T))&&this.T.delete(T.cueRangeId)}; g.h.DG=function(T){if(Ue(T,16)<0){T=g.B(this.T);for(var Q=T.next();!Q.done;Q=T.next())this.onCueRangeEnter(Q.value,!0);this.T.clear()}}; g.h.HT=function(){}; g.h.vT=function(){}; g.h.PT=function(){}; g.h.Id=function(){}; g.h.KG=function(){}; g.h.ul=function(){}; g.h.Oh=function(){}; g.h.il=function(){}; g.h.Ry=function(){}; g.h.y4=function(){}; g.h.N2=function(){}; g.h.v1=function(){}; g.h.qN=function(){}; g.h.onFullscreenToggled=function(){}; g.h.Gw=function(){}; g.h.zk=function(){}; g.h.UF=function(){}; g.h.onVolumeChange=function(){}; g.h.Hg=function(){}; g.h.gC=function(){};g.S(gq,g.x);g.h=gq.prototype; g.h.gJ=function(T,Q,k,l){if(this.S.has(Q.triggerId)||this.L.has(Q.triggerId))throw new F("Tried to re-register the trigger.");T=new Xj(T,Q,k,l);if(T.trigger instanceof QM)this.S.set(T.trigger.triggerId,T);else if(T.trigger instanceof iZ)this.L.set(T.trigger.triggerId,T);else throw new F("Incorrect TriggerType: Tried to register trigger of type "+T.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.S.has(T.trigger.triggerId)&&T.slot.slotId===this.T&&h0(this.Y(),[T])}; g.h.hs=function(T){this.S.delete(T.triggerId);this.L.delete(T.triggerId)}; g.h.Os=function(T){T=T.slotId;if(this.T!==T){var Q=[];this.T!=null&&Q.push.apply(Q,g.ZH(jH5(this.L,this.T)));T!=null&&Q.push.apply(Q,g.ZH(jH5(this.S,T)));this.T=T;Q.length&&h0(this.Y(),Q)}}; g.h.tL=function(){}; g.h.un=function(){};g.S(MZ,g.x);g.h=MZ.prototype;g.h.gJ=function(T,Q,k,l){if(this.w5.has(Q.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(Q instanceof vO))throw new F("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.w5.set(Q.triggerId,new Xj(T,Q,k,l))}; g.h.hs=function(T){this.w5.delete(T.triggerId)}; g.h.y4=function(){}; g.h.N2=function(){}; g.h.HT=function(){}; g.h.vT=function(){}; g.h.PT=function(){}; g.h.Id=function(){}; g.h.KG=function(){}; g.h.ul=function(){}; g.h.Oh=function(){}; g.h.il=function(){}; g.h.Ry=function(){}; g.h.v1=function(){};g.S(YS,g.x);g.h=YS.prototype;g.h.v1=function(T,Q){for(var k=[],l=g.B(this.w5.values()),v=l.next();!v.done;v=l.next()){v=v.value;var L=v.trigger;L.opportunityType===T&&(L.associatedSlotId&&L.associatedSlotId!==Q||k.push(v))}k.length&&h0(this.T(),k)}; g.h.gJ=function(T,Q,k,l){if(this.w5.has(Q.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(Q instanceof U8T))throw new F("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in OpportunityEventTriggerAdapter");this.w5.set(Q.triggerId,new Xj(T,Q,k,l))}; g.h.hs=function(T){this.w5.delete(T.triggerId)}; g.h.HT=function(){}; g.h.vT=function(){}; g.h.PT=function(){}; g.h.Id=function(){}; g.h.KG=function(){}; g.h.ul=function(){}; g.h.Oh=function(){}; g.h.il=function(){}; g.h.Ry=function(){}; g.h.y4=function(){}; g.h.N2=function(){};g.S(Un,g.x);g.h=Un.prototype;g.h.gJ=function(T,Q,k,l){T=new Xj(T,Q,k,l);if(Q instanceof VG||Q instanceof kK||Q instanceof Tb||Q instanceof qA||Q instanceof ULb){if(this.w5.has(Q.triggerId))throw new F("Tried to register duplicate trigger for slot.");this.w5.set(Q.triggerId,T)}else throw new F("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in PrefetchTriggerAdapter");}; g.h.hs=function(T){this.w5.delete(T.triggerId)}; g.h.HT=function(T){var Q=T.slotFulfillmentTriggers.find(function(k){return k instanceof VG}); Q&&(Rr(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",Q.breakDurationMs,new Set([T.slotId]),!0),Cw(this.Vq.get(),"ads_css","sid."+T.slotId+";bd."+Q.breakDurationMs))}; g.h.vT=function(){}; g.h.PT=function(){}; g.h.Id=function(){}; g.h.KG=function(){}; g.h.ul=function(){}; g.h.Oh=function(){}; g.h.il=function(){}; g.h.Ry=function(){}; g.h.y4=function(){}; g.h.N2=function(){}; g.h.v1=function(){}; g.h.mI=function(T){var Q=this;if(!this.T)return MH("Unexpected cue break before fetch instructions are available"),!1;this.S&&this.S.stop();this.N&&g.Ez(this.N);var k=veJ(this,T);if(!k){var l=liT(this),v=this.C!==void 0&&Date.now()<=this.C+1E4;Cw(this.Vq.get(),"ads_ncfs","cid."+T.identifier+";cd."+T.bf.toFixed(3)+";ccs."+v+";cfa."+this.Y+";bdc."+l.length+";"+l.slice(0,6).map(function(L){return";bd."+L}).join("")); return v?(p1(this.zP,this.T,T),!0):!1}(l=FN(k.slot.clientMetadata,"metadata_type_triggering_cue_point"))?l.current=T:MH("Expected triggering cue point ref to be available",k.slot);(new g.FA(function(){var L=k.trigger,q=k.slot;Rr(Q,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",L.breakDurationMs,new Set,!0);Rr(Q,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",L.breakDurationMs,new Set,!1);for(var Y=0,U=g.B(Q.w5.values()),R=U.next();!R.done;R=U.next()){R=R.value;var Z=R.trigger; R.slot.slotId===q.slotId&&(Q.w5.delete(Z.triggerId),Y++)}Cw(Q.Vq.get(),"ads_csf","sid."+q.slotId+";bd."+L.breakDurationMs+";dt."+Y)},10)).start(); return!0}; g.h.OO=function(){}; g.h.yw=function(T){var Q=this;this.Y=!1;this.C=Date.now();if(this.T&&this.T.contentCpn!==T)MH("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:T,fetchInstructionsCpn:this.T.contentCpn}),ZQ(this);else{this.L=new g.FA(function(){if(Q.Y)delete Q.L;else{var l=Q.UK.get().getGetAdBreakContext(),v;if(Number(l==null?void 0:(v=l.livePlaybackPosition)==null?void 0:v.utcTimeMillis)>0)delete Q.L,oe5(Q);else{var L;(L=Q.L)==null||L.start()}}},200); var k;(k=this.L)==null||k.start()}}; g.h.v4=function(T){this.T&&this.T.contentCpn!==T&&MH("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:T,fetchInstructionsCpn:this.T.contentCpn},!0);ZQ(this)}; g.h.aX=function(T){var Q=this;if(this.T)MH("Unexpected multiple fetch instructions for the current content");else{this.T=T;T=q9H(T);this.S=new g.FA(function(){oe5(Q)},T?T:6E5); this.S.start();this.N=new g.FA(function(){Q.T&&(Q.S&&(Q.S.stop(),Q.S.start()),kpJ(Q,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},LU6(this.T)); T=this.UK.get().getCurrentTimeSec(1,!1);for(var k=g.B(this.DC.get().DF),l=k.next();!l.done;l=k.next())l=l.value,Cw(this.Vq.get(),"nocache","ct."+Date.now()+";cmt."+T+";d."+l.bf.toFixed(3)+";tw."+(l.startSecs-T)+";cid."+l.identifier+";")}}; g.h.EK=function(){g.x.prototype.EK.call(this);ZQ(this)};g.S(fQ,g.x);g.h=fQ.prototype;g.h.gJ=function(T,Q,k,l){if(this.w5.has(Q.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(Q instanceof zb))throw new F("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.w5.set(Q.triggerId,new Xj(T,Q,k,l));T=this.T.has(Q.triggeringLayoutId)?this.T.get(Q.triggeringLayoutId):new Set;T.add(Q);this.T.set(Q.triggeringLayoutId,T)}; g.h.hs=function(T){this.w5.delete(T.triggerId);if(!(T instanceof zb))throw new F("Incorrect TriggerType: Tried to unregister trigger of type "+T.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var Q=this.S.get(T.triggerId);Q&&(Q.dispose(),this.S.delete(T.triggerId));if(Q=this.T.get(T.triggeringLayoutId))Q.delete(T),Q.size===0&&this.T.delete(T.triggeringLayoutId)}; g.h.HT=function(){}; g.h.vT=function(){}; g.h.PT=function(){}; g.h.Id=function(){}; g.h.KG=function(){}; g.h.ul=function(){}; g.h.Oh=function(){}; g.h.il=function(){}; g.h.Ry=function(){}; g.h.v1=function(){}; g.h.y4=function(T,Q){var k=this;if(this.T.has(Q.layoutId)){T=this.T.get(Q.layoutId);T=g.B(T);var l=T.next();for(Q={};!l.done;Q={Cr:void 0},l=T.next())Q.Cr=l.value,l=new g.FA(function(v){return function(){var L=k.w5.get(v.Cr.triggerId);h0(k.L(),[L])}}(Q),Q.Cr.durationMs),l.start(),this.S.set(Q.Cr.triggerId,l)}}; g.h.N2=function(){};g.S(GE,g.x);GE.prototype.gJ=function(T,Q,k,l){if(this.w5.has(Q.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(Q instanceof OW))throw new F("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in VideoTransitionTriggerAdapter.");this.w5.set(Q.triggerId,new Xj(T,Q,k,l))}; GE.prototype.hs=function(T){this.w5.delete(T.triggerId)};sn.prototype.qp=function(T){return T.kind==="AD_PLACEMENT_KIND_START"};g.S(BC,g.x);g.h=BC.prototype;g.h.logEvent=function(T){this.M3(T)}; g.h.XE=function(T,Q,k){this.M3(T,void 0,void 0,void 0,Q,void 0,void 0,void 0,Q.adSlotLoggingData,void 0,void 0,k)}; g.h.Xw=function(T,Q,k,l){this.M3(T,void 0,void 0,void 0,Q,k?k:void 0,void 0,void 0,Q.adSlotLoggingData,k?k.adLayoutLoggingData:void 0,void 0,l)}; g.h.Rm=function(T,Q,k,l){KF(this.Qq.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+T,"trigger:",k,"slot:",Q,"layout:",l);T4(this.T.get())&&this.M3(T,void 0,void 0,void 0,Q,l?l:void 0,void 0,k,Q.adSlotLoggingData,l?l.adLayoutLoggingData:void 0)}; g.h.hT=function(T,Q,k,l,v){this.M3(T,Q,k,l,void 0,void 0,void 0,void 0,void 0,void 0,void 0,v)}; g.h.dA=function(T,Q,k,l){this.M3("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,k,l,void 0,void 0,k.adSlotLoggingData,l?l.adLayoutLoggingData:void 0,{errorType:T,errorMessage:Q})}; g.h.M3=function(T,Q,k,l,v,L,q,Y,U,R,Z,f){var G=this;f=f===void 0?0:f;KF(this.Qq.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+T,"slot:",v,"layout:",L,"ping:",q,"Opportunity:",{opportunityType:Q,associatedSlotId:k,L6H:l,YpK:Y,adSlotLoggingData:U,adLayoutLoggingData:R});try{var m=function(){if(!G.Qq.get().U.G().V("html5_disable_client_tmp_logs")&&T!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){T||MH("Empty PACF event type",v,L);var I=T4(G.T.get()),z={eventType:T,eventOrder:++G.eventCount},w={}; v&&(w.slotData=VZ(I,v));L&&(w.layoutData=OZC(I,L));q&&(w.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:q.T.serializedAdPingMetadata,pingIndex:q.index});Y&&(w.triggerData=i2(Y.trigger,Y.category));Q&&(w.opportunityData=pdt(I,Q,k,l));I={organicPlaybackContext:{contentCpn:Kd(G.l9.get(),1).clientPlaybackNonce}};I.organicPlaybackContext.isLivePlayback=Kd(G.l9.get(),1).Cc;var r;I.organicPlaybackContext.isMdxPlayback=(r=Kd(G.l9.get(),1))==null?void 0:r.isMdxPlayback; var A;if((A=Kd(G.l9.get(),1))==null?0:A.daiEnabled)I.organicPlaybackContext.isDaiContent=!0;var D;if(r=(D=Kd(G.l9.get(),2))==null?void 0:D.clientPlaybackNonce)I.adVideoPlaybackContext={adVideoCpn:r};I&&(w.externalContext=I);z.adClientData=w;U&&(z.serializedSlotAdServingData=U.serializedSlotAdServingDataEntry);R&&(z.serializedAdServingData=R.serializedAdServingDataEntry);Z&&(z.errorInfo=Z);g.LM("adsClientStateChange",{adsClientEvent:z})}}; f&&f>0?g.Er(g.iu(),function(){return m()},f):m()}catch(I){KF(this.Qq.get(),"html5_log_pacf_logging_errors")&&g.Er(g.iu(),function(){MH(I instanceof Error?I:String(I),v,L,{pacf_message:"exception during pacf logging"})})}};var d_e=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.S(zE,BC);g.h=zE.prototype; g.h.XE=function(T,Q,k){BC.prototype.XE.call(this,T,Q,k);Y9(this.Qq.get())&&(k={},this.context.mx.Fs("pacf",(k.et=T,k.st=Q.slotType,k.si=Q.slotId,k)))}; g.h.Xw=function(T,Q,k,l){var v=d_e.has(T);BC.prototype.Xw.call(this,T,Q,k,l);Y9(this.Qq.get(),v)&&(l={},this.context.mx.Fs("pacf",(l.et=T,l.st=Q.slotType,l.si=Q.slotId,l.lt=k==null?void 0:k.layoutType,l.li=k==null?void 0:k.layoutId,l.p_ac=k==null?void 0:k.layoutId,l)))}; g.h.hT=function(T,Q,k,l,v){BC.prototype.hT.call(this,T,Q,k,l,v);Y9(this.Qq.get())&&(k={},this.context.mx.Fs("pacf",(k.et=T,k.ot=Q,k.ss=l==null?void 0:l.length,k)))}; g.h.Rm=function(T,Q,k,l){BC.prototype.Rm.call(this,T,Q,k,l);if(Y9(this.Qq.get())){var v={};this.context.mx.Fs("pacf",(v.et=T,v.tt=k.trigger.triggerType,v.tc=k.category,v.st=Q.slotType,v.si=Q.slotId,v.lt=l==null?void 0:l.layoutType,v.li=l==null?void 0:l.layoutId,v.p_ac=l==null?void 0:l.layoutId,v))}}; g.h.dA=function(T,Q,k,l){BC.prototype.dA.call(this,T,Q,k,l);if(Y9(this.Qq.get(),!0)){var v={};this.context.mx.Fs("perror",(v.ert=T,v.erm=Q,v.st=k.slotType,v.si=k.slotId,v.lt=l==null?void 0:l.layoutType,v.li=l==null?void 0:l.layoutId,v.p_ac=l==null?void 0:l.layoutId,v))}}; g.h.M3=function(T,Q,k,l,v,L,q,Y,U,R,Z){var f=this.Qq.get();g.G4(f.U.G())?(f=this.Qq.get(),f=g.jj(f.U.G().experiments,"H5_async_logging_delay_ms")):f=void 0;BC.prototype.M3.call(this,T,Q,k,l,v,L,q,Y,U,R,Z,f)};Xv.prototype.clear=function(){this.T.clear()};wq.prototype.state=function(){return this.T==="fulfilled"?{state:"fulfilled",value:this.result}:this.T==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; wq.prototype.Y=function(T){NZ(T)||dq(T)?DQ(A1(T),this.Y.bind(this),this.reject.bind(this)):(this.T="fulfilled",this.result=T,cC(this))}; wq.prototype.reject=function(T){this.T="rejected";this.error=T;cC(this)}; var dq=L8(function(T){return xpA(T)?T instanceof wq:!1});Object.freeze({BSV:function(T){var Q=PC(T);return DQ(xS(Q,function(k){return Q[k].T==="rejected"}),function(k){return Number.isNaN(k)?Q.map(function(l){return l.state().value}):Q[k]})}, NSH:function(T){var Q=PC(T);return DQ(xS(Q),function(){return Q.map(function(k){return k.state()})})}, VXm:function(T){var Q=PC(T);return DQ(xS(Q,function(k){return Q[k].T==="fulfilled"}),function(k){return Number.isNaN(k)?b8(new AggregateError(Q.map(function(l){return l.state().reason}))):Q[k].state().value})}, wB9:function(T){var Q=PC(T);return DQ(xS(Q,function(){return!0}),function(k){return Q[k]})}});var HC=window.ePO||"es-419";WC.prototype.HP=function(T){this.client=T}; WC.prototype.T=function(){this.clear();this.csn=g.C9()}; WC.prototype.clear=function(){this.L.clear();this.S.clear();this.Y.clear();this.csn=null};J1.prototype.HP=function(T){g.E4($S().HP).bind($S())(T)}; J1.prototype.clear=function(){g.E4($S().clear).bind($S())()};g.h=es.prototype;g.h.HP=function(T){this.client=T}; g.h.dB=function(T,Q){var k=this;Q=Q===void 0?{}:Q;g.E4(function(){var l,v,L,q=((l=g.t(T==null?void 0:T.commandMetadata,g.XD))==null?void 0:l.rootVe)||((v=g.t(T==null?void 0:T.commandMetadata,WIe))==null?void 0:(L=v.screenVisualElement)==null?void 0:L.uiType);if(q){l=g.t(T==null?void 0:T.commandMetadata,MOp);if(l==null?0:l.parentTrackingParams){var Y=g.ha(l.parentTrackingParams);if(l.parentCsn)var U=l.parentCsn}else Q.clickedVisualElement?Y=Q.clickedVisualElement:T.clickTrackingParams&&(Y=g.ha(T.clickTrackingParams)); a:{l=g.t(T,g.Bv);v=g.t(T,k8p);if(l){if(v=duy(l,"VIDEO")){l={token:v,videoId:l.videoId};break a}}else if(v&&(l=duy(v,"PLAYLIST"))){l={token:l,playlistId:v.playlistId};break a}l=void 0}Q=Object.assign({},{cttAuthInfo:l,parentCsn:U},Q);if(g.hH("expectation_logging")){var R;Q.loggingExpectations=((R=g.t(T==null?void 0:T.commandMetadata,WIe))==null?void 0:R.loggingExpectations)||void 0}En(k,q,Y,Q)}else g.rB(new g.Wy("Error: Trying to create a new screen without a rootVeType",T))})()}; g.h.clickCommand=function(T,Q,k){T=T.clickTrackingParams;k=k===void 0?0:k;T?(k=g.C9(k===void 0?0:k))?(Ff(this.client,k,g.ha(T),Q),Q=!0):Q=!1:Q=!1;return Q}; g.h.stateChanged=function(T,Q,k){this.visualElementStateChanged(g.ha(T),Q,k===void 0?0:k)}; g.h.visualElementStateChanged=function(T,Q,k){k=k===void 0?0:k;k===0&&this.S.has(k)?this.j.push([T,Q]):Dug(this,T,Q,k)};Tq.prototype.fetch=function(T,Q,k){var l=this,v=neX(T,Q,k);return new Promise(function(L,q){function Y(){if(k==null?0:k.w_)try{var R=l.handleResponse(T,v.status,v.response,k);L(R)}catch(Z){q(Z)}else L(l.handleResponse(T,v.status,v.response,k))} v.onerror=Y;v.onload=Y;var U;v.send((U=Q.body)!=null?U:null)})}; Tq.prototype.handleResponse=function(T,Q,k,l){k=k.replace(")]}'","");try{var v=JSON.parse(k)}catch(L){g.rB(new g.Wy("JSON parsing failed after XHR fetch",T,Q,k));if((l==null?0:l.w_)&&k)throw new g.pG(1,"JSON parsing failed after XHR fetch");v={}}Q!==200&&(g.rB(new g.Wy("XHR API fetch failed",T,Q,k)),v=Object.assign({},v,{errorMetadata:{status:Q}}));return v};Qp.getInstance=function(){var T=g.jA("ytglobal.storage_");T||(T=new Qp,g.Tv("ytglobal.storage_",T));return T}; Qp.prototype.estimate=function(){var T,Q,k;return g.a(function(l){T=navigator;return((Q=T.storage)==null?0:Q.estimate)?l.return(T.storage.estimate()):((k=T.webkitTemporaryStorage)==null?0:k.queryUsageAndQuota)?l.return(KUI()):l.return()})}; g.Tv("ytglobal.storageClass_",Qp);op.prototype.O4=function(T){this.handleError(T)}; op.prototype.logEvent=function(T,Q){switch(T){case "IDB_DATA_CORRUPTED":g.hH("idb_data_corrupted_killswitch")||this.T("idbDataCorrupted",Q);break;case "IDB_UNEXPECTEDLY_CLOSED":this.T("idbUnexpectedlyClosed",Q);break;case "IS_SUPPORTED_COMPLETED":g.hH("idb_is_supported_completed_killswitch")||this.T("idbIsSupportedCompleted",Q);break;case "QUOTA_EXCEEDED":P25(this,Q);break;case "TRANSACTION_ENDED":this.L&&Math.random()<=.1&&this.T("idbTransactionEnded",Q);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":T= Object.assign({},Q,{hasWindowUnloaded:this.S}),this.T("idbTransactionAborted",T)}};var yo={},WEJ=g.VH("yt-player-local-media",{Sn:(yo.index={C7:2},yo.media={C7:2},yo.captions={C7:5},yo),shared:!1,upgrade:function(T,Q){Q(2)&&(g.dm(T,"index"),g.dm(T,"media"));Q(5)&&g.dm(T,"captions");Q(6)&&(Nh(T,"metadata"),Nh(T,"playerdata"))}, version:5});var NJT={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},is;a:{var Vo=g.KJ();Vo=Vo.toLowerCase();if(g.rz(Vo,"android")){var AmW=Vo.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(AmW){var b8v=parseFloat(AmW[1]);if(b8v<100){is=b8v;break a}}var rme=Vo.match("("+Object.keys(NJT).join("|")+")");is=rme?NJT[rme[0]]:0}else is=void 0}var ou=is,lF=ou>=0;var V7X=window;var Hp5=aO(function(){var T,Q;return(Q=(T=window).matchMedia)==null?void 0:Q.call(T,"(prefers-reduced-motion: reduce)").matches});var kg;g.jX=new IW;kg=0;var sd=en5()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.$n?!0:!1;var vr={rd:function(T,Q){T[M[51]](0,Q)}, UT:function(T){T[M[46]]()}, N9:function(T,Q){var k=T[0];T[0]=T[Q%T[M[24]]];T[Q%T[M[24]]]=k}};var PZg={rxm:"adunit",cyd:"detailpage",XG6:"editpage",RM9:"embedded",azk:"leanback",cHq:"previewpage",EF9:"profilepage",wG:"unplugged",gFV:"playlistoverview",Me6:"sponsorshipsoffer",nFe:"shortspage",q4d:"handlesclaiming",d1m:"immersivelivepage",qFO:"creatormusic",x16:"immersivelivepreviewpage",NOm:"admintoolyurt",P0_:"shortsaudiopivot",DVO:"consumption"};var Ow6={mVe:0,Fo9:1,Y$k:2,0:"AUDIO_QUALITY_SETTING_UNKNOWN",1:"AUDIO_QUALITY_SETTING_HIGHER_QUALITY",2:"AUDIO_QUALITY_SETTING_NORMAL_QUALITY"};var iFf=2592E3;var Tr,cmv,na;Tr={};g.Br=(Tr.STOP_EVENT_PROPAGATION="html5-stop-propagation",Tr.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Tr.IV_DRAWER_OPEN="ytp-iv-drawer-open",Tr.MAIN_VIDEO="html5-main-video",Tr.VIDEO_CONTAINER="html5-video-container",Tr.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Tr.HOUSE_BRAND="house-brand",Tr);cmv={};na=(cmv.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",cmv.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",cmv);var qPJ={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var UPT={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},RFu={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"},M$T={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var Mwg={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.wt.prototype.getLanguageInfo=function(){return this.MY}; g.wt.prototype.getXtags=function(){if(!this.xtags){var T=this.id.split(";");T.length>1&&(this.xtags=T[1])}return this.xtags}; g.wt.prototype.toString=function(){return this.MY.name}; g.wt.prototype.getLanguageInfo=g.wt.prototype.getLanguageInfo;dt.prototype.equals=function(T){return this.S===T.S&&this.T===T.T&&this.L===T.L&&this.reason===T.reason&&(!A_||this.qY===T.qY)}; dt.prototype.isLocked=function(){return this.L&&!!this.S&&this.S===this.T}; dt.prototype.compose=function(T){if(T.L&&bd(T))return GV;if(T.L||bd(this))return T;if(this.L||bd(T))return this;var Q=this.S&&T.S?Math.max(this.S,T.S):this.S||T.S,k=this.T&&T.T?Math.min(this.T,T.T):this.T||T.T;Q=Math.min(Q,k);var l=0;A_&&(l=this.qY!==0&&T.qY!==0?Math.min(this.qY,T.qY):this.qY===0?T.qY:this.qY);return A_&&Q===this.S&&k===this.T&&l===this.qY||!A_&&Q===this.S&&k===this.T?this:A_?new dt(Q,k,!1,k===this.T&&l===this.qY?this.reason:T.reason,l):new dt(Q,k,!1,k===this.T?this.reason:T.reason)}; dt.prototype.Y=function(T){return!T.video||A_&&this.qY!==0&&this.qY=0}; g.h.l6=function(){var T=this.segments[this.segments.length-1];return T?T.endTime:NaN}; g.h.SY=function(){return this.segments[0].startTime}; g.h.DL=function(){return this.segments.length}; g.h.je=function(){return 0}; g.h.ll=function(T){return(T=this.ZL(T))?T.NO:-1}; g.h.qb=function(T){return(T=this.Ix(T))?T.sourceURL:""}; g.h.getStartTime=function(T){return(T=this.Ix(T))?T.startTime:0}; g.h.nm=function(T){return this.getStartTime(T)+this.getDuration(T)}; g.h.SA=T5(1);g.h.isLoaded=function(){return this.segments.length>0}; g.h.Ix=function(T){if(this.T&&this.T.NO===T)return this.T;T=g.OA(this.segments,new T7(T,0,0,0,""),function(Q,k){return Q.NO-k.NO}); return this.T=T>=0?this.segments[T]:null}; g.h.ZL=function(T){if(this.T&&this.T.startTime<=T&&T=0?this.segments[T]:this.segments[Math.max(0,-T-2)]}; g.h.append=function(T){if(T.length)if(T=g.r$(T),this.segments.length){var Q=this.segments.length?g.m9(this.segments).endTime:0,k=T[0].NO-this.a_();k>1&&B6g(this.segments);for(k=k>0?0:-k+1;kT.NO&&this.index.p7()<=T.NO+1}; g.h.update=function(T,Q,k){this.index.append(T);OBu(this.index,k);T=this.index;T.S=Q;T.L="update"}; g.h.ZG=function(){return this.sj()?!0:yn.prototype.ZG.call(this)}; g.h.qT=function(T,Q){var k=this.index.qb(T),l=this.index.getStartTime(T),v=this.index.getDuration(T),L;Q?v=L=0:L=this.info.qY>0?this.info.qY*v:1E3;return new gd([new jq(3,this,void 0,"liveCreateRequestInfoForSegment",T,l,v,0,L,!Q)],k)}; g.h.fm=function(){return this.sj()?0:this.initRange.length}; g.h.K3=function(){return!1};G3.prototype.update=function(T){var Q=void 0;this.S&&(Q=this.S);var k=new G3,l=Array.from(T.getElementsByTagName("S"));if(l.length){var v=+Zj(T,"timescale")||1,L=(+l[0].getAttribute("t")||0)/v,q=+Zj(T,"startNumber")||0;k.Y=L;var Y=Q?Q.startSecs+Q.bf:0,U=Date.parse(n9t(Zj(T,"yt:segmentIngestTime")))/1E3;k.N=T.parentElement.tagName==="SegmentTemplate";k.N&&(k.C=Zj(T,"media"));T=Q?q-Q.NO:1;k.B=T>0?0:-T+1;T=g.B(l);for(l=T.next();!l.done;l=T.next()){l=l.value;for(var R=+l.getAttribute("d")/v,Z=(+l.getAttribute("yt:sid")|| 0)/v,f=+l.getAttribute("r")||0,G=0;G<=f;G++)if(Q&&q<=Q.NO)q++;else{var m=new aKf(q,Y,R,U+Z,L);k.T.push(m);var I=l;var z=v,w=m.startSecs;m=I.getAttribute("yt:cuepointTimeOffset");var r=I.getAttribute("yt:cuepointDuration");if(m&&r){m=Number(m);w=-m/z+w;z=Number(r)/z;r=I.getAttribute("yt:cuepointContext")||null;var A=I.getAttribute("yt:cuepointIdentifier")||"";I=I.getAttribute("yt:cuepointEvent")||"";I=new M6(w,z,r,A,a9$[I]||"unknown",m)}else I=null;I&&k.L.push(I);q++;Y+=R;L+=R;U+=R+Z}}k.T.length&& (k.S=g.m9(k.T))}this.B=k.B;this.S=k.S||this.S;g.cm(this.T,k.T);g.cm(this.L,k.L);this.N=k.N;this.C=k.C;this.Y===-1&&(this.Y=k.getStreamTimeOffset())}; G3.prototype.getStreamTimeOffset=function(){return this.Y===-1?0:this.Y};g.S(IX,g.Qn);g.h=IX.prototype;g.h.Z3=function(){return this.bH}; g.h.f7=function(T,Q){T=hq(this,T);return T>=0&&(Q||!this.segments[T].pending)}; g.h.p7=function(){return this.ly?this.segments.length?this.ZL(this.SY()).NO:-1:g.Qn.prototype.p7.call(this)}; g.h.SY=function(){if(this.KY)return 0;if(!this.ly)return g.Qn.prototype.SY.call(this);if(!this.segments.length)return 0;var T=Math.max(g.m9(this.segments).endTime-this.Bf,0);return this.sW>0&&this.ZL(T).NO0)return this.GW/1E3;if(!this.segments.length)return g.Qn.prototype.l6.call(this);var T=this.a_();if(!this.ly||T<=this.segments[this.segments.length-1].NO)T=this.segments[this.segments.length-1];else{var Q=this.segments[this.segments.length-1];T=new T7(T,Math.max(0,Q.startTime-(Q.NO-T)*this.bH),this.bH,0,"sq/"+T,void 0,void 0,!0)}return this.KY?Math.min(this.Bf,T.endTime):T.endTime}; g.h.DL=function(){return this.ly?this.segments.length?this.a_()-this.p7()+1:0:g.Qn.prototype.DL.call(this)}; g.h.a_=function(){var T=Math.min(this.Kz,Math.max(g.Qn.prototype.a_.call(this),this.hV)),Q=this.Bf*1E3;Q=this.GW>0&&this.GW0&&this.hV>0&&!Q&&(Q=this.ZL(this.Bf))&&(T=Math.min(Q.NO-1,T));return T}; g.h.j2=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.h.LK=function(T){var Q=hq(this,T.NO);if(Q>=0)this.segments[Q]=T;else if(this.segments.splice(-(Q+1),0,T),this.P$&&T.NO%(300/this.bH)===0){var k=this.segments[0].NO,l=Math.floor(this.P$/this.bH);T=T.NO-l;Q=-(Q+1)-l;Q>0&&T>k&&(this.segments=this.segments.slice(Q))}}; g.h.UI=function(){return this.hV}; g.h.SE=function(T){return mN?!this.S&&T>=0&&this.a_()<=T:g.Qn.prototype.SE.call(this,T)}; g.h.ZL=function(T){if(!this.ly)return g.Qn.prototype.ZL.call(this,T);if(!this.segments.length)return null;var Q=this.segments[this.segments.length-1];if(T=Q.endTime)Q=Q.NO+Math.floor((T-Q.endTime)/this.bH+1);else{Q=pW(this.segments,function(l){return T=l.endTime?1:0}); if(Q>=0)return this.segments[Q];var k=-(Q+1);Q=this.segments[k-1];k=this.segments[k];Q=Math.floor((T-Q.endTime)/((k.startTime-Q.endTime)/(k.NO-Q.NO-1))+1)+Q.NO}return this.Ix(Q)}; g.h.Ix=function(T){if(!this.ly)return g.Qn.prototype.Ix.call(this,T);if(!this.segments.length)return null;var Q=hq(this,T);if(Q>=0)return this.segments[Q];var k=-(Q+1);Q=this.bH;if(k===0)var l=Math.max(0,this.segments[0].startTime-(this.segments[0].NO-T)*Q);else k===this.segments.length?(l=this.segments[this.segments.length-1],l=l.endTime+(T-l.NO-1)*Q):(l=this.segments[k-1],Q=this.segments[k],Q=(Q.startTime-l.endTime)/(Q.NO-l.NO-1),l=l.endTime+(T-l.NO-1)*Q);return new T7(T,l,Q,0,"sq/"+T,void 0,void 0, !0)}; var mN=!1;g.S(sE,RX);g.h=sE.prototype;g.h.Ri=function(){return!0}; g.h.ZG=function(){return!0}; g.h.zm=function(T){return this.Sp()&&T.L&&!T.Y||!T.T.index.SE(T.NO)}; g.h.Ga=function(){}; g.h.A5=function(T,Q){return typeof T!=="number"||isFinite(T)?RX.prototype.A5.call(this,T,Q===void 0?!1:Q):new gd([new jq(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.hW,void 0,this.hW*this.info.qY)],"")}; g.h.qT=function(T,Q){var k=k===void 0?!1:k;if(this.index.f7(T))return RX.prototype.qT.call(this,T,Q);var l=this.index.getStartTime(T),v=Math.round(this.hW*this.info.qY),L=this.hW;Q&&(L=v=0);return new gd([new jq(k?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",T,l,L,void 0,v,!Q)],T>=0?"sq/"+T:"")};g.S(Sq,yn);g.h=Sq.prototype;g.h.tH=function(){return!1}; g.h.Sp=function(){return!1}; g.h.Ri=function(){return!1}; g.h.Ga=function(){return new gd([new jq(1,this,void 0,"otfInit")],this.N)}; g.h.aT=function(){return null}; g.h.Kh=function(T){this.zm(T);return WDI(this,v9(T),!1)}; g.h.A5=function(T,Q){Q=Q===void 0?!1:Q;T=this.index.ll(T);Q&&(T=Math.min(this.index.a_(),T+1));return WDI(this,T,!0)}; g.h.dR=function(T){T.info.type===1&&(this.T||(this.T=Yl(T.S)),T.T&&T.T.uri==="http://youtube.com/streaming/otf/durations/112015"&&$$b(this,T.T))}; g.h.zm=function(T){return T.L===0?!0:this.index.a_()>T.NO&&this.index.p7()<=T.NO+1}; g.h.fm=function(){return 0}; g.h.K3=function(){return!1};g.Cy.prototype.info=function(){}; g.Cy.prototype.debug=function(){}; g.Cy.prototype.T=function(T){B9.apply(null,[5,this.tag,T].concat(g.ZH(g.HT.apply(1,arguments))))}; var FD5=new Map,iu5=new Map,E95=new function(){var T=this;this.T=new Map;this.dn={JVK:function(){return T.T}}};g.h=g.rd.prototype;g.h.f7=function(T){return T<=this.a_()}; g.h.je=function(T){return this.offsets[T]}; g.h.getStartTime=function(T){return this.startTicks[T]/this.T}; g.h.nm=function(T){return this.getStartTime(T)+this.getDuration(T)}; g.h.SA=T5(0);g.h.xM=function(){return NaN}; g.h.getDuration=function(T){T=this.qe(T);return T>=0?T/this.T:-1}; g.h.qe=function(T){return T+1=0}; g.h.l6=function(){return this.S?this.startTicks[this.count]/this.T:NaN}; g.h.SY=function(){return 0}; g.h.DL=function(){return this.count}; g.h.qb=function(){return""}; g.h.ll=function(T){T=g.OA(this.startTicks.subarray(0,this.count),T*this.T);return T>=0?T:Math.max(0,-T-2)}; g.h.isLoaded=function(){return this.a_()>=0}; g.h.Ls=function(T,Q){if(T>=this.a_())return 0;var k=0;for(Q=this.getStartTime(T)+Q;Tthis.getStartTime(T);T++)k=Math.max(k,Llb(this,T)/this.getDuration(T));return k}; g.h.resize=function(T){T+=2;var Q=this.offsets;this.offsets=new Float64Array(T+1);var k=this.startTicks;this.startTicks=new Float64Array(T+1);for(T=0;T0&&T&&(k=k.range.end+1,T=Math.min(T,this.info.contentLength-k),T>0&&l.push(new jq(4,this,T3(k,T),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Q)));return new gd(l)}; g.h.dR=function(T){if(T.info.type===1){if(this.T)return;this.T=Yl(T.S)}else if(T.info.type===2){if(this.N||this.index.a_()>=0)return;if(g.x9(this.info)){var Q=this.index,k=g.XG(T);T=T.info.range.start;var l=g.Z8(k,0,1936286840);k=jE5(l);Q.T=k.timescale;var v=k.WS;Q.offsets[0]=k.NR+T+l.size;Q.startTicks[0]=v;Q.S=!0;T=k.YC.length;for(l=0;l0&&T===L[0].SQ)for(T=0;T=Q+k)break}v.length||(T=new g.Wy("b189619593",""+T,""+Q,""+k),g.bA(T));return new gd(v)}; g.h.dj=function(T){for(var Q=this.Ui(T.info),k=T.info.range.start+T.info.S,l=[],v=0;v=this.index.je(k+1);)k++;return this.lk(k,Q,T.L).MO}; g.h.zm=function(T){T.Dq();return this.ZG()?!0:T.range.end+1this.info.contentLength&&(Q=new ix(Q.start,this.info.contentLength-1)),new gd([new jq(4,T.T,Q,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,T.clipId)]);T.type===4&&(T=this.Ui(T),T=T[T.length-1]);var k=0,l=T.range.start+T.S+T.L;T.type===3&&(T.Dq(),k=T.NO,l===T.range.end+1&&(k+=1));return this.lk(k,l,Q)}; g.h.Kh=function(){return null}; g.h.A5=function(T,Q){Q=Q===void 0?!1:Q;T=this.index.ll(T);Q&&(T=Math.min(this.index.a_(),T+1));return this.lk(T,this.index.je(T),0,void 0)}; g.h.tH=function(){return!0}; g.h.Sp=function(){return!0}; g.h.Ri=function(){return!1}; g.h.fm=function(){return this.indexRange.length+this.initRange.length}; g.h.K3=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var j0={},Bfb=(j0.COLOR_PRIMARIES_BT709="bt709",j0.COLOR_PRIMARIES_BT2020="bt2020",j0.COLOR_PRIMARIES_UNKNOWN=null,j0.COLOR_PRIMARIES_UNSPECIFIED=null,j0),kG={},gTI=(kG.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",kG.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",kG.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",kG.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",kG.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,kG.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,kG);g.aX.prototype.getName=function(){return this.name}; g.aX.prototype.getId=function(){return this.id}; g.aX.prototype.getIsDefault=function(){return this.isDefault}; g.aX.prototype.toString=function(){return this.name}; g.aX.prototype.getName=g.aX.prototype.getName;g.aX.prototype.getId=g.aX.prototype.getId;g.aX.prototype.getIsDefault=g.aX.prototype.getIsDefault;var Rjf=/action_display_post/;var Zd6,Ky,x0;g.S(P9,g.ox);g.h=P9.prototype;g.h.isLoading=function(){return this.state===1}; g.h.u5=function(){return this.state===3}; g.h.NtH=function(T){var Q=T.getElementsByTagName("Representation");if(T.getElementsByTagName("SegmentList").length>0||T.getElementsByTagName("SegmentTemplate").length>0){this.Cc=this.S=!0;this.timeline||(this.timeline=new x$T);Ou6(this.timeline,T);this.publish("refresh");for(T=0;T=0?Z=Vn(G):f=f+"?range="+G}U.call(Y,new T7(R.NO,R.startSecs,R.bf,R.T,f,Z,R.S))}l=v}k.update(l,this.isLive,this.Jj)}pjT(this.timeline);return!0}this.duration=uLb(Zj(T,"mediaPresentationDuration")); a:{for(T=0;T0))return this.EM()-T}}T=this.T;for(var Q in T){var k=T[Q].index;if(k.isLoaded()&&!Wj(T[Q].info.mimeType))return k.SY()}return 0}; g.h.getStreamTimeOffset=function(){return this.C}; g.h.xM=function(T){for(var Q in this.T){var k=this.T[Q].index;if(k.isLoaded()){var l=k.ll(T),v=k.xM(l);if(v)return v+T-k.getStartTime(l)}}return NaN}; var T6=null,u1$,Qa=!((u1$=navigator.mediaCapabilities)==null||!u1$.decodingInfo),AB5={commentary:1,alternate:2,dub:3,main:4};var wT=new Set,j4=new Map;on.prototype.clone=function(T){return new on(this.flavor,T,this.S,this.experiments)}; on.prototype.Tx=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; on.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 nj1={},fc=(nj1.playready=["com.youtube.playready","com.microsoft.playready"],nj1.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],nj1),l0={},nxJ=(l0.widevine="DRM_SYSTEM_WIDEVINE",l0.fairplay="DRM_SYSTEM_FAIRPLAY",l0.playready="DRM_SYSTEM_PLAYREADY",l0),oM={},K3A=(oM.widevine=1,oM.fairplay=2,oM.playready=3,oM);var In;g.S(G6,g.x); G6.prototype.initialize=function(T,Q){for(var k=this,l=g.B(Object.keys(T)),v=l.next();!v.done;v=l.next()){v=g.B(T[v.value]);for(var L=v.next();!L.done;L=v.next())if(L=L.value,L.jY)for(var q=g.B(Object.keys(L.jY)),Y=q.next();!Y.done;Y=q.next()){var U=Y.value;Y=U;U=fc[U];!U&&this.V("html5_enable_vp9_fairplay")&&Y==="fairplay"&&(U=["com.youtube.fairplay.sbdl"]);if(U){U=g.B(U);for(var R=U.next();!R.done;R=U.next())R=R.value,this.L[R]=this.L[R]||new on(Y,R,L.jY[Y],this.FB.experiments),this.T[Y]=this.T[Y]|| {},this.T[Y][L.mimeType]=!0}}}WD()&&(this.L["com.youtube.fairplay"]=new on("fairplay","com.youtube.fairplay","",this.FB.experiments),this.V("html5_enable_vp9_fairplay")||(this.T.fairplay=this.T.fairplay||{},this.T.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.T.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.S=OdH(Q,this.useCobaltWidevine,this.V("html5_enable_safari_fairplay")&&!0,this.V("html5_enable_vp9_fairplay")).filter(function(Z){return!!k.L[Z]})}; G6.prototype.V=function(T){return this.FB.experiments.Wd(T)};var x__={"":"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"};Fly.prototype.V=function(T){return this.experiments.Wd(T)};var tn6={RED:"red",RPj:"white"};ETC.prototype.Wd=function(T){T=this.flags[T];JSON.stringify(T);return T==="true"};var VtJ=Promise.resolve(),kn6=window.queueMicrotask?window.queueMicrotask.bind(window):TMI;Cc.prototype.canPlayType=function(T,Q){T=T.canPlayType?T.canPlayType(Q):!1;We?T=T||PSE[Q]:ou===2.2?T=T||H8$[Q]:OG()&&(T=T||tCd[Q]);return!!T}; Cc.prototype.isTypeSupported=function(T){return this.D?window.cast.receiver.platform.canDisplayType(T):s_(T)}; var H8$={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},tCd={"application/x-mpegURL":"maybe"},PSE={"application/x-mpegURL":"maybe"};g.S(XK,g.ox);XK.prototype.add=function(T,Q){if(!this.items[T]&&(Q.Hy||Q.iI||Q.Vc)){var k=this.items,l=Q;Object.isFrozen&&!Object.isFrozen(Q)&&(l=Object.create(Q),Object.freeze(l));k[T]=l;this.publish("vast_info_card_add",T)}}; XK.prototype.remove=function(T){var Q=this.get(T);delete this.items[T];return Q}; XK.prototype.get=function(T){return this.items[T]||null}; XK.prototype.isEmpty=function(){return g.Rs(this.items)};wx.prototype.encrypt=function(T){this.T.exports.AES128CTRCipher_encrypt(this.cipher,T.byteOffset,T.byteLength);return T}; wx.prototype.wd=function(){return this.cipher===0}; wx.prototype.dispose=function(){this.T.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};Nx.prototype.zW=function(T,Q){Q=Q===void 0?1:Q;this.kf+=Q;this.S+=T;T/=Q;for(var k=0;k0)l+="."+dx[v].toFixed(0)+"_"+k.T[v].toFixed(0);else break;k=l}k&&(T[Q]=k)}this.T=new L15;return T}; g.h.toString=function(){return""};g.h=RGf.prototype;g.h.isActive=function(){return!1}; g.h.R7=function(){}; g.h.Ya=function(){}; g.h.AS=function(){}; g.h.Mg=function(T,Q){Q()}; g.h.vR=function(){return{}}; g.h.toString=function(){return""};var O8e=new RGf,puJ=!!+JI("html5_enable_profiler"),W3m=!!+JI("html5_onesie_enable_profiler"),v$=puJ||W3m?new gJH:O8e,kGg=puJ?v$:O8e,bc=W3m?v$:O8e;hGt.prototype.emscripten_notify_memory_growth=function(){};g.h=AS.prototype;g.h.malloc=function(T){return this.exports.malloc(T)}; g.h.free=function(T){this.exports.free(T)}; g.h.realloc=function(T,Q){return this.exports.realloc(T,Q)}; g.h.RH=function(T){if(T.buffer!==this.exports.memory.buffer){var Q=this.malloc(T.byteLength);Q=new Uint8Array(this.exports.memory.buffer,Q,T.byteLength);Q.set(T);return Q}}; g.h.AL=function(T){if(T.buffer===this.exports.memory.buffer){var Q=T.slice();this.free(T.byteOffset);return Q}}; var Zw5=new function(){this.L=this.Y="WebAssembly"in window},rx="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); bc.R7(AS,{RH:function(T){return{profile:"copyj2w",kf:T===void 0?0:Math.ceil(T.byteLength/16)}}, AL:function(T){return{profile:"copyw2j",kf:T===void 0?0:Math.ceil(T.byteLength/16)}}});cL.prototype.encrypt=function(T,Q){try{return this.T.AL(BMT(this,T,Q))}catch(k){g.rB(Error("ocwce: wasm encrypt failed: "+k))}}; cL.prototype.wd=function(){return this.L}; cL.prototype.dispose=function(){this.wd()||(g.od(this.S),this.T.free(this.Y.byteOffset),this.L=!0)};g.S(zGT,g.x);g.S(wEu,g.x);var an;uc.prototype.add=function(T){if(this.pos+20>this.data.length){var Q=new Uint8Array(this.data.length*2);Q.set(this.data);this.data=Q}for(;T>31;)this.data[this.pos++]=an[(T&31)+32],T>>=5;this.data[this.pos++]=an[T|0]}; uc.prototype.xo=function(){return g.GU(this.data.subarray(0,this.pos))}; uc.prototype.reset=function(){this.pos=0};Kc.prototype.Q1=function(T,Q){var k=Math.pow(this.alpha,T);this.T=Q*(1-k)+k*this.T;this.S+=T}; Kc.prototype.hx=function(){return this.T/(1-Math.pow(this.alpha,this.S))};xm.prototype.Q1=function(T,Q){for(var k=0;k<10;k++){var l=this.T[k],v=l+(k===0?T:0),L=1*Math.pow(2,k);if(v<=L)break;l=Math.min(1,(v-L*.5)/l);for(v=0;v<16;v++)L=this.values[k*16+v]*l,this.values[(k+1)*16+v]+=L,this.T[k+1]+=L,this.values[k*16+v]-=L,this.T[k]-=L}l=k=0;v=8192;Q>8192&&(k=Math.ceil(Math.log(Q/8192)/Math.log(2)),l=8192*Math.pow(2,k-1),v=l*2);k+2>16?this.values[15]+=T:(Q=(Q-l)/(v-l),this.values[k]+=T*(1-Q),this.values[k+1]+=T*Q);this.T[0]+=T}; xm.prototype.hx=function(){var T=T===void 0?this.S:T;var Q=Q===void 0?.02:Q;var k=k===void 0?.98:k;for(var l=this.L,v=0;v<16;v++)l[v]=this.values[v];v=this.T[0];for(var L=1;L<11;L++){var q=this.T[L];if(q===0)break;for(var Y=Math.min(1,(T-v)/q),U=0;U<16;U++)l[U]+=this.values[L*16+U]*Y;v+=q*Y;if(Y<1)break}for(L=T=q=0;L<16;L++){Y=q+l[L]/v;T+=Math.max(0,Math.min(Y,k)-Math.max(q,Q))*(L>0?8192*Math.pow(2,L-1):0);if(Y>k)break;q=Y}return T/(k-Q)};PL.prototype.Q1=function(T,Q){T=Math.min(this.T,Math.max(1,Math.round(T*this.resolution)));T+this.S>=this.T&&(this.L=!0);for(;T--;)this.values[this.S]=Q,this.S=(this.S+1)%this.T;this.RY=!0}; PL.prototype.percentile=function(T){var Q=this;if(!this.L&&this.S===0)return 0;this.RY&&(g.JT(this.N,function(k,l){return Q.values[k]-Q.values[l]}),this.RY=!1); return this.values[this.N[Math.round(T*((this.L?this.T:this.S)-1))]]||0}; PL.prototype.hx=function(){return this.B?(this.percentile(this.Y-this.B)+this.percentile(this.Y)+this.percentile(this.Y+this.B))/3:this.percentile(this.Y)};g.S(HL,g.x);HL.prototype.p_=function(){var T;(T=this.sK)==null||T.start();if(FK(this)&&this.policy.j){var Q;(Q=this.nA)==null||Q.RQ()}};cQg.prototype.V=function(T){return this.experiments.Wd(T)};g.S(aYy,g.x);var Hw5="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(" "),eGy={q$m:"caoe",g_B:"capsv",Nem:"cbrand",VZj:"cbr",e9_:"cbrver",Ib_:"cchip",tZH:"ccappver",WoB:"ccrv",P8K:"cfrmver",U1O:"c",NC_:"cver",BCV:"ctheme",R1d:"cplayer",RUj:"cmodel",Qz:"cnetwork",uUO:"cos",OS_VERSION:"cosver",MOO:"cplatform",BA6:"crqyear"};g.S(fn,g.x);g.h=fn.prototype;g.h.V=function(T){return this.experiments.Wd(T)}; g.h.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.h.getVideoUrl=function(T,Q,k,l,v,L,q){Q={list:Q};k&&(v?Q.time_continue=k:Q.t=k);k=q?"music.youtube.com":g.mq(this);v=k==="www.youtube.com";!L&&l&&v?L="https://youtu.be/"+T:g.q0(this)?(L="https://"+k+"/fire",Q.v=T):(L&&v?(L=this.protocol+"://"+k+"/shorts/"+T,l&&(Q.feature="share")):(L=this.protocol+"://"+k+"/watch",Q.v=T),We&&(T=OL5())&&(Q.ebc=T));return g.sD(L,Q)}; g.h.getVideoEmbedCode=function(T,Q,k,l){Q="https://"+g.mq(this)+"/embed/"+Q;l&&(Q=g.sD(Q,{list:l}));l=k.width;k=k.height;Q=ra(Q);T=ra(T!=null?T:"YouTube video player");return'')}; g.h.supportsGaplessAudio=function(){return g.hW&&!We&&PD()>=74||g.Rn&&g.HX(68)?!0:!1}; g.h.supportsGaplessShorts=function(){return!this.V("html5_enable_short_gapless")||this.Jj||g.mp?!1:!0}; g.h.getPlayerType=function(){return this.T.cplayer}; g.h.J3=function(){return this.uK}; var iwX=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],JQH=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],EJu=[19];var L0={},jB5=(L0["140"]={numChannels:2},L0["141"]={numChannels:2},L0["251"]={audioSampleRate:48E3,numChannels:2},L0["774"]={audioSampleRate:48E3,numChannels:2},L0["380"]={numChannels:6},L0["328"]={numChannels:6},L0["773"]={},L0),qe={},TOt=(qe["1"]='video/mp4; codecs="av01.0.08M.08"',qe["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',qe["1e"]='video/mp4; codecs="av01.0.08M.08"',qe["9"]='video/webm; codecs="vp9"',qe["("]='video/webm; codecs="vp9"',qe["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', qe.h='video/mp4; codecs="avc1.64001e"',qe.H='video/mp4; codecs="avc1.64001e"',qe.o='audio/webm; codecs="opus"',qe.a='audio/mp4; codecs="mp4a.40.2"',qe.ah='audio/mp4; codecs="mp4a.40.2"',qe.mac3='audio/mp4; codecs="ac-3"; channels=6',qe.meac3='audio/mp4; codecs="ec-3"; channels=6',qe.i='audio/mp4; codecs="iamf.001.001.Opus"',qe),gF={},QB6=(gF["337"]={width:3840,height:2160,bitrate:3E7,fps:30},gF["336"]={width:2560,height:1440,bitrate:15E6,fps:30},gF["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, gF["702"]={width:7680,height:4320,bitrate:4E7,fps:60},gF["701"]={width:3840,height:2160,bitrate:2E7,fps:60},gF["700"]={width:2560,height:1440,bitrate:1E7,fps:60},gF["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},gF["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},gF["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},gF["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, gF["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},gF["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},gF["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},gF["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},gF["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},gF["315"]={width:3840,height:2160,bitrate:2E7,fps:60},gF["308"]={width:2560, height:1440,bitrate:1E7,fps:60},gF["303"]={width:1920,height:1080,bitrate:5E6,fps:60},gF["302"]={width:1280,height:720,bitrate:25E5,fps:60},gF["299"]={width:1920,height:1080,bitrate:75E5,fps:60},gF["298"]={width:1280,height:720,bitrate:35E5,fps:60},gF["571"]={width:7680,height:4320,bitrate:3E7,fps:60},gF["401"]={width:3840,height:2160,bitrate:15E6,fps:60},gF["400"]={width:2560,height:1440,bitrate:75E5,fps:60},gF["399"]={width:1920,height:1080,bitrate:2E6,fps:60},gF["398"]={width:1280,height:720,bitrate:1E6, fps:60},gF["397"]={width:854,height:480,bitrate:4E5,fps:30},gF["396"]={width:640,height:360,bitrate:25E4,fps:30},gF["787"]={width:1080,height:608,bitrate:2E5,fps:30},gF["788"]={width:1080,height:608,bitrate:4E5,fps:30},gF["572"]={width:7680,height:4320,bitrate:3E7,fps:60},gF["555"]={width:3840,height:2160,bitrate:15E6,fps:60},gF["554"]={width:2560,height:1440,bitrate:75E5,fps:60},gF["553"]={width:1920,height:1080,bitrate:2E6,fps:60},gF["552"]={width:1280,height:720,bitrate:1E6,fps:60},gF["551"]={width:854, height:480,bitrate:4E5,fps:30},gF["550"]={width:640,height:360,bitrate:25E4,fps:30},gF["313"]={width:3840,height:2160,bitrate:8E6,fps:30},gF["271"]={width:2560,height:1440,bitrate:4E6,fps:30},gF["248"]={width:1920,height:1080,bitrate:2E6,fps:30},gF["247"]={width:1280,height:720,bitrate:15E5,fps:30},gF["244"]={width:854,height:480,bitrate:52E4,fps:30},gF["243"]={width:640,height:360,bitrate:28E4,fps:30},gF["137"]={width:1920,height:1080,bitrate:4E6,fps:30},gF["136"]={width:1280,height:720,bitrate:3E6, fps:30},gF["135"]={width:854,height:480,bitrate:1E6,fps:30},gF["385"]={width:1920,height:1080,bitrate:6503313,fps:60},gF["376"]={width:1280,height:720,bitrate:5706960,fps:60},gF["384"]={width:1280,height:720,bitrate:3660979,fps:60},gF["225"]={width:1280,height:720,bitrate:5805E3,fps:30},gF["224"]={width:1280,height:720,bitrate:453E4,fps:30},gF["145"]={width:1280,height:720,bitrate:2682052,fps:30},gF);g.h=au.prototype;g.h.getInfo=function(){return this.T}; g.h.Ge=function(){return null}; g.h.T1=function(){var T=this.Ge();return T?(T=g.k5(T.Xs),Number(T.expire)):NaN}; g.h.Cq=function(){}; g.h.getHeight=function(){return this.T.video.height};vK5.prototype.build=function(){gK5(this);var T=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],Q={};a:if(this.T)var k=this.T;else{k="";for(var l=g.B(this.L),v=l.next();!v.done;v=l.next())if(v=v.value,v.MY){if(v.MY.getIsDefault()){k=v.MY.getId();break a}k||(k=v.MY.getId())}}l=g.B(this.L);for(v=l.next();!v.done;v=l.next())if(v=v.value,this.B||!v.MY||v.MY.getId()===k)Q[v.itag]||(Q[v.itag]=[]),Q[v.itag].push(v);k=g.B(this.S);for(l=k.next();!l.done;l=k.next())if(l=l.value,v=Q[l.T]){v=g.B(v);for(var L=v.next();!L.done;L= v.next()){var q=T,Y=q.push;L=L.value;var U="#EXT-X-MEDIA:TYPE=AUDIO,",R="YES",Z="audio";if(L.MY){Z=L.MY;var f=Z.getId().split(".")[0];f&&(U+='LANGUAGE="'+f+'",');(this.T?this.T===Z.getId():Z.getIsDefault())||(R="NO");Z=Z.getName()}f="";l!==null&&(f=l.itag.toString());f=nn(this,L.url,f);U=U+('NAME="'+Z+'",DEFAULT='+(R+',AUTOSELECT=YES,GROUP-ID="'))+(qR6(L,l)+'",URI="'+(f+'"'));Y.call(q,U)}}k=g.B(this.N);for(l=k.next();!l.done;l=k.next())l=l.value,v=$_e,l=(q=l.MY)?'#EXT-X-MEDIA:URI="'+nn(this,l.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+v+'",LANGUAGE="'+q.getId()+'",NAME="'+q.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,l&&T.push(l);k=this.N.length>0?$_e:void 0;l=g.B(this.S);for(v=l.next();!v.done;v=l.next())v=v.value,Y=Q[v.T],q=void 0,((q=Y)==null?void 0:q.length)>0&&(q=v,Y=Y[0],Y="#EXT-X-STREAM-INF:BANDWIDTH="+(q.bitrate+Y.bitrate)+',CODECS="'+(q.codecs+","+Y.codecs+'",RESOLUTION=')+(q.width+"x"+q.height+',AUDIO="')+(qR6(Y,q)+'",')+(k?'SUBTITLES="'+k+'",':"")+"CLOSED-CAPTIONS=NONE",q.fps>1&&(Y+= ",FRAME-RATE="+q.fps),q.qo&&(Y+=",VIDEO-RANGE="+q.qo),T.push(Y),T.push(nn(this,v.url,"")));return T.join("\n")}; var $_e="text";g.S(Kn,au);Kn.prototype.T1=function(){return this.expiration}; Kn.prototype.Ge=function(){if(!this.Xs||this.Xs.wd()){var T=this.S.build();T="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(T);this.Xs=new Ld(T)}return this.Xs};g.S(xL,au);xL.prototype.Ge=function(){return new Ld(this.S.IK())}; xL.prototype.Cq=function(){this.S=id(this.S)};g.S(PB,au);PB.prototype.Ge=function(){return new Ld(this.S)};var Me={},hrb=(Me.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Me.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Me.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",Me.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",Me);g.h=g.HB.prototype;g.h.getId=function(){return this.id}; g.h.getName=function(){return this.name}; g.h.isServable=function(){return this.T}; g.h.IK=function(){return this.url}; g.h.getXtags=function(){return this.xtags}; g.h.toString=function(){return this.languageCode+": "+g.t9(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.h.equals=function(T){return T?this.toString()===T.toString():!1}; g.h.Hk=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var XO5={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},wOT={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},dAg=/^(\d*)_((\d*)_?(\d*))$/;var Aku={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},b7J={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var YG={},JmW=(YG.ALWAYS=1,YG.BY_REQUEST=3,YG.UNKNOWN=void 0,YG),UO={},e$W=(UO.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",UO.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",UO.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",UO.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",UO);var tz5; tz5=function(T){for(var Q=Object.keys(T),k={},l=0;ll-Q?-1:T}; g.h.MU=function(){return this.S.a_()}; g.h.Bq=function(){return this.S.p7()}; g.h.XN=function(T){this.S=T};g.S(ft,R8);ft.prototype.S=function(T,Q){return R8.prototype.S.call(this,"$N|"+T,Q)}; ft.prototype.N=function(T,Q,k){return new Zd(T,Q,k,this.isLive)};g.S(g.mR,g.ox);g.h=g.mR.prototype; g.h.setData=function(T){T=T||{};var Q=T.errordetail;Q!=null&&(this.errorDetail=Q);var k=T.errorcode;k!=null?this.errorCode=k:T.status==="fail"&&(this.errorCode="auth");var l=T.reason;l!=null&&(this.errorReason=l);var v=T.subreason;v!=null&&(this.by=v);this.clientPlaybackNonce||(this.clientPlaybackNonce=T.cpn||(this.FB.J3()?"r"+g.hu(15):g.hu(16)));this.zg=jG(this.FB.zg,T.livemonitor);LZ5(this,T);var L=T.raw_player_response;if(L)this.ES=L;else{var q=T.player_response;q&&(L=JSON.parse(q))}L&&(this.playerResponse= L);if(this.playerResponse){var Y=this.playerResponse.annotations;if(Y)for(var U=g.B(Y),R=U.next();!R.done;R=U.next()){var Z=R.value.playerAnnotationsUrlsRenderer;if(Z){Z.adsOnly&&(this.QV=!0);var f=Z.loadPolicy;f&&(this.annotationsLoadPolicy=JmW[f]);var G=Z.invideoUrl;G&&(this.sK=pF(G));break}}var m=this.playerResponse.attestation;m&&ckC(this,m);var I=this.playerResponse.cotn;I&&(this.cotn=I);var z=this.playerResponse.heartbeatParams;if(z){this.hC=!0;var w=z.heartbeatToken;w&&(this.drmSessionId=z.drmSessionId|| "",this.heartbeatToken=w,this.p5=Number(z.intervalMilliseconds),this.BC=Number(z.maxRetries),this.ew=!!z.softFailOnError,this.hF=!!z.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=z.heartbeatServerData;var r;this.xE=!((r=z.heartbeatAttestationConfig)==null||!r.requiresAttestation)}var A=this.playerResponse.messages;A&&nKJ(this,A);var D=this.playerResponse.overlay;if(D){var K=D.playerControlsOverlayRenderer;if(K)if(xA5(this,K.controlBgHtml),K.mutedAutoplay){var O=g.t(K.mutedAutoplay,v19);if(O&& O.endScreen){var E=g.t(O.endScreen,Lme);E&&E.text&&(this.Mf=g.Rx(E.text))}}else this.mutedAutoplay=!1}var e=this.playerResponse.playabilityStatus;if(e){var vT=e.backgroundability;vT&&vT.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var f5,qJ;if((f5=e.offlineability)==null?0:(qJ=f5.offlineabilityRenderer)==null?0:qJ.offlineable)this.offlineable=!0;var g6=e.contextParams;g6&&(this.contextParams=g6);var QC=e.pictureInPicture;QC&&QC.pictureInPictureRenderer.playableInPip&&(this.pipable= !0);e.playableInEmbed&&(this.allowEmbed=!0);var A5=e.ypcClickwrap;if(A5){var Et=A5.playerLegacyDesktopYpcClickwrapRenderer,QJ=A5.ypcRentalActivationRenderer;if(Et)this.wJ=Et.durationMessage||"",this.m0=!0;else if(QJ){var I_=QJ.durationMessage;this.wJ=I_?g.Rx(I_):"";this.m0=!0}}var g$$=e.errorScreen;if(g$$){if(g$$.playerLegacyDesktopYpcTrailerRenderer){var cT=g$$.playerLegacyDesktopYpcTrailerRenderer;this.Hf=cT.trailerVideoId||"";var vg=g$$.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var KW=vg&& vg.ypcTrailerRenderer}else if(g$$.playerLegacyDesktopYpcOfferRenderer)cT=g$$.playerLegacyDesktopYpcOfferRenderer;else if(g$$.ypcTrailerRenderer){KW=g$$.ypcTrailerRenderer;var Wm=KW.fullVideoMessage;this.xs=Wm?g.Rx(Wm):"";var LJ,b;this.Hf=((LJ=g.t(KW,q$E))==null?void 0:(b=LJ.videoDetails)==null?void 0:b.videoId)||""}cT&&(this.XQ=cT.itemTitle||"",cT.itemUrl&&(this.jy=cT.itemUrl),cT.itemBuyUrl&&(this.CR=cT.itemBuyUrl),this.A7=cT.itemThumbnail||"",this.IT=cT.offerHeadline||"",this.R0=cT.offerDescription|| "",this.eO=cT.offerId||"",this.bx=cT.offerButtonText||"",this.Mo=cT.offerButtonFormattedText||null,this.bX=cT.overlayDurationMsec||NaN,this.xs=cT.fullVideoMessage||"",this.E4=!0);if(KW){var Hg=g.t(KW,q$E);if(Hg)this.s1={raw_player_response:Hg};else{var D1=g.t(KW,IME);this.s1=D1?QI(D1):null}this.E4=!0}}}var kb=this.playerResponse.playbackTracking;if(kb){var w$=T,X=J9(kb.googleRemarketingUrl);X&&(this.googleRemarketingUrl=X);var jf=J9(kb.youtubeRemarketingUrl);jf&&(this.youtubeRemarketingUrl=jf);var cg= {},qn=J9(kb.ptrackingUrl);if(qn){var tT=eF(qn),ef=tT.oid;ef&&(this.zX=ef);var kE=tT.pltype;kE&&(this.qx=kE);var Qw=tT.ptchn;Qw&&(this.y_=Qw);var tV=tT.ptk;tV&&(this.f5=encodeURIComponent(tV));var d=tT.m;d&&(this.K5=d)}var C=J9(kb.qoeUrl);if(C){for(var N=g.k5(C),u=g.B(Object.keys(N)),H=u.next();!H.done;H=u.next()){var Ut=H.value,W=N[Ut];N[Ut]=Array.isArray(W)?W.join(","):W}this.V9=N;var V=N.cat;V&&(this.V("html5_enable_qoe_cat_list")?this.VF=this.VF.concat(V.split(",")):this.Dz=V);var n=N.live;n&& (this.cQ=n);var uy=N.drm_product;uy&&(this.drmProduct=uy)}var p5=J9(kb.videostatsPlaybackUrl);if(p5){var L5=eF(p5),UA=L5.adformat;if(UA){w$.adformat=UA;var DH=this.G(),w6=NOb(UA,this.qU,DH.Y,DH.j);w6&&(this.adFormat=w6)}var k1=L5.aqi;k1&&(w$.ad_query_id=k1);var Xd=L5.autoplay;Xd&&(this.dO=Xd=="1",this.nU=Xd=="1");var xE=L5.autonav;xE&&(this.isAutonav=xE=="1");var NJ=L5.delay;NJ&&(this.QR=aT(NJ));var z8=L5.ei;z8&&(this.eventId=z8);var r6=DE(L5.adcontext);if(r6)try{var a_=LI_(r6);a_&&(this.i_=a_)}catch(T3d){g.rB(Error("Malformed adContext"))}if(r6|| UA)this.dO=!0;var d$=L5.feature;d$&&(this.wV=d$);var qM=L5.list;qM&&(this.playlistId=qM);var Np=L5.of;Np&&(this.XF=Np);var jY=L5.osid;jY&&(this.osid=jY);var lB=L5.referrer;lB&&(this.referrer=lB);var $E=L5.sdetail;$E&&(this.rZ=$E);var uW=L5.ssrt;uW&&(this.Ap=uW=="1");var Ai=L5.subscribed;Ai&&(this.subscribed=Ai=="1");var yP=L5.uga;yP&&(this.userGenderAge=yP);var Ic=L5.upt;Ic&&(this.LH=Ic);var HG=L5.vm;HG&&(this.videoMetadata=HG);cg.playback=L5}var kA=J9(kb.videostatsWatchtimeUrl);if(kA){var lV=eF(kA), q_=lV.ald;q_&&(this.SP=q_);cg.watchtime=lV}var X3=J9(kb.atrUrl);if(X3){var n3=eF(X3);cg.atr=n3}var iS=J9(kb.engageUrl);if(iS){var K3=eF(iS);cg.engage=K3}this.Rx=cg;if(kb.promotedPlaybackTracking){var l5=kb.promotedPlaybackTracking;l5.startUrls&&(this.aS=l5.startUrls);l5.firstQuartileUrls&&(this.O3=l5.firstQuartileUrls);l5.secondQuartileUrls&&(this.vP=l5.secondQuartileUrls);l5.thirdQuartileUrls&&(this.c9=l5.thirdQuartileUrls);l5.completeUrls&&(this.WP=l5.completeUrls);l5.engagedViewUrls&&(l5.engagedViewUrls.length> 1&&g.rB(new g.Wy("There are more than one engaged_view_urls.")),this.E6=l5.engagedViewUrls[0])}}var hP=this.playerResponse.playerCueRanges;hP&&hP.length>0&&(this.cueRanges=hP);var tP=this.playerResponse.playerCueRangeSet;tP&&g.S7(this,tP);a:{var BS=this.playerResponse.adPlacements;if(BS)for(var oy=g.B(BS),zd=oy.next();!zd.done;zd=oy.next()){var vW=void 0,L3=void 0,qW=(vW=zd.value.adPlacementRenderer)==null?void 0:(L3=vW.renderer)==null?void 0:L3.videoAdTrackingRenderer;if(qW){var gg=qW;break a}}gg= null}var XV=gg;kb&&kb.promotedPlaybackTracking&&XV&&g.rB(new g.Wy("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var gJ;if(!(gJ=XV))a:{for(var MW=g.B(this.playerResponse.adSlots||[]),mh=MW.next();!mh.done;mh=MW.next()){var Id=g.t(mh.value,oA);if(Id===void 0||!KBu(Id))break;var Dt=void 0,PW=(Dt=Id.fulfillmentContent)==null?void 0:Dt.fulfilledLayout,HW=g.t(PW,ER);if(HW&&$K(HW)){gJ=!0;break a}}gJ=!1}gJ&&(this.f9=!0);var t7=this.playerResponse.playerAds;if(t7)for(var v4= T,aj=g.B(t7),Sl=aj.next();!Sl.done;Sl=aj.next()){var up=Sl.value;if(up){var LL=up.playerLegacyDesktopWatchAdsRenderer;if(LL){var O6=LL.playerAdParams;if(O6){O6.autoplay=="1"&&(this.nU=this.dO=!0);this.Ek=O6.encodedAdSafetyReason||null;O6.showContentThumbnail!==void 0&&(this.i5=!!O6.showContentThumbnail);v4.enabled_engage_types=O6.enabledEngageTypes;break}}}}var wK=this.playerResponse.playerConfig;if(wK){var wL=wK.manifestlessWindowedLiveConfig;if(wL){var O4=Number(wL.minDvrSequence),qF=Number(wL.maxDvrSequence), ho=Number(wL.minDvrMediaTimeMs),MF=Number(wL.maxDvrMediaTimeMs),nH=Number(wL.startWalltimeMs);O4&&(this.sW=O4);ho&&(this.xm=ho/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&cv(this)&&(this.Jp=ho/1E3));qF&&(this.Kz=qF);MF&&(this.d5=MF/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&cv(this)&&(this.mK=MF/1E3));nH&&(this.Ig=nH/1E3);(O4||ho)&&(qF||MF)&&(this.allowLiveDvr=this.isLivePlayback=this.hj=!0,this.KY=!1)}var sB=wK.daiConfig;if(sB){if(sB.enableDai){this.Xj= !0;var Lj=sB.enableServerStitchedDai;Lj&&(this.enableServerStitchedDai=Lj);var O_=sB.enablePreroll;O_&&(this.IS=O_)}var gs;if(sB.daiType==="DAI_TYPE_SS_DISABLED"||((gs=sB.debugInfo)==null?0:gs.isDisabledUnpluggedChannel))this.hd=!0;sB.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.Et=!0);sB.allowUstreamerRequestAdconfig&&(this.h8=!0)}var UJ=wK.audioConfig;if(UJ){var pe=UJ.loudnessDb;pe!=null&&(this.uK=pe);var RL5=UJ.trackAbsoluteLoudnessLkfs;RL5!=null&&(this.Pp=RL5);var ZAg=UJ.loudnessTargetLkfs;ZAg!= null&&(this.loudnessTargetLkfs=ZAg);UJ.audioMuted&&(this.kh=!0);UJ.muteOnStart&&(this.Rq=!0);var mE=UJ.loudnessNormalizationConfig;if(mE){mE.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);mE.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=!0);var fRb=mE.minimumLoudnessTargetLkfs;fRb!=null&&(this.minimumLoudnessTargetLkfs=fRb);var GQ5=mE.maxStatefulTimeThresholdSec;GQ5!=null&&(this.maxStatefulTimeThresholdSec=GQ5)}UJ.playAudioOnly&&(this.OW=!0)}var wuy=wK.playbackEndConfig; if(wuy){var mz5=wuy.endSeconds,IRH=wuy.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(mz5&&(this.endSeconds=mz5),IRH&&(this.limitedPlaybackDurationInSeconds=IRH))}var sN=wK.fairPlayConfig;if(sN){var hLT=sN.certificate;hLT&&(this.Jj=DE(hLT));var sRf=Number(sN.keyRotationPeriodMs);sRf>0&&(this.Ps=sRf);var SQu=Number(sN.keyPrefetchMarginMs);SQu>0&&(this.Gt=SQu)}var r5=wK.playbackStartConfig;if(r5){this.BH=Number(r5.startSeconds);var CfH=r5.liveUtcStartSeconds,Bhg=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds> 0;CfH&&!Bhg&&(this.liveUtcStartSeconds=Number(CfH));var d_u=r5.startPosition;if(d_u){var zLT=d_u.utcTimeMillis;zLT&&!Bhg&&(this.liveUtcStartSeconds=Number(zLT)*.001);var XRX=d_u.streamTimeMillis;XRX&&(this.gt=Number(XRX)*.001)}this.progressBarStartPosition=r5.progressBarStartPosition;this.progressBarEndPosition=r5.progressBarEndPosition}else{var NJ5=wK.skippableSegmentsConfig;if(NJ5){var wRu=NJ5.introSkipDurationMs;wRu&&(this.xz=Number(wRu)/1E3);var dz5=NJ5.outroSkipDurationMs;dz5&&(this.PQ=Number(dz5)/ 1E3)}}var Am5=wK.skippableIntroConfig;if(Am5){var NhH=Number(Am5.startMs),ANI=Number(Am5.endMs);isNaN(NhH)||isNaN(ANI)||(this.VD=NhH,this.nG=ANI)}var bAI=wK.streamSelectionConfig;bAI&&(this.Fk=Number(bAI.maxBitrate));var rNy=wK.vrConfig;rNy&&(this.B$=rNy.partialSpherical=="1");var IB=wK.webDrmConfig;if(IB){IB.skipWidevine&&(this.Er=!0);var cN5=IB.widevineServiceCert;cN5&&(this.RM=DE(cN5));IB.useCobaltWidevine&&(this.useCobaltWidevine=!0);IB.startWithNoQualityConstraint&&(this.NV=!0)}var W0=wK.mediaCommonConfig; if(W0){var S3=W0.dynamicReadaheadConfig;if(S3){this.maxReadAheadMediaTimeMs=S3.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=S3.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=S3.readAheadGrowthRateMs||NaN;var DzH,aRX=W0==null?void 0:(DzH=W0.mediaUstreamerRequestConfig)==null?void 0:DzH.videoPlaybackUstreamerConfig;aRX&&(this.vl=DE(aRX));var b85=W0==null?void 0:W0.sabrContextUpdates;if(b85&&b85.length>0)for(var ueI=g.B(b85),rmu=ueI.next();!rmu.done;rmu=ueI.next()){var Qz=rmu.value; if(Qz.type&&Qz.value){var sU9={type:Qz.type,scope:Qz.scope,value:DE(Qz.value)||void 0,sendByDefault:Qz.sendByDefault};this.sabrContextUpdates.set(Qz.type,sU9)}}}var nHy=W0.serverPlaybackStartConfig;nHy&&(this.serverPlaybackStartConfig=nHy);W0.useServerDrivenAbr&&(this.cg=!0);var KWf=W0.requestPipeliningConfig;KWf&&(this.requestPipeliningConfig=KWf)}var xz6=wK.inlinePlaybackConfig;xz6&&(this.L9=!!xz6.showAudioControls);var C$=wK.embeddedPlayerConfig;if(C$){this.embeddedPlayerConfig=C$;var cm5=C$.embeddedPlayerMode; if(cm5){var Pfb=this.G();Pfb.xm=cm5;Pfb.L=cm5==="EMBEDDED_PLAYER_MODE_PFL"}var HA5=C$.permissions;HA5&&(this.allowImaMonetization=!!HA5.allowImaMonetization)}var B6=wK.webPlayerConfig;B6&&(B6.gatewayExperimentGroup&&(this.gatewayExperimentGroup=B6.gatewayExperimentGroup),B6.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var $Q=this.playerResponse.streamingData;if($Q){var D_t=$Q.formats;if(D_t){for(var hk=[],tc5=g.B(D_t),a96=tc5.next();!a96.done;a96=tc5.next()){var u16=a96.value;hk.push(u16.itag+ "/"+u16.width+"x"+u16.height)}this.Sg=hk.join(",");hk=[];for(var OAC=g.B(D_t),njH=OAC.next();!njH.done;njH=OAC.next()){var sR=njH.value,Sg={itag:sR.itag,type:sR.mimeType,quality:sR.quality},pR5=sR.url;pR5&&(Sg.url=pR5);var zD=Vp(sR),SG1=zD.rI,CCe=zD.Fq,BVA=zD.s;zD.vO&&(Sg.url=SG1,Sg.sp=CCe,Sg.s=BVA);hk.push(g.h3(Sg))}this.Wk=hk.join(",")}var K3f=$Q.hlsFormats;if(K3f){var WW6=wK||null,XJ={};if(WW6){var x_I=WW6.audioPairingConfig;if(x_I&&x_I.pairs)for(var $zb=g.B(x_I.pairs),PSb=$zb.next();!PSb.done;PSb= $zb.next()){var JNy=PSb.value,H86=JNy.videoItag;XJ[H86]||(XJ[H86]=[]);XJ[H86].push(JNy.audioItag)}}for(var eLg={},FWT=g.B(K3f),tCg=FWT.next();!tCg.done;tCg=FWT.next()){var EHg=tCg.value;eLg[EHg.itag]=EHg.bitrate}for(var yNf=[],iAt=g.B(K3f),O8u=iAt.next();!O8u.done;O8u=iAt.next()){var eY=O8u.value,X_={itag:eY.itag,type:eY.mimeType,url:eY.url,bitrate:eY.bitrate,width:eY.width,height:eY.height,fps:eY.fps},wo=eY.audioTrack;if(wo){var VcH=wo.displayName;VcH&&(X_.name=VcH,X_.audio_track_id=wo.id,wo.audioIsDefault&& (X_.is_default="1"))}if(eY.drmFamilies){for(var TQu=[],QzH=g.B(eY.drmFamilies),puC=QzH.next();!puC.done;puC=QzH.next())TQu.push(tq[puC.value]);X_.drm_families=TQu.join(",")}var N7=XJ[eY.itag];if(N7&&N7.length){X_.audio_itag=N7.join(",");var jzT=eLg[N7[0]];jzT&&(X_.bitrate+=jzT)}var k_5=MtH(eY);k_5&&(X_.eotf=k_5);eY.audioChannels&&(X_.audio_channels=eY.audioChannels);yNf.push(g.h3(X_))}this.hlsFormats=yNf.join(",")}var W3T=$Q.licenseInfos;if(W3T&&W3T.length>0){for(var lmf={},oR5=g.B(W3T),$_u=oR5.next();!$_u.done;$_u= oR5.next()){var vRt=$_u.value,LGH=vRt.drmFamily,qxg=vRt.url;LGH&&qxg&&(lmf[tq[LGH]]=qxg)}this.jY=lmf}var gR5=$Q.drmParams;gR5&&(this.drmParams=gR5);var MJJ=$Q.dashManifestUrl;MJJ&&(this.DP=g.sD(MJJ,{cpn:this.clientPlaybackNonce}));var Yx6=$Q.hlsManifestUrl;Yx6&&(this.hlsvp=Yx6);var Umy=$Q.probeUrl;Umy&&(this.probeUrl=pF(g.sD(Umy,{cpn:this.clientPlaybackNonce})));var R6y=$Q.serverAbrStreamingUrl;R6y&&(this.Sf=new g.J_(R6y,!0))}var ZrX=this.playerResponse.trackingParams;ZrX&&(this.Bd=ZrX);var Cl=this.playerResponse.videoDetails; if(Cl){var wc=T,Jmy=Cl.videoId;Jmy&&(this.videoId=Jmy,wc.video_id||(wc.video_id=Jmy));var e$y=Cl.title;e$y&&(this.title=e$y,wc.title||(wc.title=e$y));var F35=Cl.lengthSeconds;F35&&(this.lengthSeconds=Number(F35),wc.length_seconds||(wc.length_seconds=F35));var fmy=Cl.keywords;fmy&&(this.keywords=YgC(fmy));var EjT=Cl.channelId;EjT&&(this.hH=EjT,wc.ucid||(wc.ucid=EjT));var G_6=Cl.viewCount;G_6&&(this.rawViewCount=Number(G_6));var ymJ=Cl.author;ymJ&&(this.author=ymJ,wc.author||(wc.author=ymJ));var mmf= Cl.shortDescription;mmf&&(this.shortDescription=mmf);var ImJ=Cl.isCrawlable;ImJ&&(this.isListed=ImJ);var h6y=Cl.musicVideoType;h6y&&(this.musicVideoType=h6y);var i8f=Cl.isLive;i8f!=null&&(this.isLivePlayback=i8f);if(i8f||Cl.isUpcoming)this.isPremiere=!Cl.isLiveContent;var szX=Cl.thumbnail;szX&&(this.j=$L(szX));var SxJ=Cl.isExternallyHostedPodcast;SxJ&&(this.isExternallyHostedPodcast=SxJ);var VCb=Cl.viewerLivestreamJoinPosition;if(VCb==null?0:VCb.utcTimeMillis)this.Bt=aT(VCb.utcTimeMillis);var C$t= wK||null,T_I=T;Cl.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);Cl.isUpcoming&&(this.isUpcoming=!0);if(Cl.isPostLiveDvr){this.KY=!0;var BQt=Cl.latencyClass;BQt&&(this.latencyClass=e$W[BQt]||"UNKNOWN");Cl.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var Qc5=!1;this.zg?(this.allowLiveDvr=BL()?!0:EG&&jL<5?!1:!0,this.isLivePlayback=!0):Cl.isLive?(T_I.livestream="1",this.allowLiveDvr=Cl.isLiveDvrEnabled?BL()?!0:EG&&jL<5?!1:!0:!1,this.partnerId=27,Qc5=!0):Cl.isUpcoming&&(Qc5= !0);if(Cl.isLive||this.zg){Cl.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var z6t=Cl.latencyClass;z6t&&(this.latencyClass=e$W[z6t]||"UNKNOWN");var XJ5=Cl.liveChunkReadahead;XJ5&&(this.liveChunkReadahead=XJ5);var c3=C$t&&C$t.livePlayerConfig;if(c3){c3.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);c3.hasSubfragmentedWebm&&(this.nP=!0);c3.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var wJy=c3.liveExperimentalContentId;wJy&&(this.liveExperimentalContentId=Number(wJy)); var dmg=c3.isLiveHeadPlayable;this.V("html5_live_head_playable")&&dmg!=null&&(this.isLiveHeadPlayable=dmg)}}Qc5&&(this.isLivePlayback=!0,T_I.adformat&&T_I.adformat.split("_")[1]!=="8"||this.D.push("heartbeat"))}var NQ5=Cl.isPrivate;NQ5!==void 0&&(this.isPrivate=jG(this.isPrivate,NQ5))}if(e){var AUb=Cl||null,bru=!1,DC=e.errorScreen;bru=DC&&(DC.playerLegacyDesktopYpcOfferRenderer||DC.playerLegacyDesktopYpcTrailerRenderer||DC.ypcTrailerRenderer)?!0:AUb&&AUb.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE", "FULLSCREEN_ONLY"].includes(e.status);if(!bru){this.errorCode=sBy(e.errorCode)||"auth";var Af=DC&&DC.playerErrorMessageRenderer;if(Af){this.playerErrorMessageRenderer=Af;var rUy=Af.reason;rUy&&(this.errorReason=g.Rx(rUy));var jc5=Af.subreason;jc5&&(this.by=g.Rx(jc5),this.n5=jc5)}else this.errorReason=e.reason||null;var kSC=e.status;if(kSC==="LOGIN_REQUIRED")this.errorDetail="1";else if(kSC==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(kSC==="AGE_CHECK_REQUIRED"){var cU5=e.errorScreen,DmI= cU5&&cU5.playerKavRenderer;this.errorDetail=DmI&&DmI.kavUrl?"4":"3"}else this.errorDetail=e.isBlockedInRestrictedMode?"5":"0"}}var am6=this.playerResponse.interstitialPods;am6&&ujy(this,am6);this.sK&&this.eventId&&(this.sK=oU(this.sK,{ei:this.eventId}));var lOu=this.playerResponse.captions;if(lOu&&lOu.playerCaptionsTracklistRenderer)a:{var dc=lOu.playerCaptionsTracklistRenderer;this.captionTracks=[];if(dc.captionTracks)for(var uMT=g.B(dc.captionTracks),oyg=uMT.next();!oyg.done;oyg=uMT.next()){var NF= oyg.value,nR5=gN6(NF.baseUrl);if(!nR5)break a;var vyu={is_translateable:!!NF.isTranslatable,languageCode:NF.languageCode,languageName:NF.name&&g.Rx(NF.name),url:nR5,vss_id:NF.vssId,kind:NF.kind};vyu.name=NF.trackName;vyu.displayName=NF.name&&g.Rx(NF.name);this.captionTracks.push(new g.HB(vyu))}this.B9=dc.audioTracks||[];this.eF=dc.defaultAudioTrackIndex||0;this.RS=[];if(dc.translationLanguages)for(var KG5=g.B(dc.translationLanguages),LYb=KG5.next();!LYb.done;LYb=KG5.next()){var aV=LYb.value,jV={}; jV.languageCode=aV.languageCode;jV.languageName=g.Rx(aV.languageName);if(aV.translationSourceTrackIndices){jV.translationSourceTrackIndices=[];for(var xmb=g.B(aV.translationSourceTrackIndices),qvI=xmb.next();!qvI.done;qvI=xmb.next())jV.translationSourceTrackIndices.push(qvI.value)}if(aV.excludeAudioTrackIndices){jV.excludeAudioTrackIndices=[];for(var P$I=g.B(aV.excludeAudioTrackIndices),gyH=P$I.next();!gyH.done;gyH=P$I.next())jV.excludeAudioTrackIndices.push(gyH.value)}this.RS.push(jV)}this.uL=[]; if(dc.defaultTranslationSourceTrackIndices)for(var HrC=g.B(dc.defaultTranslationSourceTrackIndices),Mku=HrC.next();!Mku.done;Mku=HrC.next())this.uL.push(Mku.value);this.U2=!!dc.contribute&&!!dc.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.BH=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&& KEg(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var tJX;this.compositeLiveIngestionOffsetToken=(tJX=this.playerResponse.playbackTracking)==null?void 0:tJX.compositeLiveIngestionOffsetToken;var Ory;this.compositeLiveStatusToken=(Ory=this.playerResponse.playbackTracking)==null?void 0:Ory.compositeLiveStatusToken;this.V("html5_fill_default_mosaic_audio_track_id")&&Ra(this)&&(this.FB.K_=TqT(this))}hL(this,T);T.queue_info&&(this.queueInfo=T.queue_info);var pJ5=T.hlsdvr; pJ5!=null&&(this.allowLiveDvr=Number(pJ5)===1?BL()?!0:EG&&jL<5?!1:!0:!1);this.adQueryId=T.ad_query_id||null;this.Ek||(this.Ek=T.encoded_ad_safety_reason||null);this.kh=jG(this.kh,T.infringe||T.muted);this.Be=T.authkey;this.OX=T.authuser;this.mutedAutoplay=jG(this.mutedAutoplay,T&&T.playmuted);this.mutedAutoplayDurationMode=lu(this.mutedAutoplayDurationMode,T&&T.muted_autoplay_duration_mode);this.iL=jG(this.iL,T&&T.mutedautoplay);var bY=T.length_seconds;bY&&(this.lengthSeconds=typeof bY==="string"? aT(bY):bY);if(this.isAd()||this.xF||!g.gi(g.M0(this.FB)))this.endSeconds=lu(this.endSeconds,this.PQ||T.end||T.endSeconds);else{var zIp=g.M0(this.FB),ro=this.lengthSeconds;switch(zIp){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":ro>30?this.limitedPlaybackDurationInSeconds=30:ro<30&&ro>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=ro*.2}}this.Bd=o1(this.Bd,T.itct);this.FK=jG(this.FK,T.is_live_destination); this.isLivePlayback=jG(this.isLivePlayback,T.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Cc();T.isUpcoming&&(this.isUpcoming=jG(this.isUpcoming,T.isUpcoming));this.KY=jG(this.KY,T.post_live_playback);this.hj&&(this.KY=!1);this.isMdxPlayback=jG(this.isMdxPlayback,T.mdx);var c6=T.mdx_control_mode;c6&&(this.mdxControlMode=typeof c6==="number"?c6:aT(c6));this.isInlinePlaybackNoAd=jG(this.isInlinePlaybackNoAd,T.is_inline_playback_no_ad);this.Gg=lu(this.Gg,T.reload_count); this.reloadReason=o1(this.reloadReason,T.reload_reason);this.i5=jG(this.i5,T.show_content_thumbnail);this.cycToken=T.cyc||null;var WG5=WB(T);Object.keys(WG5).length>0&&(this.j=WG5);this.i9=o1(this.i9,T.vvt);this.mdxEnvironment=o1(this.mdxEnvironment,T.mdx_environment);T.source_container_playlist_id&&(this.sourceContainerPlaylistId=T.source_container_playlist_id);T.serialized_mdx_metadata&&(this.serializedMdxMetadata=T.serialized_mdx_metadata);this.yuj=T.osig;this.eventId||(this.eventId=T.eventid); this.osid||(this.osid=T.osid);this.playlistId=o1(this.playlistId,T.list);T.index&&(this.playlistIndex=this.playlistIndex===void 0?lu(0,T.index):lu(this.playlistIndex,T.index));this.p8=T.pyv_view_beacon_url;this.DO=T.pyv_quartile25_beacon_url;this.aW=T.pyv_quartile50_beacon_url;this.M9=T.pyv_quartile75_beacon_url;this.f8=T.pyv_quartile100_beacon_url;var $mH=T.session_data;!this.H2&&$mH&&(this.H2=Vt($mH,"&").feature);this.isFling=lu(this.isFling?1:0,T.is_fling)===1;this.vnd=lu(this.vnd,T.vnd);this.forceAdsUrl= o1(this.forceAdsUrl,T.force_ads_url);this.w8=o1(this.w8,T.ctrl);this.SO=o1(this.SO,T.ytr);this.jg=T.ytrcc;this.gF=T.ytrexp;this.oe=T.ytrext;this.pG=o1(this.pG,T.adformat);this.qU=o1(this.qU,T.attrib);this.slotPosition=lu(this.slotPosition,T.slot_pos);this.breakType=T.break_type;this.Ap=jG(this.Ap,T.ssrt);this.videoId=LY(T)||this.videoId;this.B=o1(this.B,T.vss_credentials_token);this.Yz=o1(this.Yz,T.vss_credentials_token_type);this.OW=jG(this.OW,T.audio_only);this.p_=jG(this.p_,T.aac_high);this.Qd= jG(this.Qd,T.prefer_low_quality_audio);this.tQ=jG(this.tQ,T.uncap_inline_quality);this.V("html5_enable_qoe_cat_list")?T.qoe_cat&&(this.VF=this.VF.concat(T.qoe_cat.split(","))):this.Dz=o1(this.Dz,T.qoe_cat);this.jl=jG(this.jl,T.download_media);var JUu=T.prefer_gapless;this.C=JUu!=null?jG(this.C,JUu):this.C?this.C:this.FB.preferGapless&&this.FB.supportsGaplessShorts();Uug(this.playerResponse)&&this.D.push("ad");var e6J=T.adaptive_fmts;e6J&&(this.adaptiveFormats=e6J,this.T9("adpfmts",{},!0));var FGy= T.allow_embed;FGy&&(this.allowEmbed=Number(FGy)===1);var ERX=T.backgroundable;ERX&&(this.backgroundable=Number(ERX)===1);var yU5=T.autonav;yU5&&(this.isAutonav=Number(yU5)===1);var irf=T.autoplay;irf&&(this.dO=this.nU=Number(irf)===1);var VJJ=T.iv_load_policy;VJJ&&(this.annotationsLoadPolicy=kq(this.annotationsLoadPolicy,VJJ,YL));var TXu=T.cc_lang_pref;TXu&&(this.captionsLanguagePreference=o1(TXu,this.captionsLanguagePreference));var Qmu=T.cc_load_policy;Qmu&&(this.KR=kq(this.KR,Qmu,YL));var jmg; this.deviceCaptionsOn=(jmg=T.device_captions_on)!=null?jmg:void 0;var kz5;this.ys=(kz5=T.device_captions_lang_pref)!=null?kz5:"";var ls5;this.fh=(ls5=T.viewer_selected_caption_langs)!=null?ls5:[];var oCb=T.cached_load;oCb&&(this.LX=jG(this.LX,oCb));if(T.dash==="0"||T.dash===0||T.dash===!1)this.DM=!0;var vCX=T.dashmpd;vCX&&(this.DP=g.sD(vCX,{cpn:this.clientPlaybackNonce}));var LrH=T.delay;LrH&&(this.QR=aT(LrH));var Yv5=this.PQ||T.end;if(this.OG?Yv5!=null:Yv5!=void 0)this.clipEnd=lu(this.clipEnd,Yv5); var qhX=T.fmt_list;qhX&&(this.Sg=qhX);T.heartbeat_preroll&&this.D.push("heartbeat");this.GT=-Math.floor(Math.random()*10);this.nR=-Math.floor(Math.random()*40);var gC5=T.is_listed;gC5&&(this.isListed=jG(this.isListed,gC5));var MrJ=T.is_private;MrJ&&(this.isPrivate=jG(this.isPrivate,MrJ));var YhJ=T.is_dni;YhJ&&(this.hh=jG(this.hh,YhJ));var Uvb=T.dni_color;Uvb&&(this.v5=o1(this.v5,Uvb));var RwJ=T.pipable;RwJ&&(this.pipable=jG(this.pipable,RwJ));this.QO=(this.Xd=this.pipable&&this.FB.QV)&&!this.FB.showMiniplayerButton; var Zft=T.paid_content_overlay_duration_ms;Zft&&(this.paidContentOverlayDurationMs=aT(Zft));var fst=T.paid_content_overlay_text;fst&&(this.paidContentOverlayText=fst);var Gzg=T.url_encoded_fmt_stream_map;Gzg&&(this.Wk=Gzg);var mvC=T.hls_formats;mvC&&(this.hlsFormats=mvC);var Is6=T.hlsvp;Is6&&(this.hlsvp=Is6);var DI=T.live_start_walltime;DI&&(this.rhH=typeof DI==="number"?DI:aT(DI));var av=T.live_manifest_duration;av&&(this.uR=typeof av==="number"?av:aT(av));var hwt=T.player_params;hwt&&(this.playerParams= hwt);var smy=T.partnerid;smy&&(this.partnerId=lu(this.partnerId,smy));var Shf=T.probe_url;Shf&&(this.probeUrl=pF(g.sD(Shf,{cpn:this.clientPlaybackNonce})));var Urt=T.pyv_billable_url;Urt&&sPb(Urt)&&(this.E6=Urt);var ROH=T.pyv_conv_url;ROH&&sPb(ROH)&&(this.vF=ROH);Uy5(this,T);this.startSeconds>0?this.V("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.BH||this.xz||T.start||T.startSeconds)&&this.T9("lss",{css:this.startSeconds,pcss:this.BH,iss:this.xz,ps:T.start||void 0,pss:T.startSeconds|| void 0}):this.h3=this.startSeconds=lu(this.startSeconds,this.BH||this.xz||T.start||T.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var C4t=T.live_utc_start;if(C4t!=null)this.liveUtcStartSeconds=Number(C4t);else{var Z2t=this.startSeconds;Z2t&&isFinite(Z2t)&&Z2t>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var BX5=T.utc_start_millis;BX5&&(this.liveUtcStartSeconds=Number(BX5)*.001)}var zwu=T.stream_time_start_millis; zwu&&(this.gt=Number(zwu)*.001);var fOb=this.xz||T.start;(this.OG?fOb==null||Number(T.resume)===1:fOb==void 0||T.resume=="1")||this.isLivePlayback||(this.clipStart=lu(this.clipStart,fOb));var X7X=T.url_encoded_third_party_media;X7X&&(this.U1=jS(X7X));var GSt=T.ypc_offer_button_formatted_text;if(GSt){var w76=JSON.parse(GSt);this.Mo=w76!=null?w76:null;this.Cf=GSt}var dvJ=T.ypc_offer_button_text;dvJ&&(this.bx=dvJ);var NXg=T.ypc_offer_description;NXg&&(this.R0=NXg);var AAX=T.ypc_offer_headline;AAX&&(this.IT= AAX);var bfy=T.ypc_full_video_message;bfy&&(this.xs=bfy);var rA5=T.ypc_offer_id;rA5&&(this.eO=rA5);var cAf=T.ypc_buy_url;cAf&&(this.CR=cAf);var Dv5=T.ypc_item_thumbnail;Dv5&&(this.A7=Dv5);var asT=T.ypc_item_title;asT&&(this.XQ=asT);var uIg=T.ypc_item_url;uIg&&(this.jy=uIg);var nCt=T.ypc_vid;nCt&&(this.Hf=nCt);T.ypc_overlay_timeout&&(this.bX=Number(T.ypc_overlay_timeout));var Kr5=T.ypc_trailer_player_vars;Kr5&&(this.s1=QI(Kr5));var xvf=T.ypc_original_itct;xvf&&(this.id_=xvf);this.hH=o1(this.hH,T.ucid); this.O6=T.storyboard_spec||null;this.Ws=T.live_storyboard_spec||null;this.iD=T.iv_endscreen_url||null;this.E4=jG(this.E4,T.ypc_module);this.m0=jG(this.m0,T.ypc_clickwrap_module);this.E4&&this.D.push("ypc");this.m0&&this.D.push("ypc_clickwrap");this.EV={video_id:T.video_id,eventid:T.eventid,cbrand:T.cbrand,cbr:T.cbr,cbrver:T.cbrver,c:T.c,cver:T.cver,ctheme:T.ctheme,cplayer:T.cplayer,cmodel:T.cmodel,cnetwork:T.cnetwork,cos:T.cos,cosver:T.cosver,cplatform:T.cplatform,user_age:T.user_age,user_display_image:T.user_display_image, user_display_name:T.user_display_name,user_gender:T.user_gender,csi_page_type:T.csi_page_type,csi_service_name:T.csi_service_name,enablecsi:T.enablecsi,enabled_engage_types:T.enabled_engage_types};qgt(this,T);var P4u=T.cotn;P4u&&(this.cotn=P4u);if(zDT(this))uO(this)&&(this.isLivePlayback&&this.DP&&(this.Hl=!0),this.Jj&&(this.Xm=!0));else if(XhX(this))this.Hl=!0;else{var Hfy,trI,Of5=((Hfy=this.playerResponse)==null?void 0:(trI=Hfy.streamingData)==null?void 0:trI.adaptiveFormats)||[];if(Of5.length> 0)var C7=BHg(this,Of5);else{this.V("html5_log_pafmtstr_ctmp")&&this.T9("pafmtstr",{s:this.adaptiveFormats.substring(0,50)});var p7b=this.adaptiveFormats;if(p7b&&!uO(this)){this.FB.N.L&&(Qa=!0);var u3=Oy(p7b),mrC=this.jY,Wrg=this.lengthSeconds,XDp=this.isLivePlayback,BO=this.KY,nx=this.FB,wDp=zjH(u3);if(XDp||BO){var $vH=nx==null?void 0:nx.experiments,ad=new P9("",$vH,!0);ad.Cc=!0;ad.isManifestless=!0;ad.S=!BO;ad.isLive=!BO;ad.KY=BO;for(var JAt=g.B(u3),IOt=JAt.next();!IOt.done;IOt=JAt.next()){var Kx= IOt.value,ew5=py(Kx,mrC),k_=W9(Kx.url,Kx.sp,Kx.s),Fru=k_.get("id");Fru&&Fru.includes("%7E")&&(ad.D=!0);var ECy=void 0,d2d=(ECy=$vH)==null?void 0:ECy.Wd("html5_max_known_end_time_rebase"),NV1=Number(Kx.target_duration_sec)||5,AH9=Number(Kx.max_dvr_duration_sec)||14400,yAH=Number(k_.get("mindsq")||k_.get("min_sq")||"0"),ifI=Number(k_.get("maxdsq")||k_.get("max_sq")||"0")||Infinity;ad.sW=ad.sW||yAH;ad.Kz=ad.Kz||ifI;var bh1=!Wj(ew5.mimeType);k_&&ny(ad,new sE(k_,ew5,{hW:NV1,ly:bh1,Bf:AH9,sW:yAH,Kz:ifI, P$:300,KY:BO,Ic:d2d}))}var VrX=ad}else{if(wDp==="FORMAT_STREAM_TYPE_OTF"){var uY=Wrg;uY=uY===void 0?0:uY;var xl=new P9("",nx==null?void 0:nx.experiments,!1);xl.duration=uY||0;for(var To5=g.B(u3),hO5=To5.next();!hO5.done;hO5=To5.next()){var P3=hO5.value,scC=py(P3,mrC,xl.duration),SvT=W9(P3.url,P3.sp,P3.s);if(SvT)if(scC.streamType==="FORMAT_STREAM_TYPE_OTF")ny(xl,new Sq(SvT,scC,"sq/0"));else{var rHT=Vn(P3.init),cHJ=Vn(P3.index);ny(xl,new Dj(SvT,scC,rHT,cHJ))}}xl.isOtf=!0;var Qv5=xl}else{var n$=Wrg; n$=n$===void 0?0:n$;var K$=new P9("",nx==null?void 0:nx.experiments,!1);K$.duration=n$||0;for(var jvu=g.B(u3),Ci5=jvu.next();!Ci5.done;Ci5=jvu.next()){var H3=Ci5.value,D2m=py(H3,mrC,K$.duration),aqE=Vn(H3.init),uwe=Vn(H3.index),kDJ=W9(H3.url,H3.sp,H3.s);kDJ&&ny(K$,new Dj(kDJ,D2m,aqE,uwe))}Qv5=K$}VrX=Qv5}var lI5=VrX;if(u3.length>0){var oxg=u3[0];if(this.G().playerStyle==="hangouts-meet"&&oxg.url){var n5J=g.k5(oxg.url);this.Qm=this.Qm||Number(n5J.expire)}}var K6d=this.isLivePlayback&&!this.KY&&!this.hj&& !this.isPremiere;this.V("html5_live_head_playable")&&(!nt(this)&&K6d&&this.T9("missingLiveHeadPlayable",{}),this.FB.z9==="yt"&&(lI5.sK=!0));C7=lI5}else C7=null;this.T9("pafmts",{isManifestFilled:!!C7})}if(C7){Pv(this,C7);var vxy=!0}else vxy=!1;vxy?this.enableServerStitchedDai=this.enableServerStitchedDai&&Kt(this):this.DP&&(this.FB.z9==="yt"&&this.Cc()&&this.V("drm_manifestless_unplugged")&&this.V("html5_deprecate_manifestful_fallback")?this.T9("deprecateMflFallback",{}):this.Hl=!0)}var B_I=T.adpings; B_I&&(this.cf=B_I?QI(B_I):null);var LT5=T.feature;LT5&&(this.wV=LT5);var qNT=T.referrer;qNT&&(this.referrer=qNT);this.clientScreenNonce=o1(this.clientScreenNonce,T.csn);this.tO=lu(this.tO,T.root_ve_type);this.Y3=lu(this.Y3,T.kids_age_up_mode);this.OG||T.kids_app_info==void 0||(this.kidsAppInfo=T.kids_app_info);this.OG&&T.kids_app_info!=null&&(this.kidsAppInfo=T.kids_app_info);this.OR=jG(this.OR,T.upg_content_filter_mode);this.unpluggedFilterModeType=lu(this.unpluggedFilterModeType,T.unplugged_filter_mode_type); var gx5=T.unplugged_location_info;gx5&&(this.F_=gx5);var M3y=T.unplugged_partner_opt_out;M3y&&(this.FZ=o1("",M3y));this.qq=jG(this.qq,T.disable_watch_next);this.Q3=o1(this.Q3,T.internal_ip_override);this.LQ=!!T.is_yto_interstitial;(this.interstitials.length||this.LQ)&&this.D.push("yto");var YNT=T.OU;YNT&&(this.OU=YNT);this.z9=o1(this.z9,T.csi_timer);T.watchUrl&&(this.watchUrl=T.watchUrl);var lv=T.watch_endpoint;this.V("html5_attach_watch_endpoint_ustreamer_config")&&lv&&BO6(this,lv);if(lv==null?0: lv.ustreamerConfig)this.Vl=DE(lv.ustreamerConfig);var U7X,RN5,Z$5=lv==null?void 0:(U7X=lv.loggingContext)==null?void 0:(RN5=U7X.qoeLoggingContext)==null?void 0:RN5.serializedContextData;Z$5&&(this.YhO=Z$5);g.Qk(this.FB)&&this.FB.RM&&(this.embedsRct=o1(this.embedsRct,T.rct),this.embedsRctn=o1(this.embedsRctn,T.rctn));T.embed_config&&(this.bR=T.embed_config);this.dC=this.dC||!!T.pause_at_start;T.default_active_source_video_id&&(this.defaultActiveSourceVideoId=T.default_active_source_video_id)}; g.h.G=function(){return this.FB}; g.h.V=function(T){return this.FB.V(T)}; g.h.Yo=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.h.hasSupportedAudio51Tracks=function(){var T;return!((T=this.YP)==null||!T.zg)}; g.h.getUserAudio51Preference=function(){var T=1;BB(this.FB)&&this.V("html5_ytv_surround_toggle_default_off")?T=0:g.s8(this.FB)&&this.isLivePlayback&&this.bl()&&(T=0);var Q;return(Q=g.cy("yt-player-audio51"))!=null?Q:T}; g.h.uO=function(){this.wd()||(this.T.S||this.T.unsubscribe("refresh",this.uO,this),this.a6(-1))}; g.h.a6=function(T){if(!this.isLivePlayback||!this.N||this.N.flavor!=="fairplay"){var Q=wMX(this.T,this.Q5);if(Q.length>0){for(var k=g.B(Q),l=k.next();!l.done;l=k.next())l=l.value,l.startSecs=Math.max(l.startSecs,this.SY()),this.V("html5_cuepoint_identifier_logging")&&l.event==="start"&&this.T9("cuepoint",{pubCue:l.identifier,segNum:T});this.publish("cuepointupdated",Q,T);this.Q5+=Q.length;if(Kt(this)&&this.FB.J3())for(Q=g.B(Q),k=Q.next();!k.done;k=Q.next())k=k.value,this.T9("cuepoint",{segNum:T,event:k.event, startSecs:k.startSecs,id:k.identifier.slice(-16)}),k.event==="start"&&(k=k.startSecs,this.mS.start=this.Ah,this.mS.end=k+3)}}}; g.h.MC=function(){this.wd()||(this.loading=!1,this.publish("dataloaded"))}; g.h.bl=function(){return this.X0!==void 0?this.X0:this.X0=!!this.jY||!!this.T&&Pr(this.T)}; g.h.pK=function(T){var Q=this;if(this.wd())return bC();this.t6=this.u9=this.L=null;hy(this,"html5_high_res_logging_always")&&(this.FB.uK=!0);return ACf(this,T).then(void 0,function(){return rCX(Q,T)}).then(void 0,function(){return cCX(Q)}).then(void 0,function(){return aDf(Q)})}; g.h.Tj=function(T){this.L=T;b15(this,this.L.getAvailableAudioTracks());if(this.L){T=g.B(this.L.videoInfos);for(var Q=T.next();!Q.done;Q=T.next()){Q=Q.value;var k=Q.containerType;k!==0&&(this.Bs[k]=Q.id)}}T=this.getAvailableAudioTracks();T=T.concat(this.FU);for(Q=0;Q0?this.L.getAvailableAudioTracks():this.Yh||[]:[]}; g.h.getAudioTrack=function(){var T=this;if(this.Y&&!Pj(this.Y)){var Q=g.sA(this.getAvailableAudioTracks(),function(v){return v.id===T.Y.id}),k; if(!Q&&((k=this.Y.MY)==null?0:k.id)){var l=this.Y.MY.id;Q=g.sA(this.getAvailableAudioTracks(),function(v){return v.MY.id===l}); this.T9("nat",{id:this.Y.id,track:!!Q})}return Q||this.FU}if(this.Yh){if(!this.Z6)for(Q=g.B(this.Yh),k=Q.next();!k.done;k=Q.next())if(k=k.value,k.MY.getIsDefault()){this.Z6=k;break}return this.Z6||this.FU}return this.FU}; g.h.getPlayerResponse=function(){return this.playerResponse}; g.h.getWatchNextResponse=function(){return this.e6}; g.h.getHeartbeatResponse=function(){return this.cM}; g.h.fB=function(){return this.watchUrl?this.watchUrl:this.FB.getVideoUrl(this.videoId)}; g.h.vI=function(){return!!this.T&&(m3t(this.T)||IlC(this.T)||hj5(this.T))}; g.h.getEmbeddedPlayerResponse=function(){return this.MV}; g.h.aD=function(){return(this.eventLabel||this.FB.i9)==="shortspage"}; g.h.isAd=function(){return!!this.adFormat}; g.h.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.h.lf=function(){var T,Q,k;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((T=this.playerResponse)==null?0:(Q=T.playerConfig)==null?0:(k=Q.daiConfig)==null?0:k.ssaEnabledPlayback)}; g.h.fq=function(){return this.hC}; g.h.E3=function(){return this.E4||this.QE}; g.h.jF=function(){return hy(this,"html5_samsung_vp9_live")}; g.h.T9=function(T,Q,k){this.publish("ctmp",T,Q,k)}; g.h.HW=function(T,Q,k){this.publish("ctmpstr",T,Q,k)}; g.h.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.h.getGetAdBreakContext=function(T,Q){T=T===void 0?NaN:T;Q=Q===void 0?NaN:Q;var k={isSabr:cv(this)},l,v=(l=this.getHeartbeatResponse())==null?void 0:l.adBreakHeartbeatParams;v&&(k.adBreakHeartbeatParams=v);if(this.V("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.T&&!isNaN(T)&&!isNaN(Q)){Q=T-Q;for(var L in this.T.T)if(l=this.T.T[L],l.info.bK()||l.info.uH())if(l=l.index,l.isLoaded()){L=l.ll(Q);l=l.xM(L)+Q-l.getStartTime(L);this.T9("gabc",{t:T.toFixed(3),mt:Q.toFixed(3),sg:L,igt:l.toFixed(3)}); k.livePlaybackPosition={utcTimeMillis:""+(l*1E3).toFixed(0)};break}}return k}; g.h.isEmbedsShortsMode=function(T,Q){if(!g.Qk(this.FB)||(this.FB.xm||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||Q)return!1;var k,l;return!!(((k=this.embeddedPlayerConfig)==null?0:(l=k.embeddedPlayerFlags)==null?0:l.isShortsExperienceEligible)&&T.width<=T.height)}; g.h.EK=function(){g.ox.prototype.EK.call(this);this.cf=null;delete this.MH;delete this.accountLinkingConfig;delete this.T;this.L=this.cM=this.playerResponse=this.e6=null;this.Wk=this.adaptiveFormats="";delete this.botguardData;this.K_=this.suggestions=this.hn=null;this.sabrContextUpdates.clear()};var UZI={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},RE5={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},MsI={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},LxJ={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"},gSt={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},qn5={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"},Ynu={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.S(XZ,g.x);g.h=XZ.prototype;g.h.handleExternalCall=function(T,Q,k){var l=this.state.C[T],v=this.state.j[T],L=l;if(v)if(k&&HI(k,MCv))L=v;else if(!l)throw Error('API call from an untrusted origin: "'+k+'"');this.logApiCall(T,k);if(L){k=!1;l=g.B(Q);for(v=l.next();!v.done;v=l.next())if(String(v.value).includes("javascript:")){k=!0;break}k&&g.rB(Error('Dangerous call to "'+T+'" with ['+Q+"]."));return L.apply(this,Q)}throw Error('Unknown API method: "'+T+'".');}; g.h.logApiCall=function(T,Q,k){var l=this.app.G();l.Jp&&!this.state.D.has(T)&&(this.state.D.add(T),g.LM("webPlayerApiCalled",{callerUrl:l.loaderUrl,methodName:T,origin:Q||void 0,playerStyle:l.playerStyle||void 0,embeddedPlayerMode:l.xm,errorCode:k}))}; g.h.publish=function(T){var Q=g.HT.apply(1,arguments);this.state.L.publish.apply(this.state.L,[T].concat(g.ZH(Q)));if(T==="videodatachange"||T==="resize"||T==="cardstatechange")this.state.S.publish.apply(this.state.S,[T].concat(g.ZH(Q))),this.state.Y.publish.apply(this.state.Y,[T].concat(g.ZH(Q)))}; g.h.tj=function(T){var Q=g.HT.apply(1,arguments);this.state.L.publish.apply(this.state.L,[T].concat(g.ZH(Q)));this.state.S.publish.apply(this.state.S,[T].concat(g.ZH(Q)))}; g.h.UM=function(T){var Q=g.HT.apply(1,arguments);this.state.L.publish.apply(this.state.L,[T].concat(g.ZH(Q)));this.state.S.publish.apply(this.state.S,[T].concat(g.ZH(Q)));this.state.Y.publish.apply(this.state.Y,[T].concat(g.ZH(Q)))}; g.h.Pk=function(T){var Q=g.HT.apply(1,arguments);this.state.L.publish.apply(this.state.L,[T].concat(g.ZH(Q)));this.state.S.publish.apply(this.state.S,[T].concat(g.ZH(Q)));this.state.Y.publish.apply(this.state.Y,[T].concat(g.ZH(Q)));this.state.N.publish.apply(this.state.N,[T].concat(g.ZH(Q)))}; g.h.V=function(T){return this.app.G().V(T)}; g.h.EK=function(){if(this.state.element){var T=this.state.element,Q;for(Q in this.state.T)this.state.T.hasOwnProperty(Q)&&(T[Q]=null);this.state.element=null}g.x.prototype.EK.call(this)};g.S(bt,g.XE);bt.prototype.publish=function(T){var Q=g.HT.apply(1,arguments);if(this.N.has(T))return this.N.get(T).push(Q),!0;var k=!1;try{for(Q=[Q],this.N.set(T,Q);Q.length;)k=g.XE.prototype.publish.call.apply(g.XE.prototype.publish,[this,T].concat(g.ZH(Q.shift())))}finally{this.N.delete(T)}return k};g.S(rs,g.x);rs.prototype.EK=function(){this.N.dispose();this.Y.dispose();this.S.dispose();this.L.dispose();this.D=this.T=this.j=this.C=this.B=void 0};var srb=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.S(D_,XZ);g.h=D_.prototype;g.h.getApiInterface=function(){return Array.from(this.state.B)}; g.h.pZ=function(T,Q){this.state.N.subscribe(T,Q)}; g.h.Qde=function(T,Q){this.state.N.unsubscribe(T,Q)}; g.h.getPlayerState=function(T){return MR5(this.app,T)}; g.h.yJ=function(){return MR5(this.app)}; g.h.Ju9=function(T,Q,k){nX(this)&&(tn(this.app,!0,1),W5(this.app,T,Q,k,1))}; g.h.getCurrentTime=function(T,Q,k){var l=this.getPlayerState(T);if(this.app.getAppState()===2&&l===5){var v;return((v=this.app.getVideoData())==null?void 0:v.startSeconds)||0}return this.V("web_player_max_seekable_on_ended")&&l===0?uG(this.app,T):T?this.app.getCurrentTime(T,Q,k):this.app.getCurrentTime(T)}; g.h.PZ=function(){return this.app.getCurrentTime(1)}; g.h.fl=function(){var T=this.app.xM(1);return isNaN(T)?this.getCurrentTime(1):T}; g.h.WZ=function(){return this.app.getDuration(1)}; g.h.QY=function(T,Q){T=g.ti(Math.floor(T),0,100);isFinite(T)&&DN(this.app,{volume:T,muted:this.isMuted()},Q)}; g.h.DL9=function(T){this.QY(T,!1)}; g.h.xx=function(T){DN(this.app,{muted:!0,volume:this.getVolume()},T)}; g.h.Fe9=function(){this.xx(!1)}; g.h.JF=function(T){ut(this.app)&&!this.V("embeds_enable_emc3ds_muted_autoplay")||DN(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},T)}; g.h.IGK=function(){ut(this.app)&&this.V("embeds_enable_emc3ds_muted_autoplay")||this.JF(!1)}; g.h.getPlayerMode=function(){var T={};this.app.getVideoData().hh&&(T.pfp={enableIma:this.app.mF().allowImaMonetization,autoplay:Mf(this.app.mF()),mutedAutoplay:this.app.mF().mutedAutoplay});return T}; g.h.GY=function(){var T=this.app.getPresentingPlayerType();if(T===2&&!this.app.Xj()){var Q=xY(this.app.Bx());if(!(YA1(Q)||g.Qk(this.app.G())&&g.J(this.app.Pd().getPlayerState(),1024))||Upm(Q))return}(Q=this.app.vG().GP)?Q.playVideo():this.app.playVideo(T)}; g.h.jKV=function(){tn(this.app,!0,1);this.GY()}; g.h.pauseVideo=function(T){var Q=this.app.getPresentingPlayerType();if(Q!==2||this.app.Xj()||YA1(xY(this.app.Bx()))){var k=this.app.vG().GP;k?k.pauseVideo():this.app.pauseVideo(Q,T)}}; g.h.L0j=function(){var T=this.app,Q=!1;T.Hd.Ig&&(T.ZV.publish("pageTransition"),Q=!0);T.stopVideo(Q)}; g.h.clearVideo=function(){}; g.h.getAvailablePlaybackRates=function(){var T=this.app.G();return T.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(T.Y?T.ancestorOrigins[0]:window.location.origin)||T.Z6?Km1:T.supportsVarispeedExtendedFeatures?xX_:T.V("web_remix_allow_up_to_3x_playback_rate")&&g.uP(T)?P5W:D3:[1]}; g.h.getPlaybackQuality=function(T){return(T=this.app.jD(T))?T.getPlaybackQuality():"unknown"}; g.h.uIB=function(){}; g.h.getAvailableQualityLevels=function(T){return(T=this.app.jD(T))?(T=g.IQ(T.G6(),function(Q){return Q.quality}),T.length&&(T[0]==="auto"&&T.shift(),T=T.concat(["auto"])),T):[]}; g.h.ju=function(){return this.getAvailableQualityLevels(1)}; g.h.SC=function(){return this.Cs()}; g.h.c7=function(){return 1}; g.h.getVideoLoadedFraction=function(T){return this.app.getVideoLoadedFraction(T)}; g.h.Cs=function(){return this.getVideoLoadedFraction()}; g.h.QJ=function(){return 0}; g.h.getSize=function(){var T=this.app.Hx().getPlayerSize();return{width:T.width,height:T.height}}; g.h.setSize=function(){this.app.Hx().resize()}; g.h.loadVideoById=function(T,Q,k,l){if(!T)return!1;T=ci(T,Q,k);return this.app.loadVideoByPlayerVars(T,l)}; g.h.b2=function(T,Q,k){T=this.loadVideoById(T,Q,k,1);tn(this.app,T,1)}; g.h.cueVideoById=function(T,Q,k,l){T=ci(T,Q,k);this.app.cueVideoByPlayerVars(T,l)}; g.h.CF=function(T,Q,k){this.cueVideoById(T,Q,k,1)}; g.h.loadVideoByUrl=function(T,Q,k,l){T=hEX(T,Q,k);return this.app.loadVideoByPlayerVars(T,l)}; g.h.GC=function(T,Q,k){T=this.loadVideoByUrl(T,Q,k,1);tn(this.app,T,1)}; g.h.cueVideoByUrl=function(T,Q,k,l){T=hEX(T,Q,k);this.app.cueVideoByPlayerVars(T,l)}; g.h.Zp=function(T,Q,k){this.cueVideoByUrl(T,Q,k,1)}; g.h.k7=function(){var T=this.app.G();if(T.qO)return"";var Q=this.app.mF(),k=void 0;Q.isLivePlayback||(k=Math.floor(this.app.getCurrentTime(1)));return T.getVideoUrl(Q.videoId,this.getPlaylistId()||void 0,k)}; g.h.tq=function(){return this.app.getDebugText()}; g.h.getVideoEmbedCode=function(){var T=this.app.G();if(T.qO)return"";var Q=this.app.mF();return T.getVideoEmbedCode(Q.isPrivate?"":Q.title,this.app.mF().videoId,this.app.Hx().getPlayerSize(),this.getPlaylistId()||void 0)}; g.h.Pj=function(T,Q,k){return IuI(this.app,T,Q,k)}; g.h.removeCueRange=function(T){return this.app.IU(T)}; g.h.loadPlaylist=function(T,Q,k,l){this.app.loadPlaylist(T,Q,k,l)}; g.h.Am=function(T,Q,k,l){this.loadPlaylist(T,Q,k,l);tn(this.app,!0,1)}; g.h.cuePlaylist=function(T,Q,k,l){this.app.cuePlaylist(T,Q,k,l)}; g.h.nextVideo=function(T,Q){this.app.nextVideo(T,Q)}; g.h.YKq=function(){this.nextVideo();tn(this.app,!0,1)}; g.h.previousVideo=function(T){this.app.previousVideo(T)}; g.h.vMe=function(){this.previousVideo();tn(this.app,!0,1)}; g.h.playVideoAt=function(T){this.app.playVideoAt(T)}; g.h.Ahq=function(T){this.playVideoAt(T);tn(this.app,!0,1)}; g.h.setShuffle=function(T){var Q=this.app.getPlaylist();Q&&Q.setShuffle(T)}; g.h.setLoop=function(T){var Q=this.app.getPlaylist();Q&&(Q.loop=T)}; g.h.qH=function(){var T=this.app.getPlaylist();if(!T)return null;for(var Q=[],k=0;k=400)if(T=this.mF(),this.U.G().V("client_respect_autoplay_switch_button_renderer"))T=!!T.autoplaySwitchButtonRenderer;else{var Q,k,l,v;T=!!((Q=T.getWatchNextResponse())==null?0:(k=Q.contents)==null?0:(l=k.twoColumnWatchNextResults)==null?0:(v=l.autoplay)==null?0:v.autoplay)!==!1}if(T)this.T||(this.T=!0,this.o_(this.T),this.U.G().V("web_player_autonav_toggle_always_listen")||Wxg(this), Q=this.mF(),this.Uo(Q.autonavState),this.U.logVisibility(this.element,this.T));else if(this.T=!1,this.o_(this.T),!this.U.G().V("web_player_autonav_toggle_always_listen"))for(this.U.G().V("web_player_autonav_toggle_always_listen"),Q=g.B(this.S),k=Q.next();!k.done;k=Q.next())this.J6(k.value)}; g.h.Uo=function(T){J1T(this)?this.isChecked=T!==1:((T=T!==1)||(g.xq(),T=g.hH("web_autonav_allow_off_by_default")&&!g.Py(0,141)&&g.$i("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Py(0,140)),this.isChecked=T);$Zu(this)}; g.h.onClick=function(){this.isChecked=!this.isChecked;this.U.Pi(this.isChecked?2:1);$Zu(this);if(J1T(this)){var T=this.mF().autoplaySwitchButtonRenderer;this.isChecked&&(T==null?0:T.onEnabledCommand)?this.U.tj("innertubeCommand",T.onEnabledCommand):!this.isChecked&&(T==null?0:T.onDisabledCommand)&&this.U.tj("innertubeCommand",T.onDisabledCommand)}this.U.logClick(this.element)}; g.h.getValue=function(){return this.isChecked}; g.h.mF=function(){return this.U.getVideoData(1)};g.S(eEJ,GQ);g.S(zQ,g.UQ);zQ.prototype.onClick=function(){this.enabled&&(Xe(this,!this.checked),this.publish("select",this.checked))}; zQ.prototype.getValue=function(){return this.checked}; zQ.prototype.setEnabled=function(T){(this.enabled=T)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var Nz=["en-CA","en","es-MX","fr-CA"];g.S(DR,zQ);DR.prototype.Aj=function(T){T?this.T||(this.YB.A6(this),this.T=!0):this.T&&(this.YB.y8(this),this.T=!1);this.T&&Xe(this,tEy())}; DR.prototype.Y=function(){g.Lb(this.element,"ytp-menuitem-highlight-transition-enabled")}; DR.prototype.L=function(T){var Q=tEy();T!==Q&&(Q=g.xq(),tg(190,T),tg(192,!0),Q.save(),this.U.tj("cinematicSettingsToggleChange",T))}; DR.prototype.EK=function(){this.T&&this.YB.y8(this);zQ.prototype.EK.call(this)};g.S(aR,GQ);aR.prototype.updateCinematicSettings=function(T){this.T=T;var Q;(Q=this.menuItem)==null||Q.Aj(T);this.api.publish("onCinematicSettingsVisibilityChange",T)};g.S(VsI,GQ);g.S(uf,GQ);uf.prototype.setCreatorEndscreenVisibility=function(T){var Q;(Q=Os(this.api.Bx()))==null||Q.o_(T)}; uf.prototype.T=function(T){function Q(l){l==="creatorendscreen"&&(l=Os(k.api.Bx()))&&l.nP6(k.hideButton)} var k=this;this.hideButton=T;this.events.Z(this.api,"modulecreated",Q);Q("creatorendscreen")};g.S(nA,zQ);nA.prototype.Y=function(T){this.L(T?1:0)}; nA.prototype.S=function(){var T=this.hasDrcAudioTrack(),Q=this.T()===1&&T;Xe(this,Q);this.setEnabled(T)}; nA.prototype.EK=function(){this.YB.y8(this);zQ.prototype.EK.call(this)};g.S(KA,GQ);KA.prototype.getDrcUserPreference=function(){return this.T}; KA.prototype.setDrcUserPreference=function(T){g.ri("yt-player-drc-pref",T,31536E3);T!==this.T&&(this.T=T,this.updateEnvironmentData(),this.S()&&this.api.yV())}; KA.prototype.updateEnvironmentData=function(){this.api.G().OW=this.T===1}; KA.prototype.S=function(){var T,Q,k=(T=this.api.getVideoData())==null?void 0:(Q=T.L)==null?void 0:Q.T;if(!k)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.V("mta_drc_mutual_exclusion_removal")){var l,v,L=(l=this.api.IN())==null?void 0:(v=l.MY)==null?void 0:v.id;return $4(k,function(q){var Y;return q.audio.T&&((Y=q.MY)==null?void 0:Y.id)===L})}return $4(k,function(q){var Y; return((Y=q.audio)==null?void 0:Y.T)===!0})};g.S(xH,GQ);xH.prototype.onVideoDataChange=function(){var T=this,Q=this.api.getVideoData();this.api.uf("embargo",1);var k=Q==null?void 0:Q.ER.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(k==null?0:k.length)?Q3H(this,k.filter(function(l){return Tt5(T,l)})):(Q==null?0:Q.cueRanges)&&Q3H(this,Q.cueRanges.filter(function(l){return Tt5(T,l)}))}; xH.prototype.S=function(T){return T.embargo!==void 0}; xH.prototype.EK=function(){GQ.prototype.EK.call(this);this.T={}};g.S(PR,GQ); PR.prototype.addEmbedsConversionTrackingParams=function(T){var Q=this.api.G(),k=Q.widgetReferrer,l=Q.DP,v=this.T,L="",q=Q.getWebPlayerContextConfig();q&&(L=q.embedsIframeOriginParam||"");k.length>0&&(T.embeds_widget_referrer=k);l.length>0&&(T.embeds_referring_euri=l);Q.Y&&L.length>0&&(T.embeds_referring_origin=L);q&&q.embedsFeature&&(T.feature=q.embedsFeature);v.length>0&&(Q.V("embeds_web_enable_lite_experiment_control_arm_logging")?v.unshift(28572):g.gi(g.M0(Q))&&v.unshift(159628),Q=v.join(","),Q= g.ph()?Q:g.N_(Q,4),T.source_ve_path=Q);this.T.length=0};g.S(j36,GQ);g.S(kqu,GQ);g.S(HR,g.x);HR.prototype.EK=function(){g.x.prototype.EK.call(this);this.T=null;this.S&&this.S.disconnect()};g.S(ogb,GQ);g.S(tN,g.p);tN.prototype.show=function(){g.p.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; tN.prototype.stopTimer=function(){this.T&&(this.T.dispose(),this.T=null)}; tN.prototype.onVideoDataChange=function(T){var Q,k,l=(Q=this.api.getVideoData())==null?void 0:(k=Q.getPlayerResponse())==null?void 0:k.playabilityStatus;l&&(Q=vgt(l),g.J(this.api.getPlayerStateObject(),128)||T==="dataloaderror"||!Q?(this.S=0,this.stopTimer(),this.hide()):(T=(Q.remainingTimeSecs||0)*1E3,T>0&&(this.show(),this.updateValue("label",On(Q.label)),qVT(this,T))))}; tN.prototype.EK=function(){this.stopTimer();g.p.prototype.EK.call(this)};g.S(ggH,GQ);g.S(OQ,g.p);OQ.prototype.onClick=function(){this.ZV.logClick(this.element);this.ZV.tj("onFullerscreenEduClicked")}; OQ.prototype.Aj=function(){this.ZV.isFullscreen()?this.T?this.fade.hide():this.fade.show():this.hide();this.ZV.logVisibility(this.element,this.ZV.isFullscreen()&&!this.T)};g.S(pA,GQ);pA.prototype.updateFullerscreenEduButtonSubtleModeState=function(T){var Q;(Q=this.T)!=null&&(g.gl(Q.element,"ytp-fullerscreen-edu-button-subtle",T),T&&!Q.S&&(Q.ZV.V("player_tooltip_data_title_killswitch")?Q.element.setAttribute("title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"):Q.element.setAttribute("data-tooltip-title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"),OU(Q.ZV,Q.element,Q),Q.S=!0))}; pA.prototype.updateFullerscreenEduButtonVisibility=function(T){var Q;(Q=this.T)!=null&&(Q.T=T,Q.Aj())};g.S(MXX,g.p);g.S(RxC,GQ);g.S(WR,GQ);WR.prototype.getSphericalProperties=function(){var T=g.y5(this.api.Bx());return T?T.getSphericalProperties():{}}; WR.prototype.setSphericalProperties=function(T){if(T){var Q=g.y5(this.api.Bx());Q&&Q.setSphericalProperties(T,!0)}};g.S($H,GQ);g.h=$H.prototype;g.h.createClientVe=function(T,Q,k,l){this.api.createClientVe(T,Q,k,l===void 0?!1:l)}; g.h.createServerVe=function(T,Q,k){this.api.createServerVe(T,Q,k===void 0?!1:k)}; g.h.setTrackingParams=function(T,Q){this.api.setTrackingParams(T,Q)}; g.h.logClick=function(T,Q){this.api.logClick(T,Q)}; g.h.logVisibility=function(T,Q,k){this.api.logVisibility(T,Q,k)}; g.h.hasVe=function(T){return this.api.hasVe(T)}; g.h.destroyVe=function(T){this.api.destroyVe(T)};var fc5=!1;ec.prototype.setPlaybackRate=function(T){this.playbackRate=Math.max(1,T)}; ec.prototype.getPlaybackRate=function(){return this.playbackRate};T_.prototype.V5=function(T){var Q=g.Hj(T.info.T.info,this.C_.Cc),k=T.info.NO+this.Y,l=T.info.startTime*1E3;if(this.policy.u9)try{l=this.policy.u9?g.dd(T)*1E3:T.info.startTime*1E3}catch(q){Math.random()>.99&&this.logger&&(l=Yl(T.S).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:T.info.Bh(),encodedDataView:g.dJ(l,4)})),l=T.info.startTime*1E3}var v=T.info.clipId,L=this.policy.u9?g.jLC(T)*1E3:T.info.duration*1E3;this.policy.u9&&(l<0||L<0)&&(this.logger&&(this.logger({missingSegInfo:T.info.Bh(), startTimeMs:l,durationMs:L}),this.policy.xz||(l<0&&(l=T.info.startTime*1E3),L<0&&(L=T.info.duration*1E3))),this.policy.xz&&(l<0&&(l=T.info.startTime*1E3),L<0&&(L=T.info.duration*1E3)));return{formatId:Q,NO:k,startTimeMs:l,clipId:v,uN:L}}; T_.prototype.FL=function(T){this.timestampOffset=T};Qm.prototype.seek=function(T,Q){T!==this.targetTime&&(this.seekCount=0);this.targetTime=T;var k=this.videoTrack.S,l=this.audioTrack.S,v=this.audioTrack.jr,L=DQu(this,this.videoTrack,T,this.videoTrack.jr,Q);Q=DQu(this,this.audioTrack,this.policy.vn?T:L,v,Q);T=Math.max(T,L,Q);this.Y=!0;this.C_.isManifestless&&(Ntu(this,this.videoTrack,k),Ntu(this,this.audioTrack,l));return T}; Qm.prototype.isSeeking=function(){return this.Y}; Qm.prototype.u1=function(T){this.S=T}; var c_T=2/24;var ngg=0;g.h=Ux.prototype;g.h.ZN=function(){this.D=this.now();AQ5(this.V4,this.D);this.m1.ZN()}; g.h.La=function(T,Q){var k=this.policy.S?(0,g.XY)():0;Rz(this,T,Q);T-this.B<10&&this.S>0||this.Jk(T,Q);this.m1.La(T,Q);this.policy.S&&(T=(0,g.XY)()-k,this.d5+=T,this.zg=Math.max(T,this.zg))}; g.h.Jk=function(T,Q){var k=(T-this.B)/1E3,l=Q-this.L;this.Ox||($m(this.V4,k,l),this.uu(k,l));this.B=T;this.L=Q}; g.h.Ex=function(){this.xm&&Kk5(this);this.m1.Ex()}; g.h.QQ=function(T){this.xm||(this.xm=this.N-this.Ig+T,this.DP=this.N,this.Fk=this.C)}; g.h.Kn=function(T,Q){T=T===void 0?this.C:T;Q=Q===void 0?this.N:Q;this.S>0||(this.j=T,this.S=Q,this.z9=this.isActive=!0)}; g.h.vy=function(){return this.bH||2}; g.h.aE=function(){}; g.h.i6=function(){var T,Q={rn:this.requestNumber,rt:(this.C-this.T).toFixed(),lb:this.N,stall:(1E3*this.Y).toFixed(),ht:(this.D-this.T).toFixed(),elt:(this.j-this.T).toFixed(),elb:this.S,d:(T=this.i9)==null?void 0:T.xo()};this.url&&ZPC(Q,this.url);this.policy.S&&(Q.mph=this.zg.toFixed(),Q.tph=this.d5.toFixed());Q.ulb=this.e6;Q.ult=this.qO;return Q}; g.h.now=function(){return(0,g.XY)()}; g.h.deactivate=function(){this.isActive&&(this.isActive=!1)};g.S(fr,Ux);g.h=fr.prototype;g.h.i6=function(){var T=Ux.prototype.i6.call(this);T.pb=this.JS;T.pt=(1E3*this.Tg).toFixed();T.se=this.OG;return T}; g.h.aG=function(){var T=this.m1;this.u9||(this.u9=T.aG?T.aG():1);return this.u9}; g.h.zD=function(){return this.fp?this.aG()!==1:!1}; g.h.IX=function(T,Q,k){if(!this.Gg){this.Gg=!0;if(!this.Ox){Rz(this,T,Q);this.Jk(T,Q);var l=this.aG();this.OG=k;if(!this.Ox)if(l===2){l=T-this.j0)||G_(this,l,Q),this.S>0&&pc(this.V4,Q,this.Y));T=(T-this.T)/ 1E3||.01;this.policy.j&&!(this.S>0)||Od(this.V4,T,this.L,PdT(this),this.Zr)}this.deactivate()}}; g.h.Cn=function(T,Q,k){k&&(this.u9=2);T<0&&this.bH&&(T=this.bH);Q?this.p_+=T:this.Jj+=T}; g.h.vy=function(){return this.Jj||this.p_||Ux.prototype.vy.call(this)}; g.h.Jk=function(T,Q){var k=(T-this.B)/1E3,l=Q-this.L,v=this.aG();this.isActive?v===1&&((l>0||this.policy.N)&&(k>.2||l<1024)?(this.Y+=k,l>0&&k>.2&&G_(this,this.Ds?k:.05,l),this.QR=!0):l>0&&(G_(this,k,l),this.QR=!0)):Q&&Q>=this.policy.T&&this.Kn(T,Q);Ux.prototype.Jk.call(this,T,Q)}; g.h.CJ=function(T){if(!this.Ox){Rz(this,T,this.N);var Q=(T-this.T)/1E3;this.aG()!==2&&this.S>0&&(this.Y+=(T-this.B)/1E3,pc(this.V4,this.L,this.Y));Od(this.V4,Q,this.L,PdT(this),this.Zr,!0);T=(T-this.B)/1E3;$m(this.V4,T,0);this.uu(T,0)}}; g.h.Kn=function(T,Q){T=T===void 0?this.C:T;Q=Q===void 0?this.N:Q;if(!(this.S>0)&&(Ux.prototype.Kn.call(this,T,Q),this.aG()===1)){Q=(this.D-this.T)/1E3;var k=(T-this.D)/1E3;this.fp&&mG(this,this.now());this.h3||this.Ox||(this.bH&&(k=Math.max(0,k-this.bH)),T=this.V4,T.j.Q1(1,Q),T.i9.Q1(1,k))}}; g.h.RR=function(){this.fp&&mG(this,this.now());return this.sK}; g.h.cV=function(){var T;if(T=this.L>this.ra)T=(T=this.L)?T>=this.policy.T:!1;return T}; g.h.zv=function(){return this.K_}; g.h.T2=function(T){T=T===void 0?this.now():T;if(this.fp){mG(this,T);if(this.u9?this.zD():this.hj!==this.Bd){var Q=this.Bd;if(T0?k+T:k+Math.max(T,Q)}; g.h.G$=function(){return this.now()-this.j}; g.h.HI=function(){return(this.L-this.S)*1E3/this.G$()||0}; g.h.Ne=function(){return this.j};Iz.prototype.feed=function(T){v3(this.T,T);this.Jh()}; Iz.prototype.Jh=function(){if(this.Y){if(!this.T.totalLength)return;var T=this.T.split(this.L-this.S),Q=T.Rz;T=T.ow;if(!this.m1.QQ(this.Y,Q,this.S,this.L))return;this.S+=Q.totalLength;this.T=T;this.S===this.L&&(this.Y=this.L=this.S=void 0)}for(;;){var k=0;T=g.B(prf(this.T,k));Q=T.next().value;k=T.next().value;k=g.B(prf(this.T,k));T=k.next().value;k=k.next().value;if(Q<0||T<0)break;if(!(k+T<=this.T.totalLength)){if(!(this.m1.QQ&&k+1<=this.T.totalLength))break;k=this.T.split(k).ow;this.m1.QQ(Q,k,0, T)&&(this.Y=Q,this.S=k.totalLength,this.L=T,this.T=new oV([]));break}T=this.T.split(k).ow.split(T);k=T.ow;this.m1.qt(Q,T.Rz);this.T=k}}; Iz.prototype.dispose=function(){this.T=new oV};g.h=hU.prototype;g.h.Az=function(){return 0}; g.h.UI=function(){return null}; g.h.oR=function(){return null}; g.h.gT=function(){return this.state>=1}; g.h.isComplete=function(){return this.state>=3}; g.h.u5=function(){return this.state===5}; g.h.onStateChange=function(){}; g.h.OH=function(T){var Q=this.state;this.state=T;this.onStateChange(Q);this.callback&&this.callback(this,Q)}; g.h.fM=function(T){T&&this.state=this.xhr.HEADERS_RECEIVED}; g.h.getResponseHeader=function(T){try{return this.xhr.getResponseHeader(T)}catch(Q){return""}}; g.h.Yn=function(){return+this.getResponseHeader("content-length")}; g.h.Zd=function(){return this.S}; g.h.gY=function(){return this.status>=200&&this.status<300&&!!this.S}; g.h.Pf=function(){return this.T.totalLength>0}; g.h.dY=function(){var T=this.T;this.T=new oV;return T}; g.h.k0=function(){return this.T}; g.h.abort=function(){this.wd=!0;this.xhr.abort()}; g.h.gQ=function(){return!0}; g.h.Cj=function(){return this.L}; g.h.dw=function(){return""};g.h=exy.prototype;g.h.getResponseHeader=function(T){return T==="content-type"?this.T.get("type"):""}; g.h.abort=function(){}; g.h.uW=function(){return!0}; g.h.Yn=function(){return this.range.length}; g.h.Zd=function(){return this.loaded}; g.h.gY=function(){return!!this.loaded}; g.h.Pf=function(){return!!this.S.totalLength}; g.h.dY=function(){var T=this.S;this.S=new oV;return T}; g.h.k0=function(){return this.S}; g.h.gQ=function(){return!0}; g.h.Cj=function(){return!!this.error}; g.h.dw=function(){return this.error};g.h=Eg5.prototype;g.h.start=function(T){var Q={credentials:"include",cache:"no-store"};Object.assign(Q,this.C);this.Y&&(Q.signal=this.Y.signal);T=new Request(T,Q);fetch(T).then(this.D,this.onError).then(void 0,ve)}; g.h.onDone=function(){this.wd()||this.m1.Ex()}; g.h.getResponseHeader=function(T){return this.responseHeaders?this.responseHeaders.get(T):null}; g.h.uW=function(){return!!this.responseHeaders}; g.h.Zd=function(){return this.S}; g.h.Yn=function(){return+this.getResponseHeader("content-length")}; g.h.gY=function(){return this.status>=200&&this.status<300&&!!this.S}; g.h.Pf=function(){return!!this.T.totalLength}; g.h.dY=function(){var T=this.T;this.T=new oV;return T}; g.h.k0=function(){return this.T}; g.h.wd=function(){return this.N}; g.h.abort=function(){this.L&&this.L.cancel().catch(function(){}); this.Y&&this.Y.abort();this.N=!0}; g.h.gQ=function(){return!0}; g.h.Cj=function(){return this.B}; g.h.dw=function(){return this.errorMessage};g.h=y_6.prototype;g.h.onDone=function(){if(!this.wd){this.status=this.xhr.status;try{this.response=this.xhr.response,this.S=this.response.byteLength}catch(T){}this.T=!0;this.m1.Ex()}}; g.h.Hw=function(){this.xhr.readyState===2&&this.m1.ZN()}; g.h.M_=function(T){this.wd||(this.status=this.xhr.status,this.T||(this.S=T.loaded),this.m1.La((0,g.XY)(),T.loaded))}; g.h.uW=function(){return this.xhr.readyState>=2}; g.h.getResponseHeader=function(T){try{return this.xhr.getResponseHeader(T)}catch(Q){return g.rB(Error("Could not read XHR header "+T)),""}}; g.h.Yn=function(){return+this.getResponseHeader("content-length")}; g.h.Zd=function(){return this.S}; g.h.gY=function(){return this.status>=200&&this.status<300&&this.T&&!!this.S}; g.h.Pf=function(){return this.T&&!!this.response&&!!this.response.byteLength}; g.h.dY=function(){var T=this.response;this.response=void 0;return new oV([new Uint8Array(T)])}; g.h.k0=function(){return new oV([new Uint8Array(this.response)])}; g.h.abort=function(){this.wd=!0;this.xhr.abort()}; g.h.gQ=function(){return!1}; g.h.Cj=function(){return!1}; g.h.dw=function(){return""};g.S(Cr,g.x);Cr.prototype.TW=function(){if(!this.zb.length)return[];var T=this.zb;this.zb=[];this.L=g.m9(T).info;return T}; Cr.prototype.Ez=function(){return this.zb}; Cr.prototype.EK=function(){g.x.prototype.EK.call(this);this.T=null;this.zb.length=0;this.MO.length=0;this.L=null};g.S(z_,g.x);g.h=z_.prototype; g.h.YWk=function(){if(!this.wd()){var T=(0,g.XY)(),Q=!1;if(this.policy.RM){T=T-(this.timing.S>0?this.timing.j:this.timing.T)-this.timing.vy()*1E3;var k=Ow(XM(this),!1);T>=2E3*k?Q=!0:T>=this.policy.SP*k&&(this.T=this.policy.xE)}else if(this.timing.S>0){if(this.N){this.policy.Fk&&(this.T=0);return}var l=this.timing.zv();this.timing.T2();var v=this.timing.zv();v-l>=this.policy.OW*.8?(this.T++,this.logger.debug(function(){return"Mispredicted by "+(v-l).toFixed(0)}),Q=this.T>=5):this.T=0}else{var L=T- this.timing.RR(); this.policy.xE&&L>0&&(this.T+=1);Q=Ow(XM(this),!1)*this.policy.c9;(Q=L>Q*1E3)&&this.logger.debug(function(){return"Elbow late by "+L.toFixed(3)})}this.T>0&&this.m1.Xa(); Q?this.Q$():this.S.start()}}; g.h.Q$=function(){this.Y=!0;this.m1.qD();this.lastError="net.timeout";dQ(this)}; g.h.canRetry=function(T){var Q=XM(this);T=T?this.policy.A7:this.policy.vA;return Q.timedOut0&&(Q=Uj(Q.T,0),T.ubyte=Q,k===1&&Q===0&&(T.b248180278=!0))}this.W1&&(T.rc=this.policy.iy?this.W1:this.W1.toString());this.policy.Hn&&this.d1&&(T.tr=this.d1);T.itag=this.info.MO[0].T.info.itag;T.ml=""+ +this.info.MO[0].T.ZG();T.sq=""+this.info.MO[0].NO;this.eY&&(T.ifi=""+ +yp(this.info.Xs.S));this.W1!==410&&this.W1!==500&&this.W1!==503||(T.fmt_unav="true");var l;(k=this.errorMessage||((l=this.xhr)==null?void 0: l.dw()))&&(T.msg=k);this.d2&&(T.smb="1");this.info.isDecorated()&&(T.sdai="1");return T}; g.h.z1=function(){return HP5(this.timing)}; g.h.dw=function(){return this.xhr.dw()||""}; g.h.cV=function(){return this.isComplete()||this.timing.cV()}; g.h.La=function(){!this.wd()&&this.xhr&&(this.W1=this.xhr.status,this.policy.Bs&&this.N_&&this.Iw(!1),this.HH()?this.fM(2):!this.yX&&this.cV()&&(this.fM(),this.yX=!0))}; g.h.ZN=function(){if(!this.wd()&&this.xhr){if(!this.xR&&this.xhr.uW()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var T=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.xR=((0,g.XY)()-T)/1E3}this.xhr.uW()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Bp&&!lJb()&&g.ri("yt-player-headers-readable",!0,2592E3);T=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var Q=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),k;(k=this.Xi)==null||k.stop();this.hV=T||this.hV; this.GW=Q||this.GW}}; g.h.Ex=function(){var T=this.xhr;if(!this.wd()&&T){this.W1=T.status;T=this.Nw(T);if(this.policy.Hn){var Q;(Q=this.Xi)==null||Q.stop()}T===5?dQ(this.jV):this.OH(T);this.jV.S.stop()}}; g.h.Nw=function(T){var Q=this;bog(this);if(Nm(this.jV,this.xhr.status,this.Up?this.timing.z9||this.rK:this.xhr.gY(),!1,this.El))return 5;var k="";AU(this.jV,this.xhr)&&(k=k76(this.jV,this.xhr));if(k)return tw(XM(this.jV)),this.info.Pg(this.eY,k),3;k=T.Zd();if(this.Qb){this.Iw(!0);bog(this);if(Nm(this.jV,this.xhr.status,this.timing.z9||this.rK,!1,this.El))return 5;if(!this.Kg){if(this.rK)return tw(XM(this.jV)),3;this.jV.lastError="net.closed";return 5}}else{if(Nm(this.jV,this.xhr.status,this.xhr.gY(), !1,this.El))return 5;var l=this.info.L;if(l&&l!==k||T.Cj())return this.jV.lastError="net.closed",5;this.Iw(!0)}l=Wk5(this)?T.getResponseHeader("X-Bandwidth-Est"):0;if(T=Wk5(this)?T.getResponseHeader("X-Bandwidth-Est3"):0)this.Rh=!0,this.policy.dE&&(l=T);Qt5(this.jV,k,l?Number(l):0,this.info.MO[0].type===5);this.logger.debug(function(){var v=Q.timing;return"Succeeded, rtpd="+(v.Tg*1E3+v.T-Date.now()).toFixed(0)}); return 4}; g.h.canRetry=function(){this.wd();var T=this.info.isDecorated();return this.jV.canRetry(T)}; g.h.onStateChange=function(){this.isComplete()&&(this.policy.Wz?this.qD():this.timing.deactivate())}; g.h.Q$=function(){this.jV.Q$()}; g.h.Xa=function(){this.callback&&this.callback(this,this.state)}; g.h.Jn=function(){return this.jV.Jn()}; g.h.dispose=function(){hU.prototype.dispose.call(this);this.jV.dispose();var T;(T=this.Xi)==null||T.dispose();this.policy.Wz||this.qD()}; g.h.qD=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.h.TW=function(){if(!this.Ez().length)return[];this.VK=!0;return this.N_.TW()}; g.h.HH=function(){if(this.state<1)return!1;if(this.N_&&this.N_.zb.length)return!0;var T;return((T=this.xhr)==null?0:T.Pf())?!0:!1}; g.h.Ez=function(){this.Iw(!1);return this.N_?this.N_.Ez():[]}; g.h.Iw=function(T){try{if(T||this.xhr.uW()&&this.xhr.Pf()&&!AU(this.jV,this.xhr)&&!this.TQ)this.N_||(this.N_=new Cr(this.policy,this.info.MO)),this.xhr.Pf()&&(this.Qb?this.Qb.feed(this.xhr.dY()):BJ(this.N_,this.xhr.dY(),T&&!this.xhr.Pf()))}catch(Q){this.Qb?d66(this,Q):g.rB(Q)}}; g.h.qt=function(T,Q){switch(T){case 21:T=Q.split(1).ow;N8T(this,T);break;case 22:this.Kg=!0;BJ(this.N_,new oV([]),!0);break;case 43:if(T=w5(new sj(Q),1))this.info.Pg(this.eY,T),this.rK=!0;break;case 45:Q=Gq(new sj(Q));T=Q.Nh;Q=Q.V7;T&&Q&&(this.Of=T/Q);break;case 44:this.Nt=$o5(new sj(Q));var k,l,v;!this.timing.z9&&((k=this.Nt)==null?void 0:k.action)===4&&((l=this.Nt)==null?0:(v=l.mM)==null?0:v.Up)&&(this.Up=this.Nt.mM.Up);break;case 53:this.policy.Hn&&(T=OFI(new sj(Q)).Vm)&&(this.Xi||(this.Vm=T,this.Xi= new g.FA(this.kp,T,this)),this.Xi.start());break;case 60:this.AN=fP(new sj(Q));break;case 58:if(T=h3C(new sj(Q)))this.WA=T,T.WA===3&&(this.El=!0)}}; g.h.QQ=function(T,Q,k,l){k||this.timing.QQ(l);if(T!==21)return!1;if(T=this.policy.Bs)if(T*=this.info.MO[0].T.info.qY,Q.totalLength+k!==l&&Q.totalLength0)return!1;if(!this.xhr.uW())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Qb)var T=!this.info.L;else this.xhr.Yn()?T=!1:(T=this.xhr.getResponseHeader("content-type"),T=T==="audio/mp4"||T==="video/mp4"||T==="video/webm");if(!T)return!1;if(isNaN(this.info.Jx)){T=this.xhr.getResponseHeader("x-head-seqnum");var Q=this.timing.policy.C?1:0;if(!T)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(T)>this.info.MO[0].NO+Q)return!1}return!0}; g.h.T7=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.h.UI=function(){this.xhr&&(this.hV=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.hV}; g.h.oR=function(){this.xhr&&(this.GW=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.GW}; g.h.SZ=function(){return this.jV.SZ()}; g.h.kp=function(){if(!this.wd()&&this.xhr){this.d1="heartbeat";var T=this.jV;T.T+=2;this.Xa()}};g.S(Kr,Ux);g.h=Kr.prototype;g.h.Jk=function(T,Q){var k=(T-this.B)/1E3,l=Q-this.L;this.S>0?l>0&&(this.hj&&(k>.2||l<1024?(this.Y+=k,k>.2&&rwI(this,.05,l)):rwI(this,k,l)),this.Bd&&(this.sK+=l,this.Jj+=k)):Q>this.policy.T&&this.Kn(T,Q);Ux.prototype.Jk.call(this,T,Q)}; g.h.IX=function(T,Q){Rz(this,T,Q);this.Jk(T,Q);this.hj&&(Q=this.L*this.snapshot.stall+this.L/this.snapshot.byterate,this.S>0&&pc(this.V4,this.sK,this.Y),T=(T-this.T)/1E3||.01,this.policy.j&&!(this.S>0)||Od(this.V4,T,this.L,Q,!1))}; g.h.CJ=function(T){Rz(this,T,this.N);var Q=(T-this.B)/1E3;$m(this.V4,Q,0);this.uu(Q,0);!this.hj&&this.S>0||(Q=this.L*this.snapshot.stall+this.L/this.snapshot.byterate,this.S>0&&(this.Y+=(T-this.B)/1E3,pc(this.V4,this.sK,this.Y)),Od(this.V4,(T-this.T)/1E3||.01,this.L,Q,!1,!0))}; g.h.gp=function(T){T=T.o5||2147483647;(T&2)!==2&&(this.Bd=!1);(T&1)===1&&(this.hj=!0)}; g.h.WQ=function(T){T=T.o5||2147483647;(T&2)===2&&(this.Bd=!1);(T&1)===1&&(this.hj=!1)}; g.h.Ne=function(){return this.j}; g.h.G$=function(){var T=this.Bd?this.now()-this.B:0;return Math.max(this.Jj*1E3+T,1)}; g.h.HI=function(){return this.sK*1E3/this.G$()}; g.h.Kn=function(T,Q){T=T===void 0?this.C:T;Q=Q===void 0?this.N:Q;this.S>0||(Ux.prototype.Kn.call(this,T,Q),Q=this.V4,T=(T-this.D)/1E3,Q.j.Q1(1,(this.D-this.T)/1E3),Q.i9.Q1(1,T))}; g.h.aE=function(T){this.p_=T}; g.h.i6=function(){var T=Ux.prototype.i6.call(this);T.rbw=this.HI();T.rbe=+this.Bd;T.gbe=+this.hj;T.ackt=(this.p_-this.T).toFixed();return T}; g.h.T2=function(){}; g.h.zv=function(){return NaN}; g.h.RR=function(){return this.T+this.snapshot.delay*1E3};xR.prototype.qt=function(T,Q){switch(T){case 20:T=new sj(Q);T={LU:B3(T,1),videoId:w5(T,2),itag:B3(T,3),lmt:B3(T,4),xtags:w5(T,5),Vv:B3(T,6),H5:zU(T,8),qE:B3(T,9),vUV:B3(T,10),startMs:B3(T,11),durationMs:B3(T,12),wv:B3(T,14),timeRange:d5(T,15,jDb),Qw:B3(T,16),rP:B3(T,17),clipId:w5(T,1E3)};this.hG(T);break;case 21:this.EP(Q,!1);break;case 22:this.s_(Q);break;case 31:T=b3(Q,aXI);this.wT(T);break;case 52:T=b3(Q,pIb);this.yv(T);break;default:this.Dt(T,Q)}}; xR.prototype.hG=function(){}; xR.prototype.Dt=function(){};g.S(PJ,xR);g.h=PJ.prototype; g.h.Dt=function(T,Q){switch(T){case 35:this.CU(Q);break;case 44:this.MW(Q);break;case 43:this.RI(Q);break;case 53:this.xK(Q);break;case 55:T=new sj(Q);d5(T,1,e36);d5(T,2,y0g);break;case 56:this.fO();break;case 57:this.WV(Q);break;case 42:this.yr(Q);break;case 45:this.lX(Q);break;case 59:this.D1(Q);break;case 51:this.z5(Q);break;case 49:this.gp(Q);break;case 50:this.WQ(Q);break;case 47:this.HY(Q);break;case 58:this.rT(Q);break;case 61:this.m1.LY.aE((0,g.XY)());break;case 66:this.hY(Q);break;case 46:this.OS(Q); break;case 67:this.onSnackbarMessage(Q);break;case 69:this.o3(Q)}}; g.h.z5=function(T){T=new sj(T);T={pzB:Al(T,1,Yg),nQK:Al(T,2,Yg)};this.m1.z5(T)}; g.h.D1=function(T){var Q=new sj(T);T=Ng(Q,1);var k=Ng(Q,2);Q=Ng(Q,3);this.m1.D1(T,k,Q)}; g.h.lX=function(T){T=Gq(new sj(T));this.m1.lX(T)}; g.h.HY=function(T){T=b3(T,K2f);this.m1.HY(T)}; g.h.yr=function(T){T=new sj(T);T={videoId:w5(T,1),formatId:d5(T,2,Yg),endTimeMs:B3(T,3),osj:B3(T,4),mimeType:w5(T,5),Yg:d5(T,6,N2X),indexRange:d5(T,7,N2X),VC:d5(T,8,A0C)};this.m1.yr(T)}; g.h.WV=function(T){T=y0g(new sj(T));this.m1.WV(T)}; g.h.fO=function(){this.m1.fO()}; g.h.CU=function(T){T=utb(new sj(T));this.m1.CU(T)}; g.h.xK=function(T){T=OFI(new sj(T));this.m1.xK(T)}; g.h.MW=function(T){T=$o5(new sj(T));this.m1.MW(T)}; g.h.RI=function(T){T={redirectUrl:w5(new sj(T),1)};this.m1.RI(T)}; g.h.EP=function(T){var Q=Uj(T,0);if(T.totalLength!==1){T=T.split(1).ow;var k=this.S[Q]||null;k&&JU(this.m1.Li,Q,k,T)}}; g.h.s_=function(T){T=Uj(T,0);var Q=this.S[T]||null;Q&&this.m1.s_(T,Q)}; g.h.yv=function(T){this.m1.yv(T)}; g.h.hG=function(T){var Q=T.LU,k=T.H5,l=T.Vv,v=T.rP,L=T.Qw,q=T.qE,Y=T.startMs,U=T.durationMs,R=T.timeRange,Z=T.wv,f=T.clipId,G=Ew(T);T=XuJ.has(bk[""+T.itag]);this.S[Q]=G;this.m1.Cn(G,T,{LU:Q,H5:!!k,Vv:l!=null?l:-1,qE:q!=null?q:-1,startMs:Y!=null?Y:-1,durationMs:U!=null?U:-1,wv:Z,rP:v,Qw:L,clipId:f,timeRange:R})}; g.h.gp=function(T){T={o5:B3(new sj(T),1)};this.m1.gp(T)}; g.h.WQ=function(T){T={o5:B3(new sj(T),1)};this.m1.WQ(T)}; g.h.wT=function(T){this.m1.wT(T)}; g.h.rT=function(T){T=h3C(new sj(T));this.m1.rT(T)}; g.h.hY=function(T){T={Mz:d5(new sj(T),1,HFT)};this.m1.hY(T)}; g.h.onSnackbarMessage=function(T){T=B3(new sj(T),1);this.m1.onSnackbarMessage(T)}; g.h.o3=function(T){T={Ue:Al(new sj(T),1,do5)};this.m1.o3(T)}; g.h.OS=function(T){T=new sj(T);T={reloadPlaybackParams:d5(T,1,IXH),gM:zU(T,2)};this.m1.OS(T)};g.S(HJ,g.x);g.h=HJ.prototype;g.h.eX=function(){return Array.from(this.Wh.keys())}; g.h.Z0=function(T){T=this.Wh.get(T);var Q=T.zb;T.kR+=Q.totalLength;T.zb=new oV;return Q}; g.h.FG=function(T){return this.Wh.get(T).FG}; g.h.yW=function(T){return this.Wh.get(T).yW}; g.h.Cn=function(T,Q,k){this.Wh.get(T)||ncC(this,T,Q);Q=this.Wh.get(T);this.C_?(T=x6t(this,T,k),KuC(this,k.LU,Q,T)):(k.H5?Q.FR=k.wv:Q.CO.push(k),Q.ev.push(k))}; g.h.gr=function(T){var Q;return((Q=this.Wh.get(T))==null?void 0:Q.MO)||[]}; g.h.fM=function(){for(var T=g.B(this.Wh.values()),Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q.f3&&(Q.M_&&Q.M_(),Q.f3=!1)}; g.h.s_=function(T,Q){this.logger.debug(function(){return"[onMediaEnd] formatId: "+Q}); var k=this.Wh.get(Q);tU?k&&!k.FG&&(k.MN.get(T)?k.MN.get(T).TM=!0:k.MN.set(T,{data:new oV,WK:0,TM:!0}),k.yW=!0):k&&!k.yW&&(k.yW=!0)}; g.h.TW=function(T){if(tU){var Q=this.Wh.get(T);if(Q)for(var k=g.B(Q.MN),l=k.next();!l.done;l=k.next()){var v=g.B(l.value);l=v.next().value;v=v.next().value;var L=Q.L6.get(l);if(k0(L[0])){if(!v.TM)continue;var q=v.data,Y=0,U=[];L=g.B(L);for(var R=L.next();!R.done;R=L.next()){R=R.value;var Z=R.L,f=Lx(q,Y,Z);Y+=Z;U.push(new z3(R,f))}Q.lq.push.apply(Q.lq,g.ZH(U))}else if(v.data.totalLength>0||!L[0].range&&v.TM)q=void 0,Y=L[0],U=v.WK,L=v.data,Y.range||(q=v.TM),q=new z3(AWg(Y,Y.S+U,L.totalLength,q),L), v.WK+=q.info.L,Q.lq.push(q);Q.MN.get(l).data=new oV;v.TM&&Q.MN.delete(l)}T=this.Wh.get(T);if(!T)return[];Q=T.lq;T.lq=[];k=g.B(Q);for(l=k.next();!l.done;l=k.next())T.kR+=l.value.info.L;return Q||[]}k=(Q=this.Wh.get(T))==null?void 0:Q.N_;if(!k)return[];this.Iw(T,k);return k.TW()}; g.h.HH=function(T){if(tU)return $R(this,T);var Q,k,l;return!!((k=(Q=this.Wh.get(T))==null?void 0:Q.N_)==null?0:(l=k.Ez())==null?0:l.length)||$R(this,T)}; g.h.Iw=function(T,Q){for(;$R(this,T);){var k=this.Z0(T);var l=T;l=this.Wh.get(l).FG&&!WJ(this,l);BJ(Q,k,l&&uoT(this,T))}}; g.h.EK=function(){g.x.prototype.EK.call(this);for(var T=g.B(this.Wh.keys()),Q=T.next();!Q.done;Q=T.next())Ox(this,Q.value);var k;if((k=this.qL)==null?0:k.dJ)for(T=g.B(this.Wh.values()),Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q.MN.clear(),Q.L6.clear(),Q.lq.length=0,Q.MO.length=0,Q.ev.length=0,Q.CO.length=0;this.Wh.clear()}; var tU=!1;g.S(eJ,g.x);g.h=eJ.prototype;g.h.La=function(){!this.wd()&&this.xhr&&(this.Iw(!1),QE(this.m1,this))}; g.h.ZN=function(){}; g.h.Ex=function(){if(!this.wd()&&this.xhr){var T=this.Nw();T===5?dQ(this.jV):this.OH(T);this.jV.S.stop();var Q;(Q=this.jN)==null||Q.stop()}}; g.h.Nw=function(){var T="";AU(this.jV,this.xhr)&&(T=k76(this.jV,this.xhr));if(T)return this.info.Xs.Pg(this.eY,T),3;this.Iw(!0);if(Nm(this.jV,this.xhr.status,this.xhr.gY(),this.info.u6(),this.El))return 5;if(this.iF)return 3;Qt5(this.jV,this.xhr.Zd(),0,this.u6());this.policy.Z8&&COC(this.m1);return 4}; g.h.Iw=function(T){var Q=this.xhr;if((T||!AU(this.jV,this.xhr))&&Q.Pf()){T=Q.dY();var k=T.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+k}); this.Qb.feed(T)}}; g.h.qt=function(T,Q){this.xhr.gQ()&&T===21&&ptb(this);this.d7.qt(T,Q)}; g.h.QQ=function(T,Q,k,l){k||(this.LY.QQ(l),this.policy.LH&&T===21&&ptb(this));if(T!==21)return!1;this.LY.z9=!0;T=Q.totalLength;k||(this.OQ=Uj(Q,0),Q=Q.split(1).ow);var v=this.policy.hQ,L=this.d7.S[this.OQ],q=this.C_.L.get(L);if(v&&q&&(v*=q.info.qY,T+k!==l&&T0){this.policy.RM&&this.jV.S.stop();T=this.LY.G$();Q=this.LY.HI();var k=WuT(this,T);if(!(Q>k.Fb||k.r3>0&&this.info.GV()>k.r3)){this.cW=(0,g.XY)();var l;(l=this.jN)==null||l.stop();this.policy.Z8&&(l=this.m1,T={h1:Math.round(Q*T/1E3),NU:T},l.policy.Z8&&(l.i9=T,l.GG++));this.Q$()}}}}; g.h.Q$=function(){this.jV.Q$()}; g.h.MW=function(T){this.m1.MW(T,this.IB())}; g.h.RI=function(T){this.iF=!0;this.info.Xs.Pg(this.eY,T.redirectUrl)}; g.h.gp=function(T){this.LY instanceof Kr&&this.LY.gp(T)}; g.h.WQ=function(T){this.LY instanceof Kr&&this.LY.WQ(T)}; g.h.yr=function(T){var Q=T.formatId,k=Ew({itag:Q.itag,lmt:Q.lmt,xtags:Q.xtags}),l,v,L=new ix(((l=T.Yg)==null?void 0:l.first)||0,((v=T.Yg)==null?void 0:v.rb)||0),q,Y;l=new ix(((q=T.indexRange)==null?void 0:q.first)||0,((Y=T.indexRange)==null?void 0:Y.rb)||0);this.C_.L.get(k)||(k=T.VC||{},k.mimeType=T.mimeType,k.itag=Q.itag,k.lastModified=""+(Q.lmt||0),k.xtags=Q.xtags,T=this.C_,Q=W9(""),k=OE(k,null),ny(T,new Dj(Q,k,L,l)))}; g.h.lX=function(T){this.m1.lX(T,this.IB())}; g.h.onSnackbarMessage=function(T){if(this.policy.Q3)this.m1.onSnackbarMessage(T)}; g.h.o3=function(T){this.policy.iK&&this.m1.o3(T,this.IB())}; g.h.wT=function(T){this.Dm=T;this.vN=(0,g.XY)();this.m1.wT(T)}; g.h.D1=function(T,Q,k){this.m1.D1(T,Q,k)}; g.h.WV=function(T){T.scope===2&&(this.BW=T);this.m1.WV(T)}; g.h.fO=function(){this.B2=!0;this.m1.fO()}; g.h.z5=function(T){this.policy.bX&&this.m1.z5(T)}; g.h.HY=function(T){this.m1.HY(T,this.IB())}; g.h.rT=function(T){T.WA===3&&(this.El=!0);this.m1.rT(T)}; g.h.hY=function(T){this.m1.hY(T)}; g.h.OS=function(T){this.m1.OS(T)}; g.h.canRetry=function(){this.wd();return this.jV.canRetry(!1)}; g.h.dispose=function(){if(!this.wd()){g.x.prototype.dispose.call(this);this.jV.dispose();var T;(T=this.jN)==null||T.dispose();this.OH(-1);this.qD()}}; g.h.OH=function(T){this.state=T;QE(this.m1,this)}; g.h.u6=function(){return this.info.u6()}; g.h.kZ=function(){return this.B2}; g.h.qw=function(){return this.BW}; g.h.Cn=function(T,Q,k){k.clipId&&(this.clipId=k.clipId);this.policy.S&&!Q&&(this.qB=k.qE);this.Li.Cn(T,Q,k);if(this.policy.XU&&this.Dm&&this.LY instanceof fr){var l=this.Dm.pP;this.LY.Cn(k.durationMs/1E3,Q,l>0&&k.qE+1>=l)}this.Li.Wh.get(T).dI=!0}; g.h.s_=function(T,Q){this.Li.s_(T,Q)}; g.h.yv=function(T){this.requestIdentifier=T}; g.h.TW=function(T){return this.Li.TW(T)}; g.h.gr=function(T){return this.Li.gr(T)}; g.h.HH=function(T){return this.Li.HH(T)}; g.h.eX=function(){return this.Li.eX()}; g.h.aG=function(){return 1}; g.h.IB=function(){return this.LY.requestNumber}; g.h.yK=function(){return this.requestIdentifier}; g.h.IK=function(){return this.eY.IK()}; g.h.Zc=function(){this.qD()}; g.h.qD=function(){this.LY.deactivate();var T;(T=this.xhr)==null||T.abort()}; g.h.isComplete=function(){return this.state>=3}; g.h.s8=function(){return this.state===3}; g.h.u5=function(){return this.state===5}; g.h.lj=function(){return this.state===4}; g.h.qj=function(){return this.isComplete()}; g.h.gT=function(){return this.state>=1}; g.h.Jn=function(){return this.policy.Fk?this.jV.Jn():0}; g.h.Xa=function(){this.policy.Fk&&QE(this.m1,this)}; g.h.VM=function(){return U0T(this.info)}; g.h.SZ=function(){return this.jV.SZ()}; g.h.HA=function(){var T=l85(this.jV);Object.assign(T,ZnJ(this.info));T.req="sabr";T.rn=this.IB();var Q;if((Q=this.xhr)==null?0:Q.status)T.rc=this.policy.iy?this.xhr.status:this.xhr.status.toString();var k;(Q=(k=this.xhr)==null?void 0:k.dw())&&(T.msg=Q);this.cW&&(k=WuT(this,this.cW-this.LY.Ne()),T.letm=k.wx,T.mrbps=k.Fb,T.mram=k.r3);return T};$6g.prototype.tick=function(T,Q){this.ticks[T]=Q?window.performance.timing.navigationStart+Q:(0,g.XY)()};g.S(Ex,g.ox);g.h=Ex.prototype; g.h.WC=function(T,Q,k,l){if(this.policy.xs&&this.policy.S){var v=T.Bn||null;v?(LNI(this,T.NO,QX(this,T.startTime,T.NO),{Bn:v,NO:T.NO,t5:!!Q,bK:k},this.L),l&&this.L&&this.L.zQ(T.NO,T.startTime,this.S,(Q==null?void 0:Q.T)||[],(Q==null?void 0:Q.S)||[],(Q==null?void 0:Q.Y)||[],k,(Q==null?void 0:Q.gN)||0,(Q==null?void 0:Q.L)||void 0)):this.S===1&&i$(this,5,"noad")}else{var L=!1;this.policy.S&&(L=k?this.xm===T.NO:this.hj===T.NO);if(this.L&&l&&!L){l=[];L=[];var q=[],Y=void 0,U=0;Q&&(l=Q.T,L=Q.S,q=Q.Y,Y= Q.L,U=Q.gN,this.T9("sdai",{sq:T.NO,ssvicpns:l.join("."),ssvid:L.join(".")}));this.policy.S&&(k?this.xm=T.NO:this.hj=T.NO);this.L.zQ(T.NO,T.startTime,this.S,l,L,q,k,U,Y)}this.policy.S?k&&(this.S===1&&i$(this,5,"noad"),T.NO!==((v=this.T)==null?void 0:v.NO)&&(ljg(this,T,Q,k),isNaN(T.startTime)||o05(this,T.NO,QX(this,T.startTime,T.NO),!!Q,this.L))):k&&ljg(this,T,Q)}}; g.h.L3=function(T,Q,k){var l=this.videoTrack.T.index.a_()<=Q;this.T={Bn:T,NO:Q,t5:k};l&&ym(this,T,Q)}; g.h.t1=function(){this.L&&this.L.t1()}; g.h.T9=function(T,Q,k){(T!=="sdai"||this.policy.Hf||(k===void 0?0:k))&&this.loader.T9(T,Q)}; g.h.EY=function(T,Q){var k=this.videoTrack.T.index.ll(T);if(k>=0){var l;var v=((l=Q.Gx.H$(k,2))==null?void 0:l.e2)||"";if(this.policy.S||v)return Q.AY(T,k),Vm(this.loader,T,T,k),this.T9("sdai",{cmskpad:1,t:T.toFixed(3),sq:k}),!0}this.T9("sdai",{cmskpad:0,t:T.toFixed(3),sq:k});return!1};g.h=YEC.prototype;g.h.JY=function(T,Q,k){T=T||this.T;this.S.has(T)||(this.T9("sldai",{setadconfig:"noentry",cid:T}),this.S.set(T,{event:"unknown",startTimeSecs:0,bf:0,Mc:[],YW:Date.now()}));var l=this.S.get(T);l?(l.rE=6,l.Mc.push(k),l.mR=Q):this.T9("sldai",{setadconfig:"notfound",cid:T})}; g.h.o3=function(T,Q){var k;if(!((((k=T.Ue)==null?void 0:k.length)||0)<=0)&&(T=T.Ue[0],T.Bn)){var l,v,L,q,Y,U;k=new M6(((l=T.Bn)==null?void 0:l.JK)||0,((v=T.Bn)==null?void 0:v.syd)||0,((L=T.Bn)==null?void 0:L.Ao)||"",((q=T.Bn)==null?void 0:q.identifier)||"",RaX(((Y=T.Bn)==null?void 0:Y.event)||0),(((U=T.Bn)==null?void 0:U.JK)||0)*1E3);Utu(this,k,Q)}}; g.h.Sb=function(T,Q){T!==void 0&&this.j5(T);if(this.T&&(T=this.S.get(this.T),T!=null&&T.mR)){var k={Hm:T.Mc,D4:DE(T.mR||"")||void 0,cuepointId:this.T};T.ST&&(k.dK=T.ST);Q&&(k.tI=aT(Q.split(";")[0]),k.Wv=Q.split(";")[1]||"");T.rE&&(k.rE=T.rE);return k}}; g.h.AY=function(T,Q){this.j5(T);var k=this.S.get(this.T);k?(this.T9("ssskipad",{cid:this.T,sn:Q,mt:T.toFixed(3)}),k.ST=Q):this.T9("ssskipadfail",{cid:this.T,sn:Q,mt:T.toFixed(3)})}; g.h.nV=function(){for(var T=g.B(this.S.values()),Q=T.next();!Q.done;Q=T.next())Q.value.ST=NaN}; g.h.j5=function(T,Q){Q&&(this.L=Q);if(this.T&&(Q=this.S.get(this.T))&&Q.startTimeSecs<=T&&T<=Q.startTimeSecs+Q.bf)return;this.T="";Q=g.B(this.S.entries());for(var k=Q.next();!k.done;k=Q.next()){var l=g.B(k.value);k=l.next().value;l=l.next().value;var v=void 0,L=void 0,q=void 0;if(((v=l)==null?void 0:v.startTimeSecs)<=T&&T<=((L=l)==null?void 0:L.startTimeSecs)+((q=l)==null?void 0:q.bf)){this.T=k;break}}};g.S(v7,g.x);v7.prototype.B5=function(T,Q,k){k=k===void 0?{}:k;this.policy.ID=lc(T,k,this.Y,Q===void 0?!1:Q)};YC.prototype.pJ=function(T){var Q=this;if(this.policy.TB){var k=new Set(T);k.size===this.i9.size&&[].concat(g.ZH(k)).every(function(l){return Q.i9.has(l)})||(this.loader.T9("lwnmow",{itagDenylist:[].concat(g.ZH(T)).join(",")}),this.loader.Qt(!!k.size),this.D=-1,this.i9=k,Uh(this,this.T),this.sK=!0)}}; YC.prototype.B5=function(T,Q,k){k=k===void 0?{}:k;var l=this.policy.ID;this.N.B5(T,Q===void 0?!1:Q,k);if(l!==this.policy.ID){Uh(this,this.T);Rm(this);var v,L;l>this.policy.ID&&((v=this.L)==null?0:uk(v.info))&&((L=this.nextVideo)==null||!uk(L.info))&&(this.z9=!0)}};mr.prototype.FL=function(T){this.timestampOffset=T;this.flush()}; mr.prototype.flush=function(){if(this.T.pos>0){var T={a:this.track.uH(),u:this.T.xo(),pd:Math.round(this.Y),ad:Math.round(this.L)},Q=this.S;if(Q){var k=Q.T.info;T.itag=k.itag;k.T&&(T.xtags=k.T);T.sq=Q.NO;T.st=Q.startTime;T.sd=Q.duration;this.track.policy.O3&&(T.si=Q.Bh());Q.Y&&(T.esl=Q.S+Q.L);Q.Dq()&&(T.eos=1)}isNaN(this.timestampOffset)||(T.to=this.timestampOffset);var l;if(Q=(l=this.track.jr)==null?void 0:l.Tx({})){for(var v in Q)this.B[v]!==Q[v]&&(T["sb_"+v]=Q[v]);this.B=Q}this.track.T9("sbu", T);this.T.reset();this.buffered=[];this.N=this.L=this.Y=0;this.timestampOffset=this.S=void 0}};hA.prototype.dispose=function(){this.qO=!0}; hA.prototype.wd=function(){return this.qO}; g.S(XI,Error);Nv.prototype.skip=function(T){this.offset+=T}; Nv.prototype.je=function(){return this.offset};g.h=iyJ.prototype;g.h.Uy=function(){return this.S}; g.h.JV=function(){return this.S.length?this.S[this.S.length-1]:null}; g.h.FJ=function(){this.S=[];Ds(this);rX(this)}; g.h.Z0=function(T){this.Jj=this.S.shift().info;T.info.equals(this.Jj)}; g.h.gr=function(){return g.IQ(this.S,function(T){return T.info})}; g.h.uH=function(){return!!this.N.info.audio}; g.h.isDrm=function(){return!!this.N.info.jY}; g.h.getDuration=function(){return this.N.index.l6()};g.S(jJ,hU);g.h=jJ.prototype;g.h.onStateChange=function(){this.wd()&&(pr(this.Li,this.formatId),this.T.dispose())}; g.h.HA=function(){var T=a8b(this.Li,this.formatId),Q;var k=((Q=this.Li.Wh.get(this.formatId))==null?void 0:Q.bytesReceived)||0;var l;Q=((l=this.Li.Wh.get(this.formatId))==null?void 0:l.kR)||0;return{expected:T,received:k,bytesShifted:Q,sliceLength:WJ(this.Li,this.formatId),isAnyMediaEndReceived:this.Li.yW(this.formatId)}}; g.h.z1=function(){return 0}; g.h.cV=function(){return!0}; g.h.TW=function(){return this.Li.TW(this.formatId)}; g.h.Ez=function(){return[]}; g.h.HH=function(){return this.Li.HH(this.formatId)}; g.h.SZ=function(){return this.lastError}; g.h.Jn=function(){return 0};g.S(Kf,g.x);g.h=Kf.prototype;g.h.uH=function(){return!!this.T.info.audio}; g.h.JV=function(){return this.Y.JV()}; g.h.Z0=function(T){this.Y.Z0(T);var Q;(Q=this.j)!=null&&(Q.N.add(T.info.NO),Q.T=CdC(Q,Q.Yc,Q.Dd,T,Q.T),Q.L=T,Q.B=(0,g.XY)());this.qY=Math.max(this.qY,T.info.T.info.qY||0)}; g.h.getDuration=function(){return this.T.index.l6()}; g.h.FJ=function(){l$(this);this.Y.FJ()}; g.h.va=function(){return this.Y}; g.h.isRequestPending=function(T){return this.L.length?T===this.L[this.L.length-1].info.MO[0].NO:!1}; g.h.FL=function(T){var Q;(Q=this.j)==null||Q.FL(T);var k;(k=this.D)==null||k.FL(T)}; g.h.T9=function(T,Q){this.loader.T9(T,Q)}; g.h.jO=function(){return this.loader.jO()}; g.h.dispose=function(){var T;(T=this.D)==null||T.flush();g.x.prototype.dispose.call(this)};g.S(v6,g.x);v6.prototype.L=function(){this.S++>15||(this.T=!this.T,new Hc5(this.loader,this.policy,this.V4,this.Xs,this.T),this.delay.start())}; g.h=Hc5.prototype;g.h.ZN=function(){}; g.h.La=function(){}; g.h.Ex=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Zd()===this.size)this.loader.T9("rqs",this.getInfo());else{var T="net.connect";this.xhr.status>200?T="net.badstatus":this.xhr.uW()&&(T="net.closed");this.onError(T)}}; g.h.onError=function(T){var Q=this;this.loader.handleError(T,this.getInfo());JN("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(k){Q.loader.T9("pathprobe",k)},function(k){Q.loader.handleError(k.errorCode,k.details)})}; g.h.getInfo=function(){var T=this.timing.i6();T.shost=FQ(this.location.LB);T.pb=this.size;return T};g.S(L$,g.x); L$.prototype.C=function(T,Q){if(T.C){this.C_.isLive?(T=this.C_.sW&&this.C_.Y?T.T.qT(this.C_.sW,!1):T.T.A5(Infinity),T.Jx=this.Jx):T=T.T.qT(0,!1);if(this.z9){var k=this.z9;T.Jx===0&&(T.N=k.j)}else T.N=this.D;return T}k=T.S;if(!k.T.ZG())return k.T.tH()?(T=EQ(this.N,T.T.info.qY,Q.T.info.qY,0),T=k.T.aT(k,T)):T=k.T.Kh(k),T;var l=k.B-this.loader.getCurrentTime(),v=!k.range||k.L===0&&k.S===0?0:k.range.length-(k.S+k.L),L=k.T;this.H6(T,l)&&v===0&&(this.C_.isManifestless?L=T.T:(L=k.startTime+gH5,k.L&&(L+=k.duration), Lr(T,L),k=T.S,L=k.T));L.tH()?(v=this.L,Q=EQ(this.N,L.info.qY,Q.T.info.qY,l,v.Y.length>0&&v.j===0&&this.loader.Wf),l=VX(T),T=k.T.aT(k,Q),(Q=T.L)&&T.MO.length>1&&(l||T.Xs.L||T.MO[0].T!==k.T?T=k.T.aT(k,T.MO[0].L):(l=T.MO[T.MO.length-1],L=l.L/Q,!l.Y&&L<.4&&(T=k.T.aT(k,Q-l.L))))):(k.NO<0&&(Q=Ly(k),Q.pr=""+T.L.length,this.loader.isSeeking()&&(Q.sk="1"),Q.snss=k.C,this.loader.T9("nosq",Q)),T=L.Kh(k));if(this.policy.xm)for(k=g.B(T.MO),Q=k.next();!Q.done;Q=k.next())Q.value.type=6;return T}; L$.prototype.H6=function(T,Q){if(!VX(T)||!T.T.ZG())return!1;var k=this.L.sK||XLX(T)||Q<=this.policy.vP||this.L.z9;this.logger.debug(function(){return"ready to adapt: "+k+", upgrade pending: "+XLX(T)+", health: "+Q}); return k}; L$.prototype.EK=function(){g.x.prototype.EK.call(this)}; var gH5=2/24;g.S(f$,g.x);f$.prototype.nJ=function(T,Q,k){var l;var v=((l=this.S)==null?void 0:l.reason)==="m"?"m":this.S&&juX(this,this.S)?this.S.reason:"a";this.loader.nJ(new om(T,v,k));Rv(this.loader,Q,T,!0)}; f$.prototype.Xh=function(T,Q){for(var k=g.B(this.xm),l=k.next();!l.done;l=k.next())if(l.value.id===T)return this.N=this.C_.T[T],az(this.qL)&&(this.z9=!0),T=new om(this.N,Q?"t":"m"),Q&&(this.C=!0),T;this.L=[];return null}; f$.prototype.B5=function(T,Q,k){k=k===void 0?{}:k;this.T.B5(T,Q===void 0?!1:Q,k)};mT.prototype.setData=function(T,Q,k){var l=this;k=k===void 0?{}:k;if(Q==null?0:Q.d5)this.Mu=OoI(this,Q,k),T.FO=this.Xs.FO();if(this.u6())return!0;this.data=T;this.T=MFy(T,function(v,L){var q;(q=l.m1)==null||q.Fs(v,L)},Q==null?void 0:Q.L); if(!this.T)return!1;this.S=g.F0(this.T,ChH);return!0}; mT.prototype.u6=function(){return this.requestType===1}; mT.prototype.GV=function(){var T;return((T=this.m1)==null?void 0:T.GV())||0}; mT.prototype.isDecorated=function(){var T;return!((T=this.data)==null||!T.gV)};fe5.prototype.encrypt=function(T){(0,g.XY)();return this.T.T?S8J(this,T,this.iv):(new g.Yt(this.T.S)).encrypt(T,this.iv)}; fe5.prototype.decrypt=function(T,Q){(0,g.XY)();return this.T.T?S8J(this,T,Q):(new g.Yt(this.T.S)).decrypt(T,Q)};g.S(Iv,g.x);Iv.prototype.L=function(T,Q){if(Q){Q=Q instanceof g.J_?Q:hf(this,Q);var k;((k=this.T.get(T))==null?void 0:FQ(k.location))!==FQ(Q)&&this.T.set(T,new d05(Q,T))}else this.T.delete(T)}; Iv.prototype.load=function(){var T=this,Q,k,l,v,L,q,Y,U,R,Z;return g.a(function(f){switch(f.S){case 1:Q=T.T.get(0);g.z5(f,2);var G;if(G=Q&&!T.S)G=FQ(Q.location),G=T.S===wQ(G);if(G){f.Ym(4);break}return g.c(f,XBt(T,T.S?2:0),5);case 5:if(k=f.T)T.L(0,k),yp(k)&&T.L(1,id(k));case 4:g.d6(f,3);break;case 2:l=g.by(f);g.rB(l);if(!T.S){f.Ym(3);break}T.S=!1;return g.c(f,T.load(),7);case 7:return f.return();case 3:if(!T.Hd.experiments.Wd("html5_onesie_probe_ec_hosts")){f.Ym(0);break}g.z5(f,9);v=T;L=v.L;q=3;return g.c(f, XBt(T,1),11);case 11:return L.call(v,q,f.T),Y=T,U=Y.L,R=4,g.c(f,XBt(T,2),12);case 12:U.call(Y,R,f.T);g.d6(f,0);break;case 9:Z=g.by(f),g.rB(Z),g.BT(f)}})}; Iv.prototype.C=function(){var T=this,Q,k;return g.a(function(l){g.Ez(T.j);Q=g.jj(T.Hd.experiments,"html5_onesie_prewarm_max_lact_ms");if(Bd()>=Q)return l.return();(k=T.T.get(0))&&z0J(T,k);g.BT(l)})}; var CFT={oFd:0,ZvB:1,mB9:2,AHe:3,SFV:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};Nj5.prototype.decrypt=function(T){var Q=this,k,l,v,L,q,Y;return g.a(function(U){switch(U.S){case 1:if(Q.T.length&&!Q.T[0].isEncrypted)return U.return();Q.S=!0;Q.fv.z_("omd_s");k=new Uint8Array(16);gG()?l=new g.Ua(T):v=new g.Yt(T);case 2:if(!Q.T.length||!Q.T[0].isEncrypted){U.Ym(4);break}L=Q.T.shift();if(!l){q=v.decrypt(Mg(L.buffer),k);U.Ym(5);break}return g.c(U,l.decrypt(Mg(L.buffer),k),6);case 6:q=U.T;case 5:Y=q;for(var R=0;R=4)){var Q=e3(this),k=this.xhr;Q.rc=k.status;T&&(Q.ab=!0);if(k.dw()){var l="onesie.net";Q.msg=k.dw()}else k.status>=400?l="onesie.net.badstatus":k.gY()?this.Ho||(l="onesie.response.noplayerresponse"):l=k.status===204?"onesie.net.nocontent":"onesie.net.connect";l?this.fail(new g.ZK(l,Q)):(this.z_("or_fs"),this.LY.IX((0,g.XY)(),k.Zd(),0),this.OH(4),this.Kv&&this.T9("rqs",Q));this.Kv&&this.T9("ombre", "ok."+ +!l);this.PY=!1;Jf(this);On5(this.fv);if(!this.bU){this.SN.stop();var v;(v=this.yT)==null||v.stop()}var L;if(T=(L=this.oi)==null?void 0:wBy(L))for(L=0;L1E3){var T;(T=this.LY)==null||T.CJ((0,g.XY)());T=e3(this);if(this.Hd.J3()&&this.xhr instanceof sx){var Q=this.xhr;T.xrs=Q.xhr.readyState;T.xpb=Q.T.totalLength;T.xdc=Q.Y}this.fail(new g.ZK("net.timeout",T))}}else(0,g.XY)()-this.LY.T>1E4&&((Q=this.LY)==null||Q.CJ((0,g.XY)()),this.RZ());this.isComplete()||this.xZ.start()}}; g.h.RZ=function(){this.logger.info("Onesie request timed out");this.PY=!1;if(!Jf(this)){var T=e3(this);T.timeout="1";this.fail(new g.ZK("onesie.request",T))}}; g.h.fail=function(T){var Q=this;T=GX(T);this.Xr?this.yq.RK(T):(this.O_.reject(T),this.Xr=!0);On5(this.fv);this.bU||this.SN.stop();this.z_("or_fe");var k,l;(k=this.oi)==null||(l=wBy(k))==null||l.forEach(function(v){Q.T9("pathprobe",v)}); this.OH(5);this.dispose()}; g.h.isComplete=function(){return this.state>=3}; g.h.lj=function(){return this.state===4}; g.h.qj=function(T){var Q,k;return this.isComplete()||!!((Q=this.Ug)==null?0:(k=Q.get(T))==null?0:k.T)}; g.h.s8=function(){return!1}; g.h.u5=function(){return this.state===5}; g.h.notifySubscribers=function(T){for(var Q=0;Q102400&&!this.Bo&&(this.z_("or100k"),this.Bo=!0);if(T.Pf()){var Q=T.dY(),k=Q.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+k}); this.Kv&&this.T9("ombrss","len."+k);this.Qb.feed(Q)}if(this.Ug)for(var l=g.B(this.Ug.keys()),v=l.next();!v.done;v=l.next()){var L=v.value;T=void 0;(T=this.Ug.get(L))==null||T.fM();this.notifySubscribers(L)}}catch(q){this.fail(q)}}; g.h.IB=function(){return this.LY.requestNumber}; g.h.yK=function(T){return this.Tq.get(T)};g.S(qyC,g.x);g.h=qyC.prototype;g.h.Bz=function(T,Q){this.qO=void 0;COC(this);Sy6(this,T,Q)}; g.h.aZ=function(T){if(this.T.length===0)return!1;var Q=this.T[0];return Q instanceof FJ?T===this.loader.getCurrentTime()*1E3:!(Q instanceof eJ&&R0J(Q.info))&&Math.abs(Q.VM()-T)<50}; g.h.CU=function(T){this.S=T;this.qO=(0,g.XY)()+(T.backoffTimeMs||0)}; g.h.MW=function(T,Q){if(T.action===void 0){var k=this.yq.Pm();k!==void 0&&this.loader.Fi(k)}else if(T.action!==0||!this.Jj)if(T.action===0&&this.policy.HM&&(T.action=2),T.Uz==="sabr.malformed_config"&&this.policy.U1>0&&this.p_++0&&(T.action=2),k={},k.reason=T.Uz,k.action=T.action,k.rn=Q,T.action){case 1:this.policy.S&&this.j&&this.j.eK(void 0, void 0,k);break;case 0:this.Jj=!0;this.videoData.lf()&&this.policy.S&&this.j&&this.j.eK(void 0,void 0,k,!1);this.loader.Md(k);break;case 2:SR5(T.Uz)!=="sabr.config"&&delete k.reason;this.loader.handleError(SR5(T.Uz),k,1);break;case 3:this.policy.d5&&((T=this.C_.j)!=null&&(T.j=!0),this.loader.handleError("sabr.hostfallback",k))}}; g.h.WV=function(T){T&&(this.loader.T9("sabrctxt",{onsbrctxt:T.type,scp:T.scope,dflt:T.sendByDefault}),T.type&&T.sendByDefault&&this.videoData.f_.add(T.type),T.scope!==2&&(T.type&&this.videoData.sabrContextUpdates.set(T.type,T),this.yq.WV(T)))}; g.h.fO=function(){}; g.h.lX=function(T,Q){if(T.Nh!==void 0&&T.V7){var k=T.Nh/T.V7;this.audioTrack.C=!1;this.videoTrack.C=!1;if(this.policy.qO||this.policy.K7||this.policy.Ct)this.loader.Eh.T=!1;var l=this.loader.J_(k,1);this.policy.K_&&this.policy.S&&this.loader.j5(l,Q);this.yq.getCurrentTime()!==k&&(Q={I_:"sabr_seek",SM:!0,gW:!0},T.seekSource&&(Q.seekSource=T.seekSource),Mm(this.loader,k+.1,Q))}}; g.h.onSnackbarMessage=function(T){this.yq.publish("onSnackbarMessage",T)}; g.h.o3=function(T,Q){this.policy.iK&&this.D&&this.loader.o3(T,Q)}; g.h.wT=function(T){T.pP&&T.Sd&&i7(this.C_,T.pP,T.Sd);this.policy.IS&&(T.RC&&T.BN&&(this.C_.Jp=T.RC/T.BN),T.oC&&T.ED&&(this.C_.mK=T.oC/T.ED));Vv(this.videoData)&&!this.videoData.hj&&T.Sd&&this.loader.J_(T.Sd,1E3);T.Dw!=null&&this.yq.Sy(T.Dw);this.policy.XQ&&T.Dk&&(T=((0,g.XY)()-T.Dk)/1E3,this.loader.Ad.Q1(1,T))}; g.h.rT=function(T){this.loader.rT(T)}; g.h.wm=function(T){return this.videoData.f_.has(T)}; g.h.D1=function(T,Q,k){this.policy.L&&this.loader.T9("sabrctxtplc",{start:T?T.join("_"):"",stop:Q?Q.join("_"):"",discard:k?k.join("_"):""});if(T){T=g.B(T);for(var l=T.next();!l.done;l=T.next())this.videoData.f_.add(l.value)}if(Q)for(Q=g.B(Q),T=Q.next();!T.done;T=Q.next())T=T.value,this.videoData.f_.has(T)&&this.videoData.f_.delete(T);if(k)for(k=g.B(k),Q=k.next();!Q.done;Q=k.next())if(Q=Q.value,this.videoData.sabrContextUpdates.has(Q)&&(this.videoData.sabrContextUpdates.delete(Q),Q===3&&(this.videoData.Yb= "")),this.policy.D&&this.T.length)for(T=g.B(this.T),l=T.next();!l.done;l=T.next())if(l=l.value,!(l instanceof FJ)){var v=void 0;((v=l.BW)==null?void 0:v.type)===Q&&(l.BW=void 0)}}; g.h.z5=function(){}; g.h.lF=function(T){this.C=T}; g.h.J2=function(T){this.B=T}; g.h.HY=function(T,Q){ov(this.policy,T,4,Q)}; g.h.hY=function(T){if(T==null?0:T.Mz)if(T=T.Mz.ao){T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())if(Q=Q.value,Q.formatId){var k=this.C_.L.get(Ew(Q.formatId));k&&k.info&&(k.info.debugInfo=Q.debugInfo)}}}; g.h.OS=function(T){this.yq.publish("reloadplayer",T)}; g.h.Dg=function(){return this.yq.Dg()||""}; g.h.GV=function(){var T=er(this.audioTrack,!0)*1E3,Q=er(this.videoTrack,!0)*1E3;return Math.min(T,Q)}; g.h.Fs=function(T,Q){this.loader.T9(T,Q)}; g.h.Zx=function(T){xfX(this.loader,X9f(this.K_,T))}; g.h.EK=function(){g.x.prototype.EK.call(this);this.S=void 0;Sy6(this,!0,"i");this.T=[]};rLt.prototype.yf=function(){this.isSeeking=!0;this.T===1&&ALI(this.Y);this.T===0&&this.lH.uf("transitiondetector");this.B=!1};PO5.prototype.Jh=function(T,Q){if(this.Y)return WRy(this,Q);if(Q=YR(T)){var k=Q.T;k&&k.L&&k.T&&(T=T.L.length?T.L[0]:null)&&T.state>=2&&!T.u5()&&T.info.Jx===0&&(this.Y=T,this.C=k,this.S=Q.info,this.B=this.startTimeSecs=Date.now()/1E3,this.N=this.S.startTime)}return NaN}; PO5.prototype.clear=function(){this.S=this.C=this.Y=null;this.T=this.N=this.B=this.startTimeSecs=NaN;this.L=!1};g.S(ezt,g.x);ezt.prototype.EK=function(){Ea5(this);g.x.prototype.EK.call(this)};var yLH=/[?&]cpn=/;g.S(kO,g.x);kO.prototype.flush=function(){var T={};this.S&&(T.pe=this.S);this.T.length>0&&(T.pt=this.T.join("."));this.T=[];return T}; kO.prototype.stop=function(){var T=this,Q,k,l;return g.a(function(v){if(v.S==1)return g.z5(v,2),g.c(v,(Q=T.Y)==null?void 0:Q.stop(),4);if(v.S!=2)return(k=v.T)&&T.logTrace(k),g.d6(v,0);l=g.by(v);T.S=l_T(l.message);g.BT(v)})}; kO.prototype.logTrace=function(T){this.encoder.reset();this.encoder.add(1);this.encoder.add(T.resources.length);for(var Q=g.B(T.resources),k=Q.next();!k.done;k=Q.next()){k=k.value.replace("https://www.youtube.com/s/","");this.encoder.add(k.length);for(var l=0;l=0?T:g.qR(this.provider),this.hj?F3v.has(this.yU)&&(this.T.size||(this.yU==="PL"?T>=this.S+30:T<=this.z9+30||T>=this.S+1200&&T<=this.z9+86400))&&(g.of(this,T,"vps",[this.yU]),this.S=T):["PL","B","S"].indexOf(this.yU)>-1&&(this.T.size||T>=this.S+30)&&(g.of(this,T,"vps",[this.yU]),this.S=T),this.T.size)){this.sequenceNumber===7E3&&g.rB(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){gT(this,T);var Q=this.provider.yq.ri(); Q=g.B(Q);for(var k=Q.next();!k.done;k=Q.next())k=k.value,this.T9(k.key,k.value);Q=T;k=this.provider.yq.Ir();var l=k.droppedVideoFrames||0,v=k.totalVideoFrames||0,L=l-this.L4,q=v&&!this.kT;l>k.totalVideoFrames||L>5E3?I_t(this,"html5.badframedropcount","df."+l+";tf."+k.totalVideoFrames):(L>0||q)&&g.of(this,Q,"df",[L]);this.L4=l;this.kT=v;this.j>0&&(g.of(this,T,"glf",[this.j]),this.j=0);v$.isActive()&&(T=v$.vR(),Object.keys(T).length>0&&this.T9("profile",T));this.d5&&MR(this,"lwnmow");this.provider.Hd.J3()&& this.provider.V("html5_record_now")&&this.T9("now",{wt:(0,g.XY)()});T={};this.provider.videoData.S&&(T.fmt=this.provider.videoData.S.itag,(Q=this.provider.videoData.Y)&&Q.itag!==T.fmt&&(T.afmt=Q.itag));T.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(T.adcpn=this.adCpn);this.Tc&&(T.addocid=this.Tc);this.contentCpn&&(T.ccpn=this.contentCpn);this.xm&&(T.cdocid=this.xm);this.provider.videoData.cotn&&(T.cotn=this.provider.videoData.cotn);T.el=vi(this.provider.videoData);T.content_v=qf(this.provider.videoData); T.ns=this.provider.Hd.z9;T.fexp=id5(this.provider.Hd.experiments).toString();T.cl=(787819992).toString();(Q=this.provider.videoData.adFormat||this.adFormat)&&(T.adformat=Q);(Q=JL(this.provider.videoData))&&(T.live=Q);this.provider.videoData.bl()&&(T.drm=1,this.provider.videoData.N&&(T.drm_system=K3A[this.provider.videoData.N.flavor]||0),this.provider.videoData.drmProduct&&(T.drm_product=this.provider.videoData.drmProduct));Lh()&&this.provider.videoData.B&&(T.ctt=this.provider.videoData.B,T.cttype= this.provider.videoData.Yz,this.provider.videoData.mdxEnvironment&&(T.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(T.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.IP&&(T.dai_fallback="1")):this.provider.videoData.lC?T.dai="cs":this.provider.videoData.hd&&(T.dai="disabled");T.seq=this.sequenceNumber++;if(this.provider.videoData.V9){if(Q=this.provider.videoData.V9,T&&Q)for(Q.ns==="3pp"&&(T.ns="3pp"),this.Ah.has(Q.ns)&& MR(this,"hbps"),Q.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=Q.shbpslc),this.provider.Hd.experiments.Wd("html5_use_server_qoe_el_value")&&this.f_.delete("el"),k=g.B(Object.keys(Q)),l=k.next();!l.done;l=k.next())l=l.value,this.f_.has(l)||(T[l]=Q[l])}else T.event="streamingstats",T.docid=this.provider.videoData.videoId,T.ei=this.provider.videoData.eventId;this.isEmbargoed&&(T.embargoed="1");Object.assign(T,this.provider.Hd.T);if(Q=T.seq)Q={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+Q,serializedWatchEndpointLoggingContext:this.provider.videoData.YhO},this.serializedHouseBrandPlayerServiceLoggingContext&&(Q.serializedHouseBrandPlayerServiceLoggingContext=Am(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(Q.playerResponseCpn=this.provider.videoData.playerResponseCpn),lg.length&&(Q.decoderInfo=lg),this.remoteControlMode&&(Q.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(Q.remoteConnectedDevices= this.remoteConnectedDevices),Q=g.F0(Q,XIT),Q=g.dJ(Q,4),this.T.set("qclc",[Q]);T=g.sD("//"+this.provider.Hd.VF+"/api/stats/qoe",T);k=Q="";l=g.B(this.T.entries());for(v=l.next();!v.done;v=l.next())L=g.B(v.value),v=L.next().value,L=L.next().value,q=void 0,(q=L)!=null&&q.join&&(v="&"+v+"="+L.join(","),v.length>100?k+=v:Q+=v);ZXg(this,T+Q,k.replace(/ /g,"%20"))}this.T.clear()}}; g.h.Qt=function(T){this.d5=T}; g.h.sZ=function(){if(this.provider.videoData.N){var T=this.provider.videoData.N;MR(this,"eme-"+(T.keySystemAccess?"final":Lc(T)?"ms":Mx(T)?"ytfp":gx(T)?"safarifp":"nonfinal"))}}; g.h.aM=T5(53);g.h.qm=function(T){this.isEmbargoed=T}; g.h.h9=T5(30);g.h.Lz=T5(36);g.h.onPlaybackRateChange=function(T){var Q=g.qR(this.provider);T&&T!==this.Z8&&(g.of(this,Q,"rate",[T]),this.Z8=T);this.hj||this.reportStats(Q)}; g.h.RD=T5(24);g.h.getPlayerState=function(T){if(g.J(T,128))return"ER";if(g.J(T,2048))return"B";if(g.J(T,512))return"SU";if(g.J(T,16)||g.J(T,32))return"S";if(T.isOrWillBePlaying()&&g.J(T,64))return"B";var Q=Ejm[rf(T)];g.G4(this.provider.Hd)&&Q==="B"&&this.provider.yq.getVisibilityState()===3&&(Q="SU");Q==="B"&&g.J(T,4)&&(Q="PB");return Q}; g.h.EK=function(){g.x.prototype.EK.call(this);g.m6(this.qO);g.m6(this.Ig)}; g.h.Vf=function(T){this.isOffline=T;g.of(this,g.qR(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.h.T9=function(T,Q,k){var l=this.gt.indexOf(T)!==-1;l||this.gt.push(T);if(!k||!l){var v=typeof Q!=="string"?RE(Q):Q;v=sa5(v);if(!k&&!/^t[.]/.test(v)){var L=g.qR(this.provider)*1E3;v="t."+L.toFixed()+";"+v}L6(this,"ctmp",T+":"+v);this.logger.debug(function(){return"ctmp "+T+" "+v}); f_y(this);return L}}; g.h.PJ=function(T,Q,k){this.N={VDH:Number(this.T9("glrem",{nst:T.toFixed(),rem:Q.toFixed(),ca:+k})),lO:T,oPq:Q,isAd:k}}; g.h.Xx=function(T,Q,k){g.of(this,g.qR(this.provider),"ad_playback",[T,Q,k])}; g.h.Gh=function(T,Q){var k=g.qR(this.provider)*1E3;L6(this,"daism","t."+k.toFixed(0)+";smw."+(T*1E3).toFixed(0)+";smo."+(Q*1E3).toFixed(0))}; g.h.resume=function(){var T=this;isNaN(this.qO)?GhJ(this):this.qO=g.fh(function(){T.reportStats()},1E4)}; var S0={},Ejm=(S0[5]="N",S0[-1]="N",S0[3]="B",S0[0]="EN",S0[2]="PA",S0[1]="PL",S0[-1E3]="ER",S0[1E3]="N",S0),F3v=new Set(["PL","B","S"]),lg=[];g.S(g.Rf,g.x);g.h=g.Rf.prototype;g.h.initialize=function(T,Q,k){this.logger.debug(function(){return"Initialized, t="+T}); T=T||0;this.policy.T||(Q=dtH(this.T),t$5(this.yq,new om(Q.video,Q.reason)),this.yq.uq(new om(Q.audio,Q.reason)));this.policy.T&&M7(this);this.C_.isManifestless&&ic6(this.N);this.C&&t7X(this.C,this.videoTrack.T);Q=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var l=!this.C_.isManifestless;this.policy.n5&&(l=l||this.C_.KY);if(!this.policy.i9||this.policy.Gg)this.currentTime=l?T:Q;this.policy.qO&&this.seek(this.getCurrentTime(),{}).kE(function(){}); if(this.policy.T){var v;((v=this.z9)==null?0:LRb(v,this.Dg()||""))&&Ns5(this)&&dfb(this,this.videoTrack)&&dfb(this,this.audioTrack)&&(B4f(this.S,this.z9),this.policy.N&&wib(this))}else this.hj&&(AyT(this,this.videoTrack),AyT(this,this.audioTrack),D6y(this.hj),delete this.hj);k?(ryI(this,!1),g.Ez(this.Ii)):(k=this.getCurrentTime()===0,Yx(this.N,this.videoTrack,this.videoTrack.T,k),Yx(this.N,this.audioTrack,this.audioTrack.T,k),this.policy.T&&YyJ(this.S,!0),this.policy.qO||this.seek(this.getCurrentTime(), {}).kE(function(){}),this.timing.tick("gv")); (this.C_.sW||this.C_.Kz||this.C_.xm||this.C_.d5||this.C_.Ig)&&this.yq.wp(this.C_)}; g.h.resume=function(){if(this.isSuspended||this.Wf){this.logger.debug("Resumed.");this.xL=this.Wf=this.isSuspended=!1;try{this.Jh()}catch(T){g.bA(T)}}}; g.h.qG=function(){return!this.policy.Ah}; g.h.wN=function(T,Q){T=T===void 0?!1:T;Q=Q===void 0?!1:Q;this.logger.debug("detaching media source");uZ5(this);this.yq.e1()&&(this.B=NaN);T?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.e6&&this.T9("loader",{setsmb:1}),this.policy.xm=!0,this.FJ()):(ryI(this,!1),Q||this.FJ())}; g.h.setAudioTrack=function(T,Q,k){k=k===void 0?!1:k;if(!this.wd()){var l=!isNaN(Q);k&&l&&(this.audioTrack.qO=Date.now(),this.policy.pG&&(this.zg=!0));if(this.policy.T){var v=this.Y.Xh(T.id,l);this.logger.debug(function(){return"Logging new audio format: "+v.T.info.id}); this.yq.uq(v)}else{var L=za5(this.T,T.id,l);this.logger.debug(function(){return"Logging new audio format: "+L.audio.info.id}); this.yq.uq(new om(L.audio,L.reason))}l?(this.d5=Date.now(),k=this.audioTrack.T.index.ll(Q),this.T9("setAudio",{id:T.id,cmt:Q,sq:k}),k>=0&&(T=this.policy.hd?k+1:k,this.policy.T&&this.Bz(!0,"mosaic"),FI(this.audioTrack,T,NaN,NaN),!this.policy.nG&&this.C_.isLive&&yb(this.C_,T,!1))):this.yq.Lt()}}; g.h.setPlaybackRate=function(T){T!==this.j.getPlaybackRate()&&this.j.setPlaybackRate(T)}; g.h.AJ=function(T){var Q=this.S.C;this.S.lF(T);this.T9("scfidc",{curr:Ew(Q),"new":Ew(T)});T&&Ew(T)!==Ew(Q)&&(this.Bz(!0,"caption change"),this.Jh())}; g.h.ZF=function(T){this.S.J2(T)}; g.h.nJ=function(T){var Q=T.T.info.uH();this.logger.debug(function(){return"New "+(Q?"audio":"video")+" format from SABR: "+JW(T.T.info)}); Q?this.yq.uq(T):t$5(this.yq,T)}; g.h.Zx=function(T){l7(T.MO[T.MO.length-1])&&xfX(this,X9f(this.T,T.MO[0].T))}; g.h.WH=function(){return this.yq.WH()}; g.h.yZ=function(){return this.yq.yZ()}; g.h.rT=function(T){this.yq.G().J3()&&this.T9("sps",{status:T.WA||""});if(T.WA===1)this.yq.videoData.hQ=0;else if(T.WA===2||T.WA===3){var Q=!1;if(T.WA===3){Q=this.yq.jX();var k;this.Hn=(k=T.cu9)!=null?k:Infinity;this.yq.videoData.hQ=Q+1;(Q=ySg(this))&&this.NG(!0)}this.yq.Ng(!0,Q)}}; g.h.aN=function(){return this.yq.aN()}; g.h.TP=function(){return this.yq.TP()}; g.h.sP=function(T){this.yq.sP(T)}; g.h.Pfm=function(){var T,Q=(T=this.yq.T_())==null?void 0:T.getCurrentTime();Q?this.yq.T9("rms",{cta:Q}):g.Ez(this.t6)}; g.h.Jh=function(){KK5(this);if(this.j6&&gf(this.j6)&&!this.j6.Wc()&&(!this.policy.i9||isFinite(this.getCurrentTime()))){var T=P7(this.videoTrack);T=this.policy.mJ&&T&&T.Dq();this.C_.isManifestless&&this.C_.Y&&Jq(this.C_)?(this.B=Jq(this.C_),this.j6.SR(this.B)):Vb(this.C_)&&!T?isNaN(this.B)?(this.B=this.getCurrentTime()+3600,this.j6.SR(this.B)):this.B<=this.getCurrentTime()+1800&&(this.B=Math.max(this.B+1800,this.getCurrentTime()+3600),this.j6.SR(this.B)):this.j6.isView||(T=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.B)||this.B!==T)&&T>0&&(this.j6.SR(T),this.B=T))}if(!this.wd())if($0(this.C_)&&this.C_.u5()){var Q=this.C_;this.handleError("manifest.net.retryexhausted",Q.K_?{rc:Q.W1}:{rc:Q.W1.toString()},1)}else if(this.policy.T)a:{try{Idb(this.S);this.C_.isManifestless&&this.policy.N&&qm(this.Eh);var k;((k=this.j6)==null?0:RL(k))&&this.Qv();YyJ(this.S)}catch(q){g.rB(q);Q=q;if(Q.message.includes("changeType")){this.T9("ctype",{exp:Q.name,msg:Q.message,s:Q.stack});break a}this.handleError("fmt.unplayable", {exp:Q.name,msg:Q.message,s:Q.stack,trg:"sabrslicerqt"},1)}vH5(this);g.Ez(this.K_)}else if(!this.C_.S||!Nxy(this.videoTrack)&&!Nxy(this.audioTrack)||(this.videoTrack.N||this.audioTrack.N)&&this.policy.QR?k=!1:(this.FJ(),this.yq.seekTo(Infinity,{I_:"checkLoaderTracksSync",J_:!0}),k=!0),!k){KK5(this);this.C_.isManifestless&&(ASy(this.videoTrack),ASy(this.audioTrack),qm(this.Eh),(k=YR(this.videoTrack))&&k.T&&(k=k.T.L&&!this.policy.lS,this.T9(k===this.policy.C.Jy?"strm":"strmbug",{strm:k,sfmp4:this.policy.C.Jy, dfs:this.policy.lS},!0)));if(this.j6)this.Qv();else if(this.policy.Y){var l;k=!1;if(this.policy.B9){var v;T=g.B([this.videoTrack,this.audioTrack]);for(v=T.next();!v.done;v=T.next()){var L=v.value;for(v=YR(L);v&&L.JV()!==P7(L);v=YR(L))L.Z0(v);k=k||!!v}}else(Q=YR(this.videoTrack))&&this.videoTrack.Z0(Q),(l=YR(this.audioTrack))&&this.audioTrack.Z0(l);W7(this.videoTrack)&&W7(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(Q||l||k)&&Tj(this)}bX5(this);Yx(this.N,this.videoTrack, this.videoTrack.T,!1);Yx(this.N,this.audioTrack,this.audioTrack.T,!1);this.policy.zB||HXb(this,this.videoTrack,this.audioTrack);pLC(this.N,this.videoTrack,this.audioTrack);pLC(this.N,this.audioTrack,this.videoTrack);vH5(this);this.C&&(Q=this.C,Q.Y?(l=Q.B+Q.policy.bx,Q.L||(l=Math.min(l,Q.startTimeSecs+Q.policy.eO)),Q=Math.max(0,l*1E3-Date.now())):Q=NaN,isNaN(Q)||g.Ez(this.gt,Q));g.Ez(this.K_)}}; g.h.Md=function(T){this.yq.Md(T)}; g.h.Qv=function(){var T=this;if(this.j6){var Q=this.j6.T,k=this.j6.S;Uzy(this,this.audioTrack);Uzy(this,this.videoTrack);var l=piT(this);if(l){if(this.policy.g_){if(!Q.A1()){var v=YR(this.audioTrack);if(v){if(!UF(this,this.audioTrack,Q,v.info))return;JyJ(this,this.audioTrack,Q,v)}}if(!k.A1()&&(v=YR(this.videoTrack))){if(!UF(this,this.videoTrack,k,v.info))return;JyJ(this,this.videoTrack,k,v)}}this.qO||(this.qO=(0,g.XY)(),this.logger.debug(function(){return"Appends pause start "+T.qO+" reason "+l}), this.policy.L&&this.T9("apdps",{r:l}))}else if(this.qO&&(OXb(this,this.qO),this.qO=0),WKt(this),v=!1,iXX(this,this.videoTrack,k)&&(v=!0,Fuu(this.timing),Vv5(this.timing)),this.j6&&!this.j6.FG()&&(iXX(this,this.audioTrack,Q)&&(v=!0,Ecu(this.timing),TdC(this.timing)),!this.wd()&&this.j6))!this.policy.Ah&&W7(this.videoTrack)&&W7(this.audioTrack)&&gf(this.j6)&&!this.j6.Wc()&&(k=!1,k=P7(this.audioTrack).T,k=k===this.C_.T[k.info.id])&&(this.logger.debug("Setting EOS"),pZt(this.j6),bwI(this.schedule),this.pn("e")), v&&!this.j6.isAsync()&&Tj(this)}}; g.h.pn=function(T){if(this.policy.Rq&&this.C_.isManifestless){var Q=this.videoTrack.T;if(Q){var k=Q.index.a_(),l=-1,v=-1;Q.index instanceof IX&&(l=Q.index.UI(),v=Q.index.l6());this.yq.pn(T,k,l,v)}}}; g.h.Q6=function(T){var Q,k=T===((Q=this.j6)==null?void 0:Q.T)?this.audioTrack:this.videoTrack,l;if((l=YR(k))==null?0:l.isLocked){if(this.yq.G().J3()){var v;this.T9("eosl",{ounlock:(v=YR(k))==null?void 0:v.info.Bh()})}var L;lRI(this,T===((L=this.j6)==null?void 0:L.T))}var q;if(this.policy.pG&&T===((q=this.j6)==null?void 0:q.T)&&this.Tg){Q=this.Tg-this.getCurrentTime();var Y;this.yq.T9("asl",{l:Q,xtag:(Y=P7(this.audioTrack))==null?void 0:Y.T.info.T});this.zg=!1;this.Tg=0}T.u0()&&T.LG().length===0&& (T.YR(),this.j6&&!this.j6.u0()&&(this.yq.G().J3()&&this.yq.T9("rms",{ld:"seek"}),this.j6.B=performance.now(),this.yq.Ba(),this.yq.G().J3()&&g.Ez(this.t6)));var U;(U=k.D)!=null&&Im(U,0);this.policy.DP?Emy(this):this.Jh()}; g.h.eHB=function(T){if(this.j6){var Q=P7(T===this.j6.T?this.audioTrack:this.videoTrack);if(T=T.z7())for(var k=0;k5&&Y.z9.shift();Q=Q.NO;var U;if((U=this.yq.getVideoData())==null?0:U.enableServerStitchedDai)U=aEt(this.audioTrack,Q),k=aEt(this.videoTrack,Q),U!==0&&k!==0&&U!==k&&this.handleError("ssdai.avsync",{sq:Q,a:U,v:k},0)}}; g.h.L3=function(T,Q,k,l){T.info.video&&this.L.L3(Q,k,l)}; g.h.pJ=function(T){this.T.pJ(T)}; g.h.Av=T5(12);g.h.TO=function(){if(g.J(this.yq.getPlayerState(),8)){var T,Q,k=(Q=(T=this.yq.T_())==null?void 0:T.getCurrentTime())!=null?Q:this.yq.getCurrentTime(),l;(l=this.QR)==null||DY6(l,k)}var v;(v=this.Gg)==null||g.Ez(v)}; g.h.g$=function(){return this.videoTrack.C||this.audioTrack.C}; g.h.seek=function(T,Q){if(this.wd())return aS();if(this.g$())return aS("seeking to head");if(this.policy.qO&&!isFinite(T))return bPX(this.Eh),g.DT(Infinity);KK5(this);M7(this);this.policy.T||bX5(this,T);this.j6&&this.j6.T&&this.j6.S&&!this.yq.getVideoData().Uf&&(this.j6.T.isLocked()||this.j6.S.isLocked())&&this.yq.Lt({reattachOnLockedBuffer:1,vsb:""+this.j6.S.isLocked(),asb:""+this.j6.T.isLocked()});var k=this.getCurrentTime(),l=this.Eh.seek(T,Q);if(!this.policy.i9||this.policy.Gg)this.currentTime= l;jr(this.L,T,k,this.policy.CH&&!Q.SM);Tj(this);return g.DT(l)}; g.h.aZ=function(T){return this.policy.T&&this.S.aZ(T)}; g.h.wm=function(T){return this.S.wm(T)}; g.h.Bz=function(T,Q){this.S.Bz(T,Q)}; g.h.getCurrentTime=function(){if(this.policy.i9){var T=this.Px()||0;return this.yq.getCurrentTime(!0)-T}return this.currentTime}; g.h.If=function(){return this.audioTrack.T.info}; g.h.My=function(){return this.videoTrack.T.info}; g.h.P0=function(){return this.audioTrack.T.info.yR}; g.h.nw=function(){return this.videoTrack.T.info.yR}; g.h.EK=function(){try{this.wN(),l$(this.audioTrack),l$(this.videoTrack),TD(this.audioTrack),TD(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.x.prototype.EK.call(this)}catch(T){g.bA(T)}}; g.h.handleError=function(T,Q,k){k=k===void 0?0:k;var l=fu(k);T==="fmt.unplayable"&&this.C_.isLive&&(this.policy.g_=!1,EE(this.C_));Q=new g.ZK(T,Q,k);g.qp(this);RE(Q.details);this.yq.handleError(Q);T!=="html5.invalidstate"&&Q.errorCode!=="fmt.unplayable"&&T!=="fmt.unparseable"&&l&&this.dispose()}; g.h.Tx=function(){var T=P7(this.audioTrack),Q=P7(this.videoTrack);T={lct:this.getCurrentTime().toFixed(3),lsk:this.Eh.isSeeking(),lmf:this.T.T.isLocked(),lbw:JS(this.schedule).toFixed(3),lhd:WL(this.schedule).toFixed(3),lst:((this.schedule.C.hx()||0)*1E9).toFixed(3),laa:T?T.Bh():"",lva:Q?Q.Bh():"",lar:this.audioTrack.S?this.audioTrack.S.Bh():"",lvr:this.videoTrack.S?this.videoTrack.S.Bh():"",laq:""+$C(this.audioTrack),lvq:""+$C(this.videoTrack)};this.j6&&!this.j6.FG()&&this.j6.T&&this.j6.S&&(T.lab= FL(this.j6.T.LG()),T.lvb=FL(this.j6.S.LG()));this.qO&&(T.lapt=((0,g.XY)()-this.qO).toFixed(0),T.lapr=piT(this));this.Bd&&(T.lapmabht=((0,g.XY)()-this.Bd).toFixed(0),T.lapmabh=vJ(this,this.audioTrack).toFixed(0));this.Jj&&(T.lapmvbht=((0,g.XY)()-this.Jj).toFixed(0),T.lapmvbh=vJ(this,this.videoTrack).toFixed(0));this.sK&&(T.lapsdai=((0,g.XY)()-this.sK).toFixed(0));return T}; g.h.FJ=function(){try{this.policy.T&&this.S.Bz(!1,"pending"),this.audioTrack.FJ(),this.videoTrack.FJ()}catch(T){g.bA(T)}this.policy.Y=""}; g.h.Jz=function(){return Fe(this.j)}; g.h.T9=function(T,Q,k){this.yq.T9(T,Q,k===void 0?!1:k)}; g.h.Dg=function(){return this.yq.Dg()}; g.h.J_=function(T,Q){T/=Q;isNaN(this.timestampOffset)&&fI5(this,T-Math.min(T,this.policy.ER));return(T-this.timestampOffset)*Q}; g.h.Px=function(){return this.timestampOffset}; g.h.isSeeking=function(){return this.Eh.isSeeking()}; g.h.t1=function(){this.L.t1()}; g.h.B5=function(T,Q,k){Q=Q===void 0?!1:Q;k=k===void 0?{}:k;this.policy.T?this.Y.B5(T,Q,k):this.T.B5(T,Q,k)}; g.h.EY=function(T,Q){if(this.D&&this.L.EY(T,this.D)){if(this.policy.K_&&this.policy.S){var k=this.videoTrack.T.index.ll(T),l;(l=this.xm)==null||l.AY(T,k)}fI5(this,this.timestampOffset-Q);Tj(this);this.policy.S&&(EE(this.C_),TD(this.audioTrack),TD(this.videoTrack),this.FJ());return!0}Q=this.videoTrack.T.index.ll(T);this.handleError("ad.skipfailed",{dec:!!this.D,t:T.toFixed(3),sq:Q});return!1}; g.h.getManifest=function(){return this.C_}; g.h.isOffline=function(){return!!this.yq.getVideoData().cotn}; g.h.eN=function(T,Q){this.yq.eN(T,Q)}; g.h.R3=function(T){if(this.policy.T)this.S.Bz(!0,"utc"),this.Jh();else{var Q=this.yq.getVideoData().vl;if(Q){var k=this.N;k.MK=T;k.vl=Q;ZI(this)}}}; g.h.Fi=function(T){this.videoTrack.C=!1;this.audioTrack.C=!1;this.Eh.T=!1;this.yq.Fi(T)}; g.h.u1=function(T){this.Eh.u1(T-this.Px())}; g.h.Jd=function(){this.yq.Jd()}; g.h.NG=function(T){T!==this.policy.NV&&((this.policy.NV=T)||this.Jh())}; g.h.Lt=function(T){this.yq.Lt(T)}; g.h.Qt=function(T){this.yq.Qt(T)}; g.h.JY=function(T,Q,k){var l;(l=this.xm)==null||l.JY(T,Q,k)}; g.h.j5=function(T,Q){var k;(k=this.xm)==null||k.j5(T,Q)}; g.h.Sb=function(T){var Q;return(Q=this.xm)==null?void 0:Q.Sb(void 0,T)}; g.h.jX=function(){return this.yq.jX()}; g.h.o3=function(T,Q){if(this.policy.iK){var k;(k=this.xm)==null||k.o3(T,Q)}};g.h=g.Zv.prototype;g.h.pw=function(T,Q,k,l,v,L){return this.Gx.pw(T,Q,k,l,v,L)}; g.h.QZ=function(T,Q,k,l,v,L){return this.Gx.QZ(T,Q,k,l,v,L)}; g.h.cI=function(T){return this.Gx.cI(T)}; g.h.Fg=function(T){this.Gx.Fg(T)}; g.h.eK=function(T,Q,k,l){return this.Gx.eK(T,Q,k,l)}; g.h.t1=function(){this.Gx.t1()}; g.h.AY=function(T,Q){this.Gx.AY(T,Q)}; g.h.nV=function(){this.Gx.nV()}; g.h.m$=T5(56);g.h.Pg=function(T,Q,k){this.Gx.Pg(T,Q,k)}; g.h.F0=T5(59);g.h.zQ=function(T,Q,k,l,v,L,q,Y,U){this.Gx.zQ(T,Q,k,l,v,L,q,Y,U)}; g.h.WW=function(T){this.Gx.WW(T)}; g.h.Vi=function(T){return this.Gx.Vi(T)}; g.h.QK=function(T){return this.Gx.QK(T)}; g.h.zV=function(T){return this.Gx.zV(T)};g.S(f6,g.ox);g.S(Gj,f6);Gj.prototype.B=function(T,Q){if(T&&Q){var k=Number(X6(T,"cpi"))*1+1;isNaN(k)||k<=0||kthis.L&&(this.L=k,g.Rs(this.T)||(this.T={},this.Y.stop(),this.S.stop())),this.T[Q]=T,g.Ez(this.S))}}; Gj.prototype.N=function(){for(var T=g.B(Object.keys(this.T)),Q=T.next();!Q.done;Q=T.next()){var k=Q.value;Q=this.publish;for(var l=this.L,v=g.UD(this.T[k]),L=[],q=g.B(v[6].split("&")),Y=q.next();!Y.done;Y=q.next())Y=Y.value,Y.indexOf("cpi=")===0?L.push("cpi="+l.toString()):Y.indexOf("ek=")===0?L.push("ek="+g.Nn(k)):L.push(Y);v[6]="?"+L.join("&");k="skd://"+v.slice(2).join("");v=k.length*2;l=new Uint8Array(v+4);l[0]=v%256;l[1]=(v-l[0])/256;for(v=0;v0)for(var k=g.B(this.T),l=k.next();!l.done;l=k.next())if(Q===l.value.info.cryptoPeriodIndex){Q=!0;break a}Q=!1}if(!Q){Q=(0,g.XY)();a:{k=T.cryptoPeriodIndex;if(!isNaN(k)){l=g.B(this.L.values());for(var v=l.next();!v.done;v=l.next())if(Math.abs(v.value.cryptoPeriodIndex-k)<=1){k=!0;break a}}k=!1}k?(k=T.T,k=Math.max(0,Math.random()*((isNaN(k)?120:k)-30))*1E3):k=0;this.publish("log_qoe",{wvagt:"delay."+k,cpi:T.cryptoPeriodIndex,reqlen:this.T.length}); k<=0?hN5(this,T):(this.T.push({time:Q+k,info:T}),g.Ez(this.S,k))}}; m7.prototype.EK=function(){this.T=[];f6.prototype.EK.call(this)};var C0={},zN5=(C0.DRM_TRACK_TYPE_AUDIO="AUDIO",C0.DRM_TRACK_TYPE_SD="SD",C0.DRM_TRACK_TYPE_HD="HD",C0.DRM_TRACK_TYPE_UHD1="UHD1",C0);g.S(CY5,g.x);g.S(w65,g.ox);g.h=w65.prototype;g.h.e9=function(T){var Q=this;if(!(this.wd()||T.size<=0)){var k={};T.forEach(function(l,v){var L=qx(Q.S)?v:l;v=new Uint8Array(qx(Q.S)?l:v);qx(Q.S)&&O$J(v);l=g.dJ(v,4);O$J(v);v=g.dJ(v,4);Q.T[l]?Q.T[l].status=L:Q.T[v]?Q.T[v].status=L:Q.T[l]={type:"",status:L};H$g(Q,Q.T[l].type,k)}); x75(this,",");If(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.h.error=function(T,Q,k,l){this.wd()||(this.publish("licenseerror",T,Q,k,l),T==="drm.provision"&&(T=(Date.now()-this.B)/1E3,this.B=NaN,this.publish("ctmp","provf",{et:T.toFixed(3)})));fu(Q)&&this.dispose()}; g.h.shouldRetry=function(T,Q){return!T&&this.requestNumber===Q.requestNumber}; g.h.EK=function(){this.T={};g.ox.prototype.EK.call(this)}; g.h.Tx=function(){var T={ctype:this.j.contentType||"",length:this.j.initData.length,requestedKeyIds:this.hj,cryptoPeriodIndex:this.cryptoPeriodIndex};this.L&&(T.keyStatuses=this.T);return T}; g.h.getInfo=function(){var T=this.Y.join();if(h2(this)){var Q=new Set,k;for(k in this.T)this.T[k].status!=="usable"&&Q.add(this.T[k].type);T+="/UKS."+Array.from(Q)}return T+="/"+this.cryptoPeriodIndex}; g.h.IK=function(){return this.url};g.S(S2,g.x);g.h=S2.prototype;g.h.LL=function(T){if(this.N){var Q=T.messageType||"license-request";this.N(new Uint8Array(T.message),Q)}}; g.h.e9=function(){this.C&&this.C(this.T.keyStatuses)}; g.h.onClosed=function(){this.wd()||g.tH("xboxone")&&this.L&&this.L("closedShouldNotRetry")}; g.h.zN=function(T){this.N&&this.N(T.message,"license-request")}; g.h.yg=function(T){if(this.L){if(this.S){var Q=this.S.error.code;T=this.S.error.systemCode}else Q=T.errorCode,T=T.systemCode;this.L("t.prefixedKeyError;c."+Q+";sc."+T,Q,T)}}; g.h.HX=function(){this.B&&this.B()}; g.h.update=function(T){var Q=this;if(this.T)return this.T.update(T).then(null,pQ(function(k){WTg(Q,"t.update",k)})); this.S?this.S.update(T):this.element.addKey?this.element.addKey(this.j.keySystem,T,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.j.keySystem,T,this.initData,this.sessionId);return rV()}; g.h.EK=function(){this.T&&(this.D?this.T.close().catch(g.rB):this.T.close());this.element=null;g.x.prototype.EK.call(this)};g.S(C6,g.x);g.h=C6.prototype;g.h.setServerCertificate=function(){return this.S.setServerCertificate?this.T.flavor==="widevine"&&this.T.RM?this.S.setServerCertificate(this.T.RM):Ym(this.T)&&this.T.Jj?this.S.setServerCertificate(this.T.Jj):null:null}; g.h.createSession=function(T,Q){var k=T.initData;if(this.T.keySystemAccess){Q&&Q("createsession");var l=this.S.createSession();Mx(this.T)?k=eN5(k,this.T.Jj):Ym(this.T)&&(k=II5(k)||new Uint8Array(0));Q&&Q("genreq");T=l.generateRequest(T.contentType,k);var v=new S2(null,null,null,l,null,this.C);T.then(function(){Q&&Q("genreqsuccess")},pQ(function(q){WTg(v,"t.generateRequest",q)})); return v}if(Lc(this.T))return Ex5(this,k);if(gx(this.T))return FT5(this,k);if((l=this.element)==null?0:l.generateKeyRequest)this.element.generateKeyRequest(this.T.keySystem,k);else{var L;(L=this.element)==null||L.webkitGenerateKeyRequest(this.T.keySystem,k)}return this.Y=new S2(this.element,this.T,k,null,null,this.C)}; g.h.iJ=function(T){var Q=yf5(this,T);Q&&Q.zN(T)}; g.h.Yv=function(T){var Q=yf5(this,T);Q&&Q.yg(T)}; g.h.Fy=function(T){var Q=yf5(this,T);Q&&Q.HX(T)}; g.h.getMetrics=function(){var T=null;if(this.S&&this.S.getMetrics)try{T=this.S.getMetrics()}catch(Q){}return T}; g.h.EK=function(){this.L=this.S=null;var T;(T=this.Y)==null||T.dispose();T=g.B(Object.values(this.B));for(var Q=T.next();!Q.done;Q=T.next())Q.value.dispose();this.B={};g.x.prototype.EK.call(this);delete this.element};g.h=BV.prototype;g.h.get=function(T){T=this.findIndex(T);return T!==-1?this.values[T]:null}; g.h.remove=function(T){T=this.findIndex(T);T!==-1&&(this.keys.splice(T,1),this.values.splice(T,1))}; g.h.removeAll=function(){this.keys=[];this.values=[]}; g.h.set=function(T,Q){var k=this.findIndex(T);k!==-1?this.values[k]=Q:(this.keys.push(T),this.values.push(Q))}; g.h.findIndex=function(T){return g.SA(this.keys,function(Q){return g.eA(T,Q)})};g.S(TT6,g.ox);g.h=TT6.prototype;g.h.ze9=function(T){this.b8({onecpt:1});T.initData&&kju(this,new Uint8Array(T.initData),T.initDataType)}; g.h.Vre=function(T){this.b8({onndky:1});kju(this,T.initData,T.contentType)}; g.h.tX=function(T){this.b8({onneedkeyinfo:1});this.Hd.V("html5_eme_loader_sync")&&(this.C.get(T.initData)||this.C.set(T.initData,T));jft(this,T)}; g.h.Xe=function(T){this.L.push(T);zj(this)}; g.h.createSession=function(T){var Q=oOy(this)?JqT(T):g.dJ(T.initData);this.S.get(Q);this.xm=!0;T=new w65(this.videoData,this.Hd,T,this.drmSessionId);this.S.set(Q,T);T.subscribe("ctmp",this.IC,this);T.subscribe("keystatuseschange",this.e9,this);T.subscribe("licenseerror",this.ut,this);T.subscribe("newlicense",this.Dc,this);T.subscribe("newsession",this.aC,this);T.subscribe("sessionready",this.Lx,this);T.subscribe("fairplay_next_need_key_info",this.WN,this);this.Hd.V("html5_enable_vp9_fairplay")&&T.subscribe("qualitychange", this.Pv,this);T.subscribe("sabrlicenseconstraint",this.ukB,this);b$I(T,this.Y)}; g.h.Dc=function(T){this.wd()||(this.b8({onnelcswhb:1}),T&&!this.heartbeatParams&&(this.heartbeatParams=T,this.publish("heartbeatparams",T)))}; g.h.aC=function(){this.wd()||(this.b8({newlcssn:1}),this.L.shift(),this.xm=!1,zj(this))}; g.h.Lx=function(){if(Lc(this.T)&&(this.b8({onsnrdy:1}),this.Bd--,this.Bd===0)){var T=this.z9,Q,k;(Q=T.element)==null||(k=Q.msSetMediaKeys)==null||k.call(Q,T.L)}}; g.h.e9=function(T){if(!this.wd()){this.e6||(this.e6=!0,this.Hd.J3()&&vOb(this));this.b8({onksch:1});var Q=this.Pv;if(!h2(T)&&g.$n&&T.S.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var k="large";else{k=[];var l=!0;if(h2(T))for(var v=g.B(Object.keys(T.T)),L=v.next();!L.done;L=v.next())L=L.value,T.T[L].status==="usable"&&k.push(T.T[L].type),T.T[L].status!=="unknown"&&(l=!1);if(!h2(T)||l)k=T.Y;k=KTJ(k)}Q.call(this,k);if(!h2(T))for(Q={},k=g.B(T.Y),l=k.next();!l.done;l=k.next())H$g(T, l.value,Q);this.videoData.authorizedFormats=T.authorizedFormats;this.publish("keystatuseschange",T)}}; g.h.IC=function(T,Q){this.wd()||this.publish("ctmp",T,Q)}; g.h.WN=function(T,Q){this.wd()||this.publish("fairplay_next_need_key_info",T,Q)}; g.h.ut=function(T,Q,k,l){this.wd()||(this.videoData.V("html5_log_drm_metrics_on_error")&&vOb(this),this.publish("licenseerror",T,Q,k,l))}; g.h.IH=function(){return this.j}; g.h.Pv=function(T){var Q=g.NQ("auto",T,!1,"l");if(this.videoData.NV){if(this.j.equals(Q))return}else if(fJf(this.j,T))return;this.j=Q;this.publish("qualitychange");this.b8({updtlq:T})}; g.h.ukB=function(T){this.videoData.sabrLicenseConstraint=T}; g.h.EK=function(){this.T.keySystemAccess&&this.element&&(this.hj?this.element.setMediaKeys(null).catch(g.rB):this.element.setMediaKeys(null));this.element=null;this.L=[];for(var T=g.B(this.S.values()),Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q.unsubscribe("ctmp",this.IC,this),Q.unsubscribe("keystatuseschange",this.e9,this),Q.unsubscribe("licenseerror",this.ut,this),Q.unsubscribe("newlicense",this.Dc,this),Q.unsubscribe("newsession",this.aC,this),Q.unsubscribe("sessionready",this.Lx,this),Q.unsubscribe("fairplay_next_need_key_info", this.WN,this),this.Hd.V("html5_enable_vp9_fairplay")&&Q.unsubscribe("qualitychange",this.Pv,this),Q.dispose();this.S.clear();this.B.removeAll();this.C.removeAll();this.heartbeatParams=null;g.ox.prototype.EK.call(this)}; g.h.Tx=function(){for(var T={systemInfo:this.T.Tx(),sessions:[]},Q=g.B(this.S.values()),k=Q.next();!k.done;k=Q.next())T.sessions.push(k.value.Tx());return T}; g.h.getInfo=function(){return this.S.size<=0?"no session":""+this.S.values().next().value.getInfo()+(this.N?"/KR":"")}; g.h.b8=function(T,Q){Q=Q===void 0?!1:Q;this.wd()||(RE(T),(this.Hd.J3()||Q)&&this.publish("ctmp","drmlog",T))};g.S(YFf,g.x);g.h=YFf.prototype;g.h.NI=function(){return!!this.FC}; g.h.hX=function(){return this.S}; g.h.handleError=function(T){var Q=this;mR6(this,T);if((T.errorCode!=="html5.invalidstate"&&T.errorCode!=="fmt.unplayable"&&T.errorCode!=="fmt.unparseable"||!GjH(this,T.errorCode,T.details))&&!SFH(this,T)){if(this.FB.z9!=="yt"&&h2X(this,T)&&this.videoData.Qm&&(0,g.XY)()/1E3>this.videoData.Qm&&this.FB.z9==="hm"){var k=Object.assign({e:T.errorCode},T.details);k.stalesigexp="1";k.expire=this.videoData.Qm;k.init=this.videoData.ov/1E3;k.now=(0,g.XY)()/1E3;k.systelapsed=((0,g.XY)()-this.videoData.ov)/1E3; T=new g.ZK(T.errorCode,k,2);this.yq.NL(T.errorCode,2,"SIGNATURE_EXPIRED",RE(T.details))}if(fu(T.severity)){var l;k=(l=this.yq.loader)==null?void 0:l.T.T;if(this.FB.V("html5_use_network_error_code_enums"))if(Ivg(T)&&k&&k.isLocked())var v="FORMAT_UNAVAILABLE";else if(this.FB.B||T.errorCode!=="auth"||T.details.rc!==429)T.errorCode==="ump.spsrejectfailure"&&(v="HTML5_SPS_UMP_STATUS_REJECTED");else{v="TOO_MANY_REQUESTS";var L="6"}else Ivg(T)&&k&&k.isLocked()?v="FORMAT_UNAVAILABLE":this.FB.B||T.errorCode!== "auth"||T.details.rc!=="429"?T.errorCode==="ump.spsrejectfailure"&&(v="HTML5_SPS_UMP_STATUS_REJECTED"):(v="TOO_MANY_REQUESTS",L="6");this.yq.NL(T.errorCode,T.severity,v,RE(T.details),L)}else this.yq.publish("nonfatalerror",T),l=/^pp/.test(this.videoData.clientPlaybackNonce),this.RK(T.errorCode,T.details),l&&T.errorCode==="manifest.net.connect"&&(T="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.XY)(),JN(T,"manifest",function(q){Q.B=!0;Q.T9("pathprobe",q)}, function(q){Q.RK(q.errorCode,q.details)}))}}; g.h.T9=function(T,Q){this.yq.Kc.T9(T,Q)}; g.h.RK=function(T,Q){Q=RE(Q);this.yq.Kc.RK(T,Q)};XO.prototype.Cm=function(T){var Q=XVH(this);if(!T)return{e0:GV,eL:GV,K2:GV,o4:GV,Io:GV,n2:GV,DR:Q};var k=GV;if(bd(Q)||this.V("html5_perf_cap_override_sticky"))k=K7J(this,T);return{e0:k,eL:r2y(this,T),K2:A26(this,T),o4:xRX(this,T.videoData),Io:Pgy(this,T.videoData,T),n2:dRC(this,T),DR:Q}}; XO.prototype.KP=function(T){if(g.G4(this.Hd)&&Wr(this.Hd.N,$g.HEIGHT))var Q=T.T.videoInfos[0].video.qualityOrdinal;else{var k=this.Ip(!!T.T.T);AL(T.videoData)||Z_(T.videoData);T=T.T.videoInfos;if(T.length){var l=g.jj(this.Hd.experiments,"html5_override_oversend_fraction")||.85,v=T[0].video;v.projectionType!=="MESH"&&v.projectionType!=="EQUIRECTANGULAR"&&v.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||lF||(l=.45);v=g.jj(this.Hd.experiments,"html5_viewport_undersend_maximum");for(var L=0;L< T.length;L++){Q=T[L];var q=Q.video;if(k===null||q.width*l=0,stateAtSend:Q,joinLatencySecs:L,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:l,playerCanaryStage:v,isAd:this.provider.videoData.isAd(),liveMode:k,hasDrm:!!g.Wv(this.provider.videoData),isGapless:this.provider.videoData.C,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:cv(this.provider.videoData)};T||g.LM("html5PlayerHealthEvent",Q);this.L=!0;this.dispose()}}; dT.prototype.EK=function(){this.L||this.send();window.removeEventListener("error",this.ai);window.removeEventListener("unhandledrejection",this.ai);g.x.prototype.EK.call(this)}; var ymp=/\bnet\b/;W7f.prototype.update=function(){if(this.C){var T=this.Jb()||0,Q=g.qR(this.provider);T>=this.provider.yq.getDuration()-.1&&(this.previouslyEnded=!0);if(T!==this.T||e2y(this,T,Q)){var k;if(!(k=TQ-this.U_+2||e2y(this,T,Q))){k=this.provider.yq.getVolume();var l=k!==this.D,v=this.provider.yq.isMuted()?1:0;v!==this.j?(this.j=v,k=!0):(!l||this.Y>=0||(this.D=k,this.Y=Q),k=Q-this.Y,this.Y>=0&&k>2?(this.Y=-1,k=!0):k=!1)}k&&(A2(this),this.L=T);this.U_=Q;this.T=T}}}; W7f.prototype.Jb=function(){var T=this.provider.yq.Jb();return this.provider.Hd.V("html5_disable_live_dvr_shrink_for_cdm_vss")&&r4(this.provider.videoData)?T+this.provider.yq.Px():T};F7J.prototype.send=function(T){var Q=this;if(!this.K_){var k=y25(this),l=g.sD(this.uri,k);this.Hd.V("vss_through_gel_double")&&i6g(l);this.xm&&!this.Hd.V("html5_simplify_pings")?kkt(this,l):EOg(this,T).then(function(v){Q.xm&&(v=v||{},v.method="POST",v.postParams={atr:Q.attestationResponse});Qay(l,v,{token:Q.qO,Bv:Q.h3,mdxEnvironment:Q.mdxEnvironment},Q.Hd,T,Q.i9,Q.isFinal&&Q.OW||Q.e6||Q.L&&Q.vk)}); this.K_=!0}}; F7J.prototype.S=function(T){T===void 0&&(T=NaN);return Number(T.toFixed(3)).toString()}; var B$={},Q46=(B$.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,B$.LIVING_ROOM_APP_MODE_MAIN=1,B$.LIVING_ROOM_APP_MODE_KIDS=2,B$.LIVING_ROOM_APP_MODE_MUSIC=3,B$.LIVING_ROOM_APP_MODE_UNPLUGGED=4,B$.LIVING_ROOM_APP_MODE_GAMING=5,B$),zr={},TWb=(zr.EMBEDDED_PLAYER_MODE_UNKNOWN=0,zr.EMBEDDED_PLAYER_MODE_DEFAULT=1,zr.EMBEDDED_PLAYER_MODE_PFP=2,zr.EMBEDDED_PLAYER_MODE_PFL=3,zr);g.S(rT,g.x);rT.prototype.M_=function(){this.T.update();U4y(this)&&(vkt(this),L8b(this))}; rT.prototype.EK=function(){g.x.prototype.EK.call(this);af(this);$R5(this.T)}; rT.prototype.Tx=function(){return y25(cV(this,"playback"))}; rT.prototype.Cd=function(T){var Q=cV(this,"engage");Q.hj=T;return V2y(Q,Ixb(this.provider))};m4T.prototype.isEmpty=function(){return this.endTime===this.startTime};n6.prototype.V=function(T){return this.Hd.V(T)}; n6.prototype.getCurrentTime=function(){return this.yq.getCurrentTime()}; n6.prototype.Jb=function(){return this.yq.Jb()}; var h5C={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.S(g.K6,g.x);g.h=g.K6.prototype;g.h.M_=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Bl){var T;(T=this.L.get(this.Bl))==null||T.M_()}else this.T&&this.T.M_()}; g.h.qm=function(T){this.qoe&&this.qoe.qm(T)}; g.h.h9=T5(29);g.h.Lz=T5(35);g.h.Gh=function(T,Q){this.qoe&&this.qoe.Gh(T,Q)}; g.h.wZ=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Bl){var T;(T=this.L.get(this.Bl))!=null&&A2(T.T)}else this.T&&A2(this.T.T)}; g.h.RK=function(T,Q){this.qoe&&I_t(this.qoe,T,Q);if(this.S)this.S.onError(T)}; g.h.onPlaybackRateChange=function(T){if(this.qoe)this.qoe.onPlaybackRateChange(T);this.T&&A2(this.T.T)}; g.h.aM=T5(52);g.h.T9=function(T,Q,k){this.qoe&&this.qoe.T9(T,Q,k)}; g.h.PJ=function(T,Q,k){this.qoe&&this.qoe.PJ(T,Q,k)}; g.h.Sy=function(T){var Q;(Q=this.qoe)==null||Q.Sy(T)}; g.h.wp=function(T){var Q;(Q=this.qoe)==null||Q.wp(T)}; g.h.pn=function(T,Q,k,l){var v;(v=this.qoe)==null||v.pn(T,Q,k,l)}; g.h.Qt=function(T){this.qoe&&this.qoe.Qt(T)}; g.h.Xx=function(T,Q,k){this.qoe&&this.qoe.Xx(T,Q,k)}; g.h.RD=T5(23);g.h.BU=function(){if(this.qoe)return this.qoe.BU()}; g.h.Tx=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Bl){var T,Q;return(Q=(T=this.L.get(this.Bl))==null?void 0:T.Tx())!=null?Q:{}}return this.T?this.T.Tx():{}}; g.h.J5=function(){var T;return(T=this.qoe)==null?void 0:T.J5()}; g.h.aQ=function(T,Q){var k;(k=this.qoe)==null||k.aQ(T,Q)}; g.h.Cd=function(T){return this.T?this.T.Cd(T):function(){}}; g.h.getVideoData=function(){return this.provider.videoData}; g.h.resume=function(){this.qoe&&this.qoe.resume()};g.S(g.xO,g.x);g.h=g.xO.prototype;g.h.fY=function(T,Q){this.sync();Q&&this.T.array.length>=2E3&&this.CX("captions",1E4);Q=this.T;if(T.length>1&&T.length>Q.array.length)Q.array=Q.array.concat(T),Q.array.sort(Q.T);else{T=g.B(T);for(var k=T.next();!k.done;k=T.next())k=k.value,!Q.array.length||Q.T(k,Q.array[Q.array.length-1])>0?Q.array.push(k):g.Fd(Q.array,k,Q.T)}this.L=NaN;this.sync()}; g.h.oM=function(T){T.length>1E4&&g.rB(new g.Wy("Over 10k cueRanges removal occurs with a sample: ",T[0]));if(!this.wd()){var Q=new Set(T);this.S=this.S.filter(function(k){return!Q.has(k)}); u9f(this.T,Q);this.sync()}}; g.h.IU=function(T,Q){if(!this.wd()){var k=this.TP().find(function(l){return l.id===Q&&l.namespace===T}); k&&this.oM([k])}}; g.h.CX=function(T,Q){var k=(isNaN(this.L)?HvH(this):this.L)-Q;Q=this.TP().filter(function(l){return l.namespace===T&&l.endthis.T,L=g.J(k,8)&&g.J(k,16),q=this.yq.Gk().isBackground()||k.isSuspended();FO(this,this.u9,L&&!q,v,"qoe.slowseek",function(){},"timeout"); var Y=isFinite(this.T);Y=L&&Y&&ycb(Q,this.T);var U=!l||Math.abs(l-this.T)>10,R=this.Hd.V("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),Z=l===0&&this.S&&[11,10].includes(this.S);FO(this,this.K_,Y&&U&&!q&&(!R||!Z),v,"qoe.slowseek",function(){Q.seekTo(T.T)},"set_cmt"); U=Y&&y4(Q.Q8(),this.T);var f=this.yq.loader;Y=!f||f.qG();var G=function(){Q.seekTo(T.T+.001)}; FO(this,this.e6,U&&Y&&!q,v,"qoe.slowseek",G,"jiggle_cmt");Y=function(){return T.yq.s$()}; FO(this,this.sK,U&&!q,v,"qoe.slowseek",Y,"new_elem");var m=be(k);Z=k.isBuffering();var I=Q.Q8(),z=E_(I,l),w=z>=0&&I.end(z)>l+5;U=m&&Z&&w;R=this.yq.getVideoData();FO(this,this.Bd,l<.002&&this.T<.002&&L&&g.G4(this.Hd)&&g.LX(R)&&!q,v,"qoe.slowseek",Y,"slow_seek_shorts");FO(this,this.D,R.aD()&&L&&!q&&!R.qO,v,"qoe.slowseek",Y,"slow_seek_gapless_shorts");FO(this,this.z9,U&&!q,m&&!Z,"qoe.longrebuffer",G,"jiggle_cmt");FO(this,this.qO,U&&!q,m&&!Z,"qoe.longrebuffer",Y,"new_elem_nnr");if(f){var r=f.getCurrentTime(); L=Q.nX();L=PDJ(L,r);L=!f.isSeeking()&&l===L;FO(this,this.d5,m&&Z&&L&&!q,m&&!Z&&!L,"qoe.longrebuffer",function(){Q.seekTo(r)},"seek_to_loader")}L={}; G=E_(I,Math.max(l-3.5,0));var A=G>=0&&l>I.end(G)-1.1,D=G>=0&&G+1=0&&A&&D<11;L.close2edge=A;L.gapsize=D;L.buflen=I.length;this.S&&(L.seekSour=this.S);FO(this,this.hj,m&&Z&&!q,m&&!Z,"qoe.longrebuffer",function(){},"timeout",L); L=k.isSuspended();L=this.yq.ME()&&!L;FO(this,this.C,L,!L,"qoe.start15s",function(){T.yq.Ju("ad")},"ads_preroll_timeout"); L=this.Hd.experiments.Wd("html5_use_playback_rate_in_skip_slow_ad")?this.yq.getPlaybackRate()*1E3:1E3;z=l-this.Y5;FO(this,this.p_,g.LX(R)&&f,m&&!Z,"qoe.longrebuffer",function(){T.yq.Lt()},"reset_media_source"); FO(this,this.Jj,g.LX(R)&&f,m&&!Z,"qoe.longrebuffer",Y,"reset_media_element");this.Y===0&&(this.B=l);f=Z&&this.T===0&&l>1&&l===this.B;FO(this,this.i9,g.LX(R)&&f,m&&!Z,"qoe.slowseek",function(){Q.seekTo(0)},"reseek_after_time_jump"); q=k.isOrWillBePlaying()&&!q;w=this.yq.WG()-l<6&&!w&&this.yq.pS();FO(this,this.j,R.aD()&&q&&Z&&w,m&&!Z,"qoe.longrebuffer",function(){T.yq.s$(!1,!0)},"handoff_end_long_buffer_reload"); q=this.S===104||this.yq.vu;k=NY(R)&&R.isAd()&&!R.qO&&q&&(Z||g.J(k,8)&&g.J(k,16));FO(this,this.f_,k,v,"qoe.start15s",Y,"gapless_ad_slow_start");k=NY(R)&&!R.qO&&q&&U;FO(this,this.zg,k,v,"qoe.longrebuffer",Y,"gapless_slow_start");this.Y=l;this.N.start()}}; e2.prototype.RK=function(T,Q,k){Q=this.Tx(Q);Q.wn=k;Q.wdup=this.L[T]?"1":"0";this.yq.RK(new g.ZK(T,Q));this.L[T]=!0}; e2.prototype.Tx=function(T){T=Object.assign(this.yq.Tx(!0),T.Tx());this.T&&(T.stt=this.T.toFixed(3));this.yq.getVideoData().isLivePlayback&&(T.ct=this.yq.getCurrentTime().toFixed(3),T.to=this.yq.Px().toFixed(3));delete T.uga;delete T.euri;delete T.referrer;delete T.fexp;delete T.vm;return T}; J2.prototype.reset=function(){this.T=this.S=this.L=this.startTimestamp=0;this.Y=!1}; J2.prototype.test=function(T){if(!this.N||this.S)return!1;if(!T)return this.reset(),!1;T=(0,g.XY)();if(!this.startTimestamp)this.startTimestamp=T,this.L=0;else if(this.L>=this.N)return this.S=T,!0;this.L+=1;return!1}; J2.prototype.Tx=function(){var T={},Q=(0,g.XY)();this.startTimestamp&&(T.wsd=(Q-this.startTimestamp).toFixed());this.S&&(T.wtd=(Q-this.S).toFixed());this.T&&(T.wssd=(Q-this.T).toFixed());return T};g.S(vYC,g.x);g.h=vYC.prototype;g.h.setMediaElement=function(T){(this.mediaElement=T)?(this.mediaElement&&(this.N||this.L||!this.mediaElement.h2()||this.seekTo(.01,{I_:"seektimeline_setupMediaElement"})),EF(this)):ig(this)}; g.h.getCurrentTime=function(T){T=T===void 0?!1:T;if(yE(this.yq)){if(this.V("html5_use_centralized_player_time")&&!T&&!isNaN(this.B))return this.B;if(!isNaN(this.S))return this.S}else{if(this.V("html5_use_centralized_player_time")&&!T&&!isNaN(this.B)&&isFinite(this.B))return this.B;if(!isNaN(this.S)&&isFinite(this.S))return this.S}return this.mediaElement&&SsT(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.L||0}; g.h.Pm=function(){return this.f_}; g.h.Jb=function(){return this.getCurrentTime()-this.Px()}; g.h.u8=function(){return this.T?this.T.u8():Infinity}; g.h.isAtLiveHead=function(T){if(!this.T)return!1;T===void 0&&(T=this.getCurrentTime());return p6(this.T,T)}; g.h.iX=function(){return!!this.T&&this.T.iX()}; g.h.seekTo=function(T,Q){var k=Q===void 0?{}:Q;Q=k.aj===void 0?!1:k.aj;var l=k.JI===void 0?0:k.JI;var v=k.M5===void 0?!1:k.M5;var L=k.Nf===void 0?0:k.Nf;var q=k.I_===void 0?"":k.I_;var Y=k.seekSource===void 0?void 0:k.seekSource;var U=k.J_===void 0?!1:k.J_;var R=k.SM===void 0?!1:k.SM;k=k.gW===void 0?!1:k.gW;U&&(T+=this.Px());cv(this.videoData)&&Y===29&&(this.f_=void 0);U=T=this.EM())||!g.iO(this.videoData),z||(w={st:w,mst:this.EM()},this.T&&this.V("html5_high_res_seek_logging")&&(w.ht=this.T.u8(),w.adft=V8X(this.T)),this.yq.T9("seeknotallowed",w)),w=z));if(!w)return this.Y&&(this.Y=null,IGt(this)),g.DT(this.getCurrentTime());w=.005;R&&this.V("html5_sabr_seek_no_shift_tolerance")&&(w=0);if(Math.abs(T-this.S)<=w&&this.i9)return this.N;q&&(w=T,(this.Hd.J3()||this.V("html5_log_seek_reasons"))&& this.yq.T9("seekreason",{reason:q,tgt:w}));Y&&(this.z9.S=Y);this.i9&&ig(this);this.N||(this.N=new GN);T&&!isFinite(T)&&MpI(this,!1);(q=k||U)||(q=T,q=!(this.videoData.isLivePlayback&&this.videoData.L&&!this.videoData.L.T&&!(this.mediaElement&&this.mediaElement.Nm()>0&&IL(this.mediaElement)>0)||Kt(this.videoData)&&this.SY()===this.EM(!1)?0:isFinite(q)||!Kt(this.videoData)));q||(T=Tk(this,T,v));T&&!isFinite(T)&&MpI(this,!1);this.V("html5_use_centralized_player_time")?this.B=T:this.S=this.L=T;this.p_= L;this.C=0;this.T&&(v=this.T,L=T,TNI(v,L,!1),Qht(v,L));v=this.yq;L=T;q={aj:Q,seekSource:Y};v.KA.L=L;k=v.V3;k.mediaTime=L;k.T=!0;q.aj&&v.n4(q);q=L>v.videoData.endSeconds&&L>v.videoData.limitedPlaybackDurationInSeconds;v.N3&&q&&isFinite(L)&&ikT(v);LQ.start&&ikT(this.yq);return this.N}; g.h.EM=function(T){if(!this.videoData.isLivePlayback)return this.yq.videoData.EM();var Q;return sU(this.videoData)&&((Q=this.mediaElement)==null?0:Q.isPaused())&&this.videoData.T?(T=this.getCurrentTime(),jrb(this.xM(T)*1E3)+T):this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&cv(this.videoData)&&this.videoData.T?T?this.videoData.T.qO||0:this.videoData.T.mK||0:Kt(this.videoData)&&this.videoData.hj&&this.videoData.T?this.videoData.T.EM()+this.timestampOffset:this.videoData.L&&this.videoData.L.T? !T&&this.T?this.T.u8():this.yq.videoData.EM()+this.timestampOffset:this.mediaElement?WD()?jrb(this.mediaElement.Q9().getTime()):IL(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.h.SY=function(){if(this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&cv(this.videoData)){var T;return((T=this.videoData.T)==null?void 0:T.Jp)||0}T=this.videoData?this.videoData.SY()+this.timestampOffset:this.timestampOffset;if(sU(this.videoData)&&this.videoData.T){var Q,k=Number((Q=this.videoData.progressBarStartPosition)==null?void 0:Q.utcTimeMillis)/1E3;Q=this.getCurrentTime();Q=this.xM(Q)-Q;if(!isNaN(k)&&!isNaN(Q))return Math.max(T,k-Q)}return T}; g.h.Ba=function(){this.N||this.seekTo(this.L,{I_:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.h.g$=function(){return this.i9&&!isFinite(this.S)}; g.h.EK=function(){Ysu(this,null);this.z9.dispose();g.x.prototype.EK.call(this)}; g.h.Tx=function(){var T={};this.loader&&Object.assign(T,this.loader.Tx());this.mediaElement&&Object.assign(T,this.mediaElement.Tx());return T}; g.h.eU=function(T){this.timestampOffset=T}; g.h.getStreamTimeOffset=function(){return Kt(this.videoData)?0:this.videoData.T?this.videoData.T.getStreamTimeOffset():0}; g.h.Px=function(){return this.timestampOffset}; g.h.xM=function(T){return this.videoData&&this.videoData.T?this.videoData.T.xM(T-this.timestampOffset):NaN}; g.h.KX=function(){if(!this.mediaElement)return 0;if(Vv(this.videoData)){var T=this.mediaElement,Q=T.Q8();T=(TN(Q)&&T.getDuration()?Q.end(Q.length-1):0)+this.timestampOffset-this.SY();Q=this.EM()-this.SY();return Math.max(0,Math.min(1,T/Q))}return this.mediaElement.KX()}; g.h.uq=function(T){this.j&&(this.j.T=T)}; g.h.R3=function(T,Q){this.yq.T9("requestUtcSeek",{time:T});cv(this.videoData)&&(this.f_=T);var k;(k=this.loader)==null||k.R3(T);Q&&(this.xm=Q)}; g.h.Fi=function(T){cv(this.videoData)&&(this.f_=void 0);if(this.xm)this.yq.T9("utcSeekingFallback",{source:"streamTime",timeSeconds:this.xm}),this.yq.seekTo(this.xm,{I_:"utcSeekingFallback_streamTime"}),this.xm=0;else{var Q=this.getCurrentTime();isNaN(Q)||(T=this.xM(Q)-T,Q-=T,this.yq.T9("utcSeekingFallback",{source:"estimate",timeSeconds:Q}),this.yq.seekTo(Q,{I_:"utcSeekingFallback_estimate"}))}}; g.h.Jd=function(){this.xm=0}; g.h.V=function(T){return this.Hd&&this.Hd.V(T)};g.S(QW,g.x);QW.prototype.start=function(){this.S.start()}; QW.prototype.stop=function(){this.S.stop()}; QW.prototype.clear=function(){for(var T=g.B(this.T.values()),Q=T.next();!Q.done;Q=T.next())Q.value.clear()}; QW.prototype.sample=function(){for(var T=g.B(this.L),Q=T.next();!Q.done;Q=T.next()){var k=g.B(Q.value);Q=k.next().value;k=k.next().value;this.T.has(Q)||this.T.set(Q,new dD5(i8A.has(Q)));this.T.get(Q).update(k())}this.S.start()}; var i8A=new Set(["networkactivity"]);dD5.prototype.update=function(T){this.S?(this.buffer.add(T-this.T||0),this.T=T):this.buffer.add(T)}; dD5.prototype.clear=function(){this.buffer.clear();this.T=0};l_.prototype.gT=function(){return this.started}; l_.prototype.start=function(){this.started=!0}; l_.prototype.reset=function(){this.finished=this.started=!1};var c4f=!1;g.S(g.q4,g.ox);g.h=g.q4.prototype;g.h.EK=function(){this.logger.debug("dispose");g.m6(this.Y0);M2X(this.H1);this.visibility.unsubscribe("visibilitystatechange",this.H1);z5b(this.Kc);g.od(this.Kc);Yk(this);g.P0.wC(this.zT);this.u7();this.lK=null;g.od(this.videoData);g.od(this.rJ);g.od(this.qd);g.od(this.gg);g.vU(this.dOq);this.N3=null;g.ox.prototype.EK.call(this)}; g.h.Xx=function(T,Q,k,l,v){if(this.Hd.V("html5_log_ad_playback_docid")){var L=this.Kc;if(L.qoe){L=L.qoe;var q=this.Hd.z9||"yt";g.of(L,g.qR(L.provider),"ad_playback",[T,Q,k,v,q])}}else this.Kc.Xx(T,Q,k);this.V("html5_log_media_perf_info")&&this.T9("adloudness",{ld:l.toFixed(3),cpn:T})}; g.h.P0=function(){var T;return(T=this.loader)==null?void 0:T.P0()}; g.h.nw=function(){var T;return(T=this.loader)==null?void 0:T.nw()}; g.h.My=function(){var T;return(T=this.loader)==null?void 0:T.My()}; g.h.If=function(){var T;return(T=this.loader)==null?void 0:T.If()}; g.h.bl=function(){return this.videoData.bl()}; g.h.e1=function(){return this.V("html5_not_reset_media_source")&&!this.bl()&&!this.videoData.isLivePlayback&&g.LX(this.videoData)&&!this.Hd.supportsGaplessShorts()}; g.h.Ij=function(){this.videoData.C&&(this.videoData.OE=this.videoData.OE||this.nA.Pd().P0(),this.videoData.vz=this.videoData.vz||this.nA.Pd().nw());if(ph5(this.videoData)||!Ia(this.videoData)){var T=this.videoData.errorDetail;this.NL(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),T,T,this.videoData.by||void 0)}this.V("html5_generate_content_po_token")&&this.rY();this.V("html5_enable_d6de4")&&this.Z5()}; g.h.getVideoData=function(){return this.videoData}; g.h.G=function(){return this.Hd}; g.h.Cm=function(){return this.BG.Cm(this.lK)}; g.h.Gk=function(){return this.visibility}; g.h.I9=function(){return this.mediaElement&&this.mediaElement.rQ()?this.mediaElement.xB():null}; g.h.T_=function(){return this.mediaElement}; g.h.dZ=function(){if(this.videoData.errorCode)return!1;this.G().B&&this.G().houseBrandUserStatus&&this.T9("hbut",{status:this.G().houseBrandUserStatus},!0);if(this.videoData.Hk())return!0;this.NL("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.h.I3=function(T){(T=T===void 0?!1:T)||s45(this.Kc);this.HJ=T;!this.dZ()||this.YQ.gT()?g.G4(this.Hd)&&this.videoData.isLivePlayback&&this.YQ.gT()&&!this.YQ.finished&&!this.HJ&&this.X5():(this.YQ.start(),T=this.Kc,g.qR(T.provider),T.qoe&&GhJ(T.qoe),this.X5())}; g.h.X5=function(){if(this.videoData.isLoaded()){var T=this.rJ;g.jj(T.FB.experiments,"html5_player_min_build_cl")>0&&g.jj(T.FB.experiments,"html5_player_min_build_cl")>787819992&&sfb(T,"oldplayer");eSC(this)}else this.videoData.Hl||this.videoData.Xm?this.HJ&&g.G4(this.Hd)&&this.videoData.isLivePlayback||(this.videoData.Hl?dyJ(this.videoData):(T=this.Kc,T.qoe&&(T=T.qoe,MR(T,"protected"),T.provider.videoData.N?T.sZ():T.provider.videoData.subscribe("dataloaded",T.sZ,T)),C1T(this.videoData))):!this.videoData.loading&& this.yG&&Wc6(this)}; g.h.E7=function(T){this.Gx=T;this.loader&&(qQC(this.loader,new g.Zv(T)),this.T9("sdai",{sdsstm:1}))}; g.h.JY=function(T,Q,k){var l;(l=this.loader)==null||l.JY(T,Q,k)}; g.h.uy=T5(8);g.h.isFullscreen=function(){return this.visibility.isFullscreen()}; g.h.isBackground=function(){return this.visibility.isBackground()}; g.h.yV=function(){var T=this;this.logger.debug("Updating for format change");gW(this).then(function(){return Lv(T)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.h.Pw=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.I3();this.dZ()&&!g.J(this.playerState,128)&&(this.mP.gT()||(this.mP.start(),this.videoData.dC?this.LA(wf(this.playerState,4)):this.LA(wf(wf(this.playerState,8),1))),$DH(this))}; g.h.qW=function(){return this.YQ.finished}; g.h.sendAbandonmentPing=function(){g.J(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.Hr(!0),z5b(this.Kc),g.od(this.Kc),g.P0.wC(this.zT))}; g.h.fn=function(T,Q,k){T=T===void 0?!0:T;(Q===void 0||Q)&&this.mediaElement&&this.mediaElement.pause();T&&k&&this.loader&&Kt(this.videoData)&&this.loader.pn(k);this.LA(T?new g.Cd(14):new g.Cd)}; g.h.tY=function(){this.Kc.wZ()}; g.h.NL=function(T,Q,k,l,v,L){this.logger.debug(function(){return"set player error: ec="+T+", detail="+v}); var q,Y;g.YZ(Yo_,k)?q=k:k?Y=k:q="GENERIC_WITHOUT_LINK";l=(l||"")+(";a6s."+yi());if(T==="auth"||T==="drm.auth"||T==="heartbeat.stop")k&&(l+=";r."+k.replaceAll(" ","_")),L&&(l+="sr."+L.replaceAll(" ","_"));Q={errorCode:T,errorDetail:v,errorMessage:Y||g.Es[q]||"",k9:q,by:L||"",sT:l,sN:Q,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=T;M4(this,"dataloaderror");this.LA(zN(this.playerState,128,Q));g.P0.wC(this.zT);Yk(this);this.T0()}; g.h.Ju=function(T){this.ZS=this.ZS.filter(function(Q){return T!==Q}); this.logger.debug(function(){return"set preroll ready for "+T}); this.mP.gT()&&$DH(this)}; g.h.Pc=function(){var T;(T=!!this.ZS.length)||(T=this.lH.T.array[0],T=!!T&&T.start<=-0x8000000000000);return T}; g.h.iX=function(){return this.KA.iX()}; g.h.isPlaying=function(){return this.playerState.isPlaying()}; g.h.a9=function(){return this.playerState.a9()&&this.videoData.dC}; g.h.getPlayerState=function(){return this.playerState}; g.h.AJ=function(T){var Q;(Q=this.loader)==null||Q.AJ(T)}; g.h.ZF=function(T){var Q;(Q=this.loader)==null||Q.ZF(T)}; g.h.getPlayerType=function(){return this.playerType}; g.h.getPreferredQuality=function(){if(this.lK){var T=this.lK;T=T.videoData.kH.compose(T.videoData.wE);T=cr(T)}else T="auto";return T}; g.h.qA=T5(16);g.h.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.h.setMediaElement=function(T){this.logger.debug("set media element");if(this.mediaElement&&T.xB()===this.mediaElement.xB()&&(T.isView()||this.mediaElement.isView())){if(T.isView()||!this.mediaElement.isView())this.d9(),this.mediaElement=T,this.mediaElement.yq=this,ML5(this),this.KA.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.u7();if(!this.playerState.isError()){var Q=df(this.playerState,512);g.J(Q,8)&&!g.J(Q,2)&&(Q=wf(Q,1));T.isView()&&(Q=df(Q,64));this.LA(Q)}this.mediaElement= T;this.mediaElement.yq=this;!g.G4(this.Hd)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);ML5(this);this.KA.setMediaElement(this.mediaElement);this.V("html5_prewarm_media_source")&&!this.rJ.NI()&&Jc5(this.mediaElement)}}; g.h.u7=function(T,Q,k){T=T===void 0?!1:T;Q=Q===void 0?!1:Q;k=k===void 0?!1:k;this.logger.debug("remove media element");if(this.mediaElement){var l=this.getCurrentTime();l>0&&(this.KA.L=l);this.KA.setMediaElement(null);!T&&this.e1()?oWb(this):this.I0(k);this.loader&&(Tj(this.loader),fv(this,Q));this.X8.stop();if(this.mediaElement&&(!this.mP.gT()&&!this.ME()||this.playerState.isError()||g.J(this.playerState,2)||this.LA(wf(this.playerState,512)),this.mediaElement)){this.d9();if(T||!this.mediaElement.isView())this.Rg.Sl("mesv_s"), this.mediaElement.stopVideo(),Gk(this);this.mediaElement=this.mediaElement.yq=null}}}; g.h.playVideo=function(T,Q){T=T===void 0?!1:T;Q=Q===void 0?!1:Q;var k=this,l,v,L,q,Y,U;return g.a(function(R){if(R.S==1){k.logger.debug("start play video");var Z=window.google_image_requests;Z&&Z.length>10&&(window.google_image_requests=Z.slice(-10));if(g.J(k.playerState,128))return R.return();if(k.rJ.hX())return k.publish("signatureexpired"),R.return();k.mediaElement&&s45(k.Kc);k.Pw();(g.J(k.playerState,64)||T)&&k.LA(wf(k.playerState,8));return k.mP.finished&&k.mediaElement?k.lK||!k.ob?R.Ym(2):g.c(R, k.ob,3):R.return()}if(R.S!=2&&g.J(k.playerState,128))return R.return();if(!k.videoData.L)return k.videoData.isLivePlayback&&!g.z6(k.Hd.N,!0)?(l="html5.unsupportedlive",v=2):(l=k.videoData.bl()?"fmt.unplayable":"fmt.noneavailable",v=1),g.rB(Error("selectableFormats")),k.NL(l,v,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),R.return();if(k.Ax()&&k.videoData.L.T)return k.logger.debug("rebuild playbackData for airplay"),R.return(gW(k));if(yE(k))Z=k.KA,nt(Z.videoData)&&!Z.isAtLiveHead(Z.getCurrentTime())&& Z.iX()&&Z.yq.seekTo(Infinity,{I_:"seektimeline_peggedToLive",seekSource:34});else if(nt(k.videoData)&&(L=k.getCurrentTime()q;if(!Y||!q){L&&Y&&(l=Math.max(l,L));var U;L=wVT(Q,(U=v.T)==null?void 0:U.videoInfos);U=Q.yq.getPlaybackRate();U>1&&L&&(U=jNC(Q.Hd.N,v.T.videoInfos,U),T.T!==0&&U< T.T&&Q.yq.setPlaybackRate(1));var R,Z;T=((R=v.videoData.S)==null?void 0:(Z=R.video)==null?void 0:Z.qualityOrdinal)||0;g.ri("yt-player-quality",{quality:l,previousQuality:T},31104E3);Q.Hd.schedule.policy.Y=mk()>=480;if(Q.V("html5_exponential_memory_for_sticky")){R=Q.Hd.nG;Z=1;var f=f===void 0?!1:f;ukg(R,"sticky-lifetime");R.values["sticky-lifetime"]&&R.jP["sticky-lifetime"]||(R.values["sticky-lifetime"]=0,R.jP["sticky-lifetime"]=0);f&&Ed(R,"sticky-lifetime")>.0625&&(Z=R.jP["sticky-lifetime"]*2);R.values["sticky-lifetime"]+= 1*Math.pow(2,R.T/Z);R.jP["sticky-lifetime"]=Z;R.Y.start()}if(Q.V("html5_perf_cap_override_sticky")){f=Q.L;R=Q.V("html5_perserve_av1_perf_cap");R=R===void 0?!1:R;if(R===void 0?0:R){Z=h_();T=g.B(Object.keys(Z));for(Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q.indexOf("1")!==0&&delete Z[Q];g.ri("yt-player-performance-cap",Z,2592E3)}else g.Dk("yt-player-performance-cap");j0y(R);if(R){R=g.B(j4.keys());for(Z=R.next();!Z.done;Z=R.next())Z=Z.value,Z.startsWith("1")||j4.delete(Z);R=g.B(wT.values());for(Z=R.next();!Z.done;Z= R.next())Z=Z.value,Z.startsWith("1")||wT.delete(Z);R=g.B(f.keys());for(Z=R.next();!Z.done;Z=R.next())Z=Z.value,Z.startsWith("1")||f.delete(Z)}else j4.clear(),wT.clear(),f.clear()}}}this.loader&&(f=this.loader,k=k||"",f.policy.T?gX(f.Y.T,k):gX(f.T.N,k));this.zE()}; g.h.getUserPlaybackQualityPreference=function(){return this.videoData.L&&!this.videoData.L.T?cr(this.videoData.kH):rt[mk()]}; g.h.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.h.setUserAudio51Preference=function(T,Q){this.getUserAudio51Preference()!==T&&(this.T9("toggle51",{pref:T}),g.ri("yt-player-audio51",T,Q?31536E3:2592E3),this.yV())}; g.h.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.h.setProximaLatencyPreference=function(T){var Q=this.getProximaLatencyPreference();this.T9("proxima",{pref:T});g.ri("yt-player-proxima-pref",T,31536E3);Q!==T&&(T=this.KA,T.zg=!0,T.yq.seekTo(Infinity,{I_:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.h.getProximaLatencyPreference=function(){var T;return(T=I3())!=null?T:0}; g.h.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.h.rY=function(){this.videoData.videoId?this.nA.rY(this.videoData):this.T9("povid",{})}; g.h.Z5=function(){this.videoData.videoId?this.nA.Z5(this.videoData):this.T9("piavid",{})}; g.h.zE=function(){if(!this.wd()&&!g.J(this.playerState,128)&&this.videoData.L){if(this.videoData.L.T)vp(this);else{var T=Zx(this),Q=this.videoData;a:{var k=this.videoData.t6;if(T.T){for(var l=g.B(k),v=l.next();!v.done;v=l.next()){v=v.value;var L=v.getInfo(),q=g.wC[L.video.quality];if((!T.L||L.video.quality!=="auto")&&q<=T.T){k=v;break a}}k=k[k.length-1]}else k=k[0]}Q.u9=k;VpI(this,T.reason,Rgf(this,this.videoData.u9))}if(this.V("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.KA.D= !1,this.playVideo()}}; g.h.lx=function(T,Q){if(this.wd()||g.J(this.playerState,128))return!1;var k,l=!((k=this.videoData.L)==null||!k.T);k=l&&Q?this.getCurrentTime()-this.Px():NaN;if(this.Hd.experiments.Wd("html5_record_audio_format_intent")){var v=this.Kc;if(v.qoe){v=v.qoe;var L=[T.MY.id,isNaN(k)?"m":"t"];g.of(v,g.qR(v.provider),"afi",L)}}if(l)return Q&&(l=RSI(this.KA),this.T9("aswh",{id:T.id,xtags:T.xtags,bh:l.toFixed(3)})),this.loader.setAudioTrack(T,k,Q),!0;if(QGT(this)){a:{Q=this.mediaElement.audioTracks();for(l=0;l< Q.length;++l)if(k=Q[l],k.label===T.MY.getName()){if(k.enabled){Q=!1;break a}Q=k.enabled=!0;break a}Q=void 0}Q&&this.T9("hlsaudio",{id:T.id})}else{a:if(Q=this.videoData,Q.Y&&!Pj(Q.Y)||T===Q.Z6||!Q.t6||Q.t6.length<=0)Q=!1;else{l=g.B(Q.t6);for(k=l.next();!k.done;k=l.next()){k=k.value;if(!(k instanceof Kn)){Q=!1;break a}v=T.MY.getId();k.S&&(LE6(k.S,v),k.Xs=null)}Q.Z6=T;Q=!0}Q&&Lv(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.T9("hlsaudio",{id:T.id}))}return!0}; g.h.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()}; g.h.getAudioTrack=function(){if(QGT(this)){var T=kKy(this);if(T)return T}return this.videoData.getAudioTrack()}; g.h.IN=function(){return this.videoData.Y}; g.h.RQ=function(){if(this.videoData.V("html5_trigger_loader_when_idle_network")&&!this.videoData.Cc()&&cv(this.videoData)){var T;(T=this.loader)!=null&&T.Jh()}}; g.h.VL=function(){if(NY(this.videoData)&&this.videoData.V("html5_gapless_append_early")){var T;(T=this.loader)!=null&&T.Jh()}}; g.h.onPlayerRequestSent=function(T){this.nA.onPlayerRequestSent(T)}; g.h.wN=function(T){T=T===void 0?!1:T;if(this.loader){var Q=this.loader,k=Q.wN;var l=this.videoData;l=l.V("html5_ssdai_use_post_for_media")&&l.enableServerStitchedDai?!1:Kt(l)&&l.Xj&&!l.isAd();k.call(Q,l,T)}}; g.h.I0=function(T){T=T===void 0?!1:T;this.j6&&(this.logger.debug("remove media source"),$1I(this.j6),this.wN(T),this.j6.dispose(),this.j6=null)}; g.h.JH=function(){return this.j6}; g.h.lz=function(T,Q,k,l){function v(q){try{gW5(L,q,Q,k)}catch(Y){g.rB(Y),L.handleError(new g.ZK("fmt.unplayable",{msi:"1",ename:Y&&typeof Y==="object"&&"name"in Y?String(Y.name):void 0,trg:"setmediasrc"},1))}} var L=this;Q=Q===void 0?!1:Q;k=k===void 0?!1:k;LJu(this,l===void 0?!1:l);this.j6=T;this.e1()&&Zl(this.j6)==="open"?v(this.j6):txC(this.j6,v)}; g.h.tX=function(T){this.logger.debug("onNeedKeyInfo");this.Si.set(T.initData,T);this.QU&&(this.QU.tX(T),this.V("html5_eme_loader_sync")||this.Si.remove(T.initData))}; g.h.sP=function(T){this.videoData.CH=g.NQ("auto",T,!1,"u");vp(this)}; g.h.uq=function(T){var Q=T.reason,k=T.T.info,l=T.token,v=T.videoId,L=this.Kc,q=this.videoData;if(k!==q.Y){var Y=!q.Y;q.Y=k;Q!=="m"&&Q!=="t"&&(Q=Y?"i":"a");var U=Q==="m"||Q==="t";this.Hd.experiments.Wd("html5_refactor_sabr_audio_format_selection_logging")?this.GJ=new BT5(q,k,Q,"",l,v):(Q=new BT5(q,k,Q,"",l),L.qoe&&(L=L.qoe,k=g.qR(L.provider),Bs5(L,k,Q)));this.publish("internalaudioformatchange",q,!Y&&U)}this.KA.uq(T.T.index)}; g.h.tC=function(T){this.publish("localmediachange",T)}; g.h.B5=function(T){T=T===void 0?{}:T;var Q;(Q=this.loader)==null||Q.B5(this.Hd,bO(this.videoData),T)}; g.h.hX=function(){return this.rJ.hX()}; g.h.Zm=function(T){this.RK(new g.ZK("staleconfig",{reason:T}))}; g.h.handleError=function(T){this.rJ.handleError(T)}; g.h.NI=function(){return this.rJ.NI()}; g.h.Fi=function(T){this.KA.Fi(T)}; g.h.s$=function(T,Q){T=T===void 0?!1:T;Q=Q===void 0?!1:Q;var k=this,l,v,L;return g.a(function(q){if(q.S==1){k.loader&&k.loader.t1();k.loader&&k.loader.wd()&&Yk(k);if(k.V("html5_enable_vp9_fairplay")&&k.bl()&&(l=k.videoData.T)!=null)for(var Y in l.T)l.T.hasOwnProperty(Y)&&(l.T[Y].T=null,l.T[Y].L=!1);k.LA(wf(k.playerState,2048));k.publish("newelementrequired");return T?g.c(q,gW(k),2):q.Ym(2)}k.videoData.Cc()&&((v=k.loader)==null?0:v.i9)&&!yE(k)&&((L=k.isAtLiveHead())&&nt(k.videoData)?k.seekTo(Infinity, {I_:"videoPlayer_getNewElement"}):k.videoData.KY&&k.loader&&(Y=k.loader,Y.C_.Cc&&(Y.C_.KY||Y.C_.Y||Y.C_.isPremiere?(Y.seek(0,{I_:"loader_resetSqless"}),Y.videoTrack.C=!0,Y.audioTrack.C=!0,Y.videoTrack.N=!0,Y.audioTrack.N=!0):Vb(Y.C_)&&ZI(Y))));Q&&k.seekTo(0,{seekSource:105});g.J(k.playerState,8)&&k.playVideo();g.BT(q)})}; g.h.pX=function(T){this.T9("hgte",{ne:+T});this.videoData.C=!1;T&&this.s$();this.loader&&a_C(this.loader)}; g.h.xk=function(T){this.T9("newelem",{r:T});this.s$()}; g.h.pauseVideo=function(T){T=T===void 0?!1:T;if((g.J(this.playerState,64)||g.J(this.playerState,2))&&!T)if(g.J(this.playerState,8))this.LA(N3(this.playerState,4,8));else if(this.a9())Lv(this);else return;g.J(this.playerState,128)||(T?this.LA(wf(this.playerState,256)):this.LA(N3(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.iO(this.videoData)&&this.loader&&fv(this,!1)}; g.h.stopVideo=function(){this.pauseVideo();this.loader&&(fv(this,!1),this.loader.FJ())}; g.h.T0=function(T,Q){T=T===void 0?!1:T;Q=Q===void 0?!1:Q;if(this.e1()&&Q){var k;(k=this.mediaElement)==null||k.T0()}else{var l;(l=this.mediaElement)==null||l.stopVideo()}Gk(this);Yk(this);g.J(this.playerState,128)||(T?this.LA(df(df(wf(this.playerState,4),8),16)):this.LA(zN(this.playerState)));this.videoData.videoId&&this.Hd.Bd.remove(this.videoData.videoId)}; g.h.seekTo=function(T,Q){Q=Q===void 0?{}:Q;this.logger.debug(function(){return"SeekTo "+T+", "+JSON.stringify(Q)}); g.J(this.playerState,2)&&Lv(this);Q.cYO&&this.LA(wf(this.playerState,2048));Q.seekSource!==58&&Q.seekSource!==60||!this.V("html5_update_vss_during_gapless_seeking")||C_H(this.Kc,Q.seekSource);this.KA.seekTo(T,Q);this.lH.sync()}; g.h.n4=function(T){this.Rg.Y.S=(0,g.XY)();g.J(this.playerState,32)||(this.LA(wf(this.playerState,32,T==null?void 0:T.seekSource)),g.J(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.bC()}; g.h.jK=function(T){T=T==null?void 0:T.seekSource;g.J(this.playerState,32)?(this.LA(N3(this.playerState,16,32,T)),this.publish("endseeking")):g.J(this.playerState,2)||this.LA(wf(this.playerState,16,T));T=this.Rg.Y;var Q=this.videoData,k=this.playerState.isPaused();if(Q.clientPlaybackNonce&&!isNaN(T.T)){if(Math.random()<.01){k=k?"pbp":"pbs";var l={startTime:T.T};Q.B&&(l.cttAuthInfo={token:Q.B,videoId:Q.videoId});At("seek",l);g.NL({clientPlaybackNonce:Q.clientPlaybackNonce},"seek");isNaN(T.S)||dS("pl_ss", T.S,"seek");dS(k,(0,g.XY)(),"seek")}T.reset()}}; g.h.yf=function(T){this.jK(T)}; g.h.BL=function(){this.publish("SEEK_COMPLETE")}; g.h.WV=function(T){var Q=this.nA,k=this.videoData.clientPlaybackNonce,l=this.playerType;if(T.scope===4){var v=T.type;if(v){var L=Q.Lc(),q=L.getVideoData().clientPlaybackNonce;l===1&&(q=k);if(l=ARu(Q,q)){if(k=l.getVideoData())T.writePolicy===2&&k.sabrContextUpdates.has(v)||(T.sendByDefault&&k.f_.add(v),k.sabrContextUpdates.set(v,T)),Q.V("html5_enable_t1_enf_on_sabr")&&(T=v===5,v=Uug(k.playerResponse),T?(T=v?1:0,LN(T,"m.p_",{}),WN("MBSTAT",T)):T=1,T===0&&Q.ZV.tj("onAbnormalityDetected"))}else L.T9("scuset", {ncpf:"1",ccpn:q,crcpn:k})}else g.rB(Error("b/380308491: contextUpdateType is undefined"))}}; g.h.jG=function(){if(this.playerType===2)return this.nA.jG("")}; g.h.getCurrentTime=function(T){return this.KA.getCurrentTime(T===void 0?!1:T)}; g.h.Pm=function(){return this.KA.Pm()}; g.h.Jb=function(){return this.KA.Jb()}; g.h.Km=function(){return this.Jb()}; g.h.u8=function(){return this.KA.u8()}; g.h.getPlaylistSequenceForTime=function(T){return this.videoData.getPlaylistSequenceForTime(T-this.Px())}; g.h.bS=function(){var T=NaN;this.mediaElement&&(T=this.mediaElement.bS());return T>=0?T:this.getCurrentTime()}; g.h.xM=function(){var T;return((T=this.videoData.T)==null?0:T.xM)?this.videoData.T.xM(this.getCurrentTime()-this.Px()):this.mediaElement&&(T=this.mediaElement.Q9())&&(T=T.getTime(),!isNaN(T))?T/1E3+this.getCurrentTime():NaN}; g.h.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Px():this.EM()?this.EM():0}; g.h.rH=function(){var T=new NWg;if(this.loader){var Q=this.Hd.schedule,k=this.Hd.J3();k=k===void 0?!1:k;T.Pz=Q.hj;T.oS=Q.Jj;T.bandwidthEstimate=e4(Q);if(k){k=(Q.j.hx()*1E3).toFixed();var l=(Q.i9.hx()*1E3).toFixed(),v=WL(Q).toFixed(2),L=((Q.C.hx()||0)*1E9).toFixed(2),q=Q.L.hx().toFixed(0),Y=Q.e6.hx().toFixed(0),U=Q.D.percentile(.5).toFixed(2),R=Q.D.percentile(.92).toFixed(2),Z=Q.D.percentile(.96).toFixed(2),f=Q.D.percentile(.98).toFixed(2);Q.T?Q.T.reset():Q.T=new uc;Q.T.add(Q.xm);Q.T.add(Q.interruptions.length); for(var G=0,m=Q.interruptions.length-1;m>=0;m--){var I=Q.interruptions[m];Q.T.add(I-G);G=I}G=0;for(m=Q.Y.length-1;m>=0;m--){I=Q.Y[m];var z=I.stamp/36E5;Q.T.add(z-G);G=z;Q.T.add(I.net/1E3);Q.T.add(I.max)}Q=Q.T.xo();T.T={ttr:k,ttm:l,d:v,st:L,bw:q,abw:Y,v50:U,v92:R,v96:Z,v98:f,"int":Q}}LWb(this.loader,T)}else this.mediaElement&&(T.Qh=hB(this.mediaElement));T.Pz=this.Pz;T.oS=this.oS;T.L=this.isAtLiveHead()&&this.isPlaying()?Okf(this):NaN;return T}; g.h.eN=function(T,Q){this.oS+=T;this.Pz+=Q}; g.h.KX=function(){return this.mediaElement?g.iO(this.videoData)?1:Vv(this.videoData)?this.isAtLiveHead()||this.iX()?1:this.KA.KX():this.mediaElement.KX():0}; g.h.yH=function(){var T=this.kC,Q=kk(T,"bandwidth"),k=kk(T,"bufferhealth"),l=kk(T,"livelatency"),v=kk(T,"networkactivity"),L=j8(T,"bandwidth"),q=j8(T,"bufferhealth"),Y=j8(T,"livelatency");T=j8(T,"networkactivity");var U=this.Ir(),R=U.droppedVideoFrames;U=U.totalVideoFrames;var Z=this.getCurrentTime();if(this.QU){var f="IT/"+(this.QU.T.getInfo()+"/"+cr(this.IH()));f+="/"+this.QU.getInfo()}else f="";var G=this.isGapless(),m=this.jZ(),I=this.BU(),z=g.R4(this),w=this.getPlayerState(),r=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var A=0;var D="";if(this.Gx){if(this.Gx.l0){D="D,";break a}A=this.Gx.N5;D=this.Gx.Tb.substring(0,4)}A>0?(A="AD"+A+", ",D&&(A+=D+", "),D=A):D=""}return{I6:L,hS:q,currentTime:Z,vM:f,droppedVideoFrames:R,isGapless:G,jZ:m,lA:I,K0:Q,Gr:k,n0:l,uj:v,f0:Y,ea:T,N6:z,playerState:w,Z7:r,mw:D,totalVideoFrames:U}}; g.h.Tx=function(T){var Q={};if(T===void 0?0:T){Object.assign(Q,this.Kc.Tx());this.mediaElement&&(Object.assign(Q,this.mediaElement.Tx()),T=this.Ir(),Q.dvf=T.droppedVideoFrames,Q.tvf=T.totalVideoFrames);this.loader&&Object.assign(Q,this.loader.Tx());this.QU&&(Q.drm=JSON.stringify(this.QU.Tx()));Q.state=this.playerState.state.toString(16);g.J(this.playerState,128)&&(Q.debug_error=JSON.stringify(this.playerState.ge));this.Pc()&&(Q.prerolls=this.ZS.join(","));this.videoData.Fk&&(Q.ismb=this.videoData.Fk); this.videoData.latencyClass!=="UNKNOWN"&&(Q.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(Q.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)Q.is_mosaic=1;this.videoData.cotn&&(Q.is_offline=1,Q.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(Q.playerResponseCpn=this.videoData.playerResponseCpn);this.nA.isOrchestrationLeader()&&(Q.leader=1);this.videoData.isLivePlayback&& (this.videoData.T&&FG(this.videoData.T)&&(Q.segduration=FG(this.videoData.T)),T=this.KA,Q.lat=T.j?JOt(T.j.Y):0,Q.liveutcstart=this.videoData.liveUtcStartSeconds);Q.relative_loudness=this.videoData.uK.toFixed(3);if(T=g.R4(this))Q.optimal_format=T.video.qualityLabel;Q.user_qual=mk();Q.release_version=M[7]}Q.debug_videoId=this.videoData.videoId;return Q}; g.h.addCueRange=function(T){this.cB([T])}; g.h.removeCueRange=function(T){this.lH.oM([T])}; g.h.KJ=function(){var T=this.lH;if(T.yq.G().V("html5_sort_cueranges_on_update")&&!(T.TP().length<=0||T.wd())){var Q=T.T;Q.array.sort(Q.T)}T.sync()}; g.h.CX=function(T,Q){return this.lH.CX(T,Q)}; g.h.cB=function(T,Q){this.lH.fY(T,Q)}; g.h.Ec=function(T){this.lH.oM(T)}; g.h.TP=function(){return this.lH.TP()||[]}; g.h.pk=function(){return this.Zw}; g.h.Ax=function(){return this.visibility.Ax()}; g.h.YU=function(){this.mediaElement&&this.mediaElement.YU()}; g.h.mFd=function(){M4(this)}; g.h.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.h.d9=function(){g.N5(this.PP)}; g.h.x2K=function(){this.bC();this.publish("onLoadProgress",this.KX())}; g.h.Xn=function(T){var Q=T.target.Cz();if(this.mediaElement&&this.mediaElement.Cz()&&this.mediaElement.Cz()===Q){sG5(this,T.type);switch(T.type){case "error":var k=St(this.mediaElement)||"",l=this.mediaElement.dw();if(k==="capability.changed"){this.V("html5_restart_on_capability_change")?(this.T9("capchg",{msg:l}),this.s$(!0)):gW(this);return}if(this.mediaElement.hasError()&&GjH(this.rJ,k,{msg:l,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.SZ()===4){this.T0();Ul(this,"unplayable"); return}break;case "durationchange":k=this.mediaElement.getDuration();isFinite(k)&&(!this.j6||k>0)&&k!==1&&this.SR(k);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());nk6(this.lH);this.Kc.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":CzT(this);this.publish("onLoadedMetadata");Uag(this);k=this.xM();this.videoData.Bt&&(this.videoData.Bt=k);break;case "loadstart":Uag(this);break;case "progress":case "suspend":this.S0.SF(); break;case "playing":this.Rg.Sl("plev");this.w4&&!yE(this)&&(this.w4=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{I_:"videoplayer_onPlaying"})));break;case "timeupdate":k=this.mediaElement&&!this.mediaElement.getCurrentTime();l=this.mediaElement&&this.mediaElement.Nm()===0;if(k&&(!this.Nr||l))return;this.Nr=this.Nr||!!this.mediaElement.getCurrentTime();Yug(this);this.bC();if(!this.mediaElement||this.mediaElement.Cz()!==Q)return;this.publish("onVideoProgress", this.getCurrentTime());break;case "waiting":if(this.mediaElement.nX().length>0&&this.mediaElement.Q8().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.V("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Nm()>2||!this.mediaElement.isSeeking()&&y4(this.mediaElement.Q8(),this.mediaElement.getCurrentTime()))&&(k=this.mediaElement.Tx(),k.bh=hB(this.mediaElement).toFixed(3),this.T9("uwe",k));break;case "resize":CzT(this); this.videoData.S&&this.videoData.S.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.ZT&&g.J(this.playerState,8)&&!g.J(this.playerState,1024)&&this.getCurrentTime()===0&&g.mp){Ul(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Cz()===Q){zSb(this.KA,T);this.publish("videoelementevent",T);Q=this.playerState;l=this.V3;var v=this.mediaElement;k=this.videoData.clientPlaybackNonce;if(!g.J(Q,128)){var L=Q.state; v=v?v:T.target;var q=v.getCurrentTime();if(!g.J(Q,64)||T.type!=="ended"&&T.type!=="pause"){var Y=v.getDuration();Y=v.isEnded()||q>1&&Math.abs(q-Y)<1.1;var U=T.type==="pause"&&v.isEnded();q=T.type==="ended"||T.type==="waiting"||T.type==="timeupdate"&&!g.J(Q,4)&&!PV(l,q);if(U||Y&&q)v.D2()>0&&v.Cz()&&(L=14);else switch(T.type){case "error":St(v)&&(L|=128);break;case "pause":g.J(Q,256)?(L^=256)||(L=64):g.J(Q,32)||g.J(Q,2)||g.J(Q,4)||(L=4,g.J(Q,1)&&g.J(Q,8)&&(L|=1));break;case "playing":q=L;L=(L|8)&-1093; q&4?(L|=1,BM(l,v,!0)):PV(l,v.getCurrentTime())&&(L&=-2);g.J(Q,1)&&BM(l,v)&&(L|=1);break;case "seeking":L|=16;g.J(Q,8)&&(L|=1);L&=-3;break;case "seeked":L&=-17;BM(l,v,!0);break;case "waiting":g.J(Q,2)||(L|=1);BM(l,v);break;case "timeupdate":q=g.J(Q,16),Y=g.J(Q,4),(g.J(Q,8)||q)&&!Y&&PV(l,v.getCurrentTime())&&(L=8),BM(l,v)&&(L|=1)}}l=L;L=null;l&128&&(L=T.target,v=St(L),q=1,v?(v==="capability.changed"&&(q=2),Y="GENERIC_WITHOUT_LINK",U=L.Tx(),U.mediaElem="1",U.trg="melem",/AUDIO_RENDERER/.test(L.dw())&& (Y="HTML5_AUDIO_RENDERER_ERROR"),L={errorCode:v,errorMessage:g.Es[Y]||"",k9:Y,sT:RE(U),sN:q,cpn:Q.ge?Q.ge.cpn:""}):L=null,L&&(L.cpn=k));Q=zN(Q,l,L)}!g.J(this.playerState,1)&&g.J(Q,1)&&hgX(this,"evt"+T.type);this.LA(Q)}}}; g.h.Bd_=function(T){T=T.T.availability==="available";T!==this.Zw&&(this.Zw=T,this.publish("airplayavailabilitychange"))}; g.h.Nde=function(){var T=(0,g.XY)(),Q=this.mediaElement.Ax();this.T9("airplay",{ia:Q});!Q&&!isNaN(this.Wp)&&T-this.Wp<2E3||(this.Wp=T,Q!==this.Ax()&&(T=this.visibility,T.T!==Q&&(T.T=Q,T.H1()),this.T9("airplay",{rbld:Q}),this.yV()),this.publish("airplayactivechange"))}; g.h.Ky=function(T){if(this.loader){var Q=this.loader,k=Q.L,l=Q.getCurrentTime(),v=Date.now()-k.D;k.D=NaN;k.T9("sdai",{adfetchdone:T,d:v});T&&!isNaN(k.C)&&k.S!==3&&Vm(k.loader,l,k.C,k.B);k.policy.S?k.N=NaN:k.Y=NaN;i$(k,4,k.S===3?"adfps":"adf");Tj(Q)}}; g.h.KO=function(){g.m6(this.Y0);this.X8.stop();this.videoData.qO=!0;this.Hd.Ct=!0;this.Hd.h3=0;var T=this.rJ;if(T.videoData.S){var Q=T.FB.N,k=T.videoData.S.yR;Q.Y.has(k)&&(Q.Y.delete(k),Q.S=!0)}T.T.stop();this.lG();g.J(this.playerState,8)&&this.LA(df(this.playerState,65));this.HJ=!1;T=this.Kc;T.T&&qlg(T.T);T.S&&(T=T.S,Q=g.qR(T.provider),T.T<0&&(T.T=Q,T.delay.start()),T.S=Q,T.Y=Q);g.Ez(this.qd);this.publish("playbackstarted");(T=g.jA("yt.scheduler.instance.clearPriorityThreshold"))?T():TB(0)}; g.h.lG=function(){var T=this.nA.mF(),Q={},k={};!bU("pbs",this.Rg.timerName)&&GC.measure&&GC.getEntriesByName&&(GC.getEntriesByName("mark_nr")[0]?grI("mark_nr"):grI());T.videoId&&(Q.videoId=T.videoId);T.clientPlaybackNonce&&!this.V("web_player_early_cpn")&&(Q.clientPlaybackNonce=T.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(k.isPausedOnLoad=!0);k.itag=T.S?Number(T.S.itag):-1;T.A9&&(k.preloadType=String(this.zr?2:1));Q.liveStreamMode=x__[JL(T)];Q.playerInfo=k;this.Rg.infoGel(Q); if(this.loader){T=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(T.L&&(Q=window.performance.getEntriesByName(T.L),Q.length&&(Q=Q[0],T.tick("vri",Q.fetchStart),T.tick("vdns",Q.domainLookupEnd),T.tick("vreq",Q.requestStart),T.tick("vrc",Q.responseEnd))),T.S&&(Q=window.performance.getEntriesByName(T.S),Q.length&&(Q=Q[0],T.tick("ari",Q.fetchStart),T.tick("adns",Q.domainLookupEnd),T.tick("areq",Q.requestStart),T.tick("arc",Q.responseEnd))));T=T.ticks;for(var l in T)T.hasOwnProperty(l)&& this.Rg.tick(l,T[l])}}; g.h.bC=function(T){var Q=this;T=T===void 0?!1:T;if(this.mediaElement&&this.videoData){Zk5(this.KA,this.isPlaying());var k=this.getCurrentTime();if(this.loader&&(g.J(this.playerState,4)&&g.iO(this.videoData)||g.J(this.playerState,32)&&cv(this.videoData)||McI(this.loader,k),this.V("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.currentTime)>10)){var l;this.T9("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(l=this.loader)==null?void 0:l.currentTime},!0)}k> 5&&(this.KA.L=k);(l=g.Ve())?g.P0.wC(this.zT):g.GO(this.zT);var v=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!v||sU(this.videoData))&&!g.J(this.playerState,128)){var L=function(){if(Q.mediaElement&&!g.J(Q.playerState,128)){Q.Hd.J3()&&sG5(Q,"pfx");var q=Q.getCurrentTime();Q.V("html5_buffer_underrun_transition_fix")&&(q-=Q.Px());var Y=hB(Q.mediaElement),U=g.J(Q.playerState,8),R=PV(Q.V3,q),Z=Vx5(Q.V3,q,(0,g.XY)(),Y);U&&R?Q.LA(df(Q.playerState,1)):U&&Z?(U=Q.getDuration(),R=nt(Q.videoData), U&&Math.abs(U-q)<1.1?(Q.T9("setended",{ct:q,bh:Y,dur:U,live:R}),Q.mediaElement.t_()?(Q.logger.debug("seek to 0 because of looping"),Q.seekTo(0,{I_:"videoplayer_loop",seekSource:37})):Q.fn()):(Q.playerState.isBuffering()||hgX(Q,"progress_fix"),Q.LA(wf(Q.playerState,1)))):(U&&!R&&!Z&&q>0&&(U=(Date.now()-Q.FC)/1E3,R=Q.getDuration(),q>R-1&&Q.T9("misspg",{t:q.toFixed(2),d:R.toFixed(2),r:U.toFixed(2),bh:Y.toFixed(2)})),Q.playerState.isPaused()&&Q.playerState.isBuffering()&&hB(Q.mediaElement)>5&&Q.LA(df(Q.playerState, 1)));Q.bC()}}; this.mediaElement.nX().length===0?this.zT=l?g.P0.oD(L,100):g.Zq(L,100):this.zT=l?g.P0.oD(L,500):g.Zq(L,500)}this.videoData.Ah=k;!T&&this.isPlaying()&&Zmg(this);nOu(this.BG,this.lK,this.T_(),this.isBackground())&&vp(this);this.publish("progresssync",T);v&&sU(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.h.X2=function(){this.NL("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.h.BU=function(){return this.Kc.BU()}; g.h.Jz=function(){return this.loader?this.loader.Jz():e4(this.Hd.schedule,!0)}; g.h.LA=function(T){if(!g.AB(this.playerState,T)){this.logger.debug(function(){return"Setting state "+T.toString()}); var Q=new g.YX(T,this.playerState);this.playerState=T;Suy(this);var k=!this.x0.length;this.x0.push(Q);var l=this.mediaElement&&this.mediaElement.isSeeking();g.RY(Q,1)&&this.loader&&cyT(this.loader);l=Q.oldState.state===8&&!l;g.RY(Q,1)&&l&&g.J(this.playerState,8)&&!g.J(this.playerState,64)&&this.loader&&(DfX(this.loader),this.mediaElement&&hB(this.mediaElement)>=5&&avT(this.BG,this.lK)&&vp(this));(l=g.jj(this.Hd.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.J(T,1)&&(g.J(T,8)||g.J(T, 16))?this.GL.start(l):this.GL.stop();(Ue(Q,8)<0||g.RY(Q,1024))&&this.X8.stop();!g.RY(Q,8)||this.videoData.qO||g.J(Q.state,1024)||this.X8.start();g.J(Q.state,8)&&Ue(Q,16)<0&&!g.J(Q.state,32)&&!g.J(Q.state,2)&&this.playVideo();g.J(Q.state,2)&&Vv(this.videoData)&&(this.SR(this.getCurrentTime()),this.bC(!0));g.RY(Q,2)&&(this.Hr(!0),this.Hd.J3()&&this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&cv(this.videoData)&&this.videoData.T&&(l={minst:""+this.videoData.T.Jp,cminst:""+(this.videoData.T.SY()+ this.Px()),maxst:""+this.videoData.T.mK,hts:""+this.videoData.T.qO,cmaxst:""+(this.videoData.T.EM()+this.Px())},this.T9("sabrSeekableBoundaries",l)));g.RY(Q,128)&&this.T0();this.videoData.T&&this.videoData.isLivePlayback&&!this.M0&&(Ue(Q,8)<0?aly(this.videoData.T):g.RY(Q,8)&&this.videoData.T.resume());UDb(this.KA,Q);BWC(this.Kc,Q);if(k&&!this.wd())try{for(var v=g.B(this.x0),L=v.next();!L.done;L=v.next()){var q=L.value;K8t(this.lH,q);this.publish("statechange",q)}}finally{this.x0.length=0}}}; g.h.UP=function(){this.Rg.tick("qoes")}; g.h.Ba=function(){this.KA.Ba()}; g.h.ut=function(T,Q,k,l){a:{var v=this.rJ;l=l===void 0?"LICENSE":l;k=k.substring(0,256);var L=fu(Q);T==="drm.keyerror"&&this.QU&&this.QU.S.keys.length>1&&v.Y<96&&(T="drm.sessionlimitexhausted",L=!1);var q=v.FB.experiments.Wd("html5_retry_on_drm_unavailable"),Y=v.FB.experiments.Wd("html5_retry_on_drm_key_error"),U=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(q&&T==="drm.unavailable"||Y&&T==="drm.keyerror"&&!k.match(U))v.RK("qoe.restart",{retryOnDrmError:1,e:T,detail:k}),v.yq.s$(!0);else{if(L)if(v.videoData.S&& v.videoData.S.video.isHdr())Cg5(v,T);else{if(v.yq.NL(T,Q,l,k),R2t(v,{detail:k}))break a}else v.RK(T,{detail:k});T==="drm.sessionlimitexhausted"&&(v.T9("retrydrm",{sessionLimitExhausted:1}),v.Y++,ILJ(v.yq))}}}; g.h.kg9=function(){var T=this,Q=g.jj(this.Hd.experiments,"html5_license_constraint_delay"),k=TL();Q&&k?(Q=new g.FA(function(){T.zE();M4(T)},Q),g.P(this,Q),Q.start()):(this.zE(),M4(this))}; g.h.qg=function(T){this.publish("heartbeatparams",T)}; g.h.e9=function(T){this.T9("keystatuses",PYf(T));var Q="auto",k=!1;this.videoData.S&&(Q=this.videoData.S.video.quality,k=this.videoData.S.video.isHdr());a:{switch(Q){case "highres":case "hd2880":Q="UHD2";break;case "hd2160":case "hd1440":Q="UHD1";break;case "hd1080":case "hd720":Q="HD";break;case "large":case "medium":case "small":case "light":case "tiny":Q="SD";break;default:Q="";break a}k&&(Q+="HDR")}Q=h2(T)?sF(T,Q):T.Y.includes(Q);if(this.V("html5_enable_vp9_fairplay")){if(k)if(T.C){var l;if((l= this.QU)==null?0:Ym(l.T))if((k=this.QU)==null)k=0;else{for(var v=l=void 0,L=g.B(k.S.values()),q=L.next();!q.done;q=L.next())q=q.value,l||(l=t3I(q,"SD")),v||(v=t3I(q,"AUDIO"));k.b8({sd:l,audio:v});k=l==="output-restricted"||v==="output-restricted"}else k=!Q;if(k){this.T9("drm",{dshdr:1});Cg5(this.rJ);return}}else{this.videoData.HM||(this.videoData.HM=!0,this.T9("drm",{dphdr:1}),this.s$(!0));return}var Y;if((Y=this.QU)==null?0:Ym(Y.T))return}else if(Y=T.C&&Q,k&&!Y){Cg5(this.rJ);return}Q||sF(T,"AUDIO")&& sF(T,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),T=PYf(T),this.d4?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.V("html5_report_fatal_drm_restricted_error_killswitch")||this.NL("drm.keyerror",2,void 0,"info."+T)):(this.d4=!0,this.RK(new g.ZK("qoe.restart",Object.assign({},{retrydrm:1},T))),vp(this),ILJ(this)))}; g.h.F1K=function(){if(!this.videoData.qO&&this.mediaElement&&!this.isBackground()){var T="0";this.mediaElement.Nm()>0&&hB(this.mediaElement)>=5&&this.videoData.L&&this.videoData.L.T&&(this.LA(wf(this.playerState,1)),hgX(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),T="1");Suy(this);var Q=this.videoData.L;T={restartmsg:T,mfmt:!d4(this.videoData),mdrm:!(!(Q&&Q.videoInfos&&Q.videoInfos.length&&Q.videoInfos[0].jY)||this.QU),mfmtinfo:!this.videoData.S,prerolls:this.Pc()?this.ZS.join(","): "0"};if(this.QU){Q=this.QU;if(Q.S.size<=0){var k="ns;";Q.D||(k+="nr;");Q=k+="ql."+Q.L.length}else Q=PYf(Q.S.values().next().value),Q=RE(Q);T.drmp=Q}var l;Object.assign(T,((l=this.loader)==null?void 0:l.Tx())||{});var v;Object.assign(T,((v=this.mediaElement)==null?void 0:v.Tx())||{});this.Kc.RK("qoe.start15s",RE(T));this.publish("loadsofttimeout")}}; g.h.SR=function(T){this.videoData.lengthSeconds!==T&&(this.videoData.lengthSeconds=T,M4(this))}; g.h.Hr=function(T,Q){var k=this;T=T===void 0?!1:T;if(!this.KK)if(bU("att_s","player_att")||cP("att_s",void 0,"player_att"),this.V("use_rta_for_player"))(function(){var v,L,q,Y;return g.a(function(U){switch(U.S){case 1:if(!(v=T)){U.Ym(2);break}return g.c(U,g.xUC(),3);case 3:v=!U.T;case 2:if(v)return U.return();g.z5(U,4);L=wpH(k.Kc);if(!L)throw Error();q={};return g.c(U,g.K45((q.cpn=k.videoData.clientPlaybackNonce,q.encryptedVideoId=k.videoData.videoId||"",q),3E4),6);case 6:Y=U.T;if(k.KK)throw Error(); if(!Y.challenge)throw g.rB(Error("Not sending attestation ping; no attestation challenge string")),Error();k.KK=!0;var R=[Y.challenge];Y.error?R.push("r1c="+Y.error):Y.webResponse&&R.push("r1a="+Y.webResponse);var Z;((Z=Y.adblockReporting)==null?void 0:Z.reportingStatus)!==void 0&&R.push("r6a="+Y.adblockReporting.reportingStatus);var f;((f=Y.adblockReporting)==null?void 0:f.broadSpectrumDetectionResult)!==void 0&&R.push("r6b="+Y.adblockReporting.broadSpectrumDetectionResult);L(R.join("&"));cP("att_f", void 0,"player_att");g.d6(U,0);break;case 4:g.by(U),cP("att_e",void 0,"player_att"),g.BT(U)}})})().then(function(){Q==null||Q()}); else{var l=new g.$ug(this.videoData);if("c1a"in l.wA&&!g.jX.isInitialized()){cP("att_wb",void 0,"player_att");this.zF===2&&Math.random()<.01&&g.rB(Error("Botguard not available after 2 attempts"));if(T)return;if(this.zF<5){g.Ez(this.gg);this.zF++;return}}(l=g.Jjb(l))?(cP("att_f",void 0,"player_att"),Xpg(this.Kc,l),this.KK=!0):cP("att_e",void 0,"player_att")}}; g.h.WG=function(T){T=T===void 0?!1:T;return nt(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.iX()||g.iO(this.videoData))?this.getCurrentTime():this.EM(T)}; g.h.r_=function(){return this.SY()}; g.h.EM=function(T){return this.KA.EM(T===void 0?!1:T)}; g.h.SY=function(){return this.KA.SY()}; g.h.Px=function(){return this.KA?this.KA.Px():0}; g.h.getStreamTimeOffset=function(){return this.KA?this.KA.getStreamTimeOffset():0}; g.h.TG=function(){var T=0;this.Hd.V("web_player_ss_media_time_offset")&&(T=this.getStreamTimeOffset()===0?this.Px():this.getStreamTimeOffset());return T}; g.h.setPlaybackRate=function(T){var Q;this.playbackRate!==T&&wVT(this.BG,(Q=this.videoData.L)==null?void 0:Q.videoInfos)&&(this.playbackRate=T,vp(this));this.playbackRate=T;this.mediaElement&&this.mediaElement.setPlaybackRate(T)}; g.h.getPlaybackRate=function(){return this.playbackRate}; g.h.getPlaybackQuality=function(){var T="unknown";if(this.videoData.S&&(T=this.videoData.S.video.quality,T==="auto"&&this.mediaElement)){var Q=this.I9();Q&&Q.videoHeight>0&&(T=XL(Q.videoWidth,Q.videoHeight))}return T}; g.h.isHdr=function(){return!!(this.videoData.S&&this.videoData.S.video&&this.videoData.S.video.isHdr())}; g.h.sendVideoStatsEngageEvent=function(T,Q){var k=this.Kc;k.T?(k=cV(k.T,"engage"),k.hj=T,k.send(Q)):Q&&Q()}; g.h.Cd=function(T){return this.Kc.Cd(T)}; g.h.isAtLiveHead=function(T,Q){Q=Q===void 0?!1:Q;return nt(this.videoData)&&(this.Oy||Q)?this.KA.isAtLiveHead(T):!1}; g.h.As=function(){var T=this.EM(),Q=this.getCurrentTime(),k;(k=!nt(this.videoData))||(k=this.KA,k=!(k.T&&k.T.L));return k||this.iX()||isNaN(T)||isNaN(Q)?0:Math.max(0,T-Q)}; g.h.jS=function(T){(this.Oy=T)||this.X8.stop();this.videoData.T&&(T?this.videoData.T.resume():aly(this.videoData.T));if(this.loader){var Q=this.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&this.ME()&&this.videoData.isLivePlayback;T&&!Q?this.loader.resume():fv(this,!0)}g.J(this.playerState,2)||T?g.J(this.playerState,512)&&T&&this.LA(df(this.playerState,512)):this.LA(wf(this.playerState,512));Q=this.Kc;Q.qoe&&(Q=Q.qoe,g.of(Q,g.qR(Q.provider),"stream",[T?"A":"I"]))}; g.h.GA=function(T){this.Kc.RK("player.exception",RE({n:T.name,m:T.message}))}; g.h.RD=T5(22);g.h.aM=T5(51);g.h.qm=function(T){this.Kc.qm(T)}; g.h.Sy=function(T){this.Kc.Sy(T)}; g.h.Qt=function(T){this.Kc.Qt(T)}; g.h.h9=T5(28);g.h.Lz=T5(34);g.h.wp=function(T){this.Kc.wp(T)}; g.h.pn=function(T,Q,k,l){this.Kc.pn(T,Q,k,l)}; g.h.qr=function(){this.T9("hidden",{},!0)}; g.h.Ir=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.h.qG=function(){return this.loader?this.loader.qG():!0}; g.h.setLoop=function(T){this.loop=T;this.mediaElement&&!g.G4(this.Hd)&&this.mediaElement.setLoop(T)}; g.h.t_=function(){return this.mediaElement&&!g.G4(this.Hd)?this.mediaElement.t_():this.loop}; g.h.eU=function(T){this.T9("timestamp",{o:T.toString()});this.KA.eU(T)}; g.h.z_=function(T){this.Rg.tick(T)}; g.h.Uh=function(T){return this.Rg.Uh(T)}; g.h.Sl=function(T){this.Rg.Sl(T)}; g.h.T9=function(T,Q,k){this.Kc.T9(T,Q,k===void 0?!1:k)}; g.h.HW=function(T,Q,k){this.Kc.T9(T,Q,k===void 0?!1:k)}; g.h.RK=function(T){this.Kc.RK(T.errorCode,RE(T.details));T=T.errorCode;if(this.videoData.isLivePlayback&&(T==="qoe.longrebuffer"||T==="qoe.slowseek")||T==="qoe.restart"){T=this.loader?mxC(this.loader.videoTrack):{};var Q,k;this.T9("lasoe",Object.assign(this.loader?mxC(this.loader.audioTrack):{},(Q=this.j6)==null?void 0:(k=Q.T)==null?void 0:k.tM()));var l,v;this.T9("lvsoe",Object.assign(T,(l=this.j6)==null?void 0:(v=l.S)==null?void 0:v.tM()))}if(this.V("html5_log_centralized_player_time")){var L;this.T9("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(L=this.loader)==null?void 0:L.currentTime})}}; g.h.PJ=function(T,Q,k){this.Kc.PJ(T,Q,k)}; g.h.sz=function(T,Q,k,l,v,L,q,Y){var U;if((U=this.videoData.T)!=null&&U.isLive){var R=Q.playerType===2?Q:T,Z=T.videoData.videoId,f=Q.videoData.videoId;if(Z&&f){U=this.Kc;if(U.qoe){var G=U.qoe,m=T.cpn,I=Q.cpn,z=R.videoData.pG,w=G.provider.videoData.clientPlaybackNonce,r=G.provider.videoData.videoId,A=I!==w&&f!==r;w=m!==w&&Z!==r;G.reportStats();G.adCpn&&G.adCpn!==m||(G.adCpn=w?m:"",G.Tc=w?Z:"",G.adFormat=w?z:void 0,zqt(G,L?4:v?2:0,I,f,l),G.reportStats(),G.adCpn=A?I:"",G.Tc=A?f:"",G.adFormat=A?z:void 0, zqt(G,L?5:v?3:1,m,Z,k),G.reportStats())}k=T.cpn;if(U.L.has(k)){if(v=U.L.get(k),ug(v,!0).send(),af(v),k!==U.provider.videoData.clientPlaybackNonce){Zvg(v);var D;(D=U.T)==null||gku(D);U.L.delete(k)}}else U.Bl=U.provider.videoData.clientPlaybackNonce,U.Bl&&U.T&&(U.L.set(U.Bl,U.T),ug(U.T).send(),af(U.T));D=Q.cpn;R=R.videoData;l-=this.TG();if(U.L.has(D)){l=U.L.get(D);var K=l.L&&isNaN(l.N)?Dv(l):NaN;l=R5C(l,!1);isNaN(K)||(l.C=K);l.send()}else l=d4g(U,U.provider,R,l),U.L.set(D,l),fxg(l,new g.YX(wf(new g.Cd, 8),new g.Cd)),qlg(l),(K=U.T)==null||af(K);U.Bl=D;if(this.V("html5_unify_csi_server_stitched_transition_logging")){if(U=this.Rg,K=Q.cpn,l=this.videoData.clientPlaybackNonce,Q=Q.videoData,T=(T.cpn===l?"video":"ad")+"_to_"+(K===l?"video":"ad"),T!=="video_to_ad"){l=T==="ad_to_video"?void 0:Q;R=l==null?void 0:l.xr;D={};if(Q==null?0:Q.B)D.cttAuthInfo={token:Q.B,videoId:Q.videoId};q&&(D.startTime=q);At(T,D);var O,E,e;q={targetVideoId:(O=Q==null?void 0:Q.videoId)!=null?O:"empty_video",targetCpn:K,adVideoId:(E= l==null?void 0:l.videoId)!=null?E:"empty_video",adClientPlaybackNonce:(e=R==null?void 0:R.cpn)!=null?e:l==null?void 0:l.clientPlaybackNonce};R&&(q.adBreakType=R.adBreakType,q.adType=R.adType);g.NL(q,T);zx(U,Y,T)}}else O=this.Rg,e=this.videoData.clientPlaybackNonce,E=Q.videoData,e=(T.cpn===e?"video":"ad")+"_to_"+(Q.cpn===e?"video":"ad"),T={},E.B&&(T.cttAuthInfo={token:E.B,videoId:E.videoId}),q&&(T.startTime=q),At(e,T),g.NL({targetVideoId:E.videoId,targetCpn:Q.cpn,isSsdai:!0},e),q||zx(O,Y,e)}}else this.logger.T(360717806, "SSTEvent for nonSS")}; g.h.ri=function(){var T=this.nA,Q=T.l1;T.l1=[];return Q}; g.h.Md=function(T){this.videoData.p9=!0;this.RK(new g.ZK("sabr.fallback",T));this.s$(!0)}; g.h.XW=function(T,Q){this.videoData.IP=!0;if(Q===void 0||Q)this.RK(new g.ZK("qoe.restart",T)),this.s$(!0)}; g.h.r6=function(T){this.T9("sdai",{aftimeout:T});this.RK(new g.ZK("ad.fetchtimeout",{timeout:T}))}; g.h.JU=function(T,Q){this.T9("timelineerror",T);T=new g.ZK("dai.timelineerror",T);Q?this.NL("dai.timelineerror",1,"RETRYABLE_ERROR",RE(T.details)):this.RK(T)}; g.h.jO=function(){return g.qR(this.Kc.provider)}; g.h.getPlayerSize=function(){return this.GQ.getPlayerSize()}; g.h.J9=function(){return this.GQ.J9()}; g.h.eZ=function(){return this.Rg}; g.h.Z_=function(){return this.nA.Z_()}; g.h.getVolume=function(){return this.nA.getVolume()}; g.h.m_=function(){return this.nA.m_()}; g.h.isMuted=function(){return this.nA.isMuted()}; g.h.Gc=function(){return this.nA.Gc()}; g.h.gK=function(){this.M0=!0}; g.h.V=function(T){return this.Hd.V(T)}; g.h.N8=function(T,Q,k,l,v){this.T9("xvt",{m:T,g:Q?1:0,tt:k?1:0,np:l?1:0,c:v})}; g.h.tU=function(){var T;(T=this.loader)==null||T.resume()}; g.h.ME=function(){return g.CW(this.ZS,"ad")}; g.h.EY=function(){var T=this.getCurrentTime(),Q=T-this.Px();var k=this.mediaElement?V4(this.mediaElement.Q8()):0;k=Math.floor(Math.max(k-Q,0))+100;var l;return((l=this.loader)==null?0:l.EY(Q,k))?(this.T9("sdai",{skipad:1,ct:Q.toFixed(3),adj:k.toFixed(3)}),cv(this.videoData)&&this.loader.seek(Q+k,{seekSource:89,I_:"videoplayer_skipServerStitchedAd"}),waX(this.KA,T),!0):!1}; g.h.J3=function(){return this.Hd.J3()}; g.h.WH=function(){if(this.V("html5_generate_content_po_token"))return this.videoData.PK||"";this.nA.KT();return this.Hd.vk||""}; g.h.yZ=function(){if(this.videoData.videoId)return this.videoData.W9}; g.h.Dg=function(){return this.videoData.videoId}; g.h.aN=function(){return this.nA.fH}; g.h.NC=function(){return this.HJ}; g.h.pS=function(){return this.nA.pS()}; g.h.R3=function(T,Q,k){this.LA(wf(this.playerState,16,k));this.KA.R3(T,Q)}; g.h.prefetchKeyPlay=function(){}; g.h.Jd=function(){this.KA.Jd()}; g.h.Ng=function(T,Q){var k=this.V("html5_generate_content_po_token")?this.videoData:void 0;this.nA.Ng(T,Q,k)}; g.h.aQ=function(T,Q){this.Kc.aQ(T,Q)}; g.h.J5=function(){return this.Kc.J5()}; g.h.jX=function(){return this.videoData.hQ}; g.h.jZ=function(){return this.nA.jZ()}; g.h.Mw=function(){return this.nA.Mw(this)}; g.h.aO=function(){this.vu=!0}; g.h.NG=function(T){var Q;(Q=this.loader)==null||Q.NG(T)};g.S(BuC,GQ);g.S(m8,zQ);m8.prototype.T=function(T){T&&Xe(this,this.U.getLoopVideo());this.U.logVisibility(this.element,T)}; m8.prototype.logClick=function(){this.U.logClick(this.element)}; m8.prototype.onLoopChange=function(T){Xe(this,T)}; m8.prototype.S=function(T){this.U.setLoopVideo(T)};g.S(zgb,GQ);g.S(X1J,GQ);g.h=X1J.prototype;g.h.seekToChapterWithAnimation=function(T){var Q=this;if(g.aa(this.api)&&!(T<0)){var k=this.api.getVideoData(),l=k.NK;if(l&&T=0)return;Q=~Q;g.Pm(this.items,Q,0,T);hZ(this.menuItems.element,T.element,Q)}T.subscribe("size-change",this.kK,this);this.menuItems.publish("size-change")}; g.h.y8=function(T){T.unsubscribe("size-change",this.kK,this);this.wd()||(g.zv(this.items,T),this.menuItems.element.removeChild(T.element),this.menuItems.publish("size-change"))}; g.h.kK=function(){this.menuItems.publish("size-change")}; g.h.focus=function(){for(var T=0,Q=0;Q1&&g.a4(this)}; g.h.yd=function(){Lvu(this);this.Sr&&(o$f(this),g.QP(this.element,this.size))}; g.h.NN=function(){var T=this.T.pop();v$g(this,T,this.T[this.T.length-1],!0)}; g.h.dk=function(T){if(!T.defaultPrevented)switch(T.keyCode){case 27:this.sG();T.preventDefault();break;case 37:this.T.length>1&&this.NN();T.preventDefault();break;case 39:T.preventDefault()}}; g.h.focus=function(){this.T.length&&this.T[this.T.length-1].focus()}; g.h.EK=function(){g.LA.prototype.EK.call(this);this.B&&this.B.dispose();this.C&&this.C.dispose()};g.S(u_,g.cp);u_.prototype.open=function(T,Q){this.initialize(T.items)&&this.fA(Q,!!Q)}; u_.prototype.initialize=function(T){g.rW(this.xP);if(T===void 0||T.length===0)return!1;var Q=T.length;T=g.B(T);for(var k=T.next();!k.done;k=T.next())this.A6(k.value,Q--);return!0}; u_.prototype.A6=function(T,Q){T.menuNavigationItemRenderer?MWt(this,T.menuNavigationItemRenderer,Q):T.menuServiceItemRenderer&&YLC(this,T.menuServiceItemRenderer,Q)};g.S(nv,N4);g.h=nv.prototype;g.h.nO=function(T){T.target!==this.dismissButton.element&&T.target!==this.overflowButton.element&&(this.wh(),this.onClickCommand&&this.U.tj("innertubeCommand",this.onClickCommand))}; g.h.Np=function(){this.enabled=!1;this.D.hide()}; g.h.Hs=function(){return!!this.T&&this.enabled}; g.h.onVideoDataChange=function(T,Q){this.NS(Q);if(this.T){this.w7();a:if(!this.isCounterfactual){var k,l,v;this.banner.update({title:(k=this.T)==null?void 0:k.title,subtitle:(l=this.T)==null?void 0:l.subtitle,metadata:(v=this.T)==null?void 0:v.metadataText});var L;this.onClickCommand=g.t((L=this.T)==null?void 0:L.onTap,Dh);var q;if(T=g.t((q=this.T)==null?void 0:q.onOverflow,Dh))this.C=g.t(T,ilT);var Y;if((Y=this.T)==null?0:Y.thumbnailImage){var U,R;q=((U=this.T)==null?void 0:(R=U.thumbnailImage)== null?void 0:R.sources)||[];if(q.length===0)break a;this.thumbnailImage.update({url:q[0].url})}else{var Z;if((Z=this.T)==null?0:Z.thumbnailIconName){var f;this.thumbnailIcon.update({icon:(f=this.T)==null?void 0:f.thumbnailIconName})}}var G;this.shouldShowOverflowButton=!((G=this.T)==null||!G.shouldShowOverflowButton);var m;this.shouldHideDismissButton=!((m=this.T)==null||!m.shouldHideDismissButton)}var I;this.banner.element.setAttribute("aria-label",((I=this.T)==null?void 0:I.a11yLabel)||"");var z; this.p_=(z=this.T)==null?void 0:z.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;R95(this)}}; g.h.qG6=function(){this.isVisible=!0;R95(this)}; g.h.T5q=function(){this.isVisible=!1;R95(this)}; g.h.cC=function(){N4.prototype.cC.call(this);this.S&&this.U.logVisibility(this.banner.element,this.isVisible)}; g.h.wh=function(){N4.prototype.wh.call(this,!1);this.S&&this.U.logClick(this.banner.element)}; g.h.xv=function(T){this.B||(this.B=new u_(this.U),g.P(this,this.B));var Q,k;if((Q=this.C)==null?0:(k=Q.menu)==null?0:k.menuRenderer)this.B.open(this.C.menu.menuRenderer,T.target),T.preventDefault()}; g.h.NS=function(){}; g.h.w7=function(){}; g.h.EK=function(){this.U.uf("suggested_action_view_model");N4.prototype.EK.call(this)};g.S(Kv,nv); Kv.prototype.NS=function(T){var Q,k,l;this.productUpsellSuggestedActionViewModel=g.t((Q=T.getWatchNextResponse())==null?void 0:(k=Q.playerOverlays)==null?void 0:(l=k.playerOverlayRenderer)==null?void 0:l.suggestedActionViewModel,ZO1);var v;if((v=this.productUpsellSuggestedActionViewModel)==null?0:v.content){var L;this.T=g.t((L=this.productUpsellSuggestedActionViewModel)==null?void 0:L.content,FI1)}var q,Y;if(this.S=!!((q=this.productUpsellSuggestedActionViewModel)==null?0:(Y=q.loggingDirectives)==null? 0:Y.trackingParams)){var U,R;this.U.setTrackingParams(this.banner.element,((U=this.productUpsellSuggestedActionViewModel)==null?void 0:(R=U.loggingDirectives)==null?void 0:R.trackingParams)||null)}var Z;this.isCounterfactual=!((Z=this.productUpsellSuggestedActionViewModel)==null||!Z.isCounterfactualServing)}; Kv.prototype.w7=function(){var T=[],Q,k=g.B(((Q=this.productUpsellSuggestedActionViewModel)==null?void 0:Q.ranges)||[]);for(Q=k.next();!Q.done;Q=k.next()){var l=Q.value;l&&(Q=Number(l.startTimeMilliseconds),l=Number(l.endTimeMilliseconds),isNaN(Q)||isNaN(l)||T.push(new g.$d(Q,l,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.U.fY(T)};g.S(Za6,GQ);g.S(xk,GQ);xk.prototype.onVideoDataChange=function(T,Q){var k=this;if(!Ra(Q)&&(T==="newdata"&&GuT(this),this.T&&T==="dataloaded")){this.T=!1;var l;ar(DQ(cB(this.api.G(),(l=this.api.getVideoData())==null?void 0:g.YD(l)),function(v){Caf(k,v)}),function(){k.T=!0})}}; xk.prototype.HG=function(){var T=this;if(g.G4(this.api.G())){var Q,k=g.rj(this.api.G(),(Q=this.api.getVideoData())==null?void 0:g.YD(Q));return DQ(A1(k),function(l){var v=lf();oR(v,l);return T.api.HG(v)})}return A1(this.api.HG())};g.S(g.Hp,g.UQ);g.h=g.Hp.prototype;g.h.open=function(){g.Dx(this.YB,this.S)}; g.h.U$=function(T){BU6(this);var Q=this.options[T];Q&&(Q.element.setAttribute("aria-checked","true"),this.qF(this.U4(T)),this.L=T)}; g.h.VE=function(T){g.rW(this.S);for(var Q={},k=!1,l=0;l=0?this.T.playbackRate:1}catch(T){return 1}}; g.h.setPlaybackRate=function(T){this.getPlaybackRate()!==T&&(this.T.playbackRate=T);return T}; g.h.t_=function(){return this.T.loop}; g.h.setLoop=function(T){this.T.loop=T}; g.h.canPlayType=function(T,Q){return this.T.canPlayType(T,Q)}; g.h.isPaused=function(){return this.T.paused}; g.h.isSeeking=function(){return this.T.seeking}; g.h.isEnded=function(){return this.T.ended}; g.h.fk=function(){return this.T.muted}; g.h.r9=function(T){Cu();this.T.muted=T}; g.h.nX=function(){return this.T.played||eI([],[])}; g.h.Q8=function(){try{var T=this.T.buffered}catch(Q){}return T||eI([],[])}; g.h.MD=function(){return this.T.seekable||eI([],[])}; g.h.Q9=function(){var T=this.T;return T.getStartDate?T.getStartDate():null}; g.h.getCurrentTime=function(){return this.T.currentTime}; g.h.setCurrentTime=function(T){this.T.currentTime=T}; g.h.getDuration=function(){return this.T.duration}; g.h.load=function(){var T=this.T.playbackRate;try{this.T.load()}catch(Q){}this.T.playbackRate=T}; g.h.pause=function(){this.T.pause()}; g.h.play=function(){var T=this.T.play();if(!T||!T.then)return null;T.then(void 0,function(){}); return T}; g.h.Nm=function(){return this.T.readyState}; g.h.D2=function(){return this.T.networkState}; g.h.SZ=function(){return this.T.error?this.T.error.code:null}; g.h.dw=function(){return this.T.error?this.T.error.message:""}; g.h.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.T instanceof window.HTMLVideoElement&&this.T.getVideoPlaybackQuality)return this.T.getVideoPlaybackQuality();if(this.T){var T=this.T,Q=T.webkitDroppedFrameCount;if(T=T.webkitDecodedFrameCount)return{droppedVideoFrames:Q||0,totalVideoFrames:T}}return{}}; g.h.Ax=function(){return!!this.T.webkitCurrentPlaybackTargetIsWireless}; g.h.YU=function(){return!!this.T.webkitShowPlaybackTargetPicker()}; g.h.togglePictureInPicture=function(){var T=this.T,Q=window.document;window.document.pictureInPictureEnabled?this.T!==Q.pictureInPictureElement?T.requestPictureInPicture():Q.exitPictureInPicture():SI()&&T.webkitSetPresentationMode(T.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.h.rS=function(){var T=this.T;return new g.WX(T.offsetLeft,T.offsetTop)}; g.h.getSize=function(){return g.jC(this.T)}; g.h.setSize=function(T){g.QP(this.T,T)}; g.h.getVolume=function(){return this.T.volume}; g.h.setVolume=function(T){Cu();this.T.volume=T}; g.h.EL=function(T){this.N[T]||(this.T.addEventListener(T,this.listener),this.N[T]=this.listener)}; g.h.setAttribute=function(T,Q){this.T.setAttribute(T,Q)}; g.h.removeAttribute=function(T){this.T.removeAttribute(T)}; g.h.hasAttribute=function(T){return this.T.hasAttribute(T)}; g.h.Uq=T5(61);g.h.U3=T5(63);g.h.Rc=T5(65);g.h.mV=T5(67);g.h.qz=function(){return I1(this.T)}; g.h.SX=function(T){g.oF(this.T,T)}; g.h.Jv=function(T){return g.JZ(this.T,T)}; g.h.Ob=function(){return g.SO(document.body,this.T)}; g.h.audioTracks=function(){var T=this.T;if("audioTracks"in T)return T.audioTracks}; g.h.EK=function(){for(var T=g.B(Object.keys(this.N)),Q=T.next();!Q.done;Q=T.next())Q=Q.value,this.T.removeEventListener(Q,this.N[Q]);ml.prototype.EK.call(this)}; g.h.A2=function(T){this.T.disableRemotePlayback=T};g.S(VW,g.p);g.S(Q_,g.p);Q_.prototype.show=function(){g.p.prototype.show.call(this);this.Aj();this.ZV.V("html5_enable_moving_s4n_window")&&g.G4(this.ZV.G())&&this.j()}; Q_.prototype.hide=function(){g.p.prototype.hide.call(this);this.delay.stop();this.Y.stop()}; Q_.prototype.Aj=function(){var T=(0,g.XY)(),Q=a4C(this.ZV);Tx(this.T,Q.bandwidth_samples);Tx(this.C,Q.network_activity_samples);Tx(this.L,Q.live_latency_samples);Tx(this.S,Q.buffer_health_samples);var k={};Q=g.B(Object.entries(Q));for(var l=Q.next();!l.done;l=Q.next()){var v=g.B(l.value);l=v.next().value;v=v.next().value;this.D[l]!==v&&(k[l]=" "+String(v));this.D[l]=v}this.update(k);T=(0,g.XY)()-T>25?5E3:500;this.delay.start(T)}; Q_.prototype.j=function(){this.B?(this.position+=1,this.position>15&&(this.B=!1)):(--this.position,this.position<=0&&(this.B=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.Y.start(2E4)};g.S(Kvy,GQ);g.S(jp,g.x);jp.prototype.T=function(){var T=(0,g.XY)()-this.startTime;T=Tthis.Y[T])&&(this.T=T,this.VW())}; g.h.onCueRangeExit=function(T){var Q=yEb(this,T);Q&&this.T===T&&this.api.tj("innertubeCommand",Q);oh(this);this.T=void 0}; g.h.yf=function(T){this.L=T}; g.h.BL=function(){this.VW();this.L=void 0}; g.h.VW=function(){if(this.T!==void 0){var T=(T=lj(this,this.T))&&T.onCueRangeEnter?uA(T.onCueRangeEnter):void 0;var Q=lj(this,this.T);a:if(Q&&Q.additionalTrigger){var k=g.B(Q.additionalTrigger);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.type){var v=void 0,L=void 0;if((v=this.xm[l.type])==null?0:v((L=l.args)!=null?L:{})){k=!0;break a}}k=!1}else k=!0;T&&k&&(this.api.tj("innertubeCommand",T),ia6(this,Q),this.Y[this.T]!==void 0&&this.Y[this.T]++,this.D=!0)}}; g.h.EK=function(){this.timelyActions=this.L=this.T=this.videoId=void 0;this.Y={};this.oM();oh(this);GQ.prototype.EK.call(this)};g.S(QgJ,GQ);g.S(va,zQ);va.prototype.B=function(T){this.Y(T?2:1)}; va.prototype.S=function(){var T=this.U.getPresentingPlayerType();T===2||T===3?(this.T=!1,this.YB.y8(this)):this.T||(T=this.hasVoiceBoostAudioTrack(),this.setEnabled(T),T=this.L()===2&&T,Xe(this,T),this.YB.A6(this),this.T=!0)}; va.prototype.EK=function(){this.YB.y8(this);zQ.prototype.EK.call(this)};g.S(Lk,GQ);Lk.prototype.getVoiceBoostUserPreference=function(){return this.T}; Lk.prototype.setVoiceBoostUserPreference=function(T){this.api.T9("vb_set",{pref:T});g.ri("yt-player-voice-boost",T);T!==this.T&&(this.T=T,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.yV())}; Lk.prototype.hasVoiceBoostAudioTrack=function(){var T,Q,k=(T=this.api.getVideoData())==null?void 0:(Q=T.L)==null?void 0:Q.T;return k?$4(k,function(l){var v;return((v=l.audio)==null?void 0:v.S)===!0}):!1}; Lk.prototype.updateEnvironmentData=function(){this.api.G().wV=this.T};var UdI=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.S(MD,GQ);MD.prototype.EK=function(){this.C&&(g.m6(this.C),this.C=void 0);GQ.prototype.EK.call(this)}; MD.prototype.KT=function(){(this.S?!this.T:this.L)&&Us(this)}; MD.prototype.Ts=function(T,Q,k){var l=this;if(lNy(T)){var v=k||"";if(this.T)Q=Rh(this,v),o7g(T,Q);else{var L=new g.Zb;Q.push(L.promise);this.N.promise.then(function(){var q=Rh(l,v);o7g(T,q);L.resolve()})}}}; MD.prototype.rY=function(T){var Q=this;if(this.S||this.L)T.PK=Rh(this,T.videoId),this.T||(this.Y=new GN,this.N.promise.then(function(){Q.Rg.Uh("pot_if");T.PK=Rh(Q,T.videoId)}))};g.S(g.fk,g.p);g.fk.prototype.select=function(){this.api.mG(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.rN||void 0)&&this.api.logClick(this.element)}; g.fk.prototype.onClick=function(T){if(g.Qk(this.api.G())&&this.api.V("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var Q=this.suggestion.fB(),k={};g.EU(this.api,k);Q=g.sD(Q,k);g.dh(Q,this.api,T)}else g.wh(T,this.api,this.S,this.suggestion.sessionData||void 0)&&this.select()}; g.fk.prototype.onKeyPress=function(T){switch(T.keyCode){case 13:case 32:T.defaultPrevented||(this.select(),T.preventDefault())}}; g.fk.prototype.onVideoDataChange=function(){var T=this.api.getVideoData(),Q=this.api.G();this.S=T.hh?!1:Q.Y};g.S(mdt,g.p);g.h=mdt.prototype;g.h.EK=function(){this.hide();g.N5(this.Y);g.vU(this.stills);this.stills.length=0;this.S&&this.S.removeEventListener("click",this.yS);this.L&&this.L.removeEventListener("click",this.qC);this.T&&this.T.removeEventListener("click",this.qC);g.p.prototype.EK.call(this)}; g.h.qC=function(T){this.j&&this.j(T)}; g.h.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var T,Q,k,l,v;var L=(((T=this.videoData)==null?0:(Q=T.suggestions)==null?0:Q.length)?(k=this.videoData)==null?void 0:k.suggestions:((l=this.videoData)==null?0:g.zV(l))?[(v=this.videoData)==null?void 0:g.zV(v)]:[]).slice(0,18);if((T=this.D)&&this.C&&this.B)if(g.IO(T),L.length)for(this.stills.length>L.length&&g.vU(this.stills.splice(L.length)),this.stills.length=L.length,Q=0;Q=0;T--)this.features[T].dispose();this.features.length=0;g.x.prototype.EK.call(this)};zRb.prototype.reset=function(){this.T=this.S=NaN};g.h=X5g.prototype;g.h.reset=function(){zC(this.timerName)}; g.h.tick=function(T,Q){dS(T,Q,this.timerName)}; g.h.Uh=function(T){return rS(T,void 0,this.timerName)}; g.h.Sl=function(T){g.JB(T,void 0,this.timerName)}; g.h.infoGel=function(T){g.NL(T,this.timerName)};g.S(NkX,g.ox);g.h=NkX.prototype;g.h.G0=function(T){return this.loop||!!T||this.index+1=0}; g.h.setShuffle=function(T){this.shuffle=T;T=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var Q=0;Q0)||pk(this,1,!0)}; g.h.e4=function(){this.B=!0;this.T.J6(this.N);this.N=this.T.Z(document,"mouseup",this.Na)}; g.h.Na=function(){this.B=!1;pk(this,8,!1);this.T.J6(this.N);this.N=this.T.Z(this.target,"mousedown",this.e4)}; g.h.C8=function(T){if(T=(T=T.changedTouches)&&T[0])this.xm=T.identifier,this.T.J6(this.j),this.j=this.T.Z(this.target,"touchend",this.V6,void 0,!0),pk(this,1024,!0)}; g.h.V6=function(T){if(T=T.changedTouches)for(var Q=0;Q1280||v>720)if(Q=l.rO("maxresdefault.jpg"))break;if(L>640||v>480)if(Q=l.rO("maxresdefault.jpg"))break;if(L>320||v>180)if(Q=l.rO("sddefault.jpg")||l.rO("hqdefault.jpg")||l.rO("mqdefault.jpg"))break;if(Q=l.rO("default.jpg"))break}g.XT(T)&&(T=new Image,T.addEventListener("load", function(){Zjg()}),T.src=Q?Q:"",this.api.eZ().tick("ftr")); this.Y.style.backgroundImage=Q?"url("+Q+")":""};g.S(g.ep,g.p);g.ep.prototype.resize=function(){}; g.ep.prototype.S=function(T){var Q=this;this.L=!1;Z_I(this);var k=T.k9,l=this.api.G();k!=="GENERIC_WITHOUT_LINK"||l.B?k==="TOO_MANY_REQUESTS"?(l=this.api.getVideoData(),this.qF(y_(this,"TOO_MANY_REQUESTS_WITH_LINK",l.fB(),void 0,void 0,void 0,!1))):k!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||l.B?this.api.G().V("html5_enable_bandaid_error_screen")&&k==="HTML5_SPS_UMP_STATUS_REJECTED"&&!l.B?(l=l.hostLanguage,T="//support.google.com/youtube?p=videoError",l&&(T=g.sD(T,{hl:l})),this.qF(y_(this,"HTML5_SPS_UMP_STATUS_REJECTED", T))):this.api.G().V("enable_adb_handling_in_sabr")&&k==="BROWSER_OR_EXTENSION_ERROR"&&!l.B?(l=l.hostLanguage,T="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",l&&(T=g.sD(T,{hl:l})),this.qF(y_(this,"BROWSER_OR_EXTENSION_ERROR",T))):this.qF(g.FB(T.errorMessage)):this.qF(y_(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(T=l.hostLanguage,k="//support.google.com/youtube/?p=player_error1",T&&(k=g.sD(k, {hl:T})),this.qF(y_(this,"GENERIC_WITH_LINK_AND_CPN",k,!0)),l.Ig&&!l.Y&&Rc5(this,function(L){if(g.wh(L,Q.api,!h9(Q.api.G()))){L={as3:!1,html5:!0,player:!0,cpn:Q.api.getVideoData().clientPlaybackNonce};var q=Q.api;q.UM("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:L});q.isFullscreen()&&q.toggleFullscreen()}})); if(this.L){var v=this.L_("ytp-error-link");v&&(this.api.createClientVe(v,this,216104),this.api.logVisibility(v,!0),Rc5(this,function(){Q.api.logClick(v)}))}}; var UC5=/([^<>]+)<\/a>/;g.S(fp5,g.p);fp5.prototype.EF=function(T,Q,k){k=k===void 0?!1:k;switch(Q){case 1:ij(this,T,this.L,k);break;case 2:ij(this,T,this.Y,k);break;case 3:ij(this,T,this.T,k);break;case 4:ij(this,T,this.S,k)}};g.S(Gwf,g.p);g.h=Gwf.prototype;g.h.onClick=function(T){this.innertubeCommand?(this.U.tj("innertubeCommand",this.innertubeCommand),T.preventDefault()):g.wh(T,this.U,!0);this.U.logClick(this.element)}; g.h.onVideoDataChange=function(T,Q){IpI(this,Q);this.yU&&hc5(this,this.yU)}; g.h.wk=function(T){var Q=this.U.getVideoData();this.videoId!==Q.videoId&&IpI(this,Q);this.T&&hc5(this,T.state);this.yU=T.state}; g.h.fA=function(){this.fade.show();this.U.publish("paidcontentoverlayvisibilitychange",!0);this.U.logVisibility(this.element,!0)}; g.h.sG=function(){this.fade.hide();this.U.publish("paidcontentoverlayvisibilitychange",!1);this.U.logVisibility(this.element,!1)};g.S(V_,g.p);V_.prototype.hide=function(){this.T.stop();this.message.style.display="none";g.p.prototype.hide.call(this)}; V_.prototype.onStateChange=function(T){this.OH(T.state)}; V_.prototype.OH=function(T){if(g.J(T,128)||this.api.NC())var Q=!1;else{var k;Q=this.api.V("web_watch_enable_multiview_manager")&&((k=this.api.getVideoData())==null?0:Ra(k))?!1:g.J(T,16)||g.J(T,1)?!0:!1}Q?this.T.start():this.hide()}; V_.prototype.S=function(){this.message.style.display="block"};g.S(TK,g.LA);TK.prototype.onMutedAutoplayChange=function(T){this.L&&(T?(swJ(this),this.fA()):(this.T&&this.logClick(),this.sG()))}; TK.prototype.Pl=function(T){this.api.isMutedByMutedAutoplay()&&g.RY(T,2)&&this.sG()}; TK.prototype.onClick=function(){this.api.unMute();this.logClick()}; TK.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.S(g.Q7,g.Bj);g.h=g.Q7.prototype;g.h.init=function(){var T=this.api,Q=T.getPlayerStateObject();this.sA=T.getPlayerSize();this.LA(Q);this.q3();this.zx();this.api.publish("basechromeinitialized",this);this.oZ()&&this.api.publish("standardControlsInitialized")}; g.h.onVideoDataChange=function(T,Q){var k=this.kI!==Q.videoId;if(k||T==="newdata")T=this.api,T.isFullscreen()||(this.sA=T.getPlayerSize());k&&(this.kI=Q.videoId,k=this.Ci,k.i9=3E3,pk(k,512,!0),this.q3());this.api.V("web_render_jump_buttons")&&Q.showSeekingControls&&(this.Ih=572)}; g.h.J3j=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.h.K4=function(){var T=this.api.Vw()&&this.api.Kt(),Q=this.api.K9();return this.ZI||T||this.eb||Q}; g.h.Y4=function(){var T=!this.K4();g.gl(this.api.getRootNode(),"ytp-menu-shown",!T)}; g.h.M4=function(T){try{if(!g.SO(this.api.getRootNode(),T))return!1}catch(Q){return!1}for(;T&&!xpt(T);)T=T===this.api.getRootNode()?null:T.parentElement||null;return!!T}; g.h.Dl=function(T){var Q=this.api.getRootNode();g.gl(Q,"ytp-autohide",T);g.gl(Q,"ytp-autohide-active",!0);this.rF.start(T?250:100);T&&(this.eS=!1,g.Lb(Q,"ytp-touch-mode"));this.Ac=!T;this.api.qP(!T);this.api.V("delhi_modern_web_player")&&this.api.publish("autohideupdate",T)}; g.h.pN=function(){var T=this.api.getRootNode();g.gl(T,"ytp-autohide-active",!1)}; g.h.PCm=function(){this.eT=!0}; g.h.Gx_=function(T){if(this.api.G().V("player_doubletap_to_seek")||this.api.G().C)this.eT=!1,this.CT&&this.J6(this.CT),this.GS===0&&kW(this,T)?(this.sb(),this.UN.start(),this.CT=this.Z(this.api.Hx(),"touchmove",this.PCm,void 0,!0)):this.UN.stop();zcu(this)&&kW(this,T)&&!this.api.G().C&&CIT(this);var Q=this.Zk.n$();if(!g.Qk(this.api.G())&&ya&&Xbg(this,T))Q&&T.preventDefault();else if(this.eS=!0,g.oF(this.api.getRootNode(),"ytp-touch-mode"),this.Ci.DS(),this.api.G().V("player_doubletap_to_seek")||this.api.G().C)if(Q= this.api.getPlayerStateObject(),!(!this.api.Yo()||g.J(Q,2)&&g.$D(this.api)||g.J(Q,64))){Q=Date.now()-this.jB;this.GS+=1;if(Q<=350){this.Oq=!0;Q=this.api.getPlayerSize().width/3;var k=this.api.getRootNode().getBoundingClientRect(),l=T.targetTouches[0].clientX-k.left;k=T.targetTouches[0].clientY-k.top;var v=(this.GS-1)*10;l>0&&lQ*2&&l=650,l=T.width<528;this.Ci.resize();if(this.api.V("web_player_use_screen_width_for_big_mode")){var v,L=T.width>=((v=g.jj(this.api.G().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?v:2E3);g.gl(Q,"ytp-big-mode",L)}g.gl(Q,"ytp-fullscreen",this.api.isFullscreen());g.gl(Q,"ytp-large-width-mode",k);this.api.V("delhi_modern_web_player")?g.gl(Q,"ytp-xsmall-width-mode",l):g.gl(Q,"ytp-small-mode",this.tb()); g.gl(Q,"ytp-tiny-mode",this.Gv());g.gl(Q,"ytp-big-mode",this.jj());this.Gb&&this.Gb.resize(T)}; g.h.Pl=function(T){this.LA(T.state);this.q3()}; g.h.JJ=T5(3);g.h.Wa=function(){var T=!!this.kI&&!this.api.eD()&&!this.JG,Q=this.api.getPresentingPlayerType()===2,k=this.api.G();if(Q)return k=xY(this.api.Bx()),T&&(k&&k.player?T=(T=k.player.getVideoData(2))?T.isListed&&!g.ZX(k.player.G()):!1:(MH("showInfoBarDuringAd: this is null"),T=!1)),T;Q=k.V("web_player_imax_theater_mode")&&this.api.zs();return T&&(k.UY||Q||this.api.isFullscreen()||k.QE)}; g.h.q3=function(){var T=this.Wa();this.Dr!==T&&(this.Dr=T,g.gl(this.api.getRootNode(),"ytp-hide-info-bar",!T))}; g.h.LA=function(T){var Q=T.isCued()||this.api.Pc()&&this.api.getPresentingPlayerType()!==3;Q!==this.isCued&&(this.isCued=Q,this.l3&&this.J6(this.l3),this.l3=this.Z(this.api.Hx(),"touchstart",this.Gx_,void 0,Q));var k=this.Ci,l=T.isPlaying()&&!g.J(T,32)||this.api.zS();pk(k,128,!l);k=this.Ci;l=this.api.getPresentingPlayerType()===3;pk(k,256,l);k=this.api.getRootNode();g.J(T,2)?l=[EZ.ENDED]:(l=[],g.J(T,8)?l.push(EZ.PLAYING):g.J(T,4)&&l.push(EZ.PAUSED),g.J(T,1)&&!g.J(T,32)&&l.push(EZ.BUFFERING),g.J(T, 32)&&l.push(EZ.SEEKING),g.J(T,64)&&l.push(EZ.UNSTARTED));g.eA(this.KW,l)||(g.qN(k,this.KW),this.KW=l,g.vq(k,l));l=this.api.G();var v=g.J(T,2);a:{var L=this.api.G();var q=L.controlsType;switch(q){case "2":case "0":L=!1;break a}L=q==="3"&&!g.J(T,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:Upm(xY(this.api.Bx())))||this.api.K9()||g.Qk(L)&&this.api.getPresentingPlayerType()===2?!1:!0}g.gl(k,"ytp-hide-controls",!L);g.gl(k,"ytp-native-controls",l.controlsType==="3"&&!Q&&!v&&!this.eb);g.J(T, 128)&&!g.Qk(l)?(this.Gb||(this.Gb=new g.ep(this.api),g.P(this,this.Gb),g.TQ(this.api,this.Gb.element,4)),this.Gb.S(T.ge),this.Gb.show()):this.Gb&&(this.Gb.dispose(),this.Gb=null)}; g.h.VV=function(){return this.api.Vw()&&this.api.Kt()?(this.api.C4(!1,!1),!0):this.api.eD()?(g.Jy(this.api,!0),!0):!1}; g.h.onMutedAutoplayChange=function(T){this.eb=T;this.Y4()}; g.h.jj=function(){return!1}; g.h.tb=function(){return!this.jj()&&(this.api.getPlayerSize().width=0&&Q.left>=0&&Q.bottom>Q.top&&Q.right>Q.left?Q:null;Q=this.size;T=T.clone();Q=Q.clone();l&&(q=Q,v=5,(v&65)==65&&(T.x=l.right)&&(v&=-2),(v&132)==132&&(T.y=l.bottom)&&(v&=-5),T.xl.right&&(q.width=Math.min(l.right-T.x,L+q.width-l.left),q.width=Math.max(q.width,0))),T.x+q.width>l.right&&v&1&&(T.x=Math.max(l.right-q.width,l.left)),T.yl.bottom&&(q.height=Math.min(l.bottom-T.y,L+q.height-l.top),q.height=Math.max(q.height,0))),T.y+q.height>l.bottom&&v&4&&(T.y=Math.max(l.bottom-q.height,l.top)));l=new g.tZ(0,0,0,0);l.left=T.x;l.top=T.y;l.width= Q.width;l.height=Q.height;g.yf(this.element,new g.WX(l.left,l.top));g.N5(this.Y);this.Y.Z(qz(this),"contextmenu",this.aVH);this.Y.Z(this.U,"fullscreentoggled",this.onFullscreenToggled);this.Y.Z(this.U,"pageTransition",this.Ji)}; g.h.aVH=function(T){if(!T.defaultPrevented){var Q=zL(T);g.SO(this.element,Q)||this.sG();this.U.G().disableNativeContextMenu&&T.preventDefault()}}; g.h.onFullscreenToggled=function(){this.sG();EF5(this)}; g.h.Ji=function(){this.sG()};g.S(Uu,g.p);Uu.prototype.onClick=function(){var T=this,Q,k,l,v;return g.a(function(L){if(L.S==1)return Q=T.api.G(),k=T.api.getVideoData(),l=T.api.getPlaylistId(),v=Q.getVideoUrl(k.videoId,l,void 0,!0),g.c(L,VDu(T,v),2);L.T&&i_5(T);T.api.logClick(T.element);g.BT(L)})}; Uu.prototype.Aj=function(){this.updateValue("icon",{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{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 v\u00ednculo");this.updateValue("tooltip-title","Copiar v\u00ednculo");this.visible= yYH(this);g.gl(this.element,"ytp-copylink-button-visible",this.visible);this.o_(this.visible);this.tooltip.wO();this.api.logVisibility(this.element,this.visible&&this.N)}; Uu.prototype.vx=function(T){g.p.prototype.vx.call(this,T);this.api.logVisibility(this.element,this.visible&&T)}; Uu.prototype.EK=function(){g.p.prototype.EK.call(this);g.Lb(this.element,"ytp-copylink-button-visible")};g.S(T9t,g.p);g.h=T9t.prototype;g.h.show=function(){g.p.prototype.show.call(this);g.Ez(this.S)}; g.h.hide=function(){this.Y.stop();this.L=0;this.L_("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.Lb(this.element,"ytp-chapter-seek");g.Lb(this.element,"ytp-time-seeking");g.p.prototype.hide.call(this)}; g.h.xT=function(T,Q,k,l){this.L=T===this.C?this.L+l:l;this.C=T;var v=T===-1?this.D:this.j;v&&this.U.logClick(v);this.B?this.S.stop():g.iN(this.S);this.Y.start();this.element.setAttribute("data-side",T===-1?"back":"forward");var L=3*this.U.Hx().getPlayerSize().height;v=this.U.Hx().getPlayerSize();v=v.width/3-3*v.height;this.T.style.width=L+"px";this.T.style.height=L+"px";T===1?(this.T.style.left="",this.T.style.right=v+"px"):T===-1&&(this.T.style.right="",this.T.style.left=v+"px");var q=L*2.5;L=q/ 2;var Y=this.L_("ytp-doubletap-ripple");Y.style.width=q+"px";Y.style.height=q+"px";T===1?(T=this.U.Hx().getPlayerSize().width-Q+Math.abs(v),Y.style.left="",Y.style.right=T-L+"px"):T===-1&&(T=Math.abs(v)+Q,Y.style.right="",Y.style.left=T-L+"px");Y.style.top="calc((33% + "+Math.round(k)+"px) - "+L+"px)";if(k=this.L_("ytp-doubletap-ripple"))k.classList.remove("ytp-doubletap-ripple"),k.classList.add("ytp-doubletap-ripple");Q6X(this,this.B?this.L:l)}; g.h.KU=function(T,Q,k){if(k=k===void 0?null:k){var l=T===-1?this.D.visualElement:this.j.visualElement;k={seekData:k};var v=g.C9();v&&jx(v,l,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",k)}this.L=T===this.C?this.L+Q:Q;this.C=T;l=this.U.Hx().getPlayerSize();this.B?this.S.stop():g.iN(this.S);this.Y.start();this.element.setAttribute("data-side",T===-1?"back":"forward");g.oF(this.element,"ytp-time-seeking");this.T.style.width="110px";this.T.style.height="110px";k=l.width*.1-15;T===1?this.z9?(this.T.style.right= k+"px",this.T.style.left=""):(this.T.style.right="",this.T.style.left=l.width*.8-30+"px"):T===-1&&(this.z9?(this.T.style.right="",this.T.style.left=k+"px"):(this.T.style.right="",this.T.style.left=l.width*.1-15+"px"));this.T.style.top=l.height*.5+15+"px";Q6X(this,this.B?this.L:Q)}; g.h.Zn=function(T,Q,k){k=k===void 0?null:k;g.iN(this.S);this.Y.start();switch(T){case -1:T="back";break;case 1:T="forward";break;default:T=""}this.element.setAttribute("data-side",T);this.T.style.width="0";this.T.style.height="0";g.oF(this.element,"ytp-chapter-seek");this.updateValue("seekText",Q);this.updateValue("seekTime","");Q=this.L_("ytp-seek-icon");if(k){a:if(k){switch(k){case "PREMIUM_STANDALONE":k=rgf();break a;case "PREMIUM_STANDALONE_CAIRO":k=cgg();break a}k=void 0}else k=null;this.updateValue("seekIcon", k);Q.style.display="inline-block"}else Q.style.display="none"};g.S(j6y,N4);g.h=j6y.prototype;g.h.ZJ=function(T){this.Bd||(this.Bd=new u_(this.U),g.P(this,this.Bd));var Q,k;if((Q=this.QR)==null?0:(k=Q.menu)==null?0:k.menuRenderer)this.Bd.open(this.QR.menu.menuRenderer,T.target),T.preventDefault()}; g.h.Hs=function(){return!!this.T}; g.h.FY=function(){return!!this.T}; g.h.nO=function(T){T.target===this.overflowButton.element?T.preventDefault():(this.Fk&&this.U.tj("innertubeCommand",this.Fk),this.wh(!1))}; g.h.Np=function(){this.wh(!0);var T,Q;((T=this.T)==null?0:(Q=T.bannerData)==null?0:Q.dismissedStatusKey)&&this.Ig.push(this.T.bannerData.dismissedStatusKey);this.rp()}; g.h.RW=function(){this.rp();fm(this)}; g.h.PKm=function(T){var Q=this,k;if(T.id!==((k=this.T)==null?void 0:k.identifier)){this.rp();k=g.B(this.xm);for(var l=k.next();!l.done;l=k.next()){var v=l.value,L=void 0,q=void 0;if((l=(L=v)==null?void 0:(q=L.bannerData)==null?void 0:q.itemData)&&v.identifier===T.id){q=L=void 0;var Y=((L=v)==null?void 0:(q=L.bannerData)==null?void 0:q.dismissedStatusKey)||"";if(this.Ig.includes(Y))return;this.T=v;this.banner.element.setAttribute("aria-label",l.accessibilityLabel||"");l.trackingParams&&(this.Y=!0, this.U.setTrackingParams(this.badge.element,l.trackingParams));this.show();this.D.show();dW(this);this.i9.o_(!l.stayInApp);Zs6(this);l3b(this);ZL(this);this.Fk=g.t(l.onTapCommand,Dh);if(v=g.t(l.menuOnTap,Dh))this.QR=g.t(v,ilT);v=void 0;this.banner.update({thumbnail:(v=(l.thumbnailSources||[])[0])==null?void 0:v.url,title:l.productTitle,price:l.priceReplacementText?l.priceReplacementText:l.price,salesOriginalPrice:L$b(this),priceDropReferencePrice:qZ5(this),promotionText:vv5(this),priceA11yText:gvt(this), affiliateDisclaimer:l.affiliateDisclaimer,vendor:MUJ(this)});Y=q=L=v=void 0;((v=l)==null?0:(L=v.hiddenProductOptions)==null?0:L.showDropCountdown)&&((q=l)==null?0:(Y=q.hiddenProductOptions)==null?0:Y.dropTimestampMs)&&(this.d5=new g.FA(function(){RoX(Q)},1E3),this.i9.hide(),this.countdownTimer.show(),RoX(this)); this.U.V("web_player_enable_featured_product_banner_exclusives_on_desktop")&&k2t(this)&&(this.OG=new g.FA(function(){ov5(Q)},1E3),ov5(this))}}this.U.getRootNode()&&g.oF(this.U.getRootNode(),"ytp-featured-product-shown")}}; g.h.rp=function(){this.T&&(this.T=void 0,this.FE(),this.U.getRootNode()&&g.Lb(this.U.getRootNode(),"ytp-featured-product-shown"))}; g.h.onVideoDataChange=function(T,Q){var k=this;T==="dataloaded"&&fm(this);var l,v,L;T=g.t((l=Q.getWatchNextResponse())==null?void 0:(v=l.playerOverlays)==null?void 0:(L=v.playerOverlayRenderer)==null?void 0:L.productsInVideoOverlayRenderer,EP_);this.overflowButton.show();this.dismissButton.hide();var q=T==null?void 0:T.featuredProductsEntityKey;this.trendingOfferEntityKey=T==null?void 0:T.trendingOfferEntityKey;this.xm.length||(Uc5(this,q),ZL(this));var Y;(Y=this.Z8)==null||Y.call(this);this.Z8=g.w4.subscribe(function(){Uc5(k, q);ZL(k)})}; g.h.EK=function(){fm(this);Zs6(this);l3b(this);N4.prototype.EK.call(this)};g.S(ho5,g.p);ho5.prototype.onClick=function(){this.U.logClick(this.element,this.S)};g.S(s6b,g.LA);g.h=s6b.prototype;g.h.show=function(){g.LA.prototype.show.call(this);this.U.publish("infopaneldetailvisibilitychange",!0);this.U.logVisibility(this.element,!0);SZt(this,!0)}; g.h.hide=function(){g.LA.prototype.hide.call(this);this.U.publish("infopaneldetailvisibilitychange",!1);this.U.logVisibility(this.element,!1);SZt(this,!1)}; g.h.getId=function(){return this.Y}; g.h.ym=function(){return this.itemData.length}; g.h.onVideoDataChange=function(T,Q){if(Q){var k,l,v,L;this.update({title:((k=Q.iS)==null?void 0:(l=k.title)==null?void 0:l.content)||"",body:((v=Q.iS)==null?void 0:(L=v.bodyText)==null?void 0:L.content)||""});var q;T=((q=Q.iS)==null?void 0:q.trackingParams)||null;this.U.setTrackingParams(this.element,T);q=g.B(this.itemData);for(T=q.next();!T.done;T=q.next())T.value.dispose();this.itemData=[];var Y;if((Y=Q.iS)==null?0:Y.ctaButtons)for(Q=g.B(Q.iS.ctaButtons),Y=Q.next();!Y.done;Y=Q.next())if(Y=g.t(Y.value, pX$))Y=new ho5(this.U,Y,this.T),Y.Hk&&(this.itemData.push(Y),Y.XB(this.items))}}; g.h.EK=function(){this.hide();g.LA.prototype.EK.call(this)};g.S(zof,g.p);g.h=zof.prototype;g.h.onVideoDataChange=function(T,Q){B95(this,Q);this.yU&&w_u(this,this.yU)}; g.h.bJ=function(T){var Q=this.U.getVideoData();this.videoId!==Q.videoId&&B95(this,Q);w_u(this,T.state);this.yU=T.state}; g.h.pI=function(T){(this.L=T)?this.hide():this.T&&this.show()}; g.h.j7=function(){this.S||this.fA();this.showControls=!0}; g.h.Ai=function(){this.S||this.sG();this.showControls=!1}; g.h.fA=function(){var T,Q=(T=this.U)==null?void 0:T.getPlayerSize();T=Q.width<380;var k;Q=Q.height<(((k=this.U)==null?0:k.isEmbedsShortsMode())?400:280);var l,v;(((l=this.U)==null?0:l.getPlayerStateObject().isCued())||((v=this.U)==null?0:g.J(v.getPlayerStateObject(),1024)))&&T&&Q||!this.T||this.L||(this.fade.show(),this.U.publish("infopanelpreviewvisibilitychange",!0),this.U.logVisibility(this.element,!0))}; g.h.sG=function(){this.T&&!this.L&&(this.fade.hide(),this.U.publish("infopanelpreviewvisibilitychange",!1),this.U.logVisibility(this.element,!1))}; g.h.OG9=function(){this.S=!1;this.showControls||this.sG()};var jcT={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(jcT).reduce(function(T,Q){T[jcT[Q]]=Q;return T},{}); var kSJ={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(kSJ).reduce(function(T,Q){T[kSJ[Q]]=Q;return T},{}); var lOe={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(lOe).reduce(function(T,Q){T[lOe[Q]]=Q;return T},{});var oyd,vye;oyd=[{option:"#fff",text:"Blanco"},{option:"#ff0",text:"Amarillo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Cian"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Rojo"},{option:"#080808",text:"Negro"}];vye=[{option:0,text:GK(0)},{option:.25,text:GK(.25)},{option:.5,text:GK(.5)},{option:.75,text:GK(.75)},{option:1,text:GK(1)}]; g.SL=[{option:"fontFamily",text:"Familia de fuente",options:[{option:1,text:"Serif monoespaciada"},{option:2,text:"Serif proporcional"},{option:3,text:"Sans-Serif monoespaciada"},{option:4,text:"Sans-Serif proporcional"},{option:5,text:"Informal"},{option:6,text:"Cursiva"},{option:7,text:"Versalitas"}]},{option:"color",text:"Color de fuente",options:oyd},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:GK(.5)},{option:-1,text:GK(.75)},{option:0,text:GK(1)},{option:1, text:GK(1.5)},{option:2,text:GK(2)},{option:3,text:GK(3)},{option:4,text:GK(4)}]},{option:"background",text:"Color de fondo",options:oyd},{option:"backgroundOpacity",text:"Opacidad de fondo",options:vye},{option:"windowColor",text:"Color de la ventana",options:oyd},{option:"windowOpacity",text:"Opacidad de la ventana",options:vye},{option:"charEdgeStyle",text:"Estilo de borde de los caracteres",options:[{option:0,text:"Ninguno"},{option:4,text:"Sombra paralela"},{option:1,text:"En relieve"},{option:2, text:"Hundido"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidad de fuente",options:[{option:.25,text:GK(.25)},{option:.5,text:GK(.5)},{option:.75,text:GK(.75)},{option:1,text:GK(1)}]}];var LYE=[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.S(cXI,g.Bj);g.h=cXI.prototype; g.h.Ks=function(T){T.repeat||(this.L.WU=!1);var Q=!1,k=T.keyCode,l=zL(T),v=!T.altKey&&!T.ctrlKey&&!T.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||LYE.includes(k)),L=!1,q=!1,Y=this.api.G();T.defaultPrevented?(v=!1,q=!0):Y.YP&&!this.api.isMutedByEmbedsMutedAutoplay()&&(v=!1);if(k===9)Q=!0;else{if(l)switch(k){case 32:case 13:if(l.tagName==="BUTTON"||l.tagName==="A"||l.tagName==="INPUT")Q=!0,v=!1;else if(v){var U=l.getAttribute("role");!U||U!=="option"&&U!=="button"&&U.indexOf("menuitem")!==0|| (Q=!0,l.click(),L=!0)}break;case 37:case 39:case 36:case 35:Q=l.getAttribute("role")==="slider";break;case 38:case 40:U=l.getAttribute("role"),l=k===38?l.previousSibling:l.nextSibling,U==="slider"?Q=!0:v&&(U==="option"?(l&&l.getAttribute("role")==="option"&&l.focus(),L=Q=!0):U&&U.indexOf("menuitem")===0&&(l&&l.hasAttribute("role")&&l.getAttribute("role").indexOf("menuitem")===0&&l.focus(),L=Q=!0))}if(v&&!L)switch(k){case 38:L=Math.min(this.api.getVolume()+5,100);v1(this.G_,L,!1);this.api.setVolume(L); q=L=!0;break;case 40:L=Math.max(this.api.getVolume()-5,0);v1(this.G_,L,!0);this.api.setVolume(L);q=L=!0;break;case 36:this.api.Yo()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),q=L=!0);break;case 35:this.api.Yo()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),q=L=!0)}}Q&&IG(this,!0);(Q||q)&&this.Ci.DS();(L||v&&this.handleGlobalKeyDown(k,T.shiftKey,T.ctrlKey,T.altKey,T.metaKey,T.key,T.code,T.repeat))&&T.preventDefault();Y.j&&(T={keyCode:T.keyCode, altKey:T.altKey,ctrlKey:T.ctrlKey,metaKey:T.metaKey,shiftKey:T.shiftKey,handled:T.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Pk("onKeyPress",T))}; g.h.G1=function(T){var Q=T.keyCode;(!this.api.V("web_player_spacebar_control_bugfix")||this.api.V("web_player_spacebar_control_bugfix")&&!this.L.n9)&&this.handleGlobalKeyUp(Q,T.shiftKey,T.ctrlKey,T.altKey,T.metaKey,T.key,T.code)&&T.preventDefault()}; g.h.handleGlobalKeyUp=function(T,Q,k,l,v,L,q){this.api.publish("keyboardserviceglobalkeyup",{keyCode:T,shiftKey:Q,ctrlKey:k,altKey:l,metaKey:v,key:L,code:q});Q=!1;if(this.L.WU)return Q;(L=g.y5(this.api.Bx()))&&(L=L.b$)&&L.Sr&&(L.jz(T),Q=!0);switch(T){case 9:IG(this,!0);Q=!0;break;case 32:if(this.api.V("web_speedmaster_spacebar_control")&&(!this.api.V("web_player_spacebar_control_bugfix")&&!this.L.n9||this.api.V("web_player_spacebar_control_bugfix"))&&!this.api.G().YP){var Y,U;T=(Y=this.progressBar)== null?void 0:(U=Y.S)==null?void 0:U.isEnabled;Q=this.GR(T)}break;case 39:(Gz?l:k)&&!v&&this.api.Yo()&&this.api.V("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),Y=(Y=this.api.getVideoData())?Y.NK:[],U=N9I(Y,this.api.getCurrentTime()*1E3),U!==-1&&this.T!=null&&(this.T.Zn(1,Y[U].title),this.api.seekTo(Y[U].startTime/1E3,void 0,void 0,void 0,52),Q=!0))}return Q}; g.h.handleGlobalKeyDown=function(T,Q,k,l,v,L,q,Y){Y||(this.L.WU=!1);var U=!1,R=this.api.G();if(R.YP&&!this.api.isMutedByEmbedsMutedAutoplay())return U;var Z=g.y5(this.api.Bx());if(Z&&(Z=Z.b$)&&Z.Sr)switch(T){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:U=Z.Aa(T)}R.B||U||(U=L||String.fromCharCode(T).toLowerCase(),this.S+=U,"awesome".indexOf(this.S)===0||this.api.V("web_player_rtr_ctrls")&&"bday".indexOf(this.S)===0?(U=!0,4===this.S.length&&this.S==="bday"&&this.api.V("web_player_rtr_ctrls")&& (um5(this.N),this.Ci.DS()),7===this.S.length&&this.S==="awesome"&&AzX(this.api.getRootNode(),"ytp-color-party")):(this.S=U,U="awesome".indexOf(this.S)===0||"bday".indexOf(this.S)===0));if(!U&&(!this.api.isMutedByEmbedsMutedAutoplay()||LYE.includes(T))){var f=this.api.getVideoData(),G,m;Z=(G=this.progressBar)==null?void 0:(m=G.S)==null?void 0:m.isEnabled;G=f?f.NK:[];m=Gz?l:k;switch(T){case 80:Q&&!R.sK&&(oG(this.G_,D5f(),"Anterior"),this.api.previousVideo(),U=!0);break;case 78:Q&&!R.sK&&(oG(this.G_, Sx(),"Siguiente"),this.api.nextVideo(),U=!0);break;case 74:this.api.Yo()&&(this.api.startSeekCsiAction(),this.T?this.api.V("enable_key_press_seek_logging")?(U=hG(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.T.KU(-1,10,U)):this.T.KU(-1,10):oG(this.G_,{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{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),U=!0);break;case 76:this.api.Yo()&&(this.api.startSeekCsiAction(),this.T?this.api.V("enable_key_press_seek_logging")?(U=hG(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.T.KU(1,10,U)):this.T.KU(1,10):oG(this.G_,{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{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),U=!0);break;case 37:this.api.Yo()&&(this.api.startSeekCsiAction(),m?(m=AXy(G,this.api.getCurrentTime()*1E3),m!==-1&&this.T!=null&&(this.T.Zn(-1,G[m].title),this.api.seekTo(G[m].startTime/1E3,void 0,void 0,void 0,53),U=!0)):(this.T?this.api.V("enable_key_press_seek_logging")?(U=hG(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.T.KU(-1,5,U)):this.T.KU(-1,5):oG(this.G_,{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{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),U=!0));break;case 39:this.api.Yo()&&(this.api.startSeekCsiAction(),m?this.api.V("web_enable_keyboard_shortcut_for_timely_actions")||(m=N9I(G,this.api.getCurrentTime()*1E3),m!==-1&&this.T!=null&&(this.T.Zn(1,G[m].title),this.api.seekTo(G[m].startTime/1E3,void 0,void 0,void 0,52),U=!0)):(this.T!=null?this.api.V("enable_key_press_seek_logging")?(U=hG(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.T.KU(1,5,U)):this.T.KU(1, 5):oG(this.G_,{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{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),U=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),v1(this.G_,this.api.getVolume(),!1)):(this.api.mute(),v1(this.G_,0,!0));U=!0;break;case 32:U=this.api.V("web_speedmaster_spacebar_control")?!this.api.G().sK:this.GR(Z);break;case 75:U=this.GR(Z);break;case 190:Q?R.enableSpeedOptions&&a3t(this)&&(U=this.api.getPlaybackRate(),this.api.setPlaybackRate(U+.25,!0),dCI(this.G_,!1),U=!0):this.api.Yo()&&(this.step(1),U=!0);break;case 188:Q? R.enableSpeedOptions&&a3t(this)&&(U=this.api.getPlaybackRate(),this.api.setPlaybackRate(U-.25,!0),dCI(this.G_,!0),U=!0):this.api.Yo()&&(this.step(-1),U=!0);break;case 70:FxH(this.api)&&(this.api.toggleFullscreen().catch(function(){}),U=!0); break;case 27:Z?(this.progressBar.Zu(),U=!0):this.B()&&(U=!0)}if(R.controlsType!=="3")switch(T){case 67:g.uj(this.api.Bx())&&(R=this.api.getOption("captions","track"),this.api.toggleSubtitles(),NYb(this.G_,!R||R&&!R.displayName),U=!0);break;case 79:Cm(this,"textOpacity");break;case 87:Cm(this,"windowOpacity");break;case 187:case 61:Cm(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:Cm(this,"fontSizeIncrement",!0,!0)}var I;Q||k||l||(T>=48&&T<=57?I=T-48:T>=96&&T<=105&&(I=T-96));I!=null&&this.api.Yo()&& !this.api.V("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),R=this.api.getProgressState(),this.api.seekTo(I/10*(R.seekableEnd-R.seekableStart)+R.seekableStart,void 0,void 0,void 0,81),U=!0);U&&this.Ci.DS()}this.L.Va=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:T,shiftKey:Q,ctrlKey:k,altKey:l,metaKey:v,key:L,code:q,repeat:Y},this.L);this.L.Va&&(U=!0,this.Ci.DS());return U}; g.h.step=function(T){this.api.Yo();if(this.api.getPlayerStateObject().isPaused()){var Q=this.api.getVideoData().S;Q&&(Q=Q.video)&&this.api.seekBy(T/(Q.fps||30),void 0,void 0,T>0?77:78)}}; g.h.GR=function(T){if(!this.api.G().sK){var Q;var k,l=(Q=this.api.getVideoData())==null?void 0:(k=Q.getPlayerResponse())==null?void 0:k.playabilityStatus;if(l){var v;Q=((v=g.t(l.miniplayer,o1J))==null?void 0:v.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else Q=!1;Q&&this.api.tj("onExpandMiniplayer");T?this.progressBar.UL():(T=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.G_.Qu(T),T?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.h.EK=function(){g.iN(this.Y);g.Bj.prototype.EK.call(this)};g.S(B1,g.p);B1.prototype.Aj=function(){var T=this.U.G(),Q=T.L||this.U.V("web_player_hide_overflow_button_if_empty_menu")&&this.nz.isEmpty();T=g.Qk(T)&&g.FZ(this.U)&&g.J(this.U.getPlayerStateObject(),128);var k=this.U.getPlayerSize();this.visible=this.U.tb()&&!T&&k.width>=240&&!this.U.getVideoData().hh&&!Q&&!this.U.isEmbedsShortsMode();g.gl(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.U.wO();this.U.logVisibility(this.element,this.visible&&this.N)}; B1.prototype.vx=function(T){g.p.prototype.vx.call(this,T);this.U.logVisibility(this.element,this.visible&&T)}; B1.prototype.EK=function(){g.p.prototype.EK.call(this);g.Lb(this.element,"ytp-overflow-button-visible")};g.S(uDy,g.LA);g.h=uDy.prototype;g.h.IL=function(T){T=zL(T);g.SO(this.element,T)&&(g.SO(this.T,T)||g.SO(this.closeButton,T)||gh(this))}; g.h.sG=function(){g.LA.prototype.sG.call(this);this.U.Vb(this.element)}; g.h.show=function(){this.Sr&&this.U.publish("OVERFLOW_PANEL_OPENED");g.LA.prototype.show.call(this);this.element.setAttribute("aria-modal","true");K$C(this,!0)}; g.h.hide=function(){g.LA.prototype.hide.call(this);this.element.removeAttribute("aria-modal");K$C(this,!1)}; g.h.onFullscreenToggled=function(T){!T&&this.n$()&&gh(this)}; g.h.isEmpty=function(){return this.actionButtons.length===0}; g.h.focus=function(){for(var T=g.B(this.actionButtons),Q=T.next();!Q.done;Q=T.next())if(Q=Q.value,Q.Sr){Q.focus();break}};g.S(xc5,g.p);xc5.prototype.onClick=function(T){g.wh(T,this.api)&&this.api.playVideoAt(this.index)};g.S(Psu,g.LA);g.h=Psu.prototype;g.h.show=function(){g.LA.prototype.show.call(this);this.T.Z(this.api,"videodatachange",this.e8);this.T.Z(this.api,"onPlaylistUpdate",this.e8);this.e8()}; g.h.hide=function(){g.LA.prototype.hide.call(this);g.N5(this.T);this.updatePlaylist(null)}; g.h.e8=function(){this.updatePlaylist(this.api.getPlaylist());this.api.G().L&&(this.L_("ytp-playlist-menu-title-name").removeAttribute("href"),this.L&&(this.J6(this.L),this.L=null))}; g.h.pj=function(){var T=this.playlist,Q=T.author,k=Q?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",l={CURRENT_POSITION:String(T.index+1),PLAYLIST_LENGTH:String(T.length)};Q&&(l.AUTHOR=Q);this.update({title:T.title,subtitle:g.o0(k,l),playlisturl:this.api.getVideoUrl(!0)});Q=T.S;if(Q===this.Y)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[T.index];else{k=g.B(this.playlistData);for(l=k.next();!l.done;l=k.next())l.value.dispose(); k=T.length;this.playlistData=[];for(l=0;l=this.S&&!T.L&&!Q.isAd()&&!this.api.isEmbedsShortsMode()}else T=!1;this.visible=T;this.o_(this.visible);g.gl(this.element,"ytp-search-button-visible",this.visible);g.gl(this.element,"ytp-show-search-title",!this.api.tb());this.api.logVisibility(this.element,this.visible&&this.N)}; du.prototype.vx=function(T){g.p.prototype.vx.call(this,T);this.api.logVisibility(this.element,this.visible&&T)};g.S(Na,g.p); Na.prototype.trigger=function(T,Q,k,l){this.show();if(this.S&&T!==this.S){var v=1;this.L&&(v=isT(this));JXX(this,v,!1);yXu(this)}this.S=T;this.Y=this.S===-1?this.j:this.D;T="";Q?(this.C+=Q,T=(this.S===-1?"\u2212":"+")+" "+this.C):this.C=0;this.updateValue(this.S===-1?"durationBack":"durationForward",T);if(this.T==="hidden"||this.T==="fading-out")Q=0,this.T==="fading-out"&&(Q=isT(this),EvI(this)),eoH(this,Q),this.T!=="fading-out"&&F$y(this,this.Y.querySelector(".ytp-seek-overlay-arrow-persistent")),this.T= "fading-in";else if(this.T==="fading-in"||this.T==="lingering")Q=this.Y.querySelector(".ytp-seek-overlay-duration"),T=g.jj(this.U.G().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,Q.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("+T+")"},{offset:1,transform:"scale(1)"}],{duration:184}),EvI(this),this.T==="lingering"&&(this.B.stop(),this.B.start());k&&VUX(this,k,l)}; Na.prototype.xT=function(T,Q,k,l){this.trigger(T,l)}; Na.prototype.KU=function(T,Q,k){this.trigger(T,Q);k&&(T=T===-1?this.D.visualElement:this.j.visualElement,k={seekData:k},(Q=g.C9())&&jx(Q,T,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",k))}; Na.prototype.Zn=function(T,Q,k){this.trigger(T,void 0,Q,k)};g.S(AG,g.p);AG.prototype.onClick=function(){var T=this,Q=this.api.G(),k=this.api.getVideoData(this.api.getPresentingPlayerType()),l=this.api.getPlaylistId();Q=this.api.V("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):Q.getVideoUrl(k.videoId,l,void 0,!0);if(navigator.share)try{var v=navigator.share({title:k.title,url:Q});v instanceof Promise&&v.catch(function(L){QMf(T,L)})}catch(L){L instanceof Error&&QMf(this,L)}else this.T.VV(),gh(this.S,this.element,!1); this.api.logClick(this.element)}; AG.prototype.Aj=function(){var T=this.api.G(),Q=this.api.isEmbedsShortsMode();g.gl(this.element,"ytp-show-share-title",g.Qk(T)&&!Q);this.T.jj()&&Q?(T=(this.api.Hx().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.W2(this.element,"right",T+"px")):Q&&g.W2(this.element,"right","0px");this.updateValue("icon",{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{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=TF6(this);g.gl(this.element,"ytp-share-button-visible",this.visible);this.o_(this.visible);this.tooltip.wO();this.api.logVisibility(this.element,TF6(this)&&this.N)}; AG.prototype.vx=function(T){g.p.prototype.vx.call(this,T);this.api.logVisibility(this.element,this.visible&&T)}; AG.prototype.EK=function(){g.p.prototype.EK.call(this);g.Lb(this.element,"ytp-share-button-visible")};g.S(krT,g.LA);g.h=krT.prototype;g.h.nL=function(T){T=zL(T);g.SO(this.B,T)||g.SO(this.closeButton,T)||gh(this)}; g.h.sG=function(){g.LA.prototype.sG.call(this);this.tooltip.Vb(this.element);this.api.logVisibility(this.T,!1);for(var T=g.B(this.L),Q=T.next();!Q.done;Q=T.next())Q=Q.value,this.api.hasVe(Q.element)&&this.api.logVisibility(Q.element,!1)}; g.h.show=function(){var T=this.Sr;g.LA.prototype.show.call(this);this.Aj();T||this.api.tj("onSharePanelOpened")}; g.h.u2=function(){this.Sr&&this.Aj()}; g.h.Aj=function(){var T=this;g.oF(this.element,"ytp-share-panel-loading");g.Lb(this.element,"ytp-share-panel-fail");var Q=this.api.getVideoData(),k=this.api.getPlaylistId()&&this.Y.checked;Q.getSharePanelCommand&&ao(this.api.HG(),Q.getSharePanelCommand,{includeListId:k}).then(function(l){T.wd()||(g.Lb(T.element,"ytp-share-panel-loading"),vGf(T,l))}); Q=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",Q);this.updateValue("linkText",Q);this.updateValue("shareLinkWithUrl",g.o0("Compartir v\u00ednculo $URL",{URL:Q}));bf(this.T);this.api.logVisibility(this.T,!0)}; g.h.onFullscreenToggled=function(T){!T&&this.n$()&&gh(this)}; g.h.focus=function(){this.T.focus()}; g.h.EK=function(){g.LA.prototype.EK.call(this);l6I(this)};g.S(gG6,N4);g.h=gG6.prototype;g.h.EK=function(){Z0t(this);N4.prototype.EK.call(this)}; g.h.nO=function(T){T.target!==this.dismissButton.element&&(this.wh(!1),this.U.tj("innertubeCommand",this.onClickCommand))}; g.h.Np=function(){this.u9=!0;this.wh(!0);this.FE()}; g.h.hge=function(T){this.C=T;this.FE()}; g.h.onVideoDataChange=function(T,Q){if(T=!!Q.videoId&&this.videoId!==Q.videoId)this.videoId=Q.videoId,this.u9=!1,this.hj=!0,this.j=this.qO=!1,Z0t(this),Rl5(this,!1),this.S=this.T=!1,ru(this),M0H(this);if(T||!Q.videoId)this.z9=this.Y=!1;var k,l;if(Q==null?0:(k=Q.getPlayerResponse())==null?0:(l=k.videoDetails)==null?0:l.isLiveContent)this.H1(!1);else{var v,L,q;Q=g.t((v=Q.getWatchNextResponse())==null?void 0:(L=v.playerOverlays)==null?void 0:(q=L.playerOverlayRenderer)==null?void 0:q.productsInVideoOverlayRenderer, EP_);this.C=this.enabled=!1;if(Q){if(v=Q==null?void 0:Q.featuredProductsEntityKey){L=g.w4.getState().entities;var Y;if((Y=V8(L,"featuredProductsEntity",v))==null?0:Y.productsData){this.H1(!1);return}}if(!Q.text||!Q.onClickCommand||!Q.timing){this.H1(!1);return}this.enabled=!0;if(!this.Y){var U;Y=(U=Q.badgeInteractionLogging)==null?void 0:U.trackingParams;(this.Y=!!Y)&&this.U.setTrackingParams(this.badge.element,Y||null)}if(!this.z9){var R;if(this.z9=!((R=Q.dismissButton)==null||!R.trackingParams)){var Z; this.U.setTrackingParams(this.dismissButton.element,((Z=Q.dismissButton)==null?void 0:Z.trackingParams)||null)}}Q.isContentForward&&(U=Q.productsData,Rl5(this,!0),M0H(this),U=UeC(this,U),R=[],U.length>0&&R.push(U[0]),U.length>1&&(Z=new g.p({X:"div",J:"ytp-suggested-action-more-products-icon"}),g.P(this,Z),R.push(Z),R.push.apply(R,g.ZH(U.slice(1)))),this.B=new g.p({X:"div",W:R,J:"ytp-suggested-action-content-forward-container"}),g.P(this,this.B),this.e6.element.append(this.B.element));this.text=g.Rx(Q.text); var f;if(U=(f=Q.dismissButton)==null?void 0:f.a11yLabel)this.p_=g.Rx(U);this.onClickCommand=Q.onClickCommand;this.timing=Q.timing;this.fY()}kuy(this);dW(this);this.FE()}}; g.h.Hs=function(){return!this.C&&this.enabled&&!this.u9&&!this.U.tb()&&!this.h3&&(this.j||this.hj)}; g.h.jt=function(T){N4.prototype.jt.call(this,T);if(this.T||this.S)this.timing&&bz(this.timing.preview)&&(this.T=!1,ru(this),this.S=!1,ru(this),this.U.uf("shopping_overlay_preview_collapsed"),this.U.uf("shopping_overlay_preview_expanded"),T=c1(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),bz(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.U.uf("shopping_overlay_expanded"),T.end=this.timing.expanded.endSec*1E3),this.U.fY([T])), this.qO=!0,dW(this);ru(this)}; g.h.H1=function(T){(this.j=T)?(wW(this),dW(this,!1)):(Z0t(this),this.sK.start());this.FE()}; g.h.fY=function(T){var Q=this.timing;T=(T===void 0?0:T)+this.U.getCurrentTime();var k=[],l=Q.visible,v=Q.preview;Q=Q.expanded;bz(l)&&(LH6(l,T),k.push(c1(l.startSec,l.endSec,"shopping_overlay_visible")));bz(v)&&(LH6(v,T),l=v.startSec+1,k.push(c1(v.startSec,l,"shopping_overlay_preview_collapsed")),k.push(c1(l,v.endSec,"shopping_overlay_preview_expanded")));bz(Q)&&(LH6(Q,T),k.push(c1(Q.startSec,Q.endSec,"shopping_overlay_expanded")));this.U.fY(k)}; g.h.FE=function(){N4.prototype.FE.call(this);this.U.getRootNode()&&g.gl(this.U.getRootNode(),"ytp-shopping-pill-shown",this.Hs())};g.S(mef,g.p); mef.prototype.Aj=function(){var T=this.api.G();this.o_(g.Qk(T)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Sr);var Q=this.api.getVideoData(),k=!1;this.api.getPresentingPlayerType()===2?k=!!Q.videoId&&!!Q.isListed&&!!Q.author&&!!Q.Tg&&!!Q.profilePicture:g.Qk(T)&&(k=!!Q.videoId&&!!Q.Tg&&!!Q.profilePicture&&!Q.hh&&!T.L&&!(T.C&&this.api.getPlayerSize().width<200));var l=Q.profilePicture;T=g.Qk(T)?Q.expandedTitle:Q.author;l=l===void 0? "":l;T=T===void 0?"":T;k?(this.S!==l&&(this.T.style.backgroundImage="url("+l+")",this.S=l),this.updateValue("channelLogoLabel",g.o0("Foto o imagen de $CHANNEL_NAME",{CHANNEL_NAME:T})),g.oF(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Lb(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.T,k&&this.N);this.api.logVisibility(this.channelName,k&&this.N);this.subscribeButton&&(this.subscribeButton.channelId=Q.hH);this.updateValue("expandedTitle",Q.expandedTitle)};g.S(DL,g.LA);DL.prototype.show=function(){g.LA.prototype.show.call(this);this.T.start()}; DL.prototype.hide=function(){g.LA.prototype.hide.call(this);this.T.stop()}; DL.prototype.Kp=function(T,Q){T==="dataloaded"&&((this.VD=Q.VD,this.nG=Q.nG,isNaN(this.VD)||isNaN(this.nG))?this.L&&(this.U.uf("intro"),this.U.removeEventListener(g.ej("intro"),this.C),this.U.removeEventListener(g.Ft("intro"),this.B),this.U.removeEventListener("onShowControls",this.Y),this.hide(),this.L=!1):(this.U.addEventListener(g.ej("intro"),this.C),this.U.addEventListener(g.Ft("intro"),this.B),this.U.addEventListener("onShowControls",this.Y),T=new g.$d(this.VD,this.nG,{priority:9,namespace:"intro"}), this.U.fY([T]),this.L=!0))};g.S(aG,g.p);aG.prototype.onClick=function(){this.U.YU()}; aG.prototype.Aj=function(){var T=!0;g.Qk(this.U.G())&&(T=T&&this.U.Hx().getPlayerSize().width>=480);this.o_(T);T=this.updateValue;var Q=this.U.V("delhi_modern_web_player_icons"),k=Q?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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"}}]}:{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,K:{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"}}]};Q=Q?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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"}}]}:{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{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"}}]};T.call(this,"icon",this.U.Ax()?k:Q)};g.S(hl5,g.p);hl5.prototype.EK=function(){this.T=null;g.p.prototype.EK.call(this)};g.S(uz,g.p);uz.prototype.onClick=function(){this.U.tj("innertubeCommand",this.S)}; uz.prototype.D=function(){if(this.U.V("delhi_modern_web_player")){var T=this.U.getPlayerSize();T.width&&(this.element.style.maxWidth=T.width*.25+"px")}}; uz.prototype.qO=function(T){T!==this.C&&(this.update({chapterTitle:T,ariaLabel:T}),this.C=T);T?this.show():this.hide()}; uz.prototype.z9=function(){this.T.disabled=this.S==null;g.gl(this.T,"ytp-chapter-container-disabled",this.T.disabled);this.bC()};g.S(nm,uz);nm.prototype.onClickCommand=function(T){g.t(T,XC)&&this.bC()}; nm.prototype.updateVideoData=function(T,Q){var k,l,v;T=g.t((k=Q.getWatchNextResponse())==null?void 0:(l=k.playerOverlays)==null?void 0:(v=l.playerOverlayRenderer)==null?void 0:v.decoratedPlayerBarRenderer,Vk);k=g.t(T==null?void 0:T.playerBarActionButton,g.jw);if(this.U.V("web_player_updated_entrypoint")){this.j=On(k==null?void 0:k.text);var L;l=(L=k==null?void 0:k.tooltip)!=null?L:"Ver cap\u00edtulo";this.B.setAttribute("title",l)}this.S=k==null?void 0:k.command;uz.prototype.z9.call(this)}; nm.prototype.bC=function(){var T=this.j,Q=this.Y.T,k,l=((k=this.U.getLoopRange())==null?void 0:k.type)==="clips";if(Q.length>1&&!l){T=this.U.getProgressState().current*1E3;k=mJ(Q,T);T=Q[k].title||"Cap\u00edtulos";if(k!==this.currentIndex||this.L)this.U.tj("innertubeCommand",Q[k].onActiveCommand),this.currentIndex=k;this.L=!1}else this.L=!0;uz.prototype.qO.call(this,T)};g.S(Km,g.M1);Km.prototype.S=function(){var T;(T=this.element.parentElement)==null||T.classList.contains("ytp-right-controls-left");(this.T=!this.T)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; Km.prototype.isExpanded=function(){return this.T};g.S(xW,g.p);xW.prototype.L=function(T){g.J(T.state,32)?SOb(this,this.api.l7()):this.Sr&&(g.J(T.state,16)||g.J(T.state,1))||this.fade.hide()}; xW.prototype.M_=function(){var T=this.api.getPlayerStateObject();(g.J(T,32)||g.J(T,16))&&C0y(this)}; xW.prototype.Y=function(){this.frameIndex=NaN;C0y(this)}; xW.prototype.hide=function(){this.T&&SOb(this,null);g.p.prototype.hide.call(this)};g.S(BF5,g.p);g.h=BF5.prototype;g.h.onClick=function(){var T=this;if(this.U.G().Tg||this.U.G().C){this.U.logClick(this.element);try{this.U.toggleFullscreen().catch(function(Q){T.GZ(Q)})}catch(Q){this.GZ(Q)}}else gh(this.message,this.element,!0)}; g.h.GZ=function(T){String(T).includes("fullscreen error")?g.rB(T):g.bA(T);this.zY()}; g.h.zY=function(){this.disable();this.message.fA(this.element,!0)}; g.h.pH=function(){md()===this.U.getRootNode()?this.L.start():(this.L.stop(),this.message&&this.message.hide())}; g.h.Sh=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var T=window.screen.width*.9,Q=window.screen.height*.9,k=Math.max(window.outerWidth,window.innerWidth),l=Math.max(window.outerHeight,window.innerHeight);if(k>l!==T>Q){var v=k;k=l;l=v}T>k&&Q>l&&this.zY()}}; g.h.disable=function(){var T=this;if(!this.message){var Q=(Zk(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"La opci\u00f3n de pantalla completa no est\u00e1 disponible. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK":"Tu navegador no es compatible con la opci\u00f3n de pantalla completa. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.LA(this.U,{X:"div",Rk:["ytp-popup","ytp-generic-popup"], K:{role:"alert",tabindex:"0"},W:[Q[0],{X:"a",K:{href:"https://support.google.com/youtube/answer/6276924",target:this.U.G().D},S6:Q[2]},Q[4]]},100,!0);this.message.hide();g.P(this,this.message);this.message.subscribe("show",function(k){T.S.Mq(T.message,k)}); g.TQ(this.U,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.T)();this.T=null}}; g.h.Aj=function(){var T=FxH(this.U),Q=this.U.G().C&&this.U.getPlayerSize().width<250;this.o_(T&&!Q);var k;((k=this.U.G())==null?0:k.V("embeds_use_parent_visibility_in_ve_logging"))?this.U.logVisibility(this.element,this.Sr&&this.N):this.U.logVisibility(this.element,this.Sr)}; g.h.gA=function(T){if(T){var Q=g.pX(this.U,"Salir de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir de pantalla completa"});document.activeElement===this.element&&this.U.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(k){g.rB(k)})}else Q=g.pX(this.U,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"}); T=zl6(this,T);Q=this.message?null:Q;this.U.G().V("player_tooltip_data_title_killswitch")?this.update({title:Q,icon:T}):this.update({"tooltip-title":Q,"aria-label":Q,icon:T});this.S.aK().wO()}; g.h.EK=function(){this.message||((0,this.T)(),this.T=null);g.p.prototype.EK.call(this)}; g.h.vx=function(T){g.p.prototype.vx.call(this,T);var Q;((Q=this.U.G())==null?0:Q.V("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.Sr&&T)};g.S(P1,g.p);P1.prototype.onClick=function(){this.U.logClick(this.element);this.U.seekBy(this.T,!0);var T=this.T>0?1:-1,Q=Math.abs(this.T),k=this.U.nB().xV;k&&k.KU(T,Q);this.S.isActive()?this.L=!0:(T=["ytp-jump-spin"],this.T<0&&T.push("backwards"),this.element.classList.add.apply(this.element.classList,g.ZH(T)),g.Ez(this.S))};g.S(H1,uz);H1.prototype.onClickCommand=function(T){g.t(T,eCA)&&this.bC()}; H1.prototype.updateVideoData=function(){var T,Q;this.S=(T=w$5(this))==null?void 0:(Q=T.onTap)==null?void 0:Q.innertubeCommand;uz.prototype.z9.call(this)}; H1.prototype.bC=function(){var T="",Q=this.Y.C,k,l=(k=w$5(this))==null?void 0:k.headerTitle;k=l?g.Rx(l):"";var v;l=((v=this.U.getLoopRange())==null?void 0:v.type)==="clips";Q.length>1&&!l&&(T=this.U.getProgressState().current*1E3,v=dc5(Q,T),T=v!=null?Q[v].title:k,v!=null&&v!==this.currentIndex&&(this.U.tj("innertubeCommand",Q[v].onActiveCommand),this.currentIndex=v));uz.prototype.qO.call(this,T)};g.S(tG,g.p);tG.prototype.onClick=function(){this.U.tj("onCollapseMiniplayer");this.U.logClick(this.element)}; tG.prototype.Aj=function(){this.visible=!this.U.isFullscreen();this.o_(this.visible);this.U.logVisibility(this.element,this.visible&&this.N)}; tG.prototype.vx=function(T){g.p.prototype.vx.call(this,T);this.U.logVisibility(this.element,this.visible&&T)};g.S(Ou,g.p);Ou.prototype.init=function(){this.updateValue("minvalue",this.Y);this.updateValue("maxvalue",this.B);this.updateValue("stepvalue",this.j);this.updateValue("slidervalue",this.T);NFf(this,this.T)}; Ou.prototype.L=function(){pm(this,Number(this.S.value));this.S.focus()}; Ou.prototype.C=function(T){if(!T.defaultPrevented){switch(T.code){case "ArrowDown":T=-this.j;break;case "ArrowUp":T=this.j;break;default:return}pm(this,Math.min(this.B,Math.max(Number((this.T+T).toFixed(2)),this.Y)))}};g.S(W1,Ou);W1.prototype.onVolumeChange=function(T){if(this.D)this.D=!1;else{var Q=T.volume;Q===0||T.muted?pm(this,0):pm(this,Q)}}; W1.prototype.L=function(){Ou.prototype.L.call(this);this.z9(this.T)}; W1.prototype.qO=function(T){var Q=-T.deltaY;Q=T.deltaMode===WheelEvent.DOM_DELTA_LINE||T.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.ti(this.T+Q,0,100):g.ti(this.T+g.ti(Q/10,-10,10),0,100);Q===0?pm(this,0):pm(this,Q);this.z9(Q);T.preventDefault();T.stopPropagation()}; W1.prototype.hj=function(T,Q){this.D=!0;T===0||Q?this.U.mute():(this.U.isMuted()&&this.U.unMute(),this.U.setVolume(T))};g.S(ApC,g.p);g.S(JG,g.p);g.h=JG.prototype;g.h.Jw=function(){if(!this.U.uS()){this.updateValue("dataTooltipOffsetY",-120);var T;(T=this.T)!=null&&$W(T,!0);var Q;(Q=this.T)!=null&&Q.T.stop()}}; g.h.Tr=function(){var T;(T=this.T)!=null&&T.T.start()}; g.h.ZO=function(T){this.visible=T.width>=300||this.Bd;this.o_(this.visible);this.U.logVisibility(this.element,this.visible&&this.N)}; g.h.YK=function(){this.U.G().e6?this.U.isMuted()?this.U.unMute():this.U.mute():gh(this.message,this.element,!0);this.U.logClick(this.element)}; g.h.iYd=function(T){if(this.U.G().e6&&this.T)if(T.target===this.L){var Q;if(!this.U.uS()||((Q=this.T)==null?0:Q.isVisible))this.YK();else{var k;(k=this.T)!=null&&$W(k,!0)}}else{var l;(l=this.T)!=null&&$W(l,!0)}else this.YK()}; g.h.onVolumeChange=function(T){this.setVolume(T.volume,T.muted)}; g.h.setVolume=function(T,Q){var k=this,l=Q?0:T/100;T=l===0?1:T>50?1:0;if(this.D!==T){var v=this.j;isNaN(v)?a6t(this,T):Hay(this.e6,function(q){a6t(k,v+(k.D-v)*q)},250); this.D=T}l=l===0?1:0;if(this.C!==l){var L=this.hj;isNaN(L)?u55(this,l):Hay(this.xm,function(q){u55(k,L+(k.C-L)*q)},250); this.C=l}rp5(this,Q)}; g.h.vx=function(T){g.p.prototype.vx.call(this,T);this.U.logVisibility(this.element,this.visible&&T)}; var cp5=["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"],De5=["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.S(g.eL,g.p);g.h=g.eL.prototype;g.h.onStateChange=function(T){this.OH(T.state);var Q;((Q=this.U.G())==null?0:Q.V("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.Sr&&this.N)}; g.h.OH=function(T){var Q=g.iO(this.U.getVideoData()),k=!1;T.isOrWillBePlaying()?T=Q?4:2:g.J(T,2)?(T=3,k=Q):T=1;this.element.disabled=k;if(this.T!==T){Q=null;switch(T){case 2:Q=g.pX(this.U,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:Q="Volver a reproducir";this.update({"data-title-no-tooltip":"Volver a reproducir"});break;case 1:Q=g.pX(this.U,"Reproducir","k");this.update({"data-title-no-tooltip":"Reproducir"});break;case 4:Q="Detener la reproducci\u00f3n en vivo",this.update({"data-title-no-tooltip":"Detener la reproducci\u00f3n en vivo"})}T=== 3?this.U.G().V("player_tooltip_data_title_killswitch")?this.update({title:Q,icon:nGX(this,T)}):this.update({"tooltip-title":Q,icon:nGX(this,T)}):(this.U.V("player_tooltip_data_title_killswitch")?this.update({title:Q}):this.update({"tooltip-title":Q}),(Q=nGX(this,T))&&this.T&&this.T!==3?Oa5(this.transition,this.element,Q):this.updateValue("icon",Q));this.tooltip.wO();this.T=T}}; g.h.onVideoDataChange=function(){g.gl(this.element,"ytp-play-button-playlist",g.FZ(this.U))}; g.h.GR=function(T){this.U.logClick(this.element);if(this.U.getPlayerStateObject().isOrWillBePlaying())this.U.pauseVideo();else{if(this.U.isMinimized()&&this.U.getPlayerStateObject().isCued()){var Q={},k;if((k=this.U.getVideoData())==null?0:k.B)Q.cttAuthInfo={token:this.U.getVideoData().B,videoId:this.U.getVideoData().videoId};At("direct_playback",Q);this.U.eZ().timerName="direct_playback"}this.U.playVideo()}this.U.isMinimized()&&(T==null?void 0:T.type)==="click"&&this.element.blur()}; g.h.vx=function(T){g.p.prototype.vx.call(this,T);var Q;((Q=this.U.G())==null?0:Q.V("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.Sr&&T)};g.S(g.Fa,g.p);g.h=g.Fa.prototype;g.h.onVideoDataChange=function(){P05(this);this.Y&&(this.J6(this.Y),this.Y=null);this.videoData=this.U.getVideoData(1);if(this.playlist=this.U.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.Y=this.Z(this.U,"progresssync",this.pL);this.L=H05(this);xe6(this);this.sJ(this.U.Hx().getPlayerSize())}; g.h.sJ=function(T){T=T===void 0?this.U.Hx().getPlayerSize():T;var Q,k=((Q=this.U.getLoopRange())==null?void 0:Q.type)==="clips";T=(g.FZ(this.U)||this.T&&g.QS(this.U)&&!this.U.V("web_hide_next_button")||t0X(this))&&!k&&(this.T||T.width>=400);this.o_(T);this.U.logVisibility(this.element,T)}; g.h.onClick=function(T){this.U.logClick(this.element);var Q=!0;this.C?Q=g.wh(T,this.U):T.preventDefault();Q&&(this.T&&this.U.getPresentingPlayerType()===5?this.U.publish("ytoprerollinternstitialnext"):this.T?(XB(this.U.eZ()),this.U.publish("playlistnextbuttonclicked",this.element),this.U.nextVideo(!0)):this.L?this.U.seekTo(0):(XB(this.U.eZ()),this.U.publish("playlistprevbuttonclicked",this.element),this.U.previousVideo(!0)))}; g.h.pL=function(){var T=H05(this);T!==this.L&&(this.L=T,xe6(this))}; g.h.EK=function(){this.S&&(this.S(),this.S=null);P05(this);g.p.prototype.EK.call(this)};g.S(p$f,g.p);g.h=p$f.prototype;g.h.W8=function(T){this.J$(T.pageX);this.rD(T.pageX+T.deltaX);WHX(this)}; g.h.J$=function(T){this.z9=T-this.Bd}; g.h.rD=function(T){T-=this.Bd;!isNaN(this.z9)&&this.thumbnails.length>0&&(this.D=T-this.z9,this.thumbnails.length>0&&this.D!==0&&(this.L=this.j+this.D,T=EGI(this,this.L),this.L<=this.T/2&&this.L>=FHt(this)?(this.api.seekTo(T,!1,void 0,void 0,25),g.W2(this.hj,"transform","translateX("+(this.L-this.T/2)+"px)"),O05(this,T)):this.L=this.j))}; g.h.uJ=function(){this.qO&&(this.qO.Fr=!0);var T=(0,g.XY)()-this.Jj<300;if(Math.abs(this.D)<5&&!T){this.Jj=(0,g.XY)();T=this.z9+this.D;var Q=this.T/2-T;this.J$(T);this.rD(T+Q);WHX(this);this.api.logClick(this.B)}WHX(this)}; g.h.Ov=function(){Eu(this,this.api.getCurrentTime())}; g.h.play=function(T){this.api.seekTo(EGI(this,this.L),void 0,void 0,void 0,26);this.api.playVideo();T&&this.api.logClick(this.playButton)}; g.h.onExit=function(T){this.api.seekTo(this.sK,void 0,void 0,void 0,63);this.api.playVideo();T&&this.api.logClick(this.dismissButton)}; g.h.zx=function(T,Q){this.Bd=T;this.T=Q;Eu(this,this.api.getCurrentTime())}; g.h.enable=function(){this.isEnabled||(this.isEnabled=!0,this.sK=this.api.getCurrentTime(),O05(this,this.sK),g.gl(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.e6=this.Z(this.element,"wheel",this.W8),this.logVisibility(this.isEnabled))}; g.h.disable=function(){this.isEnabled=!1;this.hide();g.gl(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.e6&&this.J6(this.e6);this.logVisibility(this.isEnabled)}; g.h.reset=function(){this.disable();this.Y=[];this.i9=!1}; g.h.logVisibility=function(T){this.api.logVisibility(this.element,T);this.api.logVisibility(this.B,T);this.api.logVisibility(this.dismissButton,T);this.api.logVisibility(this.playButton,T)}; g.h.EK=function(){for(;this.S.length;){var T=void 0;(T=this.S.pop())==null||T.dispose()}g.p.prototype.EK.call(this)}; g.S($ef,g.p);g.S(Jpf,g.p);g.S(yp5,g.p);g.S(y7,g.p);y7.prototype.xB=function(T){return T==="PLAY_PROGRESS"?this.j:T==="LOAD_PROGRESS"?this.C:T==="LIVE_BUFFER"?this.B:this.L};TAH.prototype.update=function(T,Q,k,l){k=k===void 0?0:k;this.width=Q;this.Y=k;this.T=Q-k-(l===void 0?0:l);this.position=g.ti(T,k,k+this.T);this.L=this.position-k;this.S=this.L/this.T};g.S(Qib,g.p);g.S(g.Tu,g.M1);g.h=g.Tu.prototype; g.h.aP=function(){var T=!1,Q=this.api.getVideoData();if(!Q)return T;this.api.uf("timedMarkerCueRange");lrb(this);for(var k=g.B(Q.K_),l=k.next();!l.done;l=k.next()){l=l.value;var v=void 0,L=(v=this.p_[l])==null?void 0:v.markerType,q=void 0;v=(q=this.p_[l])==null?void 0:q.markers;if(!v)break;if(L==="MARKER_TYPE_TIMESTAMPS"){T=g.B(v);for(L=T.next();!L.done;L=T.next()){q=L.value;L=new Qib;var Y=void 0;L.title=((Y=q.title)==null?void 0:Y.simpleText)||"";L.timeRangeStartMillis=Number(q.startMillis);L.T= Number(q.durationMillis);var U=Y=void 0;L.onActiveCommand=(U=(Y=q.onActive)==null?void 0:Y.innertubeCommand)!=null?U:void 0;M15(this,L)}Yf5(this,this.C);T=this.C;L=this.vk;q=[];Y=null;for(U=0;UR&&(Y.end=R);R=bs5(R,R+f);q.push(R);Y=R;L[R.id]=T[U].onActiveCommand}}this.api.fY(q);a:{T=g.B(v);for(v=T.next();!v.done;v=T.next())if(v.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){T= !1;break a}T=!0}T&&(this.NK=this.p_[l]);T=!0}else if(L==="MARKER_TYPE_HEATMAP"){l=this.p_[l];Z=R=L=U=Y=q=void 0;if(l&&l.markers){v=(L=(Z=l.markersMetadata)==null?void 0:(R=Z.heatmapMetadata)==null?void 0:R.minHeightDp)!=null?L:0;L=(q=(U=l.markersMetadata)==null?void 0:(Y=U.heatmapMetadata)==null?void 0:Y.maxHeightDp)!=null?q:60;q=this.T.length;Y=null;for(U=0;U=Z&&I<=f&&R.push(m)}L>0&&(this.qO.style.height=L+"px");Z=this.Y[U];f=R;m=v;var z=L,w=U===0;w=w===void 0?!1:w;i05(Z,z);G=f;I=Z.S;w=w===void 0?!1:w;var r=1E3/G.length,A=[];A.push({x:0,y:100});for(var D=0;D0&&(Y=R[R.length-1])}g.Qg(this)}L=void 0;v=[];if(l=(L=l.markersDecoration)==null?void 0:L.timedMarkerDecorations)for(l=g.B(l),L=l.next();!L.done;L=l.next())L=L.value,U=Y=q=void 0,v.push({visibleTimeRangeStartMillis:(q=L.visibleTimeRangeStartMillis)!= null?q:-1,visibleTimeRangeEndMillis:(Y=L.visibleTimeRangeEndMillis)!=null?Y:-1,decorationTimeMillis:(U=L.decorationTimeMillis)!=null?U:NaN,label:L.label?g.Rx(L.label):""});l=v;this.heatMarkersDecorations=l}}Q.xj=this.C;g.gl(this.element,"ytp-timed-markers-enabled",T);return T}; g.h.zx=function(){g.Qg(this);la(this);Yf5(this,this.C);if(this.S){var T=g.Vf(this.element).x||0;this.S.zx(T,this.B)}}; g.h.ZAB=function(){var T=this.api.getVideoData();T&&CJ5(this,T)}; g.h.onClickCommand=function(T){if(T=g.t(T,XC)){var Q=T.key;T.isVisible&&Q&&frI(this,Q)}}; g.h.EMH=function(T){this.api.tj("innertubeCommand",this.vk[T.id])}; g.h.bC=function(){la(this);var T=this.api.getCurrentTime();(Tthis.clipEnd)&&this.jw()}; g.h.v8=function(T){if(!T.defaultPrevented){var Q=!1;switch(T.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);Q=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);Q=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);Q=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);Q=!0;break;case 38:this.api.V("enable_key_press_seek_logging")&&MK(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);Q=!0;break;case 40:this.api.V("enable_key_press_seek_logging")&&MK(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),Q=!0}Q&&T.preventDefault()}}; g.h.Kp=function(T,Q){this.updateVideoData(Q,T==="newdata")}; g.h.l_=function(){this.Kp("newdata",this.api.getVideoData())}; g.h.updateVideoData=function(T,Q){Q=Q===void 0?!1:Q;var k=!!T&&T.Hk();k&&(sU(T)||si6(this)?this.m0=!1:this.m0=T.allowLiveDvr,g.gl(this.api.getRootNode(),"ytp-enable-live-buffer",!(T==null||!sU(T))),CJ5(this,T));nw6(this,this.api.Yo());if(Q){if(k){Q=T.clipEnd;this.clipStart=T.clipStart;this.clipEnd=Q;Y$(this);for(La(this,this.z9,this.QR);this.Y.length>0;)this.Y.pop().dispose();this.heatMarkersDecorations=[];this.d5={};var l;(l=this.S)==null||l.reset();Gu(this);g.gl(this.api.getRootNode(),"ytp-fine-scrubbing-exp", V7(this))}else this.jw();this.Zb()}if(T){var v;l=((v=this.VR)==null?void 0:v.type)==="clips";if(v=!T.isLivePlayback){v=this.api.getVideoData();Q=g.TV(v);k=vwu(v);var L;v=Q!=null||k!=null&&k.length>0||((L=v.O2)==null?void 0:L.length)>0}if(v&&!l){L=this.api.getVideoData();l=g.TV(L);v=!1;if(l==null?0:l.markersMap){v=this.api.getVideoData();var q;v.Zy=((q=l.visibleOnLoad)==null?void 0:q.key)||v.Zy;q=g.B(l.markersMap);for(l=q.next();!l.done;l=q.next())l=l.value,l.key&&l.value&&(this.d5[l.key]=l.value, l.value.onChapterRepeat&&(v.goB=l.value.onChapterRepeat));v.Zy!=null&&frI(this,v.Zy);v=!0}var Y;if(((Y=L.O2)==null?void 0:Y.length)>0){Y=g.w4.getState().entities;q=g.B(L.O2);for(l=q.next();!l.done;l=q.next()){l=l.value;k=void 0;Q=(k=V8(Y,"macroMarkersListEntity",l))==null?void 0:k.markersList;var U=k=void 0;if(((k=Q)==null?void 0:k.markerType)==="MARKER_TYPE_TIMESTAMPS"||((U=Q)==null?void 0:U.markerType)==="MARKER_TYPE_HEATMAP")this.p_[l]=Q}v=this.aP()||v}!v&&(Y=vwu(L))&&(qfX(this,Y),L.NK=this.T, LVg(this));BAf(this,null);T.xw&&this.Y.length===0&&(T=T.xw,Y=T.key,T.isVisible&&Y&&frI(this,Y))}else jif(this),lrb(this)}la(this)}; g.h.rX=function(T){this.j&&!g.J(T.state,32)&&this.api.getPresentingPlayerType()!==3&&this.j.cancel();var Q;((Q=this.S)==null?0:Q.isEnabled)&&g.J(T.state,8)&&this.api.pauseVideo();T=this.api.getPresentingPlayerType()===2||!this.api.Yo()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.gl(this.Wk,"ytp-hide-scrubber-button",T)}; g.h.Aw=function(T){var Q=!!this.VR!==!!T,k=this.VR;this.VR=T;BAf(this,k);(T==null?void 0:T.type)!=="clips"&&T||(T?(this.updateValue("clipstarticon",Xyf()),this.updateValue("clipendicon",Xyf()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",m5C()),this.updateValue("clipendicon",GL5()),this.updateValue("clipstarttitle","Mirar video completo"),this.updateValue("clipendtitle","Mirar video completo")),Q&&(this.updateVideoData(this.api.getVideoData(), !0),g.Qg(this)),Y$(this));La(this,this.z9,this.QR)}; g.h.kxB=function(){this.api.publish("progressBarHoverStart")}; g.h.YHO=function(T,Q,k){var l=g.Vf(this.element),v=k$(this).T,L=k?k.getAttribute("data-tooltip"):void 0,q=k?k.getAttribute("data-position"):void 0,Y=k?k.getAttribute("data-offset-y"):void 0;Y=Y?Number(Y):0;q&&(T=c8(this.L,Number(k.getAttribute("data-position")),0)*v+g.Vf(this.progressBar).x);this.Tg.x=T-l.x;this.Tg.y=Q-l.y;T=k$(this);k=gU(this,T);Q=0;var U;if((U=this.api.getVideoData())==null?0:sU(U))(U=this.api.getProgressState().seekableEnd)&&k>U&&(k=U,T.position=c8(this.L,U)*k$(this).T),Q=this.L.S; si6(this)&&(Q=this.L.S);U=L||g.CN(this.m0?k-this.L.T:k-Q);Q=T.position+this.A9;k-=this.api.Px();var R;if((R=this.S)==null||!R.isEnabled)if(this.api.l7()){if(this.T.length>1){R=qK(this,this.Tg.x,!0);if(!this.VR)for(l=0;l1)for(l=0;l0)for(R=this.Tg.x,l=g.B(this.C),v=l.next();!v.done;v=l.next())v=v.value,q=jW(this,v.timeRangeStartMillis/ (this.L.T*1E3),k$(this)),g.gl(v.element,"ytp-timed-marker-hover",q<=R&&q+6>=R);l=this.tooltip.scale;R=this.api.V("delhi_modern_web_player")?67:45;Y=(isNaN(Y)?0:Y)-R*l;this.api.V("web_key_moments_markers")?this.NK?(R=dc5(this.C,k*1E3),R=R!=null?this.C[R].title:""):(R=mJ(this.T,k*1E3),R=this.T[R].title):(R=mJ(this.T,k*1E3),R=this.T[R].title);R||(Y+=16*l);this.tooltip.scale===.6&&(g.Cn(this.api.G())?(Y=this.api.Hx().getPlayerSize().height-225,l=this.api.V("delhi_modern_web_player")?70:110,Y=R?Y+l:Y+ l+16):Y=R?110:126);l=mJ(this.T,k*1E3);this.i9=XAu(this,k,l)?l:XAu(this,k,l+1)?l+1:-1;g.gl(this.api.getRootNode(),"ytp-progress-bar-snap",this.i9!==-1&&this.T.length>1);l=!1;v=g.B(this.heatMarkersDecorations);for(q=v.next();!q.done;q=v.next()){q=q.value;var Z=k*1E3;Z>=q.visibleTimeRangeStartMillis&&Z<=q.visibleTimeRangeEndMillis&&(R=q.label,U=g.CN(q.decorationTimeMillis/1E3),this.api.V("web_heat_marker_use_current_time")&&(U=g.CN(gU(this,T))),l=!0)}this.nG!==l&&(this.nG=l,this.api.logVisibility(this.YP, this.nG));g.gl(this.api.getRootNode(),"ytp-progress-bar-decoration",l);l=160*this.tooltip.scale*2;v=R.length*(this.D?8.55:5.7);v=v<=l?v:l;q=v<160*this.tooltip.scale;l=3;!q&&v/2>T.position&&(l=1);!q&&v/2>this.B-T.position&&(l=2);this.api.G().C&&(Y-=10);this.Y.length&&this.Y[0].Hk&&(Y-=14*(this.D?2:1),this.sK||(this.sK=!0,this.api.logVisibility(this.qO,this.sK)));var f;if(V7(this)&&(((f=this.S)==null?0:f.isEnabled)||this.K_>0)){var G;Y-=((G=this.S)==null?0:G.isEnabled)?RC(this):this.K_}f=void 0;V7(this)&& !this.api.V("web_player_hide_fine_scrubbing_edu")&&(f="Arrastra hacia arriba para realizar una b\u00fasqueda m\u00e1s precisa",this.Bd||(this.Bd=!0,this.api.logVisibility(this.vn,this.Bd)));this.tooltip.iM(Q,k,U,!!L,Y,R,l,f)}else this.tooltip.iM(Q,k,U,!!L,Y);g.oF(this.api.getRootNode(),"ytp-progress-bar-hover");hMJ(this)}; g.h.FrH=function(){this.Zb();g.Lb(this.api.getRootNode(),"ytp-progress-bar-hover");this.sK&&(this.sK=!1,this.api.logVisibility(this.qO,this.sK));this.Bd&&(this.Bd=!1,this.api.logVisibility(this.vn,this.Bd));this.api.V("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.h.LrV=function(T,Q){var k=g.Vf(this.element);this.t6=T-k.x;V7(this)&&this.S&&(this.S.i9?Eu(this.S,this.api.getCurrentTime()):elC(this.S),this.S.show(),g.gl(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.S.isEnabled));this.Tw&&(this.Tw.dispose(),this.Tw=null);this.b7=Q;this.uK=this.api.getCurrentTime();this.T.length>1&&this.i9!==-1?this.api.seekTo(this.T[this.i9].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(gU(this,k$(this)),!1,void 0,void 0,7);g.oF(this.element,"ytp-drag");(this.ek= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.h.m2O=function(){if(V7(this)&&this.S){var T=RC(this);this.K_>=T*.5?(this.S.enable(),Eu(this.S,this.api.getCurrentTime()),uq5(this,T)):Gu(this)}if(g.J(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var Q;if((Q=this.S)==null?0:Q.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.T.length>1&&this.i9!==-1)this.api.V("html5_enable_progress_bar_slide_seek_logging")&&MK(this,this.uK,this.T[this.i9].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.T[this.i9].startTime/1E3,void 0,void 0,void 0,7);else{T=gU(this,k$(this));this.api.V("html5_enable_progress_bar_slide_seek_logging")&&MK(this,this.uK,T,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(T,void 0,void 0,void 0,7);Q=g.B(this.heatMarkersDecorations);for(var k=Q.next();!k.done;k=Q.next())k=k.value,T*1E3>=k.visibleTimeRangeStartMillis&&T*1E3<=k.visibleTimeRangeEndMillis&& this.api.logClick(this.YP)}g.Lb(this.element,"ytp-drag");this.xm&&(this.hj.src=this.xm);this.ek&&!g.J(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.h.iAK=function(T,Q){var k=this,l=k$(this),v=gU(this,l);this.api.Hx().kU||(l.position>this.t6+2?this.Fk&&(this.hj.src=this.Fk):l.position1);this.o_(T&&this.U.Hx().getPlayerSize().width>=400);this.U.logVisibility(this.element,this.Sr);var Q=1;T&&this.isActive()&&(Q=2);if(this.T!==Q){this.T=Q;T=this.U.V("delhi_modern_web_player_icons");switch(Q){case 1:this.updateValue("icon",T?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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"}}]}:{X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{X:"path",kc:!0,K:{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", T?{X:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{X:"path",K:{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.ZYI())}g.gl(this.element,"ytp-remote-button-active",this.isActive())}}; mv.prototype.S=function(){if(this.U.getOption("remote","quickCast"))this.U.setOption("remote","quickCast",!0);else{var T=this.YB,Q=this.element;if(T.n$())T.sG();else{T.initialize();a:{var k=g.B(T.xP.items);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.priority===1){k=l;break a}k=null}k&&(k.open(),T.fA(Q));T.fA(Q)}}this.U.logClick(this.element)};g.S(IC,g.p);IC.prototype.T=function(T){var Q=this.U.G(),k=400;this.U.V("web_player_small_hbp_settings_menu")&&Q.B?k=300:Q.C&&(k=200);T=this.S&&T.width>=k;this.o_(T);this.U.V("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element,T&&this.N):this.U.logVisibility(this.element,T)}; IC.prototype.L=function(){if(this.YB.Sr)this.YB.sG();else{var T=g.uj(this.U.Bx());T&&!T.loaded&&(T.R2("tracklist",{includeAsr:!0}).length||T.load());this.U.logClick(this.element);this.YB.fA(this.element)}}; IC.prototype.updateBadge=function(){var T=this.U.isHdr(),Q=this.U.getPresentingPlayerType(),k=Q!==2&&Q!==3,l=g.V5(this.U),v=k&&!!g.y5(this.U.Bx());Q=v&&l.displayMode===1;l=v&&l.displayMode===2;k=(v=Q||l)||!k?null:this.U.getPlaybackQuality();g.gl(this.element,"ytp-hdr-quality-badge",T);g.gl(this.element,"ytp-hd-quality-badge",!T&&(k==="hd1080"||k==="hd1440"));g.gl(this.element,"ytp-4k-quality-badge",!T&&k==="hd2160");g.gl(this.element,"ytp-5k-quality-badge",!T&&k==="hd2880");g.gl(this.element,"ytp-8k-quality-badge", !T&&k==="highres");g.gl(this.element,"ytp-3d-badge-grey",!T&&v&&Q);g.gl(this.element,"ytp-3d-badge",!T&&v&&l)};g.S(hE,zQ);hE.prototype.isLoaded=function(){var T=g.t4(this.U.Bx());return T!==void 0&&T.loaded}; hE.prototype.Aj=function(){g.t4(this.U.Bx())!==void 0&&this.U.getPresentingPlayerType()!==3?this.T||(this.YB.A6(this),this.T=!0):this.T&&(this.YB.y8(this),this.T=!1);Xe(this,this.isLoaded())}; hE.prototype.onSelect=function(T){this.isLoaded();T?this.U.loadModule("annotations_module"):this.U.unloadModule("annotations_module");this.U.publish("annotationvisibility",T)}; hE.prototype.EK=function(){this.T&&this.YB.y8(this);zQ.prototype.EK.call(this)};g.S(sL,g.Hp);sL.prototype.Aj=function(){var T=this.U.getAvailableAudioTracks();T.length>1?(this.VE(g.IQ(T,this.T)),this.tracks=g.yJ(T,this.T,this),this.countLabel.qF(T.length?" ("+T.length+")":""),this.publish("size-change"),this.U$(this.T(this.U.getAudioTrack())),this.enable(!0)):this.enable(!1)}; sL.prototype.BT=function(T){g.Hp.prototype.BT.call(this,T);this.U.setAudioTrack(this.tracks[T]);this.YB.NN()}; sL.prototype.T=function(T){return T.toString()};g.S(SW,zQ); SW.prototype.S=function(){var T=this.U.getPresentingPlayerType();if(T!==2&&T!==3&&g.QS(this.U))this.T||(this.YB.A6(this),this.T=!0,this.L.push(this.Z(this.U,"videodatachange",this.S)),this.L.push(this.Z(this.U,"videoplayerreset",this.S)),this.L.push(this.Z(this.U,"onPlaylistUpdate",this.S)),this.L.push(this.Z(this.U,"autonavchange",this.Y)),T=this.U.getVideoData(),this.Y(T.autonavState),this.U.logVisibility(this.element,this.T));else if(this.T){this.YB.y8(this);this.T=!1;T=g.B(this.L);for(var Q=T.next();!Q.done;Q= T.next())this.J6(Q.value)}}; SW.prototype.Y=function(T){Xe(this,T!==1)}; SW.prototype.onSelect=function(T){this.U.Pi(T?2:1);this.T&&(this.U.logVisibility(this.element,this.T),this.U.logClick(this.element))}; SW.prototype.EK=function(){this.T&&this.YB.y8(this);zQ.prototype.EK.call(this)};g.S(xq5,g.UQ);xq5.prototype.onClick=function(T){T.preventDefault();var Q,k;(Q=g.aa(this.U))==null||(k=Q.K$())==null||k.sG();var l,v;(l=g.aa(this.U))==null||(v=l.yM())==null||v.fA(T.target)};g.S(PJu,g.Hp);g.h=PJu.prototype; g.h.nh=function(){var T=this.U.getPresentingPlayerType();if(T!==2&&T!==3){this.hj=this.U.G6();var Q=this.U.getAvailableQualityLevels();if(this.T){this.Y={};T=g.Ay(this.U,"getAvailableQualityData",[]);T=g.B(T);for(var k=T.next();!k.done;k=T.next())k=k.value,this.Y[k.qualityLabel]=k;T=Object.keys(this.Y);Q[Q.length-1]==="auto"&&T.push("auto");this.xm=new Set(Q)}else if(this.B){k=g.Ay(this.U,"getAvailableQualityData",[]);T=[];k=g.B(k);for(var l=k.next();!l.done;l=k.next())l=l.value,this.j[l.quality]= l,l.quality&&T.push(l.quality);Q[Q.length-1]==="auto"&&T.push("auto")}else T=Q;g.DZI(this.U)&&this.U.Wm()&&T.unshift("missing-qualities");Q=this.U.app.Pd();k=Q.getVideoData();if(!k.S||!k.S.video||k.S.video.qualityOrdinal<1080||k.OT)Q=!1;else{l=/^qsa/.test(k.clientPlaybackNonce);var v="r";k.S.id.indexOf(";")>=0&&(l=/^[a-p]/.test(k.clientPlaybackNonce),v="x");l?(Q.T9("iqss",{trigger:v},!0),Q=!0):Q=!1}Q&&T.unshift("inline-survey");this.VE(T);Q=this.U.getVideoData().cotn?!0:!1;k=this.qO.In();k=!g.Cn(this.U.G())|| !(Q===void 0?0:Q)||!(k===void 0||k);Q=this.S;k=k===void 0?!1:k;Q.aR&&g.gl(Q.L_("ytp-panel-footer"),"ytp-panel-hide-footer",k===void 0?!1:k);if(T.length){this.j4();this.enable(!0);return}}this.enable(!1)}; g.h.j4=function(){if(this.T){var T=this.U.getPreferredQuality();this.xm.has(T)&&(this.C=this.U.getPlaybackQuality(),this.z9=this.U.getPlaybackQualityLabel(),T==="auto"?(this.U$(T),this.qF(this.U4(T))):this.U$(this.z9))}else T=this.U.getPreferredQuality(),this.options[T]&&(this.C=this.U.getPlaybackQuality(),this.U$(T),T==="auto"&&this.qF(this.U4(T)))}; g.h.BT=function(T){if(T!=="missing-qualities"){g.Hp.prototype.BT.call(this,T);var Q=this.T?this.Y[T]:this.j[T];var k=Q==null?void 0:Q.quality,l=Q==null?void 0:Q.formatId,v=Q==null?void 0:Q.paygatedQualityDetails;Q=v==null?void 0:v.endpoint;if(v){var L;v=(L=this.options[T])==null?void 0:L.element;this.U.logClick(v)}if(this.T){var q,Y;if((q=g.t(Q,g.tNJ))==null?0:(Y=q.popup)==null?0:Y.notificationActionRenderer)this.U.tj("innertubeCommand",Q);else if(Q){this.U.tj("innertubeCommand",Q);return}l?this.U.setPlaybackQuality(k, l):this.U.setPlaybackQuality(k)}else{if(this.B){var U,R;if((U=g.t(Q,g.tNJ))==null?0:(R=U.popup)==null?0:R.notificationActionRenderer)this.U.tj("innertubeCommand",Q);else if(Q){this.U.tj("innertubeCommand",Q);return}}this.U.setPlaybackQuality(T)}this.YB.sG();this.nh()}}; g.h.open=function(){for(var T=g.B(Object.values(this.options)),Q=T.next();!Q.done;Q=T.next()){Q=Q.value;var k=void 0;this.U.hasVe((k=Q)==null?void 0:k.element)&&(k=void 0,this.U.logVisibility((k=Q)==null?void 0:k.element,!0))}g.Hp.prototype.open.call(this);this.U.logClick(this.element)}; g.h.Lw=function(T,Q,k){var l=this;if(T==="missing-qualities")return new g.UQ({X:"a",Rk:["ytp-menuitem"],K:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.U.G().D,tabindex:"0",role:"menuitemradio"},W:[{X:"div",Rk:["ytp-menuitem-label"],S6:"{{label}}"}]},Q,this.U4(T));if(T!=="inline-survey"){var v,L=(v=this.T?this.Y[T]:this.j[T])==null?void 0:v.paygatedQualityDetails;v=L==null?void 0:L.veType;L=L==null?void 0:L.trackingParams;Q=g.Hp.prototype.Lw.call(this,T,Q,k);L?(this.U.createServerVe(Q.element, this,!0),this.U.setTrackingParams(Q.element,L)):v&&this.U.createClientVe(Q.element,this,v,!0);return Q}T=[{X:"span",S6:"\u00bfSe ve bien?"}];k=g.B([!0,!1]);L=k.next();for(v={};!L.done;v={rR:void 0},L=k.next())v.rR=L.value,L=new g.p({X:"span",J:"ytp-menuitem-inline-survey-response",W:[v.rR?zY5():hYT()],K:{tabindex:"0",role:"button"}}),L.listen("click",function(q){return function(){var Y=l.U.app.Pd();Y.T9("iqsr",{tu:q.rR});Y.getVideoData().OT=!0;l.YB.sG();l.nh()}}(v)),T.push(L); return new g.UQ({X:"div",J:"ytp-menuitem",K:{"aria-disabled":"true"},W:[{X:"div",Rk:["ytp-menuitem-label"],W:T}]},Q)}; g.h.U4=function(T,Q){Q=Q===void 0?!1:Q;if(T==="missing-qualities")return{X:"div",S6:"\u00bfFaltan opciones?"};if(T==="inline-survey")return"";var k=this.B||this.T?[OE6(this,T,Q,!1)]:[t1f(this,T)];var l=this.U.getPreferredQuality();Q||l!=="auto"||T!=="auto"||(k.push(" "),this.T?k.push(OE6(this,this.z9,Q,!0,["ytp-menu-label-secondary"])):this.B?k.push(OE6(this,this.C,Q,!0,["ytp-menu-label-secondary"])):k.push(t1f(this,this.C,["ytp-menu-label-secondary"])));return{X:"div",W:k}};g.S(Ca,Ou);Ca.prototype.L=function(){Ou.prototype.L.call(this);this.D&&pA5(this)}; Ca.prototype.xm=function(){this.z9()}; Ca.prototype.hj=function(){this.U.setPlaybackRate(this.T,!0)}; Ca.prototype.C=function(T){Ou.prototype.C.call(this,T);this.z9();pA5(this);T.preventDefault()};g.S(Bw,g.p);g.h=Bw.prototype;g.h.init=function(){this.ix(this.T);this.updateValue("minvalue",this.S);this.updateValue("maxvalue",this.L)}; g.h.aL=function(T){if(!T.defaultPrevented){switch(T.keyCode){case 37:case 40:var Q=-this.j;break;case 39:case 38:Q=this.j;break;default:return}this.ix(this.T+Q);T.preventDefault()}}; g.h.fL=function(T){var Q=this.T;Q+=(T.deltaX||-T.deltaY)<0?-this.D:this.D;this.ix(Q);T.preventDefault()}; g.h.DJ=function(T){T=(T-g.Vf(this.Y).x)/this.z9*this.range+this.S;this.ix(T)}; g.h.ix=function(T,Q){Q=Q===void 0?"":Q;T=g.ti(T,this.S,this.L);Q===""&&(Q=T.toString());this.updateValue("valuenow",T);this.updateValue("valuetext",Q);this.qO.style.left=(T-this.S)/this.range*(this.z9-this.i9)+"px";this.T=T}; g.h.focus=function(){this.e6.focus()};g.S(zu,Bw);zu.prototype.hj=function(){this.U.setPlaybackRate(this.T,!0)}; zu.prototype.ix=function(T){Bw.prototype.ix.call(this,T,$qf(this,T).toString());this.B&&(WV6(this),this.xm())}; zu.prototype.updateValues=function(){var T=this.U.getPlaybackRate();$qf(this,this.T)!==T&&(this.ix(T),WV6(this))};g.S(Jrt,g.M1);Jrt.prototype.focus=function(){this.T.focus()};g.S(eM6,AO);g.S(Ew5,g.Hp);g.h=Ew5.prototype;g.h.U4=function(T){return T==="1"?"Normal":T.toLocaleString()}; g.h.Aj=function(){var T,Q=(T=this.U.getVideoData())==null?void 0:T.lf();T=this.U.getPresentingPlayerType(Q);this.enable(T!==2&&T!==3);V1f(this)}; g.h.VE=function(T){g.Hp.prototype.VE.call(this,T);this.j&&this.j.S.focus()}; g.h.H0=function(T){g.Hp.prototype.H0.call(this,T);T?(this.qO=this.Z(this.U,"onPlaybackRateChange",this.onPlaybackRateChange),V1f(this),yrg(this,this.U.getPlaybackRate())):(this.J6(this.qO),this.qO=null)}; g.h.onPlaybackRateChange=function(T){var Q=this.U.getPlaybackRate();!this.Y&&this.z9.includes(Q)||iEI(this,Q);yrg(this,T)}; g.h.Lw=function(T,Q,k){return T===this.T&&Q95(this.U)?g.Hp.prototype.Lw.call(this,T,Q,k,{X:"div",J:"ytp-speed-slider-menu-footer",W:[this.j]}):T===this.B&&FVf(this.U)?Trt(this,T,Q,k):g.Hp.prototype.Lw.call(this,T,Q,k)}; g.h.BT=function(T){g.Hp.prototype.BT.call(this,T);T===this.T?this.U.setPlaybackRate(this.C,!0):this.U.setPlaybackRate(Number(T),!0);Q95(this.U)&&T===this.T||this.YB.NN()}; g.h.Yj=function(T){var Q=T===this.T;this.Y=!1;Q&&Xx(this.U)&&!Q95(this.U)?(T=new eM6(this.U),g.Dx(this.YB,T)):g.Hp.prototype.Yj.call(this,T)};g.S(kYC,g.Hp);g.h=kYC.prototype;g.h.U$=function(T){g.Hp.prototype.U$.call(this,T)}; g.h.bB=function(T){return T.option.toString()}; g.h.getOption=function(T){return this.settings[T]}; g.h.U4=function(T){return this.getOption(T).text||""}; g.h.BT=function(T){g.Hp.prototype.BT.call(this,T);this.publish("settingChange",this.setting,this.settings[T].option)};g.S(dU,g.b_);dU.prototype.Wl=function(T){for(var Q=g.B(Object.keys(T)),k=Q.next();!k.done;k=Q.next()){var l=k.value;if(k=this.dT[l]){var v=T[l].toString();l=!!T[l+"Override"];k.options[v]&&(k.U$(v),k.Y.element.setAttribute("aria-checked",String(!l)),k.T.element.setAttribute("aria-checked",String(l)))}}}; dU.prototype.aB=function(T,Q){this.publish("settingChange",T,Q)};g.S(NK,g.Hp);NK.prototype.T=function(T){return T.languageCode}; NK.prototype.U4=function(T){return this.languages[T].languageName||""}; NK.prototype.BT=function(T){this.publish("select",T);this.U.logClick(this.element);g.a4(this.YB)};g.S(vVb,g.Hp);g.h=vVb.prototype;g.h.ph=function(T){return g.Rs(T)?"__off__":T.displayName}; g.h.U4=function(T){return T==="__off__"?"Desactivados":T==="__translate__"?"Traducci\u00f3n autom\u00e1tica":T==="__contribute__"?"Agregar subt\u00edtulos":T==="__correction__"?"Sugerir correcci\u00f3n de subt\u00edtulos":(T==="__off__"?{}:this.tracks[T]).displayName}; g.h.BT=function(T){if(T==="__translate__")this.T.open();else if(T==="__contribute__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var Q=g.ld(this.U.G(),this.U.getVideoData());g.Oe(Q)}else if(T==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var k=Ltt(this);AE(this,k);g.Hp.prototype.BT.call(this,this.ph(k));var l,v;k=(Q=this.U.getVideoData().getPlayerResponse())==null?void 0:(l=Q.captions)==null?void 0:(v=l.playerCaptionsTracklistRenderer)== null?void 0:v.openTranscriptCommand;this.U.tj("innertubeCommand",k);this.YB.NN();this.Y&&this.U.logClick(this.Y)}else{if(T==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();Q=Ltt(this);AE(this,Q);g.Hp.prototype.BT.call(this,this.ph(Q));var L,q;Q=(k=this.U.getVideoData().getPlayerResponse())==null?void 0:(L=k.captions)==null?void 0:(q=L.playerCaptionsTracklistRenderer)==null?void 0:q.openTranscriptCommand;this.U.tj("innertubeCommand",Q)}else this.U.logClick(this.element), AE(this,T==="__off__"?{}:this.tracks[T]),g.Hp.prototype.BT.call(this,T);this.YB.NN()}}; g.h.Aj=function(){var T=this.U.getOptions();T=T&&T.indexOf("captions")!==-1;var Q=this.U.getVideoData(),k=Q&&Q.U2,l,v=!((l=this.U.getVideoData())==null||!g.mK(l));l={};if(T||k){var L;if(T){var q=this.U.getOption("captions","track");l=this.U.getOption("captions","tracklist",{includeAsr:!0});var Y=v?[]:this.U.getOption("captions","translationLanguages");this.tracks=g.yJ(l,this.ph,this);v=g.IQ(l,this.ph);var U,R;Ltt(this)&&((L=Q.getPlayerResponse())==null?0:(U=L.captions)==null?0:(R=U.playerCaptionsTracklistRenderer)== null?0:R.openTranscriptCommand)&&v.push("__correction__");if(Y.length&&!g.Rs(q)){if((L=q.translationLanguage)&&L.languageName){var Z=L.languageName;L=Y.findIndex(function(f){return f.languageName===Z}); b55(Y,L)}lS5(this.T,Y);v.push("__translate__")}L=this.ph(q)}else this.tracks={},v=[],L="__off__";v.unshift("__off__");this.tracks.__off__={};k&&v.unshift("__contribute__");this.tracks[L]||(this.tracks[L]=q,v.push(L));this.VE(v);this.U$(L);q&&q.translationLanguage?this.T.U$(this.T.T(q.translationLanguage)):BU6(this.T);T&&this.B.Wl(this.U.getSubtitlesUserSettings());this.countLabel.qF(l&&l.length?" ("+l.length+")":"");this.publish("size-change");this.U.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.h.Ma=function(T){var Q=this.U.getOption("captions","track");Q=g.Gs(Q);Q.translationLanguage=this.T.languages[T];AE(this,Q)}; g.h.aB=function(T,Q){if(T==="reset")this.U.resetSubtitlesUserSettings();else{var k={};k[T]=Q;this.U.updateSubtitlesUserSettings(k)}oVb(this,!0);this.C.start();this.B.Wl(this.U.getSubtitlesUserSettings())}; g.h.D2d=function(T){T||g.iN(this.C)}; g.h.EK=function(){g.iN(this.C);g.Hp.prototype.EK.call(this)}; g.h.open=function(){g.Hp.prototype.open.call(this);this.options.__correction__&&!this.Y&&(this.Y=this.options.__correction__.element,this.U.createClientVe(this.Y,this,167341),this.U.logVisibility(this.Y,!0))};g.S(qTX,g.cp);g.h=qTX.prototype; g.h.initialize=function(){if(!this.isInitialized){var T=this.U.G();this.isInitialized=!0;try{this.aI=new PJu(this.U,this)}catch(k){g.rB(Error("QualityMenuItem creation failed"))}g.P(this,this.aI);var Q=new vVb(this.U,this);g.P(this,Q);T.L||(Q=new hE(this.U,this),g.P(this,Q));T.enableSpeedOptions&&(Q=new Ew5(this.U,this),g.P(this,Q));(g.Qk(T)||T.B)&&(T.S||T.Jj)&&(Q=new xq5(this.U,this),g.P(this,Q));T.Ah&&!T.V("web_player_move_autonav_toggle")&&(T=new SW(this.U,this),g.P(this,T));T=new sL(this.U,this); g.P(this,T);this.U.publish("settingsMenuInitialized");KVC(this.settingsButton,this.xP.ym())}}; g.h.A6=function(T){this.initialize();this.xP.A6(T);KVC(this.settingsButton,this.xP.ym())}; g.h.y8=function(T){this.Sr&&this.xP.ym()<=1&&this.hide();this.xP.y8(T);KVC(this.settingsButton,this.xP.ym())}; g.h.fA=function(T){this.initialize();this.xP.ym()>0&&g.cp.prototype.fA.call(this,T)}; g.h.sG=function(){this.oU?this.oU=!1:g.cp.prototype.sG.call(this)}; g.h.show=function(){g.cp.prototype.show.call(this);g.oF(this.U.getRootNode(),"ytp-settings-shown")}; g.h.hide=function(){g.cp.prototype.hide.call(this);g.Lb(this.U.getRootNode(),"ytp-settings-shown")}; g.h.H1=function(T){this.U.logVisibility(this.element,T);this.U.publish("settingsMenuVisibilityChanged",T)};g.S(YTf,g.p);g.h=YTf.prototype;g.h.onClick=function(){if(ba(this)&&(this.U.toggleSubtitles(),this.U.logClick(this.element),!this.isEnabled())){var T=!1,Q=g.Py(g.xq(),65);g.Cn(this.U.G())&&Q!=null&&(T=!Q);T&&this.U.G().V("web_player_nitrate_promo_tooltip")&&this.U.publish("showpromotooltip",this.element)}}; g.h.hvd=function(T){var Q,k;(Q=g.aa(this.U))==null||(k=Q.K$())==null||k.fA(T)}; g.h.isEnabled=function(){var T=this.U.getOption("captions","track");return!(!T||!T.displayName)}; g.h.Aj=function(){var T=ba(this),Q=300;this.U.G().C&&(Q=480);this.U.V("delhi_modern_web_player_icons")&&this.updateValue("icon",MiJ(this));if(this.U.G().B){this.updateValue("title",g.pX(this.U,"Subt\u00edtulos","c"));this.update({"tooltip-title":g.pX(this.U,"Subt\u00edtulos","c")});this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var k=T}else{if(T)(k=this.L_("ytp-subtitles-button-icon"))==null||k.setAttribute("fill-opacity","1"),this.U.G().V("player_tooltip_data_title_killswitch")?this.updateValue("title", g.pX(this.U,"Subt\u00edtulos","c")):this.update({"tooltip-title":g.pX(this.U,"Subt\u00edtulos","c")}),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{if(this.U.V("delhi_modern_web_player_icons")){var l;(l=this.L_("ytp-subtitles-button-icon"))==null||l.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var v;(v=this.L_("ytp-subtitles-button-icon"))==null||v.setAttribute("fill-opacity","0.3")}this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"tooltip-title":"Subt\u00edtulos no disponibles"}); this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}k=!0}this.tooltip.wO();k=k&&this.U.Hx().getPlayerSize().width>=Q;this.o_(k);this.U.V("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element,k&&this.N):this.U.logVisibility(this.element,k);T?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.h.vx=function(T){g.p.prototype.vx.call(this,T);this.U.G().V("embeds_use_parent_visibility_in_ve_logging")&&this.U.logVisibility(this.element,this.Sr&&T)};g.S(g.rU,g.p);g.h=g.rU.prototype;g.h.canShowCountdown=function(){return!D4(this)&&!cw(this)}; g.h.bC=function(){var T=this.api.Hx().getPlayerSize().width,Q=this.D;this.api.G().C&&(Q=400);Q=T>=Q&&(!cw(this)||!g.J(this.api.getPlayerStateObject(),64));this.o_(Q);g.gl(this.element,"ytp-time-display-allow-autohide",Q&&T<400);T=this.api.getProgressState();if(Q){var k=this.api.getPresentingPlayerType();Q=this.api.getCurrentTime(k,!1);this.S&&(Q-=T.airingStart);D4(this)&&(Q-=this.VR.startTimeMs/1E3);this.canShowCountdown()&&this.L&&(Q-=this.api.getDuration(k,!1));var l=g.CN(Q);this.Y!==l&&(this.updateValue("currenttime", l),this.Y=l);k=D4(this)?(this.VR.endTimeMs-this.VR.startTimeMs)/1E3:this.api.getDuration(k,!1);l=g.CN(k);this.B!==l&&(this.updateValue("duration",l),this.B=l,Q&&(Q=g.o0("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.CN(Q,!0),DURATION:g.CN(k,!0)}),this.updateValue("timeDisplayAriaLabel",Q)))}UB5(this,T.isAtLiveHead);R4J(this,this.api.getLoopRange())}; g.h.onLoopRangeChange=function(T){var Q=this.VR!==T;this.VR=T;Q&&(this.bC(),ZRy(this))}; g.h.dFq=function(){this.api.setLoopRange(null)}; g.h.WeV=function(){this.L=!this.L;this.bC()}; g.h.onVideoDataChange=function(T,Q,k){this.updateVideoData((this.api.G().V("enable_topsoil_wta_for_halftime")||this.api.G().V("enable_topsoil_wta_for_halftime_live_infra"))&&k===2?this.api.getVideoData(1):Q);this.bC();ZRy(this)}; g.h.updateVideoData=function(T){this.yA=T.isLivePlayback&&!T.zg;this.S=sU(T);this.isPremiere=T.isPremiere;g.gl(this.element,"ytp-live",cw(this));this.api.V("delhi_modern_web_player")&&this.L_("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.h.onClick=function(T){T.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.h.EK=function(){this.T&&this.T();g.p.prototype.EK.call(this)};g.S(GYH,g.p);g.h=GYH.prototype;g.h.pH=function(){var T=this.api.jj();this.L!==T&&(this.L=T,fSH(this,this.api.getVolume(),this.api.isMuted()))}; g.h.IW=function(T){this.o_(T.width>=350)}; g.h.zi=function(T){if(!T.defaultPrevented){var Q=T.keyCode,k=null;Q===37?k=this.volume-5:Q===39?k=this.volume+5:Q===36?k=0:Q===35&&(k=100);k!==null&&(k=g.ti(k,0,100),k===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(k)),T.preventDefault())}}; g.h.Hj=function(T){var Q=T.deltaX||-T.deltaY;T.deltaMode?this.api.setVolume(this.volume+(Q<0?-10:10)):this.api.setVolume(this.volume+g.ti(Q/10,-10,10));T.preventDefault()}; g.h.yhj=function(){aC(this,this.T,!0,this.S,this.api.uS());this.D=this.volume;this.api.isMuted()&&this.api.unMute()}; g.h.yz=function(T){var Q=this.L?78:52,k=this.L?18:12;T-=g.Vf(this.j).x;this.api.setVolume(g.ti((T-k/2)/(Q-k),0,1)*100)}; g.h.HY9=function(){aC(this,this.T,!1,this.S,this.api.uS());this.volume===0&&(this.api.mute(),this.api.setVolume(this.D))}; g.h.onVolumeChange=function(T){fSH(this,T.volume,T.muted)}; g.h.M7=function(){aC(this,this.T,this.isDragging,this.S,this.api.uS())}; g.h.EK=function(){g.p.prototype.EK.call(this);g.Lb(this.C,"ytp-volume-slider-active")};g.S(ua,g.p); ua.prototype.onVideoDataChange=function(){var T=this.api.G();this.zx();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).hh;this.o_(this.visible);this.api.logVisibility(this.element,this.visible&&this.N);if(this.visible){var Q=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",Q)}T.L&&(this.T&&(this.J6(this.T),this.T=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.oF(this.element,"no-link")); Q=this.api.G();T=this.api.getVideoData();var k="";Q.L||(Q=g.mq(Q),Q.indexOf("www.")===0&&(Q=Q.substring(4)),k=g.S$(T)?"Mirar en YouTube Music":Q==="youtube.com"?"Mirar en YouTube":g.o0("Mirar en $WEBSITE",{WEBSITE:Q}));this.api.V("player_tooltip_data_title_killswitch")?this.updateValue("title",k):this.updateValue("tooltip-title",k)}; ua.prototype.onClick=function(T){this.api.V("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var Q=this.api.G(),k=this.api.getVideoUrl(!g.B8(T),!1,!0,!0);if(g.Qk(Q)){var l={};g.Qk(Q)&&g.Ay(this.api,"addEmbedsConversionTrackingParams",[l]);k=g.sD(k,l)}g.dh(k,this.api,T);this.api.V("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; ua.prototype.zx=function(){var T={X:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},W:[{X:"path",kc:!0,J:"ytp-svg-fill",K:{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 "}}]}, Q=28666,k=this.api.getVideoData();this.api.isEmbedsShortsMode()?T={X:"svg",K:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},W:[{X:"path",K:{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.S$(k)&&(T={X:"svg",K:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},W:[{X:"path",K:{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"}},{X:"path",K:{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"}},{X:"path",K:{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"}},{X:"path",K:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{X:"path",K:{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"}},{X:"path",K:{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"}},{X:"path",K:{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"}},{X:"path",K:{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"}},{X:"path",K:{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"}},{X:"path",K:{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"}},{X:"path",K:{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"}},{X:"path",K:{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"}}]},Q=216163);g.S$(k)?g.oF(this.element,"ytp-youtube-music-button"):g.Lb(this.element,"ytp-youtube-music-button");T.K=Object.assign({},T.K,{"aria-hidden":"true"});this.updateValue("logoSvg",T);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,Q,!0)}; ua.prototype.vx=function(T){g.p.prototype.vx.call(this,T);this.api.logVisibility(this.element,this.visible&&T)};g.S(h4C,g.Bj);g.h=h4C.prototype;g.h.M_=function(){if(this.U.V("web_player_max_seekable_on_ended")||!g.J(this.U.getPlayerStateObject(),2))this.progressBar.bC(),this.e6.bC()}; g.h.Dl=function(){this.G3();this.Ci.S?this.M_():this.progressBar.Zb()}; g.h.q$=function(){this.M_();this.D.start()}; g.h.G3=function(){var T;if(T=!this.U.G().S){T=this.progressBar;var Q=2*g.SF()*T.B,k=T.L;T=(k.T-k.S)*1E3/T.api.getPlaybackRate()/Q<300}T=T&&this.U.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;Q=!T;this.Ci.S||(T=Q=!1);Q?this.hj||(this.hj=this.Z(this.U,"progresssync",this.M_)):this.hj&&(this.J6(this.hj),this.hj=null);T?this.D.isActive()||this.D.start():this.D.stop()}; g.h.zx=function(){var T=this.U.jj(),Q=this.U.Hx().getPlayerSize(),k=this.U.Hx().kU,l=ST6(this),v=CmJ(this),L=Math.max(Q.width-l*2,100);if(this.QR!==Q.width||this.Tg!==T||this.U.V("web_player_rtr_ctrls")&&this.YI!==k)this.QR=Q.width,this.Tg=T,this.YI=k,this.S.element.style.width=v+"px",this.S.element.style.left=l+"px",g.DqI(this.progressBar,l,v,T),this.U.aK().kN=v;k=this.Y;L=Math.min(570*(T?1.5:1),L);T=Math.min(413*(T?1.5:1),Math.round((Q.height-Brg(this))*.82));k.maxWidth=L;k.maxHeight=T;k.yd();this.G3(); this.h3&&I6T(this.zg,Q.height)}; g.h.onVideoDataChange=function(){var T=this.U.getVideoData();this.p_.style.background=T.hh?T.v5:"";this.qO&&X$b(this.qO,T.showSeekingControls);this.z9&&X$b(this.z9,T.showSeekingControls)}; g.h.xB=function(){return this.S.element};g.S(z4t,N4);g.h=z4t.prototype;g.h.nO=function(T){T.target!==this.dismissButton.element&&(this.onClickCommand&&this.U.tj("innertubeCommand",this.onClickCommand),this.Np())}; g.h.Np=function(){this.enabled=!1;this.D.hide()}; g.h.onVideoDataChange=function(T,Q){T==="dataloaded"&&XsJ(this);T=[];var k,l,v,L;if(Q=(L=g.t((k=Q.getWatchNextResponse())==null?void 0:(l=k.playerOverlays)==null?void 0:(v=l.playerOverlayRenderer)==null?void 0:v.suggestedActionsRenderer,G8d))==null?void 0:L.suggestedActions)for(k=g.B(Q),l=k.next();!l.done;l=k.next())(l=g.t(l.value,mXv))&&g.t(l.trigger,fM1)&&T.push(l);if(T.length!==0){k=[];T=g.B(T);for(l=T.next();!l.done;l=T.next())if(l=l.value,v=g.t(l.trigger,fM1))L=(L=l.title)?g.Rx(L):"View Chapters", Q=v.timeRangeStartMillis,v=v.timeRangeEndMillis,Q!=null&&v!=null&&l.tapCommand&&(k.push(new g.$d(Q,v,{priority:9,namespace:"suggested_action_button_visible",id:L})),this.suggestedActions[L]=l.tapCommand);this.U.fY(k)}}; g.h.Hs=function(){return this.enabled}; g.h.H1=function(){this.enabled?this.sK.start():wW(this);this.FE()}; g.h.EK=function(){XsJ(this);N4.prototype.EK.call(this)};var Ne={},x$=(Ne.CHANNEL_NAME="ytp-title-channel-name",Ne.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",Ne.LINK="ytp-title-link",Ne.SESSIONLINK="yt-uix-sessionlink",Ne.SUBTEXT="ytp-title-subtext",Ne.TEXT="ytp-title-text",Ne.TITLE="ytp-title",Ne);g.S(Pw,g.p);Pw.prototype.onClick=function(T){this.api.logClick(this.element);var Q=this.api.G(),k=this.api.getVideoUrl(!g.B8(T),!1,!0);g.Qk(Q)&&(Q={},g.Ay(this.api,"addEmbedsConversionTrackingParams",[Q]),k=g.sD(k,Q));g.dh(k,this.api,T)}; Pw.prototype.Aj=function(){var T=this.api.getVideoData(),Q=this.api.G();this.updateValue("title",T.title);var k={X:"a",J:x$.CHANNEL_NAME,K:{href:"{{channelLink}}",target:"_blank"},S6:"{{channelName}}"};this.api.G().L&&(k={X:"span",J:x$.CHANNEL_NAME,S6:"{{channelName}}",K:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",k);ws5(this);this.api.getPresentingPlayerType()===2&&(k=this.api.getVideoData(),k.videoId&&k.isListed&&k.author&&k.Tg&&k.profilePicture?(this.updateValue("channelLink", k.Tg),this.updateValue("channelName",k.author),this.updateValue("channelTitleFocusable","0")):ws5(this));k=Q.externalFullscreen||!this.api.isFullscreen()&&Q.QE;g.gl(this.link,x$.FULLERSCREEN_LINK,k);Q.qO||!T.videoId||k||T.hh||Q.L?this.T&&(this.updateValue("url",null),this.J6(this.T),this.T=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.T||(this.T=this.Z(this.link,"click",this.onClick)));Q.L&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.Qk(Q)?T.expandedTitle: T.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.S(g.Hw,g.p);g.h=g.Hw.prototype;g.h.setEnabled=function(T){if(this.type!=null)if(T)switch(this.type){case 3:case 2:tE(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.C=T}; g.h.iM=function(T,Q,k,l,v,L,q,Y){if(!this.xm||this.env.C){this.type===3&&this.Zb();this.type!==1&&(g.kh(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.C&&this.fade.show(),this.S&&this.S.dispose(),(this.S=this.api.l7())&&this.S.subscribe("l",this.OD,this));if(Y){var U=g.jC(this.bg).height||141;this.i9.style.bottom=U+2+"px"}else this.i9.style.display="none";this.env.V("delhi_modern_web_player")?(this.update({pillTimeStamp:k,pillTitle:L!=null?L:"",eduText:Y!=null?Y:""}),g.oF(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:k,title:L!=null?L:"",eduText:Y!=null?Y:""}),g.gl(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!L));this.api.isInline()&&g.oF(this.bottomText,"ytp-modern-tooltip-text");g.gl(this.element,"ytp-text-detail",!!l);k=-1;this.S&&(k=g4(this.S,243*this.scale),this.env.V("web_l3_storyboard")&&this.S.levels.length===4&&(k=this.S.levels.length-1),k=oNJ(this.S,k,Q));bRt(this,k);if(q)switch(Q=g.jC(this.element).width,q){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=Q+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=Q/2+"px",this.title.style.textAlign="center"}AvC(this,!!l,T,v)}}; g.h.Ce=function(){this.type===1&&this.Zb()}; g.h.hA=function(T,Q){if(this.type)if(this.type===3)this.Zb();else return;dBg(this,T,3,Q)}; g.h.wO=function(){this.T&&!this.j&&(this.env.V("player_tooltip_data_title_killswitch")?this.T.hasAttribute("title")&&(this.L=this.T.getAttribute("title")||"",this.T.removeAttribute("title"),this.C&&tE(this)):this.T.hasAttribute("data-tooltip-title")&&(this.L=this.T.getAttribute("data-tooltip-title")||"",this.T.removeAttribute("data-tooltip-title"),this.C&&tE(this)))}; g.h.OD=function(T,Q){T<=this.Y&&this.Y<=Q&&(T=this.Y,this.Y=NaN,bRt(this,T))}; g.h.ZU=function(){kT5(this.S,this.Y,243*this.scale)}; g.h.Zb=function(){switch(this.type){case 2:var T=this.T;T.removeEventListener("mouseout",this.D);T.addEventListener("mouseover",this.B);T.removeEventListener("blur",this.D);T.addEventListener("focus",this.B);rvg(this);break;case 3:rvg(this);break;case 1:this.S&&(this.S.unsubscribe("l",this.OD,this),this.S=null),this.api.removeEventListener("videoready",this.z9),this.qO.stop()}this.type=null;this.C&&this.fade.hide()}; g.h.Vb=function(){if(this.T)for(var T=0;T=0;Q--)if(this.Um[Q]===T){this.Um.splice(Q,1);break}pk(this.Ci,64,this.Um.length>0)}; g.h.K4=function(){this.api.Vw()&&this.api.Kt();return!!this.PM||xBg(this)||g.Q7.prototype.K4.call(this)}; g.h.Y4=function(){var T=!this.K4(),Q=T&&this.api.Vw()&&!g.J(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().hh&&!this.api.G().L&&!this.api.isEmbedsShortsMode(),k=this.nS&&g.FZ(this.api)&&g.J(this.api.getPlayerStateObject(),128);T||k?(this.VY.show(),this.wK.show()):(this.VY.hide(),this.wK.hide(),this.api.Vb(this.O$.element));Q?this.cT.fA():this.cT.sG();this.zw&&s9I(this.zw,this.BtO||!T);this.api.V("web_player_hide_overflow_button_if_empty_menu")&&Pmf(this);g.Q7.prototype.Y4.call(this)}; g.h.MG=function(T,Q,k,l,v){T.style.left="";T.style.top="";T.style.bottom="";var L=g.jC(T),q=l||this.zw&&g.SO(this.zw.xB(),Q),Y=l=null;k!=null&&q||(l=g.jC(Q),Y=g.To(Q,this.api.getRootNode()),k==null&&(k=Y.x+l.width/2));k-=L.width/2;q?(Q=this.zw,l=ST6(Q),Y=CmJ(Q),q=this.api.Hx().getPlayerSize().height,k=g.ti(k,l,l+Y-L.width),L=q-Brg(Q)-L.height):g.SO(this.O$.element,Q)?(Q=this.api.Hx().getPlayerSize().width,k=g.ti(k,12,Q-L.width-12),L=this.jj()?this.R5:this.UQ,this.api.G().playerStyle==="gvn"&&(L+= 20),this.nS&&(L-=this.jj()?26:18)):(Q=this.api.Hx().getPlayerSize(),k=g.ti(k,12,Q.width-L.width-12),L=Y.y>(Q.height-l.height)/2?Y.y-L.height-12:Y.y+l.height+12);T.style.top=L+(v||0)+"px";T.style.left=k+"px"}; g.h.Dl=function(T){T&&(this.api.Vb(this.O$.element),this.zw&&this.api.Vb(this.zw.xB()));this.A4&&(g.gl(this.contextMenu.element,"ytp-autohide",T),g.gl(this.contextMenu.element,"ytp-autohide-active",!0));g.Q7.prototype.Dl.call(this,T)}; g.h.pN=function(){g.Q7.prototype.pN.call(this);this.A4&&(g.gl(this.contextMenu.element,"ytp-autohide-active",!1),this.A4&&(this.contextMenu.hide(),this.nz&&this.nz.hide()))}; g.h.IM=function(T,Q){var k=this.api.Hx().getPlayerSize();k=new g.tZ(0,0,k.width,k.height);if(T||this.Ci.S&&!this.K4()){if(this.api.G().UY||Q)T=this.jj()?this.R5:this.UQ,k.top+=T,k.height-=T;this.zw&&(k.height-=Brg(this.zw))}return k}; g.h.pH=function(T){var Q=this.api.getRootNode();T?Q.parentElement?(Q.setAttribute("aria-label","Reproductor de video de YouTube en pantalla completa"),this.api.G().externalFullscreen||(Q.parentElement.insertBefore(this.cU.element,Q),Q.parentElement.insertBefore(this.Ss.element,Q.nextSibling))):g.bA(Error("Player not in DOM.")):(Q.setAttribute("aria-label","Reproductor de video de YouTube"),this.cU.detach(),this.Ss.detach());this.zx();this.q3()}; g.h.jj=function(){if(this.api.V("web_player_use_screen_width_for_big_mode")){var T;return this.api.Hx().getPlayerSize().width>=((T=g.jj(this.api.G().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?T:2E3)}T=this.api.G();return this.api.isFullscreen()&&!T.C||!1}; g.h.showControls=function(T){this.ZI=!T;this.Y4()}; g.h.zx=function(){var T=this.jj();this.tooltip.scale=T?1.5:1;this.contextMenu&&g.gl(this.contextMenu.element,"ytp-big-mode",T);this.Y4();this.api.V("web_player_hide_overflow_button_if_empty_menu")||Pmf(this);this.q3();var Q=this.api.isEmbedsShortsMode();Q&&T?(T=(this.api.Hx().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.W2(this.O$.element,"padding-left",T+"px"),g.W2(this.O$.element,"padding-right",T+"px")):Q&&(g.W2(this.O$.element,"padding-left",""),g.W2(this.O$.element,"padding-right", ""));g.Q7.prototype.zx.call(this)}; g.h.Wa=function(){if(xBg(this)&&!g.FZ(this.api))return!1;var T=this.api.getVideoData();return!g.Qk(this.api.G())||this.api.getPresentingPlayerType()===2||!this.MV||((T=this.MV||T.MV)?(T=T.embedPreview)?(T=T.thumbnailPreviewRenderer,T=T.videoDetails&&g.t(T.videoDetails,H1I)||null):T=null:T=null,T&&T.collapsedRenderer&&T.expandedRenderer)?g.Q7.prototype.Wa.call(this):!1}; g.h.q3=function(){g.Q7.prototype.q3.call(this);this.api.logVisibility(this.title.element,!!this.Dr);this.aA&&this.aA.vx(!!this.Dr);this.channelAvatar.vx(!!this.Dr);this.overflowButton&&this.overflowButton.vx(this.tb()&&!!this.Dr);this.shareButton&&this.shareButton.vx(!this.tb()&&!!this.Dr);this.wy&&this.wy.vx(!this.tb()&&!!this.Dr);this.searchButton&&this.searchButton.vx(!this.tb()&&!!this.Dr);this.copyLinkButton&&this.copyLinkButton.vx(!this.tb()&&!!this.Dr);if(!this.Dr){this.api.Vb(this.O$.element); for(var T=0;T5&&Q.T9("glrs",{cmt:k});Q.seekTo(0,{seekSource:58});Q.T9("glrre",{cmt:k})}}; Ww.prototype.EK=function(){this.T=null;g.x.prototype.EK.call(this)};g.S(g.$$,ml);g.h=g.$$.prototype;g.h.isView=function(){return!0}; g.h.h2=function(){var T=this.mediaElement.getCurrentTime();if(T1;y4(T.LG(),l-.01)&&!v&&(eW(this,4),k.isActive=!1,k.tA=k.tA||k.isActive,(this.N===1?this.T:this.S).T9("sbh",{}),Q.isActive=!0,Q.tA=Q.tA||Q.isActive,this.N!==0&&(this.T.getVideoData().Uf=!0));T=this.Y.S;if(this.Y.T.isActive&&T.isActive&&(eW(this,5),this.N!==0)){T=this.S.My();k=this.T.My(); this.T.T9("sbs",{citag:k==null?void 0:k.itag,nitag:T==null?void 0:T.itag});this.S.T9("gitags",{pitag:k==null?void 0:k.itag,citag:T==null?void 0:T.itag});var L;(L=this.S)==null||L.VL()}}}; g.h.fI=function(){this.pS()&&this.XG("player-reload-after-handoff")}; g.h.XG=function(T,Q){Q=Q===void 0?{}:Q;if(!this.wd()&&this.status.status!==6){var k=this.status.status>=4&&T!=="player-reload-after-handoff";this.status={status:Infinity,error:T};if(this.T&&this.S){var l=this.S.getVideoData().clientPlaybackNonce;this.T.RK(new g.ZK("dai.transitionfailure",Object.assign(Q,{cpn:l,transitionTimeMs:this.kz,msg:T})));this.T.pX(k)}this.O_.reject(T);this.dispose()}}; g.h.pS=function(){return this.status.status>=4&&this.status.status<6}; g.h.EK=function(){iRT(this);this.T.unsubscribe("newelementrequired",this.fI,this);if(this.L){var T=this.L.S;this.L.T.kM.unsubscribe("updateend",this.pR,this);T.kM.unsubscribe("updateend",this.pR,this)}g.x.prototype.EK.call(this)}; g.h.FT=function(T){g.RY(T,128)&&this.XG("player-error-event")};g.S(Fx,g.x);Fx.prototype.clearQueue=function(T,Q){T=T===void 0?!1:T;Q=Q===void 0?!1:Q;this.Y&&this.Y.reject("Queue cleared");this.app.G().V("html5_gapless_fallback_on_qoe_restart_v2")||Q&&this.S&&this.S.pX(!1);EL(this,T)}; Fx.prototype.jZ=function(){return!this.T}; Fx.prototype.pS=function(){var T;return((T=this.L)==null?void 0:T.pS())||!1}; Fx.prototype.EK=function(){EL(this);g.x.prototype.EK.call(this)};g.S(vI5,g.ox);g.h=vI5.prototype;g.h.getVisibilityState=function(T,Q,k,l,v,L,q,Y){return T?4:L75()?3:Q?2:k?1:l?5:v?7:L?8:q?9:Y?10:0}; g.h.gA=function(T){this.fullscreen!==T&&(this.fullscreen=T,this.H1())}; g.h.setMinimized=function(T){this.S!==T&&(this.S=T,this.H1())}; g.h.setInline=function(T){this.inline!==T&&(this.inline=T,this.H1())}; g.h.DN=function(T){this.pictureInPicture!==T&&(this.pictureInPicture=T,this.H1())}; g.h.setSqueezeback=function(T){this.L!==T&&(this.L=T,this.H1())}; g.h.bz=function(T){this.Y!==T&&(this.Y=T,this.H1())}; g.h.Ax=function(){return this.T}; g.h.m_=function(){return this.fullscreen!==0}; g.h.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.h.XS=function(){return this.fullscreen}; g.h.isMinimized=function(){return this.S}; g.h.isInline=function(){return this.inline}; g.h.isBackground=function(){return L75()}; g.h.x$=function(){return this.pictureInPicture}; g.h.Uj=function(){return!1}; g.h.CM=function(){return this.L}; g.h.zs=function(){return this.Y}; g.h.H1=function(){this.publish("visibilitychange");var T=this.getVisibilityState(this.Ax(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.x$(),this.Uj(),this.CM(),this.zs());T!==this.B&&this.publish("visibilitystatechange");this.B=T}; g.h.EK=function(){M2X(this.N);g.ox.prototype.EK.call(this)};g.S(g.yg,g.x);g.h=g.yg.prototype;g.h.EK=function(){this.videoData=this.playerState=null;g.x.prototype.EK.call(this)}; g.h.addCueRange=function(){}; g.h.cB=function(){}; g.h.lG=function(){}; g.h.dZ=function(){return!1}; g.h.Lf=function(){return!1}; g.h.wZ=function(){}; g.h.XW=function(){}; g.h.CX=function(){return[]}; g.h.jK=function(){}; g.h.getAudioTrack=function(){return this.getVideoData().FU}; g.h.IN=function(){return null}; g.h.getAvailableAudioTracks=function(){return[]}; g.h.G6=function(){return[]}; g.h.Cy=function(){return[]}; g.h.pB=function(){return""}; g.h.TP=function(){return[]}; g.h.P0=function(){}; g.h.Jb=function(){return 0}; g.h.getCurrentTime=function(){return 0}; g.h.nw=function(){}; g.h.My=function(){}; g.h.Tx=function(){return{}}; g.h.getDuration=function(){return 0}; g.h.u8=function(){return 0}; g.h.xM=function(){return 0}; g.h.pk=function(){return!1}; g.h.As=function(){return 0}; g.h.bS=function(){return 0}; g.h.uy=T5(7);g.h.jO=function(){return 0}; g.h.t_=function(){return!1}; g.h.WG=function(){return 0}; g.h.T_=function(){return null}; g.h.JH=function(){return null}; g.h.SY=function(){return 0}; g.h.r_=function(){return 0}; g.h.s$=function(){return g.a(function(T){g.BT(T)})}; g.h.qA=T5(15);g.h.getPlaybackQuality=function(){return"auto"}; g.h.getPlaybackRate=function(){return 1}; g.h.getPlayerState=function(){this.playerState||(this.playerState=new g.Cd);return this.playerState}; g.h.getPlayerType=function(){return 0}; g.h.getPlaylistSequenceForTime=function(){return null}; g.h.Cd=function(){return function(){}}; g.h.WH=function(){return""}; g.h.getPreferredQuality=function(){return"unknown"}; g.h.J5=function(){}; g.h.getProximaLatencyPreference=function(){return 0}; g.h.Tv=function(){return GV}; g.h.l7=function(){return null}; g.h.getStoryboardFormat=function(){return null}; g.h.getStreamTimeOffset=function(){return 0}; g.h.TG=function(){return 0}; g.h.Px=function(){return 0}; g.h.yH=function(){return{I6:[],hS:[],currentTime:0,vM:"",droppedVideoFrames:0,isGapless:!1,jZ:!0,lA:0,K0:0,Gr:0,n0:0,uj:0,f0:[],ea:[],N6:null,playerState:this.getPlayerState(),Z7:null,mw:"",totalVideoFrames:0}}; g.h.getUserAudio51Preference=function(){return 0}; g.h.getUserPlaybackQualityPreference=function(){return""}; g.h.getVideoData=function(){this.videoData||(this.videoData=new g.mR(this.Hd),g.P(this,this.videoData));return this.videoData}; g.h.Le=function(){return null}; g.h.I9=function(){return null}; g.h.Dg=function(){}; g.h.getVideoLoadedFraction=function(){return 0}; g.h.Ky=function(){}; g.h.handleError=function(){}; g.h.pX=function(){}; g.h.xk=function(){}; g.h.o0=T5(40);g.h.Pc=function(){return!1}; g.h.hasSupportedAudio51Tracks=function(){return!1}; g.h.ME=function(){return!1}; g.h.Ax=function(){return!1}; g.h.isAtLiveHead=function(){return!1}; g.h.qG=function(){return!0}; g.h.isGapless=function(){return!1}; g.h.isHdr=function(){return!1}; g.h.a9=function(){return!1}; g.h.qW=function(){return!1}; g.h.NC=function(){return!1}; g.h.isProximaLatencyEligible=function(){return!1}; g.h.jZ=function(){return!0}; g.h.wm=function(){return!1}; g.h.hX=function(){return!1}; g.h.qr=function(){}; g.h.NG=function(){}; g.h.VL=function(){}; g.h.RQ=function(){}; g.h.KO=function(){}; g.h.KJ=function(){}; g.h.GA=function(){}; g.h.aM=T5(50);g.h.RD=T5(21);g.h.aO=function(){}; g.h.pauseVideo=function(){}; g.h.prefetchKeyPlay=function(){}; g.h.playVideo=function(){return g.a(function(T){return T.return()})}; g.h.Xx=function(){}; g.h.h9=T5(27);g.h.Lz=T5(33);g.h.N8=function(){}; g.h.T9=function(){}; g.h.qm=function(){}; g.h.Gh=function(){}; g.h.PJ=function(){}; g.h.RK=function(){}; g.h.r6=function(){}; g.h.JU=function(){}; g.h.sz=function(){}; g.h.M6=function(){}; g.h.Zm=function(){}; g.h.T0=function(){}; g.h.removeCueRange=function(){}; g.h.Ec=function(){}; g.h.uf=function(){return[]}; g.h.I0=function(){}; g.h.u7=function(){}; g.h.d9=function(){}; g.h.EZ=function(){}; g.h.tU=function(){}; g.h.R3=function(){}; g.h.seekTo=function(){}; g.h.sendAbandonmentPing=function(){}; g.h.sendVideoStatsEngageEvent=function(){}; g.h.fn=function(){}; g.h.setLoop=function(){}; g.h.gK=function(){}; g.h.setMediaElement=function(){}; g.h.lz=function(){}; g.h.setPlaybackRate=function(){}; g.h.NL=function(){}; g.h.aQ=function(){}; g.h.Ju=function(){}; g.h.setProximaLatencyPreference=function(){}; g.h.ZF=function(){}; g.h.AJ=function(){}; g.h.JY=function(){}; g.h.Ij=function(){}; g.h.E7=function(){}; g.h.setUserAudio51Preference=function(){}; g.h.TU=function(){}; g.h.e1=function(){return!1}; g.h.YU=function(){}; g.h.EY=function(){return!1}; g.h.I3=function(){}; g.h.Pw=function(){}; g.h.n4=function(){}; g.h.stopVideo=function(){}; g.h.subscribe=function(){return NaN}; g.h.L7=function(){}; g.h.togglePictureInPicture=function(){}; g.h.E2=function(){return 0}; g.h.unsubscribe=function(){return!1}; g.h.L5=function(){}; g.h.lx=function(){return!1}; g.h.zE=function(){}; g.h.jS=function(){}; g.h.yV=function(){};g.S(Tt,g.x);g.h=Tt.prototype;g.h.get=function(T){ia(this);var Q=this.data.find(function(k){return k.key===T}); return Q?Q.value:null}; g.h.set=function(T,Q,k){this.remove(T,!0);ia(this);T={key:T,value:Q,expire:Infinity};k&&isFinite(k)&&(k*=1E3,T.expire=(0,g.XY)()+k);for(this.data.push(T);this.data.length>this.L;)(k=this.data.shift())&&QQ(this,k,!0);Vg(this)}; g.h.remove=function(T,Q){Q=Q===void 0?!1:Q;var k=this.data.find(function(l){return l.key===T}); k&&(QQ(this,k,Q),g.AT(this.data,function(l){return l.key===T}),Vg(this))}; g.h.removeAll=function(T){if(T=T===void 0?!1:T)for(var Q=g.B(this.data),k=Q.next();!k.done;k=Q.next())QQ(this,k.value,T);this.data=[];Vg(this)}; g.h.EK=function(){var T=this;g.x.prototype.EK.call(this);this.data.forEach(function(Q){QQ(T,Q,!0)}); this.data=[]};g.S(g.j5,g.x);g.h=g.j5.prototype;g.h.EK=function(){for(var T=g.B(Object.values(this.L)),Q=T.next();!Q.done;Q=T.next())Q.value.dispose();LFJ(this);this.T.dispose();g.x.prototype.EK.call(this)}; g.h.jD=function(T){return T?T===1?this.j:this.S.getVideoData().enableServerStitchedDai&&T===2?this.S.getVideoData().IS?this.L[2]||this.S:this.S:this.L[T]||null:this.S}; g.h.pA=function(T){var Q=T.cpn;T=T.playerType;if(Q)a:{T=g.B(Object.values(this.L));for(var k=T.next();!k.done;k=T.next())if(k=k.value,k.pB()===Q){Q=k;break a}Q=this.B[Q]||null}else Q=T?this.jD(T):this.S;return Q}; g.h.Lc=function(){return this.j}; g.h.zj=function(T){this.j=T}; g.h.Pd=function(){return this.S}; g.h.l$=function(T){this.S=T;k7(this)}; g.h.zU=T5(46);g.h.JO=T5(48);g.S(GGy,g.vR);g.h=GGy.prototype;g.h.Zh=function(){}; g.h.pB=function(){return this.videoData.clientPlaybackNonce}; g.h.getVideoData=function(){if(g.vR.prototype.getVideoData.call(this).V("html5_huli_ssdai_use_playback_state")){var T=PTy(this.Gx,g.vR.prototype.getCurrentTime.call(this))||g.vR.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==T.clientPlaybackNonce&&mO5(this.S,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:T.clientPlaybackNonce});return this.videoData}return PTy(this.Gx,g.vR.prototype.getCurrentTime.call(this))||g.vR.prototype.getVideoData.call(this)}; g.h.getCurrentTime=function(T){var Q=g.vR.prototype.getCurrentTime.call(this);if(g.vR.prototype.getVideoData.call(this).V("html5_huli_ssdai_use_playback_state")){this.T===0?T||(Q-=this.startTimeSecs):T&&(Q=this.T);var k=T?this.Gx.Al||g.vR.prototype.getCurrentTime.call(this):uiC(this.Gx,g.vR.prototype.getCurrentTime.call(this));Q!==k&&mO5(this.S,"time"+(T!=null?T:!1),{time:Q,ref:k,ct:T!=null?T:!1})}else Q=T?this.Gx.Al||Q:uiC(this.Gx,Q);return Q}; g.h.getDuration=function(){if(g.vR.prototype.getVideoData.call(this).V("html5_huli_ssdai_use_playback_state")){var T=KF6(this.Gx,g.vR.prototype.getCurrentTime.call(this));this.duration!==T&&mO5(this.S,"duration",{dur:this.duration,ref:T});return this.duration}return KF6(this.Gx,g.vR.prototype.getCurrentTime.call(this))}; g.h.SR=function(T){this.duration=T};g.og.prototype.H$=function(T,Q){if(Q===1)return this.T.get(T);if(Q===2)return this.L.get(T);if(Q===3)return this.S.get(T)}; g.og.prototype.F0=T5(58);g.og.prototype.zQ=function(T,Q,k,l){k={e2:l,gN:k};Q?this.L.set(T,k):this.T.set(T,k)}; g.og.prototype.clearAll=function(){this.T.clear();this.L.clear();this.S.clear()}; hTX.prototype.clear=function(){this.T=[];this.L.clear();this.Y.clear();this.S.clear()}; hTX.prototype.pA=function(T){var Q=T.cpn;T=T.lC;if(Q&&(Q=this.L.get(Q))||T&&(Q=(this.N?this.L:this.Y).get(T)))return Q}; g.S(g.v5,g.x);g.h=g.v5.prototype;g.h.onCueRangeEnter=function(T){var Q=T.getId();this.Fs({oncueEnter:1,cpn:Q,start:T.start,end:T.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Jb()||0).toFixed(3)});var k=this.T.pA({cpn:Q});this.Fs({enterAdCueRange:1});var l=this.Tb||this.eP().cpn,v;l=(v=this.T.pA({cpn:l}))!=null?v:this.eP();k&&(v=this.playback.getCurrentTime(),k.startTimeSecs=T.start/1E3,k={Y9:l,QC:k,Lm:v},vUH(this,Q,T.start/1E3,v),oUC(this,k))}; g.h.PB=function(T,Q){if(T===this.playback.pB())lG(this.app.vG(),this.playback,!1);else{var k=this.i9.get(T);k?(k.T=0,k.startTimeSecs=Q,lG(this.app.vG(),k,!0)):this.Fs({nop_s:T})}}; g.h.onCueRangeExit=function(T){for(var Q=this.playback.getCurrentTime()*1E3,k=T.getId(),l=g.B(this.S.values()),v=l.next();!v.done;v=l.next())if(v=v.value,v.getId()!==k&&Q>=v.start&&Q<=v.end)return;if(k=this.T.pA({cpn:k}))Q=this.playback.getCurrentTime(),l=this.eP(),l.startTimeSecs=T.end/1E3,k={Y9:k,QC:l,Lm:Q},vUH(this,this.playback.pB(),T.end/1E3,Q),oUC(this,k)}; g.h.eP=function(){return{cpn:this.playback.pB(),durationMs:0,R_:0,playerType:1,X_:0,videoData:this.playback.getVideoData(),errorCount:0,RB:""}}; g.h.seekTo=function(T,Q,k,l){T=T===void 0?0:T;Q=Q===void 0?{}:Q;k=k===void 0?!1:k;l=l===void 0?null:l;U0(this,this.Tb);if(this.playback.getVideoData().lf()&&T<=this.Al)this.playback.pauseVideo(),this.Al=0,Lif(this,T);else if(this.z9=!0,k)XKb(this,T,Q);else{k=this.app.Pd();var v=k===this.xm?this.K_:null;Md(this,!1);this.Tg=T;this.zg=Q;l!=null&&this.f_.start(l);k&&(this.K_=v||k.getPlayerState(),k.n4(Q),this.xm=k)}}; g.h.EK=function(){Md(this,!1);OUg(this);pK6(this);g.x.prototype.EK.call(this)}; g.h.WW=function(T){this.QR=T;this.Fs({swebm:T})}; g.h.Pg=function(T,Q,k){if(k&&Q){var l=this.N.get(T);if(l){l.locations||(l.locations=new Map);var v=Number(Q.split(";")[0]);k=new g.J_(k);this.Fs({hdlredir:1,itag:Q,seg:T,hostport:FQ(k)});l.locations.set(v,k)}}}; g.h.QZ=function(T,Q,k,l,v,L){var q=l===3,Y=Jby(this,T,Q,l,k,L);if(!Y){Y7(this,Q,q);var U=g.WFX(this,Q)?"undec":"ncp";this.Fs({gvprp:U,mt:T,seg:Q,tt:l,itag:k,ce:L});return null}q||this.N.set(Q,Y);L=Y.RB;var R;l=((R=this.H$(Q-1,l,v))==null?void 0:R.e2)||"";l===""&&this.Fs({eds:1});R=FFJ(this,Y.ssdaiAdsConfig);v=this.playback.getVideoData();var Z;q=((Z=v.S)==null?void 0:Z.containerType)||0;Z=v.Bs[q];Y=Y.jn&&Q>=Y.jn?Y.jn:void 0;Z={Hm:L?Vbg(this,L):[],D4:R,e2:l,dK:Y,tI:aT(Z.split(";")[0]),Wv:Z.split(";")[1]|| ""};Y={gV:Z};this.sK&&(T={gvprpro:"v",sq:Q,mt:T.toFixed(3),itag:k,acpns:((U=Z.Hm)==null?void 0:U.join("_"))||"none",abid:L},this.Fs(T));return Y}; g.h.cI=function(T){a:{if(!this.l0){var Q=eTg(this,T);if(!(this.playback.getVideoData().lf()&&(Q==null?0:Q.C0)))break a}Q=void 0}var k=Q;if(!k)return this.Fs({gvprp:"ncp",mt:T}),null;Q=k.RB;var l=FFJ(this,k.ssdaiAdsConfig);k=k.jn&&k.Ed&&T>=k.Ed?k.jn:void 0;var v=this.playback.getVideoData(),L,q=((L=v.S)==null?void 0:L.containerType)||0;L=v.Bs[q];L={Hm:Q?Vbg(this,Q):[],D4:l,dK:k,tI:aT(L.split(";")[0]),Wv:L.split(";")[1]||""};var Y;T={gvprpro:"v",mt:T.toFixed(3),acpns:((Y=L.Hm)==null?void 0:Y.join("_"))|| "none",abid:Q};this.Fs(T);return L}; g.h.pw=function(T,Q,k,l,v,L){var q=Number(k.split(";")[0]),Y=l===3;T=Jby(this,T,Q,l,k,L);this.Fs({gdu:1,seg:Q,itag:q,pb:""+!!T});if(!T)return Y7(this,Q,Y),null;T.locations||(T.locations=new Map);if(!T.locations.has(q)){var U,R;L=(U=T.videoData.getPlayerResponse())==null?void 0:(R=U.streamingData)==null?void 0:R.adaptiveFormats;if(!L)return this.Fs({gdu:"noadpfmts",seg:Q,itag:q}),Y7(this,Q,Y),null;U=L.find(function(G){return G.itag===q}); if(!U||!U.url){var Z=T.videoData.videoId;T=[];var f=g.B(L);for(l=f.next();!l.done;l=f.next())T.push(l.value.itag);this.Fs({gdu:"nofmt",seg:Q,vid:Z,itag:q,fullitag:k,itags:T.join(",")});Y7(this,Q,Y);return null}T.locations.set(q,new g.J_(U.url,!0))}L=T.locations.get(q);if(!L)return this.Fs({gdu:"nourl",seg:Q,itag:q}),Y7(this,Q,Y),null;L=new Pt(L);this.QR&&(L.get("dvc")?this.Fs({dvc:L.get("dvc")||""}):L.set("dvc","webm"));(l=(f=this.H$(Q-1,l,v))==null?void 0:f.e2)&&L.set("daistate",l);T.jn&&Q>=T.jn&& L.set("skipsq",""+T.jn);(f=this.playback.getVideoData().clientPlaybackNonce)&&L.set("cpn",f);f=[];T.RB&&(f=Vbg(this,T.RB),f.length>0&&L.set("acpns",f.join(",")));Y||this.N.set(Q,T);Y=null;Y=L.get("aids");l=L.IK();(l==null?void 0:l.length)>2048&&this.Fs({urltoolong:1,sq:Q,itag:q,len:l.length});this.sK&&(l&&(L=T.cpn,v=T.RB,j7C(this,L,v),v&&!this.OG.has(v)&&(L=Te5(this,L,v),U=Q7b(this,v),this.Fs({iofa:L}),this.Fs({noawnzd:U-L}),this.Fs({acpns:f.join("."),aids:(Z=Y)==null?void 0:Z.replace(/,/g,".")}), this.OG.add(v))),this.Fs({gdu:"v",seg:Q,itag:k,ast:T.R_.toFixed(3),alen:T.durationMs.toFixed(3),acpn:T.cpn,avid:T.videoData.videoId}));return l}; g.h.AY=function(T,Q,k){k=k===void 0?!1:k;var l=$OT(this,T,Q);if(l){var v=void 0,L=l.RB;if(L){this.Fs({skipadonsq:Q,sts:k,abid:L,acpn:l.cpn,avid:l.videoData.videoId});k=this.T.S.get(L);if(!k)return;k=g.B(k);for(L=k.next();!L.done;L=k.next())L=L.value,L.jn=Q,L.Ed=T,L.R_>l.R_&&(v=L)}U0(this,this.Tb);this.Y=l.cpn;EIt(this);T=this.playback.getCurrentTime();ybt(this,l,v,T,T,!1,!0);laX(this)}}; g.h.nV=function(){for(var T=g.B(this.T.T),Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q.jn=NaN,Q.Ed=NaN;EIt(this);this.Fs({rsac:"resetSkipAd",sac:this.Y});this.u9.delete(this.Y);this.Y=""}; g.h.H$=function(T,Q,k){return this.qO.H$(T,Q,k)}; g.h.F0=T5(57); g.h.zQ=function(T,Q,k,l,v,L,q,Y,U){l.length>0&&this.Fs({onssinfo:1,sq:T,start:Q.toFixed(3),cpns:l.join(","),ds:v.join(","),isVideo:q?1:0});U&&this.qO.zQ(T,q,Y,U);if(q){if(l.length&&v.length)for(this.u9.has(l[0])&&this.Fs({skipfail:1,sq:T,acpn:l[0]}),T=Q+this.TG(),k=0;k0&&(this.N5=0,this.Tb="",this.Hd.V("html5_huli_ssdai_use_playback_state")&&this.PB(this.playback.pB(),0),this.api.publish("serverstitchedvideochange"));this.playback.XW(k,l);return!0}; g.h.t1=function(){this.Fs({rstdaist:1});this.qO.clearAll()}; g.h.eM=function(T){var Q;if(T!==((Q=this.B)==null?void 0:Q.identifier))this.Fs({ignorenoad:T});else{this.Fk.add(T);this.Fs({noadrcv:T});var k;((k=this.B)==null?void 0:k.identifier)===T&&qd(this)}}; g.h.Vi=function(T){if(this.l0)return this.Fs({dai_disabled:T.event}),!1;if(this.playback.getVideoData().lf()&&(T.event==="continue"||T.event==="stop"))return!1;var Q=xY(this.api.Bx());if(Q=Q?Q.Vi(T):!1)this.L={n1:T.identifier,l4:T.startSecs};else if(this.L&&this.L.n1===T.identifier&&T.startSecs>this.L.l4+1){this.Fs({cueStChg:T.identifier,oldSt:this.L.l4.toFixed(3),newSt:T.startSecs.toFixed(3),abid:this.L.CK});if(this.L.CK){var k=T.startSecs-this.L.l4,l=this.T.S.get(this.L.CK);if(l){l=g.B(l);for(var v= l.next();!v.done;v=l.next())v=v.value,v.R_>=0&&(v.R_+=k*1E3,this.Hd.V("html5_ssdai_update_timeline_on_start_time_change")&&(v.X_+=k*1E3),this.Fs({newApEt:v.R_,newApPrt:v.X_,acpn:v.cpn}))}}this.L.l4=T.startSecs}this.Hd.V("html5_ssdai_log_missing_ad_config_reason")&&(Q?this.e6.add(T.identifier):this.e6.has(T.identifier)&&this.e6.delete(T.identifier));return Q}; g.h.QK=function(T){var Q="";T?T.event==="unknown"?Q="unknown":this.e6.has(T.identifier)?this.L&&this.L.n1===T.identifier?this.L.n1===T.identifier?Q="pending":$4(this.p_,function(k){return k.identifier===T.identifier})||(Q="noAdsAdded"):Q="wrongAdBreakInfo":Q="unscheduled":Q="noCuepoint"; return Q}; g.h.zV=function(T){return this.l0?!1:!!eTg(this,T)}; g.h.oF=function(T){var Q=this;if(this.Hd.V("html5_lifa_ignore_multiple_skips")&&this.hj)return this.Fs({ufs_ad:this.Y,ufs_cur:this.Tb,ufs_cont:this.eP().cpn}),!1;U0(this,this.Tb);this.playback.pauseVideo();var k=this.playback.getCurrentTime(),l=this.T.pA({cpn:this.Tb});if(!l)return this.Fs({skipFail:k}),!1;this.Y=this.Tb;this.z9=!1;ka5(this,l.RB);q1f(this,l,this.eP(),T);Lif(this,k,{seekSource:89,I_:"lifa_skip"});this.hj||(this.hj=this.events.Z(this.api,"progresssync",function(){zx(Q.api.eZ(),(0,g.XY)(), "ad_to_video");Q.hj&&(Q.events.J6(Q.hj),Q.hj=null)})); return!0}; g.h.Fs=function(T,Q){((Q===void 0?0:Q)||this.sK||this.playback.getVideoData().lf())&&this.playback.T9("sdai",T)}; var AbX=0;g.S(MdC,g.x);g.h=MdC.prototype;g.h.onCueRangeEnter=function(T){if(this.T===this.app.Pd()){var Q=this.N.get(T);Q?Gaf(this,Q.target,Q.kz,T):this.RK("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:T.toString()})}else if(Q=this.S.find(function(v){return v.R9.qV===T})){var k=Q.R9,l=k.target; k=k.kz;l?Gaf(this,l,k,T):fa5(this,Q.X_,k,T)}}; g.h.onQueuedVideoLoaded=function(){var T=this.C;Gt(this);if(T){if(!fq(this,T)){var Q=this.app.Pd();this.RK("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:Q==null?void 0:Q.getVideoData().clientPlaybackNonce,ccpn:""+T.playerVars.cpn})}this.app.Pd().addCueRange(T.R9.qV)}}; g.h.seekTo=function(T,Q,k,l){T=T===void 0?0:T;Q=Q===void 0?{}:Q;l=l===void 0?null:l;if(k===void 0?0:k)gU6(this,T,Q);else{k=this.app.Pd()||null;var v=k===this.Y?this.B:null;mL(this,!1);this.z9=T;this.D=Q;l!=null&&this.j.start(l);k&&(this.B=v||k.getPlayerState(),k.n4(),this.Y=k)}}; g.h.Pl=function(T){g.RY(T,128)&&S1u(this)}; g.h.isManifestless=function(){return Kt(this.T.getVideoData())}; g.h.EK=function(){mL(this,!1);BeX(this);g.x.prototype.EK.call(this)}; g.h.RK=function(T,Q){this.T.RK(new g.ZK(T,Q))}; var Y1f=0;var z_5="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.S(Ig,g.x);Ig.prototype.Py=function(T){if(T)return this.S.get(T)}; Ig.prototype.EK=function(){this.T.removeAll();this.S.removeAll();g.x.prototype.EK.call(this)};g.qv_=aO(function(){var T=window.AudioContext||window.webkitAudioContext;try{return new T}catch(Q){return Q.name}});g.S(AhC,g.p);g.h=AhC.prototype;g.h.SX=function(){g.vq(this.element,g.HT.apply(0,arguments))}; g.h.u7=function(){this.Q4&&(this.Q4.removeEventListener("focus",this.HL),g.s$(this.Q4),this.Q4=null)}; g.h.f1=function(){this.wd();var T=this.app.G();T.BH||this.SX("tag-pool-enabled");T.B&&this.SX(g.Br.HOUSE_BRAND);T.playerStyle==="gvn"&&(this.SX("ytp-gvn"),this.element.style.backgroundColor="transparent");T.Ig&&(this.rg=g.TA("yt-dom-content-change",this.resize,this));this.Z(window,"orientationchange",this.resize,this);this.Z(window,"resize",this.resize,this)}; g.h.qP=function(T){g.vB(this.app.G());this.Nb=!T;hn(this)}; g.h.resize=function(){if(this.Q4){var T=this.J9();if(!T.isEmpty()){var Q=g.jj(this.app.G().experiments,"html5_android_mweb_resize_delay")>0,k=this.app.ZV.isFullscreen();if(Q&&k&&OG()){var l;(l=this.N7)==null||l.start()}Q=!g.eN(T,this.hJ.getSize());k=aay(this);Q&&(this.hJ.width=T.width,this.hJ.height=T.height);T=this.app.G();(k||Q||this.Yy||T.Ig)&&this.app.ZV.publish("resize",this.getPlayerSize())}}}; g.h.Kp=function(T,Q){this.updateVideoData(Q)}; g.h.updateVideoData=function(T){if(this.Q4){var Q=this.app.G();We&&(this.Q4.setAttribute("x-webkit-airplay","allow"),T.title?this.Q4.setAttribute("title",T.title):this.Q4.removeAttribute("title"));this.Q4.setAttribute("controlslist","nodownload");Q.hn&&T.videoId&&(this.Q4.poster=T.rO("default.jpg"))}Q=g.e7(T,"yt:bgcolor");this.XO.style.backgroundColor=Q?Q:"";this.eH=vy(g.e7(T,"yt:stretch"));this.sO=vy(g.e7(T,"yt:crop"),!0);g.gl(this.element,"ytp-dni",T.hh);this.resize()}; g.h.setGlobalCrop=function(T){this.Fa=vy(T,!0);this.resize()}; g.h.setCenterCrop=function(T){this.fb=T;this.resize()}; g.h.gA=function(){}; g.h.getPlayerSize=function(){var T=this.app.G(),Q=this.app.ZV.isFullscreen(),k=T.externalFullscreen&&g.Qk(T);if(Q&&OG()&&!k)return new g.Ji(window.outerWidth,window.outerHeight);k=!isNaN(this.TZ.width)&&!isNaN(this.TZ.height);var l=this.app.G().V("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.G().V("web_watch_enable_fs_squeezeback_panels");if(Q&&!k&&l)return new g.Ji(this.element.clientWidth,this.element.clientHeight);if(Q||T.Qm){if(window.matchMedia){T="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.VA&&this.VA.media===T||(this.VA=window.matchMedia(T));var v=this.VA&&this.VA.matches}if(v)return new g.Ji(window.innerWidth,window.innerHeight)}else if(k)return this.TZ.clone();return new g.Ji(this.element.clientWidth,this.element.clientHeight)}; g.h.J9=function(){var T=this.app.G().V("enable_desktop_player_underlay"),Q=this.getPlayerSize(),k=g.jj(this.app.G().experiments,"player_underlay_min_player_width");return T&&this.WL&&Q.width>k?(T=g.jj(this.app.G().experiments,"player_underlay_video_width_fraction"),new g.Ji(Math.min(Q.height*this.getVideoAspectRatio(),Q.width*T),Math.min(Q.height,Q.width*T/this.getVideoAspectRatio()))):Q}; g.h.getVideoAspectRatio=function(){return isNaN(this.eH)?rhu(this):this.eH}; g.h.getVideoContentRect=function(T){var Q=this.J9();T=ch5(this,Q,this.getVideoAspectRatio(),T);return new g.tZ((Q.width-T.width)/2,(Q.height-T.height)/2,T.width,T.height)}; g.h.uX=function(T){this.WL=T;this.resize()}; g.h.VH=function(){return this.X9}; g.h.onMutedAutoplayChange=function(){hn(this)}; g.h.setInternalSize=function(T){g.eN(this.TZ,T)||(this.TZ=T,this.resize())}; g.h.EK=function(){this.rg&&g.o$(this.rg);this.u7();g.p.prototype.EK.call(this)};g.h=nUt.prototype;g.h.click=function(T,Q){this.elements.has(T);this.T.has(T);var k=g.C9();k&&T.visualElement&&g.Q6(k,T.visualElement,Q)}; g.h.createClientVe=function(T,Q,k,l){var v=this;l=l===void 0?!1:l;this.elements.has(T);this.elements.add(T);k=sUX(k);T.visualElement=k;var L=g.C9(),q=g.ST();L&&q&&(g.hH("combine_ve_grafts")?yh(Fv(),k,q):g.E4(g.p9)(void 0,L,q,k));Q.addOnDisposeCallback(function(){v.elements.has(T)&&v.destroyVe(T)}); l&&this.S.add(T)}; g.h.createServerVe=function(T,Q,k){var l=this;k=k===void 0?!1:k;this.elements.has(T);this.elements.add(T);Q.addOnDisposeCallback(function(){l.destroyVe(T)}); k&&this.S.add(T)}; g.h.destroyVe=function(T){this.elements.has(T);this.elements.delete(T);this.L.delete(T);this.T.delete(T);this.S.delete(T)}; g.h.dB=function(T,Q){this.clientPlaybackNonce!==Q&&(this.clientPlaybackNonce=Q,En(Fv(),T),KiC(this))}; g.h.setTrackingParams=function(T,Q){this.elements.has(T);Q&&(T.visualElement=g.ha(Q))}; g.h.o_=function(T,Q,k){this.elements.has(T);Q?this.T.add(T):this.T.delete(T);var l=g.C9(),v=T.visualElement;this.S.has(T)?l&&v&&(Q?g.VU(l,[v]):g.TI(l,[v])):Q&&!this.L.has(T)&&(l&&v&&g.iA(l,v,void 0,k),this.L.add(T))}; g.h.hasVe=function(T){return this.elements.has(T)};g.S(g.S5,g.x);g.S5.create=function(T,Q,k,l){try{var v=typeof T==="string"?T:"player"+g.qp(T),L=Ap[v];if(L){try{L.dispose()}catch(Y){g.bA(Y)}Ap[v]=null}var q=new g.S5(T,Q,k,l);q.addOnDisposeCallback(function(){Ap[v]=null;q.Pb&&q.Pb()}); return Ap[v]=q}catch(Y){throw g.bA(Y),(Y&&Y instanceof Error?Y:Error(String(Y))).stack;}}; g.h=g.S5.prototype;g.h.Gk=function(){return this.visibility}; g.h.zj=function(T){var Q=this.Lc();if(T!==Q){T.getVideoData().autonavState=Q.getVideoData().autonavState;Q.L5(this.yN,this);var k=Q.getPlaybackRate();Q.dispose();this.CA.zj(T);T.setPlaybackRate(k);T.L7(this.yN,this);WiT(this)}}; g.h.HG=function(){this.G7||(this.G7=g.Jt(lf(),uN5()));return this.G7}; g.h.u7=function(T){if(this.mediaElement){this.gq&&(this.events.J6(this.gq),this.gq=null);g.N5(this.Yd);this.Pd().u7(!0,!1,T);this.template.u7();try{this.V("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Kj()}catch(Q){g.rB(Q)}this.mediaElement=null}}; g.h.l$=function(T,Q,k){k=k===void 0?!1:k;if(T!==this.Pd()){this.logger.debug(function(){return"start set presenting player, type "+T.getPlayerType()+", vid "+T.getVideoData().videoId}); var l=null;k||(k=this.Pd(),l=k.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),Kk(this.TH,3),pq(this,"cuerangesremoved",k.TP()),this.Zq&&!T.isGapless()&&k.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),k=T.e1()&&k.e1(),this.Rg.Sl("iv_s"),Vd5(this,k));T.getPlayerType()===1&&this.zj(T);izX(this,T);this.CA.l$(T);this.mediaElement&&T.setMediaElement(this.mediaElement);T.L7(this.Kx,this);T.hX()?XF5(this,"setPresenting",!1):(this.Kp("newdata",T,T.getVideoData()), l&&!g.AB(l,T.getPlayerState())&&this.gf(new g.YX(T.getPlayerState(),l)),Q=Q&&T.getPlayerType()===1,T.qW()&&!Q&&this.Kp("dataloaded",T,T.getVideoData()),(Q=(Q=T.getVideoData().S)&&Q.video)&&this.ZV.Pk("onPlaybackQualityChange",Q.quality),pq(this,"cuerangesadded",T.TP()),Q=T.getPlayerState(),g.J(Q,2)?yh5(this):g.J(Q,8)?T.playVideo():T.a9()&&T.pauseVideo(),Q=this.Lc(),T.getPlayerType()===2&&(T.getVideoData().i4=Q.getVideoData().clientPlaybackNonce),T.getPlayerType()!==2||this.Xj()||(l=T.getVideoData(), Q.Xx(l.clientPlaybackNonce,l.pG||"",l.breakType||0,l.uK,l.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.h.WJ=function(){if(this.Lc()!==this.Pd()){var T=this.Pd();this.logger.debug(function(){return"release presenting player, type "+T.getPlayerType()+", vid "+T.getVideoData().videoId}); this.l$(this.Lc())}}; g.h.vG=function(){return this.CA}; g.h.pA=function(T){return this.CA.pA(T)}; g.h.jD=function(T){return this.CA.jD(T)}; g.h.Lc=function(){return this.CA.Lc()}; g.h.Pd=function(){return this.CA.Pd()}; g.h.GB=T5(44);g.h.skK=function(){dk(this)||(this.logger.debug("application playback ready"),this.pU(5))}; g.h.DYd=function(){if(!dk(this)){this.logger.debug("playback ready");SbH(this);var T=this.Pd(),Q=T.getPlayerState();T.a9()?this.pauseVideo():Q.isOrWillBePlaying()&&this.playVideo()}}; g.h.canPlayType=function(T){return IE(T)}; g.h.G=function(){return this.Hd}; g.h.getVideoData=function(){return this.Pd().getVideoData()}; g.h.Av=T5(11);g.h.mF=function(){return this.Lc().getVideoData()}; g.h.getVideoLoadedFraction=function(T){return(T=this.pA({playerType:T}))?T.getVideoLoadedFraction():this.CA.T.getVideoLoadedFraction()}; g.h.Hx=function(){return this.template}; g.h.Bx=function(){return this.TH}; g.h.eZ=function(){return this.Rg}; g.h.Y6=function(T,Q,k){(Q=this.pA({playerType:Q===void 0?1:Q}))&&Q.fn(T,void 0,k)}; g.h.Z_=function(){var T=this.TH.Z_();this.ZV.publish("videoStatsPingCreated",T);return T}; g.h.getVolume=function(){return Math.round(this.ZV.getVolume())}; g.h.isMuted=function(){return this.ZV.isMuted()}; g.h.Gc=function(){if(this.Lc()===this.Pd()&&this.VR)return this.VR.postId}; g.h.gP9=function(){var T=this;this.V("use_rta_for_player")||(g.G4(this.Hd)?g.rj(this.Hd,g.YD(this.getVideoData())).then(function(Q){oR(lf(),Q);IQH(T.getVideoData(),T.Hd,T.HG())}):IQH(this.getVideoData(),this.Hd,this.HG()))}; g.h.rY=function(T){this.ZV.publish("poTokenVideoBindingChange",T)}; g.h.Z5=function(T){this.ZV.publish("d6de4videobindingchange",T)}; g.h.KT=function(){this.AK&&this.AK.KT()}; g.h.G2=function(T){this.AK=T}; g.h.xA=function(T){if(T===1){this.Rg.tick("vr");var Q=this.Pd();Q.lG();w5X(this.Rg,Q.getVideoData(),seH(this));jwC(this.TH)}Q=this.Hd;if(N0(Q)&&Q.j||g.q0(Q)){var k;(((k=this.Pd().getVideoData())==null?0:k.enableServerStitchedDai)||!this.Xj())&&this.ZV.Pk("onAdStateChange",T)}}; g.h.setLoopVideo=function(T){var Q=this.Pd();Q===this.Lc()&&Q.t_()!==T&&(Q.setLoop(T),this.ZV.tj("onLoopChange",T))}; g.h.getLoopVideo=function(){return this.Pd().t_()}; g.h.setLoopRange=function(T){var Q=!1;!!this.VR!==!!T?Q=!0:this.VR&&T&&(Q=this.VR.startTimeMs!==T.startTimeMs||this.VR.endTimeMs!==T.endTimeMs||this.VR.postId!==T.postId||this.VR.type!==T.type);if(Q){Q=this.Pd();NY(Q.getVideoData())&&Q.T9("slr",{et:(T==null?void 0:T.endTimeMs)||-1});Q=this.Lc();Q.uf("applooprange");if(T){var k=new g.$d(T.startTimeMs,T.endTimeMs,{id:"looprange",namespace:"applooprange"});Q.addCueRange(k)}else{this.mF().clipConfig=void 0;var l;((k=this.VR)==null?void 0:k.type)!=="repeatChapter"|| isNaN(Number((l=this.VR)==null?void 0:l.loopCount))||(k={loopCount:String(this.VR.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.LM("repeatChapterLoopEvent",k))}this.VR=T;this.ZV.tj("onLoopRangeChange",T||void 0);this.Lc()===this.Pd()&&(this.aU(),Q.wZ())}}; g.h.getLoopRange=function(){return this.VR}; g.h.aU=function(){var T="",Q=this.Lc();this.VR?Q!==this.Pd()?T="pnea":Lgt(this,Q.getCurrentTime())&&(this.VR.loopCount=0,T="ilr"):T="nlr";var k=this.Pd();if(NY(k.getVideoData()))if(this.V("html5_gapless_log_loop_range_info")){var l,v;k.T9("slrre",{rej:T,ct:Q.getCurrentTime(),lst:(l=this.VR)==null?void 0:l.startTimeMs,let:(v=this.VR)==null?void 0:v.endTimeMs})}else k.T9("slrre",{});T||gog(this)}; g.h.setPlaybackRate=function(T,Q){if(!isNaN(T)){T=e_t(this,T);var k=this.Lc();k.getPlaybackRate()!==T&&(k.setPlaybackRate(T),Q&&!this.Hd.Y&&g.ri("yt-player-playback-rate",T),this.ZV.Pk("onPlaybackRateChange",T))}}; g.h.getCurrentTime=function(T,Q){Q=Q===void 0?!0:Q;var k=this.CA.GP;if(k)return k.getCurrentTime();var l=T===2&&this.getVideoData().enableServerStitchedDai;k=null;l?k=this.Pd():k=this.pA({playerType:T});return k?l&&this.SD?(T=this.CA.C)?T.getCurrentTime(Q):k.getCurrentTime():Q?(Q=wk(this,k),Kq(this,Q.getCurrentTime(),Q)):k.getCurrentTime():this.CA.T.getCurrentTime()}; g.h.bS=function(){var T=this.pA({playerType:void 0});if(!T)return this.CA.T.bS();T=wk(this,T);return Kq(this,T.bS(),T)}; g.h.getDuration=function(T,Q){Q=Q===void 0?!0:Q;var k=this.CA.GP;if(k)return k.getDuration();k=this.getVideoData();var l=T===2&&k.enableServerStitchedDai,v=null;l?v=this.Pd():v=this.pA({playerType:T});if(!v)return this.CA.T.getDuration();if(k.hasProgressBarBoundaries()&&!l){var L,q=Number((L=k.progressBarStartPosition)==null?void 0:L.utcTimeMillis),Y;L=Number((Y=k.progressBarEndPosition)==null?void 0:Y.utcTimeMillis);if(!isNaN(q)&&!isNaN(L))return(L-q)/1E3}if(NY(k)&&!k.isLivePlayback)return uG(this, T);if(Q)return T=XU(this,v),Kq(this,T.getDuration(),T);if(l&&this.SD){if(this.V("html5_huli_ssdai_use_playback_state"))return T=this.CA,T=T.Y===T.C?T.Y:null,(T==null?void 0:T.getDuration())||0;var U;return((U=this.CA.C)==null?void 0:U.getDuration())||0}return v.getDuration()}; g.h.xM=function(T){var Q=this.pA({playerType:T});return Q?this.Xj(Q)?(Q=XU(this,Q),Q.xM()-Q.getCurrentTime()+this.getCurrentTime(T)):Q.xM():this.CA.T.xM()}; g.h.finishSegmentByCpn=function(){return[]}; g.h.f1=function(){this.template.f1();var T=this.ZV;T.state.element=this.template.element;var Q=T.state.element,k;for(k in T.state.T)T.state.T.hasOwnProperty(k)&&(Q[k]=T.state.T[k]);(T=xSf(this.template.element))&&this.events.Z(this.template,T,this.onFullscreenChange)}; g.h.getDebugText=function(T){var Q=this.Lc().Tx(T),k=this.Pd();if(k!==this.Lc()){k=k.Tx(T);for(var l=g.B(Object.keys(k)),v=l.next();!v.done;v=l.next())v=v.value,Q["ad"+v]=k[v];if(T){k=Q;l={};if(v=oO(document,"movie_player"))l.bounds=v.getBoundingClientRect(),l["class"]=v.className;v={};var L=g.gK("video-ads");L?(NZ5(L,v),v.html=L.outerHTML):v.missing=1;L={};var q=g.gK("videoAdUiSkipContainer"),Y=g.gK("ytp-ad-skip-button-container"),U=g.gK("ytp-skip-ad-button"),R=q||Y||U;R?(NZ5(R,L),L.ima=q?1:0,L.bulleit= Y?1:0,L.component=U?1:0):L.missing=1;l=JSON.stringify({player:l,videoAds:v,skipButton:L});k.ad_skipBtnDbgInfo=l}}T&&this.mediaElement&&(Q["0sz"]=""+(+Fs(this.mediaElement.getSize())===0),Q.op=this.mediaElement.Jv("opacity"),k=this.mediaElement.rS().y+this.mediaElement.getSize().height,Q.yof=""+(+k<=0),Q.dis=this.mediaElement.Jv("display"));T&&((T=(0,g.YO)())&&(Q.gpu=T),(T=this.Hd.playerStyle)&&(Q.ps=T),this.Hd.Jj&&(Q.webview=1),(T=this.webPlayerContextConfig.jsUrl)&&(Q.js=T));Q.debug_playbackQuality= this.ZV.getPlaybackQuality(1);Q.debug_date=(new Date).toString();Q.origin=window.origin;Q.timestamp=Date.now();delete Q.uga;delete Q.q;return JSON.stringify(Q,null,2)}; g.h.getFeedbackProductData=function(){var T={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.G().experiments.experimentIds.join(", "),player_release:M[7]},Q=this.getPlayerStateObject().ge;Q&&(T.player_error_code=Q.errorCode,T.player_error_details=JSON.stringify(Q.errorDetail));return T}; g.h.getPresentingPlayerType=function(T){if(this.appState===1)return 1;if(dk(this))return 3;var Q;return T&&((Q=this.SD)==null?0:xO5(Q,this.getCurrentTime()))?2:this.Pd().getPlayerType()}; g.h.K9=function(){return!1}; g.h.getPlayerStateObject=function(T){var Q=this.CA.GP;return Q?Q.getPlayerState():this.pA({playerType:T}).getPlayerState()}; g.h.getAppState=function(){return this.appState}; g.h.oc6=function(T){switch(T.type){case "loadedmetadata":this.uw.start();T=g.B(this.Bw);for(var Q=T.next();!Q.done;Q=T.next())Q=Q.value,hkb(this,Q.id,Q.qhe,Q.z0O,void 0,!1);this.Bw=[];break;case "loadstart":this.Rg.Sl("gv");break;case "progress":case "timeupdate":V4(T.target.Q8())>=2&&this.Rg.Sl("l2s");break;case "playing":g.wj&&this.uw.start();if(g.G4(this.Hd))T=!1;else{Q=g.y5(this.Bx());T=this.mediaElement.Jv("display")==="none"||Fs(this.mediaElement.getSize())===0;var k=s0(this.template),l=this.Pd().getVideoData(), v=g.uP(this.Hd);l=AL(l);Q=!k||Q||v||l||this.Hd.f_;T=T&&!Q}T&&(T=this.Pd(),T.qr(),this.getVideoData().Gg||(this.getVideoData().Gg=1,this.q6(),T.playVideo()))}}; g.h.W1j=function(T){this.ZV.UM("onLoadProgress",T)}; g.h.SHO=function(){this.ZV.publish("playbackstalledatstart")}; g.h.y6d=function(T,Q){this.ZV.publish("sabrCaptionsDataLoaded",T,Q)}; g.h.ph_=function(T){this.Pd().AJ(T)}; g.h.ncq=function(T){this.Pd().ZF(T)}; g.h.Q_V=function(T){T=wk(this,this.Pd());T=Kq(this,T.getCurrentTime(),T);this.ZV.Pk("onVideoProgress",T);this.Hd.iy&&fub(this,this.visibility.x$())&&this.pauseVideo()}; g.h.IPm=function(){this.ZV.Pk("onAutoplayBlocked");var T=this.Pd().getVideoData();T&&(T.BK=!0);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.Qk(this.Hd)&&(T={autoplayBrowserPolicy:zq(),autoplayIntended:XQ(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.LM("embedsAutoplayStatusChanged",T))}; g.h.MrO=function(){this.ZV.publish("progresssync")}; g.h.fPH=function(){this.ZV.UM("onPlaybackPauseAtStart")}; g.h.lVK=function(T){if(this.getPresentingPlayerType()===1){g.RY(T,1)&&!g.J(T.state,64)&&this.mF().isLivePlayback&&this.Lc().isAtLiveHead()&&this.ZV.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.RY(T,2)){if(this.VR&&this.VR.endTimeMs>=(this.getDuration()-1)*1E3){gog(this);return}yh5(this)}if(g.J(T.state,128)){var Q=T.state;this.cancelPlayback(5);Q=Q.ge;JSON.stringify({errorData:Q,debugInfo:this.getDebugText(!0)});this.ZV.Pk("onError",bQJ(Q.errorCode));this.ZV.UM("onDetailedError",{errorCode:Q.errorCode, errorDetail:Q.errorDetail,message:Q.errorMessage,messageKey:Q.k9,cpn:Q.cpn});(0,g.XY)()-this.Hd.Wk>6048E5&&this.ZV.UM("onReloadRequired")}Q={};if(T.state.isPlaying()&&!T.state.isBuffering()&&!bU("pbresume","ad_to_video")&&bU("_start","ad_to_video")){var k=this.getVideoData();Q.clientPlaybackNonce=k.clientPlaybackNonce;k.videoId&&(Q.videoId=k.videoId);g.NL(Q,"ad_to_video");dS("pbresume",void 0,"ad_to_video");jwC(this.TH)}this.ZV.publish("applicationplayerstatechange",T)}}; g.h.gf=function(T){this.CA.GP||this.ZV.publish("presentingplayerstatechange",T)}; g.h.Pl=function(T){zt(this,rf(T.state));g.J(T.state,1024)&&this.ZV.isMutedByMutedAutoplay()&&(DN(this,{muted:!1,volume:this.cG.volume},!1),ag(this,!1))}; g.h.onPlayerRequestSent=function(T){this.ZV.tj("onPlayerRequestSent",T)}; g.h.nN=function(T,Q){T==="newdata"&&WiT(this);this.ZV.publish("applicationvideodatachange",T,Q)}; g.h.bce=function(T,Q){this.V("html5_afmt_change_update_volume")&&SbH(this);this.ZV.UM("onPlaybackAudioChange",this.ZV.getAudioTrack().MY.name);this.ZV.publish("internalaudioformatchange",this.ZV.getAudioTrack().MY.id,Q)}; g.h.EcH=function(T){var Q=this.Pd().getVideoData();T===Q&&this.ZV.Pk("onPlaybackQualityChange",T.S.video.quality)}; g.h.qI=function(){var T=this.CA.L[2]||null;T&&(T=T.getVideoData(),this.Pd().T9("ssdai",{cleanaply:1,acpn:T==null?void 0:T.clientPlaybackNonce,avid:T.videoId,isDai:this.mF().enableServerStitchedDai?1:0}),delete this.CA.L[2])}; g.h.c6d=function(T,Q){this.Kp(T,this.Pd(),Q)}; g.h.Kp=function(T,Q,k){this.logger.debug(function(){return"on video data change "+T+", player type "+Q.getPlayerType()+", vid "+k.videoId}); this.Hd.J3()&&Q.T9("vdc",{type:T,vid:k.videoId||"",cpn:k.clientPlaybackNonce||""});Q===this.Lc()&&(this.Hd.b7=k.oauthToken);Q===this.Lc()&&(this.getVideoData().enableServerStitchedDai&&!this.SD?(this.Lc().T9("sdai",{initSstm:1}),this.SD=new g.v5(this.ZV,this.Hd,this.Lc(),this)):!this.getVideoData().enableServerStitchedDai&&this.SD&&(this.SD.dispose(),this.SD=null));if(T==="newdata")this.logger.debug("new video data, destroy modules"),Kk(this.TH,2),this.ZV.publish("videoplayerreset",Q);else{if(!this.mediaElement)return; T==="dataloaded"&&(this.Lc()===this.Pd()?(Ru(k.FB,k.EV),kMu(this)):QeJ(this));Q.getPlayerType()===1&&(this.Hd.e6&&dG5(this),this.getVideoData().isLivePlayback&&!this.Hd.cf&&this.XG("html5.unsupportedlive",2,"DEVICE_FALLBACK"),k.isLoaded()&&((xyI(k)||this.getVideoData().cf)&&this.ZV.publish("legacyadtrackingpingchange",this.getVideoData()),k.hasProgressBarBoundaries()&&Ybb(this)));this.ZV.publish("videodatachange",T,k,Q.getPlayerType())}this.ZV.Pk("onVideoDataChange",{type:T,playertype:Q.getPlayerType()}); this.aU();var l=k.tO;l?this.GE.dB(l,k.clientPlaybackNonce):KiC(this.GE)}; g.h.Nd=function(){An(this,null);this.ZV.UM("onPlaylistUpdate")}; g.h.d2B=function(T){delete this.w6[T.getId()];this.Lc().removeCueRange(T);a:{T=this.getVideoData();var Q,k,l,v,L,q,Y,U,R,Z,f=((Q=T.e6)==null?void 0:(k=Q.contents)==null?void 0:(l=k.singleColumnWatchNextResults)==null?void 0:(v=l.autoplay)==null?void 0:(L=v.autoplay)==null?void 0:L.sets)||((q=T.e6)==null?void 0:(Y=q.contents)==null?void 0:(U=Y.twoColumnWatchNextResults)==null?void 0:(R=U.autoplay)==null?void 0:(Z=R.autoplay)==null?void 0:Z.sets);if(f)for(Q=g.B(f),k=Q.next();!k.done;k=Q.next())if(k= k.value,v=l=void 0,k=k.autoplayVideo||((l=k.autoplayVideoRenderer)==null?void 0:(v=l.autoplayEndpointRenderer)==null?void 0:v.endpoint),l=g.t(k,g.Bv),L=v=void 0,k!=null&&((v=l)==null?void 0:v.videoId)===T.videoId&&((L=l)==null?0:L.continuePlayback)){T=k;break a}T=null}(Q=g.t(T,g.Bv))&&this.ZV.tj("onPlayVideo",{sessionData:{autonav:"1",itct:T==null?void 0:T.clickTrackingParams},videoId:Q.videoId,watchEndpoint:Q})}; g.h.pU=function(T){var Q=this;T!==this.appState&&(this.logger.debug(function(){return"app state change "+Q.appState+" -> "+T}),T===2&&this.getPresentingPlayerType()===1&&(zt(this,-1),zt(this,5)),this.appState=T,this.ZV.publish("appstatechange",T))}; g.h.XG=function(T,Q,k,l,v){this.Lc().NL(T,Q,k,l,v)}; g.h.tV=T5(13);g.h.isAtLiveHead=function(T,Q){Q=Q===void 0?!1:Q;var k=this.pA({playerType:T});if(!k)return this.CA.T.isAtLiveHead();T=XU(this,k);k=wk(this,k);return T!==k?T.isAtLiveHead(Kq(this,k.getCurrentTime(),k),!0):T.isAtLiveHead(void 0,Q)}; g.h.As=function(){var T=this.pA({playerType:void 0});return T?XU(this,T).As():this.CA.T.As()}; g.h.seekTo=function(T,Q,k,l,v){Q=Q!==!1;if(l=this.pA({playerType:l}))this.appState===2&&rk(this),this.Xj(l)?x7(this)?this.SD.seekTo(T,{seekSource:v},Q,k):this.Gx.seekTo(T,{seekSource:v},Q,k):l.seekTo(T,{aj:!Q,JI:k,I_:"application",seekSource:v})}; g.h.seekBy=function(T,Q,k,l){this.seekTo(this.getCurrentTime()+T,Q,k,l)}; g.h.zgm=function(){this.ZV.Pk("SEEK_COMPLETE")}; g.h.Zcd=function(){this.ZV.tj("onAbnormalityDetected")}; g.h.TnO=function(T){this.ZV.tj("onSnackbarMessage",T)}; g.h.qHV=function(T){var Q=this.Pd(),k=Q.getVideoData();if(this.appState===1||this.appState===2)k.startSeconds=T;this.appState===2?g.J(Q.getPlayerState(),512)||rk(this):this.ZV.Pk("SEEK_TO",T)}; g.h.A3q=function(){this.ZV.publish("airplayactivechange")}; g.h.jgB=function(){this.ZV.publish("airplayavailabilitychange")}; g.h.showAirplayPicker=function(){this.Pd().YU()}; g.h.K16=function(){this.ZV.publish("beginseeking")}; g.h.Pg9=function(){this.ZV.publish("endseeking")}; g.h.getStoryboardFormat=function(T){return(T=this.pA({playerType:T}))?XU(this,T).getStoryboardFormat():this.CA.T.getStoryboardFormat()}; g.h.l7=function(T){return(T=this.pA({playerType:T}))?XU(this,T).getVideoData().l7():this.CA.T.l7()}; g.h.Xj=function(T){T=(T||this.Pd()).getVideoData();if(x7(this))T=T===this.SD.playback.getVideoData();else a:{var Q=this.Gx;if(T===Q.T.getVideoData()&&Q.S.length)T=!0;else{Q=g.B(Q.S);for(var k=Q.next();!k.done;k=Q.next())if(T.lC===k.value.lC){T=!0;break a}T=!1}}return T}; g.h.XK=function(T,Q,k,l,v,L,q,Y){this.logger.debug(function(){return"Adding video to timeline id="+T.video_id+"\n lengthMs="+l+" enterTimeMs="+v}); var U="",R=x7(this);this.Pd().T9("appattl",{sstm:this.SD?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:R});R?(k=rbJ(this.SD,T,Q,k,l,v,L,q),U=(k==null?void 0:k.lC)||"",this.V("html5_ssdai_new_decoration_logic")&&this.Lc().JY(Y||"",Q,(k==null?void 0:k.clientPlaybackNonce)||"")):U=ZzJ(this.Gx,T,k,l,v,L);this.logger.debug(function(){return"Video added to timeline id="+T.video_id+" timelinePlaybackId="+U}); return U}; g.h.vU=function(T,Q,k,l,v,L,q){if(x7(this)){var Y,U=(Y=this.SD)==null?void 0:rbJ(Y,T,Q,k,l,v,L,q);this.logger.debug(function(){return"Remaining video added to timeline id="+T.video_id+" timelinePlaybackId="+((U==null?void 0:U.lC)||"")})}}; g.h.eM=function(T){this.V("html5_ssdai_new_decoration_logic")&&this.Lc().JY(T,"","");var Q;(Q=this.SD)==null||Q.eM(T)}; g.h.Fc=function(T,Q){T=T===void 0?-1:T;Q=Q===void 0?Infinity:Q;x7(this)||BeX(this.Gx,T,Q)}; g.h.AA=function(T,Q,k){if(x7(this)){var l=this.SD,v=l.T.pA({lC:T});v?(k===void 0&&(k=v.X_),tbT(l,v,Q,k)):l.O4("Invalid_timelinePlaybackId_"+T+"_specified")}else{l=this.Gx;v=null;for(var L=g.B(l.S),q=L.next();!q.done;q=L.next())if(q=q.value,q.lC===T){v=q;break}v?(k===void 0&&(k=v.X_),C9y(l,v,Q,k)):Rg(l,"InvalidTimelinePlaybackId timelinePlaybackId="+T)}}; g.h.enqueueVideoByPlayerVars=function(T,Q,k,l){k=k===void 0?Infinity:k;l=l===void 0?"":l;this.Xj();T=new g.mR(this.Hd,T);l&&(T.lC=l);UGI(this,T,Q,k)}; g.h.queueNextVideo=function(T,Q,k,l,v){k=k===void 0?NaN:k;T=this.preloadVideoByPlayerVars(T,Q===void 0?1:Q,k,l===void 0?"":l,v===void 0?"":v);Q=this.Pd();T&&(this.V("html5_check_queue_on_data_loaded")?this.G().supportsGaplessShorts()&&Q.getVideoData().C&&(k=this.uM,l=this.Zq.N,k.Y!==T&&(k.S=Q,k.Y=T,k.L=1,k.T=T.getVideoData(),k.N=l,k.T.isLoaded()?k.B():k.T.subscribe("dataloaded",k.B,k))):(k=Wt6(Q,T,this.Zq.N),k!=null?(Q.T9("sgap",k),Q.getVideoData().C&&Q.pX(!1)):(T=T.getVideoData(),Q=this.uM,Q.T!== T&&(Q.T=T,Q.L=1,T.isLoaded()?Q.C():Q.T.subscribe("dataloaded",Q.C,Q)))))}; g.h.wL=function(T,Q,k,l){var v=this;k=k===void 0?0:k;l=l===void 0?0:l;XU(this,this.Pd()).gK();jJT(this.Zq,T,Q,k,l).then(function(){v.ZV.UM("onQueuedVideoLoaded")},function(){})}; g.h.jZ=function(){return this.Zq.jZ()}; g.h.Mw=function(T){var Q=this.Zq.T;return Q?Q.Lf(T):!1}; g.h.clearQueue=function(T,Q){T=T===void 0?!1:T;Q=Q===void 0?!1:Q;this.logger.debug("Clearing queue");this.Zq.clearQueue(T,Q)}; g.h.loadVideoByPlayerVars=function(T,Q,k,l,v,L){Q=Q===void 0?1:Q;var q=this.Lc();if(Q===2&&this.mF().enableServerStitchedDai&&q&&!q.ME())return q.T9("lvonss",{vid:(T==null?void 0:T.videoId)||"",ptype:Q}),!1;var Y=!1;q=new g.mR(this.Hd,T);q.Ct=L;g.XT(this.Hd)&&!q.dO&&XB(this.Rg);var U;L=this.Rg;var R=(U=q.z9)!=null?U:"";L.timerName=R;this.Rg.Uh("pl_i");this.V("web_player_early_cpn")&&q.clientPlaybackNonce&&this.Rg.infoGel({clientPlaybackNonce:q.clientPlaybackNonce});ZQ5(q).supportsVp9Encoding===!1&& this.Pd().T9("noVp9enc",{});if(this.G().supportsGaplessShorts()){U=oIy(this.Zq,q,Q);if(U==null){zt(this,-1);var Z;((Z=this.Zq.T)==null?0:Z.getVideoData().isAd())||P5(this);T=this.Zq;T.app.G().V("html5_gapless_new_slr")?nq(T.app,"gaplessshortslooprange"):T.app.setLoopRange(null);T.app.getVideoData().zB=!0;var f;(f=T.T)==null||f.tU();var G;(G=T.T)==null||G.M6();k={I_:"gapless_to_next_video",seekSource:60,gW:T.N.T};l=g.jj(T.app.G().experiments,"html5_gapless_seek_offset");v=lPI(T);if(T.N.T){var m;q= ((m=T.L)==null?void 0:JE(m))||{};m=q.BR;q=q.RO;q!=null&&m!=null&&(v=q-m+.001)}var I;(I=T.app.Pd())==null||I.seekTo(v+l,k);if(!T.app.getPlayerStateObject(Q).isPlaying()){var z;(z=T.app.Pd())==null||z.playVideo(!0)}var w;(w=T.app.Pd())==null||w.d9();T.C();return!0}I=this.V("html5_shorts_gapless_preload_fallback");z=this.Zq.T;I&&z&&!z.wd()&&(w=z.getVideoData(),this.CA.N.set(H5(Q,w),z,3600));this.Zq.clearQueue(I);this.Pd().T9("sgap",{f:U})}if(v){for(;q.OU.length&&q.OU[0].isExpired();)q.OU.shift();I=q.OU.length- 1;Y=I>0&&v.S(q.OU[I])&&v.S(q.OU[I-1]);q.OU.push(v)}k||(T&&AnC(T)?(h9(this.Hd)&&!this.PG&&(T.fetch=0),An(this,T)):this.playlist&&An(this,null),T&&(this.PG=jG(!1,T.external_list)));this.ZV.publish("loadvideo");I=this.Ln(q,Q,l);Y&&this.XG("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+q.OU.join()).replace(/[;:,]/g,"_"));return I}; g.h.preloadVideoByPlayerVars=function(T,Q,k,l,v){Q=Q===void 0?1:Q;k=k===void 0?NaN:k;l=l===void 0?"":l;v=v===void 0?"":v;var L=ZKT(Q,T,v),q=this.CA.N.get(L)||null;if(q)return this.logger.debug(function(){return"already preloaded "+L}),this.V("html5_return_playback_if_already_preloaded")?q:null; T=new g.mR(this.Hd,T);v&&(T.lC=v);return RkT(this,T,Q,k,l)}; g.h.setMinimized=function(T){this.visibility.setMinimized(T);(T=oFT(this.TH))&&(this.isMinimized()?T.load():T.unload());this.ZV.publish("minimized")}; g.h.setInline=function(T){this.visibility.setInline(T)}; g.h.setInlinePreview=function(T){this.visibility.setInline(T)}; g.h.DN=function(T){GM5(this,T)||this.visibility.DN(T)}; g.h.setSqueezeback=function(T){this.visibility.setSqueezeback(T)}; g.h.t8=function(){var T,Q=(T=this.mediaElement)==null?void 0:T.xB();Q&&(this.Hd.u$&&ar(rq(function(){return document.exitFullscreen()}),function(){}),ar(rq(function(){return I1(Q)}),function(){}))}; g.h.tVH=function(){this.mediaElement.xB();this.mediaElement.xB().webkitPresentationMode==="picture-in-picture"?this.DN(!0):this.DN(!1)}; g.h.togglePictureInPicture=function(){this.Pd().togglePictureInPicture()}; g.h.Ln=function(T,Q,k){Q=Q===void 0?1:Q;this.logger.debug(function(){return"start load video, id "+T.videoId+", type "+Q}); bU("_start",this.Rg.timerName)||g.E4(sH)(void 0,this.Rg.timerName);var l=!1,v=voC(this,Q,T,!1);v?(l=!0,T.dispose()):(v=Cq(this,Q,T,!0,k),(this.V("html5_onesie")||this.V("html5_load_before_stop"))&&v.dZ()&&v.I3(),this.uw.stop(),Q===1&&Q!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,Q),this.l$(v));v===this.Lc()&&(this.Hd.b7=T.oauthToken);if(!v.dZ())return!1;if(v===this.Lc())return this.pU(1),k=rk(this),l&&this.V("html5_player_preload_ad_fix")&&v.getPlayerType()===1&& v.qW()&&this.Kp("dataloaded",v,v.getVideoData()),k;v.Pw();return!0}; g.h.cueVideoByPlayerVars=function(T,Q){var k=this;Q=Q===void 0?1:Q;var l=this.Lc();if(this.mF().enableServerStitchedDai&&l&&!l.ME()&&T&&Object.keys(T).length>0)l.T9("qvonss",{vid:(T==null?void 0:T.videoId)||"",ptype:Q});else if(T&&AnC(T))if(this.oA=!0,An(this,T),(T=g.wN(this.playlist))&&T.Hk())O0(this,T,Q);else this.playlist.onReady(function(){bG(k)}); else{Q||(Q=this.getPresentingPlayerType());Q===1&&this.Nd();l=new g.mR(this.Hd,T);var v=g.Qk(this.Hd)&&!this.Hd.qO&&Q===1&&!l.isAd()&&!l.pG;this.ZV.publish("cuevideo");v?(this.Pd().getVideoData().loading=!0,n7X(l,T?T:{}).then(function(L){O0(k,L,Q)}),l.dispose()):O0(this,l,Q)}}; g.h.mG=function(T,Q,k,l,v,L,q){if(!T&&!k)throw Error("Playback source is invalid");if(kL(this.Hd)||g.ZX(this.Hd))return Q=Q||{},Q.lact=Bd(),Q.vis=this.ZV.getVisibilityState(),this.ZV.tj("onPlayVideo",{videoId:T,watchEndpoint:L,sessionData:Q,listId:k}),!1;ddX(this.Rg);this.Rg.reset();T={video_id:T};l&&(T.autoplay="1");l&&(T.autonav="1");L&&(T.player_params=L.playerParams);q&&(T.oauth_token=q);k?(T.list=k,this.loadPlaylist(T)):this.loadVideoByPlayerVars(T,1);return!0}; g.h.cuePlaylist=function(T,Q,k,l){this.oA=!0;mGT(this,T,Q,k,l)}; g.h.loadPlaylist=function(T,Q,k,l){this.oA=!1;mGT(this,T,Q,k,l)}; g.h.FS=function(){return this.ZV.isMutedByMutedAutoplay()?!1:this.CA.GP?!0:!(!this.playlist||!this.playlist.G0())}; g.h.wS=T5(5); g.h.nextVideo=function(T,Q){var k=g.zV(this.Lc().getVideoData());g.QS(this.ZV)&&k?this.mG(k.videoId,Q?k.y5:k.sessionData,k.playlistId,Q,void 0,k.J8||void 0):this.PG?this.ZV.UM("onPlaylistNext"):this.getPresentingPlayerType()===3?e$(this.TH).nextVideo():!this.playlist||h9(this.Hd)&&!this.ZV.isFullscreen()||(this.playlist.G0(T)&&cnb(this.playlist,bqf(this.playlist)),this.playlist.loaded?(T=Q&&this.Hd.V("html5_player_autonav_logging"),Q&&this.ZV.publish("playlistautonextvideo"),this.Ln(g.wN(this.playlist,void 0, Q,T),1)):this.oA=!1)}; g.h.previousVideo=function(T){this.PG?this.ZV.UM("onPlaylistPrevious"):this.getPresentingPlayerType()===3?e$(this.TH).Bi():!this.playlist||h9(this.Hd)&&!this.ZV.isFullscreen()||(this.playlist.E_(T)&&cnb(this.playlist,rnt(this.playlist)),this.playlist.loaded?this.Ln(g.wN(this.playlist),1):this.oA=!1)}; g.h.playVideoAt=function(T){this.PG?this.ZV.UM("onPlaylistIndex",T):this.playlist&&(this.playlist.loaded?this.Ln(g.wN(this.playlist,T),1):this.oA=!1,cnb(this.playlist,T))}; g.h.getPlaylist=function(){return this.playlist}; g.h.wH=T5(19);g.h.IU=function(T){this.Bw=g.bl(this.Bw,function(L){return L.id!==T}); for(var Q=this.Lc(),k=Q.TP(),l=0;l0&&(U=Math.floor(R/1E3))}U=Q?Q.bf:U;var Z={AD_BLOCK:this.T++,AD_BREAK_LENGTH:U,AUTONAV_STATE:$7(this.player.G()),CA_TYPE:"image",CPN:Y.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.As()*1E3,LACT:Bd(),LIVE_INDEX:Q?this.L++:1,LIVE_TARGETING_CONTEXT:Q&&Q.context?Q.context:"",MIDROLL_POS:L? Math.round(L.start/1E3):0,MIDROLL_POS_MS:L?Math.round(L.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.Hx().J9().height,P_W:this.player.Hx().J9().width,YT_REMOTE:v?v.join(","):""},f=M2(gV);Object.keys(f).forEach(function(m){f[m]!=null&&(Z[m.toUpperCase()]=f[m].toString())}); k!==""&&(Z.BISCOTTI_ID=k);k={};q2(T)&&(k.sts="20297",(Q=this.player.G().forcedExperiments)&&(k.forced_experiments=Q));var G=oU(g.Ae(T,Z),k);return G.split("?").length!==2?aS(Error("Invalid AdBreakInfo URL")):g.rj(this.player.G(),Y==null?void 0:Y.oauthToken).then(function(m){if(m&&Lh()){var I=lf();oR(I,m)}m=l.player.HG(I);I=EoJ(l,G,Z,Y.isMdxPlayback,q);return g.uU(m,I,"/youtubei/v1/player/ad_break").then(function(z){return z})})}; Jn.prototype.reset=function(){this.L=this.T=1};g.S(yRH,Jn); yRH.prototype.S=function(T,Q,k){Q=Q===void 0?{}:Q;var l=Q.Bm;var v=Q.qV;var L=Q.cueProcessedMs;k=k===void 0?"":k;Q=this.T;this.T++;var q=this.player.G().V("h5_disable_macro_substitution_in_get_ad_break")?T:iKf(this,T,{Bm:l,qV:v,cueProcessedMs:L},k,Q);if(q.split("?").length!==2)return Math.random()<.1&&g.rB(Error("Invalid AdBreakInfo URL")),aS(Error("Invalid AdBreakInfo URL"));var Y=this.player.getVideoData(1).isMdxPlayback,U=k;k=OK5.exec(q);k=k!=null&&k.length>=2?k[1]:"";T=pF5.test(q);var R=Wgb.exec(q); R=R!=null&&R.length>=2?R[1]:"";var Z=$GH.exec(q);Z=Z!=null&&Z.length>=2&&!Number.isNaN(Number(Z[1]))?Number(Z[1]):1;var f=JRH.exec(q);f=f!=null&&f.length>=2?f[1]:"0";var G=U8(this.player.G().fz),m=g.Ee(this.player.getVideoData(1).Bd,!0);no6(this,m,q,U===""?"":U,this.player.G(),this.player.getVideoData(1));U={splay:!1,lactMilliseconds:String(Bd()),playerHeightPixels:Math.trunc(this.player.Hx().J9().height),playerWidthPixels:Math.trunc(this.player.Hx().J9().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20297,autonavState:$7(this.player.G())};if(Y){Y={};var I=this.player.G().Sf;PR5(Y,I?I.join(","):"")&&(U.mdxContext=Y)}if(Y=ek5.includes(G)?void 0:g.uC("PREF")){I=Y.split(RegExp("[:&]"));for(var z=0,w=I.length;z1&&r[1].toUpperCase()==="TRUE"){m.user.lockedSafetyMode=!0;break}}U.autoCaptionsDefaultOn=tR5(Y)}q=Fg5.exec(q);(q=q!=null&&q.length>=2?q[1]:"")&&R&&(m.user.credentialTransferTokens= [{token:q,scope:"VIDEO"}]);q={contentPlaybackContext:U};U=this.player.getVideoData(1).getGetAdBreakContext();Y=this.player.getVideoData(1).clientPlaybackNonce;I=L!==void 0?Math.round(L).toString():void 0;z=(l==null?0:l.context)?l.context:void 0;w=0;L&&v&&!l&&(v=v.end-v.start,v>0&&(w=Math.floor(v/1E3)));l=(l=Math.trunc((l?l.bf:w)*1E3))?String(l):void 0;v=this.player.As()*1E3;v=Number.isNaN(v)?0:Math.trunc(v);Q={adBlock:Q,params:k,breakIndex:Z,breakPositionMs:f,clientPlaybackNonce:Y,topLevelDomain:G, isProxyAdTagRequest:T,context:m,overridePlaybackContext:q,cueProcessedMs:I,videoId:R?R:void 0,liveTargetingParams:z,breakLengthMs:l,driftFromHeadMs:v?String(v):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:U?U:void 0};return VRC(this,Q)};var Mke={UB9:"replaceUrlMacros",P59:"onAboutThisAdPopupClosed",Iqq:"executeCommand"};TPf.prototype.CS=function(){return"adPingingEndpoint"}; TPf.prototype.Gm=function(T,Q,k){KOT(this.Vq.get(),T,Q,k)};Qk5.prototype.CS=function(){return"changeEngagementPanelVisibilityAction"}; Qk5.prototype.Gm=function(T){this.U.tj("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:T})};jkg.prototype.CS=function(){return"loggingUrls"}; jkg.prototype.Gm=function(T,Q,k){T=g.B(T);for(var l=T.next();!l.done;l=T.next())l=l.value,KOT(this.Vq.get(),l.baseUrl,Q,k,l.attributionSrcMode)};g.S(l$f,g.x);g.S(FU,g.x);g.h=FU.prototype;g.h.addListener=function(T){this.listeners.push(T)}; g.h.removeListener=function(T){this.listeners=this.listeners.filter(function(Q){return Q!==T})}; g.h.yw=function(T,Q,k,l,v,L,q,Y){if(T==="")MH("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(T!==this.T||k){this.T=T;this.UK.get().yw(T,Q,k,l,v,L,q,Y);this.l9.get().yw(T,Q,k,l,v,L,q,Y);var U;(U=this.DC)==null||U.get().yw(T,Q,k,l,v,L,q,Y);this.S.yw(T,Q,k,l,v,L,q,Y);U=g.B(this.listeners);for(var R=U.next();!R.done;R=U.next())R.value.yw(T,Q,k,l,v,L,q,Y)}else MH("Duplicate content video loaded signal")}; g.h.hek=function(){this.T&&this.v4(this.T)}; g.h.v4=function(T){this.T=void 0;for(var Q=g.B(this.listeners),k=Q.next();!k.done;k=Q.next())k.value.v4(T)};E0.prototype.nK=function(T,Q,k,l,v){ozu(this);this.N=!Q&&k===0;var L=this.U.getVideoData(1),q=this.U.getVideoData(2);L&&(this.contentCpn=L.clientPlaybackNonce,this.videoId=L.videoId,this.T=L.B);q&&(this.adCpn=q.clientPlaybackNonce,this.adVideoId=q.videoId,this.adFormat=q.adFormat);this.Y=T;l<=0?(ozu(this),this.N=!Q&&k===0):(this.actionType=this.N?Q?"unknown_type":"video_to_ad":Q?"ad_to_video":"ad_to_ad",this.videoStreamType=v?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.L=!0,bU("_start",this.actionType)&&qKt(this)))}; E0.prototype.reset=function(){return new E0(this.U)};g.S(yQ,g.x);yQ.prototype.addCueRange=function(T,Q,k,l,v,L,q,Y,U){L=L===void 0?3:L;q=q===void 0?1:q;this.T.has(T)?MH("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:T}):(T=new gzu(T,Q,k,l,L,Y,U),this.T.set(T.id,{qV:T,listener:v,Lv:q}),this.U.fY([T],q))}; yQ.prototype.removeCueRange=function(T){var Q=this.T.get(T);Q?(this.U.oM([Q.qV],Q.Lv),this.T.delete(Q.qV.id)):MH("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:T})}; yQ.prototype.onCueRangeEnter=function(T){if(this.T.has(T.id))this.T.get(T.id).listener.onCueRangeEnter(T.id)}; yQ.prototype.onCueRangeExit=function(T){if(this.T.has(T.id))this.T.get(T.id).listener.onCueRangeExit(T.id)}; g.S(gzu,g.$d);iG.prototype.addPlayerResponseForAssociation=function(T){this.U.addPlayerResponseForAssociation(T)};VQ.prototype.xA=function(T){this.U.xA(T)}; VQ.prototype.bu=function(T){var Q=g.HT.apply(1,arguments);T==="onAdStart"||T==="onAdEnd"?this.U.Pk.apply(this.U,[T].concat(g.ZH(Q))):this.U.tj.apply(this.U,[T].concat(g.ZH(Q)))};Tw.prototype.Zg=function(T){return T&&Qs(this)};var SKI=null;g.S(skt,g.ox);skt.prototype.pm=function(T){return this.T.hasOwnProperty(T)?this.T[T].pm():{}}; g.Tv("ytads.bulleit.getVideoMetadata",function(T){return jD().pm(T)}); g.Tv("ytads.bulleit.triggerExternalActivityEvent",function(T,Q,k){var l=jD();k=hst(k);k!==null&&l.publish(k,{queryId:T,viewabilityString:Q})});g.h=kF.prototype;g.h.Fw=function(T,Q){if(!this.T.has(T))return{};if(Q==="seek"){Q=!1;Q=Q===void 0?!1:Q;var k=SC(Fn).EA(T,{});k?WU(k):Q&&(T=SC(Fn).CV(null,uL(),!1,T),T.vg=3,zvb([T]));return{}}Q=BPX(Q);if(Q===null)return{};var l=this.U.I9();if(!l)return{};var v=this.U.getPresentingPlayerType(!0);if((k=this.U.getVideoData(v))==null||!k.isAd())return{};k={opt_adElement:l,opt_fullscreen:this.UK.get().isFullscreen()};return zH5(Q,T,k)}; g.h.mU=function(T,Q,k,l,v){this.T.has(T)&&(l<=0||v<=0||SC(Fn).mU(T,Q,k,l,v))}; g.h.GM=function(T){var Q;(Q=this.T.get(T.queryId))==null||Q.GM()}; g.h.KH=function(T){var Q;(Q=this.T.get(T.queryId))==null||Q.KH()}; g.h.PV=function(T){var Q;(Q=this.T.get(T.queryId))==null||Q.PV()}; g.h.bq=function(T){var Q;(Q=this.T.get(T.queryId))==null||Q.bq()}; g.h.IA=function(T){var Q;(Q=this.T.get(T.queryId))==null||Q.IA()};cDt.prototype.send=function(T,Q,k,l){try{DkT(this,T,Q,k,l===void 0?!1:l)}catch(v){}};g.S(a$J,cDt);u75.prototype.send=function(T,Q,k,l){var v=!1;try{if(l==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||l==="ATTRIBUTION_SRC_MODE_XHR_OPTION")v=!0,T=MmI(T);l=v;var L=g.UD(T);if(L[1]==="https")var q=T;else L[1]="https",q=Y4("https",L[2],L[3],L[4],L[5],L[6],L[7]);var Y=gfT(q);L=[];var U=yd5(q)&&this.Qq.get().U.G().experiments.Wd("add_auth_headers_to_remarketing_google_dot_com_ping");if(q2(q)||U)L.push({headerType:"USER_AUTH"}),L.push({headerType:"PLUS_PAGE_ID"}),L.push({headerType:"VISITOR_ID"}),L.push({headerType:"EOM_VISITOR_ID"}), L.push({headerType:"AUTH_USER"}),L.push({headerType:"DATASYNC_ID"});this.T.send({baseUrl:q,scrubReferrer:Y,headers:L},Q,k,l)}catch(R){}};qC.prototype.Cd=function(){return this.U.Cd(1)};g.S(gY,g.x);g.h=gY.prototype;g.h.Zs=function(){return this.U.getVideoData(1).clientPlaybackNonce}; g.h.addListener=function(T){this.listeners.push(T)}; g.h.removeListener=function(T){this.listeners=this.listeners.filter(function(Q){return Q!==T})}; g.h.yw=function(){this.t$.clear();this.YS=null;this.fU.get().clear()}; g.h.v4=function(){}; g.h.YM9=function(T,Q,k,l,v){Q.videoId==="nPpU29QrbiU"&&this.U.T9("ads_ssm_vdc_s",{pt:k,dvt:T});tC(this.Qq.get())&&T!=="dataloaded"||WOu(this,Q,k);if(Qs(this.Qq.get())&&T==="newdata"&&v!==void 0){T=this.Zs();var L=Q.clientPlaybackNonce,q={};gC(this,"rte",(q.ec=L,q.xc=l==null?void 0:l.clientPlaybackNonce,q.tr=v,q.pt=k,q.ia=L!==T,q.ctp=q$(L),q));Q=Q.clientPlaybackNonce;l=l==null?void 0:l.clientPlaybackNonce;v=$k5(v);if(v!==1)if(l!==void 0)for(k=g.B(this.listeners),T=k.next();!T.done;T=k.next())T.value.tL(l, Q,v);else MH("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:Q,transitionReason:String(v)});v=g.B(this.listeners);for(l=v.next();!l.done;l=v.next())l.value.un(Q)}}; g.h.vce=function(T,Q){T!==void 0&&(this.YS=T,Q===void 0?MH("Expected ad video start time on SS video changed"):this.t$.set(T,Q));var k=this.U.getPresentingPlayerType(!0),l=this.U.getVideoData(k),v;T===void 0?v=null:v=this.fU.get().T.get(T)||null;this.U.getVideoData(1).T9("ads_ssvc",{pt:k,cpn:l==null?void 0:l.clientPlaybackNonce,crtt:this.U.getCurrentTime(1,!1),atlh:this.U.isAtLiveHead(),adstt:Q,pid:T,slid:v==null?void 0:v.layoutId});l?WOu(this,l,k):MH("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.U.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:T})}; g.h.pK=function(T,Q){var k=T.author,l=T.clientPlaybackNonce,v=T.isListed,L=T.lC,q=T.title,Y=T.w8,U=T.SO,R=T.isMdxPlayback,Z=T.Yz,f=T.mdxEnvironment,G=T.isAutonav,m=T.nU,I=T.dO,z=T.LX,w=T.videoId||"",r=T.profilePicture||"",A=T.hH||"",D=T.aD()||!1,K=T.lf()||!1;T=T.jg||void 0;L=this.fU.get().T.get(L)||{layoutId:null,slotId:null};var O=this.U.getVideoData(1),E=O.Cc();O=O.getPlayerResponse();Q=1E3*this.U.getDuration(Q);var e=1E3*this.U.getDuration(1),vT,f5,qJ=(O==null?void 0:(vT=O.playerConfig)==null? void 0:(f5=vT.daiConfig)==null?void 0:f5.enableDai)||!1,g6,QC;vT=(O==null?void 0:(g6=O.playerConfig)==null?void 0:(QC=g6.daiConfig)==null?void 0:QC.enablePreroll)||!1;return Object.assign({},L,{videoId:w,author:k,clientPlaybackNonce:l,s9:Q,Y$:e,daiEnabled:qJ,VB:vT,isListed:v,Cc:E,profilePicture:r,title:q,hH:A,w8:Y,SO:U,jg:T,isMdxPlayback:R,Yz:Z,mdxEnvironment:f,isAutonav:G,nU:m,dO:I,LX:z,aD:D,lf:K})}; g.h.EK=function(){this.listeners.length=0;this.Vh=null;g.x.prototype.EK.call(this)};g.S(MC,g.x);g.h=MC.prototype;g.h.yw=function(){var T=this;Qs(this.Qq.get())||(this.T=u5(function(){T.U.wd()||T.U.Ju("ad",1)}))}; g.h.v4=function(){}; g.h.addListener=function(T){this.listeners.push(T)}; g.h.removeListener=function(T){this.listeners=this.listeners.filter(function(Q){return Q!==T})}; g.h.W6=function(){}; g.h.playVideo=function(){this.U.playVideo()}; g.h.pauseVideo=function(){this.U.pauseVideo()}; g.h.resumeVideo=function(T){this.zz(T)&&this.U.playVideo()}; g.h.zz=function(T){return this.U.getPlayerState(T)===2}; g.h.getCurrentTimeSec=function(T,Q,k){var l=this.l9.get().YS;if(T===2&&!Q&&l!==null)return Rw(this,l);KF(this.Qq.get(),"html5_ssap_use_cpn_to_get_time")||(k=void 0);return k!==void 0?this.U.getCurrentTime(T,Q,k):this.U.getCurrentTime(T,Q)}; g.h.getVolume=function(){return this.U.getVolume()}; g.h.isMuted=function(){return this.U.isMuted()}; g.h.getPresentingPlayerType=function(){return this.U.getPresentingPlayerType(!0)}; g.h.getPlayerState=function(T){return this.U.getPlayerState(T)}; g.h.getGetAdBreakContext=function(){return this.U.getGetAdBreakContext()}; g.h.isFullscreen=function(){return this.U.isFullscreen()}; g.h.isAtLiveHead=function(){return this.U.isAtLiveHead()}; g.h.uX=function(T){this.U.uX(T)}; g.h.Xhe=function(){var T=this.U.getPresentingPlayerType(!0),Q=this.getCurrentTimeSec(T,!1);if(T===2){T=g.B(this.listeners);for(var k=T.next();!k.done;k=T.next())k.value.qN(Q)}else if(T===1)for(T=g.B(this.KQ),k=T.next();!k.done;k=T.next())k.value.W6(Q)}; g.h.aPj=function(T){for(var Q=g.B(this.listeners),k=Q.next();!k.done;k=Q.next())k.value.DG(T,this.getPresentingPlayerType())}; g.h.onFullscreenToggled=function(T){for(var Q=g.B(this.listeners),k=Q.next();!k.done;k=Q.next())k.value.onFullscreenToggled(T)}; g.h.onVolumeChange=function(){for(var T=g.B(this.listeners),Q=T.next();!Q.done;Q=T.next())Q.value.onVolumeChange()}; g.h.Gw=function(){for(var T=this.U.isMinimized(),Q=g.B(this.listeners),k=Q.next();!k.done;k=Q.next())k.value.Gw(T)}; g.h.zk=function(T){for(var Q=g.B(this.listeners),k=Q.next();!k.done;k=Q.next())k.value.zk(T)}; g.h.zx=function(){for(var T=this.U.Hx().J9(),Q=g.B(this.listeners),k=Q.next();!k.done;k=Q.next())k.value.UF(T)}; g.h.Hg=function(T){for(var Q=g.B(this.listeners),k=Q.next();!k.done;k=Q.next())k.value.Hg(T)}; g.h.gC=function(){for(var T=g.B(this.listeners),Q=T.next();!Q.done;Q=T.next())Q.value.gC()};g.S(Ez5,g.x);g.S(Gw,g.x);Gw.prototype.EK=function(){this.Tz.wd()||this.Tz.get().removeListener(this);g.x.prototype.EK.call(this)};mw.prototype.fetch=function(T){var Q=T.uI;return this.T.fetch(T.nT,{Bm:T.Bm===void 0?void 0:T.Bm,qV:Q,cueProcessedMs:T.cueProcessedMs===void 0?0:T.cueProcessedMs}).then(function(k){return yD5(k,Q)})};g.S(Iw,g.x);g.h=Iw.prototype;g.h.addListener=function(T){this.listeners.push(T)}; g.h.removeListener=function(T){this.listeners=this.listeners.filter(function(Q){return Q!==T})}; g.h.mQ=function(T){i4f(this,T,1)}; g.h.onAdUxClicked=function(T,Q){hY(this,function(k){k.xe(T,Q)})}; g.h.P6=function(T){hY(this,function(Q){Q.iY(T)})}; g.h.GD=function(T){hY(this,function(Q){Q.ma(T)})}; g.h.RHj=function(T){hY(this,function(Q){Q.Yk(T)})};sm.prototype.reduce=function(T){switch(T.event){case "unknown":return}var Q=T.identifier;var k=this.T[Q];k?Q=k:(k={nQ:null,Po:-Infinity},Q=this.T[Q]=k);k=T.startSecs+T.T/1E3;if(!(k=this.T.startSecs&&k.startSecs<=this.T.startSecs+this.T.bf)){var l=void 0;if(Og(this.Qq.get())&&k.identifier!==((l=this.T)==null?void 0:l.identifier)){var v=l=void 0,L=void 0,q=void 0;Cw(this.Vq.get(),"ocud","ccpi."+k.identifier+";ccpe."+k.event+";ccps."+k.startSecs+";\n ccpd."+k.bf+";pcpi."+((l=this.T)==null?void 0:l.identifier)+ ";pcpe."+((v=this.T)==null?void 0:v.event)+";\n pcps."+((L=this.T)==null?void 0:L.startSecs)+";pcpd."+((q=this.T)==null?void 0:q.bf)+";")}l=void 0;k.identifier!==((l=this.T)==null?void 0:l.identifier)&&MH("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.T=k,QI9(this,k)}}; g.h.EK=function(){this.S!=null&&(this.S.unsubscribe("cuepointupdated",this.v6,this),this.S=null);this.listeners.length=0;this.DF.length=0;g.x.prototype.EK.call(this)};g.h=Bb.prototype;g.h.XK=function(T,Q,k,l,v,L,q,Y){return this.U.XK(T,Q,k,l,v,L,q,Y)}; g.h.Fc=function(T,Q){this.U.Fc(T,Q)}; g.h.AA=function(T,Q,k){this.U.AA(T,Q,k)}; g.h.eM=function(T){this.U.eM(T)}; g.h.vU=function(T,Q,k,l,v,L,q,Y){this.U.vU(T,Q,k,l,v,L,q,Y)}; g.h.EY=function(T){return this.U.EY(T)}; g.h.finishSegmentByCpn=function(T,Q,k){k=lHd(k);this.U.finishSegmentByCpn(T,Q,k)};g.S(zw,g.x);g.S(vbT,g.x);g.S(LX$,g.x);g.S(qtv,g.x);g.S(gbA,g.x);g.S(Mfp,g.x);g.S(UJp,g.x);UJp.prototype.L=function(){return this.S};g.S(RuW,OC); RuW.prototype.L=function(T){var Q=T.content;if(Q.componentType==="shopping-companion")switch(T.actionType){case 1:case 2:T=this.T.getVideoData(1);this.T.tj("updateKevlarOrC3Companion",{contentVideoId:T&&T.videoId,shoppingCompanionCarouselRenderer:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.T,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:this.T.tj("updateKevlarOrC3Companion",{})}else if(Q.componentType==="action-companion")switch(T.actionType){case 1:case 2:T=this.T.getVideoData(1); this.T.tj("updateKevlarOrC3Companion",{contentVideoId:T&&T.videoId,actionCompanionAdRenderer:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.T,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:Q.renderer&&(Q=this.T.getVideoData(1),this.T.tj("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId})),this.T.tj("updateKevlarOrC3Companion",{})}else if(Q.componentType==="image-companion")switch(T.actionType){case 1:case 2:T=this.T.getVideoData(1);this.T.tj("updateKevlarOrC3Companion", {contentVideoId:T&&T.videoId,imageCompanionAdRenderer:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.T,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:Q=this.T.getVideoData(1),this.T.tj("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId}),this.T.tj("updateKevlarOrC3Companion",{})}else if(Q.componentType==="top-banner-image-text-icon-buttoned")switch(T.actionType){case 1:case 2:T=this.T.getVideoData(1);this.T.tj("updateKevlarOrC3Companion", {contentVideoId:T&&T.videoId,topBannerImageTextIconButtonedLayoutViewModel:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.T,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:Q.renderer&&(Q=this.T.getVideoData(1),this.T.tj("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId})),this.T.tj("updateKevlarOrC3Companion",{})}else if(Q.componentType==="banner-image")switch(T.actionType){case 1:case 2:T=this.T.getVideoData(1);this.T.tj("updateKevlarOrC3Companion", {contentVideoId:T&&T.videoId,bannerImageLayoutViewModel:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.T,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:Q=this.T.getVideoData(1),this.T.tj("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId}),this.T.tj("updateKevlarOrC3Companion",{})}else if(Q.componentType==="ads-engagement-panel")switch(Q=Q.renderer,T.actionType){case 1:case 2:this.T.tj("updateEngagementPanelAction",Q.addAction);this.T.tj("changeEngagementPanelVisibility", Q.expandAction);break;case 3:this.T.tj("changeEngagementPanelVisibility",Q.hideAction),this.T.tj("updateEngagementPanelAction",Q.removeAction)}else if(Q.componentType==="ads-engagement-panel-layout"){var k=Q.renderer;switch(T.actionType){case 1:case 2:this.T.tj("updateEngagementPanelAction",{action:uA(k.addAction),layoutId:Q.layoutId,onLayoutVisibleCallback:Q.T,interactionLoggingClientData:Q.interactionLoggingClientData});this.T.tj("changeEngagementPanelVisibility",uA(k.expandAction));break;case 3:this.T.tj("changeEngagementPanelVisibility", uA(k.hideAction)),this.T.tj("updateEngagementPanelAction",{action:uA(k.removeAction)})}}};g.S(Z5_,y6);g.h=Z5_.prototype;g.h.init=function(T,Q,k){y6.prototype.init.call(this,T,Q,k);g.W2(this.L,"stroke-dasharray","0 "+this.S);this.L.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.B.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.Y.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){V6(this);y6.prototype.hide.call(this)}; g.h.show=function(){iD(this);y6.prototype.show.call(this)}; g.h.yF=function(){this.hide()}; g.h.yb=function(){if(this.T){var T=this.T.getProgressState();T!=null&&T.current!=null&&g.W2(this.L,"stroke-dasharray",T.current/T.seekableEnd*this.S+" "+this.S)}};g.S(fHv,Y8);g.h=fHv.prototype; g.h.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);if(Q.image&&Q.image.thumbnail)if(Q.headline)if(Q.description)if(Q.backgroundImage&&Q.backgroundImage.thumbnail)if(Q.actionButton&&g.t(Q.actionButton,g.jw))if(T=Q.durationMilliseconds||0,typeof T!=="number"||T<=0)g.bA(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+T));else if(Q.navigationEndpoint){var l=this.api.getVideoData(2);if(l!=null){var v=Q.image.thumbnail.thumbnails;v!=null&& v.length>0&&g.bB(g.cX(v[0].url))&&(v[0].url=l.profilePicture,g.bB(g.cX(l.profilePicture))&&JWJ("VideoPlayer",239976093,"Expected non-empty profile picture."));v=Q.backgroundImage.thumbnail.thumbnails;v!=null&&v.length>0&&g.bB(g.cX(v[0].url))&&(v[0].url=l.rO());v=Q.headline;v!=null&&g.bB(g.cX(v.text))&&(v.text=l.author)}this.D.init(k8("ad-image"),Q.image,k);this.B.init(k8("ad-text"),Q.headline,k);this.L.init(k8("ad-text"),Q.description,k);this.Jj.init(k8("ad-image"),Q.backgroundImage,k);l=["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.B.element.classList.add("ytp-ad-action-interstitial-headline-light");this.L.element.classList.add("ytp-ad-action-interstitial-description-light");l.push("ytp-ad-action-interstitial-action-button-dark");this.api.G().S&&(l.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),l.push("ytp-ad-action-interstitial-action-button-dark"));this.api.G().V("enable_unified_action_endcap_on_web")&& !this.api.G().S&&(l.push("ytp-ad-action-interstitial-action-button-unified"),this.K_.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.D.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.f_.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.fG.classList.add("ytp-ad-action-interstitial-card-unified"),this.qO.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.L.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.i9.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.B.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.Bd.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.sK.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new rD(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,l);g.P(this,this.actionButton);this.actionButton.XB(this.K_); this.actionButton.init(k8("button"),g.t(Q.actionButton,g.jw),k);te(this.actionButton.element);l=Je(this.actionButton.element);pV(this.actionButton.element,l+" This link opens in new tab");this.navigationEndpoint=Q.navigationEndpoint;this.Y.Z(this.Bd,"click",this.Fo,this);this.Y.Z(this.qO,"click",this.Fo,this);!this.api.G().V("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.G().S||this.Y.Z(this.i9,"click",this.Fo,this);this.T=this.Hv?new se(this.api,T):new SM(T);g.P(this,this.T);if(Q.skipButton){(T= g.t(Q.skipButton,XXd))&&this.T&&(this.skipButton=new ZV(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.T,this.kq),g.P(this,this.skipButton),this.skipButton.XB(this.element),this.skipButton.init(k8("skip-button"),T,k));if(k=Q.adBadgeRenderer)if(k=g.t(k,zCA))T=new IY(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,!0,!0),T.XB(this.sK),T.init(k8("simple-ad-badge"),k,this.macros),g.P(this,T);if(k=Q.adInfoRenderer)if(k=g.t(k,TT))T=new ex(this.api,this.layoutId,this.interactionLoggingClientData, this.G9,this.element,void 0,!0),T.XB(this.sK),T.init(k8("ad-info-hover-text-button"),k,this.macros),g.P(this,T)}else Q.nonskippableOverlayRenderer&&(T=g.t(Q.nonskippableOverlayRenderer,QN))&&this.T&&(this.S=new jM(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.T,!1),g.P(this,this.S),this.S.XB(this.element),this.S.init(k8("ad-preview"),T,k));Q.countdownRenderer&&(Q=Q.countdownRenderer,g.t(Q,wXe)&&this.T&&(k=new Z5_(this.api,this.layoutId,this.interactionLoggingClientData,this.G9, this.T),g.P(this,k),k.XB(this.element),k.init(k8("timed-pie-countdown"),g.t(Q,wXe),this.macros)));this.show();this.element.focus()}else g.bA(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.bA(Error("AdActionInterstitialRenderer has no button."));else g.bA(Error("AdActionInterstitialRenderer has no background AdImage."));else g.bA(Error("AdActionInterstitialRenderer has no description AdText."));else g.bA(Error("AdActionInterstitialRenderer has no headline AdText."));else g.bA(Error("AdActionInterstitialRenderer has no image."))}; g.h.clear=function(){g.N5(this.Y);this.hide()}; g.h.show=function(){G5d(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.S&&this.S.show();Y8.prototype.show.call(this)}; g.h.hide=function(){G5d(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.S&&this.S.hide();Y8.prototype.hide.call(this)}; g.h.Fo=function(){this.navigationEndpoint&&(this.layoutId?this.G9.executeCommand(this.navigationEndpoint,this.layoutId):g.bA(Error("Missing layoutId for ad action interstitial.")))};var Ste={iconType:"CLOSE"},NC=new g.Ji(320,63);g.S(sIe,Y8);g.h=sIe.prototype; g.h.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);this.Y=Q;this.D=g.r$(this.Y.onClickCommands||[]);this.sK=this.Y.onErrorCommand||null;if(T=this.Y.contentSupportedRenderer)T=this.Y.contentSupportedRenderer,Q=this.Y.adInfoRenderer||null,g.t(T,SkW)?(this.B=g.gK("ytp-ad-overlay-ad-info-button-container",this.L.element),Cym(this,Q),T=zuW(this,g.t(T,SkW))):g.t(T,CXd)?(this.B=g.gK("ytp-ad-overlay-ad-info-button-container",this.S.element),Cym(this,Q),T=XTE(this,g.t(T,CXd))):g.t(T,Bap)?(this.B= g.gK("ytp-ad-overlay-ad-info-button-container",this.T.element),Cym(this,Q),T=wTW(this,g.t(T,Bap))):(g.bA(Error("InvideoOverlayAdRenderer content could not be initialized.")),T=!1);T&&(this.show(),dJA(this,!0))}; g.h.clear=function(){dJA(this,!1);this.Bd.reset();this.qO=0;this.L.hide();this.logVisibility(this.L.element,!1);this.S.hide();this.logVisibility(this.S.element,!1);this.T.hide();this.logVisibility(this.T.element,!1);this.hide();this.dispose()}; g.h.chj=function(){this.K_&&(this.layoutId?this.G9.executeCommand(this.K_,this.layoutId):g.bA(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.h.Dv=function(){a:{if(this.Y&&this.Y.closeButton&&this.Y.closeButton.buttonRenderer){var T=this.Y.closeButton.buttonRenderer;if(T.serviceEndpoint){T=[T.serviceEndpoint];break a}}T=[]}T=g.B(T);for(var Q=T.next();!Q.done;Q=T.next())Q=Q.value,this.layoutId?this.G9.executeCommand(Q,this.layoutId):g.bA(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.h.Xdm=function(){this.Jj||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.h.FA=function(){this.Jj||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.FA("invideo-overlay")}; g.h.UOj=function(T){T.target===this.B&&g.gK("ytp-ad-button",this.f_.element).click()};g.S(N6A,y6);g.h=N6A.prototype;g.h.init=function(T,Q,k){y6.prototype.init.call(this,T,Q,k);T=Q.durationMs;this.L=T==null||T===0?0:T+this.T.getProgressState().current*1E3;if(Q.text)var l=Q.text.templatedAdText;else Q.staticMessage&&(l=Q.staticMessage);this.messageText.init(k8("ad-text"),l,k);this.messageText.XB(this.S.element);this.Y.show(100);this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){A5W(this,!1);y6.prototype.hide.call(this);this.S.hide();this.messageText.hide();V6(this)}; g.h.show=function(){A5W(this,!0);y6.prototype.show.call(this);iD(this);this.S.show();this.messageText.show()}; g.h.yF=function(){this.hide()}; g.h.yb=function(){if(this.T!=null){var T=this.T.getProgressState();T!=null&&T.current!=null&&(T=1E3*T.current,!this.qO&&T>=this.L?(this.Y.hide(),this.qO=!0):this.messageText&&this.messageText.isTemplated()&&(T=Math.max(0,Math.ceil((this.L-T)/1E3)),T!==this.B&&(EC(this.messageText,{TIME_REMAINING:String(T)}),this.B=T)))}};g.S(b5W,Y8);g.h=b5W.prototype; g.h.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,{});Q.image&&Q.image.thumbnail?Q.headline?Q.description?Q.actionButton&&g.t(Q.actionButton,g.jw)?(this.L.init(k8("ad-image"),Q.image,k),this.S.init(k8("ad-text"),Q.headline,k),this.Y.init(k8("ad-text"),Q.description,k),this.actionButton=new rD(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,["ytp-ad-underlay-action-button"]),Q.backgroundColor&&g.W2(this.element,"background-color",g.nN(Q.backgroundColor)),g.P(this,this.actionButton), this.actionButton.XB(this.B),this.actionButton.init(k8("button"),g.t(Q.actionButton,g.jw),k),T=g.jj(this.api.G().experiments,"player_underlay_video_width_fraction"),this.api.G().V("place_shrunken_video_on_left_of_player")?(Q=this.T,g.Lb(Q,"ytp-ad-underlay-left-container"),g.oF(Q,"ytp-ad-underlay-right-container"),g.W2(this.T,"margin-left",Math.round((T+.02)*100)+"%")):(Q=this.T,g.Lb(Q,"ytp-ad-underlay-right-container"),g.oF(Q,"ytp-ad-underlay-left-container")),g.W2(this.T,"width",Math.round((1-T- .04)*100)+"%"),this.api.VH()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.md.bind(this)),this.api.addEventListener("resize",this.YN.bind(this))):g.bA(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.bA(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.bA(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.bA(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.h.show=function(){r5W(!0);this.actionButton&&this.actionButton.show();Y8.prototype.show.call(this)}; g.h.hide=function(){r5W(!1);this.actionButton&&this.actionButton.hide();Y8.prototype.hide.call(this)}; g.h.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.md.bind(this));this.api.removeEventListener("resize",this.YN.bind(this));this.hide()}; g.h.onClick=function(T){Y8.prototype.onClick.call(this,T);this.actionButton&&g.SO(this.actionButton.element,T.target)&&this.api.pauseVideo()}; g.h.md=function(T){T==="transitioning"?(this.T.classList.remove("ytp-ad-underlay-clickable"),this.show()):T==="visible"?this.T.classList.add("ytp-ad-underlay-clickable"):T==="hidden"&&(this.hide(),this.T.classList.remove("ytp-ad-underlay-clickable"))}; g.h.YN=function(T){T.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):T.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.W2(this.S.element,"font-size",T.width/40+"px")};g.S(AY,Y8); AY.prototype.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);Q.toggledLoggingParams&&(this.toggledLoggingParams=Q.toggledLoggingParams);Q.answer&&g.t(Q.answer,g.jw)?(T=new rD(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),T.XB(this.answer),T.init(k8("ytp-ad-survey-answer-button"),g.t(Q.answer,g.jw),k),T.show()):Q.answer&&g.t(Q.answer,w9)&&(this.T=new HZ(this.api,this.layoutId,this.interactionLoggingClientData,this.G9, ["ytp-ad-survey-answer-toggle-button"]),this.T.XB(this.answer),g.P(this,this.T),this.T.init(k8("survey-answer-button"),g.t(Q.answer,w9),k));this.show()}; AY.prototype.WY=function(T){this.layoutId?aD(this.G9,T,this.layoutId,this.macros):(T=new g.Wy("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.bA(T))}; AY.prototype.onClick=function(T){Y8.prototype.onClick.call(this,T);if(this.api.G().V("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; AY.prototype.clear=function(){this.hide()};g.S(c5m,Y8);c5m.prototype.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);Q.answer&&g.t(Q.answer,w9)&&(this.button=new HZ(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.XB(this.T),this.button.init(k8("survey-none-of-the-above-button"),g.t(Q.answer,w9),k));this.show()};g.S(bI,rD);bI.prototype.init=function(T,Q,k){rD.prototype.init.call(this,T,Q,k);T=!1;Q.text&&(Q=g.Rx(Q.text),T=!g.bB(Q));T||g.rB(Error("No submit text was present in the renderer."))}; bI.prototype.onClick=function(T){this.publish("l");rD.prototype.onClick.call(this,T)};g.S(rY,Y8); rY.prototype.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);if(T=Q.skipOrPreviewRenderer)g.t(T,wM)?(T=g.t(T,wM),k=new GZ(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.Y,!0),k.XB(this.skipOrPreview),k.init(k8("skip-button"),T,this.macros),g.P(this,k),this.T=k):g.t(T,QN)&&(T=g.t(T,QN),k=new jM(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.Y,!1),k.XB(this.skipOrPreview),k.init(k8("ad-preview"),T,this.macros),k.qO.show(100),k.show(),g.P(this,k), this.T=k);this.T==null&&(T=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(Q)),g.bA(T));Q.submitButton&&(T=Q.submitButton,g.t(T,g.jw)&&(T=g.t(T,g.jw),k=new bI(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),k.XB(this.submitButton),k.init(k8("survey-submit"),T,this.macros),g.P(this,k),this.S=k));if(T=Q.adBadgeRenderer)T=g.t(T,zCA),k=new IY(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,!0,!0,!0),k.XB(this.L),k.init(k8("simple-ad-badge"), T,this.macros),this.adBadge=k.element,g.P(this,k);if(T=Q.adDurationRemaining)T=g.t(T,Iov),k=new zZ(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.Y,void 0,!0),k.XB(this.L),k.init(k8("ad-duration-remaining"),T,this.macros),g.P(this,k);(Q=Q.adInfoRenderer)&&g.t(Q,TT)&&(T=new ex(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.element,void 0,!0),g.P(this,T),this.adBadge!==void 0?this.L.insertBefore(T.element,this.adBadge.nextSibling):T.XB(this.L),T.init(k8("ad-info-hover-text-button"), g.t(Q,TT),this.macros));this.show()}; rY.prototype.clear=function(){this.hide()};g.S(cb,Y8);cb.prototype.init=function(T,Q,k){Y8.prototype.init.call(this,T,Q,k);KXm(this)}; cb.prototype.show=function(){this.L=Date.now();Y8.prototype.show.call(this)}; cb.prototype.Hu=function(){};g.S(xJv,cb);g.h=xJv.prototype;g.h.init=function(T,Q,k){var l=this;cb.prototype.init.call(this,T,Q,k);Q.questionText&&DJA(this,Q.questionText);Q.answers&&Q.answers.forEach(function(v,L){g.t(v,z2)&&aHA(l,g.t(v,z2),k,L)}); this.B=new Set(this.S.map(function(v){return v.T.T})); (T=Q.noneOfTheAbove)&&(T=g.t(T,sTv))&&Py_(this,T,k);Q.surveyAdQuestionCommon&&nbW(this,Q.surveyAdQuestionCommon);Q.submitEndpoints&&(this.submitEndpoints=Q.submitEndpoints);this.Z(this.element,"change",this.onChange);this.show()}; g.h.Hu=function(){H5W(this,!1);this.Y.S.subscribe("l",this.Ttj,this)}; g.h.onChange=function(T){T.target===this.noneOfTheAbove.button.T?tfp(this):this.B.has(T.target)&&(this.noneOfTheAbove.button.toggleButton(!1),H5W(this,!0))}; g.h.Ttj=function(){var T=[],Q=this.S.reduce(function(v,L,q){var Y=L.toggledLoggingParams;L.T&&L.T.isToggled()&&Y&&(v.push(Y),T.push(q));return v},[]).join("&"),k=this.submitEndpoints.map(function(v){if(!v.loggingUrls)return v; v=g.my(v);v.loggingUrls=v.loggingUrls.map(function(L){L.baseUrl&&(L.baseUrl=CI(L.baseUrl,Q));return L}); return v}); if(k){k=g.B(k);for(var l=k.next();!l.done;l=k.next())l=l.value,this.layoutId?aD(this.G9,l,this.layoutId,this.macros):g.bA(Error("Missing layoutId for multi_select_question."))}this.api.G().V("supports_multi_step_on_desktop")&&this.qO(T)}; g.h.clear=function(){this.api.G().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.S(Dp,cb);Dp.prototype.init=function(T,Q,k){var l=this;cb.prototype.init.call(this,T,Q,k);Q.questionText&&DJA(this,Q.questionText);Q.answers&&Q.answers.forEach(function(v,L){g.t(v,z2)&&aHA(l,g.t(v,z2),k,L)}); Q.surveyAdQuestionCommon?nbW(this,Q.surveyAdQuestionCommon):ve(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(Q)));this.show()}; Dp.prototype.clear=function(){this.api.G().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.S(aw,Y8);aw.prototype.init=function(T,Q,k){var l=this;Y8.prototype.init.call(this,T,Q,k);if(this.api.G().V("supports_multi_step_on_desktop")){var v;this.conditioningRules=(v=Q.conditioningRules)!=null?v:[];var L;this.S=(L=Q.questions)!=null?L:[];var q;((q=Q.questions)==null?0:q.length)&&$JT(this,0)}else(Q.questions||[]).forEach(function(Y){g.t(Y,iQ)?pTd(l,g.t(Y,iQ),k):g.t(Y,yM)&&WXd(l,g.t(Y,yM),k)}); this.show()}; aw.prototype.clear=function(){this.api.G().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; aw.prototype.Y=function(T){var Q=this;if(this.api.G().V("supports_multi_step_on_desktop")){var k;if((k=this.conditioningRules)==null?0:k.length){var l;if(T.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(v){return v.questionIndex===Q.T})==null)g.bA(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(v){if(v.questionIndex===Q.T)switch(v.condition){case "CONDITION_ALL_OF":var L;if((L=v.answerIndices)==null?0:L.every(function(Y){return T.includes(Y)}))l=v.nextQuestionIndex; break;case "CONDITION_ANY_OF":var q;if((q=v.answerIndices)==null?0:q.some(function(Y){return T.includes(Y)}))l=v.nextQuestionIndex; break;default:g.bA(Error("Expected specified condition in survey conditioning rules."))}}),l!=null)$JT(this,l); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.bA(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.S(uI,Y8); uI.prototype.init=function(T,Q,k){var l=this;Y8.prototype.init.call(this,T,Q,k);T=Q.timeoutSeconds||0;if(typeof T!=="number"||T<0)g.bA(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+T));else if(Q.timeoutCommands)if(Q.text)if(Q.ctaButton&&g.t(Q.ctaButton,g.jw))if(Q.brandImage)if(Q.backgroundImage&&g.t(Q.backgroundImage,kN)&&g.t(Q.backgroundImage,kN).landscape){this.layoutId||g.bA(Error("Missing layoutId for survey interstitial."));J5v(this.interstitial,g.t(Q.backgroundImage, kN).landscape);J5v(this.logoImage,Q.brandImage);g.CO(this.text,g.Rx(Q.text));var v=["ytp-ad-survey-interstitial-action-button"];v.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new rD(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,v);g.P(this,this.actionButton);this.actionButton.XB(this.S);this.actionButton.init(k8("button"),g.t(Q.ctaButton,g.jw),k);this.actionButton.show();this.T=new se(this.api,T*1E3);this.T.subscribe("g",function(){l.transition.hide()}); g.P(this,this.T);this.Z(this.element,"click",function(L){var q=L.target===l.interstitial;L=l.actionButton.element.contains(L.target);if(q||L)if(l.transition.hide(),q)l.api.onAdUxClicked(l.componentType,l.layoutId)}); this.transition.show(100)}else g.bA(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.bA(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.bA(Error("SurveyTextInterstitialRenderer has no button."));else g.bA(Error("SurveyTextInterstitialRenderer has no text."));else g.bA(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; uI.prototype.clear=function(){this.hide()}; uI.prototype.show=function(){euE(!0);Y8.prototype.show.call(this)}; uI.prototype.hide=function(){euE(!1);Y8.prototype.hide.call(this)};g.S(n_,y6);g.h=n_.prototype; g.h.init=function(T,Q){y6.prototype.init.call(this,T,Q,{});if(Q.durationMilliseconds){if(Q.durationMilliseconds<0){g.bA(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+Q.durationMilliseconds));return}this.S=Q.durationMilliseconds}else this.S=this.T.Kk();var k;if((k=Q.previewText)==null||!k.text||g.bB(Q.previewText.text))g.bA(Error("No text is returned for AdPreview."));else{this.B=Q.previewText;Q.previewText.isTemplated||g.CO(this.L,Q.previewText.text);var l; if(((l=this.api.getVideoData(1))==null?0:l.i5)&&Q.previewImage){var v,L;(T=((L=fT(((v=Q.previewImage)==null?void 0:v.sources)||[],52,!1))==null?void 0:L.url)||"")&&T.length?(this.previewImage=new g.M1({X:"img",J:"ytp-preview-ad__image",K:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",T),g.P(this,this.previewImage),this.previewImage.XB(this.element)):g.bA(Error("Failed to get imageUrl in AdPreview."))}else this.L.classList.add("ytp-preview-ad__text--padding--wide")}}; g.h.clear=function(){this.hide()}; g.h.hide=function(){V6(this);y6.prototype.hide.call(this)}; g.h.show=function(){iD(this);y6.prototype.show.call(this)}; g.h.yF=function(){this.hide()}; g.h.yb=function(){if(this.T){var T=this.T.getProgressState();if(T!=null&&T.current)if(T=1E3*T.current,T>=this.S)this.transition.hide();else{var Q;if((Q=this.B)==null?0:Q.isTemplated)if(Q=Math.max(0,Math.ceil((this.S-T)/1E3)),Q!==this.Y){var k,l;(T=(k=this.B)==null?void 0:(l=k.text)==null?void 0:l.replace("{TIME_REMAINING}",String(Q)))&&g.CO(this.L,T);this.Y=Q}}}};g.S(K_,Y8); K_.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});var k,l;if((T=((l=fT(((k=Q.image)==null?void 0:k.sources)||[],FXE(Q),!0))==null?void 0:l.url)||"")&&T.length){k=this.L_("ytp-ad-avatar");k.src=T;var v,L;if(l=(v=Q.interaction)==null?void 0:(L=v.accessibility)==null?void 0:L.label)k.alt=l;switch(Q.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(Q.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.bA(Error("Failed to get imageUrl in AdAvatar."))}; K_.prototype.clear=function(){this.hide()}; K_.prototype.onClick=function(T){Y8.prototype.onClick.call(this,T)};g.S(xF,Y8); xF.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});var k;T=(k=Q.label)==null?void 0:k.content;if((k=T!=null&&!g.bB(T))||Q.iconImage){k&&(this.buttonText=new g.M1({X:"span",J:"ytp-ad-button-vm__text",S6:T}),g.P(this,this.buttonText),this.buttonText.XB(this.element));var l,v,L=((l=Q.interaction)==null?0:(v=l.accessibility)==null?0:v.label)||k?T:"";L&&pV(this.element,L+" This link opens in new tab");te(this.element);if(Q.iconImage){l=void 0;if(Q.iconImage){a:{v=Q.iconImage;if(v.sources)for(v= g.B(v.sources),T=v.next();!T.done;T=v.next())if(T=T.value,L=void 0,(L=T.clientResource)==null?0:L.imageName){v=T;break a}v=void 0}if(v){var q;l={iconType:(q=v.clientResource)==null?void 0:q.imageName}}}q=bD(l,!1,this.S);q!=null&&(this.buttonIcon=new g.M1({X:"span",J:"ytp-ad-button-vm__icon",W:[q]}),g.P(this,this.buttonIcon),Q.iconLeading?(hZ(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):k?(this.buttonIcon.XB(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.XB(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(Q.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.V("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.T?"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(Q.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.rB(Error("AdButton does not have label or an icon."))}; xF.prototype.clear=function(){this.hide()}; xF.prototype.onClick=function(T){Y8.prototype.onClick.call(this,T)};g.S(EbE,y6);g.h=EbE.prototype; g.h.init=function(T,Q){y6.prototype.init.call(this,T,Q,{});if(T=g.t(Q.avatar,eD)){var k=Q.headline;if(k){var l=Q.description;if(l){var v=g.t(Q.button,Em);v?(this.adAvatar.init(k8("ad-avatar"),T),this.headline.init(k8("ad-simple-attributed-string"),new w3(k)),this.description.init(k8("ad-simple-attributed-string"),new w3(l)),k.content&&k.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(k8("ad-button"),v), this.startMilliseconds=Q.startMs||0,this.api.VH()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.iE.bind(this)),iD(this)):g.bA(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.bA(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.bA(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.bA(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.h.yb=function(){if(this.T){var T=this.T.getProgressState();T&&T.current&&1E3*T.current>=this.startMilliseconds&&(V6(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.h.yF=function(){this.clear()}; g.h.onClick=function(T){this.api.pauseVideo();y6.prototype.onClick.call(this,T)}; g.h.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.iE.bind(this))}; g.h.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();y6.prototype.show.call(this)}; g.h.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();y6.prototype.hide.call(this)}; g.h.iE=function(T){T==="hidden"?this.show():this.hide()};g.S(Pb,Y8);g.h=Pb.prototype; g.h.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});if(!Q.label||g.bB(Q.label))g.bA(Error("No label is returned for SkipAdButton."));else if(g.CO(this.Y,Q.label),T=bD({iconType:"SKIP_NEXT_NEW"}),T==null)g.bA(Error("Unable to retrieve icon for SkipAdButton"));else if(this.L=new g.M1({X:"span",J:"ytp-skip-ad-button__icon",W:[T]}),g.P(this,this.L),this.L.XB(this.element),this.api.G().experiments.Wd("enable_skip_to_next_messaging")&&(Q=g.cX(Q.targetId)))this.S=!0,this.element.setAttribute("data-tooltip-target-id",Q), this.element.setAttribute("data-tooltip-target-fixed","")}; g.h.onClick=function(T){T&&T.preventDefault();var Q,k;vnu(T,{contentCpn:(k=(Q=this.api.getVideoData(1))==null?void 0:Q.clientPlaybackNonce)!=null?k:""})===0?this.api.tj("onAbnormalityDetected"):(Y8.prototype.onClick.call(this,T),this.api.tj("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.h.clear=function(){this.T.reset();this.hide()}; g.h.hide=function(){Y8.prototype.hide.call(this)}; g.h.show=function(){this.T.start();Y8.prototype.show.call(this);this.S&&this.api.G().experiments.Wd("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.S(y5W,y6);g.h=y5W.prototype; g.h.init=function(T,Q){y6.prototype.init.call(this,T,Q,{});T=g.t(Q.preskipState,Dne);var k;if((k=this.api.getVideoData())==null?0:k.isDaiEnabled()){if(!T){g.bA(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.S=new n_(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.T);g.P(this,this.S);this.S.XB(this.element);var l;(l=this.S)==null||l.init(k8("preview-ad"),T);(k=this.S)!=null&&(k.transition.show(100),k.show())}(k=g.t(Q.skippableState,us9))?(Q.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=Q.skipOffsetMilliseconds:(g.rB(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.L.init(k8("skip-button"),k),this.show()):g.bA(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.h.show=function(){iD(this);y6.prototype.show.call(this)}; g.h.hide=function(){!this.isSkippable&&this.S?this.S.hide():this.L&&this.L.hide();V6(this);y6.prototype.hide.call(this)}; g.h.clear=function(){var T;(T=this.S)==null||T.clear();this.L&&this.L.clear();V6(this);y6.prototype.hide.call(this)}; g.h.yF=function(){this.hide()}; g.h.yb=function(){if(1E3*this.T.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var T;(T=this.S)!=null&&T.transition.hide();(T=this.L)!=null&&(T.transition.show(),T.show())}};g.S(Hb,Y8); Hb.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});if(Q.label){var k;((k=Q.label)==null?0:k.content)&&!g.bB(Q.label.content)&&(this.linkText=new g.M1({X:"span",J:"ytp-visit-advertiser-link__text",S6:Q.label.content}),g.P(this,this.linkText),this.linkText.XB(this.element));var l,v;if((l=Q.interaction)==null?0:(v=l.accessibility)==null?0:v.label)pV(this.element,Q.interaction.accessibility.label+" This link opens in new tab");else{var L;((L=Q.label)==null?0:L.content)&&!g.bB(Q.label.content)&&pV(this.element, Q.label.content+" This link opens in new tab")}te(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.bA(Error("No label found in VisitAdvertiserLink."))}; Hb.prototype.onClick=function(T){Y8.prototype.onClick.call(this,T);this.api.onAdUxClicked(this.componentType,this.layoutId)}; Hb.prototype.clear=function(){this.hide()};g.S(tY,Y8); tY.prototype.init=function(T,Q,k,l){Y8.prototype.init.call(this,T,Q,{});if(Q.skipOrPreview){k=Q.skipOrPreview;T=g.t(k,nPA);k=g.t(k,Dne);if(T)this.AY=new y5W(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.S),g.P(this,this.AY),this.AY.XB(this.D),this.AY.init(k8("skip-ad"),T);else{var v;k&&((v=this.api.getVideoData())==null?0:v.isDaiEnabled())&&(this.Y=new n_(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.S,1),g.P(this,this.Y),this.Y.XB(this.D),this.Y.init(k8("ad-preview"), k),v=this.Y,v.transition.show(100),v.show())}if(v=g.t(Q.skipOrPreview,nPA))var L=v.skipOffsetMilliseconds}Q.playerAdCard&&(v=g.t(Q.playerAdCard,aoA))&&(this.playerAdCard=new EbE(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.S),g.P(this,this.playerAdCard),this.playerAdCard.XB(this.i9),this.playerAdCard.init(k8("ad-avatar-lockup-card"),v));Q.adBadgeRenderer&&((v=g.t(Q.adBadgeRenderer,FX))?(this.L=new NH(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,!0),g.P(this, this.L),this.L.XB(this.T),this.L.init(k8("ad-badge"),v)):g.bA(Error("AdBadgeViewModel is not found in player overlay layout.")));Q.adPodIndex&&(v=g.t(Q.adPodIndex,Ai$))&&(this.adPodIndex=new A$(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,this.adPodIndex),this.adPodIndex.XB(this.T),this.adPodIndex.init(k8("ad-pod-index"),v));Q.adInfoRenderer&&((v=g.t(Q.adInfoRenderer,TT))?(this.adInfoButton=new ex(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.element, void 0,!0),g.P(this,this.adInfoButton),this.L!==void 0?this.T.insertBefore(this.adInfoButton.element,this.L.element.nextSibling):this.adInfoButton.XB(this.T),this.adInfoButton.init(k8("ad-info-hover-text-button"),v,this.macros)):g.rB(Error("AdInfoRenderer is not found in player overlay layout.")));var q;v=(q=this.api.getVideoData())==null?void 0:q.isDaiEnabled();Q.adDurationRemaining&&v&&(q=g.t(Q.adDurationRemaining,Iov))&&(this.adDurationRemaining=new zZ(this.api,this.layoutId,this.interactionLoggingClientData, this.G9,this.S,l.videoAdDurationSeconds,!0),g.P(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.T.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.XB(this.T),this.adDurationRemaining.init(k8("ad-duration-remaining"),q,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));Q.visitAdvertiserLink&&(l=g.t(Q.visitAdvertiserLink,xnJ))&&(this.visitAdvertiserLink=new Hb(this.api,this.layoutId, this.interactionLoggingClientData,this.G9),g.P(this,this.visitAdvertiserLink),this.visitAdvertiserLink.XB(this.T),this.visitAdvertiserLink.init(k8("visit-advertiser-link"),l));Q.adDisclosureBanner&&(Q=g.t(Q.adDisclosureBanner,Nav))&&(this.adDisclosureBanner=new bP(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,this.adDisclosureBanner),this.adDisclosureBanner.XB(this.qO),this.adDisclosureBanner.init(k8("ad-disclosure-banner"),Q));this.B=new DV(this.api,this.S,L,!0);g.P(this, this.B);g.TQ(this.api,this.B.element,4);this.show()}; tY.prototype.clear=function(){this.hide()};g.S(i5d,Y8);g.h=i5d.prototype; g.h.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});if(Q!=null&&Q.title)if(T=Q.title)if(this.headline.init(k8("ad-simple-attributed-string"),new w3(T)),T=g.t(Q.moreInfoButton,Em)){if(this.moreInfoButton.init(k8("ad-button"),T),Q.descriptions)Q.descriptions.length>0&&(T=Q.descriptions[0])&&(this.T=new d3(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,this.T),this.T.XB(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.T.init(k8("ad-simple-attributed-string"), new w3(T))),Q.descriptions.length>1&&(Q=Q.descriptions[1])&&(this.S=new d3(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,this.S),this.S.XB(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.S.init(k8("ad-simple-attributed-string"),new w3(Q)))}else g.bA(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.bA(Error("No headline found in AdGridCardText."));else g.bA(Error("No headline found in AdGridCardText."))}; g.h.onClick=function(T){Y8.prototype.onClick.call(this,T);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.h.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var T;(T=this.T)==null||T.clear();var Q;(Q=this.S)==null||Q.clear()}; g.h.hide=function(){this.headline.hide();this.moreInfoButton.hide();var T;(T=this.T)==null||T.hide();var Q;(Q=this.S)==null||Q.hide();Y8.prototype.hide.call(this)}; g.h.show=function(){Y8.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var T;(T=this.T)==null||T.show();var Q;(Q=this.S)==null||Q.show()};g.S(Om,Y8);Om.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});if(Q!=null&&Q.gridCards)if(Q.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.bA(Error("Only single column style is currently supported in AdGridCardCollection."));else for(T=g.B(Q.gridCards),Q=T.next();!Q.done;Q=T.next()){if(Q=g.t(Q.value,ciA)){var k=new i5d(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,k);k.XB(this.element);k.init(k8("ad-grid-card-text"),Q);this.T.push(k)}}else g.bA(Error("No grid cards found in AdGridCardCollection."))}; Om.prototype.show=function(){for(var T=g.B(this.T),Q=T.next();!Q.done;Q=T.next())Q.value.show();Y8.prototype.show.call(this)}; Om.prototype.clear=function(){this.hide();for(var T=g.B(this.T),Q=T.next();!Q.done;Q=T.next())Q.value.clear()}; Om.prototype.hide=function(){for(var T=g.B(this.T),Q=T.next();!Q.done;Q=T.next())Q.value.hide();Y8.prototype.hide.call(this)};g.S(p_,y6);g.h=p_.prototype;g.h.init=function(T,Q,k,l,v){v=v===void 0?0:v;y6.prototype.init.call(this,T,Q,k,l);this.playerProgressOffsetMs=v;iD(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.PO.bind(this));this.api.addEventListener("resize",this.xN.bind(this));this.api.VH()?(this.S=!0,this.api.uX(!0),this.show()):this.hide()}; g.h.yb=function(){if(this.T){var T=this.T.getProgressState();T&&T.current&&!this.S&&1E3*T.current>=this.playerProgressOffsetMs&&(this.S=!0,this.api.uX(!0),this.show())}}; g.h.yF=function(){this.S&&this.api.uX(!1);this.hide()}; g.h.clear=function(){this.api.uX(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.PO.bind(this));this.api.removeEventListener("resize",this.xN.bind(this));V6(this);this.hide()}; g.h.hide=function(){VfT(!1);y6.prototype.hide.call(this)}; g.h.show=function(){VfT(!0);y6.prototype.show.call(this)};g.S(T$v,p_);g.h=T$v.prototype; g.h.init=function(T,Q,k,l){if(Q!=null&&Q.adGridCardCollection)if(Q!=null&&Q.adButton){var v=Number(Q.playerProgressOffsetMs||"0");isNaN(v)?p_.prototype.init.call(this,T,Q,k,l):p_.prototype.init.call(this,T,Q,k,l,v);T=Q.headline;k=g.t(Q.adAvatar,eD);T&&k?(this.headline=new d3(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,this.headline),this.headline.XB(this.L_("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(k8("ad-simple-attributed-string"),new w3(T)), this.adAvatar=new K_(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,this.adAvatar),this.adAvatar.XB(this.L_("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(k8("ad-avatar"),k)):this.Y.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");T=g.t(Q.adGridCardCollection,riv);this.adGridCardCollection.init(k8("ad-grid-card-collection"),T);Q=g.t(Q.adButton,Em);this.adButton.init(k8("ad-button"),Q); this.hide()}else g.bA(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.bA(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.h.onClick=function(T){(this.adButton&&g.SO(this.adButton.element,T.target)||this.adAvatar&&g.SO(this.adAvatar.element,T.target))&&this.api.pauseVideo();p_.prototype.onClick.call(this,T);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.h.xN=function(){}; g.h.clear=function(){this.hide();var T;(T=this.headline)==null||T.clear();var Q;(Q=this.adAvatar)==null||Q.clear();this.adGridCardCollection.clear();this.adButton.clear();p_.prototype.clear.call(this)}; g.h.show=function(){var T;(T=this.headline)==null||T.show();var Q;(Q=this.adAvatar)==null||Q.show();this.adGridCardCollection.show();this.adButton.show();p_.prototype.show.call(this)}; g.h.hide=function(){var T;(T=this.headline)==null||T.hide();var Q;(Q=this.adAvatar)==null||Q.hide();this.adGridCardCollection.hide();this.adButton.hide();p_.prototype.hide.call(this)}; g.h.PO=function(T){T==="transitioning"?(this.L.classList.remove("ytp-ad-underlay-clickable"),this.show()):T==="visible"?this.L.classList.add("ytp-ad-underlay-clickable"):T==="hidden"&&(this.hide(),this.L.classList.remove("ytp-ad-underlay-clickable"))};g.S(Wb,Y8); Wb.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});if(Q.attributes===void 0)g.bA(Error("No attributes found in AdDetailsLineViewModel."));else if(Q.style===void 0)g.bA(Error("No style found in AdDetailsLineViewModel."));else{T=g.B(Q.attributes);for(var k=T.next();!k.done;k=T.next())if(k=k.value,k.text!==void 0){k=k.text;var l=Q.style,v=new d3(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,v);v.XB(this.element);a:switch(l){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":l="ytp-ad-details-line__text--style-responsive"; break a;default:l="ytp-ad-details-line__text--style-standard"}v.element.classList.add(l);v.init(k8("ad-simple-attributed-string"),new w3(k));this.T.push(v)}this.show()}}; Wb.prototype.show=function(){this.T.forEach(function(T){T.show()}); Y8.prototype.show.call(this)}; Wb.prototype.clear=function(){this.hide()}; Wb.prototype.hide=function(){this.T.forEach(function(T){T.hide()}); Y8.prototype.hide.call(this)};g.S($F,Y8);$F.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});var k,l;(T=((l=fT(((k=Q.image)==null?void 0:k.sources)||[]))==null?void 0:l.url)||"")&&T.length?(k=this.L_("ytp-image-background-image"),g.W2(k,"backgroundImage","url("+T+")"),Q.blurLevel!==void 0&&g.W2(k,"filter","blur("+Q.blurLevel+"px)"),Q.gradient!==void 0&&(Q=new g.p({X:"div",Rk:["ytp-image-background--gradient-vertical"]}),g.P(this,Q),Q.XB(this.element)),this.show()):g.bA(Error("Failed to get imageUrl in ImageBackground."))}; $F.prototype.clear=function(){this.hide()};g.S(Q_1,y6);g.h=Q_1.prototype;g.h.init=function(T,Q){y6.prototype.init.call(this,T,Q,{});g.W2(this.L,"stroke-dasharray","0 "+this.S);this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){V6(this);y6.prototype.hide.call(this)}; g.h.show=function(){iD(this);y6.prototype.show.call(this)}; g.h.yF=function(){this.hide()}; g.h.yb=function(){if(this.T){var T=this.T.getProgressState();T!=null&&T.current!=null&&g.W2(this.L,"stroke-dasharray",T.current/T.seekableEnd*this.S+" "+this.S)}};g.S(JY,Y8); JY.prototype.init=function(T,Q){Y8.prototype.init.call(this,T,Q,{});if(kve(Q)){this.adAvatar=new K_(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,this.adAvatar);this.adAvatar.XB(this.L_("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(k8("ad-avatar"),g.t(Q.adAvatar,eD));this.headline=new d3(this.api,this.layoutId,this.interactionLoggingClientData,this.G9);g.P(this,this.headline);this.headline.XB(this.L_("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(k8("ad-simple-attributed-string"),new w3(Q.headline));if(T=g.t(Q.adDetailsLine,dn9))this.detailsLine=new Wb(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,this.detailsLine),this.detailsLine.XB(this.L_("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(k8("ad-details-line"),T);this.adButton=new xF(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,!0);g.P(this,this.adButton); this.adButton.XB(this.L_("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(k8("ad-button"),g.t(Q.adButton,Em));this.adBadge=new NH(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,!0);g.P(this,this.adBadge);this.adBadge.XB(this.Y);this.adBadge.init(k8("ad-badge"),g.t(Q.adBadge,FX));this.adInfoButton=new ex(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.element,void 0,!0);g.P(this,this.adInfoButton);this.adInfoButton.XB(this.Y); this.adInfoButton.init(k8("ad-info-hover-text-button"),g.t(Q.adInfoRenderer,TT),this.macros);if(T=g.t(Q.skipAdButton,us9))this.skipAdButton=new Pb(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,this.skipAdButton),this.skipAdButton.XB(this.element),this.skipAdButton.init(k8("skip-button"),T);this.S=new SM(Q.durationMilliseconds);g.P(this,this.S);if(T=g.t(Q.countdownViewModel,KI1))this.T=new Q_1(this.api,this.layoutId,this.interactionLoggingClientData,this.G9,this.S),g.P(this, this.T),this.T.XB(this.L_("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.T.init(k8("timed-pie-countdown"),T);if(Q=g.t(Q.imageBackground,blm))this.imageBackground=new $F(this.api,this.layoutId,this.interactionLoggingClientData,this.G9),g.P(this,this.imageBackground),this.imageBackground.XB(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(k8("image-background"), Q);this.show();this.element.focus()}}; JY.prototype.clear=function(){g.N5(this.L);this.hide()}; JY.prototype.show=function(){j_A(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Y8.prototype.show.call(this)}; JY.prototype.hide=function(){j_A(!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.T&&this.T.hide();this.imageBackground&&this.imageBackground.hide();Y8.prototype.hide.call(this)};g.S(ys,g.ox);g.h=ys.prototype;g.h.Kk=function(){return 1E3*this.api.getDuration(this.Lv,!1)}; g.h.stop=function(){this.T&&this.Qp.J6(this.T)}; g.h.bC=function(){var T=this.api.getProgressState(this.Lv);this.S={seekableStart:T.seekableStart,seekableEnd:T.seekableEnd,current:this.api.getCurrentTime(this.Lv,!1)};this.publish("h")}; g.h.getProgressState=function(){return this.S}; g.h.WD=function(T){g.RY(T,2)&&this.publish("g")};var YvW="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.S(iI,OC); iI.prototype.L=function(T){var Q=T.id,k=T.content,l=k.componentType;if(!YvW.includes(l))switch(T.actionType){case 1:T=this.api;var v=this.G9,L=k.layoutId,q=k.interactionLoggingClientData,Y=k instanceof nB?k.Hv:!1,U=k instanceof nB||k instanceof h$?k.kq:!1;q=q===void 0?{}:q;Y=Y===void 0?!1:Y;U=U===void 0?!1:U;switch(l){case "invideo-overlay":T=new sIe(T,L,q,v);break;case "player-overlay":T=new aY(T,L,q,v,new ys(T),U);break;case "player-overlay-layout":T=new tY(T,L,q,v,new ys(T));break;case "survey":T= new aw(T,L,q,v);break;case "ad-action-interstitial":T=new fHv(T,L,q,v,Y,U);break;case "video-interstitial-buttoned-centered":T=new JY(T,L,q,v);break;case "survey-interstitial":T=new uI(T,L,q,v);break;case "ad-message":T=new N6A(T,L,q,v,new ys(T,1));break;case "player-underlay":T=new b5W(T,L,q,v);break;case "display-underlay-text-grid-cards":T=new T$v(T,L,q,v,new ys(T));break;default:T=null}if(!T){g.rB(Error("No UI component returned from ComponentFactory for type: "+l));break}g.MM(this.components, Q)?g.rB(Error("Ad UI component already registered: "+Q)):this.components[Q]=T;T.bind(k);k instanceof a0?this.S?this.S.append(T.U5):g.rB(Error("Underlay view was not created but UnderlayRenderer was created")):this.Y.append(T.U5);break;case 2:Q=l1E(this,T);if(Q==null)break;Q.bind(k);break;case 3:k=l1E(this,T),k!=null&&(g.od(k),g.MM(this.components,Q)?(k=this.components,Q in k&&delete k[Q]):g.rB(Error("Ad UI component does not exist: "+Q)))}}; iI.prototype.EK=function(){g.vU(Object.values(this.components));this.components={};OC.prototype.EK.call(this)};g.S(oET,g.A4);g.h=oET.prototype;g.h.create=function(){try{vEd(this),this.load(),this.created=!0,vEd(this)}catch(T){MH(T instanceof Error?T:String(T))}}; g.h.load=function(){try{gEA(this)}finally{Qs(wY(this.T).Js)&&this.player.Ju("ad",1)}}; g.h.destroy=function(){var T=this.player.getVideoData(1);this.T.T.nH.v4(T&&T.clientPlaybackNonce||"");this.unload();this.created=!1}; g.h.unload=function(){g.A4.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(Q){MH(Q instanceof Error?Q:String(Q))}if(this.S!=null){var T=this.S;this.S=null;T.dispose()}this.L.reset()}; g.h.cH=function(){return!1}; g.h.getAdState=function(){return-1}; g.h.getOptions=function(){return Object.values(Mke)}; g.h.R2=function(T,Q){Q=Q===void 0?{}:Q;switch(T){case "replaceUrlMacros":return T=Q,T.url?(Q=dk5(this.player),Object.assign(Q,T.rp_),T=g.Ae(T.url,Q)):T=null,T;case "onAboutThisAdPopupClosed":this.wr(Q);break;case "executeCommand":T=Q;T.command&&T.layoutId&&this.executeCommand(T);break;default:return null}}; g.h.Vi=function(T){var Q;return!((Q=this.T.T.DC)==null||!Q.get().Vi(T))}; g.h.wr=function(T){T.isMuted&&bZt(wY(this.T).O1,wY(this.T).c5,T.layoutId);this.gS&&this.gS.wr()}; g.h.executeCommand=function(T){wY(this.T).G9.executeCommand(T.command,T.layoutId)};g.Tv("yt.player.Application.create",g.S5.create);g.Tv("yt.player.Application.createAlternate",g.S5.create);K6g(wB(),gy1);var UrA=g.jA("ytcsi.tick");UrA&&UrA("pe");g.ND("ad",oET);g.S(g.Qo,g.x);g.Qo.prototype.start=function(T,Q,k){this.config={from:T,to:Q,duration:k,startTime:(0,g.XY)()};this.next()}; g.Qo.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.Qo.prototype.next=function(){if(this.config){var T=this.config,Q=T.from,k=T.to,l=T.duration;T=T.startTime;var v=(0,g.XY)()-T;T=this.T;l=$wC(T,v/l);if(l==0)T=T.C;else if(l==1)T=T.j;else{v=pl(T.C,T.N,l);var L=pl(T.N,T.B,l);T=pl(T.B,T.j,l);v=pl(v,L,l);L=pl(L,T,l);T=pl(v,L,l)}T=g.ti(T,0,1);this.callback(Q+(k-Q)*T);T<1&&this.delay.start()}};g.S(g.jU,g.p);g.h=g.jU.prototype;g.h.hasSuggestions=function(){return this.suggestionData.length>0}; g.h.OB=function(){this.S&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.h.show=function(){g.p.prototype.show.call(this);f19(this)}; g.h.vD=function(){this.S&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.h.pH=function(){this.zx(this.api.Hx().getPlayerSize())}; g.h.zx=function(T){var Q=this.api.isEmbedsShortsMode()?.5625:16/9,k=this.api.jj();T=T.width-(k?112:58);k=Math.ceil(T/(k?320:192));var l=(T-k*8)/k;Q=Math.floor(l/Q);for(var v=g.B(this.T),L=v.next();!L.done;L=v.next())L=L.value.L_("ytp-suggestion-image"),L.style.width=l+"px",L.style.height=Q+"px";this.suggestions.element.style.height=Q+"px";this.Y=l;this.j=Q;this.containerWidth=T;this.columns=k;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.kv(this)}; g.h.onVideoDataChange=function(){var T=this.api.G(),Q=this.api.getVideoData();this.B=Q.hh?!1:T.Y;this.suggestionData=Q.suggestions?g.bl(Q.suggestions,function(k){return k&&!k.playlistId}):[]; mpJ(this);Q.hh?this.title.update({title:g.o0("M\u00e1s videos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:Q.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s videos"})}; g.h.scrollTo=function(T){T=g.ti(T,this.containerWidth-this.suggestionData.length*(this.Y+8),0);this.C.start(this.scrollPosition,T,1E3);this.scrollPosition=T;g.kv(this);f19(this)};})(_yt_player);