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).
*/
/*

 Copyright 2015-present Dan Abramov
 SPDX-License-Identifier: MIT
*/
'use strict';var t='T;length;path;slice;oK;cmo;unshift;1969-12-31T16:15:22.000-07:45;fvip;/videoplayback;set;url;match;fromCharCode;N;split;1969-12-31T15:46:20.000-08:15;n;a1.googlevideo.com;cmo=pf;J;splice;call;Untrusted URL;NZ;zb;PO4fIyocAK4858BjOD-_w8_;join;;youtube.player.web_20260114_01_RC00;replace;1;,;assign;toString;\\.a1\\.googlevideo\\.com$;/;s;U;rD;1970-01-01T10:31:04.000+10:30;prototype;file;indexOf;startsWith;local;&;clone;Eg;=;www.youtube.com;/}[]{;scheme;rr;/initplayback;:;get;cmo=;rr?[1-9].*\\.c\\.youtube\\.com$;/api/manifest;reverse;//;W;https://local;push;a6;pop;sp;mS;forEach;undefined;mn;fallback_count;1970-01-01T01:15:08.000+01:15;1969-12-31T12:46:04.000-11:15;signatureCipher;r;redirector.googlevideo.com;1969-12-31T15:01:05.000-09:00;1969-12-31T15:15:08.000-08:45;---;://;[([";index.m3u8;playerfallback;1970-01-01T08:30:57.000+08:30;\\.googlevideo\\.com$;/file/index.m3u8;http://local;cmo=td;%3D;5TON;?'.split(";"),
Qf,pW,Av,aJ,re,tv,oN6,oJ,IJ,U6J,hv,Tk,i9,HWW,YN,Gk,hVJ,uj9,BeI,m6R,$N,gNe,RD,F5,nq,Vz,OWW,INI,Lq,X5,KIN,A7,D69,Tv,iWI,oD,x6R,yz,j7,kkR,BM,mh,Jv_,Gk6,d6e,Gv,MER,lN9,lU,NeN,EN9,Ev,P9E,bW_,QK,ZWI,sm,eVE,RON,SW,Fh6,n$V,V7I,r7j,TX,yK,v$j,frJ,jW,ue,t7I,kc,Yc,Jx,GX,d7,MN,QDI,le,NN,be,c7e,Sv_,eW,LhW,nt,ro,c$,wo,SX,Lt,sDv,pM9,sj,Xg,pt,XMv,A79,ar9,CUN,o$E,ae,Ct,Tx,oe,y1,jX,H$,Hqj,W$,B$,mr,go,Oj,Kt,D$,hOW,iS,x6,Y6,u5W,Bqe,ms_,J8,M3,lS,Ej,$6,bS,Z$,kvV,YvW,J76,GvE,eX,dsf,RE,Fr,no,M7W,VX,lrN,E$V,t9,q2,wu,Lo,po,
bqE,PUv,ncf,RJJ,Co,T5,h9,fi9,zJk,tWR,uY,mp,qmf,BI,DT,aE,YW,QzN,G5,J9,A9,cxV,du,lY,M2,woe,Es,SmV,PI,bY,ZT,eR,Rv,F6,nY,rQ,vE,QO,cE,LY,szI,Xok,po6,AxE,wQ,aiV,CY,Tl,ov,T7k,yO,ocE,yxj,UM,UNj,W0N,jm,hJW,jz_,WE,B7k,u$,BE,mNe,mQ,gcW,gQ,Iik,O4J,K0e,DL,xNW,DNN,kX_,i$,xR,YmJ,Jxk,GXE,kR,YR,dNj,EcV,J_,$Nf,PeV,FrV,l$,RTj,b4W,VXN,f$e,EM,ZL,R2,em,tXE,F$,nk,VF,rF,tb,zK,QF,SjE,c7,LrN,S5,X$,X$N,Ck,o2,UJ,j5,W7,yF,A8E,H7,ub,TK,B7,mL,a$6,gF,I2,Tov,Kk,Dx,Jb,U3W,EJ,je9,NZ,lb,dF,o6R,y8R,HtE,Zx,hTI,ugV,BoW,m3R,e5,RX,FG,g6E,
rp,fl,tC,zb,Ot6,Krk,QY,D3N,wp,cb,J8f,Sp,Ll,GxW,MXI,NoJ,XG,sd,E6v,AC,aX,Cl,pl,oX,Tb,Ud,yY,u3,$39,jp,hC,Bb,PSN,gp,btI,Od,IX,xD,kD,YD,Kl,i3,DF,Gb,Zt_,dp,Mm,l3,RNk,Nm,Fpj,Ed,Wb,$D,b3,VRf,ZF,ep,Fd,nu,V7,r5,v4,fu,tN,z3,or,T3,y7,Uh,j0,H4,hN,W4,r9I,fTW,B4,tRk,zNk,qsE,g5,Oh,D3,c9V,wIN,Ss_,xj,sE_,kj,XI_,Yj,JN,G3,A9I,d5,aTN,Mt,CYv,TuN,lp,oWN,Nt,Eh,P4,y9W,Z3,e0,jEW,nS,Wp9,U26,VA,va,fS,m26,urf,zY,QA,gWW,ITW,Kpv,ca,wt,Su,LS,s_,pS,XC,x2R,k5_,YsV,G5j,MRW,lTf,NuJ,aM,CS,EW_,TY,$2v,PYE,R1_,yA,FQk,nRW,VmW,r_f,vRR,ju,
fLV,hB,z1W,Ba,mw,Qvv,gt,O_,IM,c__,wEV,i5,xm,Ym,JB,LQN,svN,pEJ,E_,NP,l5,XEk,A_e,aLI,$m,Pa,b5,TQV,nv,Va,y_e,Uuj,jvV,rk,vx,HY9,h19,fv,WQN,u6I,BQR,muJ,Qa,zW,cx,wk,Sj,gRk,OYf,IL6,Lv,sO,KQN,pv,Duj,iY_,xu6,Xf,klk,A3,aZ,YM9,J_N,GlW,du9,MmJ,lLj,UO,jj,Hx,Wx,$uj,uI,Bx,P$J,ERI,h3,bYe,mP,gk,OO,Kv,IZ,ZYJ,e1J,Rs9,D2,nBJ,iI,rb6,vBN,fxj,t56,zsN,qJN,Q2v,cb_,Yn,J3,GW,SJ_,w7e,LLN,s2R,Ma,p7N,lI,X7I,AbI,Na,EO,$n,axf,Px,bI,CbW,Z2,ej,RW,FN,n_,Vr,r2,vd,TFe,oBe,ybR,UZJ,f_,j2_,hsR,HkJ,z2,qD,u$e,WLe,gBe,KL_,IxN,Qr,DZJ,ik_,xZf,
YJk,kK9,Jb9,cd,GKW,dZN,SS,M56,lxf,NFE,EBJ,L_,$ZV,s7,PbE,p_,XN,Zkk,Ao,esf,aW,C_,R46,FYJ,T2,yr,VpJ,U7,nDf,rCI,vDN,fF6,z4R,jS,qdJ,Wd,u0,cCI,wbI,sXR,pbV,Bd,m8,g2,O7,IW,kw,Yw,Jo,G2,d2,MD,l0,ND,C3e,aFk,Tpk,yCj,oDk,jXJ,ACE,Um9,Xbj,E7,$w,h4f,WYj,uGk,eS,RN,FE,Pd,mmE,ne,HlJ,OlV,IFR,gD9,V$,rD,vv,fe,KY9,BpW,DmJ,tH,ilv,xmN,kbW,YdR,JCj,MpJ,lFf,Npf,EDf,z8,qG,$mN,P3N,e4R,RHv,Q$,wD,njN,SN,cv,rN9,V0E,vjR,f3R,t0I,sH,pe,zHv,qhI,Qrj,cNk,w4e,ShE,L5I,srN,p4v,X4_,AH,aN,Ce,T8,oN,y$,ANJ,T5f,ojR,yNE,jrN,UtV,Huk,Hv,hH,hHI,W5N,
ud_,Wv,uQ,Bv,mF,gD,IN,Ke,B5I,iQ,gjN,kF,Oue,I3e,YF,JH,G8,MG,dD,K5E,iuk,lQ,AB,d2j,bQ,xtV,k3e,ZG,Yh6,Pv,G3J,JN9,$F,eN,Rm,dtN,M0N,l3N,N5J,F1,Ej_,nT,CpV,a3R,VN,rT,tD,zC,buf,qg,QN,wT,ZuW,eHj,SG,rBe,AD,FwE,Vuk,pT,sZ,om,yN,H2,vmv,hD,W2,fIW,zCR,QME,Im,DB,Lw_,sMN,paV,ih,C5e,gT,waI,omV,aI_,XaI,ABk,yBf,Ttv,kv,GC,dT,jMj,HSJ,hC9,WwN,uCI,Mg,Bt6,Ng,mPN,IIk,KwR,EZ,iSv,kYf,xPN,Y_e,P2,eG,V_,v3,fa,tS,zj,qv,dP9,MuJ,lIk,Q_,c3,rb,wb,Sc,La,Le,si,NtV,Xo,P59,AS,aF,ZSk,bSI,eCE,RuW,FP_,Ca,nnN,VjW,r3_,Tj,oF,f2f,qO6,QZj,y_,sZ9,
SON,px6,XxW,A3f,Ui,a2N,c3j,jc,H3,CI_,LP_,hS,TkR,W3,y3e,Uaj,jZf,HvN,huR,B3,WPJ,ufV,BkR,maE,I2_,gn_,mE,gb,Oi,IF,Ka,De,iw,xq,KPR,Yq,kq,Dae,Gj,kWN,JS,YO9,J3v,NkI,GWk,daW,Mj_,l2f,db,EnN,$ae,lw,PIJ,Nv,Ei,$q,P3,bw,Ze,F8E,bvf,nD,Rdk,VG,euN,F3,ec,Zvj,RC,vD,VSj,tm,fD,roe,vwV,fZk,cD,wH,LD,q7k,SI,pD,QWV,X3,tSN,S7f,L8N,sWk,CD,TG,oC,pdR,yG,UB,jI,HD,XdN,hm,WD,uM,AoW,aZ9,BD,C09,zu9,owf,yoW,UDN,jWI,hdN,T2e,W8e,mk,gH,uNk,B2f,O_e,K8R,DD_,IC,KD,i_k,Y76,G2N,DK,xx,dDk,MSV,lZv,Ewk,$DN,N2I,Yx,edI,Z_J,Jm,dH,FF6,GG,nFI,lM,
VN_,N1,$x,PD,rHv,vFV,Vj,fGI,vt,tNf,zyN,LO,qHN,cHf,sA,wvj,SH6,AHI,LF6,ap,CO,T0,yj,UA,yHe,UGJ,jC,Ht,h$,HeE,Bt,hyv,WFI,m9,BDf,OA,Ip,KO,DA,mG_,ia,ke,Ye,J$,G0,ds,gFN,Oe6,IGR,la,NX,EA,$e,Pt,ba,KFe,DGI,ie6,xGf,k86,YH6,ZA,JHe,vU,G8j,dGW,MN6,fA,zw,qq,Qi,Sw,LA,s3,NDI,At,aH,CA,EFk,$GN,jw,PQe,bee,ht,vvv,fBE,tGW,WU,zvN,qZW,w2N,BU,LtR,SZR,sm9,p2f,O3,IH,X2e,KA,DJ,ig,xL,kL,YL,Jt,Gw,dB,Mq,lg,Nq,E3,$L,ADJ,aBI,ZJ,Rk,ChN,rz,vC,f$,Xj,tj,ql,Qb,UgN,cC,wz,SP,HT_,jmj,TTe,p$,s2,BTW,Xl,jP,HC,yb,hj,WC,gvR,BC,DgJ,IB6,Kt9,xg_,
dgR,kC9,JDE,GCN,mgj,gz,mH,lBe,Ik,K$,D_,NTW,Gg,EvJ,dz,Ml,lx,Nl,$i,bx,Z_,$gJ,eP,Rx,bTR,Vu,vc,fw,tL,zQ,q8,Qu,cc,wf,S3,evW,Lw,AL,XA,FE_,vqW,VcN,rSj,fek,tcv,qi9,QFR,z06,w36,TQ,ox,j3,Sij,LEe,Uw,Hc,p3V,X3I,Tb6,CwE,Bc,ml,gf,Ow,Ix,ySj,UvN,JL,GQ,jFV,Ha9,h0_,N8,Ew,$h,WE6,uo_,mvf,OaW,Zg,IeR,KEj,F_,e3,rS,vm,t1,cm,wS,Sa,L3,p3,X_,a8,Yif,JSe,TR,GjN,dv6,yM,McJ,leI,Ug,Hm,Nbk,Eqj,Pw9,Wm,m2,Zae,e0J,uV,RDf,Fkf,VIf,nx6,gS,baI,vx9,fK6,ks,iV,tIW,zD_,Ys,J1,qBv,QC6,Mx,cmk,wD6,SBN,LkJ,Pm,sCj,pDf,XD6,AmW,aKE,CM9,THN,oxj,FD,
ym6,V8,jCj,HDj,hDN,WkW,u39,ry,Q8,m1E,IKN,cq,Kkv,iDI,BHj,x1E,kGj,YB6,gxW,OD9,vq,fI,qi,D1W,zz,tc,Jm9,GG9,d1N,MI9,lKe,NHJ,ZDV,Exv,s5,pI,Ac,F9E,r$9,VCN,XD,Tz,ve6,U5,fAW,zoE,ur,tCj,ptN,qAW,L99,O5,XtE,CaE,I5,gy,A$6,aAR,TsW,D1,y$f,UX_,jpv,HOe,hok,W9_,uKv,oeW,mXk,gej,OOW,K9e,IAj,iON,YS,xXJ,Jc,k0f,Gz,YAN,J$E,lr,Ni,dXV,G0f,E5,lAW,Eev,Nsk,$XN,ZON,Pa9,vj,zM,tw,eoN,fr,qM,Q9,cj,wG,RLW,Lr,VwV,nLv,Xm,pr,aS,Cr,TM,oS,rtE,y9,jr,vLI,hw,twV,uE,Bj,zL_,q3_,QHj,ct_,mf,O$,wUV,IS,Kr,DP,L39,iE,xb,sHj,Yb,dG,GM,Jw,MM,lE,AtV,
Uqv,HAW,ytj,oLJ,jHv,$b,ZP,BBW,hL_,W3_,u4k,XUI,kwR,zn,xqv,GwE,iAR,E$,qz,nJ,fJ,Y3J,RQ,CgW,aJR,TB9,bE,DqJ,Sg,Pg9,sK,XS,ZAj,eLj,Ap,RqN,FHR,niW,rjf,vie,Tn,tPE,oQ,zqR,q2J,cj9,wCv,S2k,jg,LHe,pCk,He,XCI,hp,We,Be,yjf,OK,Dt,ulJ,giW,xC,I_R,KHI,DlE,Pe,i$I,xlV,EK,neI,lX,$C,Nz,kC,VH,v5,r_,tn,qB,Y2I,QH,w_,S8,JjN,GgV,pG,MPR,l__,Nze,Ei_,CG,$lf,PxI,b$J,Te,Z$v,eqN,RXe,oh,Fl9,nhE,yH,V3f,vhk,Ua,fg_,t3J,zXj,j8,H5,hn,qwW,QxV,cL6,wcJ,Swj,LlN,sxe,ma,g_,Oa,pce,Ih,XcV,DC,agN,ALJ,xt,kt,Yt,Jn,C6E,Ge,d_,TfJ,ohk,MB,ls,Hwk,yLN,
jxI,U8_,NB,Ea,$t,hXR,WlW,uAW,P5,m8W,IgN,Owe,bs,ZC,e8,Rt,FU,V2,rr,vP,f5,te,zF,Klv,D8N,iwI,qO,Q2,wr,L5,Yw6,kQR,p5,JLR,XU,Ae,at,C5,TF,Uq,jx,HP,he,WP,uN,BP,mz,M39,Oq,It,K5,lgk,xH,Nfv,$89,YH,P6I,Je,GF,eX_,R8J,F2_,Va9,vsf,$H,fYj,bN,PP,qgR,Q89,c1J,ex,RV,SgN,n2,Vp,rV,v8,s8e,f2,ts,zf,pmj,qT,L2V,Qp,c8,A1N,XmW,wV,SB,L2,sI,Xy,CV_,TSR,aV,C2,oV,yp,osv,Tf,j8N,H3J,h8V,W2R,u_W,BSN,mxf,jB,UI,Uxf,IYv,H8,DxI,i3_,mc,xxf,W8,uj,kRI,gV,J1_,dx6,OI,IV,MaR,K2,NSV,Da,Z3v,ky,b3V,Es_,PVR,$xj,Yy,Js,Gf,dV,MT,lj,NT,EI,$y,R5f,P8,
Vfv,rcN,vSW,FC6,f1I,tf6,bj,eB,z5N,VD,LCR,F5v,rN,vu,s5E,Ac_,tT,QD,a1E,cu,q0,oSj,wN,ycN,Crk,zy,UiR,TyR,j56,HII,Byv,SA,sE,gSR,pV,Xv,AT,a7,OIf,I1v,CV,Ty,o7,KCN,Di9,UE,Wu,uA,Bu,mR,gN,OE,I7,KV,Dm,iA,xK,kK,YK,JT,iIW,xiV,Gy,dN,M0,lA,N0,EE,kzv,Y5_,$K,eA,diE,Mf6,RK,Fq,tF,NyN,QL,cF,ESf,LL,$i9,bIE,Prv,ZI_,e5J,RzR,FfJ,nb9,VrI,rwJ,vbv,trJ,fPV,zzv,cw_,S$j,QS9,Lf9,sSR,Xj9,pL,Xq,aPv,AwE,AF,aK,CL,TGj,Tm,oK,yL,ywI,UMR,UX,ob9,je,hzf,HF,hF,WF,uL,BF,mu,gY,OX,IK,KL,D4,iL,xV,kV,YV,JF,Gm,dY,MS,lL,NS,EX,$V,PF,bL,Z4,ee,RA,
FF,nd,Vm,rW,vA,fd,ty,za,qI,Qm,cA,wW,SM,Ld,sD,pd,XF,Ay,aA,Cd,Ta,oA,ym,UD,jM,HA,hy,WA,uy,BA,mg,gW,OD,IA,Kd,Dk,iy,x8,k8,Y8,Jy,Ga,dW,ly,NI,umW,ED,Z,$8,MI,PA,by,Zk,mMv,Rd,Or9,eM,IPN,nR,KfV,rn,Fi,vl,fR,tE,Qn,irE,xME,kMV,Y$J,Jw6,GMW,pR,CR,lPJ,NGR,EbN,$Mk,DMe,PEW,qQ,brV,ZrI,yn,Wl,UQ,wn,ezR,cl,TA,j4,uO,FqV,LR,sQ,hE,Hl,nCR,Bl,mO,gn,OQ,Vg6,Id,KR,D7,iO,xA,rpW,vCI,tgj,zbe,JE,GA,QQv,sR,LqJ,peE,Apf,RVI,MQ,CXj,TCe,bO,oCN,Z7,e4,RB,F8,ny,Vd,ypk,jQk,HJ_,Uz9,hbf,Wq9,ta,zL,Qd,wE,Sq,Ly,uSW,sF,BCN,py,X8,qy,Cy,TL,oB,yd,
mzk,aB,OJN,UF,It6,Kqe,jq,DzN,HT,ha,iJJ,xze,WT,kne,YKf,uJ,JpE,GnR,dzv,BT,m6,gE,MgV,ltk,OF,IB,Ky,NCW,DX,iJ,xl,kl,EC9,Yl,Ja,$zN,GL,PXR,dE,bJf,ZJ6,ebe,R3k,FaV,ntN,My,V8I,rnR,vtJ,lJ,fCR,Ny,t8j,EF,z3W,$l,qaE,QhR,PT,FR,cnN,nb,VB,r8,vH,w5I,SaV,tQ,qL,QB,La9,cH,w8,Lb,sh_,sy,pb,p5R,aT,aCf,T_J,otW,CsJ,oT,Uy,yB,jl,yne,jhV,UBk,Cb,HGW,h3f,WaR,usI,T$,OG9,ICj,KaN,gtf,mBk,B_J,DB6,HH,X5j,iGf,Anf,xBj,ke9,YaE,dBj,JnI,hQ,GeN,M8R,lCE,$Bv,N_j,Etf,bGJ,PsV,ZG_,e3e,uT,RMk,Vxk,Fze,reI,nH9,vHk,fzJ,txf,zMN,qq_,Qtk,cek,wPN,SqV,
Lz6,st9,pPf,BH,XPv,AeW,azJ,CN9,TrR,oH_,yev,UOv,H59,iT,mG,JQ,G$,hM6,d8,Wzk,lT,NL,uU6,Brj,$Q,mOW,bT,Z8,el,kQ,Ri,Fn,gHW,n6,V4,rl,O5W,vz,f6,tz,zr,q5,Q4,wl,SL,L6,s8,Izk,KzJ,DO6,ai,p6,C6,Tr,i5j,xOv,oi,y4,U8,kFR,Yqf,Az,JeN,GFJ,jL,dOf,Hz,hz,u_,Bz,mZ,gl,O8,K6,DD,xu,i_,Nrj,EHj,$O_,PNE,b5W,Z5J,Yu,Rtj,Gr,Fck,dl,N5,nyR,VBf,rsR,vyV,E8,$u,b_,Pz,eL,fav,tBe,ZD,zt9,qIR,nf,QVj,VI,w8J,vg,ff,LcW,SI_,sV_,p8R,X8N,zT,qw,QI,AsE,aa9,CjN,TVj,oyj,ys9,UTR,jVN,H2e,htv,wI,S9,Wce,uy6,Lf,sk,BVE,pf,XB,aU,mTJ,Cf,TT,oU,gyN,yI,O2W,Uk,
IaN,j9,Kcj,DTN,Hg,i2j,xTe,kfR,hA,Wg,uC,Bg,YIN,Jsf,m7,gI,Ok,GfE,IU,Kf,Df,iC,xp,dT9,MBR,kp,Yp,laI,JA,GT,dI,Mw,ft_,NVN,EyN,lC,$Tk,PjE,b2v,Nw,Ek,$p,Pg,bC,Zf,e9,Rw,FO,nj,VQ,Z2R,etN,QQ,cS,FR6,w6,aw,Lj,ow,fm9,wu9,tAJ,SER,LRN,puf,yEN,oAW,jd9,haR,WOV,HRe,mQI,ORE,I7N,OT,I4,KO_,DQV,KQ,D6,iR_,xQR,kAe,x2,YQf,JEk,Y2,J0,dQ_,M4I,l7e,$Q9,dv,N4,$2,POW,PQ,bW,F6j,VqV,nlN,caW,nn,vle,L6V,tqW,vW,ZR9,e1,raE,RiE,eaE,bRR,rm,R0,Vs,zu,XTN,Qs,cW,wm,Si,Ln,sl,pn,AaN,aXJ,Xx,AI,Cn,TEN,olR,a0,yaf,HyE,hie,Tu,W6W,Ul,u8k,ji,hI,BEk,HW,
WW,myV,BW,Oy_,IXN,gm,Ol,xa,Dyv,Kn,ka,JI,iy6,dm,i2,Ya,xyJ,Mc,kLJ,l2,YFE,I0,DW,K6j,Gu,Nc,Jav,GLW,El,dy6,$a,PW,b2,ZW,MqV,RR,ei,FQ,ng,lXe,NEe,VR,ri,v1,fg,td,zP,Elv,qd,QR,$yI,PJV,c1,wi,So,ZyI,by_,Lg,eiW,RYR,FG9,s1,nQR,VlE,rQE,vQJ,f8J,pg,XQ,Ad,aR,tlN,zYv,qyf,TP,QTj,oR,yR,cQj,wHJ,U1,Sye,LGN,AQv,a8N,sTk,pHe,XHR,H1,hd,W1,uo,CTR,T8j,yQN,oQN,HbI,gi,WGv,B86,uRe,io,Dj,gQR,ObN,I8f,xT,KGW,Jd,GP,DLk,xLW,k$k,Md,$T,dLv,wT9,Fx,l8W,N8_,EQV,$LJ,PT9,Z6,lo,Zj,eo,RjE,FZN,nuN,Rc,fDR,VLV,rzR,zjN,q8J,Fa,tL9,QiN,np,Vg,r3,cz9,
wze,vp,fp,S86,tW,LZk,sie,zp,P1,w3,Xzj,SFN,fXN,SU,Lp,pp,Xa,AW,ac,Cp,sV,yg,aDE,jU,Tlv,Hp,yzk,ouN,C_N,U5_,ui,WZV,jiE,hjW,H6W,Bp,mj,unE,BlN,guJ,g3,pTj,OV,IDj,D5E,fn,i6j,x5e,ziJ,QBe,O69,Kp,D0,x0,kr_,Y8N,JzJ,GrN,d5R,MLk,lD9,Nlj,EuW,$5e,Z6f,b6_,ejR,R_V,F76,k0,npN,Gp,V9v,d3,rAk,vpf,Mr,ffE,z_W,t9j,Qw,zV,cV,ST,L9,Wp,sP,qke,pgJ,AE,qA,AP,CCV,opE,Z0,yw,bi,UP,hP,Uwk,jUE,tP,WV,uBv,uk,BV,BIf,mwe,gpR,OfW,mm,IfE,K76,gg,DwE,JAR,YkI,ifJ,kTk,xwN,OP,GTI,I$,dwW,M9k,NIf,EpV,$wf,PCN,Fe9,k_,Y_,r6R,JP,GV,fqR,ttR,qfI,Qw6,c6_,
LeE,sw6,pSI,XSj,C8k,T6N,y6_,U9I,jwf,Hjv,WeN,m99,Ojv,NA,EP,$_,PV,Iqf,D9R,ijJ,vh,N6R,J6e,GNj,$9f,fM,P8R,Zjj,bje,eUE,z7,ch,Rcv,tu,wd,SZ,F1R,nER,vEj,zcV,ao,QYV,XV,rq_,CDe,T7,Hh,TMJ,ut,oEv,yqN,UVJ,Or,gd,xG,kG,jYN,hck,W1v,YG,Dh,ucJ,mVI,gER,IyR,dd,OBV,K1E,DV6,lt,xVv,NF,k_v,pM,KM,wGN,V29,pGN,eZ,Io,BM_,fK,hu,z9,qj,ZBf,RKR,ecf,Wh,Bh,F$9,cK,wZ,V1E,SH,LK,r0N,MA,pK,G7,HBR,Ag,M2I,aq,t2j,hU6,zUj,CK,f6j,t1E,oq,zKk,A0f,XQ9,CWv,Tv9,jH,hg,WK,HK,BK,mx,o2f,gZ,U49,Iq,HQR,i4,j4_,kM,YM,BvW,OQJ,I6_,dZ,K$f,iQN,ni,r$,vN,x4f,
ti,z6,k4N,qJ,Qk,Li,sY,pi,Xp,Ai,YTE,aL,Ci,M1k,T6,oL,l6J,NvN,yk,UY,E2E,$46,PWN,WN,uF,mS,bQ6,OY,RPv,FVE,ZQW,naf,Vik,rIN,iF,Ki,IL,vaN,DH,x1,fWV,k1,tiI,Y1,zPE,qlj,Q0I,G6,d$,cIf,wWf,MJ,LVj,SlV,lF,NJ,EY,pWV,XWf,$1,AIV,aWe,PN,Tme,C2N,bF,oaW,ZH,Ucv,yIe,j09,eK,Rl,Hne,WVe,uxJ,F9,n0,VP,Bmf,rA,mce,zH,gaN,f0,qH,QP,c9,KVf,inR,OnW,DcN,xck,IWN,ku9,YlR,wA,JIk,dcW,NmW,$c9,EaW,C0,al,Un,H9,Zn6,hf,RpE,W9,nTR,B9,VoI,FW_,mT,fjj,gA,On,to_,Il,zpv,Yfv,lqW,q1E,cd9,QRV,w1I,K0,D9,iZ,xz,S1V,p16,Jf,GH,dA,X16,kz,AdE,ajV,Cov,oTf,
MH,mdR,igW,P9,xdj,L0,Y1E,Jdk,GPV,ddI,Z9,MoV,eh,Rs,ljj,FW,NiI,rj,ETf,$dN,vs,fm,Poj,bg6,ZgV,ep_,tZ,Vy,RRe,zB,n09,VUI,rWI,v0N,qk,f0V,tUj,zRN,Qy,Qck,cs,wpN,cWf,ppI,pm,LjE,qV_,wj,XW,Xpj,a0R,AZ,Cik,AWj,T3j,as,Cm,TB,os,yy,UC,o0v,jF,hZ,hRf,uaE,B39,mrf,mn,g0j,Hpv,Op6,Ws,I0E,Dr_,Hs,uG,UrR,jcv,Bs,ipe,xrW,Wj_,yWV,Is,kp6,Km,YVI,JW6,D5,iG,xg,Gpk,kg,l0j,drV,MU6,Yg,N3J,JZ,GB,dj,Mk,E0j,$rV,PiN,lG,ZpW,eR_,Nk,Rnv,EC,$g,FmI,n_f,VTJ,rPj,v_N,fvv,cPk,znW,Mi6,Ps,SPV,qP6,Q$N,tTR,eF,APN,Z5,bG,wV_,Ck9,XVN,pVV,s$N,LmV,FM,Tgv,
Sh,nF,Vc,rO,o_j,vf,yPf,fF,UAj,ol,j$9,t2,p0,Af,Gu_,cf,Sz,hnE,LF,pF,wO,Qc,XM,zh,H9J,qn,A2,WmI,sC,scf,sn,a6,sz,ukj,Bge,mAI,CF,g_j,O9f,Ivj,KmN,DAN,Kj6,$z,yc,Uz,Th,YPV,rde,vT_,jz,Hf,JPV,GV6,dAj,h2,lvR,Wf,NgR,$AW,uB,I6,PkJ,gO,kZ,Z9I,b9N,FJR,R7E,env,YZ,nGI,J2,VZv,vGE,ru6,Gh,Fjf,fh_,dO,Mn,tZV,lB,qrR,QoV,cu9,whE,Nn,z7E,Ez,sRE,$Z,sok,Pf,LJV,bB,phW,LWN,Yz,XhI,Zw,RO,Tdf,Ctf,tK,qC,zd,Q0,UFj,c6,WJI,jov,h7N,HMW,Sb,Lh,uVe,BdW,mFe,gGe,OMf,IhI,KJ9,DF9,ph,iM9,xF9,k7e,AK,ez,Ju9,G7E,sp,MZN,Yre,Xb,lhe,aO,$FN,EGJ,Ch,Td,
bMe,y0,NdI,Up,oO,PtI,hK,H6,VH9,nMR,rgE,FxN,vMI,fUk,ZMf,e7k,tHj,zle,W6,cgj,wKf,QqV,q69,uf,sqE,AgJ,pKe,S6E,Lx6,XKN,B6,aUV,C4R,ygR,oMj,TZf,md,UjR,jq_,HKv,hlv,Wxj,BZj,mjW,gM9,OKW,IUR,KxE,gx,DjN,Op,iKE,xjf,k9v,Y6N,JgR,G9R,dje,MH_,lUe,NZv,$j_,P4V,xr,ZK_,Yr,FSN,RWe,n1_,VKe,rik,v1I,tKV,fHk,ciE,wNN,LSN,QLv,SYR,JK,dx,zWN,qYI,XNv,Aie,pNW,aHE,CF_,T$k,o1f,yiW,SF,UJ6,jLf,HiR,hWk,upN,jb,xZ,B$9,KSN,g1N,IHv,av_,MC,mJk,Oi9,TH,X9,k6R,Ji_,YYe,G6N,MKf,lHj,sLk,iB,lf,Oz,ii9,N$R,xJk,E1f,mM,$Jv,PFj,E_E,Rlv,KF,NC,Ep,$r,biE,
P6,Zi9,eWR,Rw6,FTW,nzk,VhE,vz9,f9v,cfJ,thV,QlR,w9f,ZQ,p99,LTk,slN,CZj,TAN,ozV,eb,yfW,bf,UHV,a9e,Snf,R3,jlW,zwV,H0v,FH,WTj,hwR,BAE,mHN,gzV,u9E,nP,KT6,I9N,xHV,i0k,DHW,kHe,YnV,VE,Jfk,rw,dHf,MhJ,GHW,NAN,$HW,PZj,Fn_,Z0R,ewW,Rrv,ngj,VFI,rZj,f59,vgR,tF9,zrj,vY,qCe,QsI,wsv,cZI,SCE,Ln6,pse,Xs6,CGk,AZ_,TjJ,ogN,yZj,ssJ,Uke,a5e,t5,js_,HmI,hrN,WnR,q7,mkj,BjE,ggN,OmN,I5N,ime,KnW,YCR,QE,Dk_,JZe,GBk,cY,dkW,ww,SQ,MF9,LP,l5E,pP,se,Egk,PG9,bmj,Zmj,erN,RSJ,$kk,FMR,XH,nZj,NjW,elf,zt,r29,vZV,fwf,tzW,zSN,qzj,Q6I,wfN,a3,
SzV,c2E,LMR,s6N,pfJ,XfI,CBI,awI,A2e,TOR,Tt,lzk,oZj,y2k,o3,Unj,j69,Ue,WM_,uM_,HY,BOe,mnj,jQ,hSN,h5,yE,HF_,BY,WY,gZe,mN,um,DnV,khI,J2R,dnI,Iw9,Yz6,Mzv,KMR,lw_,NON,EZf,KP,gw,bFf,ZFW,$nk,I3,Rk_,Fd_,xnf,iFE,eSf,nrJ,Gh6,PBI,OFJ,DM,im,x5,Vbj,k5,QO9,tb_,cKV,zkE,vrI,w6W,rKe,sOV,Spf,Y5,p6V,fQj,AKe,CfN,TxW,yKJ,UCW,jOv,Wdv,lm,ubv,HhR,M7,grJ,Ohe,ZM,dFf,J5,IQN,KdN,xC9,kdE,DCj,JKf,mC6,Gt,$5,MbE,lQj,Nx9,Erv,WSJ,Ee,$Cv,bhN,PfN,ekW,ZhW,ore,FN9,R$J,PY,N7,n5f,RG,VQ_,r59,v56,fMN,tQv,eQ,hkN,DJR,Oe,z$I,nN,qe6,Q3N,c5_,wY_,
SeN,V3,rK,pY_,vB,XYj,A59,LNJ,s3W,fN,o5R,Cm6,Tw6,y5W,U7I,tX,j3e,HPk,h$I,zO,WNE,BwJ,m7J,qf,uHV,Q3,cB,g5j,OPN,IMN,KNW,D76,iPI,x7W,LN,wK,S6,ktE,sb,Yev,J5k,Gt6,d79,lME,MQR,TO,E5E,$76,Nwf,PmE,oG,bPI,y3,ZPf,Ub,e$9,Fbk,t6J,n3N,rXJ,v3v,V6e,Rxf,fVV,zxI,qbJ,QG_,cXJ,wB9,SbN,HB,LbR,uq,hX,sGv,BB,gK,XBR,AX9,IG,KN,aVV,Ob,TKR,Cqj,DV,yXV,o3k,x3,k3,Y3,HN_,Uf_,jG_,JX,hxR,mfI,u7W,WbV,BKJ,GO,ONE,iN9,xfI,dK,kO6,IVR,YbN,Mf,KbR,dfN,lq,Nf,M6E,lVR,NK9,E3W,$fv,$3,bNE,RhV,Fo9,nYJ,bq,ZNE,rr_,PB,ZV,e6,Pqj,ex9,Ra,vYf,tkN,zhv,Qa9,
q0k,crj,LoI,vR,VT,tr,r9,S0R,wRV,fz,sav,zs,pRW,XRI,Ark,qE,QT,aRI,CKE,T9R,oYV,yrj,UER,jaN,Woj,Hzv,uPe,B9k,IRN,KoE,JrR,oa,MkV,EYN,yT,N9J,lRJ,ks6,Y0E,DE9,izI,GsE,U0,jk,bzW,$M,hKe,Zz6,hr,uK,eh6,RGE,Ts,dEN,VyE,rGN,vdk,mo,BR,xY,tyN,zG_,qcE,kY,Qnj,wyj,cGV,ScW,YY,Jr,LUe,XyE,AGj,d9,pyW,adN,Cv9,snJ,NE,TUE,od_,lK,yGJ,U_9,jne,HUv,WU_,hGR,m_v,gdW,uwV,IdN,KUJ,BUe,PR,bK,D_R,JG9,ZR,iUW,x_J,YcN,koe,GoV,My9,d_V,ldk,ek,NUE,Edv,$_V,PvV,bUE,eG9,RZj,nJv,F_E,VvW,rU9,vJJ,fSN,tvv,qLR,Fw,Rn,ZUe,nU,Qg6,cUk,zZf,AUN,XLI,aSV,CPR,
yUk,oJE,TXV,UYj,jgj,VJ,rU,H7f,hZe,W_J,uJe,mYR,gJN,fU,O7N,vy,zo,BXW,q_,ISN,K_N,DYe,i7J,xYk,QJ,kEv,YLf,dYV,cy,MvI,GEN,wU,Sy,LU,NXj,EJV,$Yf,lSv,b76,PPN,Z7E,sc,eZW,RfJ,nOV,vON,Fif,VOe,pU,flf,zfv,qtk,cY6,wiN,Xw,AG,StV,tO_,pi_,sPN,LiE,an,CU,AY9,Xiv,To,on,yJ,al9,Uc,C1_,Thv,oO9,yYN,jy,Up_,Hy,jPJ,hG,HcW,Wy,uv,Wi_,hfJ,uLN,By,mpf,mU,gU,Ock,Dpk,ice,gOJ,xpR,JYk,GJ6,dpf,Yte,kJ6,lle,MO6,NhN,P19,KU,Zce,bcI,EOj,$p9,efv,RIV,Dd,iv,FBE,nke,VJ6,rVR,vkR,fuN,zI6,qSR,XwE,wwI,SSj,QbR,auE,dU,lv,Uef,jbN,$d,HEf,Py,hI9,Cz_,Go,
N_,uZk,BcN,Zd,gkV,IuJ,OEe,ey,Ec,JG,meE,bv,Tcv,WBf,Dek,xd,Rg,iEJ,xee,M_,okN,FJ,n7,kcj,Vx,YSk,rX,JVR,GcJ,MJ6,luN,de9,vL,f7,tU,NcV,EkW,$eE,bEN,ZEN,RFV,eIW,FAR,qY,zE,PzI,nf9,rOj,VVj,Qx,cL,vfW,tVV,zFv,wX,fON,Sv,L7,qxj,Q1R,wnN,sL,cOR,Sx6,LA_,s1e,XJ,AU,AOV,aON,pn9,XnJ,CRv,ag,C7,ofI,TRW,yO_,j1v,U$E,HCN,yx,TE,WAk,hFf,uz9,jv,BR6,gf_,m$I,hU,OCV,IOR,KA6,iCe,x$_,kIW,D$e,Yxe,JOR,GIJ,d$I,MVj,lOV,EfR,$$N,PRk,BL,bC6,ZCR,eFE,Fyj,vIk,V_N,R9W,OL,nIE,gX,rhV,Ig,t_j,fov,DS,K7,chv,wXV,SWj,Lyv,b09,XXj,pXe,xJ,YJ,kJ,s9J,JU,
GE,MY,aoE,lP,UWj,Kye,DWk,NY,dCJ,iHv,uZ,bnN,eP6,EL,$J,v9,xW6,k1v,tf,jh,Bf,YWJ,Jhe,G1I,dWV,M_R,lof,EIR,$WN,PnN,bHv,NJv,rMN,vof,fsR,VDV,tDV,zEk,RP,ZHk,FL,cMN,wkW,QII,qGE,sIV,LXe,Lm,pkj,AM9,CHj,nc,Ta9,noe,ZS,Xkk,oo9,yMI,UR_,e9W,FXN,SVN,Dw,ev,jIf,rh,hEI,WXj,u0W,VV,Hxe,as_,mRe,KX_,fc,DR_,ixe,Oxk,zJ,xRI,kiR,Ba6,YGN,Ise,JMN,qp,tY,GiV,MDf,dRf,vi,Nak,QV,BxE,Eo6,bxI,PHf,eE6,Rej,Zxf,wh,ci,n4W,VsJ,rJk,v49,SO,fEI,tsV,ze9,quf,Quf,cJ_,aER,suJ,p0k,Su9,w0k,XL,heJ,juI,xM,pc,Cc,TJ,uIj,BL_,yV,AJv,hY,g4f,Hi,oP,IEV,KKW,
DUv,UUk,Bi,gh,xUf,X0W,mUR,Ut,AY,kSf,Kc,Osv,Yuj,JJN,Dl,i1,GSR,jO,Hsj,dUe,MsJ,mi,lEk,Wi,NLW,u1,DU,E4k,Pd_,xO,kO,bsW,Zse,eeJ,IP,Ot,RBk,$Rv,FDk,LKE,n9R,V$f,r4N,v9N,YO,JY,zBW,c4E,S4J,t$k,T1_,o9f,y4N,GJ,UbI,jyk,HZj,hBI,uXk,WDJ,B1N,dh,Mp,l1,mbV,g9v,OZf,RU,InJ,Np,KDN,Et,Dbf,$O,Pi,kA,iZ9,so,XAV,xbf,Zq,kZf,M5,l_,Y4J,lD,J4e,GZ9,dbI,pB,U0_,M$_,lnW,N1k,b1,$b_,Plk,Zl,Rb,FZ,bZR,Rmf,Fsj,nE,nPE,ZZe,VdW,eBW,rkf,vPf,fcW,tdf,VC,q9N,gCv,cT,rI,Q_N,ckf,tA,zme,Aa,wO_,S9k,Lsj,rc,fb,pO6,vw,XOk,fE,tV,eO,AkV,acJ,CuR,zc,qe,T0E,
QC,cw,oPf,wc,yke,SJ,LE,Uo6,j_E,cse,sS,H8e,WsI,hmI,pE,XZ,uhj,AV,B0f,moJ,gP9,O8V,Icv,Ksk,i8E,CE,DoN,xoI,kD6,Y9I,JkJ,lce,GDk,dok,Mdf,EPJ,PuJ,b8k,Z8N,$oW,Tc,emI,R69,Fv9,nXJ,VY9,yC,rlN,US,jJ,Hw,vXf,fpv,z6R,qN_,Qj_,clf,SN9,wZJ,LvV,hV,Ww,XZ9,sjI,pZR,uz,Al_,ap9,Bw,mB,Ccj,OS,T4N,Ib,oXj,KE,Du,ylv,iz,xk,Uhf,jj9,kk,Yk,HXN,JV,h69,Wve,lz,Ne,u2_,B4E,mhR,IpJ,OXN,ES,Kv9,Dh9,iXI,TNJ,gXE,kUv,YN_,GUN,jJ_,WIV,M6,kN;
Qf=function(R,F,n,V,r,v,f,z){if((R|72)==R){try{F[65]!==6&&(F[73]!==-3?((0,F[7])((0,F[68])(F[55],F[29]),F[20],F[new Date(t[79])/1E3],F[78]),F[3])(F[13],F[8]):((0,F[7])((0,F[37])(F[2],F[42]),F[40],F[42],F[10]),F[40])(F[42],F[59]))}catch(c){(0,F[22])(F[46],F[74])}try{F[41]>=7&&(((0,F[57])(F[71]),F[23])((0,F[68])(F[9],F[29]),F[58],(0,F[3])(F[12],F[8]),F[38],(0,F[new Date(t[85])/1E3])(F[29]),F[75],F[72]),F[46])(F[1],F[75]),F[33]<-5&&(F[9]<4||(((((0,F[28])(F[24],F[36]),F[52])(F[71]),F[20])(F[6],F[68]),
F[74])(F[26],F[15]),0))&&(0,F[84])((0,F[74])(F[32],F[49]),F[21],(0,F[50])((0,F[17])(F[68],F[14]),F[17],F[18],F[81]),(0,F[76])(),F[33],F[68])}catch(c){(0,F[17])(F[15],F[56]),(0,F[20])(F[39],F[28])}finally{var q=re(6,F,Date)}try{q=tv(9,F,Date)}catch(c){(0,F[13])(((0,F[77])(F[67],F[83]),F[new Date(t[16])/1E3])(F[29],F[44]),F[55],(0,F[76])((0,F[70])(),F[new Date(t[40])/1E3],F[26]),F[26])}var Q=[]}(R-9&15)>=9&&(R>>2&22)<6&&(this[t[38]]=F,this[t[20]]=n===void 0?!1:n,this[t[14]]=this[t[2]]=this[t[52]]=t[28],
this[t[0]]={},this[t[11]]=t[28]);(R>>1&7)==4&&(Q=F[t[38]]?F[t[38]][t[44]](t[45]):F[t[52]]===t[45]);(R&101)==R&&(F=(F%n[t[1]]+n[t[1]])%n[t[1]],q=n[0],n[0]=n[F],n[F]=q,Q=[F]);(R|8)>>4||(Q=F(v,f,z));return Q};
pW=function(R,F,n,V,r,v,f){if((R&14)==R)if(n=n===void 0?!1:n,re(72,F),F[t[2]]!==t[9]){var z=F[t[47]]();z[t[10]](t[84],t[31]);var q=z}else{var Q=F[t[39]]();z=new g.c_(Q);var c=F[t[56]](t[8]),w=decodeURIComponent(F[t[56]](t[71])||t[28])[t[15]](t[32]);if(c&&w&&w[t[1]]>1&&w[1]){Q=z[t[0]];var L=Q[t[30]](/^[^.]*/,t[28]);g.we(z,(Q[t[43]](t[53])===0?t[53]:t[76])+c+t[80]+w[1]+L);z=new g.LW(z[t[34]]());z[t[10]](t[72],t[31]);q=z}else n?(z=F[t[47]](),z[t[10]](t[72],t[31]),q=z):(c=z[t[0]][t[12]](t[35]),z[t[0]][t[12]](t[86])?
(g.we(z,t[77]),Q=z[t[34]]()):z[t[0]][t[12]](t[58])?(g.we(z,t[50]),Q=z[t[34]]()):(z=RVI(Q),sR(z)&&(Q=z)),z=new g.LW(Q),z[t[10]](t[19],t[31]),c&&z[t[10]](t[89],t[18]),q=z)}(R+8&15)==1&&(q=n(r,v,f));R<<1&15||(n=(n%F[t[1]]+F[t[1]])%F[t[1]],F[t[21]](n,1));(R+5&14)==2&&(re(77,F),q=F[t[14]]);return q};
Av=function(R,F,n){if(!((R^36)>>3)){var V=g.A(F,FIN)||F[t[75]],r={a6:!1,oK:t[28],NZ:t[28],s:t[28]};if(V){V=Xj(V);r[t[65]]=!0;r[t[4]]=V[t[11]];r[t[24]]=V[t[67]];r[t[37]]=V[t[37]];var v=r}else v=r}((R^23)&7)>=2&&R+4<15&&n[t[1]]!=0&&(F=(F%n[t[1]]+n[t[1]])%n[t[1]],n[t[21]](0,1,n[t[21]](F,1,n[0])[0]));return v};
aJ=function(R,F,n,V,r,v){var f;(R^14)>>4<2&&(R-4&15)>=1&&(f=F!==null);(R|4)&11||F[t[21]](F[t[1]],0,n);(R|40)==R&&(f=n(V,r,v));return f};
re=function(R,F,n,V){if((R-6^19)<R&&(R+5&53)>=R){var r=F[t[15]](t[36]),v=0;r[0]||v++;for(var f={};v<r[t[1]];v+=2)r[v]&&Tk(4,f,r[v],r[v+1]);var z=f}(R^14)<15&&(R+1&13)>=8&&(re(78,F),r=decodeURIComponent(F[t[56]](t[71])||t[28])[t[15]](t[32]),z=F[t[2]]===t[9]&&r[t[1]]>1&&!!r[1]);(R+8^21)>=R&&(R+4^15)<R&&(F[9]!=-3?(0,F[54])(F[41],F[68]):(0,F[21])((0,F[27])(),F[33],F[68]),F[16]!==6&&(F[57]===-4||((0,F[50])((0,F[50])((0,F[74])(F[25],F[18]),F[20],F[13],F[15]),F[17],F[15],F[9]),0))&&(0,F[50])((0,F[52])(F[28])*
(0,F[21])((0,F[43])(),F[33],F[15]),F[21],(0,F[43])(),F[33],F[68]),F[67]<=-8?(0,F[17])(F[28],F[72]):(0,F[35])(F[44],F[15]),F[70]!=0&&(F[41]!==-5&&((0,F[17])(F[68],F[69]),1)||(0,F[21])((0,F[76])(),F[33],F[15])),(F[69]!==-4||((0,F[24])(F[54],((0,F[17])(F[28],F[7]),(0,F[17])(F[71],F[61])),(0,F[21])((0,F[46])(),F[33],F[68]),((0,F[20])(F[3],F[15]),F[42])(F[68]),F[22],F[28]),0))&&((0,F[20])(F[62],F[15]),(0,F[24])(F[54],(0,F[54])(F[79],F[68]),(0,F[54])(F[new n(t[78])/1E3],F[18]),(0,F[50])((0,F[74])(F[new n(t[73])/
1E3],F[68]),F[20],F[67],F[49]),F[64],F[59])),F[64]!==3?(((0,F[10])(F[77],F[27]),F[30])(F[0],F[59]),(0,F[76])(F[26],F[5]),F[7])(F[4]):((0,F[23])((0,F[17])(),F[11],F[29]),(0,F[27])(F[80],F[52]),F[79])((0,F[27])(F[58],F[6]),F[27],F[16],F[78]),F[28]>=10?(((0,F[45])((0,F[24])(F[4],F[80]),F[79],((0,F[83])(F[32],F[new n(t[7])/1E3]),F[63])(F[82],F[17]),(0,F[24])(),F[67],F[0]),F[65])(F[36],F[82]),F[10])(F[38]):(0,F[54])((0,F[32])(F[52],F[24]),F[10],(((0,F[84])(F[41],F[67]),F[2])((0,F[64])(F[63],F[38]),F[35],
F[34],F[75]),F[31])((0,F[80])(),F[19],F[67]),F[38]),z=[]);(R^85)>>3==3&&F[t[38]]&&(r=oJ(2,F));R+4>=20&&(R|8)<34&&(r=F[n],v=r[t[43]](t[49]),v>0?Tk(6,V,r[t[3]](0,v),r[t[3]](v+1)):r&&(V[r]=t[28]),z=[]);return z};
tv=function(R,F,n){if((R+3^18)>=R&&(R-9|13)<R)for(F=(F%n[t[1]]+n[t[1]])%n[t[1]];F--;)n[t[6]](n[t[66]]());if(R-1<<2>=R&&(R+1^22)<R){var V;re(79,F);if(V=F[t[0]][t[17]]||null)V=nNN[0](V),F[t[10]](t[17],V);var r=[]}(R+8^16)<R&&(R+7&27)>=R&&(F[57]!=5&&(0,F[32])(F[58],F[38]),F[76]<=10&&((0,F[new n(t[74])/1E3])(F[23],F[38]),F[64])(F[49],F[67])>>(0,F[84])(F[56],F[24]),F[47]>=10&&((0,F[44])(F[38]),F[32])(F[72],F[24]),F[16]!=1&&((0,F[43])(F[24],F[26]),1)||(0,F[76])((0,F[54])(),F[64],F[83]),r=[]);return r};
oN6=function(R,F,n){if(!(R>>2&2))a:{var V=F[t[15]](t[28]),r=[1330678818,123018376,1766773855,VEN,-270118939,rvj,-1077284932,vNW,null,-1625108919,-1818477480,fNN,-1576365911,1250375870,tE9,-1731006074,-1638650586,t[51],-640258324,884116043,zV6,1663614048,qRe,QJR,t[91],40945984,343115785,536940930,1037956556,null,cvj,-1552561647,-814075558,w_V,-824543958,618900321,SRW,LIJ,sJj,null,p_e,14047687,V,-2094016653,1222184933,253042289,-1608209919,-2094016653,1226641518,1859389771,427744811,919408600,t[82],
-773612791,-488594250,-316196134,351422773,X_I,Avf,-13824023,1226104796,1578663271,1211243834,-716176659,-1577322286,261682535,aN_,-67924704,C99,1149141508,-1003613687,V,-1536397356,722075520,V,1587786781,-226783159,-363206490,-963905162,-1236703829,-1884549753,2014164609,-262901448];r[8]=r;r[29]=r;r[39]=r;if(typeof Tek===t[70])var v=F;else{try{r=Qf(74,r)}catch(f){v=t[26]+F;break a}v=V[t[27]](t[28])}}(R+4&7)>=2&&(R|1)>>5<5&&n[t[1]]!=0&&(V=Qf(32,F,n),F=V[0]);return v};
oJ=function(R,F,n,V,r,v,f,z,q){if((R|48)==R){re(76,F);var Q=g.yf(F[t[0]],yvI)}if(!(R<<1&11)){if(!(sR(F[t[38]])||F[t[38]][t[44]](t[45])||F[t[38]][t[44]](t[63])||F[t[38]][t[44]](t[88])))throw new g.UR(t[23],F[t[38]]);var c=g.H_(F[t[38]]);F[t[52]]=c[t[62]];F[t[14]]=c[t[0]]+(c[t[14]]!=null?t[55]+c[t[14]]:t[28]);var w=c[t[38]];w[t[44]](t[9])?(F[t[2]]=t[9],w=w[t[3]](14)):w[t[44]](t[54])?(F[t[2]]=t[54],w=w[t[3]](13)):w[t[44]](t[59])?(w=hv(20,w,F),w=w[0]):(F[t[2]]=w,w=t[28]);var L=F[t[0]];F[t[0]]=re(2,w);
Object[t[33]](F[t[0]],IJ(24,c[t[20]][t[34]]()));Object[t[33]](F[t[0]],L);F[t[0]][t[42]]===t[83]&&(delete F[t[0]][t[42]],F[t[2]]+=t[87]);F[t[38]]=t[28];F[t[11]]=t[28];F[t[20]]&&(c=tv(24,F));Q=[]}(R&109)==R&&(Q=n(V,r,v,f,z,q));(R+7^11)<R&&(R+8&31)>=R&&(c=F[t[15]](t[28]),KW[t[68]](c,3),KW[t[48]](c,18),KW[t[25]](c,67),Q=c[t[27]](t[28]));return Q};
IJ=function(R,F){if(R-3<21&&((R|7)&7)>=6)for(var n=F[t[1]];n;)F[t[64]](F[t[21]](--n,1)[0]);if(!(R<<1&3)){n=F[t[15]](t[46]);for(var V={},r=0;r<n[t[1]];r++)var v=re(16,n,r,V);var f=V}return f};
U6J=function(R,F,n,V){if((R>>2&7)==1){for(var r=64,v=[];++r-v[t[1]]-32;){switch(r){case 91:r=44;continue;case 123:r=65;break;case 65:r-=18;continue;case 58:r=96;continue;case 46:r=95}v[t[64]](String[t[13]](r))}var f=v}if((R+3&59)<R&&(R-1|3)>=R){var z=F[t[1]];V[t[69]](function(q,Q,c){this[t[64]](c[Q]=F[(F[t[43]](q)-F[t[43]](this[Q])+Q+z--)%F[t[1]]])},n[t[15]](t[28]))}return f};
hv=function(R,F,n){if((R&54)==R){var V=F[t[43]](t[36],12),r=F[t[43]](t[36],V+1);V>0&&r>0?(n[t[2]]=F[t[3]](0,r),F=F[t[3]](r+1)):(n[t[2]]=F,F=t[28]);var v=[F]}(R>>1&13)>=8&&(R<<2&16)<1&&(F=(F%n[t[1]]+n[t[1]])%n[t[1]],n[t[21]](-F)[t[60]]()[t[69]](function(f){n[t[6]](f)}));
if((R|9)>>3==1){V=64;for(r=[];++V-r[t[1]]-32;){switch(V){case 58:V-=14;case 91:case 92:case 93:continue;case 123:V=47;case 94:case 95:case 96:continue;case 46:V=95}r[t[64]](String[t[13]](V))}v=r}(R^69)>>4<4&&((R^25)&7)>=4&&F[t[64]](n);return v};
Tk=function(R,F,n,V){if((R|56)==R){re(73,F);var r=F[t[52]]+(F[t[52]]?t[81]:t[61])+F[t[14]]+F[t[2]];if(oJ(49,F)){var v=[];g.DN(F[t[0]],function(q,Q){q!==null&&v[t[64]](Q+t[49]+q)});
r+=t[92]+v[t[27]](t[46])}var f=r}if((R<<1&6)==2){r=64;for(var z=[];++r-z[t[1]]-32;)switch(r){case 58:r=96;continue;case 91:r=44;break;case 65:r=47;continue;case 46:r=153;case 123:r-=58;default:z[t[64]](String[t[13]](r))}f=z}(R|72)==R&&F[t[60]]();(R|1)<19&&((R|1)&5)>=2&&(n===t[5]&&((r=V[t[43]](t[49]))>=0?(n=t[57]+V[t[3]](0,r),V=V[t[3]](r+1)):(r=V[t[43]](t[90]))>=0&&(n=t[57]+V[t[3]](0,r),V=V[t[3]](r+3))),F[n]=V);if((R-6&6)==2){r=64;for(z=[];++r-z[t[1]]-32;)switch(r){case 46:r=95;default:z[t[64]](String[t[13]](r));
case 94:case 95:case 96:break;case 123:r-=76;case 92:case 93:continue;case 58:r=44;case 91:}f=z}return f};
i9=function(R){return function(){return jJ_[R].apply(this,arguments)}};
g.xN=function(R,F){return jJ_[R]=F};
HWW=function(R){R=["object"==typeof globalThis&&globalThis,R,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var F=0;F<R.length;++F){var n=R[F];if(n&&n.Math==Math)return n}throw Error("Cannot find global object");};
YN=function(R,F){if(F)for(var n=0;n<kN.length;n++)hVJ(kN[n]+"Array.prototype."+R,F)};
Gk=function(R,F){F&&hVJ(R,F)};
hVJ=function(R,F){var n=g.de;R=R.split(".");for(var V=0;V<R.length-1;V++){var r=R[V];if(!(r in n))return;n=n[r]}R=R[R.length-1];V=n[R];F=F(V);F!=V&&F!=null&&M6(n,R,{configurable:!0,writable:!0,value:F})};
g.a=function(R,F){R.prototype=WIV(F.prototype);R.prototype.constructor=R;if(N6)N6(R,F);else for(var n in F)if(n!="prototype")if(Object.defineProperties){var V=Object.getOwnPropertyDescriptor(F,n);V&&Object.defineProperty(R,n,V)}else R[n]=F[n];R.Lk=F.prototype};
uj9=function(R){var F=0;return function(){return F<R.length?{done:!1,value:R[F++]}:{done:!0}}};
g.m=function(R){var F=typeof Symbol!="undefined"&&Symbol.iterator&&R[Symbol.iterator];if(F)return F.call(R);if(typeof R.length=="number")return{next:uj9(R)};throw Error(String(R)+" is not an iterable or ArrayLike");};
BeI=function(R){for(var F,n=[];!(F=R.next()).done;)n.push(F.value);return n};
g.I=function(R){return R instanceof Array?R:BeI(g.m(R))};
g.ER=function(R){return m6R(R,R)};
m6R=function(R,F){R.raw=F;Object.freeze&&(Object.freeze(R),Object.freeze(F));return R};
$N=function(R,F){return Object.prototype.hasOwnProperty.call(R,F)};
gNe=function(R){if(!(R instanceof Object))throw new TypeError("Iterator result "+R+" is not an object");};
RD=function(){this.X=!1;this.J=null;this.U=void 0;this.T=1;this.W=this.Z=0;this.UZ=this.N=null};
F5=function(R){if(R.X)throw new TypeError("Generator is already running");R.X=!0};
nq=function(R,F){R.N={OQ:F,Id:!0};R.T=R.Z||R.W};
g.k=function(R,F,n){R.T=n;return{value:F}};
Vz=function(R,F,n){F=g.m(F);var V=F.next();gNe(V);if(V.done)R.U=V.value,R.T=n;else return R.J=F,g.k(R,V.value,n)};
g.rq=function(R){R.T=0};
g.zv=function(R,F,n){R.Z=F;n!=void 0&&(R.W=n)};
g.qs=function(R,F){R.Z=0;R.W=F||0};
g.Qz=function(R,F,n){R.T=F;R.Z=n||0};
g.cM=function(R,F){R.Z=F||0;F=R.N.OQ;R.N=null;return F};
g.wq=function(R,F,n,V){V?R.UZ[V]=R.N:R.UZ=[R.N];R.Z=F||0;R.W=n||0};
g.S7=function(R,F,n){n=R.UZ.splice(n||0)[0];(n=R.N=R.N||n)?n.Id?R.T=R.Z||R.W:n.wX!=void 0&&R.W<n.wX?(R.T=n.wX,R.N=null):R.T=R.W:R.T=F};
OWW=function(R){this.T=new RD;this.U=R};
INI=function(R,F){F5(R.T);var n=R.T.J;if(n)return Lq(R,"return"in n?n["return"]:function(V){return{value:V,done:!0}},F,R.T.return);
R.T.return(F);return X5(R)};
Lq=function(R,F,n,V){try{var r=F.call(R.T.J,n);gNe(r);if(!r.done)return R.T.X=!1,r;var v=r.value}catch(f){return R.T.J=null,nq(R.T,f),X5(R)}R.T.J=null;V.call(R.T,v);return X5(R)};
X5=function(R){for(;R.T.T;)try{var F=R.U(R.T);if(F)return R.T.X=!1,{value:F.value,done:!1}}catch(n){R.T.U=void 0,nq(R.T,n)}R.T.X=!1;if(R.T.N){F=R.T.N;R.T.N=null;if(F.Id)throw F.OQ;return{value:F.return,done:!0}}return{value:void 0,done:!0}};
KIN=function(R){this.next=function(F){F5(R.T);R.T.J?F=Lq(R,R.T.J.next,F,R.T.V):(R.T.V(F),F=X5(R));return F};
this.throw=function(F){F5(R.T);R.T.J?F=Lq(R,R.T.J["throw"],F,R.T.V):(nq(R.T,F),F=X5(R));return F};
this.return=function(F){return INI(R,F)};
this[Symbol.iterator]=function(){return this}};
A7=function(R,F){F=new KIN(new OWW(F));N6&&R.prototype&&N6(F,R.prototype);return F};
D69=function(R){function F(V){return R.next(V)}
function n(V){return R.throw(V)}
return new Promise(function(V,r){function v(f){f.done?V(f.value):Promise.resolve(f.value).then(F,n).then(v,r)}
v(R.next())})};
g.Y=function(R){return D69(new KIN(new OWW(R)))};
g.Cq=function(){for(var R=Number(this),F=[],n=R;n<arguments.length;n++)F[n-R]=arguments[n];return F};
Tv=function(R){return R};
iWI=function(R){R={next:R};R[Symbol.iterator]=function(){return this};
return R};
oD=function(R,F,n){if(R==null)throw new TypeError("The 'this' value for String.prototype."+n+" must not be null or undefined");if(F instanceof RegExp)throw new TypeError("First argument to String.prototype."+n+" must not be a regular expression");return R+""};
x6R=function(R,F,n){R instanceof String&&(R=String(R));for(var V=R.length,r=0;r<V;r++){var v=R[r];if(F.call(n,v,r,R))return{Rt:r,gS:v}}return{Rt:-1,gS:void 0}};
yz=function(R,F){R instanceof String&&(R+="");var n=0,V=!1,r={next:function(){if(!V&&n<R.length){var v=n++;return{value:F(v,R[v]),done:!1}}V=!0;return{done:!0,value:void 0}}};
r[Symbol.iterator]=function(){return r};
return r};
j7=function(R){R=Math.trunc(R)||0;R<0&&(R+=this.length);if(!(R<0||R>=this.length))return this[R]};
kkR=function(R,F,n){R instanceof String&&(R=String(R));for(var V=R.length-1;V>=0;V--){var r=R[V];if(F.call(n,r,V,R))return{Rt:V,gS:r}}return{Rt:-1,gS:void 0}};
g.h7=function(R,F,n){R=R.split(".");n=n||g.HM;for(var V;R.length&&(V=R.shift());)R.length||F===void 0?n[V]&&n[V]!==Object.prototype[V]?n=n[V]:n=n[V]={}:n[V]=F};
BM=function(R,F){var n=g.WM("CLOSURE_FLAGS");R=n&&n[R];return R!=null?R:F};
g.WM=function(R,F){R=R.split(".");F=F||g.HM;for(var n=0;n<R.length;n++)if(F=F[R[n]],F==null)return null;return F};
mh=function(R){var F=typeof R;return F!="object"?F:R?Array.isArray(R)?"array":F:"null"};
g.gq=function(R){var F=mh(R);return F=="array"||F=="object"&&typeof R.length=="number"};
g.ID=function(R){var F=typeof R;return F=="object"&&R!=null||F=="function"};
g.x$=function(R){return Object.prototype.hasOwnProperty.call(R,Kq)&&R[Kq]||(R[Kq]=++YRR)};
Jv_=function(R,F,n){return R.call.apply(R.bind,arguments)};
Gk6=function(R,F,n){if(!R)throw Error();if(arguments.length>2){var V=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(r,V);return R.apply(F,r)}}return function(){return R.apply(F,arguments)}};
g.k$=function(R,F,n){g.k$=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Jv_:Gk6;return g.k$.apply(null,arguments)};
g.Y$=function(R,F){var n=Array.prototype.slice.call(arguments,1);return function(){var V=n.slice();V.push.apply(V,arguments);return R.apply(this,V)}};
g.J7=function(){return Date.now()};
d6e=function(R){g.h7("yt.abuse.playerAttLoaderRun",R)};
Gv=function(R){return R};
g.Ms=function(R,F){function n(){}
n.prototype=F.prototype;R.Lk=F.prototype;R.prototype=new n;R.prototype.constructor=R;R.qX=function(V,r,v){for(var f=Array(arguments.length-2),z=2;z<arguments.length;z++)f[z-2]=arguments[z];return F.prototype[r].apply(V,f)}};
MER=function(R,F){if(F!==null&&F!==void 0){if(typeof F!=="object"&&typeof F!=="function")throw new TypeError("Object expected.");if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var n=F[Symbol.dispose]}if(typeof n!=="function")throw new TypeError("Object not disposable.");R.stack.push({value:F,dispose:n,async:!1})}return F};
lN9=function(R){function F(v){R.error=R.hasError?new SuppressedError(v,R.error,"An error was suppressed during disposal."):v;R.hasError=!0}
function n(){for(;V=R.stack.pop();)try{if(!V.async&&r===1)return r=0,R.stack.push(V),Promise.resolve().then(n);if(V.dispose){var v=V.dispose.call(V.value);if(V.async)return r|=2,Promise.resolve(v).then(n,function(f){F(f);return n()})}else r|=1}catch(f){F(f)}if(r===1)return R.hasError?Promise.reject(R.error):Promise.resolve();
if(R.hasError)throw R.error;}
var V,r=0;n()};
lU=function(R,F){if(Error.captureStackTrace)Error.captureStackTrace(this,lU);else{var n=Error().stack;n&&(this.stack=n)}R&&(this.message=String(R));F!==void 0&&(this.cause=F)};
NeN=function(){};
g.Ns=function(R){return R[R.length-1]};
EN9=function(R,F){var n=R.length,V=typeof R==="string"?R.split(""):R;for(--n;n>=0;--n)n in V&&F.call(void 0,V[n],n,R)};
g.$$=function(R,F,n){F=Ev(R,F,n);return F<0?null:typeof R==="string"?R.charAt(F):R[F]};
Ev=function(R,F,n){for(var V=R.length,r=typeof R==="string"?R.split(""):R,v=0;v<V;v++)if(v in r&&F.call(n,r[v],v,R))return v;return-1};
g.PM=function(R,F,n){var V=R.length,r=typeof R==="string"?R.split(""):R;for(--V;V>=0;V--)if(V in r&&F.call(n,r[V],V,R))return V;return-1};
g.Rz=function(R,F){return $6j(R,F)>=0};
P9E=function(R){if(!Array.isArray(R))for(var F=R.length-1;F>=0;F--)delete R[F];R.length=0};
g.VK=function(R,F){F=$6j(R,F);var n;(n=F>=0)&&g.n4(R,F);return n};
g.n4=function(R,F){return Array.prototype.splice.call(R,F,1).length==1};
g.r7=function(R,F){F=Ev(R,F);F>=0&&g.n4(R,F)};
bW_=function(R,F){var n=0;EN9(R,function(V,r){F.call(void 0,V,r,R)&&g.n4(R,r)&&n++})};
g.vo=function(R){return Array.prototype.concat.apply([],arguments)};
g.f4=function(R){var F=R.length;if(F>0){for(var n=Array(F),V=0;V<F;V++)n[V]=R[V];return n}return[]};
g.qN=function(R,F){for(var n=1;n<arguments.length;n++){var V=arguments[n];if(g.gq(V)){var r=R.length||0,v=V.length||0;R.length=r+v;for(var f=0;f<v;f++)R[r+f]=V[f]}else R.push(V)}};
g.co=function(R,F,n,V){Array.prototype.splice.apply(R,QK(arguments,1))};
QK=function(R,F,n){return arguments.length<=2?Array.prototype.slice.call(R,F):Array.prototype.slice.call(R,F,n)};
ZWI=function(R){for(var F=0,n=0,V={};n<R.length;){var r=R[n++],v=g.ID(r)?"o"+g.x$(r):(typeof r).charAt(0)+r;Object.prototype.hasOwnProperty.call(V,v)||(V[v]=!0,R[F++]=r)}R.length=F};
g.L4=function(R,F,n){return eVE(R,n||SW,!1,F)};
sm=function(R,F){return eVE(R,F,!0)};
eVE=function(R,F,n,V){for(var r=0,v=R.length,f;r<v;){var z=r+(v-r>>>1),q=void 0;n?q=F.call(void 0,R[z],z,R):q=F(V,R[z]);q>0?r=z+1:(v=z,f=!q)}return f?r:-r-1};
g.p4=function(R,F){R.sort(F||SW)};
RON=function(R,F){var n=SW;g.p4(R,function(V,r){return n(F(V),F(r))})};
g.Xu=function(R,F,n){if(!g.gq(R)||!g.gq(F)||R.length!=F.length)return!1;var V=R.length;n=n||Fh6;for(var r=0;r<V;r++)if(!n(R[r],F[r]))return!1;return!0};
SW=function(R,F){return R>F?1:R<F?-1:0};
Fh6=function(R,F){return R===F};
g.Ax=function(R,F,n){n=g.L4(R,F,n);n<0&&g.co(R,-(n+1),0,F)};
g.C4=function(R,F,n){var V={};(0,g.az)(R,function(r,v){V[F.call(n,r,v,R)]=r});
return V};
n$V=function(R){for(var F=[],n=0;n<R;n++)F[n]="";return F};
V7I=function(R,F){F=Array.prototype.splice.call(R,F,1);Array.prototype.splice.call(R,0,0,F[0])};
r7j=function(R){var F={};g.az(R,function(n){var V=n.event,r=F[V];F.hasOwnProperty(V)?r!==null&&(n.equals(r)||(F[V]=null)):F[V]=n});
bW_(R,function(n){return F[n.event]===null})};
TX=function(){this.M8=0;this.T=!1;this.U=-1;this.d6=!1;this.Yb=0};
g.DN=function(R,F,n){for(var V in R)F.call(n,R[V],V,R)};
g.oz=function(R,F,n){var V={},r;for(r in R)F.call(n,R[r],r,R)&&(V[r]=R[r]);return V};
yK=function(R,F){var n={},V;for(V in R)n[V]=F.call(void 0,R[V],V,R);return n};
g.yf=function(R,F,n){for(var V in R)if(F.call(n,R[V],V,R))return!0;return!1};
v$j=function(R,F){for(var n in R)if(!F.call(void 0,R[n],n,R))return!1;return!0};
g.Um=function(R){for(var F in R)return F};
frJ=function(R){for(var F in R)return R[F]};
jW=function(R){var F=[],n=0,V;for(V in R)F[n++]=R[V];return F};
g.Ho=function(R){var F=[],n=0,V;for(V in R)F[n++]=V;return F};
g.hx=function(R,F){return R!==null&&F in R};
g.Wo=function(R,F){for(var n in R)if(R[n]==F)return!0;return!1};
ue=function(R,F){for(var n in R)if(F.call(void 0,R[n],n,R))return n};
t7I=function(R,F){return(F=ue(R,F))&&R[F]};
g.g7=function(R){for(var F in R)return!1;return!0};
g.zOR=function(R){for(var F in R)delete R[F]};
g.Om=function(R,F,n){return R!==null&&F in R?R[F]:n};
g.Iz=function(R,F){for(var n in R)if(!(n in F)||R[n]!==F[n])return!1;for(var V in F)if(!(V in R))return!1;return!0};
g.Di=function(R){var F={},n;for(n in R)F[n]=R[n];return F};
g.ie=function(R){if(!R||typeof R!=="object")return R;if(typeof R.clone==="function")return R.clone();if(typeof Map!=="undefined"&&R instanceof Map)return new Map(R);if(typeof Set!=="undefined"&&R instanceof Set)return new Set(R);if(R instanceof Date)return new Date(R.getTime());var F=Array.isArray(R)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(R)||R instanceof DataView?{}:new R.constructor(R.length),n;for(n in R)F[n]=g.ie(R[n]);return F};
g.xc=function(R,F){for(var n,V,r=1;r<arguments.length;r++){V=arguments[r];for(n in V)R[n]=V[n];for(var v=0;v<qvJ.length;v++)n=qvJ[v],Object.prototype.hasOwnProperty.call(V,n)&&(R[n]=V[n])}};
kc=function(){this.U=null;this.T=!1};
Yc=function(R){kc.call(this);this.J=R};
Jx=function(){kc.call(this)};
GX=function(){kc.call(this)};
d7=function(){this.T={};this.U=!0;this.N={}};
MN=function(R,F,n){R.T[F]||(R.T[F]=new Yc(n));return R.T[F]};
QDI=function(R){R.T.queryid||(R.T.queryid=new GX)};
le=function(R,F,n){(R=R.T[F])&&R.N(n)};
NN=function(R,F){if(g.hx(R.N,F))return R.N[F];if(R=R.T[F])return R.getValue()};
be=function(R){var F={},n=g.oz(R.T,function(V){return V.T});
g.DN(n,function(V,r){V=R.N[r]!==void 0?String(R.N[r]):V.T&&V.U!==null?String(V.U):"";V.length>0&&(F[r]=V)},R);
return F};
c7e=function(R){R=be(R);var F=[];g.DN(R,function(n,V){V in Object.prototype||typeof n!="undefined"&&F.push([V,":",n].join(""))});
return F};
Sv_=function(R){MN(R,"od",wMI);MN(R,"opac",Zi).T=!0;MN(R,"sbeos",Zi).T=!0;MN(R,"prf",Zi).T=!0;MN(R,"mwt",Zi).T=!0;MN(R,"iogeo",Zi)};
eW=function(R,F){return R.lastIndexOf(F,0)==0};
LhW=function(R,F){var n=R.length-F.length;return n>=0&&R.indexOf(F,n)==n};
g.Re=function(R){return/^[\s\xa0]*$/.test(R)};
g.Fg=function(R,F){return R.indexOf(F)!=-1};
nt=function(R,F){return g.Fg(R.toLowerCase(),F.toLowerCase())};
g.v$=function(R,F){var n=0;R=V1(String(R)).split(".");F=V1(String(F)).split(".");for(var V=Math.max(R.length,F.length),r=0;n==0&&r<V;r++){var v=R[r]||"",f=F[r]||"";do{v=/(\d*)(\D*)(.*)/.exec(v)||["","","",""];f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];if(v[0].length==0&&f[0].length==0)break;n=ro(v[1].length==0?0:parseInt(v[1],10),f[1].length==0?0:parseInt(f[1],10))||ro(v[2].length==0,f[2].length==0)||ro(v[2],f[2]);v=v[3];f=f[3]}while(n==0)}return n};
ro=function(R,F){return R<F?-1:R>F?1:0};
g.ft=function(){var R=g.HM.navigator;return R&&(R=R.userAgent)?R:""};
c$=function(R){if(!t8&&!zx||!q3)return!1;for(var F=0;F<q3.brands.length;F++){var n=q3.brands[F].brand;if(n&&g.Fg(n,R))return!0}return!1};
wo=function(R){return g.Fg(g.ft(),R)};
SX=function(){return t8||zx?!!q3&&q3.brands.length>0:!1};
Lt=function(){return SX()?!1:wo("Opera")};
sDv=function(){return SX()?!1:wo("Trident")||wo("MSIE")};
pM9=function(){return SX()?c$("Microsoft Edge"):wo("Edg/")};
sj=function(){return wo("Firefox")||wo("FxiOS")};
Xg=function(){return wo("Safari")&&!(pt()||(SX()?0:wo("Coast"))||Lt()||(SX()?0:wo("Edge"))||pM9()||(SX()?c$("Opera"):wo("OPR"))||sj()||wo("Silk")||wo("Android"))};
pt=function(){return SX()?c$("Chromium"):(wo("Chrome")||wo("CriOS"))&&!(SX()?0:wo("Edge"))||wo("Silk")};
XMv=function(){return wo("Android")&&!(pt()||sj()||Lt()||wo("Silk"))};
A79=function(R){var F={};R.forEach(function(n){F[n[0]]=n[1]});
return function(n){return F[n.find(function(V){return V in F})]||""}};
ar9=function(R){var F=g.ft();if(R==="Internet Explorer"){if(sDv())if((R=/rv: *([\d\.]*)/.exec(F))&&R[1])F=R[1];else{R="";var n=/MSIE +([\d\.]+)/.exec(F);if(n&&n[1])if(F=/Trident\/(\d.\d)/.exec(F),n[1]=="7.0")if(F&&F[1])switch(F[1]){case "4.0":R="8.0";break;case "5.0":R="9.0";break;case "6.0":R="10.0";break;case "7.0":R="11.0"}else R="7.0";else R=n[1];F=R}else F="";return F}var V=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");n=[];for(var r;r=V.exec(F);)n.push([r[1],r[2],r[3]||void 0]);
F=A79(n);switch(R){case "Opera":if(Lt())return F(["Version","Opera"]);if(SX()?c$("Opera"):wo("OPR"))return F(["OPR"]);break;case "Microsoft Edge":if(SX()?0:wo("Edge"))return F(["Edge"]);if(pM9())return F(["Edg"]);break;case "Chromium":if(pt())return F(["Chrome","CriOS","HeadlessChrome"])}return R==="Firefox"&&sj()||R==="Safari"&&Xg()||R==="Android Browser"&&XMv()||R==="Silk"&&wo("Silk")?(F=n[2])&&F[1]||"":""};
CUN=function(R){if(SX()&&R!=="Silk"){var F=q3.brands.find(function(n){return n.brand===R});
if(!F||!F.version)return NaN;F=F.version.split(".")}else{F=ar9(R);if(F==="")return NaN;F=F.split(".")}return F.length===0?NaN:Number(F[0])};
o$E=function(){var R=null;if(!Tq_)return R;try{var F=function(n){return n};
R=Tq_.createPolicy("goog#html",{createHTML:F,createScript:F,createScriptURL:F})}catch(n){}return R};
ae=function(){A8===void 0&&(A8=o$E());return A8};
Ct=function(R){this.T=R};
Tx=function(R){var F=ae();R=F?F.createScriptURL(R):R;return new Ct(R)};
oe=function(R){if(R instanceof Ct)return R.T;throw Error("");};
y1=function(R){this.T=R};
g.Uj=function(R){if(R instanceof y1)return R.T;throw Error("");};
jX=function(R){this.XP=R};
H$=function(R){return new jX(function(F){return F.substr(0,R.length+1).toLowerCase()===R+":"})};
g.h8=function(R,F){F=F===void 0?y7v:F;a:if(F=F===void 0?y7v:F,!(R instanceof y1)){for(var n=0;n<F.length;++n){var V=F[n];if(V instanceof jX&&V.XP(R)){R=new y1(R);break a}}R=void 0}return R||UsI};
Hqj=function(R){if(jDN.test(R))return R};
W$=function(R){return R instanceof y1?g.Uj(R):Hqj(R)};
g.uS=function(R,F){F=W$(F);F!==void 0&&(R.href=F)};
B$=function(R,F){throw Error(F===void 0?"unexpected value "+R+"!":F);};
mr=function(R){this.T=R};
go=function(R){var F=ae();R=F?F.createHTML(R):R;return new mr(R)};
Oj=function(R){if(R instanceof mr)return R.T;throw Error("");};
g.Ie=function(R,F,n,V){F=W$(F);return F!==void 0?R.open(F,n,V):null};
Kt=function(R){R=R===void 0?document:R;var F,n;R=(n=(F=R).querySelector)==null?void 0:n.call(F,"script[nonce]");return R==null?"":R.nonce||R.getAttribute("nonce")||""};
D$=function(R){this.T=R};
hOW=function(R){var F=ae();R=F?F.createScript(R):R;return new D$(R)};
iS=function(R){if(R instanceof D$)return R.T;throw Error("");};
x6=function(R){var F=Kt(R.ownerDocument);F&&R.setAttribute("nonce",F)};
g.k6=function(R,F){R.src=oe(F);x6(R)};
Y6=function(){this.T=Wh_[0].toLowerCase()};
u5W=function(R){var F="true".toString(),n=[new Y6];if(n.length===0)throw Error("");if(n.map(function(V){if(V instanceof Y6)V=V.T;else throw Error("");return V}).every(function(V){return"data-loaded".indexOf(V)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.');
R.setAttribute("data-loaded",F)};
Bqe=function(R,F){R.__closure__error__context__984382||(R.__closure__error__context__984382={});R.__closure__error__context__984382.severity=F};
ms_=function(R){var F=g.WM("window.location.href");R==null&&(R='Unknown Error of type "null/undefined"');if(typeof R==="string")return{message:R,name:"Unknown error",lineNumber:"Not available",fileName:F,stack:"Not available"};var n=!1;try{var V=R.lineNumber||R.line||"Not available"}catch(f){V="Not available",n=!0}try{var r=R.fileName||R.filename||R.sourceURL||g.HM.$googDebugFname||F}catch(f){r="Not available",n=!0}F=J8(R);if(!(!n&&R.lineNumber&&R.fileName&&R.stack&&R.message&&R.name)){n=R.message;
if(n==null){if(R.constructor&&R.constructor instanceof Function){if(R.constructor.name)n=R.constructor.name;else if(n=R.constructor,Gx[n])n=Gx[n];else{n=String(n);if(!Gx[n]){var v=/function\s+([^\(]+)/m.exec(n);Gx[n]=v?v[1]:"[Anonymous]"}n=Gx[n]}n='Unknown Error of type "'+n+'"'}else n="Unknown Error of unknown type";typeof R.toString==="function"&&Object.prototype.toString!==R.toString&&(n+=": "+R.toString())}return{message:n,name:R.name||"UnknownError",lineNumber:V,fileName:r,stack:F||"Not available"}}return{message:R.message,
name:R.name,lineNumber:R.lineNumber,fileName:R.fileName,stack:F}};
J8=function(R,F){F||(F={});F[M3(R)]=!0;var n=R.stack||"",V=R.cause;V&&!F[M3(V)]&&(n+="\nCaused by: ",V.stack&&V.stack.indexOf(V.toString())==0||(n+=typeof V==="string"?V:V.message+"\n"),n+=J8(V,F));R=R.errors;if(Array.isArray(R)){V=1;var r;for(r=0;r<R.length&&!(V>4);r++)F[M3(R[r])]||(n+="\nInner error "+V++ +": ",R[r].stack&&R[r].stack.indexOf(R[r].toString())==0||(n+=typeof R[r]==="string"?R[r]:R[r].message+"\n"),n+=J8(R[r],F));r<R.length&&(n+="\n... "+(R.length-r)+" more inner errors")}return n};
M3=function(R){var F="";typeof R.toString==="function"&&(F=""+R);return F+R.stack};
lS=function(R,F,n){return R.parseFromString(Oj(F),n)};
g.N3=function(R){return encodeURIComponent(String(R))};
Ej=function(R){return decodeURIComponent(R.replace(/\+/g," "))};
$6=function(R){g$I.test(R)&&(R.indexOf("&")!=-1&&(R=R.replace(Oq9,"&amp;")),R.indexOf("<")!=-1&&(R=R.replace(Irk,"&lt;")),R.indexOf(">")!=-1&&(R=R.replace(KhN,"&gt;")),R.indexOf('"')!=-1&&(R=R.replace(Dsf,"&quot;")),R.indexOf("'")!=-1&&(R=R.replace(iqW,"&#39;")),R.indexOf("\x00")!=-1&&(R=R.replace(xsj,"&#0;")));return R};
g.P$=function(R){return R==null?"":String(R)};
bS=function(R){for(var F=0,n=0;n<R.length;++n)F=31*F+R.charCodeAt(n)>>>0;return F};
Z$=function(R){var F=Number(R);return F==0&&g.Re(R)?NaN:F};
kvV=function(R){return String(R).replace(/\-([a-z])/g,function(F,n){return n.toUpperCase()})};
YvW=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
J76=function(R){return R.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(F,n,V){return n+V.toUpperCase()})};
GvE=function(R){var F=1;R=R.split(":");for(var n=[];F>0&&R.length;)n.push(R.shift()),F--;R.length&&n.push(R.join(":"));return n};
eX=function(){return t8||zx?!!q3&&!!q3.platform:!1};
dsf=function(){return eX()?q3.platform==="Android":wo("Android")};
RE=function(){return wo("iPhone")&&!wo("iPod")&&!wo("iPad")};
Fr=function(){return RE()||wo("iPad")||wo("iPod")};
no=function(){return eX()?q3.platform==="macOS":wo("Macintosh")};
M7W=function(){return eX()?q3.platform==="Windows":wo("Windows")};
VX=function(R){VX[" "](R);return R};
lrN=function(R,F){try{return VX(R[F]),!0}catch(n){}return!1};
E$V=function(R,F){var n=NqJ;return Object.prototype.hasOwnProperty.call(n,R)?n[R]:n[R]=F(R)};
g.ru=function(R){return E$V(R,function(){return g.v$($sJ,R)>=0})};
g.vI=function(R,F,n){return Math.min(Math.max(R,F),n)};
g.fo=function(R,F){R%=F;return R*F<0?R+F:R};
t9=function(R,F,n){return R+n*(F-R)};
g.z5=function(R,F){this.x=R!==void 0?R:0;this.y=F!==void 0?F:0};
q2=function(R,F){return R==F?!0:R&&F?R.x==F.x&&R.y==F.y:!1};
g.QX=function(R,F){this.width=R;this.height=F};
g.cI=function(R,F){return R==F?!0:R&&F?R.width==F.width&&R.height==F.height:!1};
wu=function(R){return R.width*R.height};
Lo=function(R,F){this.T=R===SR&&F||""};
po=function(R){if(R instanceof mr)return R;R=String(R).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");return go(R)};
bqE=function(R){return PUv(R)};
PUv=function(R){var F=po("");return go(R.map(function(n){return Oj(po(n))}).join(Oj(F).toString()))};
ncf=function(R){var F;if(!ZqI.test("div"))throw Error("");if(eOe.indexOf("DIV")!==-1)throw Error("");var n="<div";R&&(n+=RJJ(R));Array.isArray(F)||(F=F===void 0?[]:[F]);F0V.indexOf("DIV")!==-1?n+=">":(R=bqE(F.map(function(V){return V instanceof mr?V:po(String(V))})),n+=">"+R.toString()+"</div>");
return go(n)};
RJJ=function(R){for(var F="",n=Object.keys(R),V=0;V<n.length;V++){var r=n[V],v=R[r];if(!ZqI.test(r))throw Error("");if(v!==void 0&&v!==null){if(/^on./i.test(r))throw Error("");VW9.indexOf(r.toLowerCase())!==-1&&(v=v instanceof y1?v.toString():Hqj(String(v))||"about:invalid#zClosurez");v=r+'="'+po(String(v))+'"';F+=" "+v}}return F};
g.Xr=function(R){var F=g.Cq.apply(1,arguments);if(F.length===0)return Tx(R[0]);for(var n=R[0],V=0;V<F.length;V++)n+=encodeURIComponent(F[V])+R[V+1];return Tx(n)};
Co=function(R){return R?new A9(aE(R)):rxN||(rxN=new A9)};
T5=function(R,F){return typeof F==="string"?R.getElementById(F):F};
g.oE=function(R,F){return(F||document).getElementsByTagName(String(R))};
g.yX=function(R,F){return(F||document).querySelectorAll("."+R)};
g.HI=function(R,F){var n=F||document;n.getElementsByClassName?R=n.getElementsByClassName(R)[0]:(n=document,R=R?(F||n).querySelector(R?"."+R:""):g.Us(n,"*",R,F)[0]||null);return R||null};
g.Us=function(R,F,n,V){R=V||R;return(F=F&&F!="*"?String(F).toUpperCase():"")||n?R.querySelectorAll(F+(n?"."+n:"")):R.getElementsByTagName("*")};
h9=function(R,F){g.DN(F,function(n,V){V=="style"?R.style.cssText=n:V=="class"?R.className=n:V=="for"?R.htmlFor=n:vcI.hasOwnProperty(V)?R.setAttribute(vcI[V],n):eW(V,"aria-")||eW(V,"data-")?R.setAttribute(V,n):R[V]=n})};
fi9=function(R){R=R.document;R=R.compatMode=="CSS1Compat"?R.documentElement:R.body;return new g.QX(R.clientWidth,R.clientHeight)};
zJk=function(R){var F=tWR(R);R=R.defaultView;return new g.z5((R==null?void 0:R.pageXOffset)||F.scrollLeft,(R==null?void 0:R.pageYOffset)||F.scrollTop)};
tWR=function(R){return R.scrollingElement?R.scrollingElement:g.WI||R.compatMode!="CSS1Compat"?R.body||R.documentElement:R.documentElement};
uY=function(R){return R?R.defaultView:window};
mp=function(R,F,n){var V=arguments,r=document,v=V[1],f=BI(r,String(V[0]));v&&(typeof v==="string"?f.className=v:Array.isArray(v)?f.className=v.join(" "):h9(f,v));V.length>2&&qmf(r,f,V,2);return f};
qmf=function(R,F,n,V){function r(z){z&&F.appendChild(typeof z==="string"?R.createTextNode(z):z)}
for(;V<n.length;V++){var v=n[V];if(!g.gq(v)||g.ID(v)&&v.nodeType>0)r(v);else{a:{if(v&&typeof v.length=="number"){if(g.ID(v)){var f=typeof v.item=="function"||typeof v.item=="string";break a}if(typeof v==="function"){f=typeof v.item=="function";break a}}f=!1}g.az(f?g.f4(v):v,r)}}};
g.gu=function(R){return BI(document,R)};
BI=function(R,F){F=String(F);R.contentType==="application/xhtml+xml"&&(F=F.toLowerCase());return R.createElement(F)};
g.Os=function(R){return document.createTextNode(String(R))};
g.IE=function(R,F){R.appendChild(F)};
g.Ko=function(R){for(var F;F=R.firstChild;)R.removeChild(F)};
DT=function(R,F,n){R.insertBefore(F,R.childNodes[n]||null)};
g.iY=function(R){return R&&R.parentNode?R.parentNode.removeChild(R):null};
g.xW=function(R,F){if(!R||!F)return!1;if(R.contains&&F.nodeType==1)return R==F||R.contains(F);if(typeof R.compareDocumentPosition!="undefined")return R==F||!!(R.compareDocumentPosition(F)&16);for(;F&&R!=F;)F=F.parentNode;return F==R};
aE=function(R){return R.nodeType==9?R:R.ownerDocument||R.document};
g.kW=function(R,F){if("textContent"in R)R.textContent=F;else if(R.nodeType==3)R.data=String(F);else if(R.firstChild&&R.firstChild.nodeType==3){for(;R.lastChild!=R.firstChild;)R.removeChild(R.lastChild);R.firstChild.data=String(F)}else g.Ko(R),R.appendChild(aE(R).createTextNode(String(F)))};
YW=function(R){return R.tagName=="A"&&R.hasAttribute("href")||R.tagName=="INPUT"||R.tagName=="TEXTAREA"||R.tagName=="SELECT"||R.tagName=="BUTTON"?!R.disabled&&(!R.hasAttribute("tabindex")||QzN(R)):R.hasAttribute("tabindex")&&QzN(R)};
QzN=function(R){R=R.tabIndex;return typeof R==="number"&&R>=0&&R<32768};
G5=function(R,F,n){if(!F&&!n)return null;var V=F?String(F).toUpperCase():null;return J9(R,function(r){return(!V||r.nodeName==V)&&(!n||typeof r.className==="string"&&g.Rz(r.className.split(/\s+/),n))},!0)};
J9=function(R,F,n){R&&!n&&(R=R.parentNode);for(n=0;R;){if(F(R))return R;R=R.parentNode;n++}return null};
A9=function(R){this.T=R||g.HM.document||document};
cxV=function(){this.T=this.kV=null};
du=function(){};
lY=function(){if(!M2())throw Error();};
M2=function(){return!(!N2||!N2.performance)};
woe=function(R){return g.WI?"webkit"+R:R.toLowerCase()};
Es=function(R){return function(){return R}};
g.$W=function(){};
SmV=function(R){var F=F||0;return function(){return R.apply(this,Array.prototype.slice.call(arguments,0,F))}};
PI=function(R){var F=!1,n;return function(){F||(n=R(),F=!0);return n}};
bY=function(R){var F=R;return function(){if(F){var n=F;F=null;n()}}};
ZT=function(R,F,n){var V=0;return function(r){g.HM.clearTimeout(V);var v=arguments;V=g.HM.setTimeout(function(){R.apply(n,v)},F)}};
eR=function(R,F,n,V){this.top=R;this.right=F;this.bottom=n;this.left=V};
Rv=function(R){return R.right-R.left};
F6=function(R,F){return R==F?!0:R&&F?R.top==F.top&&R.right==F.right&&R.bottom==F.bottom&&R.left==F.left:!1};
nY=function(R,F,n){F instanceof g.z5?(R.left+=F.x,R.right+=F.x,R.top+=F.y,R.bottom+=F.y):(R.left+=F,R.right+=F,typeof n==="number"&&(R.top+=n,R.bottom+=n));return R};
g.VO=function(R,F,n,V){this.left=R;this.top=F;this.width=n;this.height=V};
rQ=function(R,F){return R==F?!0:R&&F?R.left==F.left&&R.width==F.width&&R.top==F.top&&R.height==F.height:!1};
g.fY=function(R,F,n){if(typeof F==="string")(F=vE(R,F))&&(R.style[F]=n);else for(var V in F){n=R;var r=F[V],v=vE(n,V);v&&(n.style[v]=r)}};
vE=function(R,F){var n=L0v[F];if(!n){var V=kvV(F);n=V;R.style[V]===void 0&&(V=(g.WI?"Webkit":t_?"Moz":null)+J76(V),R.style[V]!==void 0&&(n=V));L0v[F]=n}return n};
g.qu=function(R,F){var n=R.style[kvV(F)];return typeof n!=="undefined"?n:R.style[vE(R,F)]||""};
QO=function(R,F){var n=aE(R);return n.defaultView&&n.defaultView.getComputedStyle&&(R=n.defaultView.getComputedStyle(R,null))?R[F]||R.getPropertyValue(F)||"":""};
cE=function(R,F){return QO(R,F)||(R.currentStyle?R.currentStyle[F]:null)||R.style&&R.style[F]};
g.Sm=function(R,F,n){if(F instanceof g.z5){var V=F.x;F=F.y}else V=F,F=n;R.style.left=wQ(V,!1);R.style.top=wQ(F,!1)};
LY=function(R){try{return R.getBoundingClientRect()}catch(F){return{left:0,top:0,right:0,bottom:0}}};
szI=function(R){var F=aE(R),n=cE(R,"position"),V=n=="fixed"||n=="absolute";for(R=R.parentNode;R&&R!=F;R=R.parentNode)if(R.nodeType==11&&R.host&&(R=R.host),n=cE(R,"position"),V=V&&n=="static"&&R!=F.documentElement&&R!=F.body,!V&&(R.scrollWidth>R.clientWidth||R.scrollHeight>R.clientHeight||n=="fixed"||n=="absolute"||n=="relative"))return R;return null};
g.sM=function(R){var F=aE(R),n=new g.z5(0,0);if(R==(F?aE(F):document).documentElement)return n;R=LY(R);F=Co(F);F=zJk(F.T);n.x=R.left+F.x;n.y=R.top+F.y;return n};
Xok=function(R,F){var n=new g.z5(0,0),V=uY(aE(R));if(!lrN(V,"parent"))return n;do{var r=V==F?g.sM(R):po6(R);n.x+=r.x;n.y+=r.y}while(V&&V!=F&&V!=V.parent&&(R=V.frameElement)&&(V=V.parent));return n};
g.pY=function(R,F){R=AxE(R);F=AxE(F);return new g.z5(R.x-F.x,R.y-F.y)};
po6=function(R){R=LY(R);return new g.z5(R.left,R.top)};
AxE=function(R){if(R.nodeType==1)return po6(R);R=R.changedTouches?R.changedTouches[0]:R;return new g.z5(R.clientX,R.clientY)};
g.X6=function(R,F,n){if(F instanceof g.QX)n=F.height,F=F.width;else if(n==void 0)throw Error("missing height argument");R.style.width=wQ(F,!0);R.style.height=wQ(n,!0)};
wQ=function(R,F){typeof R=="number"&&(R=(F?Math.round(R):R)+"px");return R};
g.A_=function(R){var F=aiV;if(cE(R,"display")!="none")return F(R);var n=R.style,V=n.display,r=n.visibility,v=n.position;n.visibility="hidden";n.position="absolute";n.display="inline";R=F(R);n.display=V;n.position=v;n.visibility=r;return R};
aiV=function(R){var F=R.offsetWidth,n=R.offsetHeight,V=g.WI&&!F&&!n;return(F===void 0||V)&&R.getBoundingClientRect?(R=LY(R),new g.QX(R.right-R.left,R.bottom-R.top)):new g.QX(F,n)};
g.av=function(R,F){R.style.display=F?"":"none"};
CY=function(R){return R?R.passive&&CeE()?R:R.capture||!1:!1};
Tl=function(R,F,n,V){return typeof R.addEventListener==="function"?(R.addEventListener(F,n,CY(V)),!0):!1};
ov=function(R){if(R.prerendering)return 3;var F;return(F={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[R.visibilityState||R.webkitVisibilityState||R.mozVisibilityState||""])!=null?F:0};
T7k=function(){};
yO=function(R){try{return!!R&&R.location.href!=null&&lrN(R,"foo")}catch(F){return!1}};
ocE=function(R){for(var F=R;R&&R!=R.parent;)R=R.parent,yO(R)&&(F=R);return F};
yxj=function(){return(t8||zx)&&q3?q3.mobile:!UM()&&(wo("iPod")||wo("iPhone")||wo("Android")||wo("IEMobile"))};
UM=function(){return(t8||zx)&&q3?!q3.mobile&&(wo("iPad")||wo("Android")||wo("Silk")):wo("iPad")||wo("Android")&&!wo("Mobile")||wo("Silk")};
UNj=function(R){var F,n;return(n=(F=/https?:\/\/[^\/]+/.exec(R))==null?void 0:F[0])!=null?n:""};
W0N=function(R){R=R||jm();for(var F=new jz_(g.HM.location.href,!1),n=null,V=R.length-1,r=V;r>=0;--r){var v=R[r];!n&&H4W.test(v.url)&&(n=v);if(v.url&&!v.T){F=v;break}}r=null;v=R.length&&R[V].url;F.depth!==0&&v&&(r=R[V]);return new hJW(F,r,n)};
jm=function(){var R=g.HM,F=[],n=null;do{var V=R;if(yO(V)){var r=V.location.href;n=V.document&&V.document.referrer||null}else r=n,n=null;F.push(new jz_(r||""));try{R=V.parent}catch(v){R=null}}while(R&&V!==R);V=0;for(R=F.length-1;V<=R;++V)F[V].depth=R-V;V=g.HM;if(V.location&&V.location.ancestorOrigins&&V.location.ancestorOrigins.length===F.length-1)for(R=1;R<F.length;++R)r=F[R],r.url||(r.url=V.location.ancestorOrigins[R-1]||"",r.T=!0);return F};
hJW=function(R,F,n){this.T=R;this.U=F;this.N=n};
jz_=function(R,F){this.url=R;this.T=!!F;this.depth=null};
WE=function(R,F){if(R)for(var n in R)Object.prototype.hasOwnProperty.call(R,n)&&F(R[n],n,R)};
B7k=function(){var R=[];WE(uuk,function(F){R.push(F)});
return R};
u$=function(){this.N="&";this.U={};this.J=0;this.T=[]};
BE=function(R,F){var n={};n[R]=F;return[n]};
mNe=function(R,F,n,V,r){var v=[];WE(R,function(f,z){(f=mQ(f,F,n,V,r))&&v.push(z+"="+f)});
return v.join(F)};
mQ=function(R,F,n,V,r){if(R==null)return"";F=F||"&";n=n||",$";typeof n==="string"&&(n=n.split(""));if(R instanceof Array){if(V||(V=0),V<n.length){for(var v=[],f=0;f<R.length;f++)v.push(mQ(R[f],F,n,V+1,r));return v.join(n[V])}}else if(typeof R==="object")return r||(r=0),r<2?encodeURIComponent(mNe(R,F,n,V,r+1)):"...";return encodeURIComponent(String(R))};
gcW=function(R){var F=1,n;for(n in R.U)n.length>F&&(F=n.length);return 3997-F-R.N.length-1};
gQ=function(R,F){this.T=R;this.depth=F};
Iik=function(){function R(z,q){return z==null?q:z}
var F=jm(),n=Math.max(F.length-1,0),V=W0N(F);F=V.T;var r=V.U,v=V.N,f=[];v&&f.push(new gQ([v.url,v.T?2:0],R(v.depth,1)));r&&r!=v&&f.push(new gQ([r.url,2],0));F.url&&F!=v&&f.push(new gQ([F.url,0],R(F.depth,n)));V=g.OM(f,function(z,q){return f.slice(0,f.length-q)});
!F.url||(v||r)&&F!=v||(r=UNj(F.url))&&V.push([new gQ([r,1],R(F.depth,n))]);V.push([]);return g.OM(V,function(z){return O4J(n,z)})};
O4J=function(R,F){g.Iv(F,function(r){return r.depth>=0});
var n=KY(F,function(r,v){return Math.max(r,v.depth)},-1),V=n$V(n+2);
V[0]=R;g.az(F,function(r){return V[r.depth+1]=r.T});
return V};
K0e=function(){var R=R===void 0?Iik():R;return R.map(function(F){return mQ(F)})};
DL=function(R){R.BIz=!0;return R};
xNW=function(){var R=DNN("IFRAME"),F={};g.az(i4E(),function(n){R.sandbox&&R.sandbox.supports&&R.sandbox.supports(n)&&(F[n]=!0)});
return F};
DNN=function(R,F){F=F===void 0?document:F;return F.createElement(String(R).toLowerCase())};
kX_=function(R){var F=!1;F=F===void 0?!1:F;N2.google_image_requests||(N2.google_image_requests=[]);var n=DNN("IMG",N2.document);F&&(n.attributionSrc="");n.src=R;N2.google_image_requests.push(n)};
i$=function(R){var F="Nc";if(R.Nc&&R.hasOwnProperty(F))return R.Nc;var n=new R;R.Nc=n;R.hasOwnProperty(F);return n};
xR=function(){this.U=new T7k;this.T=M2()?new lY:new du};
YmJ=function(){kR();var R=N2.document;return!!(R&&R.body&&R.body.getBoundingClientRect&&typeof N2.setInterval==="function"&&typeof N2.clearInterval==="function"&&typeof N2.setTimeout==="function"&&typeof N2.clearTimeout==="function")};
Jxk=function(){kR();return K0e()};
GXE=function(){};
kR=function(){var R=i$(GXE);if(!R.T){if(!N2)throw Error("Context has not been set and window is undefined.");R.T=i$(xR)}return R.T};
YR=function(){throw Error("Invalid UTF8");};
dNj=function(R,F){F=String.fromCharCode.apply(null,F);return R==null?F:R+F};
EcV=function(R){var F=!1;F=F===void 0?!1:F;if(MWR){if(F&&(li_?!R.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(R)))throw Error("Found an unpaired surrogate");R=(N7I||(N7I=new TextEncoder)).encode(R)}else{for(var n=0,V=new Uint8Array(3*R.length),r=0;r<R.length;r++){var v=R.charCodeAt(r);if(v<128)V[n++]=v;else{if(v<2048)V[n++]=v>>6|192;else{if(v>=55296&&v<=57343){if(v<=56319&&r<R.length){var f=R.charCodeAt(++r);if(f>=56320&&f<=57343){v=(v-55296)*1024+
f-56320+65536;V[n++]=v>>18|240;V[n++]=v>>12&63|128;V[n++]=v>>6&63|128;V[n++]=v&63|128;continue}else r--}if(F)throw Error("Found an unpaired surrogate");v=65533}V[n++]=v>>12|224;V[n++]=v>>6&63|128}V[n++]=v&63|128}}R=n===V.length?V:V.subarray(0,n)}return R};
J_=function(R){g.HM.setTimeout(function(){throw R;},0)};
$Nf=function(R){return Array.prototype.map.call(R,function(F){F=F.toString(16);return F.length>1?F:"0"+F}).join("")};
PeV=function(R){for(var F=[],n=0;n<R.length;n+=2)F.push(parseInt(R.substring(n,n+2),16));return F};
g.Gl=function(R){for(var F=[],n=0,V=0;V<R.length;V++){var r=R.charCodeAt(V);r<128?F[n++]=r:(r<2048?F[n++]=r>>6|192:((r&64512)==55296&&V+1<R.length&&(R.charCodeAt(V+1)&64512)==56320?(r=65536+((r&1023)<<10)+(R.charCodeAt(++V)&1023),F[n++]=r>>18|240,F[n++]=r>>12&63|128):F[n++]=r>>12|224,F[n++]=r>>6&63|128),F[n++]=r&63|128)}return F};
g.dQ=function(R,F){F===void 0&&(F=0);b4W();F=Z49[F];for(var n=Array(Math.floor(R.length/3)),V=F[64]||"",r=0,v=0;r<R.length-2;r+=3){var f=R[r],z=R[r+1],q=R[r+2],Q=F[f>>2];f=F[(f&3)<<4|z>>4];z=F[(z&15)<<2|q>>6];q=F[q&63];n[v++]=""+Q+f+z+q}Q=0;q=V;switch(R.length-r){case 2:Q=R[r+1],q=F[(Q&15)<<2]||V;case 1:R=R[r],n[v]=""+F[R>>2]+F[(R&3)<<4|Q>>4]+q+V}return n.join("")};
g.Mu=function(R,F,n){if(eJj&&!F)R=g.HM.btoa(R);else{for(var V=[],r=0,v=0;v<R.length;v++){var f=R.charCodeAt(v);if(f>255){var z=Error("go/unicode-to-byte-error");if(n)throw z;V[r++]=f&255;f>>=8}V[r++]=f}R=g.dQ(V,F)}return R};
FrV=function(R){var F=[];RTj(R,function(n){F.push(n)});
return F};
l$=function(R){var F=R.length,n=F*3/4;n%3?n=Math.floor(n):g.Fg("=.",R[F-1])&&(n=g.Fg("=.",R[F-2])?n-2:n-1);var V=new Uint8Array(n),r=0;RTj(R,function(v){V[r++]=v});
return r!==n?V.subarray(0,r):V};
RTj=function(R,F){function n(q){for(;V<R.length;){var Q=R.charAt(V++),c=Nu[Q];if(c!=null)return c;if(!g.Re(Q))throw Error("Unknown base64 encoding at char: "+Q);}return q}
b4W();for(var V=0;;){var r=n(-1),v=n(0),f=n(64),z=n(64);if(z===64&&r===-1)break;F(r<<2|v>>4);f!=64&&(F(v<<4&240|f>>2),z!=64&&F(f<<6&192|z))}};
b4W=function(){if(!Nu){Nu={};for(var R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),F=["+/=","+/","-_=","-_.","-_"],n=0;n<5;n++){var V=R.concat(F[n].split(""));Z49[n]=V;for(var r=0;r<V.length;r++){var v=V[r];Nu[v]===void 0&&(Nu[v]=r)}}}};
VXN=function(R){return n6j[R]||""};
f$e=function(R){if(!r8W)return l$(R);R=v6I.test(R)?R.replace(v6I,VXN):R;R=atob(R);for(var F=new Uint8Array(R.length),n=0;n<R.length;n++)F[n]=R.charCodeAt(n);return F};
EM=function(R,F){tXE(F);this.T=R;if(R!=null&&R.length===0)throw Error("ByteString should be constructed with non-empty values");};
ZL=function(){return zTf||(zTf=new EM(null,b$))};
R2=function(R){return new Uint8Array(em(R)||0)};
em=function(R){tXE(b$);var F=R.T;F=F==null||qjj&&F!=null&&F instanceof Uint8Array?F:typeof F==="string"?f$e(F):null;return F==null?F:R.T=F};
tXE=function(R){if(R!==b$)throw Error("illegal external caller");};
F$=function(R){R=Error(R);Bqe(R,"warning");return R};
nk=function(R,F){if(R!=null){var n;var V=(n=Qe6)!=null?n:Qe6={};n=V[R]||0;n>=F||(V[R]=n+1,R=Error(),Bqe(R,"incident"),J_(R))}};
VF=function(){return typeof BigInt==="function"};
rF=function(R,F,n){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(n===void 0?0:n)&&Symbol.for&&R?Symbol.for(R):R!=null?Symbol(R):Symbol():F};
tb=function(R,F){v7||fk in R||c8I(R,w$k);R[fk]|=F};
zK=function(R,F){v7||fk in R||c8I(R,w$k);R[fk]=F};
QF=function(R,F){return F===void 0?R.T!==qZ&&!!(2&(R.EZ[fk]|0)):!!(2&F)&&R.T!==qZ};
SjE=function(R,F){if(R!=null)if(typeof R==="string")R=R?new EM(R,b$):ZL();else if(R.constructor!==EM)if(qjj&&R!=null&&R instanceof Uint8Array)R=R.length?new EM(new Uint8Array(R),b$):ZL();else{if(!F)throw Error();R=void 0}return R};
c7=function(R,F){if(typeof F!=="number"||F<0||F>=R.length)throw Error();};
LrN=function(R,F,n){var V=F&128?0:-1,r=R.length,v;if(v=!!r)v=R[r-1],v=v!=null&&typeof v==="object"&&v.constructor===Object;var f=r+(v?-1:0);for(F=F&128?1:0;F<f;F++)n(F-V,R[F]);if(v){R=R[r-1];for(var z in R)!isNaN(z)&&n(+z,R[z])}};
S5=function(R){return R&128?wF:void 0};
X$=function(R){var F=R;if(Lk(F)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(F))throw Error(String(F));}else if(seN(F)&&!Number.isSafeInteger(F))throw Error(String(F));return sJ?BigInt(R):R=p$E(R)?R?"1":"0":Lk(R)?R.trim()||"0":String(R)};
X$N=function(R,F){if(R.length>F.length)return!1;if(R.length<F.length||R===F)return!0;for(var n=0;n<R.length;n++){var V=R[n],r=F[n];if(V>r)return!1;if(V<r)return!0}};
Ck=function(R){var F=R>>>0;Ab=F;a2=(R-F)/4294967296>>>0};
o2=function(R){if(R<0){Ck(0-R);var F=g.m(TK(Ab,a2));R=F.next().value;F=F.next().value;Ab=R>>>0;a2=F>>>0}else Ck(R)};
UJ=function(R,F){var n=F*4294967296+(R>>>0);return Number.isSafeInteger(n)?n:yF(R,F)};
j5=function(R,F){var n=F&2147483648;n&&(R=~R+1>>>0,F=~F>>>0,R==0&&(F=F+1>>>0));R=UJ(R,F);return typeof R==="number"?n?-R:R:n?"-"+R:R};
W7=function(R,F){return VF()?X$(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(F))<<BigInt(32))+BigInt.asUintN(32,BigInt(R)))):X$(H7(R,F))};
yF=function(R,F){F>>>=0;R>>>=0;if(F<=2097151)var n=""+(4294967296*F+R);else VF()?n=""+(BigInt(F)<<BigInt(32)|BigInt(R)):(n=(R>>>24|F<<8)&16777215,F=F>>16&65535,R=(R&16777215)+n*6777216+F*6710656,n+=F*8147497,F*=2,R>=1E7&&(n+=R/1E7>>>0,R%=1E7),n>=1E7&&(F+=n/1E7>>>0,n%=1E7),n=F+A8E(n)+A8E(R));return n};
A8E=function(R){R=String(R);return"0000000".slice(R.length)+R};
H7=function(R,F){F&2147483648?VF()?R=""+(BigInt(F|0)<<BigInt(32)|BigInt(R>>>0)):(F=g.m(TK(R,F)),R=F.next().value,F=F.next().value,R="-"+yF(R,F)):R=yF(R,F);return R};
ub=function(R){if(R.length<16)o2(Number(R));else if(VF())R=BigInt(R),Ab=Number(R&BigInt(4294967295))>>>0,a2=Number(R>>BigInt(32)&BigInt(4294967295));else{var F=+(R[0]==="-");a2=Ab=0;for(var n=R.length,V=0+F,r=(n-F)%6+F;r<=n;V=r,r+=6)V=Number(R.slice(V,r)),a2*=1E6,Ab=Ab*1E6+V,Ab>=4294967296&&(a2+=Math.trunc(Ab/4294967296),a2>>>=0,Ab>>>=0);F&&(F=g.m(TK(Ab,a2)),R=F.next().value,F=F.next().value,Ab=R,a2=F)}};
TK=function(R,F){F=~F;R?R=~R+1:F+=1;return[R,F]};
B7=function(R){return Array.prototype.slice.call(R)};
mL=function(R){if(R!=null&&typeof R!=="number")throw Error("Value of float/double field must be a number, found "+typeof R+": "+R);return R};
a$6=function(R){return R.displayName||R.name||"unknown type name"};
gF=function(R){if(R!=null&&typeof R!=="boolean")throw Error("Expected boolean but got "+mh(R)+": "+R);return R};
I2=function(R){switch(typeof R){case "bigint":return!0;case "number":return OJ(R);case "string":return CSf.test(R);default:return!1}};
Tov=function(R){if(typeof R!=="number")throw F$("int32");if(!OJ(R))throw F$("int32");return R|0};
Kk=function(R){return R==null?R:Tov(R)};
Dx=function(R){if(R==null)return R;if(typeof R==="string"&&R)R=+R;else if(typeof R!=="number")return;return OJ(R)?R|0:void 0};
Jb=function(R){if(R==null)return R;if(typeof R==="string"&&R)R=+R;else if(typeof R!=="number")return;return OJ(R)?R>>>0:void 0};
U3W=function(R){var F=void 0;F!=null||(F=GK?1024:0);if(!I2(R))throw F$("int64");var n=typeof R;switch(F){case 512:switch(n){case "string":return dF(R);case "bigint":return String(MZ(64,R));default:return lb(R)}case 1024:switch(n){case "string":return o6R(R);case "bigint":return X$(MZ(64,R));default:return y8R(R)}case 0:switch(n){case "string":return dF(R);case "bigint":return X$(MZ(64,R));default:return NZ(R)}default:return B$(F,"Unknown format requested type for int64")}};
EJ=function(R){return R==null?R:U3W(R)};
je9=function(R){var F=R.length;if(R[0]==="-"?F<20||F===20&&R<="-9223372036854775808":F<19||F===19&&R<="9223372036854775807")return R;ub(R);return H7(Ab,a2)};
NZ=function(R){I2(R);R=$B(R);P7(R)||(o2(R),R=j5(Ab,a2));return R};
lb=function(R){I2(R);R=$B(R);P7(R)?R=String(R):(o2(R),R=H7(Ab,a2));return R};
dF=function(R){I2(R);var F=$B(Number(R));if(P7(F))return String(F);F=R.indexOf(".");F!==-1&&(R=R.substring(0,F));return je9(R)};
o6R=function(R){var F=$B(Number(R));if(P7(F))return X$(F);F=R.indexOf(".");F!==-1&&(R=R.substring(0,F));return VF()?X$(MZ(64,BigInt(R))):X$(je9(R))};
y8R=function(R){return P7(R)?X$(NZ(R)):X$(lb(R))};
HtE=function(R){if(R==null)return R;if(typeof R==="bigint")return bb(R)?R=Number(R):(R=MZ(64,R),R=bb(R)?Number(R):String(R)),R;if(I2(R))return typeof R==="number"?NZ(R):dF(R)};
Zx=function(R){var F=typeof R;if(R==null)return R;if(F==="bigint")return X$(MZ(64,R));if(I2(R))return F==="string"?o6R(R):y8R(R)};
hTI=function(R){if(R==null)return R;var F=typeof R;if(F==="bigint")return String(MZ(64,R));if(I2(R)){if(F==="string")return dF(R);if(F==="number")return NZ(R)}};
ugV=function(R){if(R==null)return R;var F=typeof R;if(F==="bigint")return String(Wrj(64,R));if(I2(R)){if(F==="string")return I2(R),F=$B(Number(R)),P7(F)&&F>=0?R=String(F):(F=R.indexOf("."),F!==-1&&(R=R.substring(0,F)),R[0]==="-"?F=!1:(F=R.length,F=F<20?!0:F===20&&R<="18446744073709551615"),F||(ub(R),R=yF(Ab,a2))),R;if(F==="number")return I2(R),R=$B(R),R>=0&&P7(R)||(o2(R),R=UJ(Ab,a2)),R}};
BoW=function(R){if(R==null||typeof R=="string"||R instanceof EM)return R};
m3R=function(R){if(typeof R!=="string")throw Error();return R};
e5=function(R){if(R!=null&&typeof R!=="string")throw Error();return R};
RX=function(R){return R==null||typeof R==="string"?R:void 0};
FG=function(R,F){if(!(R instanceof F))throw Error("Expected instanceof "+a$6(F)+" but got "+(R&&a$6(R.constructor)));return R};
g6E=function(R,F,n){if(R!=null&&R[nl]===VY)return R;if(Array.isArray(R)){var V=R[fk]|0;n=V|n&32|n&2;n!==V&&zK(R,n);return new F(R)}};
rp=function(R){return R};
fl=function(R){var F=Gv(vb);return F?R[F]:void 0};
tC=function(){};
zb=function(R,F){for(var n in R)!isNaN(n)&&F(R,+n,R[n])};
Ot6=function(R){var F=new tC;zb(R,function(n,V,r){F[V]=B7(r)});
F.Qk=R.Qk;return F};
Krk=function(R,F){F<100||nk(I$R,1)};
QY=function(R,F,n,V){var r=V!==void 0;V=!!V;var v=Gv(vb),f;!r&&v7&&v&&(f=R[v])&&zb(f,Krk);v=[];var z=R.length;f=4294967295;var q=!1,Q=!!(F&64),c=Q?F&128?0:-1:void 0;if(!(F&1)){var w=z&&R[z-1];w!=null&&typeof w==="object"&&w.constructor===Object?(z--,f=z):w=void 0;if(Q&&!(F&128)&&!r){q=!0;var L;f=((L=qm)!=null?L:rp)(f-c,c,R,w,void 0)+c}}F=void 0;for(L=0;L<z;L++){var S=R[L];if(S!=null&&(S=n(S,V))!=null)if(Q&&L>=f){var p=L-c,C=void 0;((C=F)!=null?C:F={})[p]=S}else v[L]=S}if(w)for(var y in w)z=w[y],z!=
null&&(z=n(z,V))!=null&&(L=+y,S=void 0,Q&&!Number.isNaN(L)&&(S=L+c)<f?v[S]=z:(L=void 0,((L=F)!=null?L:F={})[y]=z));F&&(q?v.push(F):v[f]=F);r&&Gv(vb)&&(R=fl(R))&&R instanceof tC&&(v[vb]=Ot6(R));return v};
D3N=function(R){switch(typeof R){case "number":return Number.isFinite(R)?R:""+R;case "bigint":return bb(R)?Number(R):""+R;case "boolean":return R?1:0;case "object":if(Array.isArray(R)){var F=R[fk]|0;return R.length===0&&F&1?void 0:QY(R,F,D3N)}if(R!=null&&R[nl]===VY)return cb(R);if(R instanceof EM){F=R.T;if(F==null)R="";else if(typeof F==="string")R=F;else{if(r8W){for(var n="",V=0,r=F.length-10240;V<r;)n+=String.fromCharCode.apply(null,F.subarray(V,V+=10240));n+=String.fromCharCode.apply(null,V?F.subarray(V):
F);F=btoa(n)}else F=g.dQ(F);R=R.T=F}return R}return}return R};
wp=function(R,F){if(F){qm=F==null||F===rp||F[it9]!==x3k?rp:F;try{return cb(R)}finally{qm=void 0}}return cb(R)};
cb=function(R){R=R.EZ;return QY(R,R[fk]|0,D3N)};
J8f=function(R){switch(typeof R){case "boolean":return kxj||(kxj=[0,void 0,!0]);case "number":return R>0?void 0:R===0?Yj_||(Yj_=[0,void 0]):[-R,void 0];case "string":return[0,R];case "object":return R}};
Sp=function(R,F){return GxW(R,F[0],F[1])};
Ll=function(R,F,n){return GxW(R,F,n,2048)};
GxW=function(R,F,n,V){V=V===void 0?0:V;if(R==null){var r=32;n?(R=[n],r|=128):R=[];F&&(r=r&-16760833|(F&1023)<<14)}else{if(!Array.isArray(R))throw Error("narr");r=R[fk]|0;if(d3f&&1&r)throw Error("rfarr");2048&r&&!(2&r)&&MXI();if(r&256)throw Error("farr");if(r&64)return(r|V)!==r&&zK(R,r|V),R;if(n&&(r|=128,n!==R[0]))throw Error("mid");a:{n=R;r|=64;var v=n.length;if(v){var f=v-1,z=n[f];if(z!=null&&typeof z==="object"&&z.constructor===Object){F=r&128?0:-1;f-=F;if(f>=1024)throw Error("pvtlmt");for(var q in z)v=
+q,v<f&&(n[v+F]=z[q],delete z[q]);r=r&-16760833|(f&1023)<<14;break a}}if(F){q=Math.max(F,v-(r&128?0:-1));if(q>1024)throw Error("spvt");r=r&-16760833|(q&1023)<<14}}}zK(R,r|64|V);return R};
MXI=function(){if(d3f)throw Error("carr");nk(l$E,5)};
NoJ=function(R,F){if(typeof R!=="object")return R;if(Array.isArray(R)){var n=R[fk]|0;R.length===0&&n&1?R=void 0:n&2||(!F||4096&n||16&n?R=sd(R,n,!1,F&&!(n&16)):(tb(R,34),n&4&&Object.freeze(R)));return R}if(R!=null&&R[nl]===VY)return F=R.EZ,n=F[fk]|0,QF(R,n)?R:pl(R,F,n)?XG(R,F):sd(F,n);if(R instanceof EM)return R};
XG=function(R,F,n){R=new R.constructor(F);n&&(R.T=qZ);R.U=qZ;return R};
sd=function(R,F,n,V){V!=null||(V=!!(34&F));R=QY(R,F,NoJ,V);V=32;n&&(V|=2);F=F&16769217|V;zK(R,F);return R};
E6v=function(R){var F=R.EZ,n=F[fk]|0;return QF(R,n)?pl(R,F,n)?XG(R,F,!0):new R.constructor(sd(F,n,!1)):R};
AC=function(R){if(R.T!==qZ)return!1;var F=R.EZ;F=sd(F,F[fk]|0);tb(F,2048);R.EZ=F;R.T=void 0;R.U=void 0;return!0};
aX=function(R){if(!AC(R)&&QF(R,R.EZ[fk]|0))throw Error();};
Cl=function(R,F){F===void 0&&(F=R[fk]|0);F&32&&!(F&4096)&&zK(R,F|4096)};
pl=function(R,F,n){return n&2?!0:n&32&&!(n&4096)?(zK(F,n|2),R.T=qZ,!0):!1};
oX=function(R,F,n,V,r){Object.isExtensible(R);F=Tb(R.EZ,F,n,r);if(F!==null||V&&R.U!==qZ)return F};
Tb=function(R,F,n,V){if(F===-1)return null;var r=F+(n?0:-1),v=R.length-1;if(!(v<1+(n?0:-1))){if(r>=v){var f=R[v];if(f!=null&&typeof f==="object"&&f.constructor===Object){n=f[F];var z=!0}else if(r===v)n=f;else return}else n=R[r];if(V&&n!=null){V=V(n);if(V==null)return V;if(!Object.is(V,n))return z?f[F]=V:R[r]=V,V}return n}};
Ud=function(R,F,n,V){aX(R);var r=R.EZ;yY(r,r[fk]|0,F,n,V);return R};
yY=function(R,F,n,V,r){var v=n+(r?0:-1),f=R.length-1;if(f>=1+(r?0:-1)&&v>=f){var z=R[f];if(z!=null&&typeof z==="object"&&z.constructor===Object)return z[n]=V,F}if(v<=f)return R[v]=V,F;if(V!==void 0){var q;f=((q=F)!=null?q:F=R[fk]|0)>>14&1023||536870912;n>=f?V!=null&&(v={},R[f+(r?0:-1)]=(v[n]=V,v)):R[v]=V}return F};
u3=function(R,F,n,V,r){var v=R.EZ,f=v[fk]|0;V=QF(R,f)?1:V;r=!!r||V===3;V===2&&AC(R)&&(v=R.EZ,f=v[fk]|0);R=jp(v,F);var z=R===Hb?7:R[fk]|0,q=hC(z,f);var Q=4&q?!1:!0;if(Q){4&q&&(R=B7(R),z=0,q=Wb(q,f),f=yY(v,f,F,R));for(var c=0,w=0;c<R.length;c++){var L=n(R[c]);L!=null&&(R[w++]=L)}w<c&&(R.length=w);n=(q|4)&-513;q=n&=-1025;q&=-4097}q!==z&&(zK(R,q),2&q&&Object.freeze(R));return R=$39(R,q,v,f,F,void 0,V,Q,r)};
$39=function(R,F,n,V,r,v,f,z,q){var Q=F;f===1||(f!==4?0:2&F||!(16&F)&&32&V)?Bb(F)||(F|=!R.length||z&&!(4096&F)||32&V&&!(4096&F||16&F)?2:256,F!==Q&&zK(R,F),Object.freeze(R)):(f===2&&Bb(F)&&(R=B7(R),Q=0,F=Wb(F,V),V=yY(n,V,r,R,v)),Bb(F)||(q||(F|=16),F!==Q&&zK(R,F)));2&F||!(4096&F||16&F)||Cl(n,V);return R};
var QJR=function(R,F,n,V,r,v,f,z){return oJ[t[22]](this,1,R,F,n,V,r,v,f,z)};
jp=function(R,F,n){R=Tb(R,F,n);return Array.isArray(R)?R:Hb};
hC=function(R,F){2&F&&(R|=2);return R|1};
Bb=function(R){return!!(2&R)&&!!(4&R)||!!(256&R)};
PSN=function(R){return SjE(R,!0)};
gp=function(R,F){R=oX(R,F,void 0,void 0,PSN);return R==null?ZL():R};
btI=function(R,F,n){aX(R);var V=R.EZ,r=V[fk]|0;if(F==null)return yY(V,r,3),R;if(!Array.isArray(F))throw F$();var v=F===Hb?7:F[fk]|0,f=v,z=Bb(v),q=z||Object.isFrozen(F);z||(v=0);q||(F=B7(F),f=0,v=Wb(v,r),q=!1);v|=5;z=4&v?512&v?512:1024&v?1024:0:void 0;z=z!=null?z:GK?1024:0;v|=z;for(var Q=0;Q<F.length;Q++){var c=F[Q],w=n(c,z);Object.is(c,w)||(q&&(F=B7(F),f=0,v=Wb(v,r),q=!1),F[Q]=w)}v!==f&&(q&&(F=B7(F),v=Wb(v,r)),zK(F,v));yY(V,r,3,F);return R};
Od=function(R,F,n,V,r){aX(R);var v=R.EZ;yY(v,v[fk]|0,F,(V==="0"?Number(n)===0:n===V)?void 0:n,r);return R};
IX=function(R,F,n){if(F&2)throw Error();var V=S5(F),r=jp(R,n,V),v=r===Hb?7:r[fk]|0,f=hC(v,F);if(2&f||Bb(f)||16&f)f===v||Bb(f)||zK(r,f),r=B7(r),v=0,f=Wb(f,F),yY(R,F,n,r,V);f&=-13;f!==v&&zK(r,f);return r};
xD=function(R,F,n,V){aX(R);var r=R.EZ,v=r[fk]|0;if(V==null){var f=Kl(r);if(DF(f,r,v,n)===F)f.set(n,0);else return R}else v=i3(r,v,n,F);yY(r,v,F,V);return R};
kD=function(R,F,n,V){var r=R[fk]|0,v=S5(r);r=i3(R,r,n,F,v);yY(R,r,F,V,v)};
YD=function(R,F,n){R=R.EZ;return DF(Kl(R),R,void 0,F)===n?n:-1};
Kl=function(R){if(v7){var F;return(F=R[JC])!=null?F:R[JC]=new Map}if(JC in R)return R[JC];F=new Map;Object.defineProperty(R,JC,{value:F});return F};
i3=function(R,F,n,V,r){V===0||n.includes(V);var v=Kl(R),f=DF(v,R,F,n,r);f!==V&&(f&&(F=yY(R,F,f,void 0,r)),v.set(n,V));return F};
DF=function(R,F,n,V,r){var v=R.get(V);if(v!=null)return v;for(var f=v=0;f<V.length;f++){var z=V[f];Tb(F,z,r)!=null&&(v!==0&&(n=yY(F,n,v,void 0,r)),v=z)}R.set(V,v);return v};
Gb=function(R,F,n){var V=R[fk]|0,r=S5(V),v=Tb(R,n,r);if(v!=null&&v[nl]===VY){if(!QF(v))return AC(v),v.EZ;var f=v.EZ}else Array.isArray(v)&&(f=v);if(f){var z=f[fk]|0;z&2&&(f=sd(f,z))}f=Sp(f,F);f!==v&&yY(R,V,n,f,r);return f};
Zt_=function(R,F,n,V,r){var v=!1;V=Tb(R,V,r,function(f){var z=g6E(f,n,F);v=z!==f&&z!=null;return z});
if(V!=null)return v&&!QF(V)&&Cl(R,F),V};
dp=function(R,F,n,V){var r=R.EZ,v=r[fk]|0;F=Zt_(r,v,F,n,V);if(F==null)return F;v=r[fk]|0;if(!QF(R,v)){var f=E6v(F);f!==F&&(AC(R)&&(r=R.EZ,v=r[fk]|0),F=f,v=yY(r,v,n,F,V),Cl(r,v))}return F};
Mm=function(R,F,n,V,r,v,f,z,q){var Q=QF(R,n);v=Q?1:v;z=!!z||v===3;Q=q&&!Q;(v===2||Q)&&AC(R)&&(F=R.EZ,n=F[fk]|0);R=jp(F,r,f);var c=R===Hb?7:R[fk]|0,w=hC(c,n);if(q=!(4&w)){var L=R,S=n,p=!!(2&w);p&&(S|=2);for(var C=!p,y=!0,u=0,B=0;u<L.length;u++){var O=g6E(L[u],V,S);if(O instanceof V){if(!p){var K=QF(O);C&&(C=!K);y&&(y=K)}L[B++]=O}}B<u&&(L.length=B);w|=4;w=y?w&-4097:w|4096;w=C?w|8:w&-9}w!==c&&(zK(R,w),2&w&&Object.freeze(R));if(Q&&!(8&w||!R.length&&(v===1||(v!==4?0:2&w||!(16&w)&&32&n)))){Bb(w)&&(R=B7(R),
w=Wb(w,n),n=yY(F,n,r,R,f));V=R;Q=w;for(c=0;c<V.length;c++)L=V[c],w=E6v(L),L!==w&&(V[c]=w);Q|=8;w=Q=V.length?Q|4096:Q&-4097;zK(R,w)}return R=$39(R,w,F,n,r,f,v,q,z)};
l3=function(R,F,n){var V=R.EZ;return Mm(R,V,V[fk]|0,F,n,void 0===eTj?2:4,void 0,!1,!0)};
RNk=function(R,F){R!=null?FG(R,F):R=void 0;return R};
Nm=function(R,F,n,V,r){V=RNk(V,F);Ud(R,n,V,r);V&&!QF(V)&&Cl(R.EZ);return R};
Fpj=function(R,F,n,V,r){r=RNk(r,F);xD(R,n,V,r);r&&!QF(r)&&Cl(R.EZ);return R};
Ed=function(R,F,n,V){aX(R);var r=R.EZ,v=r[fk]|0;if(V==null)return yY(r,v,n),R;if(!Array.isArray(V))throw F$();for(var f=V===Hb?7:V[fk]|0,z=f,q=Bb(f),Q=q||Object.isFrozen(V),c=!0,w=!0,L=0;L<V.length;L++){var S=V[L];FG(S,F);q||(S=QF(S),c&&(c=!S),w&&(w=S))}q||(f=c?13:5,f=w?f&-4097:f|4096);Q&&f===z||(V=B7(V),z=0,f=Wb(f,v));f!==z&&zK(V,f);v=yY(r,v,n,V);2&f||!(4096&f||16&f)||Cl(r,v);return R};
Wb=function(R,F){return R=(2&F?R|2:R&-3)&-273};
$D=function(R,F,n,V){var r=V;aX(R);V=R.EZ;R=Mm(R,V,V[fk]|0,n,F,2,void 0,!0);r=r!=null?FG(r,n):new n;R.push(r);F=n=R===Hb?7:R[fk]|0;(r=QF(r))?(n&=-9,R.length===1&&(n&=-4097)):n|=4096;n!==F&&zK(R,n);r||Cl(V)};
g.Pb=function(R,F,n){n=n===void 0?0:n;R=Dx(oX(R,F));return R!=null?R:n};
b3=function(R,F){var n=n===void 0?0:n;var V;return(V=Jb(oX(R,F)))!=null?V:n};
VRf=function(R,F,n){n=n===void 0?nWN:n;R=GK?oX(R,F,void 0,void 0,Zx):Zx(oX(R,F));return R!=null?R:n};
ZF=function(R,F,n,V){n=n===void 0?"":n;var r;return(r=RX(oX(R,F,V)))!=null?r:n};
ep=function(R,F){var n=n===void 0?0:n;R=oX(R,F);R=R==null?R:OJ(R)?R|0:void 0;return R!=null?R:n};
Fd=function(R,F){return RX(oX(R,F,void 0,Rr))};
nu=function(R,F,n){return Ud(R,F,EJ(n))};
V7=function(R,F,n){return Ud(R,F,e5(n))};
r5=function(R,F,n,V){return Od(R,F,e5(n),"",V)};
v4=function(R,F,n){if(n!=null){if(!OJ(n))throw F$("enum");n|=0}return Ud(R,F,n)};
fu=function(R,F,n){this.buffer=R;if(n&&!F)throw Error();this.T=F};
tN=function(R,F){if(typeof R==="string")return new fu(f$e(R),F);if(Array.isArray(R))return new fu(new Uint8Array(R),F);if(R.constructor===Uint8Array)return new fu(R,!1);if(R.constructor===ArrayBuffer)return R=new Uint8Array(R),new fu(R,!1);if(R.constructor===EM)return F=em(R)||new Uint8Array(0),new fu(F,!0,R);if(R instanceof Uint8Array)return R=R.constructor===Uint8Array?R:new Uint8Array(R.buffer,R.byteOffset,R.byteLength),new fu(R,!1);throw Error();};
z3=function(R,F,n,V){this.U=null;this.W=!1;this.T=this.N=this.J=0;this.init(R,F,n,V)};
or=function(R,F){var n=0,V=0,r=0,v=R.U,f=R.T;do{var z=v[f++];n|=(z&127)<<r;r+=7}while(r<32&&z&128);if(r>32)for(V|=(z&127)>>4,r=3;r<32&&z&128;r+=7)z=v[f++],V|=(z&127)<<r;T3(R,f);if(!(z&128))return F(n>>>0,V>>>0);throw Error();};
T3=function(R,F){R.T=F;if(F>R.N)throw Error();};
y7=function(R){var F=R.U,n=R.T,V=F[n++],r=V&127;if(V&128&&(V=F[n++],r|=(V&127)<<7,V&128&&(V=F[n++],r|=(V&127)<<14,V&128&&(V=F[n++],r|=(V&127)<<21,V&128&&(V=F[n++],r|=V<<28,V&128&&F[n++]&128&&F[n++]&128&&F[n++]&128&&F[n++]&128&&F[n++]&128)))))throw Error();T3(R,n);return r};
Uh=function(R){var F=R.U,n=R.T,V=F[n+0],r=F[n+1],v=F[n+2];F=F[n+3];T3(R,R.T+4);return(V<<0|r<<8|v<<16|F<<24)>>>0};
j0=function(R){var F=Uh(R);R=Uh(R);return UJ(F,R)};
H4=function(R){var F=Uh(R);R=Uh(R);return X$(VF()?BigInt.asUintN(64,(BigInt(R>>>0)<<BigInt(32))+BigInt(F>>>0)):yF(F,R))};
hN=function(R){var F=Uh(R),n=Uh(R);R=(n>>31)*2+1;var V=n>>>20&2047;F=4294967296*(n&1048575)+F;return V==2047?F?NaN:R*Infinity:V==0?R*4.9E-324*F:R*Math.pow(2,V-1075)*(F+4503599627370496)};
W4=function(R){for(var F=0,n=R.T,V=n+10,r=R.U;n<V;){var v=r[n++];F|=v;if((v&128)===0)return T3(R,n),!!(F&127)}throw Error();};
r9I=function(R,F){if(F<0)throw Error();var n=R.T;F=n+F;if(F>R.N)throw Error();R.T=F;return n};
fTW=function(R,F){if(F==0)return ZL();var n=r9I(R,F);R.iU&&R.W?n=R.U.subarray(n,n+F):(R=R.U,F=n+F,n=n===F?new Uint8Array(0):vWN?R.slice(n,F):new Uint8Array(R.subarray(n,F)));return n.length==0?ZL():new EM(n,b$)};
B4=function(R,F,n,V){if(up.length){var r=up.pop();r.init(R,F,n,V);R=r}else R=new z3(R,F,n,V);this.T=R;this.J=this.T.T;this.U=this.N=-1;tRk(this,V)};
tRk=function(R,F){F=F===void 0?{}:F;R.Wm=F.Wm===void 0?!1:F.Wm};
zNk=function(R,F,n,V){if(m5.length){var r=m5.pop();tRk(r,V);r.T.init(R,F,n,V);return r}return new B4(R,F,n,V)};
qsE=function(R){var F=R.T;if(F.T==F.N)return!1;R.J=R.T.T;var n=y7(R.T)>>>0;F=n>>>3;n&=7;if(!(n>=0&&n<=5))throw Error();if(F<1)throw Error();R.N=F;R.U=n;return!0};
g5=function(R){switch(R.U){case 0:R.U!=0?g5(R):W4(R.T);break;case 1:R=R.T;T3(R,R.T+8);break;case 2:if(R.U!=2)g5(R);else{var F=y7(R.T)>>>0;R=R.T;T3(R,R.T+F)}break;case 5:R=R.T;T3(R,R.T+4);break;case 3:F=R.N;do{if(!qsE(R))throw Error();if(R.U==4){if(R.N!=F)throw Error();break}g5(R)}while(1);break;default:throw Error();}};
Oh=function(R,F,n){var V=R.T.N,r=y7(R.T)>>>0;r=R.T.T+r;var v=r-V;v<=0&&(R.T.N=r,n(F,R,void 0,void 0,void 0),v=r-R.T.T);if(v)throw Error();R.T.T=r;R.T.N=V};
D3=function(R){var F=y7(R.T)>>>0;R=R.T;var n=r9I(R,F);R=R.U;if(QER){var V=R,r;(r=Ir)||(r=Ir=new TextDecoder("utf-8",{fatal:!0}));F=n+F;V=n===0&&F===V.length?V:V.subarray(n,F);try{var v=r.decode(V)}catch(Q){if(Ku===void 0){try{r.decode(new Uint8Array([128]))}catch(c){}try{r.decode(new Uint8Array([97])),Ku=!0}catch(c){Ku=!1}}!Ku&&(Ir=void 0);throw Q;}}else{v=n;F=v+F;n=[];for(var f=null,z,q;v<F;)z=R[v++],z<128?n.push(z):z<224?v>=F?YR():(q=R[v++],z<194||(q&192)!==128?(v--,YR()):n.push((z&31)<<6|q&63)):
z<240?v>=F-1?YR():(q=R[v++],(q&192)!==128||z===224&&q<160||z===237&&q>=160||((r=R[v++])&192)!==128?(v--,YR()):n.push((z&15)<<12|(q&63)<<6|r&63)):z<=244?v>=F-2?YR():(q=R[v++],(q&192)!==128||(z<<28)+(q-144)>>30!==0||((r=R[v++])&192)!==128||((V=R[v++])&192)!==128?(v--,YR()):(z=(z&7)<<18|(q&63)<<12|(r&63)<<6|V&63,z-=65536,n.push((z>>10&1023)+55296,(z&1023)+56320))):YR(),n.length>=8192&&(f=dNj(f,n),n.length=0);v=dNj(f,n)}return v};
c9V=function(R){var F=y7(R.T)>>>0;return fTW(R.T,F)};
wIN=function(R,F,n){var V=y7(R.T)>>>0;for(V=R.T.T+V;R.T.T<V;)n.push(F(R.T))};
Ss_=function(R){if(R!==ip)throw Error();};
xj=function(R,F){this.U=R>>>0;this.T=F>>>0};
sE_=function(R){if(!R)return Lpf||(Lpf=new xj(0,0));if(!/^\d+$/.test(R))return null;ub(R);return new xj(Ab,a2)};
kj=function(R,F){this.U=R>>>0;this.T=F>>>0};
XI_=function(R){if(!R)return pIN||(pIN=new kj(0,0));if(!/^-?\d+$/.test(R))return null;ub(R);return new kj(Ab,a2)};
Yj=function(){this.T=[]};
JN=function(R,F,n){for(;n>0||F>127;)R.T.push(F&127|128),F=(F>>>7|n<<25)>>>0,n>>>=7;R.T.push(F)};
G3=function(R,F){for(;F>127;)R.T.push(F&127|128),F>>>=7;R.T.push(F)};
A9I=function(R,F){if(F>=0)G3(R,F);else{for(var n=0;n<9;n++)R.T.push(F&127|128),F>>=7;R.T.push(1)}};
d5=function(R,F){R.T.push(F>>>0&255);R.T.push(F>>>8&255);R.T.push(F>>>16&255);R.T.push(F>>>24&255)};
aTN=function(){this.N=[];this.U=0;this.T=new Yj};
Mt=function(R,F){F.length!==0&&(R.N.push(F),R.U+=F.length)};
CYv=function(R,F){lp(R,F,2);F=R.T.end();Mt(R,F);F.push(R.U);return F};
TuN=function(R,F){var n=F.pop();for(n=R.U+R.T.length()-n;n>127;)F.push(n&127|128),n>>>=7,R.U++;F.push(n);R.U++};
lp=function(R,F,n){G3(R.T,F*8+n)};
oWN=function(R,F,n){if(n!=null){switch(typeof n){case "string":sE_(n)}lp(R,F,1);switch(typeof n){case "number":R=R.T;Ck(n);d5(R,Ab);d5(R,a2);break;case "bigint":n=BigInt.asUintN(64,n);n=new xj(Number(n&BigInt(4294967295)),Number(n>>BigInt(32)));R=R.T;F=n.T;d5(R,n.U);d5(R,F);break;default:n=sE_(n),R=R.T,F=n.T,d5(R,n.U),d5(R,F)}}};
Nt=function(R,F,n){lp(R,F,2);G3(R.T,n.length);Mt(R,R.T.end());Mt(R,n)};
Eh=function(){function R(){throw Error();}
Object.setPrototypeOf(R,R.prototype);return R};
P4=function(R,F,n){this.EZ=Ll(R,F,n)};
y9W=function(R,F){if(F==null||F=="")return new R;F=JSON.parse(F);if(!Array.isArray(F))throw Error("dnarr");tb(F,32);return new R(F)};
Z3=function(R,F,n){this.fu=R;this.Oz=F;R=Gv(bp);this.T=!!R&&n===R||!1};
e0=function(R,F){var n=n===void 0?bp:n;return new Z3(R,F,n)};
jEW=function(R,F,n,V,r){F=U26(F,V);F!=null&&(n=CYv(R,n),r(F,R),TuN(R,n))};
nS=function(R,F,n,V){var r=V[R];if(r)return r;r={};r.q3=V;r.Kh=J8f(V[0]);var v=V[1],f=1;v&&v.constructor===Object&&(r.extensions=v,v=V[++f],typeof v==="function"&&(r.Df=!0,RM!=null||(RM=v),FC!=null||(FC=V[f+1]),v=V[f+=2]));for(var z={};v&&Array.isArray(v)&&v.length&&typeof v[0]==="number"&&v[0]>0;){for(var q=0;q<v.length;q++)z[v[q]]=v;v=V[++f]}for(q=1;v!==void 0;){typeof v==="number"&&(q+=v,v=V[++f]);var Q=void 0;if(v instanceof Z3)var c=v;else c=HoI,f--;v=void 0;if((v=c)==null?0:v.T){v=V[++f];Q=
V;var w=f;typeof v==="function"&&(v=v(),Q[w]=v);Q=v}v=V[++f];w=q+1;typeof v==="number"&&v<0&&(w-=v,v=V[++f]);for(;q<w;q++){var L=z[q];Q?n(r,q,c,Q,L):F(r,q,c,L)}}return V[R]=r};
Wp9=function(R){return Array.isArray(R)?R[0]instanceof Z3?R:[hNW,R]:[R,void 0]};
U26=function(R,F){if(R instanceof P4)return R.EZ;if(Array.isArray(R))return Sp(R,F)};
VA=function(R,F,n,V){var r=n.fu;R[F]=V?function(v,f,z){return r(v,f,z,V)}:r};
va=function(R,F,n,V,r){var v=n.fu,f,z;R[F]=function(q,Q,c){return v(q,Q,c,z||(z=nS(rt,VA,va,V).Kh),f||(f=fS(V)),r)}};
fS=function(R){var F=R[tB];if(F!=null)return F;var n=nS(rt,VA,va,R);F=n.Df?function(V,r){return RM(V,r,n)}:function(V,r){for(;qsE(r)&&r.U!=4;){var v=r.N,f=n[v];
if(f==null){var z=n.extensions;z&&(z=z[v])&&(z=urf(z),z!=null&&(f=n[v]=z))}if(f==null||!f(r,V,v)){z=r;f=z.J;g5(z);if(z.Wm)var q=void 0;else{var Q=z.T.T-f;z.T.T=f;q=fTW(z.T,Q)}Q=z=f=void 0;var c=V;q&&((f=(z=(Q=c[vb])!=null?Q:c[vb]=new tC)[v])!=null?f:z[v]=[]).push(q)}}if(V=fl(V))V.Qk=n.q3[Buf];return!0};
R[tB]=F;R[Buf]=m26.bind(R);return F};
m26=function(R,F,n,V){var r=this[rt],v=this[tB],f=Sp(void 0,r.Kh),z=fl(R);if(z){var q=!1,Q=r.extensions;if(Q){r=function(p,C,y){if(y.length!==0)if(Q[C])for(p=g.m(y),C=p.next();!C.done;C=p.next()){C=zNk(C.value);try{q=!0,v(f,C)}finally{C.free()}}else V==null||V(R,C,y)};
if(F==null)zb(z,r);else if(z!=null){var c=z[F];c&&r(z,F,c)}if(q){var w=R[fk]|0;if(w&2&&w&2048&&(n==null||!n.P_1))throw Error();var L=S5(w),S=function(p,C){if(Tb(R,p,L)!=null)switch(n==null?void 0:n.skZ){case 1:return;default:throw Error();}C!=null&&(w=yY(R,w,p,C,L));delete z[p]};
F==null?LrN(f,f[fk]|0,function(p,C){S(p,C)}):S(F,Tb(f,F,L))}}}};
urf=function(R){R=Wp9(R);var F=R[0].fu;if(R=R[1]){var n=fS(R),V=nS(rt,VA,va,R).Kh;return function(r,v,f){return F(r,v,f,V,n)}}return F};
zY=function(R,F,n){R[F]=n.Oz};
QA=function(R,F,n,V){var r,v,f=n.Oz;R[F]=function(z,q,Q){return f(z,q,Q,v||(v=nS(qP,zY,QA,V).Kh),r||(r=gWW(V)))}};
gWW=function(R){var F=R[OoJ];if(!F){var n=nS(qP,zY,QA,R);F=function(V,r){return ITW(V,r,n)};
R[OoJ]=F}return F};
ITW=function(R,F,n){LrN(R,R[fk]|0,function(V,r){if(r!=null){var v=Kpv(n,V);v?v(F,r,V):V<500||nk(D2_,3)}});
(R=fl(R))&&zb(R,function(V,r,v){Mt(F,F.T.end());for(V=0;V<v.length;V++)Mt(F,em(v[V])||new Uint8Array(0))})};
Kpv=function(R,F){var n=R[F];if(n)return n;if(n=R.extensions)if(n=n[F]){n=Wp9(n);var V=n[0].Oz;if(n=n[1]){var r=gWW(n),v=nS(qP,zY,QA,n).Kh;n=R.Df?FC(v,r):function(f,z,q){return V(f,z,q,v,r)}}else n=V;
return R[F]=n}};
ca=function(R,F,n){if(Array.isArray(F)){var V=F[fk]|0;if(V&4)return F;for(var r=0,v=0;r<F.length;r++){var f=R(F[r]);f!=null&&(F[v++]=f)}v<r&&(F.length=v);R=V|1;n&&(R=(R|4)&-1537);R!==V&&zK(F,R);n&&R&2&&Object.freeze(F);return F}};
wt=function(R,F,n){return new Z3(R,F,n)};
Su=function(R,F,n){return new Z3(R,F,n)};
LS=function(R,F,n){yY(R,R[fk]|0,F,n,S5(R[fk]|0))};
s_=function(R,F,n){F=F==null||typeof F==="number"?F:F==="NaN"||F==="Infinity"||F==="-Infinity"?Number(F):void 0;F!=null&&(lp(R,n,1),R=R.T,n=ioV||(ioV=new DataView(new ArrayBuffer(8))),n.setFloat64(0,+F,!0),Ab=n.getUint32(0,!0),a2=n.getUint32(4,!0),d5(R,Ab),d5(R,a2))};
pS=function(R,F,n){F=hTI(F);if(F!=null){switch(typeof F){case "string":XI_(F)}if(F!=null)switch(lp(R,n,0),typeof F){case "number":R=R.T;o2(F);JN(R,Ab,a2);break;case "bigint":n=BigInt.asUintN(64,F);n=new kj(Number(n&BigInt(4294967295)),Number(n>>BigInt(32)));JN(R.T,n.U,n.T);break;default:n=XI_(F),JN(R.T,n.U,n.T)}}};
XC=function(R,F,n){F=Dx(F);F!=null&&F!=null&&(lp(R,n,0),A9I(R.T,F))};
x2R=function(R,F,n){F=F==null||typeof F==="boolean"?F:typeof F==="number"?!!F:void 0;F!=null&&(lp(R,n,0),R.T.T.push(F?1:0))};
k5_=function(R,F,n){F=RX(F);F!=null&&Nt(R,n,EcV(F))};
YsV=function(R,F,n,V,r){F=U26(F,V);F!=null&&(n=CYv(R,n),r(F,R),TuN(R,n))};
G5j=function(R,F,n){if(n!==ip)throw Error();this.typeName=R;this.T=F;if(n!==ip)throw Error();J9k.set(R,this)};
MRW=function(){var R=AB;this.T=d2j;this.isRepeated=0;this.U=dp;this.defaultValue=void 0;this.N=R.messageId!=null?wF:void 0};
lTf=function(R,F){return function(n,V){var r={lJ:!0};V&&Object.assign(r,V);n=zNk(n,void 0,void 0,r);try{var v=new R,f=v.EZ;fS(F)(f,n);var z=v}finally{n.free()}return z}};
NuJ=function(R){return function(){var F=new aTN;ITW(this.EZ,F,nS(qP,zY,QA,R));Mt(F,F.T.end());for(var n=new Uint8Array(F.U),V=F.N,r=V.length,v=0,f=0;f<r;f++){var z=V[f];n.set(z,v);v+=z.length}F.N=[n];return n}};
aM=function(R){return function(F){return y9W(R,F)}};
CS=function(R){this.EZ=Ll(R)};
EW_=function(R){this.N=R;this.T=-1;this.U=this.J=0};
TY=function(R,F){return function(){var n=g.Cq.apply(0,arguments);if(R.T>-1)return F.apply(null,g.I(n));try{return R.T=R.N.T.now(),F.apply(null,g.I(n))}finally{R.J+=R.N.T.now()-R.T,R.T=-1,R.U+=1}}};
$2v=function(R,F){this.U=R;this.N=F;this.T=new EW_(R)};
PYE=function(){this.T={}};
R1_=function(){this.N=void 0;this.U=this.Z=0;this.W=-1;this.Fh=new d7;MN(this.Fh,"mv",boj).T=!0;MN(this.Fh,"omid",Zi);MN(this.Fh,"epoh",Zi).T=!0;MN(this.Fh,"epph",Zi).T=!0;MN(this.Fh,"umt",Zi).T=!0;MN(this.Fh,"phel",Zi).T=!0;MN(this.Fh,"phell",Zi).T=!0;MN(this.Fh,"oseid",Zoj).T=!0;var R=this.Fh;R.T.sloi||(R.T.sloi=new Jx);R.T.sloi.T=!0;MN(this.Fh,"mm",oM);MN(this.Fh,"ovms",eNW).T=!0;MN(this.Fh,"xdi",Zi).T=!0;MN(this.Fh,"amp",Zi).T=!0;MN(this.Fh,"prf",Zi).T=!0;MN(this.Fh,"gtx",Zi).T=!0;MN(this.Fh,
"mvp_lv",Zi).T=!0;MN(this.Fh,"ssmol",Zi).T=!0;MN(this.Fh,"fmd",Zi).T=!0;MN(this.Fh,"gen204simple",Zi);this.T=new $2v(kR(),this.Fh);this.J=!1;this.flags=new PYE};
yA=function(){return i$(R1_)};
FQk=function(R,F,n,V){if(Math.random()<(V||R.T))try{if(n instanceof u$)var r=n;else r=new u$,WE(n,function(f,z){var q=r,Q=q.J++;f=BE(z,f);q.T.push(Q);q.U[Q]=f});
var v=r.rD(R.U,"pagead2.googlesyndication.com","/pagead/gen_204?id="+F+"&");v&&(kR(),kX_(v))}catch(f){}};
nRW=function(R,F,n){n=n===void 0?{}:n;this.error=R;this.meta=n;this.context=F.context;this.msg=F.message||"";this.id=F.id||"jserror"};
VmW=function(){var R=R===void 0?g.HM:R;return(R=R.performance)&&R.now&&R.timing?Math.floor(R.now()+R.timing.navigationStart):g.J7()};
r_f=function(){var R=R===void 0?g.HM:R;return(R=R.performance)&&R.now?R.now():null};
vRR=function(R,F,n){this.label=R;this.type=F;this.value=n;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()};
ju=function(){var R=window;this.events=[];this.U=R||g.HM;var F=null;R&&(R.google_js_reporting_queue=R.google_js_reporting_queue||[],this.events=R.google_js_reporting_queue,F=R.google_measure_js_timing);this.T=U_()||(F!=null?F:Math.random()<1)};
fLV=function(R){R&&Ha&&U_()&&(Ha.clearMarks("goog_"+R.label+"_"+R.uniqueId+"_start"),Ha.clearMarks("goog_"+R.label+"_"+R.uniqueId+"_end"))};
hB=function(R,F,n,V,r,v,f){var z="";R&&(z+=R+":");n&&(z+="//",F&&(z+=F+"@"),z+=n,V&&(z+=":"+V));r&&(z+=r);v&&(z+="?"+v);f&&(z+="#"+f);return z};
g.Wa=function(R){return R.match(tmV)};
z1W=function(R){return R?decodeURI(R):R};
g.u5=function(R){return z1W(g.Wa(R)[3]||null)};
Ba=function(R){return z1W(g.Wa(R)[5]||null)};
g.qMV=function(R){R=g.Wa(R);return hB(R[1],R[2],R[3],R[4])};
mw=function(R){R=g.Wa(R);return hB(null,null,null,null,R[5],R[6],R[7])};
Qvv=function(R){var F=R.indexOf("#");return F<0?R:R.slice(0,F)};
gt=function(R,F){if(R){R=R.split("&");for(var n=0;n<R.length;n++){var V=R[n].indexOf("="),r=null;if(V>=0){var v=R[n].substring(0,V);r=R[n].substring(V+1)}else v=R[n];F(v,r?Ej(r):"")}}};
O_=function(R,F){if(!F)return R;var n=R.indexOf("#");n<0&&(n=R.length);var V=R.indexOf("?");if(V<0||V>n){V=n;var r=""}else r=R.substring(V+1,n);R=[R.slice(0,V),r,R.slice(n)];n=R[1];R[1]=F?n?n+"&"+F:F:n;return R[0]+(R[1]?"?"+R[1]:"")+R[2]};
IM=function(R,F,n){if(Array.isArray(F))for(var V=0;V<F.length;V++)IM(R,String(F[V]),n);else F!=null&&n.push(R+(F===""?"":"="+g.N3(F)))};
c__=function(R,F){var n=[];for(F=F||0;F<R.length;F+=2)IM(R[F],R[F+1],n);return n.join("&")};
g.KS=function(R){var F=[],n;for(n in R)IM(n,R[n],F);return F.join("&")};
wEV=function(R,F){var n=arguments.length==2?c__(arguments[1],0):c__(arguments,1);return O_(R,n)};
g.DI=function(R,F){F=g.KS(F);return O_(R,F)};
i5=function(R,F,n){n=n!=null?"="+g.N3(n):"";return O_(R,F+n)};
xm=function(R,F,n,V){for(var r=n.length;(F=R.indexOf(n,F))>=0&&F<V;){var v=R.charCodeAt(F-1);if(v==38||v==63)if(v=R.charCodeAt(F+r),!v||v==61||v==38||v==35)return F;F+=r+1}return-1};
Ym=function(R,F){var n=R.search(km),V=xm(R,0,F,n);if(V<0)return null;var r=R.indexOf("&",V);if(r<0||r>n)r=n;V+=F.length+1;return Ej(R.slice(V,r!==-1?r:0))};
JB=function(R,F){for(var n=R.search(km),V=0,r,v=[];(r=xm(R,V,F,n))>=0;)v.push(R.substring(V,r)),V=Math.min(R.indexOf("&",r)+1||n,n);v.push(R.slice(V));return v.join("").replace(SMI,"$1")};
LQN=function(R,F,n){return i5(JB(R,F),F,n)};
svN=function(){var R=GY;this.T=dt;this.x0="jserror";this.u5=!0;this.UR=null;this.U=this.Rx;this.q5=R===void 0?null:R};
pEJ=function(R,F,n){var V=MP;return TY(yA().T.T,function(){try{if(V.q5&&V.q5.T){var r=V.q5.start(R.toString(),3);var v=F();V.q5.end(r)}else v=F()}catch(z){var f=V.u5;try{fLV(r),f=V.U(R,new l5(NP(z)),void 0,n)}catch(q){V.Rx(217,q)}if(!f)throw z;}return v})()};
E_=function(R,F,n,V){return TY(yA().T.T,function(){var r=g.Cq.apply(0,arguments);return pEJ(R,function(){return F.apply(n,r)},V)})};
NP=function(R){var F=R.toString();R.name&&F.indexOf(R.name)==-1&&(F+=": "+R.name);R.message&&F.indexOf(R.message)==-1&&(F+=": "+R.message);if(R.stack)a:{R=R.stack;var n=F;try{R.indexOf(n)==-1&&(R=n+"\n"+R);for(var V;R!=V;)V=R,R=R.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");F=R.replace(/\n */g,"\n");break a}catch(r){F=n;break a}F=void 0}return F};
l5=function(R){nRW.call(this,Error(R),{message:R})};
XEk=function(){N2&&typeof N2.google_measure_js_timing!="undefined"&&(N2.google_measure_js_timing||GY.disable())};
A_e=function(R){MP.UR=function(F){g.az(R,function(n){n(F)})}};
aLI=function(R,F){return pEJ(R,F)};
$m=function(R,F){return E_(R,F)};
Pa=function(R,F,n,V){MP.Rx(R,F,n,V)};
b5=function(){return Date.now()-C$R};
TQV=function(){var R=yA().N,F=ZI>=0?b5()-ZI:-1,n=eu?b5()-RZ:-1,V=Ff>=0?b5()-Ff:-1;if(R==947190542)return 100;if(R==79463069)return 200;R=[2E3,4E3];var r=[250,500,1E3];Pa(637,Error(),.001);var v=F;n!=-1&&n<F&&(v=n);for(F=0;F<R.length;++F)if(v<R[F]){var f=r[F];break}f===void 0&&(f=r[R.length]);return V!=-1&&V>1500&&V<4E3?500:f};
nv=function(R,F,n){var V=new eR(0,0,0,0);this.time=R;this.volume=null;this.N=F;this.T=V;this.U=n};
Va=function(R,F,n,V,r,v,f,z){this.J=R;this.X=F;this.N=n;this.Z=V;this.T=r;this.W=v;this.U=f;this.V=z};
y_e=function(R){var F=R!==R.top,n=R.top===ocE(R),V=-1,r=0;if(F&&n&&R.top.mraid){V=3;var v=R.top.mraid}else V=(v=R.mraid)?F?n?2:1:0:-1;v&&(v.IS_GMA_SDK||(r=2),v$j(oRW,function(f){return typeof v[f]==="function"})||(r=1));
return{tp:v,compatibility:r,xcH:V}};
Uuj=function(){var R=window.document;return R&&typeof R.elementFromPoint==="function"};
jvV=function(R,F,n){if(R&&F!==null&&F!=F.top){if(!F.top)return new g.QX(-12245933,-12245933);F=F.top}try{return(n===void 0?0:n)?(new g.QX(F.innerWidth,F.innerHeight)).round():fi9(F||window).round()}catch(V){return new g.QX(-12245933,-12245933)}};
rk=function(R,F,n){try{if(R){if(!F.top)return new eR(-12245933,-12245933,-12245933,-12245933);F=F.top}var V=jvV(R,F,n),r=V.height,v=V.width;if(v===-12245933)return new eR(v,v,v,v);var f=Co(F.document);var z=zJk(f.T);var q=z.x,Q=z.y;return new eR(Q,q+v,Q+r,q)}catch(c){return new eR(-12245933,-12245933,-12245933,-12245933)}};
vx=function(R,F){F=Math.pow(10,F);return Math.floor(R*F)/F};
HY9=function(R){return new eR(R.top,R.right,R.bottom,R.left)};
h19=function(R){var F=R.top||0,n=R.left||0;return new eR(F,n+(R.width||0),F+(R.height||0),n)};
fv=function(R){return R!=null&&R>=0&&R<=1};
WQN=function(){var R=g.ft();return R?t3("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;Version/8.0 Safari/601.1 WPE;WebOS".split(";"),function(F){return nt(R,F)})||nt(R,"OMI/")&&!nt(R,"XiaoMi/")?!0:nt(R,"Presto")&&nt(R,"Linux")&&!nt(R,"X11")&&!nt(R,"Android")&&!nt(R,"Mobi"):!1};
u6I=function(){this.N=!yO(N2.top);this.isMobileDevice=UM()||yxj();var R=jm();this.domain=R.length>0&&R[R.length-1]!=null&&R[R.length-1].url!=null?g.u5(R[R.length-1].url)||"":"";this.T=new eR(0,0,0,0);this.J=new g.QX(0,0);this.W=new g.QX(0,0);this.X=new eR(0,0,0,0);this.frameOffset=new g.z5(0,0);this.Z=0;this.V=!1;this.U=!(!N2||!y_e(N2).tp);this.update(N2)};
BQR=function(R,F){F&&F.screen&&(R.J=new g.QX(F.screen.width,F.screen.height))};
muJ=function(R,F){a:{var n=R.T?new g.QX(Rv(R.T),R.T.getHeight()):new g.QX(0,0);F=F===void 0?N2:F;F!==null&&F!=F.top&&(F=F.top);var V=0,r=0;try{var v=F.document,f=v.body,z=v.documentElement;if(v.compatMode=="CSS1Compat"&&z.scrollHeight)V=z.scrollHeight!=n.height?z.scrollHeight:z.offsetHeight,r=z.scrollWidth!=n.width?z.scrollWidth:z.offsetWidth;else{var q=z.scrollHeight,Q=z.scrollWidth,c=z.offsetHeight,w=z.offsetWidth;z.clientHeight!=c&&(q=f.scrollHeight,Q=f.scrollWidth,c=f.offsetHeight,w=f.offsetWidth);
q>n.height?q>c?(V=q,r=Q):(V=c,r=w):q<c?(V=q,r=Q):(V=c,r=w)}var L=new g.QX(r,V);break a}catch(S){L=new g.QX(-12245933,-12245933);break a}L=void 0}R.W=L};
Qa=function(){var R=zW();if(R.Z>0||R.V)return!0;R=kR().U.isVisible();var F=ov(qa)===0;return R||F};
zW=function(){return i$(u6I)};
cx=function(R){this.N=R;this.U=0;this.T=null};
wk=function(R,F,n){this.N=R;this.Y5=n===void 0?"na":n;this.W=[];this.isInitialized=!1;this.J=new nv(-1,!0,this);this.T=this;this.V=F;this.Nq=this.UZ=!1;this.PG="uk";this.lS=!1;this.Z=!0};
Sj=function(R,F){g.Rz(R.W,F)||(R.W.push(F),F.rC(R.T),F.nS(R.J),F.Js()&&(R.UZ=!0))};
gRk=function(R){R=R.T;R.L8();R.Ve();var F=zW();F.X=rk(!1,R.N,F.isMobileDevice);muJ(zW(),R.N);R.J.T=R.Sq()};
OYf=function(R){R.UZ=R.W.length?t3(R.W,function(F){return F.Js()}):!1};
IL6=function(R){var F=g.f4(R.W);g.az(F,function(n){n.nS(R.J)})};
Lv=function(R){var F=g.f4(R.W);g.az(F,function(n){n.rC(R.T)});
R.T!=R||IL6(R)};
sO=function(R,F,n,V){this.element=R;this.T=new eR(0,0,0,0);this.N=null;this.Z=new eR(0,0,0,0);this.U=F;this.Fh=n;this.lS=V;this.jQ=!1;this.timestamp=-1;this.UZ=new Va(F.J,this.element,this.T,new eR(0,0,0,0),0,0,b5(),0);this.W=void 0};
KQN=function(R,F){return R.W?new eR(Math.max(F.top+R.W.top,F.top),Math.min(F.left+R.W.right,F.right),Math.min(F.top+R.W.bottom,F.bottom),Math.max(F.left+R.W.left,F.left)):F.clone()};
pv=function(R){this.W=!1;this.T=R;this.J=function(){}};
Duj=function(R,F,n){this.N=n===void 0?0:n;this.U=R;this.T=F==null?"":F};
iY_=function(R){switch(Math.trunc(R.N)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
xu6=function(R,F){return R.N<F.N?!0:R.N>F.N?!1:R.U<F.U?!0:R.U>F.U?!1:typeof R.T<typeof F.T?!0:typeof R.T>typeof F.T?!1:R.T<F.T};
Xf=function(){this.N=0;this.T=[];this.U=!1};
klk=function(R,F){(0,g.az)(F.T,function(n){R.add(n.U,n.T,iY_(n))})};
A3=function(R,F){var n=n===void 0?0:n;var V=V===void 0?!0:V;WE(F,function(r,v){V&&r===void 0||R.add(v,r,n)});
return R};
aZ=function(R){var F=YM9;R.U&&(g.p4(R.T,function(n,V){return xu6(V,n)?1:xu6(n,V)?-1:0}),R.U=!1);
return KY(R.T,function(n,V){V=F(V);return""+n+(n!=""&&V!=""?"&":"")+V},"")};
YM9=function(R){var F=R.U;R=R.T;return R===""?F:typeof R==="boolean"?R?F:"":Array.isArray(R)?R.length===0?F:F+"="+R.join():F+"="+(g.Rz(["mtos","tos","p"],F)?R:encodeURIComponent(R))};
J_N=function(R){var F=F===void 0?!0:F;this.T=new Xf;R!==void 0&&klk(this.T,R);F&&this.T.add("v","unreleased",-16)};
GlW=function(R){var F=[],n=[];g.DN(R,function(V,r){if(!(r in Object.prototype)&&typeof V!="undefined")switch(Array.isArray(V)&&(V=V.join(",")),V=[r,"=",V].join(""),r){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":F.unshift(V);break;case "req":case "url":case "referrer":case "iframe_loc":n.push(V);break;default:F.push(V)}});
return F.concat(n)};
du9=function(R){R=R.toString();kR();kX_(R)};
MmJ=function(){this.T=0};
g.Cv=function(R){R&&typeof R.dispose=="function"&&R.dispose()};
g.TW=function(R){for(var F=0,n=arguments.length;F<n;++F){var V=arguments[F];g.gq(V)?g.TW.apply(null,V):g.Cv(V)}};
g.G=function(){this.Ra=this.Ra;this.fm=this.fm};
g.d=function(R,F){R.addOnDisposeCallback(g.Y$(g.Cv,F))};
var tE9=function(){return Tk[t[22]](this,21)};
lLj=function(R,F,n){(0,g.az)(R.N,function(V){var r=R.T;if(!V.T&&(V.N(F,n),V.J())){V.T=!0;var v=V.U(),f=new Xf;f.add("id","av-js");f.add("type","verif");f.add("vtype",V.W);V=i$(MmJ);f.add("i",V.T++);f.add("adk",r);A3(f,v);r=new J_N(f);du9(r)}})};
UO=function(){this.U=this.N=this.J=this.T=0};
jj=function(R){this.U=R=R===void 0?NQv:R;this.T=g.OM(this.U,function(){return new UO})};
Hx=function(R,F){return ERI(R,function(n){return n.T},F===void 0?!0:F)};
Wx=function(R,F){return h3(R,F,function(n){return n.T})};
$uj=function(R,F){return ERI(R,function(n){return n.N},F===void 0?!0:F)};
uI=function(R,F){return h3(R,F,function(n){return n.N})};
Bx=function(R,F){return h3(R,F,function(n){return n.U})};
P$J=function(R){g.az(R.T,function(F){F.U=0})};
ERI=function(R,F,n){R=g.OM(R.T,function(V){return F(V)});
return n?R:bYe(R)};
h3=function(R,F,n){var V=g.PM(R.U,function(r){return F<=r});
return V==-1?0:n(R.T[V])};
bYe=function(R){return g.OM(R,function(F,n,V){return n>0?V[n]-V[n-1]:V[n]})};
mP=function(){this.U=new jj;this.Y5=this.bS=0;this.dX=new UO;this.J1=this.X=-1;this.h1=1E3;this.k5=new jj([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.PG=this.jQ=-1};
gk=function(R,F){return $uj(R.U,F===void 0?!0:F)};
OO=function(R,F,n,V){var r=r===void 0?!1:r;n=E_(V,n);Tl(R,F,n,{capture:r})};
Kv=function(R,F){F=IZ(F);return F===0?0:IZ(R)/F};
IZ=function(R){return Math.max(R.bottom-R.top,0)*Math.max(R.right-R.left,0)};
ZYJ=function(R,F){if(!R||!F)return!1;for(var n=0;R!==null&&n++<100;){if(R===F)return!0;try{if(R=R.parentElement||R){var V=aE(R),r=V&&uY(V),v=r&&r.frameElement;v&&(R=v)}}catch(f){break}}return!1};
e1J=function(R,F,n){if(!R||!F)return!1;F=nY(R.clone(),-F.left,-F.top);R=(F.left+F.right)/2;F=(F.top+F.bottom)/2;yO(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Uuj())return!1;R=window.document.elementFromPoint(R,F);if(!R)return!1;F=(F=(F=aE(n))&&F.defaultView&&F.defaultView.frameElement)&&ZYJ(F,R);var V=R===n;R=!V&&R&&J9(R,function(r){return r===n});
return!(F||V||R)};
Rs9=function(R,F,n,V){return zW().N?!1:Rv(R)<=0||R.getHeight()<=0?!0:n&&V?aLI(208,function(){return e1J(R,F,n)}):!1};
D2=function(R,F,n){g.G.call(this);this.position=FLE.clone();this.VC=this.Il();this.Vb=-2;this.timeCreated=Date.now();this.rd=-1;this.qH=F;this.ZK=null;this.Cs=!1;this.cQ=null;this.opacity=-1;this.requestSource=n;this.ty5=!1;this.GE=function(){};
this.Jd=function(){};
this.ED=new cxV;this.ED.kV=R;this.ED.T=R;this.Dw=!1;this.mI={NB:null,UP:null};this.TM=!0;this.jr=null;this.iF=this.JJo=!1;yA().Z++;this.m8=this.Tp();this.vg=-1;this.Cl=null;this.hasCompleted=this.UCH=!1;this.Fh=new d7;Sv_(this.Fh);nBJ(this);this.requestSource==1?le(this.Fh,"od",1):le(this.Fh,"od",0)};
nBJ=function(R){R=R.ED.kV;var F;if(F=R&&R.getAttribute)F=/-[a-z]/.test("googleAvInapp")?!1:V5j&&R.dataset?"googleAvInapp"in R.dataset:R.hasAttribute?R.hasAttribute("data-"+YvW()):!!R.getAttribute("data-"+YvW());F&&(zW().U=!0)};
iI=function(R,F){F!=R.iF&&(R.iF=F,R=zW(),F?R.Z++:R.Z>0&&R.Z--)};
rb6=function(R,F){if(R.Cl){if(F.getName()===R.Cl.getName())return;R.Cl.dispose();R.Cl=null}F=F.create(R.ED.T,R.Fh,R.Js());if(F=F!=null&&F.observe()?F:null)R.Cl=F};
vBN=function(R,F,n){if(!R.ZK||R.qH==-1||F.U===-1||R.ZK.U===-1)return 0;R=F.U-R.ZK.U;return R>n?0:R};
fxj=function(R,F,n){if(R.Cl){R.Cl.LZ();var V=R.Cl.UZ,r=V.J,v=r.T;if(V.Z!=null){var f=V.N;R.cQ=new g.z5(f.left-v.left,f.top-v.top)}v=R.aL()?Math.max(V.T,V.W):V.T;f={};r.volume!==null&&(f.volume=r.volume);r=R.zF(V);R.ZK=V;R.CH(v,F,n,!1,f,r,V.V)}};
t56=function(R){if(R.Cs&&R.jr){var F=NN(R.Fh,"od")==1,n=zW().T,V=R.jr,r=R.Cl?R.Cl.getName():"ns",v=R.cQ,f=new g.QX(Rv(n),n.getHeight());n=R.aL();R={mXH:r,cQ:v,kZz:f,aL:n,M8:R.m8.M8,xXG:F};if(F=V.U){F.LZ();r=F.UZ;v=r.J.T;var z=f=null;r.Z!=null&&v&&(f=r.N,f=new g.z5(f.left-v.left,f.top-v.top),z=new g.QX(v.right-v.left,v.bottom-v.top));r=n?Math.max(r.T,r.W):r.T;n={mXH:F.getName(),cQ:f,kZz:z,aL:n,xXG:!1,M8:r}}else n=null;n&&lLj(V,R,n)}};
zsN=function(R,F,n){F&&(R.GE=F);n&&(R.Jd=n)};
g.xn=function(){};
g.kn=function(R){return{value:R,done:!1}};
qJN=function(){this.J=this.T=this.N=this.U=this.W=0};
Q2v=function(R){var F={};var n=g.J7()-R.W;F=(F.ptlt=n,F);(n=R.U)&&(F.pnk=n);(n=R.N)&&(F.pnc=n);(n=R.J)&&(F.pnmm=n);(R=R.T)&&(F.pns=R);return F};
cb_=function(){TX.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
Yn=function(R){return fv(R.volume)&&R.volume>0};
J3=function(R,F,n,V){n=n===void 0?!0:n;V=V===void 0?function(){return!0}:V;
return function(r){var v=r[R];if(Array.isArray(v)&&V(r))return w7e(v,F,n)}};
GW=function(R,F){return function(n){return F(n)?n[R]:void 0}};
SJ_=function(R){return function(F){for(var n=0;n<R.length;n++)if(R[n]===F.e||R[n]===void 0&&!F.hasOwnProperty("e"))return!0;return!1}};
w7e=function(R,F,n){return n===void 0||n?g.dk(R,function(V,r){return g.Rz(F,r)}):g.OM(F,function(V,r,v){return R.slice(r>0?v[r-1]+1:0,V+1).reduce(function(f,z){return f+z},0)})};
LLN=function(){this.U=this.T=""};
s2R=function(){};
Ma=function(R,F){var n={};if(R!==void 0)if(F!=null)for(var V in F){var r=F[V];V in Object.prototype||r!=null&&(n[V]=typeof r==="function"?r(R):R[r])}else g.xc(n,R);return aZ(A3(new Xf,n))};
p7N=function(){var R={};this.U=(R.vs=[1,0],R.vw=[0,1],R.am=[2,2],R.a=[4,4],R.f=[8,8],R.bm=[16,16],R.b=[32,32],R.avw=[0,64],R.avs=[64,0],R.pv=[256,256],R.gdr=[0,512],R.p=[0,1024],R.r=[0,2048],R.m=[0,4096],R.um=[0,8192],R.ef=[0,16384],R.s=[0,32768],R.pmx=[0,16777216],R.mut=[33554432,33554432],R.umutb=[67108864,67108864],R.tvoff=[134217728,134217728],R);this.T={};for(var F in this.U)this.U[F][1]>0&&(this.T[F]=0);this.N=0};
lI=function(R,F){var n=R.U[F],V=n[1];R.N+=n[0];V>0&&R.T[F]==0&&(R.T[F]=1)};
X7I=function(R){var F=g.Ho(R.U),n=0,V;for(V in R.T)g.Rz(F,V)&&R.T[V]==1&&(n+=R.U[V][1],R.T[V]=2);return n};
AbI=function(R){var F=0,n;for(n in R.T){var V=R.T[n];if(V==1||V==2)F+=R.U[n][1]}return F};
Na=function(){this.T=this.U=0};
EO=function(){mP.call(this);this.N=new UO;this.gX=this.UZ=this.lS=0;this.V=-1;this.aG=new UO;this.W=new UO;this.T=new jj;this.Z=this.J=-1;this.Nq=new UO;this.h1=2E3;this.Mq=new Na;this.uS=new Na;this.SQ=new Na};
$n=function(R,F,n){var V=R.gX;eu||n||R.V==-1||(V+=F-R.V);return V};
axf=function(){this.N=!1};
Px=function(R,F){this.N=!1;this.J=R;this.UZ=F;this.W=0};
bI=function(R,F){Px.call(this,R,F);this.X=[]};
CbW=function(){};
Z2=function(){};
ej=function(R,F,n,V){sO.call(this,R,F,n,V)};
RW=function(R,F,n){sO.call(this,null,R,F,n);this.V=R.isActive();this.X=0};
FN=function(R){return[R.top,R.left,R.bottom,R.right]};
n_=function(R,F,n,V,r,v){v=v===void 0?new Z2:v;D2.call(this,F,n,V);this.KF=r;this.oP=0;this.W6={};this.eE=new p7N;this.td={};this.N6="";this.SQ=null;this.on=!1;this.T=[];this.nD=v.U();this.Z=v.N();this.J=null;this.N=-1;this.Y5=this.UZ=void 0;this.J1=this.Nq=0;this.PG=-1;this.h1=this.uS=!1;this.lS=this.V=this.U=this.Gj=this.mQ=0;new jj;this.Mq=this.gX=0;this.dX=-1;this.jK=0;this.X=g.$W;this.jQ=[this.Il()];this.YF=2;this.Pq={};this.Pq.pause="p";this.Pq.resume="r";this.Pq.skip="s";this.Pq.mute="m";this.Pq.unmute=
"um";this.Pq.exitfullscreen="ef";this.W=null;this.k5=this.aG=!1;this.KC=Math.floor(Date.now()/1E3-1704067200);this.bS=0};
Vr=function(R){R.hasCompleted=!0;R.jK!=0&&(R.jK=3)};
r2=function(R){return R===void 0?R:Number(R)?vx(R,3):0};
vd=function(R,F){return R.jQ[F!=null&&F<R.jQ.length?F:R.jQ.length-1]};
TFe=function(R){var F=!!NN(yA().Fh,"umt");return R.UZ||!F&&!R.Y5?0:1};
oBe=function(R,F){R.Kx()?F=0:R.qH==-1?F=0:(F-=R.qH,F=F>Math.max(1E4,R.N/3)?0:F);var n=R.X(R)||{};n=n.currentTime!==void 0?n.currentTime:R.Nq;var V=n-R.Nq,r=0;V>=0?(R.J1+=F,R.Mq+=Math.max(F-V,0),r=Math.min(V,R.J1)):R.gX+=Math.abs(V);V!=0&&(R.J1=0);R.dX==-1&&V>0&&(R.dX=Ff>=0?b5()-Ff:-1);R.Nq=n;return r};
ybR=function(R,F){t3(R.Z,function(n){return n.J==F.J})||R.Z.push(F)};
UZJ=function(R){var F=Wx(R.zY().T,1);return f_(R,F)};
f_=function(R,F,n){return F>=15E3?!0:R.uS?(n===void 0?0:n)?!0:R.N>0?F>=R.N/2:R.PG>0?F>=R.PG:!1:!1};
j2_=function(R){var F=vx(R.m8.M8,2),n=R.eE.N,V=R.m8,r=vd(R),v=r2(r.J),f=r2(r.Z),z=r2(V.volume),q=vx(r.X,2),Q=vx(r.J1,2),c=vx(V.M8,2),w=vx(r.jQ,2),L=vx(r.PG,2);V=vx(V.Yb,2);var S=R.wZ().clone().round();R=R.Cl&&R.Cl.N?(R.Cl?R.Cl.N:null).clone().round():null;r=gk(r,!1);return{i4Q:F,S1:n,RT:v,dL:f,kU:z,GL:q,SO:Q,M8:c,x6:w,qn:L,Yb:V,position:S,wi:R,iV:r}};
hsR=function(R,F){HkJ(R.T,F,function(){return{i4Q:0,S1:void 0,RT:-1,dL:-1,kU:-1,GL:-1,SO:-1,M8:-1,x6:-1,qn:-1,Yb:-1,position:void 0,wi:void 0,iV:[]}});
R.T[F]=j2_(R)};
HkJ=function(R,F,n){for(var V=R.length;V<F+1;)R.push(n()),V++};
z2=function(R,F,n){var V=R.td[F];if(V!=null)return V;V=WLe(R,F);var r=ue(to,function(v){return v==F});
R=u$e(R,V,V,n,BFW[to[r]]);F=="fully_viewable_audible_half_duration_impression"&&(R.std="csm");return R};
qD=function(R,F,n){var V=[F];if(R!=F||n!=F)V.unshift(R),V.push(n);return V};
u$e=function(R,F,n,V,r){if(R.Dw)return{"if":0,vs:0};var v=R.wZ().clone().round(),f=R.Cl?R.Cl.N:null,z=zW(),q=yA(),Q=R.zY(),c=R.Cl?R.Cl.getName():"ns",w={};w["if"]=z.N?1:void 0;w.sdk=R.J?R.J:void 0;w.t=R.timeCreated;w.p=[v.top,v.left,v.bottom,v.right];v&&f&&!F6(f,v)&&(v=f.round(),w.cp=[v.top,v.left,v.bottom,v.right]);w.tos=Hx(Q.U,!1);w.mtos=gk(Q);w.mcvt=Q.dX.N;w.ps=void 0;v=$n(Q,b5(),R.Kx());w.vht=v;w.mut=Q.aG.N;w.a=r2(R.m8.volume);w.mv=r2(Q.Z);w.fs=R.iF?1:0;w.ft=Q.Nq.T;w.at=Q.W.T;w.as=Q.J>0?1:0;w.atos=
Hx(Q.T);w.ssb=Hx(Q.k5,!1);w.amtos=$uj(Q.T,!1);w.uac=R.mQ;w.vpt=Q.N.T;c=="nio"&&(w.nio=1,w.avms="nio");w.gmm="4";w.gdr=f_(R,Q.N.T,!0)?1:0;w.efpf=R.YF;if(c=="gsv"||c=="nis")c=R.Cl,c.X>0&&(w.nnut=c.X);w.tcm=TFe(R);w.nmt=R.gX;w.bt=R.Mq;w.pst=R.dX;w.vpaid=R.UZ;w.dur=R.N;w.vmtime=R.Nq;w.is=R.eE.N;R.T.length>=1&&(w.i0=R.T[0].S1,w.a0=[R.T[0].kU],w.c0=[R.T[0].M8],w.ss0=[R.T[0].Yb],c=R.T[0].position,v=R.T[0].wi,w.p0=c?FN(c):void 0,c&&v&&!F6(v,c)&&(w.cp0=FN(v)));R.T.length>=2&&(w.i1=R.T[1].S1,w.a1=qD(R.T[1].RT,
R.T[1].kU,R.T[1].dL),w.c1=qD(R.T[1].GL,R.T[1].M8,R.T[1].SO),w.ss1=qD(R.T[1].x6,R.T[1].Yb,R.T[1].qn),c=R.T[1].position,v=R.T[1].wi,w.p1=c?FN(c):void 0,c&&v&&!F6(v,c)&&(w.cp1=FN(v)),w.mtos1=R.T[1].iV);R.T.length>=3&&(w.i2=R.T[2].S1,w.a2=qD(R.T[2].RT,R.T[2].kU,R.T[2].dL),w.c2=qD(R.T[2].GL,R.T[2].M8,R.T[2].SO),w.ss2=qD(R.T[2].x6,R.T[2].Yb,R.T[2].qn),c=R.T[2].position,v=R.T[2].wi,w.p2=c?FN(c):void 0,c&&v&&!F6(v,c)&&(w.cp2=FN(v)),w.mtos2=R.T[2].iV);R.T.length>=4&&(w.i3=R.T[3].S1,w.a3=qD(R.T[3].RT,R.T[3].kU,
R.T[3].dL),w.c3=qD(R.T[3].GL,R.T[3].M8,R.T[3].SO),w.ss3=qD(R.T[3].x6,R.T[3].Yb,R.T[3].qn),c=R.T[3].position,v=R.T[3].wi,w.p3=c?FN(c):void 0,c&&v&&!F6(v,c)&&(w.cp3=FN(v)),w.mtos3=R.T[3].iV);w.cs=AbI(R.eE);F&&(w.ic=X7I(R.eE),w.dvpt=Q.N.U,w.dvs=Bx(Q.U,.5),w.dfvs=Bx(Q.U,1),w.davs=Bx(Q.T,.5),w.dafvs=Bx(Q.T,1),n&&(Q.N.U=0,P$J(Q.U),P$J(Q.T)),R.tK()&&(w.dtos=Q.lS,w.dav=Q.UZ,w.dtoss=R.oP+1,n&&(Q.lS=0,Q.UZ=0,R.oP++)),w.dat=Q.W.U,w.dft=Q.Nq.U,n&&(Q.W.U=0,Q.Nq.U=0));w.ps=[z.W.width,z.W.height];w.bs=[Rv(z.T),
z.T.getHeight()];w.scs=[z.J.width,z.J.height];w.dom=z.domain;R.Gj&&(w.vds=R.Gj);if(R.Z.length>0||R.nD)F=g.f4(R.Z),R.nD&&F.push(R.nD),w.pings=g.OM(F,function(L){return L.toString()});
F=g.OM(g.dk(R.Z,function(L){return L.Z()}),function(L){return L.getId()});
ZWI(F);w.ces=F;R.U&&(w.vmer=R.U);R.V&&(w.vmmk=R.V);R.lS&&(w.vmiec=R.lS);w.avms=R.Cl?R.Cl.getName():"ns";R.Cl&&g.xc(w,R.Cl.sX());V?(w.c=vx(R.m8.M8,2),w.ss=vx(R.m8.Yb,2)):w.tth=b5()-mZk;w.mc=vx(Q.J1,2);w.nc=vx(Q.X,2);w.mv=r2(Q.Z);w.nv=r2(Q.J);w.lte=vx(R.Vb,2);V=vd(R,r);gk(Q);w.qmtos=gk(V);w.qnc=vx(V.X,2);w.qmv=r2(V.Z);w.qnv=r2(V.J);w.qas=V.J>0?1:0;w.qi=R.N6;w.avms||(w.avms="geo");w.psm=Q.Mq.T;w.psv=Q.Mq.getValue();w.psfv=Q.uS.getValue();w.psa=Q.SQ.getValue();q=c7e(q.Fh);q.length&&(w.veid=q);R.W&&g.xc(w,
Q2v(R.W));w.avas=R.Fw();w.vs=R.V0();w.co=gBe(R);w.tm=Q.bS;w.tu=Q.Y5;return w};
WLe=function(R,F){if(g.Rz(OkE,F))return!0;var n=R.W6[F];return n!==void 0?(R.W6[F]=!0,!n):!1};
gBe=function(R){var F=R.bS.toString(10).padStart(2,"0");F=""+R.KC+F;R.bS<99&&R.bS++;return F};
KL_=function(){this.T={};var R=uY();Qr(this,R,document);var F=IxN();try{if("1"==F){for(var n=R.parent;n!=R.top;n=n.parent)Qr(this,n,n.document);Qr(this,R.top,R.top.document)}}catch(V){}};
IxN=function(){var R=document.documentElement;try{if(!yO(uY().top))return"2";var F=[],n=uY(R.ownerDocument);for(R=n;R!=n.top;R=R.parent)if(R.frameElement)F.push(R.frameElement);else break;return F&&F.length!=0?"1":"0"}catch(V){return"2"}};
Qr=function(R,F,n){OO(n,"mousedown",function(){return DZJ(R)},301);
OO(F,"scroll",function(){return ik_(R)},302);
OO(n,"touchmove",function(){return xZf(R)},303);
OO(n,"mousemove",function(){return kK9(R)},304);
OO(n,"keydown",function(){return YJk(R)},305)};
DZJ=function(R){g.DN(R.T,function(F){F.N>1E5||++F.N})};
ik_=function(R){g.DN(R.T,function(F){F.T>1E5||++F.T})};
xZf=function(R){g.DN(R.T,function(F){F.T>1E5||++F.T})};
YJk=function(R){g.DN(R.T,function(F){F.U>1E5||++F.U})};
kK9=function(R){g.DN(R.T,function(F){F.J>1E5||++F.J})};
Jb9=function(){this.T=[];this.U=[]};
cd=function(R,F){return g.$$(R.T,function(n){return n.N6==F})};
GKW=function(R,F){return F?g.$$(R.T,function(n){return n.ED.kV==F}):null};
dZN=function(R,F){return g.$$(R.U,function(n){return n.gT()==2&&n.N6==F})};
SS=function(){var R=w2;return R.T.length==0?R.U:R.U.length==0?R.T:g.vo(R.U,R.T)};
M56=function(R,F){R=F.gT()==1?R.T:R.U;var n=Ev(R,function(V){return V==F});
return n!=-1?(R.splice(n,1),F.Cl&&F.Cl.unobserve(),F.dispose(),!0):!1};
lxf=function(R){var F=w2;if(M56(F,R)){switch(R.gT()){case 0:var n=function(){return null};
case 2:n=function(){return dZN(F,R.N6)};
break;case 1:n=function(){return cd(F,R.N6)}}for(var V=n();V;V=n())M56(F,V)}};
NFE=function(R){var F=w2;R=g.dk(R,function(n){return!GKW(F,n.ED.kV)});
F.T.push.apply(F.T,g.I(R))};
EBJ=function(R){var F=[];g.az(R,function(n){t3(w2.T,function(V){return V.ED.kV===n.ED.kV&&V.N6===n.N6})||(w2.T.push(n),F.push(n))})};
L_=function(){this.T=this.U=null};
$ZV=function(R,F){function n(V,r){F(V,r)}
if(R.U==null)return!1;R.T=g.$$(R.U,function(V){return V!=null&&V.H2()});
R.T&&(R.T.init(n)?gRk(R.T.T):F(R.T.T.X_(),R.T));return R.T!=null};
s7=function(R){R=PbE(R);pv.call(this,R.length?R[R.length-1]:new wk(N2,0));this.N=R;this.U=null};
PbE=function(R){if(!R.length)return[];R=(0,g.dk)(R,function(n){return n!=null&&n.KY()});
for(var F=1;F<R.length;F++)Sj(R[F-1],R[F]);return R};
p_=function(R,F,n,V){sO.call(this,R,F,n,V);this.J1=this.Nq=this.X=this.V=this.J=null};
XN=function(R){return R.J&&R.J.takeRecords?R.J.takeRecords():[]};
Zkk=function(R){if(!R.element)return!1;var F=R.element,n=R.U.T.N,V=yA().T.T;R.J=new n.IntersectionObserver(TY(V,function(r){return Ao(R,r)}),bkv);
V=TY(V,function(){R.J.unobserve(F);R.J.observe(F);Ao(R,XN(R))});
n.ResizeObserver?(R.V=new n.ResizeObserver(V),R.V.observe(F)):n.MutationObserver&&(R.X=new g.HM.MutationObserver(V),R.X.observe(F,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));R.J.observe(F);Ao(R,XN(R));return!0};
Ao=function(R,F){try{if(F.length){R.Nq||(R.Nq=b5());var n=esf(F),V=Xok(R.element,R.U.T.N),r=V.x,v=V.y;R.N=new eR(Math.round(v),Math.round(r)+n.boundingClientRect.width,Math.round(v)+n.boundingClientRect.height,Math.round(r));R.T=KQN(R,R.N);var f=HY9(n.intersectionRect);R.Z=nY(f,R.N.left-f.left,R.N.top-f.top)}}catch(z){R.unobserve(),Pa(299,z)}};
var qRe=function(R,F){return tv[t[22]](this,1,R,F)};
esf=function(R){return KY(R,function(F,n){return F.time>n.time?F:n},R[0])};
aW=function(R){R=R===void 0?N2:R;pv.call(this,new wk(R,2))};
C_=function(){var R=R46();wk.call(this,N2.top,R,"geo")};
R46=function(){yA();var R=zW();return R.N||R.U?0:2};
FYJ=function(){};
T2=function(){this.done=!1;this.T={lN:0,K9:0,QkH:0,dU:0,E_:-1,W1:0,QQ:0,w3:0,TKZ:0};this.W=null;this.Z=!1;this.N=null;this.X=0;this.U=new cx(this)};
yr=function(){var R=oW;R.Z||(R.Z=!0,nDf(R,function(){return R.J.apply(R,g.I(g.Cq.apply(0,arguments)))}),R.J())};
VpJ=function(){i$(FYJ);var R=i$(L_);R.T!=null&&R.T.T?gRk(R.T.T):zW().update(N2)};
U7=function(R,F,n){if(!R.done&&(R.U.cancel(),F.length!=0)){R.N=null;try{VpJ();var V=b5();yA().W=V;if(i$(L_).T!=null)for(var r=0;r<F.length;r++)fxj(F[r],V,n);for(V=0;V<F.length;V++)t56(F[V]);++R.T.dU}finally{n?g.az(F,function(v){v.m8.M8=0}):R.U.schedule()}}};
nDf=function(R,F){if(!R.W){F=E_(142,F);kR();var n;qa.visibilityState?n="visibilitychange":qa.mozVisibilityState?n="mozvisibilitychange":qa.webkitVisibilityState&&(n="webkitvisibilitychange");n&&Tl(qa,n,F,{capture:!1})&&(R.W=F)}};
rCI=function(){var R=i$(L_);if(R.T!=null){var F=R.T;g.az(SS(),function(n){return rb6(n,F)})}};
vDN=function(R,F){R=R.X;eu&&(R+=F-RZ);return R};
fF6=function(R){R=R===void 0?function(){return{}}:R;
MP.x0="av-js";dt.T=.01;A_e([function(F){var n=yA(),V={};V=(V.bin=n.U,V.type="error",V);n=be(n.Fh);if(!oW.N){var r=oW,v=N2.document,f=ZI>=0?b5()-ZI:-1,z=b5();r.T.E_==-1&&(f=z);var q=zW(),Q=yA(),c=be(Q.Fh),w=SS();try{if(w.length>0){var L=q.T;L&&(c.bs=[Rv(L),L.getHeight()]);var S=q.W;S&&(c.ps=[S.width,S.height]);N2.screen&&(c.scs=[N2.screen.width,N2.screen.height])}else c.url=encodeURIComponent(N2.location.href.substring(0,512)),v.referrer&&(c.referrer=encodeURIComponent(v.referrer.substring(0,512)));
c.tt=f;c.pt=ZI;c.bin=Q.U;N2.google_osd_load_pub_page_exp!==void 0&&(c.olpp=N2.google_osd_load_pub_page_exp);c.deb=[1,r.T.lN,r.T.K9,r.T.dU,r.T.E_,0,r.U.U,r.T.W1,r.T.QQ,r.T.w3,r.T.TKZ,-1].join(";");c.tvt=vDN(r,z);q.U&&(c.inapp=1);if(N2!==null&&N2!=N2.top){w.length>0&&(c.iframe_loc=encodeURIComponent(N2.location.href.substring(0,512)));var p=q.X;c.is=[Rv(p),p.getHeight()]}}catch(C){c.error=1}oW.N=c}L=g.Di(oW.N);S=yA().T;NN(S.N,"prf")==1?(p=new CS,r=S.T,v=0,r.T>-1&&(v=r.N.T.now()-r.T),p=Od(p,1,mL(r.J+
v),0),r=S.T,p=Od(p,5,Kk(r.T>-1?r.U+1:r.U),0),p=Od(p,2,EJ(S.U.T.N()),"0"),p=Od(p,3,EJ(S.U.T.U()),"0"),S=Od(p,4,EJ(S.U.T.T()),"0"),p={},S=(p.pf=g.dQ(S.N()),p)):S={};g.xc(L,S);g.xc(F,V,n,L,R())}])};
z4R=function(){var R=tpk||N2;if(!R)return"";var F=[];if(!R.location||!R.location.href)return"";F.push("url="+encodeURIComponent(R.location.href.substring(0,512)));R.document&&R.document.referrer&&F.push("referrer="+encodeURIComponent(R.document.referrer.substring(0,512)));return F.join("&")};
jS=function(){var R="youtube.player.web_20260114_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20260114_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20260114_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20260114_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),F;if(((F=R)==null?void 0:F.length)==2)return R[1];R="youtube.player.web_20260114_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var n;return((n=R)==null?void 0:n.length)==3?"20"+R[1]+R[2]:null};
qdJ=function(){return"av.default_js".includes("ima_html5_sdk")?{W8:"ima",P8:null}:"av.default_js".includes("ima_native_sdk")?{W8:"nima",P8:null}:"av.default_js".includes("admob-native-video-javascript")?{W8:"an",P8:null}:"youtube.player.web_20260114_01_RC00".includes("cast_js_sdk")?{W8:"cast",P8:jS()}:"youtube.player.web_20260114_01_RC00".includes("youtube.player.web")?{W8:"yw",P8:jS()}:"youtube.player.web_20260114_01_RC00".includes("outstream_web_client")?{W8:"out",P8:jS()}:"youtube.player.web_20260114_01_RC00".includes("drx_rewarded_web")?
{W8:"r",P8:jS()}:"youtube.player.web_20260114_01_RC00".includes("gam_native_web_video")?{W8:"n",P8:jS()}:"youtube.player.web_20260114_01_RC00".includes("admob_interstitial_video")?{W8:"int",P8:jS()}:{W8:"j",P8:null}};
Wd=function(R,F){var n={sv:"968"};Hd!==null&&(n.v=Hd);n.cb=QXI;n.nas=w2.T.length;n.msg=R;F!==void 0&&(R=cCI(F))&&(n.e=ho[R]);return n};
u0=function(R){return eW(R,"custom_metric_viewable")};
cCI=function(R){var F=u0(R)?"custom_metric_viewable":R.toLowerCase();return ue(to,function(n){return n==F})};
wbI=function(){this.T=void 0;this.U=!1;this.N=0;this.J=-1;this.W="tos"};
sXR=function(R){try{var F=R.split(",");return F.length>g.Ho(Sde).length?null:KY(F,function(n,V){V=V.toLowerCase().split("=");if(V.length!=2||LYN[V[0]]===void 0||!LYN[V[0]](V[1]))throw Error("Entry ("+V[0]+", "+V[1]+") is invalid.");n[V[0]]=V[1];return n},{})}catch(n){return null}};
pbV=function(R,F){if(R.T==void 0)return 0;switch(R.W){case "mtos":return R.U?uI(F.T,R.T):uI(F.U,R.T);case "tos":return R.U?Wx(F.T,R.T):Wx(F.U,R.T)}return 0};
Bd=function(R,F,n,V){Px.call(this,F,V);this.X=R;this.V=n};
m8=function(){};
g2=function(R){Px.call(this,"fully_viewable_audible_half_duration_impression",R)};
O7=function(R){this.T=R};
IW=function(R,F){Px.call(this,R,F)};
kw=function(R){bI.call(this,"measurable_impression",R)};
Yw=function(){O7.apply(this,arguments)};
Jo=function(R,F,n){RW.call(this,R,F,n)};
G2=function(R){R=R===void 0?N2:R;pv.call(this,new wk(R,2))};
d2=function(R,F,n){RW.call(this,R,F,n)};
MD=function(R){R=R===void 0?N2:R;pv.call(this,new wk(R,2))};
l0=function(){wk.call(this,N2,2,"mraid");this.Mq=0;this.J1=this.jQ=!1;this.X=null;this.U=y_e(this.N);this.J.T=new eR(0,0,0,0);this.bS=!1};
ND=function(R,F,n){R.dI("addEventListener",F,n)};
C3e=function(R){yA().J=!!R.dI("isViewable");ND(R,"viewableChange",Xbj);R.dI("getState")==="loading"?ND(R,"ready",ACE):aFk(R)};
aFk=function(R){typeof R.U.tp.AFMA_LIDAR==="string"?(R.jQ=!0,Tpk(R)):(R.U.compatibility=3,R.X="nc",R.fail("w"))};
Tpk=function(R){R.J1=!1;var F=NN(yA().Fh,"rmmt")==1,n=!!R.dI("isViewable");(F?!n:1)&&kR().setTimeout($m(524,function(){R.J1||(oDk(R),Pa(540,Error()),R.X="mt",R.fail("w"))}),500);
yCj(R);ND(R,R.U.tp.AFMA_LIDAR,Um9)};
yCj=function(R){var F=NN(yA().Fh,"sneio")==1,n=R.U.tp.AFMA_LIDAR_EXP_1!==void 0,V=R.U.tp.AFMA_LIDAR_EXP_2!==void 0;(F=F&&V)&&(R.U.tp.AFMA_LIDAR_EXP_2=!0);n&&(R.U.tp.AFMA_LIDAR_EXP_1=!F)};
oDk=function(R){R.dI("removeEventListener",R.U.tp.AFMA_LIDAR,Um9);R.jQ=!1};
jXJ=function(R,F){if(R.dI("getState")==="loading")return new g.QX(-1,-1);F=R.dI(F);if(!F)return new g.QX(-1,-1);R=parseInt(F.width,10);F=parseInt(F.height,10);return isNaN(R)||isNaN(F)?new g.QX(-1,-1):new g.QX(R,F)};
ACE=function(){try{var R=i$(l0);R.dI("removeEventListener","ready",ACE);aFk(R)}catch(F){Pa(541,F)}};
Um9=function(R,F){try{var n=i$(l0);n.J1=!0;var V=R?new eR(R.y,R.x+R.width,R.y+R.height,R.x):new eR(0,0,0,0);var r=b5(),v=Qa();var f=new nv(r,v,n);f.T=V;f.volume=F;n.nS(f)}catch(z){Pa(542,z)}};
Xbj=function(R){var F=yA(),n=i$(l0);R&&!F.J&&(F.J=!0,n.bS=!0,n.X&&n.fail("w",!0))};
E7=function(){this.isInitialized=!1;this.T=this.U=null;var R={};this.X=(R.start=this.r1X,R.firstquartile=this.IoH,R.midpoint=this.dqH,R.thirdquartile=this.VQG,R.complete=this.g52,R.error=this.v5q,R.pause=this.FX,R.resume=this.vN,R.skip=this.qZH,R.viewable_impression=this.v8,R.mute=this.HM,R.unmute=this.HM,R.fullscreen=this.DqG,R.exitfullscreen=this.CSz,R.fully_viewable_audible_half_duration_impression=this.v8,R.measurable_impression=this.v8,R.abandon=this.FX,R.engagedview=this.v8,R.impression=this.v8,
R.creativeview=this.v8,R.progress=this.HM,R.custom_metric_viewable=this.v8,R.bufferstart=this.FX,R.bufferfinish=this.vN,R.audio_measurable=this.v8,R.audio_audible=this.v8,R);R={};this.V=(R.overlay_resize=this.SZZ,R.abandon=this.d5,R.close=this.d5,R.collapse=this.d5,R.overlay_unmeasurable_impression=function(F){return z2(F,"overlay_unmeasurable_impression",Qa())},R.overlay_viewable_immediate_impression=function(F){return z2(F,"overlay_viewable_immediate_impression",Qa())},R.overlay_unviewable_impression=
function(F){return z2(F,"overlay_unviewable_impression",Qa())},R.overlay_viewable_end_of_session_impression=function(F){return z2(F,"overlay_viewable_end_of_session_impression",Qa())},R);
yA().U=3;HlJ(this);this.N=null};
$w=function(R,F,n,V){R=R.Ka(null,V,!0,F);R.J=n;NFE([R]);return R};
h4f=function(R,F,n){r7j(F);var V=R.T;g.az(F,function(r){var v=g.OM(r.criteria,function(f){var z=sXR(f);if(z==null)f=null;else if(f=new wbI,z.visible!=null&&(f.T=z.visible/100),z.audible!=null&&(f.U=z.audible==1),z.time!=null){var q=z.timetype=="mtos"?"mtos":"tos",Q=LhW(z.time,"%")?"%":"ms";z=parseInt(z.time,10);Q=="%"&&(z/=100);f.setTime(z,Q,q)}return f});
t3(v,function(f){return f==null})||ybR(n,new Bd(r.id,r.event,v,V))})};
WYj=function(){var R=[],F=yA();R.push(i$(C_));NN(F.Fh,"mvp_lv")&&R.push(i$(l0));F=[new G2,new MD];F.push(new s7(R));F.push(new aW(N2));return F};
uGk=function(R){if(!R.isInitialized){R.isInitialized=!0;try{var F=b5(),n=yA(),V=zW();ZI=F;n.N=79463069;R.U!=="o"&&(tpk=ocE(N2));if(YmJ()){oW.T.K9=0;oW.T.E_=b5()-F;var r=WYj(),v=i$(L_);v.U=r;$ZV(v,function(){Pd()})?oW.done||(rCI(),Sj(v.T.T,R),yr()):V.N?Pd():yr()}else b0=!0}catch(f){throw w2.reset(),f;
}}};
eS=function(R){oW.U.cancel();ZZ=R;oW.done=!0};
RN=function(R){if(R.U)return R.U;var F=i$(L_).T;if(F)switch(F.getName()){case "nis":R.U="n";break;case "gsv":R.U="m"}R.U||(R.U="h");return R.U};
FE=function(R,F,n){if(R.T==null)return F.Gj|=4,!1;R=BpW(R.T,n,F);F.Gj|=R;return R==0};
Pd=function(){var R=[new aW(N2)],F=i$(L_);F.U=R;$ZV(F,function(){eS("i")})?oW.done||(rCI(),yr()):eS("i")};
mmE=function(R,F){if(!R.on){var n=z2(R,"start",Qa());n=R.KF.T(n).T;var V={id:"lidarv"};V.r=F;V.sv="968";Hd!==null&&(V.v=Hd);gt(n,function(r,v){return V[r]=r=="mtos"||r=="tos"?v:encodeURIComponent(v)});
F=z4R();gt(F,function(r,v){return V[r]=encodeURIComponent(v)});
F="//pagead2.googlesyndication.com/pagead/gen_204?"+aZ(A3(new Xf,V));du9(F);R.on=!0}};
ne=function(R,F,n){U7(oW,[R],!Qa());hsR(R,n);n!=4&&HkJ(R.jQ,n,R.Il);return z2(R,F,Qa())};
HlJ=function(R){fF6(function(){var F=gD9();R.U!=null&&(F.sdk=R.U);var n=i$(L_);n.T!=null&&(F.avms=n.T.getName());return F})};
OlV=function(R,F,n,V){var r=GKW(w2,n);r!==null&&r.N6!==F&&(R.Vj(r),r=null);r||(F=R.Ka(n,b5(),!1,F),w2.U.length==0&&(yA().N=79463069),EBJ([F]),r=F,r.J=RN(R),V&&(r.SQ=V));return r};
IFR=function(R,F){var n=R[F];n!==void 0&&n>0&&(R[F]=Math.floor(n*1E3))};
gD9=function(){var R=zW(),F={},n={},V={};return Object.assign({},(F.sv="968",F),Hd!==null&&(n.v=Hd,n),(V["if"]=R.N?"1":"0",V.nas=String(w2.T.length),V))};
V$=function(R){Px.call(this,"audio_audible",R)};
rD=function(R){bI.call(this,"audio_measurable",R)};
vv=function(){O7.apply(this,arguments)};
fe=function(){};
KY9=function(R){this.T=R};
BpW=function(R,F,n){R=R.U();if(typeof R==="function"){var V={};var r={};V=Object.assign({},Hd!==null&&(V.v=Hd,V),(r.sv="968",r.cb=QXI,r.e=DmJ(F),r));r=z2(n,F,Qa());g.xc(V,r);n.td[F]=r;V=n.gT()==2?GlW(V).join("&"):n.KF.T(V).T;try{return R(n.N6,V,F),0}catch(v){return 2}}else return 1};
DmJ=function(R){var F=u0(R)?"custom_metric_viewable":R;R=ue(to,function(n){return n==F});
return ho[R]};
tH=function(){E7.call(this);this.Z=null;this.W=!1;this.J="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
ilv=function(R,F,n){n=n.opt_configurable_tracking_events;R.T!=null&&Array.isArray(n)&&h4f(R,n,F)};
xmN=function(R,F,n){var V=cd(w2,F);V||(V=n.opt_nativeTime||-1,V=$w(R,F,RN(R),V),n.opt_osdId&&(V.SQ=n.opt_osdId));return V};
kbW=function(R,F,n){var V=cd(w2,F);V||(V=$w(R,F,"n",n.opt_nativeTime||-1));return V};
YdR=function(R,F){var n=cd(w2,F);n||(n=$w(R,F,"h",-1));return n};
JCj=function(R){yA();switch(RN(R)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};
MpJ=function(R,F,n,V){n=n===void 0?{}:n;var r={};g.xc(r,{opt_adElement:void 0,opt_fullscreen:void 0},n);var v=R.Rl(F,n);n=v?v.KF:R.kM();if(r.opt_bounds)return n.T(Wd("ol",V));if(V!==void 0)if(cCI(V)!==void 0)if(b0)R=Wd("ue",V);else if(uGk(R),ZZ=="i")R=Wd("i",V),R["if"]=0;else if(F=R.Rl(F,r)){b:{ZZ=="i"&&(F.Dw=!0);v=r.opt_fullscreen;v!==void 0&&iI(F,!!v);var f;if(v=!zW().U)(v=nt(g.ft(),"CrKey")&&!(nt(g.ft(),"CrKey")&&nt(g.ft(),"SmartSpeaker"))||nt(g.ft(),"PlayStation")||nt(g.ft(),"Roku")||WQN()||nt(g.ft(),
"Xbox"))||(v=g.ft(),v=nt(v,"AppleTV")||nt(v,"Apple TV")||nt(v,"CFNetwork")||nt(v,"tvOS")),v||(v=g.ft(),v=nt(v,"sdk_google_atv_x86")||nt(v,"Android TV")),v=!v;v&&(kR(),v=ov(qa)===0);if(f=v){switch(F.gT()){case 1:mmE(F,"pv");break;case 2:R.fF(F)}eS("pv")}v=V.toLowerCase();if(f=!f)f=NN(yA().Fh,"ssmol")&&v==="loaded"?!1:g.Rz(Gbv,v);if(f&&F.jK==0){ZZ!="i"&&(oW.done=!1);f=r!==void 0?r.opt_nativeTime:void 0;Ff=f=typeof f==="number"?f:b5();F.Cs=!0;var z=Qa();F.jK=1;F.W6={};F.W6.start=!1;F.W6.firstquartile=
!1;F.W6.midpoint=!1;F.W6.thirdquartile=!1;F.W6.complete=!1;F.W6.resume=!1;F.W6.pause=!1;F.W6.skip=!1;F.W6.mute=!1;F.W6.unmute=!1;F.W6.viewable_impression=!1;F.W6.measurable_impression=!1;F.W6.fully_viewable_audible_half_duration_impression=!1;F.W6.fullscreen=!1;F.W6.exitfullscreen=!1;F.oP=0;z||(F.zY().V=f);U7(oW,[F],!z)}(f=F.Pq[v])&&lI(F.eE,f);NN(yA().Fh,"fmd")||g.Rz(dmj,v)&&F.nD&&F.nD.U(F,null);switch(F.gT()){case 1:var q=u0(v)?R.X.custom_metric_viewable:R.X[v];break;case 2:q=R.V[v]}if(q&&(V=q.call(R,
F,r,V),NN(yA().Fh,"fmd")&&g.Rz(dmj,v)&&F.nD&&F.nD.U(F,null),V!==void 0)){r=Wd(void 0,v);g.xc(r,V);V=r;break b}V=void 0}F.jK==3&&R.Vj(F);R=V}else R=Wd("nf",V);else R=void 0;else b0?R=Wd("ue"):v?(R=Wd(),g.xc(R,u$e(v,!0,!1,!1))):R=Wd("nf");return typeof R==="string"?n.T():n.T(R)};
lFf=function(R,F){F&&(R.J=F)};
Npf=function(R){var F={};return F.viewability=R.T,F.googleViewability=R.U,F};
EDf=function(R,F,n){n=n===void 0?{}:n;R=MpJ(i$(tH),F,n,R);return Npf(R)};
z8=function(R){var F=g.Cq.apply(1,arguments).filter(Boolean).join("&");if(!F)return R;var n=R.match(/[?&]adurl=/);return n?R.slice(0,n.index+1)+F+"&"+R.slice(n.index+1):R+(R.indexOf("?")<0?"?":"&")+F};
qG=function(R,F){return F?"&"+R+"="+encodeURIComponent(F):""};
$mN=function(R){var F=R.url;R=R.x2Z;this.U=F;this.J=R;this.N=(new Date).getTime()-17040672E5;this.T={};for(var n=/[?&]([^&=]+)=([^&]*)/g;R=n.exec(F);)this.T[R[1]]=R[2]};
P3N=function(R){R=R.J;if(!R)return"";var F=qG("uap",R.platform)+qG("uapv",R.platformVersion)+qG("uafv",R.uaFullVersion)+qG("uaa",R.architecture)+qG("uam",R.model)+qG("uab",R.bitness);R.fullVersionList&&(F+="&uafvl="+encodeURIComponent(R.fullVersionList.map(function(n){return encodeURIComponent(n.brand)+";"+encodeURIComponent(n.version)}).join("|")));
R.wow64!=null&&(F+="&uaw="+Number(R.wow64));return F.slice(1)};
e4R=function(R,F,n,V,r){var v=window;var f=f===void 0?!1:f;var z;n?z=(f===void 0?0:f)?"//ep1.adtrafficquality.google/bg/"+$6(n)+".js":"//pagead2.googlesyndication.com/bg/"+$6(n)+".js":z="";f=f===void 0?!1:f;n=v.document;var q={};F&&(q._scs_=F);q._bgu_=z;q._bgp_=V;q._li_="v_h.3.0.0.0";r&&(q._upb_=r);(F=v.GoogleTyFxhY)&&typeof F.push=="function"||(F=v.GoogleTyFxhY=[]);F.push(q);F=Co(n).createElement("SCRIPT");F.type="text/javascript";F.async=!0;R=(f===void 0?0:f)?g.Xr(bl_,$6(R)+".js"):g.Xr(Zlv,$6(R)+
".js");g.k6(F,R);(v=(v.GoogleTyFxhYEET||{})[F.src])?v():n.getElementsByTagName("head")[0].appendChild(F)};
RHv=function(){try{var R,F;return!!((R=window)==null?0:(F=R.top)==null?0:F.location.href)&&!1}catch(n){return!0}};
Q$=function(R,F,n){n=n===void 0?Error():n;var V=Error.call(this);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.code=R;F+=":";n instanceof Error?(this.message=F+n.message,this.stack=n.stack||""):(this.message=F+String(n),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
wD=function(){var R=F5v();R=R===void 0?"bevasrsg":R;return new Promise(function(F){var n=window===window.top?window:RHv()?window:window.top,V=n[R],r;((r=V)==null?0:r.bevasrs)?F(new cv(V.bevasrs)):(V||(V={},V=(V.nqfbel=[],V),n[R]=V),V.nqfbel.push(function(v){F(new cv(v))}))})};
njN=function(R){var F={c:R.wT,e:R.Pm,mc:R.IF,me:R.Di};R.Vw&&(F.co={c:R.Vw.Pl,a:R.Vw.gz,s:R.Vw.Bg});return F};
SN=function(R){g.G.call(this);this.wpc=R};
cv=function(R){g.G.call(this);var F=this;this.c_=R;this.N="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.U=void 0;this.OH=this.c_.p;this.J=this.r_.bind(this);this.addOnDisposeCallback(function(){return void V0E(F)})};
rN9=function(R){var F;return g.Y(function(n){if(n.T==1){if(!R.c_.wpc)throw new Q$(30,"NWA");return R.T?n.return(R.T):g.k(n,R.c_.wpc(),2)}F=n.U;R.T=new SN(F);return n.return(R.T)})};
V0E=function(R){R.U!==void 0&&(R.N.forEach(function(F){var n;(n=R.U)==null||n.removeEventListener(F,R.J)}),R.U=void 0)};
vjR=function(R){var F=F===void 0?53:F;var n=[];l3(R,Le,6).forEach(function(V){g.Pb(V,2)<=F&&n.push(g.Pb(V,1))});
return n};
f3R=function(R){var F=F===void 0?53:F;var n=[];l3(R,Le,6).forEach(function(V){g.Pb(V,2)>F&&n.push(g.Pb(V,1))});
return n};
t0I=function(R){R.then(function(){},function(){})};
sH=function(){g.G.apply(this,arguments);this.U=1};
pe=function(R){return{fieldType:2,fieldName:R}};
g.XE=function(R){return{fieldType:3,fieldName:R}};
zHv=function(R){this.T=R;R.TV("/client_streamz/bg/frs",g.XE("mk"))};
qhI=function(R){this.T=R;R.TV("/client_streamz/bg/wrl",g.XE("mn"),pe("ac"),pe("sc"),g.XE("rk"),g.XE("mk"))};
Qrj=function(R){this.T=R;R.Ds("/client_streamz/bg/ec",g.XE("en"),g.XE("mk"))};
cNk=function(R){this.T=R;R.TV("/client_streamz/bg/el",g.XE("en"),g.XE("mk"))};
w4e=function(R){this.T=R;R.Ds("/client_streamz/bg/cec",pe("ec"),g.XE("mk"))};
ShE=function(R){this.T=R;R.Ds("/client_streamz/bg/po/csc",pe("cs"),g.XE("mk"))};
L5I=function(R){this.T=R;R.Ds("/client_streamz/bg/po/ctav",g.XE("av"),g.XE("mk"))};
srN=function(R){this.T=R;R.Ds("/client_streamz/bg/po/cwsc",g.XE("su"),g.XE("mk"))};
p4v=function(R){this.EZ=Ll(R)};
X4_=function(R,F){return btI(R,F,Tov)};
AH=function(R){this.EZ=Ll(R)};
aN=function(R){this.EZ=Ll(R)};
Ce=function(R){this.EZ=Ll(R)};
T8=function(R){this.EZ=Ll(R)};
oN=function(R){this.EZ=Ll(R)};
y$=function(R){this.EZ=Ll(R)};
ANJ=function(R){this.EZ=Ll(R)};
T5f=function(R){var F=new y$;F=V7(F,1,R.U);var n=a3R(R);F=btI(F,n,m3R);n=[];for(var V=[],r=g.m(R.T.keys()),v=r.next();!v.done;v=r.next())V.push(v.value.split(","));for(r=0;r<V.length;r++){v=V[r];for(var f=R.J,z=R.V1(v)||[],q=[],Q=0;Q<z.length;Q++){var c=z[Q],w=c&&c.T;c=new aN;switch(f){case 3:w=Number(w);Number.isFinite(w)&&xD(c,1,UH,EJ(w));break;case 2:xD(c,2,UH,mL(Number(w)))}q.push(c)}f=q;for(z=0;z<f.length;z++){q=f[z];Q=new Ce;q=Nm(Q,aN,2,q);Q=[];c=CpV(R);for(w=0;w<c.length;w++){var L=c[w],S=
v[w],p=new AH;switch(L){case 3:xD(p,1,jN,e5(String(S)));break;case 2:L=Number(S);Number.isFinite(L)&&xD(p,2,jN,Kk(L));break;case 1:xD(p,3,jN,gF(S==="true"))}Q.push(p)}Ed(q,AH,1,Q);n.push(q)}}Ed(F,Ce,4,n);return F};
ojR=function(R){if(!R)return"";if(/^about:(?:blank|srcdoc)$/.test(R))return window.origin||"";R.indexOf("blob:")===0&&(R=R.substring(5));R=R.split("#")[0].split("?")[0];R=R.toLowerCase();R.indexOf("//")==0&&(R=window.location.protocol+R);/^[\w\-]*:\/\//.test(R)||(R=window.location.href);var F=R.substring(R.indexOf("://")+3),n=F.indexOf("/");n!=-1&&(F=F.substring(0,n));n=R.substring(0,R.indexOf("://"));if(!n)throw Error("URI is missing protocol: "+R);if(n!=="http"&&n!=="https"&&n!=="chrome-extension"&&
n!=="moz-extension"&&n!=="file"&&n!=="android-app"&&n!=="chrome-search"&&n!=="chrome-untrusted"&&n!=="chrome"&&n!=="app"&&n!=="devtools")throw Error("Invalid URI scheme in origin: "+n);R="";var V=F.indexOf(":");if(V!=-1){var r=F.substring(V+1);F=F.substring(0,V);if(n==="http"&&r!=="80"||n==="https"&&r!=="443")R=":"+r}return n+"://"+F+R};
yNE=function(){function R(){r[0]=1732584193;r[1]=4023233417;r[2]=2562383102;r[3]=271733878;r[4]=3285377520;c=Q=0}
function F(w){for(var L=f,S=0;S<64;S+=4)L[S/4]=w[S]<<24|w[S+1]<<16|w[S+2]<<8|w[S+3];for(S=16;S<80;S++)w=L[S-3]^L[S-8]^L[S-14]^L[S-16],L[S]=(w<<1|w>>>31)&4294967295;w=r[0];var p=r[1],C=r[2],y=r[3],u=r[4];for(S=0;S<80;S++){if(S<40)if(S<20){var B=y^p&(C^y);var O=1518500249}else B=p^C^y,O=1859775393;else S<60?(B=p&C|y&(p|C),O=2400959708):(B=p^C^y,O=3395469782);B=((w<<5|w>>>27)&4294967295)+B+u+O+L[S]&4294967295;u=y;y=C;C=(p<<30|p>>>2)&4294967295;p=w;w=B}r[0]=r[0]+w&4294967295;r[1]=r[1]+p&4294967295;r[2]=
r[2]+C&4294967295;r[3]=r[3]+y&4294967295;r[4]=r[4]+u&4294967295}
function n(w,L){if(typeof w==="string"){w=unescape(encodeURIComponent(w));for(var S=[],p=0,C=w.length;p<C;++p)S.push(w.charCodeAt(p));w=S}L||(L=w.length);S=0;if(Q==0)for(;S+64<L;)F(w.slice(S,S+64)),S+=64,c+=64;for(;S<L;)if(v[Q++]=w[S++],c++,Q==64)for(Q=0,F(v);S+64<L;)F(w.slice(S,S+64)),S+=64,c+=64}
function V(){var w=[],L=c*8;Q<56?n(z,56-Q):n(z,64-(Q-56));for(var S=63;S>=56;S--)v[S]=L&255,L>>>=8;F(v);for(S=L=0;S<5;S++)for(var p=24;p>=0;p-=8)w[L++]=r[S]>>p&255;return w}
for(var r=[],v=[],f=[],z=[128],q=1;q<64;++q)z[q]=0;var Q,c;R();return{reset:R,update:n,digest:V,e$:function(){for(var w=V(),L="",S=0;S<w.length;S++)L+="0123456789ABCDEF".charAt(Math.floor(w[S]/16))+"0123456789ABCDEF".charAt(w[S]%16);return L}}};
jrN=function(R,F,n){var V=String(g.HM.location.href);return V&&R&&F?[F,UtV(ojR(V),R,n||null)].join(" "):null};
UtV=function(R,F,n){var V=[],r=[];if((Array.isArray(n)?2:1)==1)return r=[F,R],g.az(V,function(z){r.push(z)}),Huk(r.join(" "));
var v=[],f=[];g.az(n,function(z){f.push(z.key);v.push(z.value)});
n=Math.floor((new Date).getTime()/1E3);r=v.length==0?[n,F,R]:[v.join(":"),n,F,R];g.az(V,function(z){r.push(z)});
R=Huk(r.join(" "));R=[n,R];f.length==0||R.push(f.join(""));return R.join("_")};
Huk=function(R){var F=yNE();F.update(R);return F.e$().toLowerCase()};
Hv=function(R){this.T=R||{cookie:""}};
hH=function(R){R=(R.T.cookie||"").split(";");for(var F=[],n=[],V,r,v=0;v<R.length;v++)r=V1(R[v]),V=r.indexOf("="),V==-1?(F.push(""),n.push(r)):(F.push(r.substring(0,V)),n.push(r.substring(V+1)));return{keys:F,values:n}};
hHI=function(){var R=g.HM.__SAPISID||g.HM.__APISID||g.HM.__3PSAPISID||g.HM.__1PSAPISID||g.HM.__OVERRIDE_SID;if(R)return!0;typeof document!=="undefined"&&(R=new Hv(document),R=R.get("SAPISID")||R.get("APISID")||R.get("__Secure-3PAPISID")||R.get("__Secure-1PAPISID"));return!!R};
W5N=function(R,F,n,V){(R=g.HM[R])||typeof document==="undefined"||(R=(new Hv(document)).get(F));return R?jrN(R,n,V):null};
ud_=function(R){var F=ojR(g.HM==null?void 0:g.HM.location.href),n=[];if(hHI()){F=F.indexOf("https:")==0||F.indexOf("chrome-extension:")==0||F.indexOf("chrome-untrusted://new-tab-page")==0||F.indexOf("moz-extension:")==0;var V=F?g.HM.__SAPISID:g.HM.__APISID;V||typeof document==="undefined"||(V=new Hv(document),V=V.get(F?"SAPISID":"APISID")||V.get("__Secure-3PAPISID"));(V=V?jrN(V,F?"SAPISIDHASH":"APISIDHASH",R):null)&&n.push(V);F&&((F=W5N("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",R))&&n.push(F),
(R=W5N("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",R))&&n.push(R))}return n.length==0?null:n.join(" ")};
Wv=function(){};
uQ=function(R){this.EZ=Ll(R)};
Bv=function(R,F){this.intervalMs=R;this.callback=F;this.enabled=!1;this.T=function(){return g.J7()};
this.U=this.T()};
mF=function(R){this.EZ=Ll(R)};
gD=function(R){this.EZ=Ll(R)};
g.OH=function(R){this.EZ=Ll(R)};
IN=function(R){this.EZ=Ll(R)};
Ke=function(R){this.EZ=Ll(R)};
B5I=function(R){Ed(DG,IN,1,R)};
iQ=function(R){this.EZ=Ll(R)};
gjN=function(R,F){F=F===void 0?mt9:F;if(!xF){var n;R=(n=R.navigator)==null?void 0:n.userAgentData;if(!R||typeof R.getHighEntropyValues!=="function"||R.brands&&typeof R.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));B5I((R.brands||[]).map(function(r){var v=new IN;v=V7(v,1,r.brand);return V7(v,2,r.version)}));
typeof R.mobile==="boolean"&&Ud(DG,2,gF(R.mobile));xF=R.getHighEntropyValues(F)}var V=new Set(F);return xF.then(function(r){var v=DG.clone();V.has("platform")&&V7(v,3,r.platform);V.has("platformVersion")&&V7(v,4,r.platformVersion);V.has("architecture")&&V7(v,5,r.architecture);V.has("model")&&V7(v,6,r.model);V.has("uaFullVersion")&&V7(v,7,r.uaFullVersion);return v.F6()}).catch(function(){return DG.F6()})};
kF=function(R){this.EZ=Ll(R)};
Oue=function(R){return v4(R,1,1)};
I3e=function(R){this.EZ=Ll(R)};
YF=function(R){this.EZ=Ll(R,4)};
JH=function(R){this.EZ=Ll(R,36)};
G8=function(R){this.EZ=Ll(R,19)};
MG=function(R,F){this.bE=F=F===void 0?!1:F;this.uach=this.locale=null;this.U=0;this.isFinal=!1;this.T=new G8;Number.isInteger(R)&&this.T.R4(R);F||(this.locale=document.documentElement.getAttribute("lang"));dD(this,new kF)};
dD=function(R,F){Nm(R.T,kF,1,F);ep(F,1)||Oue(F);R.bE||(F=lQ(R),ZF(F,5)||V7(F,5,R.locale));R.uach&&(F=lQ(R),dp(F,Ke,9)||Nm(F,Ke,9,R.uach))};
K5E=function(R,F){R.U=F};
iuk=function(R){var F=F===void 0?mt9:F;var n=R.bE?void 0:uY();n?gjN(n,F).then(function(V){R.uach=DtJ(V!=null?V:"[]");V=lQ(R);Nm(V,Ke,9,R.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)};
lQ=function(R){var F=dp(R.T,kF,1);F||(F=new kF,dD(R,F));R=F;F=dp(R,iQ,11);F||(F=new iQ,Nm(R,iQ,11,F));return F};
g.NG=function(R,F,n,V){this.J=R;this.W=F;this.T=this.N=R;this.Z=n||0;this.X=V||2};
g.EH=function(R){R.T=Math.min(R.W,R.T*R.X);R.N=Math.min(R.W,R.T+(R.Z?Math.round(R.Z*(Math.random()-.5)*2*R.T):0));R.U++};
AB=function(R){this.EZ=Ll(R,8)};
d2j=function(R){this.EZ=Ll(R)};
bQ=function(R){g.G.call(this);var F=this;this.componentId="";this.T=[];this.Y5="";this.pageId=null;this.gX=this.lS=-1;this.X=this.experimentIds=null;this.Z=this.J=0;this.UZ=null;this.J1=this.jQ=0;this.dX=1;this.timeoutMillis=0;this.PG=!1;this.logSource=R.logSource;this.tj=R.tj||function(){};
this.N=new MG(R.logSource,R.bE);this.network=R.network||null;this.SI=R.SI||null;this.V=R.h$2||null;this.sessionIndex=R.sessionIndex||null;this.Ms=R.Ms||!1;this.logger=null;this.withCredentials=!R.Q1;this.bE=R.bE||!1;this.Nq=!this.bE&&!!uY()&&!!uY().navigator&&uY().navigator.sendBeacon!==void 0;this.bS=typeof URLSearchParams!=="undefined"&&!!(new URL($F())).searchParams&&!!(new URL($F())).searchParams.set;var n=Oue(new kF);dD(this.N,n);this.W=new g.NG(1E4,3E5,.1);R=xtV(this,R.Hj);this.U=new Bv(this.W.getValue(),
R);this.Mq=new Bv(6E5,R);this.Ms||this.Mq.start();this.bE||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Pv(F);var V;(V=F.UZ)==null||V.flush()}}),document.addEventListener("pagehide",function(){Pv(F);
var V;(V=F.UZ)==null||V.flush()}))};
xtV=function(R,F){return R.bS?F?function(){F().then(function(){R.flush()})}:function(){R.flush()}:function(){}};
k3e=function(R){R.V||(R.V=$F());try{return(new URL(R.V)).toString()}catch(F){return(new URL(R.V,uY().location.origin)).toString()}};
ZG=function(R,F,n){R.UZ&&R.UZ.Yq(F,n)};
Yh6=function(R,F,n){n=n===void 0?null:n;var V=V===void 0?R.withCredentials:V;var r={},v=new URL(k3e(R));n&&(r.Authorization=n);R.sessionIndex&&(r["X-Goog-AuthUser"]=R.sessionIndex,v.searchParams.set("authuser",R.sessionIndex));R.pageId&&(Object.defineProperty(r,"X-Goog-PageId",{value:R.pageId}),v.searchParams.set("pageId",R.pageId));return{url:v.toString(),body:F,Vo:1,requestHeaders:r,requestType:"POST",withCredentials:V,timeoutMillis:R.timeoutMillis}};
Pv=function(R){R.N.isFinal=!0;R.flush();R.N.isFinal=!1};
G3J=function(R){JN9(R,function(F,n){F=new URL(F);F.searchParams.set("format","json");var V=!1;try{V=uY().navigator.sendBeacon(F.toString(),n.F6())}catch(r){}V||(R.Nq=!1);return V})};
JN9=function(R,F){if(R.T.length!==0){var n=new URL(k3e(R));n.searchParams.delete("format");var V=R.tj();V&&n.searchParams.set("auth",V);n.searchParams.set("authuser",R.sessionIndex||"0");for(V=0;V<10&&R.T.length;++V){var r=R.T.slice(0,32),v=R.N.build(r,R.J,R.Z,R.SI,R.jQ,R.J1);if(!F(n.toString(),v)){++R.Z;break}R.J=0;R.Z=0;R.jQ=0;R.J1=0;R.T=R.T.slice(r.length)}R.U.enabled&&R.U.stop()}};
$F=function(){return"https://play.google.com/log?format=json&hasfast=true"};
eN=function(){this.W7=typeof AbortController!=="undefined"};
Rm=function(R,F){F=F===void 0?"0":F;g.G.call(this);this.logSource=R;this.sessionIndex=F;this.OC="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.N=!1;this.network=null;this.componentId="";this.T=this.SI=null;this.U=!1;this.pageId=null};
dtN=function(R,F){R.buildLabel=F;return R};
M0N=function(R,F){R.network=F;return R};
l3N=function(R,F){R.T=F};
N5J=function(R){R.U=!0;return R};
F1=function(R,F,n,V,r,v,f){R=R===void 0?-1:R;F=F===void 0?"":F;n=n===void 0?"":n;V=V===void 0?!1:V;r=r===void 0?"":r;g.G.call(this);this.logSource=R;this.componentId=F;v?F=v:(R=new Rm(R,"0"),R.componentId=F,g.d(this,R),n!==""&&(R.OC=n),V&&(R.N=!0),r&&dtN(R,r),f&&M0N(R,f),F=R.build());this.T=F};
Ej_=function(R){this.T=R};
nT=function(R,F,n){this.U=R;this.J=F;this.fields=n||[];this.T=new Map};
CpV=function(R){return R.fields.map(function(F){return F.fieldType})};
a3R=function(R){return R.fields.map(function(F){return F.fieldName})};
VN=function(R,F){nT.call(this,R,3,F)};
rT=function(R,F){nT.call(this,R,2,F)};
g.v2=function(R,F){this.type=R;this.currentTarget=this.target=F;this.defaultPrevented=this.U=!1};
tD=function(R,F){g.v2.call(this,R?R.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.T=null;R&&this.init(R,F)};
zC=function(R){return!(!R||!R[$tV])};
buf=function(R,F,n,V,r){this.listener=R;this.proxy=null;this.src=F;this.type=n;this.capture=!!V;this.handler=r;this.key=++PpN;this.removed=this.PL=!1};
qg=function(R){R.removed=!0;R.listener=null;R.proxy=null;R.src=null;R.handler=null};
QN=function(R){this.src=R;this.listeners={};this.T=0};
g.c2=function(R,F){var n=F.type;n in R.listeners&&g.VK(R.listeners[n],F)&&(qg(F),R.listeners[n].length==0&&(delete R.listeners[n],R.T--))};
wT=function(R,F,n,V){for(var r=0;r<R.length;++r){var v=R[r];if(!v.removed&&v.listener==F&&v.capture==!!n&&v.handler==V)return r}return-1};
g.LT=function(R,F,n,V,r){if(V&&V.once)return SG(R,F,n,V,r);if(Array.isArray(F)){for(var v=0;v<F.length;v++)g.LT(R,F[v],n,V,r);return null}n=sZ(n);return zC(R)?R.listen(F,n,g.ID(V)?!!V.capture:!!V,r):ZuW(R,F,n,!1,V,r)};
ZuW=function(R,F,n,V,r,v){if(!F)throw Error("Invalid event type");var f=g.ID(r)?!!r.capture:!!r,z=pT(R);z||(R[X1]=z=new QN(R));n=z.add(F,n,V,f,v);if(n.proxy)return n;V=eHj();n.proxy=V;V.src=R;V.listener=n;if(R.addEventListener)RCE||(r=f),r===void 0&&(r=!1),R.addEventListener(F.toString(),V,r);else if(R.attachEvent)R.attachEvent(FwE(F.toString()),V);else if(R.addListener&&R.removeListener)R.addListener(V);else throw Error("addEventListener and attachEvent are unavailable.");nmj++;return n};
eHj=function(){function R(n){return F.call(R.src,R.listener,n)}
var F=Vuk;return R};
SG=function(R,F,n,V,r){if(Array.isArray(F)){for(var v=0;v<F.length;v++)SG(R,F[v],n,V,r);return null}n=sZ(n);return zC(R)?R.NJ(F,n,g.ID(V)?!!V.capture:!!V,r):ZuW(R,F,n,!0,V,r)};
rBe=function(R,F,n,V,r){if(Array.isArray(F))for(var v=0;v<F.length;v++)rBe(R,F[v],n,V,r);else V=g.ID(V)?!!V.capture:!!V,n=sZ(n),zC(R)?R.ZO(F,n,V,r):R&&(R=pT(R))&&(F=R.JM(F,n,V,r))&&AD(F)};
AD=function(R){if(typeof R!=="number"&&R&&!R.removed){var F=R.src;if(zC(F))g.c2(F.Sx,R);else{var n=R.type,V=R.proxy;F.removeEventListener?F.removeEventListener(n,V,R.capture):F.detachEvent?F.detachEvent(FwE(n),V):F.addListener&&F.removeListener&&F.removeListener(V);nmj--;(n=pT(F))?(g.c2(n,R),n.T==0&&(n.src=null,F[X1]=null)):qg(R)}}};
FwE=function(R){return R in am?am[R]:am[R]="on"+R};
Vuk=function(R,F){if(R.removed)R=!0;else{F=new tD(F,this);var n=R.listener,V=R.handler||R.src;R.PL&&AD(R);R=n.call(V,F)}return R};
pT=function(R){R=R[X1];return R instanceof QN?R:null};
sZ=function(R){if(typeof R==="function")return R;R[CT]||(R[CT]=function(F){return R.handleEvent(F)});
return R[CT]};
g.TC=function(){g.G.call(this);this.Sx=new QN(this);this.P7=this;this.ww=null};
om=function(R,F,n,V){F=R.Sx.listeners[String(F)];if(!F)return!0;F=F.concat();for(var r=!0,v=0;v<F.length;++v){var f=F[v];if(f&&!f.removed&&f.capture==n){var z=f.listener,q=f.handler||f.src;f.PL&&g.c2(R.Sx,f);r=z.call(q,V)!==!1&&r}}return r&&!V.defaultPrevented};
yN=function(R,F){this.N=R;this.J=F;this.U=0;this.T=null};
H2=function(R){R=UZ(R);jG||(jG=vmv());jG(R)};
vmv=function(){if(typeof MessageChannel!=="undefined"){var R=new MessageChannel,F={},n=F;R.port1.onmessage=function(){if(F.next!==void 0){F=F.next;var V=F.p9;F.p9=null;V()}};
return function(V){n.next={p9:V};n=n.next;R.port2.postMessage(0)}}return function(V){g.HM.setTimeout(V,0)}};
hD=function(){this.U=this.T=null};
W2=function(){this.next=this.scope=this.T=null};
g.mt=function(R,F){uh||fIW();B2||(uh(),B2=!0);tuN.add(R,F)};
fIW=function(){var R=Promise.resolve(void 0);uh=function(){R.then(zCR)}};
zCR=function(){for(var R;R=tuN.remove();){try{R.T.call(R.scope)}catch(F){J_(F)}q_N.put(R)}B2=!1};
g.OZ=function(R){this.T=0;this.X=void 0;this.J=this.U=this.N=null;this.W=this.Z=!1;if(R!=g.$W)try{var F=this;R.call(void 0,function(n){gT(F,2,n)},function(n){gT(F,3,n)})}catch(n){gT(this,3,n)}};
QME=function(){this.next=this.context=this.U=this.N=this.T=null;this.J=!1};
Im=function(R,F,n){var V=cB6.get();V.N=R;V.U=F;V.context=n;return V};
g.KT=function(R){if(R instanceof g.OZ)return R;var F=new g.OZ(g.$W);gT(F,2,R);return F};
DB=function(R){return new g.OZ(function(F,n){n(R)})};
g.S__=function(R,F,n){waI(R,F,n,null)||g.mt(g.Y$(F,R))};
Lw_=function(R){return new g.OZ(function(F,n){R.length||F(void 0);for(var V,r=0;r<R.length;r++)V=R[r],g.S__(V,F,n)})};
sMN=function(R,F,n,V){ih(R,Im(F||g.$W,n||null,V))};
g.xv=function(R,F){F=UZ(F);F=Im(F,F);F.J=!0;ih(R,F);return R};
paV=function(R,F){if(R.T==0)if(R.N){var n=R.N;if(n.U){for(var V=0,r=null,v=null,f=n.U;f&&(f.J||(V++,f.T==R&&(r=f),!(r&&V>1)));f=f.next)r||(v=f);r&&(n.T==0&&V==1?paV(n,F):(v?(V=v,V.next==n.J&&(n.J=V),V.next=V.next.next):XaI(n),ABk(n,r,3,F)))}R.N=null}else gT(R,3,F)};
ih=function(R,F){R.U||R.T!=2&&R.T!=3||aI_(R);R.J?R.J.next=F:R.U=F;R.J=F};
C5e=function(R,F,n,V){var r=Im(null,null,null);r.T=new g.OZ(function(v,f){r.N=F?function(z){try{var q=F.call(V,z);v(q)}catch(Q){f(Q)}}:v;
r.U=n?function(z){try{var q=n.call(V,z);q===void 0&&z instanceof kv?f(z):v(q)}catch(Q){f(Q)}}:f});
r.T.N=R;ih(R,r);return r.T};
var VEN=function(R,F){return oN6[t[22]](this,8,R,F)};
gT=function(R,F,n){R.T==0&&(R===n&&(F=3,n=new TypeError("Promise cannot resolve to itself")),R.T=1,waI(n,R.e$S,R.gwQ,R)||(R.X=n,R.T=F,R.N=null,aI_(R),F!=3||n instanceof kv||Ttv(R,n)))};
waI=function(R,F,n,V){if(R instanceof g.OZ)return sMN(R,F,n,V),!0;if(R)try{var r=!!R.$goog_Thenable}catch(f){r=!1}else r=!1;if(r)return R.then(F,n,V),!0;if(g.ID(R))try{var v=R.then;if(typeof v==="function")return omV(R,v,F,n,V),!0}catch(f){return n.call(V,f),!0}return!1};
omV=function(R,F,n,V,r){function v(q){z||(z=!0,V.call(r,q))}
function f(q){z||(z=!0,n.call(r,q))}
var z=!1;try{F.call(R,f,v)}catch(q){v(q)}};
aI_=function(R){R.Z||(R.Z=!0,g.mt(R.Nh,R))};
XaI=function(R){var F=null;R.U&&(F=R.U,R.U=F.next,F.next=null);R.U||(R.J=null);return F};
ABk=function(R,F,n,V){if(n==3&&F.U&&!F.J)for(;R&&R.W;R=R.N)R.W=!1;if(F.T)F.T.N=null,yBf(F,n,V);else try{F.J?F.N.call(F.context):yBf(F,n,V)}catch(r){UP_.call(null,r)}cB6.put(F)};
yBf=function(R,F,n){F==2?R.N.call(R.context,n):R.U&&R.U.call(R.context,n)};
Ttv=function(R,F){R.W=!0;g.mt(function(){R.W&&UP_.call(null,F)})};
kv=function(R){lU.call(this,R)};
g.Yv=function(R,F){g.TC.call(this);this.uI=R||1;this.bH=F||g.HM;this.xA=(0,g.k$)(this.W8X,this);this.xu=g.J7()};
g.JD=function(R,F,n){if(typeof R==="function")n&&(R=(0,g.k$)(R,n));else if(R&&typeof R.handleEvent=="function")R=(0,g.k$)(R.handleEvent,R);else throw Error("Invalid listener argument");return Number(F)>2147483647?-1:g.HM.setTimeout(R,F||0)};
GC=function(R,F){var n=null;return(new g.OZ(function(V,r){n=g.JD(function(){V(F)},R);
n==-1&&r(Error("Failed to schedule timer."))})).h5(function(V){g.HM.clearTimeout(n);
throw V;})};
dT=function(R){g.G.call(this);this.X=R;this.J=0;this.N=100;this.W=!1;this.U=new Map;this.Z=new Set;this.flushInterval=3E4;this.T=new g.Yv(this.flushInterval);this.T.listen("tick",this.Uz,!1,this);g.d(this,this.T)};
jMj=function(R){R.T.enabled||R.T.start();R.J++;R.J>=R.N&&R.Uz()};
HSJ=function(R,F){return R.Z.has(F)?void 0:R.U.get(F)};
hC9=function(R){for(var F=0;F<R.length;F++)R[F].clear()};
WwN=function(R){switch(R){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
uCI=function(R){switch(R){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
default:return""}};
Mg=function(R,F,n){n=n===void 0?{}:n;F=Error.call(this,F);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.code=R;this.metadata=n;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
g.lh=function(R){return(new Bt6).F6(R)};
Bt6=function(){};
Ng=function(R,F,n){if(F==null)n.push("null");else{if(typeof F=="object"){if(Array.isArray(F)){var V=F;F=V.length;n.push("[");for(var r="",v=0;v<F;v++)n.push(r),Ng(R,V[v],n),r=",";n.push("]");return}if(F instanceof String||F instanceof Number||F instanceof Boolean)F=F.valueOf();else{n.push("{");r="";for(V in F)Object.prototype.hasOwnProperty.call(F,V)&&(v=F[V],typeof v!="function"&&(n.push(r),mPN(V,n),n.push(":"),Ng(R,v,n),r=","));n.push("}");return}}switch(typeof F){case "string":mPN(F,n);break;case "number":n.push(isFinite(F)&&
!isNaN(F)?String(F):"null");break;case "boolean":n.push(String(F));break;case "function":n.push("null");break;default:throw Error("Unknown type: "+typeof F);}}};
mPN=function(R,F){F.push('"',R.replace(gmN,function(n){var V=OSR[n];V||(V="\\u"+(n.charCodeAt(0)|65536).toString(16).slice(1),OSR[n]=V);return V}),'"')};
IIk=function(R){switch(R){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};
KwR=function(){};
EZ=function(){};
g.$v=function(R){g.TC.call(this);this.headers=new Map;this.PG=R||null;this.N=!1;this.T=null;this.V="";this.U=0;this.J="";this.W=this.jQ=this.UZ=this.J1=!1;this.Nq=0;this.Z=null;this.lS="";this.X=!1};
iSv=function(R,F,n,V,r,v,f){var z=new g.$v;DPN.push(z);F&&z.listen("complete",F);z.NJ("ready",z.E3);v&&(z.Nq=Math.max(0,v));f&&(z.X=f);z.send(R,n,V,r)};
kYf=function(R,F){R.N=!1;R.T&&(R.W=!0,R.T.abort(),R.W=!1);R.J=F;R.U=5;xPN(R);P2(R)};
xPN=function(R){R.J1||(R.J1=!0,R.dispatchEvent("complete"),R.dispatchEvent("error"))};
Y_e=function(R){if(R.N&&typeof bh!="undefined")if(R.UZ&&g.ZB(R)==4)setTimeout(R.Br.bind(R),0);else if(R.dispatchEvent("readystatechange"),R.isComplete()){R.getStatus();R.N=!1;try{if(eG(R))R.dispatchEvent("complete"),R.dispatchEvent("success");else{R.U=6;try{var F=g.ZB(R)>2?R.T.statusText:""}catch(n){F=""}R.J=F+" ["+R.getStatus()+"]";xPN(R)}}finally{P2(R)}}};
P2=function(R,F){if(R.T){R.Z&&(clearTimeout(R.Z),R.Z=null);var n=R.T;R.T=null;F||R.dispatchEvent("ready");try{n.onreadystatechange=null}catch(V){}}};
eG=function(R){var F=R.getStatus();a:switch(F){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var n=!0;break a;default:n=!1}if(!n){if(F=F===0)R=g.Wa(String(R.V))[1]||null,!R&&g.HM.self&&g.HM.self.location&&(R=g.HM.self.location.protocol.slice(0,-1)),F=!JBW.test(R?R.toLowerCase():"");n=F}return n};
g.ZB=function(R){return R.T?R.T.readyState:0};
g.RF=function(R){try{return R.T?R.T.responseText:""}catch(F){return""}};
g.Fo=function(R){try{if(!R.T)return null;if("response"in R.T)return R.T.response;switch(R.lS){case "":case "text":return R.T.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in R.T)return R.T.mozResponseArrayBuffer}return null}catch(F){return null}};
g.GYN=function(R){var F={};R=(R.T&&g.ZB(R)>=2?R.T.getAllResponseHeaders()||"":"").split("\r\n");for(var n=0;n<R.length;n++)if(!g.Re(R[n])){var V=GvE(R[n]),r=V[0];V=V[1];if(typeof V==="string"){V=V.trim();var v=F[r]||[];F[r]=v;v.push(V)}}return yK(F,function(f){return f.join(", ")})};
g.na=function(R,F){return R.T?R.T.getResponseHeader(F):null};
V_=function(){};
v3=function(R,F){this.logger=R;this.event=F;this.startTime=rb()};
fa=function(){sH.apply(this,arguments);this.hJ={YN:function(){return[]}}};
tS=function(R,F,n){var V=rb();F=F();R.Et(n,rb()-V);return F};
zj=function(){fa.apply(this,arguments)};
qv=function(R){fa.call(this);var F=this;this.logger=R;this.hJ={WtX:function(){return F.logger},
YN:function(){return F.logger.hJ.YN()}};
this.addOnDisposeCallback(function(){return void F.logger.dispose()})};
dP9=function(R,F,n,V){R=N5J(M0N(dtN(new Rm(1828,"0"),R),new V_)).Q1();F.length&&l3N(R,X4_(new p4v,F));V!==void 0&&(R.OC=V);var r=new F1(1828,"","",!1,"",R.build());g.d(r,R);var v=new dT({flush:function(f){try{r.flush(f)}catch(z){n(z)}}});
v.addOnDisposeCallback(function(){setTimeout(function(){try{v.Uz()}finally{r.dispose()}})});
v.N=1E5;v.flushInterval=3E4;v.T.setInterval(3E4);return v};
MuJ=function(R,F){g.G.call(this);var n=this;this.callback=R;this.U=F;this.T=-F;this.addOnDisposeCallback(function(){return void clearTimeout(n.timer)})};
lIk=function(R){if(R.timer===void 0){var F=Math.max(0,R.T+R.U-rb());R.timer=setTimeout(function(){try{R.callback()}finally{R.T=rb(),R.timer=void 0}},F)}};
Q_=function(R,F){fa.call(this);this.metrics=R;this.OF=F};
c3=function(R,F){F=F===void 0?[]:F;var n={OF:R.OF||"_",cH:R.cH||[],L0:R.L0|0,OC:R.OC,WQ:R.WQ||function(){},
If:R.If||function(v,f){return dP9(v,f,n.WQ,n.OC)}},V=n.If("53",n.cH.concat(F));
Q_.call(this,{O5H:new zHv(V),errorCount:new w4e(V),eventCount:new Qrj(V),mN:new cNk(V),aNG:new qhI(V),yDH:new ShE(V),H7:new L5I(V),p6G:new srN(V)},n.OF);var r=this;this.hJ={YN:function(){return r.options.cH.concat(r.J).sort(function(v,f){return v-f})}};
this.options=n;this.service=V;this.N=!R.If;this.T=new MuJ(function(){return void r.service.Uz()},n.L0);
this.addOnDisposeCallback(function(){r.T.dispose();r.N&&r.service.dispose()});
g.p4(this.J=F.slice())};
rb=function(){var R,F,n;return(n=(R=globalThis.performance)==null?void 0:(F=R.now)==null?void 0:F.call(R))!=null?n:Date.now()};
wb=function(R){this.EZ=Ll(R)};
Sc=function(R){this.EZ=Ll(R)};
La=function(R){this.EZ=Ll(R,0,La.messageId)};
Le=function(R){this.EZ=Ll(R)};
si=function(R){this.EZ=Ll(R)};
g.pa=function(){var R=this;this.promise=new Promise(function(F,n){R.resolve=F;R.reject=n})};
NtV=function(R,F){if(R.disable)return new zj;F=F?vjR(F):[];R={OF:R.OF,cH:R.Je,L0:R.G9Z,OC:R.OC,WQ:R.WQ,If:R.If};F=F===void 0?[]:F;return new c3(R,F)};
Xo=function(R){function F(p,C,y,u){Promise.resolve().then(function(){q.done();z.uE();z.dispose();f.resolve({v7:p,u62:C,tES:y,TaS:u})})}
function n(p,C,y,u){if(!V.logger.Zo()){var B="k";C?B="h":y&&(B="u");B!=="k"?u!==0&&(V.logger.Vm(B),V.logger.Et(B,p)):V.U<=0?(V.logger.Vm(B),V.logger.Et(B,p),V.U=Math.floor(Math.random()*200)):V.U--}}
g.G.call(this);var V=this;this.U=Math.floor(Math.random()*200);this.T=new si;if("challenge"in R&&Em9(R.challenge)){var r=ZF(R.challenge,4,void 0,wF);var v=ZF(R.challenge,5,void 0,wF);ZF(R.challenge,7,void 0,wF)&&(this.T=$Pe(ZF(R.challenge,7,void 0,wF)))}else r=R.program,v=R.globalName;this.addOnDisposeCallback(function(){var p,C,y;return g.Y(function(u){if(u.T==1)return g.k(u,V.N,2);p=u.U;C=p.u62;(y=C)==null||y();g.rq(u)})});
this.logger=NtV(R.XR||{},this.T);g.d(this,this.logger);var f=new g.pa;this.N=f.promise;this.logger.Vm("t");var z=this.logger.share(),q=new v3(z,"t");if(!g.HM[v])throw this.logger.f4(25),Error("EGOU");if(!g.HM[v].a)throw this.logger.f4(26),Error("ELIU");try{var Q=g.HM[v].a;v=[];for(var c=[],w=vjR(this.T),L=0;L<w.length;L++)v.push(w[L]),c.push(1);var S=f3R(this.T);for(w=0;w<S.length;w++)v.push(S[w]),c.push(2);this.J=g.m(Q(r,F,!0,R.Kq,n,[v,c],ZF(this.T,5),!1)).next().value;this.OH=f.promise.then(function(){})}catch(p){throw this.logger.f4(28),
p;
}};
P59=function(R){if(!R)return null;R=Fd(R,4);return R===null||R===void 0?null:Tx(R)};
AS=function(){this.U={};this.T=null};
aF=function(){AS.instance||(AS.instance=new AS);return AS.instance};
ZSk=function(R,F){return bSI(R,dp(F,wb,1,wF),dp(F,Sc,2,wF),ZF(F,3,void 0,wF))};
bSI=function(R,F,n,V){if(!F&&!n)return Promise.resolve();if(!V)return eCE(F,n);var r;(r=R.U)[V]||(r[V]=new Promise(function(v,f){eCE(F,n).then(function(){R.T=V;v()},function(z){delete R.U[V];
f(z)})}));
return R.U[V]};
eCE=function(R,F){return F?RuW(F):R?FP_(R):Promise.resolve()};
RuW=function(R){return new Promise(function(F,n){var V=g.gu("SCRIPT"),r=P59(R);g.k6(V,r);V.onload=function(){g.iY(V);F()};
V.onerror=function(){g.iY(V);n(Error("EWLS"))};
(g.oE("HEAD")[0]||document.documentElement).appendChild(V)})};
FP_=function(R){return new Promise(function(F){var n=g.gu("SCRIPT");if(R){var V=Fd(R,6);V=V===null||V===void 0?null:hOW(V)}else V=null;n.textContent=iS(V);x6(n);(g.oE("HEAD")[0]||document.documentElement).appendChild(n);g.iY(n);F()})};
Ca=function(R){this.EZ=Ll(R)};
nnN=function(R,F){return r5(R,1,F)};
VjW=function(R,F){return r5(R,2,F)};
r3_=function(R,F){return r5(R,3,F)};
Tj=function(R){this.EZ=Ll(R)};
oF=function(R,F,n){this.client=R;this.requestKey=F;this.T=n};
f2f=function(R,F,n,V,r){var v,f,z,q,Q;return g.Y(function(c){if(c.T==1)return v=r3_(VjW(nnN(new Ca,R.requestKey),F),n),f=R.T(),g.k(c,V.s1("c",R.requestKey,r,R.client.create(v,f)),2);z=c.U;q=R2(gp(z,2));if(q.length)return c.return(tS(V,function(){for(var w=new Uint8Array(q.length),L=0;L<q.length;L++)w[L]=q[L]+97;if(g.HM.TextDecoder)w=(new TextDecoder).decode(w);else if(w.length<=8192)w=String.fromCharCode.apply(null,w);else{L="";for(var S=0;S<w.length;S+=8192)L+=String.fromCharCode.apply(null,Array.prototype.slice.call(w,
S,S+8192));w=L}return vnV(w)},"U"));
Q=dp(z,La,1);if(!Q)throw Error("Missing field");return c.return(Q)})};
qO6=function(R,F,n,V){var r,v;return g.Y(function(f){r=R.T();var z=new Tj;z=r5(z,1,R.requestKey);v=r5(z,2,F);z=f.return;var q=n.s1,Q=R.requestKey,c=R.client;var w=c.T;c=c.U+"/$rpc/google.internal.waa.v1.Waa/GenerateIT";var L=v,S=r||{},p=tjE,C=void 0;C=C===void 0?{}:C;w=zu9(w,c,L,S,p,C);return z.call(f,q.call(n,"g",Q,V,w))})};
QZj=function(R,F,n,V,r){return R instanceof oF?f2f(R,V,r,F,n):f2f(R,V,r,new zj,0)};
y_=function(R){g.G.call(this);var F=this;this.options=R;this.Z=new g.pa;this.OH=this.Z.promise;this.W=new g.pa;this.V=1;this.N=new g.pa;this.J=[];this.isPaused=!1;this.Z_=R.Z_||function(){};
this.logger=new qv(NtV(R.XR||{}));c3j(this,R.W5,R.ws1,R.A3z,R.eoo,Object.assign({},wx_,R.ZU||{}));this.addOnDisposeCallback(function(){return void SON(F)})};
sZ9=function(R){var F;return g.Y(function(n){if(R.Zo())throw Error("Already disposed");(F=R.T)==null||LP_(F);return g.k(n,R.N.promise,0)})};
SON=function(R){R.X=Error("Cancelled by dispose");R.W.resolve();t0I(R.Z.promise);R.Z.reject(Error("Cancelled by dispose"));R.logger.dispose();Promise.all(R.J).then(function(){var n;return g.Y(function(V){(n=R.U)==null||n.dispose();R.U=void 0;g.rq(V)})});
R.J=[];var F;(F=R.T)==null||LP_(F);t0I(R.N.promise);R.N.reject(Error("Cancelled by dispose"))};
px6=function(R,F){var n=R.Z_;R.Z_=function(){n();F()}};
XxW=function(R,F){R.Zo()||(R.U=F,R.logger.update(F.fn()),R.W.resolve(),R.Z.resolve(void 0),R.Z_())};
A3f=function(R,F){F&&(Promise.all(R.J).then(function(){return void F.dispose()}),R.J=[])};
Ui=function(R,F){R.V=F;var n,V;(V=(n=R.options).Oeq)==null||V.call(n,F)};
a2N=function(R){R.Zo()||(R.N.resolve(),R.N=new g.pa)};
c3j=function(R,F,n,V,r,v){V=V===void 0?aF():V;r=r===void 0?Promise.resolve(void 0):r;var f,z,q,Q,c,w,L,S,p,C,y,u;g.Y(function(B){switch(B.T){case 1:return g.k(B,0,3);case 3:z=null;if(!f){B.wX(6);break}Ui(R,7);g.zv(B,7);return g.k(B,jc(f.snapshot({}),v.sW,function(){return Promise.resolve("E:CTO")}),9);
case 9:z=B.U;g.Qz(B,6);break;case 7:g.cM(B),z="E:UCE";case 6:q=void 0,Q=f?v.EW:v.pB,c=new g.NG(Q,v.yQ,v.Th,v.ix),w=1;case 10:if(!(w<=v.maxAttempts)){B.wX(12);break}if(w===1){B.wX(13);break}Ui(R,0);R.T=new H3(c.getValue(),v.At,v.qj);return g.k(B,R.T.promise,14);case 14:L=B.U,R.T=void 0,L===1?(w=1,c.reset()):g.EH(c);case 13:g.zv(B,15);S=void 0;if(n){S=n;B.wX(17);break}Ui(R,5);p=V.T;return g.k(B,jc(QZj(F,R.logger,w,p,z),v.Qa,function(){return Promise.reject(Error("RGF:Fetch timed out"))}),18);
case 18:S=B.U;case 17:return Ui(R,3),g.k(B,jc(ZSk(V,S),v.bCq,function(){return Promise.reject(Error("DTZ:Script timed out"))}),19);
case 19:return Ui(R,8),g.k(B,r,20);case 20:return C=new Xo({challenge:S,XR:R.options.XR,Kq:R.options.Kq}),g.k(B,jc(C.OH,v.R2Z,function(){return Promise.reject(Error("QEG:Setup timed out"))}),21);
case 21:q=C;B.wX(12);break;case 15:y=g.cM(B),R.handleError(y),a2N(R);case 11:w++;B.wX(10);break;case 12:if(R.Zo()){B.wX(5);break}q&&(n=void 0,A3f(R,f),f=q,XxW(R,q),a2N(R));Ui(R,2);R.T=new H3(v.a7H,v.At,v.qj);R.isPaused&&R.T.pause();return g.k(B,R.T.promise,22);case 22:R.T=void 0;if(R.Zo()){B.wX(5);break}B.wX(3);break;case 5:(u=f)==null||u.dispose(),g.rq(B)}})};
jc=function(R,F,n){var V,r=new Promise(function(v){V=setTimeout(v,F)});
return Promise.race([R.finally(function(){return void clearTimeout(V)}),
r.then(n)])};
H3=function(R,F,n){var V=this;this.endTimeMs=0;this.T=null;this.isPaused=!1;this.tick=function(){if(!V.isPaused){var r=V.endTimeMs-Date.now();r<=V.U?(V.T=null,V.iy(0)):V.T=setTimeout(V.tick,Math.min(r,V.At))}};
this.At=F;this.U=n;this.promise=new Promise(function(r){V.iy=r});
CI_(this,R)};
CI_=function(R,F){R.endTimeMs=Date.now()+F;R.tick()};
LP_=function(R){hS(R);R.endTimeMs=0;R.isPaused=!1;R.iy(1)};
hS=function(R){R.T&&(clearTimeout(R.T),R.T=null)};
TkR=function(R,F){try{return globalThis.sessionStorage.setItem(R,F),!0}catch(n){return!1}};
W3=function(R,F,n,V){F=F===void 0?0:F;n=n===void 0?R.length:n;var r=0;for(V&&(r=W3(V));F<n;F++)V=typeof R==="string"?R.charCodeAt(F):R[F],r=one(31,r)+V|0;return r};
y3e=function(R,F){return[W3(R,0,R.length>>1,F),W3(R,R.length>>1)]};
Uaj=function(R){var F=g.m(y3e(R,uw));R=F.next().value;F=F.next().value;return R.toString(16)+F.toString(16)};
jZf=function(R,F){var n=y3e(F);R=new Uint32Array(R.buffer);F=R[0];var V=g.m(n);n=V.next().value;V=V.next().value;for(var r=1;r<R.length;r+=2){for(var v=F,f=r,z=n,q=V,Q=0;Q<22;Q++)f=f>>>8|f<<24,f+=v|0,f^=z+38293,v=v<<3|v>>>29,v^=f,q=q>>>8|q<<24,q+=z|0,q^=Q+38293,z=z<<3|z>>>29,z^=q;v=[v,f];R[r]^=v[0];r+1<R.length&&(R[r+1]^=v[1])}};
HvN=function(R,F,n,V,r){var v=(4-(uw.length+n.length)%4)%4,f=new Uint8Array(4+v+uw.length+4+n.length),z=new DataView(f.buffer),q=0;z.setUint32(q,Math.random()*4294967295);q=q+4+v;f.set(uw,q);q+=uw.length;z.setUint32(q,r);f.set(n,q+4);jZf(f,V);return R.X6(F,function(Q){return void globalThis.sessionStorage.removeItem(Q)})?TkR(F,g.dQ(f))?"s":"t":"i"};
huR=function(R,F){var n=globalThis.sessionStorage.getItem(R);if(!n)return["m"];try{var V=l$(n);jZf(V,F)}catch(r){return globalThis.sessionStorage.removeItem(R),["c"]}for(F=4;F<7&&V[F]===0;)F++;for(n=0;n<uw.length;n++)if(V[F++]!==uw[n])return globalThis.sessionStorage.removeItem(R),["d"];n=(new DataView(V.buffer)).getUint32(F);return Math.floor(Date.now()/1E3)>=n?(globalThis.sessionStorage.removeItem(R),["e"]):["a",new Uint8Array(V.buffer,F+4)]};
B3=function(R,F,n){n=n===void 0?[]:n;this.maxItems=R;this.T=F===void 0?0:F;this.U=n};
WPJ=function(R){var F=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!F)return new B3(R);var n=F.split(",");if(n.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new B3(R);F=n.slice(1);F.length===1&&F[0]===""&&(F=[]);n=Number(n[0]);return isNaN(n)||n<0||n>F.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new B3(R)):new B3(R,n,F)};
ufV=function(R,F){this.logger=F;try{var n=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(V){n=!1}n&&(this.index=WPJ(R))};
BkR=function(R,F,n,V,r){var v=R.index?tS(R.logger,function(){return HvN(R.index,Uaj(F),n,V,r)},"W"):"u";
R.logger.vn(v)};
maE=function(R,F,n){var V=g.m(R.index?tS(R.logger,function(){return huR(Uaj(F),n)},"R"):["u"]),r=V.next().value;
V=V.next().value;R.logger.eO(r);return V};
I2_=function(R){function F(){n-=V;n-=r;n^=r>>>13;V-=r;V-=n;V^=n<<8;r-=n;r-=V;r^=V>>>13;n-=V;n-=r;n^=r>>>12;V-=r;V-=n;V^=n<<16;r-=n;r-=V;r^=V>>>5;n-=V;n-=r;n^=r>>>3;V-=r;V-=n;V^=n<<10;r-=n;r-=V;r^=V>>>15}
R=gn_(R);for(var n=2654435769,V=2654435769,r=314159265,v=R.length,f=v,z=0;f>=12;f-=12,z+=12)n+=mE(R,z),V+=mE(R,z+4),r+=mE(R,z+8),F();r+=v;switch(f){case 11:r+=R[z+10]<<24;case 10:r+=R[z+9]<<16;case 9:r+=R[z+8]<<8;case 8:V+=R[z+7]<<24;case 7:V+=R[z+6]<<16;case 6:V+=R[z+5]<<8;case 5:V+=R[z+4];case 4:n+=R[z+3]<<24;case 3:n+=R[z+2]<<16;case 2:n+=R[z+1]<<8;case 1:n+=R[z+0]}F();return Ovf.toString(r)};
gn_=function(R){for(var F=[],n=0;n<R.length;n++)F.push(R.charCodeAt(n));return F};
mE=function(R,F){return R[F+0]+(R[F+1]<<8)+(R[F+2]<<16)+(R[F+3]<<24)};
gb=function(R){g.G.call(this);this.logger=R;this.N=new g.pa};
Oi=function(R,F){var n=setTimeout(function(){R.N.resolve()},F);
R.addOnDisposeCallback(function(){return void clearTimeout(n)})};
IF=function(R,F,n,V){return tS(R.logger,function(){return n?R.Bd(F,V):R.mE(F,V)},R.T)};
Ka=function(R,F,n,V){gb.call(this,R);this.J=F;this.Z=n;this.T="m";this.U="x";this.W=0;Oi(this,V)};
De=function(R,F,n){gb.call(this,R);this.J=F;this.T="f";this.U="z";Oi(this,n)};
iw=function(R,F,n){gb.call(this,R);this.J=F;this.T="w";this.U="z";Oi(this,n)};
xq=function(R,F){gb.call(this,R);this.error=F;this.T="e";this.U="y"};
KPR=function(R,F){var n=(F(R.error.message)+":"+F(R.error.stack)).substring(0,2048);F=n.length+1;n=kq(n);var V=new Uint8Array(4+n.length);V.set([42,F&127|128,F>>7,R.error.code]);V.set(n,4);return V};
Yq=function(R,F,n){gb.call(this,R);this.J=F;this.clientState=n;this.T="S";this.U="q"};
kq=function(R){return globalThis.TextEncoder?(new TextEncoder).encode(R):g.Gl(R)};
Dae=function(R,F,n){return R instanceof oF?qO6(R,n,F,1):R.zg(n)};
Gj=function(R){g.G.call(this);var F=this;this.N=new g.pa;this.J=0;this.U=void 0;this.state=2;this.c_=R.c_;this.W5=R.W5;this.ZU=Object.assign({},ivN,R.ZU||{});this.logger=R.c_.fn();var n;this.onError=(n=R.onError)!=null?n:function(){};
this.DY=R.DY||!1;if(xav(R)){var V=this.c_;this.W=function(){return sZ9(V).catch(function(f){f=F.reportError(new Q$(F.T?20:32,"TRG:Disposed",f));F.U=f;var z;(z=F.T)==null||z.dispose();F.T=void 0;F.N.reject(f)})};
px6(V,function(){return void JS(F)});
V.V===2&&JS(this)}else this.W=R.fE2,JS(this);var r=this.logger.share();r.Vm("o");var v=new v3(r,"o");this.N.promise.then(function(){v.done();r.uE();r.dispose()},function(){return void r.dispose()});
this.addOnDisposeCallback(function(){F.T?(F.T.dispose(),F.T=void 0):F.U?F.logger.uE():(F.U=F.reportError(new Q$(32,"TNP:Disposed")),F.logger.uE(),F.N.reject(F.U))});
g.d(this,this.logger)};
kWN=function(R,F){if(!(F instanceof Q$))if(F instanceof Mg){var n=Error(F.toString());n.stack=F.stack;F=new Q$(11,"EBH:Error",n)}else F=new Q$(12,"BSO:Unknown",F);return R.reportError(F)};
JS=function(R){var F,n,V,r,v,f,z,q,Q,c,w,L,S,p,C;return g.Y(function(y){switch(y.T){case 1:F=void 0;R.J++;n=new g.pa;R.c_ instanceof y_&&R.c_.J.push(n.promise);if(!R.DY){y.wX(2);break}V=new g.pa;setTimeout(function(){return void V.resolve()});
return g.k(y,V.promise,2);case 2:return r=R.logger.share(),g.zv(y,4,5),R.state=5,v={},f=[],g.k(y,jc(R.c_.snapshot({wT:v,XI:f}),R.ZU.i52,function(){return Promise.reject(new Q$(15,"MDA:Timeout"))}),7);
case 7:z=y.U;if(R.Zo())throw new Q$(R.T?20:32,"MDA:Disposed");q=f[0];R.state=6;return g.k(y,jc(Dae(R.W5,r,z),R.ZU.Wa,function(){return Promise.reject(new Q$(10,"BWB:Timeout"))}),8);
case 8:Q=y.U;if(R.Zo())throw new Q$(R.T?20:32,"BWB:Disposed");R.state=7;F=tS(r,function(){var B=YO9(R,Q,n,q);B.N.promise.then(function(){return void R.W()});
return B},"i");
case 5:g.wq(y);r.dispose();g.S7(y,6);break;case 4:c=g.cM(y);(w=F)==null||w.dispose();if(!R.U){L=kWN(R,c);n.resolve();var u;if(u=R.c_ instanceof y_&&R.J<2)a:if(c instanceof Q$)u=c.code!==32&&c.code!==20&&c.code!==10;else{if(c instanceof Mg)switch(c.code){case 2:case 13:case 14:case 4:break;default:u=!1;break a}u=!0}if(u)return S=(1+Math.random()*.25)*(R.T?6E4:1E3),p=setTimeout(function(){return void R.W()},S),R.addOnDisposeCallback(function(){return void clearTimeout(p)}),y.return();
R.U=L}r.f4(R.T?13:14);R.N.reject(R.U);return y.return();case 6:R.state=8,R.J=0,(C=R.T)==null||C.dispose(),R.T=F,R.N.resolve(),g.rq(y)}})};
YO9=function(R,F,n,V){var r=b3(F,2)*1E3;if(r<=0)throw new Q$(31,"TTM:Invalid");if(ZF(F,4))return new iw(R.logger,ZF(F,4),r);if(!b3(F,3))return new De(R.logger,R2(gp(F,1)),r);if(!V)throw new Q$(4,"PMD:Undefined");V=V(R2(gp(F,1)));if(typeof V!=="function")throw new Q$(16,"APF:Failed");R.Z=Math.floor((Date.now()+r)/1E3);R=new Ka(R.logger,V,b3(F,3),r);R.addOnDisposeCallback(function(){return void n.resolve()});
return R};
J3v=function(R,F){F=F instanceof Q$?F:new Q$(5,"TVD:error",F);return R.reportError(F)};
NkI=function(R,F,n){try{if(R.Zo())throw new Q$(21,"BNT:disposed");if(!R.T&&R.U)throw R.U;var V,r;return(r=(V=GWk(R,F,n))!=null?V:daW(R,F,n))!=null?r:Mj_(R,F,n)}catch(v){if(!F.Di)throw J3v(R,v);return l2f(R,n,v)}};
var C99=function(R,F){return Av[t[22]](this,1,R,F)};
GWk=function(R,F,n){var V;return(V=R.T)==null?void 0:IF(V,function(){return db(R,F)},n,function(r){var v;
if(R.T instanceof Ka&&((v=F.Vw)==null?0:v.Bg))try{var f;(f=R.cache)==null||BkR(f,db(R,F),r,F.Vw.Pl,R.Z-120)}catch(z){R.reportError(new Q$(24,"ELX:write",z))}})};
daW=function(R,F,n){var V;if((V=F.Vw)!=null&&V.gz)try{var r,v=(r=R.cache)==null?void 0:maE(r,db(R,F),F.Vw.Pl);return v?n?tS(R.logger,function(){return g.dQ(v,2)},"a"):v:void 0}catch(f){R.reportError(new Q$(23,"RXO:read",f))}};
Mj_=function(R,F,n){var V={stack:[],error:void 0,hasError:!1};try{if(!F.IF)throw new Q$(29,"SDF:notready");return IF(MER(V,new Yq(R.logger,0,R.state)),function(){return db(R,F)},n)}catch(r){V.error=r,V.hasError=!0}finally{lN9(V)}};
l2f=function(R,F,n){var V={stack:[],error:void 0,hasError:!1};try{var r=J3v(R,n);return IF(MER(V,new xq(R.logger,r)),function(){return[]},F)}catch(v){V.error=v,V.hasError=!0}finally{lN9(V)}};
db=function(R,F){return F.Pm?F.Pm:F.wT?tS(R.logger,function(){return F.Pm=kq(F.wT)},"c"):[]};
EnN=function(){var R=0,F;return function(n){F||(F=new zj);var V=new Yq(F,R,1),r=IF(V,function(){return kq(n)},!0);
V.dispose();R++;return r}};
$ae=function(){var R=g.Mv();this.T=R;R.Ds("/client_streamz/youtube/aba/gac",pe("type"),pe("sequence"))};
lw=function(R){this.EZ=Ll(R)};
PIJ=function(R,F,n){this.MN=R;this.e2=F;this.metadata=n};
Nv=function(R,F){F=F===void 0?{}:F;this.W0o=R;this.metadata=F;this.status=null};
Ei=function(R,F,n,V,r){this.name=R;this.methodType="unary";this.requestType=F;this.responseType=n;this.T=V;this.U=r};
$q=function(R){this.EZ=Ll(R)};
P3=function(R){this.EZ=Ll(R)};
bw=function(R){this.EZ=Ll(R)};
Ze=function(R,F){this.U=[];this.J=[];this.W=[];this.N=[];this.T=[];this.Z=R.yJ2;this.X=F;this.xhr=R.xhr;this.Z&&bvf(this)};
F8E=function(R,F){var n=new Zvj;g.LT(R.xhr,"complete",function(){if(eG(R.xhr)){var V=g.RF(R.xhr);if(F&&R.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");V=atob(V)}try{var r=R.X(V)}catch(z){ec(R,RC(new Mg(13,"Error when deserializing response data; error: "+z+(", response: "+V)),n));return}V=WwN(R.xhr.getStatus());F3(R,nD(R));V===0?euN(R,r):ec(R,RC(new Mg(V,"Xhr succeeded but the status code is not 200"),n))}else{V=g.RF(R.xhr);r=nD(R);if(V){var v=
Rdk(R,V);V=v.code;var f=v.details;v=v.metadata}else V=2,f="Rpc failed due to xhr error. uri: "+String(R.xhr.V)+", error code: "+(R.xhr.U+", error: ")+R.xhr.getLastError(),v=r;F3(R,r);ec(R,RC(new Mg(V,f,v),n))}})};
bvf=function(R){R.Z.sK("data",function(F){if("1"in F){var n=F["1"];try{var V=R.X(n)}catch(r){ec(R,new Mg(13,"Error when deserializing response data; error: "+r+(", response: "+n)))}V&&euN(R,V)}if("2"in F)for(F=Rdk(R,F["2"]),n=0;n<R.W.length;n++)R.W[n](F)});
R.Z.sK("end",function(){F3(R,nD(R));for(var F=0;F<R.N.length;F++)R.N[F]()});
R.Z.sK("error",function(){if(R.T.length!==0){var F=R.xhr.U;F!==0||eG(R.xhr)||(F=6);var n=-1;switch(F){case 0:var V=2;break;case 7:V=10;break;case 8:V=4;break;case 6:n=R.xhr.getStatus();V=WwN(n);break;default:V=14}F3(R,nD(R));F=IIk(F)+", error: "+R.xhr.getLastError();n!==-1&&(F+=", http status code: "+n);ec(R,new Mg(V,F))}})};
nD=function(R){var F={},n=g.GYN(R.xhr);Object.keys(n).forEach(function(V){F[V]=n[V]});
return F};
Rdk=function(R,F){var n=2,V={};try{var r=nwe(F);n=g.Pb(r,1);var v=r.getMessage();l3(r,P3,3).length&&(V["grpc-web-status-details-bin"]=F)}catch(f){R.xhr&&R.xhr.getStatus()===404?(n=5,v="Not Found: "+String(R.xhr.V)):(n=14,v="Unable to parse RpcStatus: "+f)}return{code:n,details:v,metadata:V}};
VG=function(R,F){F=R.indexOf(F);F>-1&&R.splice(F,1)};
euN=function(R,F){for(var n=0;n<R.U.length;n++)R.U[n](F)};
F3=function(R,F){for(var n=0;n<R.J.length;n++)R.J[n](F)};
ec=function(R,F){for(var n=0;n<R.T.length;n++)R.T[n](F)};
Zvj=function(){var R=Error.call(this);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
RC=function(R,F){F.stack&&(R.stack+="\n"+F.stack);return R};
g.rH=function(R){this.J=R.Gt||null;this.N=R.bB||!1;this.U=void 0};
vD=function(R,F){g.TC.call(this);this.jQ=R;this.Z=F;this.W=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.UZ=new Headers;this.U=null;this.J1="GET";this.Nq="";this.T=!1;this.X=this.N=this.J=null;this.V=new AbortController};
VSj=function(R){R.N.read().then(R.PS5.bind(R)).catch(R.fJ.bind(R))};
tm=function(R){R.readyState=4;R.J=null;R.N=null;R.X=null;fD(R)};
fD=function(R){R.onreadystatechange&&R.onreadystatechange.call(R)};
roe=function(R){if(R.GU&&typeof R.GU=="function")return R.GU();if(typeof Map!=="undefined"&&R instanceof Map||typeof Set!=="undefined"&&R instanceof Set)return Array.from(R.values());if(typeof R==="string")return R.split("");if(g.gq(R)){for(var F=[],n=R.length,V=0;V<n;V++)F.push(R[V]);return F}return jW(R)};
vwV=function(R){if(R.V8&&typeof R.V8=="function")return R.V8();if(!R.GU||typeof R.GU!="function"){if(typeof Map!=="undefined"&&R instanceof Map)return Array.from(R.keys());if(!(typeof Set!=="undefined"&&R instanceof Set)){if(g.gq(R)||typeof R==="string"){var F=[];R=R.length;for(var n=0;n<R;n++)F.push(n);return F}return g.Ho(R)}}};
fZk=function(R,F,n){if(R.forEach&&typeof R.forEach=="function")R.forEach(F,n);else if(g.gq(R)||typeof R==="string")Array.prototype.forEach.call(R,F,n);else for(var V=vwV(R),r=roe(R),v=r.length,f=0;f<v;f++)F.call(n,r[f],V&&V[f],R)};
g.c_=function(R){this.T=this.V=this.W="";this.N=null;this.Z=this.U="";this.X=!1;var F;R instanceof g.c_?(this.X=R.X,g.q1(this,R.W),this.V=R.V,g.we(this,R.T),g.QG(this,R.N),this.U=R.U,cD(this,R.J.clone()),this.Z=R.Z):R&&(F=g.Wa(String(R)))?(this.X=!1,g.q1(this,F[1]||"",!0),this.V=wH(F[2]||""),g.we(this,F[3]||"",!0),g.QG(this,F[4]),this.U=wH(F[5]||"",!0),cD(this,F[6]||"",!0),this.Z=wH(F[7]||"")):(this.X=!1,this.J=new SI(null,this.X))};
g.q1=function(R,F,n){R.W=n?wH(F,!0):F;R.W&&(R.W=R.W.replace(/:$/,""))};
g.we=function(R,F,n){R.T=n?wH(F,!0):F};
g.QG=function(R,F){if(F){F=Number(F);if(isNaN(F)||F<0)throw Error("Bad port number "+F);R.N=F}else R.N=null};
cD=function(R,F,n){F instanceof SI?(R.J=F,tSN(R.J,R.X)):(n||(F=LD(F,zdE)),R.J=new SI(F,R.X))};
g.sB=function(R,F,n){R.J.set(F,n)};
g.H_=function(R){return R instanceof g.c_?R.clone():new g.c_(R)};
wH=function(R,F){return R?F?decodeURI(R.replace(/%25/g,"%2525")):decodeURIComponent(R):""};
LD=function(R,F,n){return typeof R==="string"?(R=encodeURI(R).replace(F,q7k),n&&(R=R.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),R):null};
q7k=function(R){R=R.charCodeAt(0);return"%"+(R>>4&15).toString(16)+(R&15).toString(16)};
SI=function(R,F){this.U=this.T=null;this.N=R||null;this.J=!!F};
pD=function(R){R.T||(R.T=new Map,R.U=0,R.N&&gt(R.N,function(F,n){R.add(Ej(F),n)}))};
QWV=function(R,F){pD(R);F=X3(R,F);return R.T.has(F)};
g.co_=function(R,F,n){R.remove(F);n.length>0&&(R.N=null,R.T.set(X3(R,F),g.f4(n)),R.U=R.U+n.length)};
X3=function(R,F){F=String(F);R.J&&(F=F.toLowerCase());return F};
tSN=function(R,F){F&&!R.J&&(pD(R),R.N=null,R.T.forEach(function(n,V){var r=V.toLowerCase();V!=r&&(this.remove(V),g.co_(this,r,n))},R));
R.J=F};
g.wdN=function(R){var F="";g.DN(R,function(n,V){F+=V;F+=":";F+=n;F+="\r\n"});
return F};
g.Am=function(R,F,n){if(g.g7(n))return R;n=g.wdN(n);if(typeof R==="string")return i5(R,g.N3(F),n);g.sB(R,F,n);return R};
g.aC=function(R){g.G.call(this);this.U=R;this.T={}};
S7f=function(R,F,n,V,r,v){if(Array.isArray(n))for(var f=0;f<n.length;f++)S7f(R,F,n[f],V,r,v);else{F=SG(F,n,V||R.handleEvent,r,v||R.U||R);if(!F)return R;R.T[F.key]=F}return R};
L8N=function(){this.N=!0;this.U=0;this.T=""};
sWk=function(R,F,n){R.N=!1;throw Error("The stream is broken @"+R.U+". Error: "+n+". With input:\n"+F);};
CD=function(){this.Z=null;this.X=[];this.J=this.U=this.N=this.T=this.UZ=0;this.W=null;this.V=0};
TG=function(R,F,n,V){R.T=3;R.Z="The stream is broken @"+R.UZ+"/"+n+". Error: "+V+". With input:\n"+F;throw Error(R.Z);};
oC=function(){this.T=null;this.U=0;this.N=new L8N;this.J=new CD};
pdR=function(R,F,n){R.T="The stream is broken @"+R.U+". Error: "+n+". With input:\n"+F;throw Error(R.T);};
yG=function(R){return R=="\r"||R=="\n"||R==" "||R=="\t"};
UB=function(R){this.UZ=null;this.Z=[];this.J="";this.J1=[];this.N=this.U=0;this.X=!1;this.V=0;this.jQ=/[\\"]/g;this.T=this.W=0;this.Nq=!(!R||!R.Yv)};
jI=function(R,F,n){R.W=3;R.UZ="The stream is broken @"+R.N+"/"+n+". With input:\n"+F;throw Error(R.UZ);};
HD=function(){this.W=this.N=null;this.U=this.T=0;this.J=[];this.Z=!1};
XdN=function(R){var F=g.na(R,"Content-Type");if(!F)return null;F=F.toLowerCase();return F.startsWith("application/json")?F.startsWith("application/json+protobuf")?new HD:new UB:F.startsWith("application/x-protobuf")?(R=g.na(R,"Content-Transfer-Encoding"))?R.toLowerCase()=="base64"?new oC:null:new CD:null};
hm=function(R){this.T=R;this.U=null;this.W=this.N=0;this.UZ=!1;this.J=this.X=this.Z=null;this.V=new g.aC(this);this.V.listen(this.T,"readystatechange",this.Nq)};
WD=function(R,F){R.W!=F&&(R.W=F,R.X&&R.X())};
uM=function(R){R.V.removeAll();if(R.T){var F=R.T;R.T=null;F.abort();F.dispose()}};
AoW=function(R){R=this.N=R;var F=(0,g.k$)(this.IOZ,this);R.J=F;R=this.N;F=(0,g.k$)(this.fj2,this);R.X=F;this.U={};this.T={}};
aZ9=function(R,F){for(var n={},V=0;V<R.length;n={zx:void 0},V++)n.zx=R[V],F.forEach(function(r){return function(v){try{v(r.zx)}catch(f){}}}(n))};
BD=function(R,F){var n=R.U[F];n&&n.forEach(function(V){try{V()}catch(r){}});
(n=R.T[F])&&n.forEach(function(V){V()});
R.T[F]=[]};
C09=function(){var R={format:"jspb"};R=R===void 0?{}:R;this.Mj=R.Mj||g.WM("suppressCorsPreflight",R)||!1;this.withCredentials=R.withCredentials||g.WM("withCredentials",R)||!1;this.Zx=R.Zx||[];this.Tw=R.Tw||[];this.qb=R.qb;this.T=R.fnz||!1};
zu9=function(R,F,n,V,r,v){v=v===void 0?{}:v;var f=F.substring(0,F.length-r.name.length),z,q=(z=v)==null?void 0:z.signal;return T2e(function(Q){return new Promise(function(c,w){if(q==null?0:q.aborted){var L=new Mg(1,"Aborted");L.cause=q.reason;w(L)}else{var S={},p=owf(R,Q,f);p.sK("error",function(C){return void w(C)});
p.sK("metadata",function(C){S=C});
p.sK("data",function(C){var y=S;y=y===void 0?{}:y;c(new Nv(C,y))});
q&&q.addEventListener("abort",function(){p.cancel();var C=new Mg(1,"Aborted");C.cause=q.reason;w(C)})}})},R.Tw).call(R,r.Z(n,V)).then(function(Q){return Q.W0o})};
owf=function(R,F,n){var V=F.e2,r=F.getMetadata(),v=yoW(R,!0);R=UDN(R,r,v,n+V.getName());n=jWI(v,V.U,!1);F8E(n,r["X-Goog-Encode-Response-If-Executable"]==="base64");F=V.T(F.MN);v.send(R,"POST",F);return n};
yoW=function(R,F){F=R.T&&!F;return R.qb||F?new g.$v(new g.rH({Gt:R.qb,bB:F})):new g.$v};
UDN=function(R,F,n,V){F["Content-Type"]="application/json+protobuf";F["X-User-Agent"]="grpc-web-javascript/0.1";var r=F.Authorization;if(r&&H_E.has(r.split(" ")[0])||R.withCredentials)n.X=!0;if(R.Mj)V=g.Am(V,"$httpHeaders",F);else for(R=g.m(Object.keys(F)),r=R.next();!r.done;r=R.next())r=r.value,n.headers.set(r,F[r]);return V};
jWI=function(R,F,n){if(n){R.isActive();n=new hm(R);var V=new AoW(n)}return new Ze({xhr:R,yJ2:V},F)};
hdN=function(R,F){return F.reduce(function(n,V){return function(r){return V.intercept(r,n)}},R)};
T2e=function(R,F){return F.reduce(function(n,V){return function(r){return V.intercept(r,n)}},R)};
W8e=function(){this.T=new C09;this.U="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
mk=function(R,F){this.Vx=3;this.yw=R;this.defaultValue=F;this.YG="bool"};
gH=function(R,F){this.Vx=3;this.yw=R;this.defaultValue=F;this.YG="double"};
uNk=function(R){this.T=R};
B2f=function(R){this.T=R};
O_e=function(R){if(g.Re(g.P$(R)))return!1;if(R.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var F=new g.c_(R)}catch(n){return g.$$(mDj,function(V){return R.search(V)>0})!=null}return F.Z.match(gwE)?!0:g.$$(mDj,function(n){return R.match(n)!=null})!=null};
g.OB=function(R,F){return R.replace(IZk,function(n,V){try{var r=g.Om(F,V);if(r==null||r.toString()==null)return n;r=r.toString();if(r==""||!g.Re(g.P$(r)))return encodeURIComponent(r).replace(/%2C/g,",")}catch(v){}return n})};
K8R=function(R){this.EZ=Ll(R,500)};
DD_=function(R){this.EZ=Ll(R,500)};
IC=function(R){this.EZ=Ll(R)};
KD=function(R){this.EZ=Ll(R)};
i_k=function(R){var F=R.EZ;return Mm(R,F,F[fk]|0,IC,2,1)};
Y76=function(R){var F;if((F=R[xD_])!=null)R=F;else{if(ip!==ip)throw Error();R=R[xD_]=k2R(R.T)}return R};
G2N=function(R){var F;return(F=R[JoN])!=null?F:R[JoN]=new Map(i_k(Y76(R)).map(function(n){return[n.getName(),g.Pb(n,2)]}))};
DK=function(R,F){return Object.is(R,F)};
xx=function(R){var F=iM;iM=R;return F};
dDk=function(R){if(R.Wp!==void 0){var F=kx;kx=!0;try{for(var n=R.Wp;n!==void 0;n=n.N0){var V=n.lk;V.Fk||(R=void 0,V.Fk=!0,dDk(V),(R=V.Fv)==null||R.call(V,V))}}finally{kx=F}}};
MSV=function(){var R;return((R=iM)==null?void 0:R.LI)!==!1};
lZv=function(R){R&&(R.Ed=void 0,R.LF=!0);return xx(R)};
Ewk=function(R){R.LF=!1;var F=R.Ed,n=F!==void 0?F.A6:R.producers;if(n!==void 0){if(Yx(R)){do n=N2I(n);while(n!==void 0)}F!==void 0?F.A6=void 0:R.producers=void 0}};
$DN=function(R,F){var n=R.vL,V=Yx(R);n!==void 0?(F.N0=n.N0,n.N0=F):(F.N0=void 0,R.Wp=F);F.py=n;R.vL=F;if(!V)for(R=R.producers;R!==void 0;R=R.A6)$DN(R.NR,R)};
N2I=function(R){var F=R.NR,n=R.A6,V=R.N0,r=R.py;R.N0=void 0;R.py=void 0;V!==void 0?V.py=r:F.vL=r;if(r!==void 0)r.N0=V;else if(F.Wp=V,!Yx(F))for(R=F.producers;R!==void 0;)R=N2I(R);return n};
Yx=function(R){return R.Hl||R.Wp!==void 0};
edI=function(R,F){function n(){a:{if(kx)throw Error("");if(iM!==null){var r=iM.Ed;if(r===void 0||r.NR!==V){var v=void 0,f=iM.LF;if(f&&(v=r!==void 0?r.A6:iM.producers,v!==void 0&&v.NR===V)){iM.Ed=v;v.wIo=V.version;break a}var z=V.vL,q;if(!(q=z===void 0||z.lk!==iM)){if(f){b:{q=iM;f=q.Ed;if(f!==void 0){q=q.producers;do{if(q===z){f=!0;break b}if(q===f)break;q=q.A6}while(q!==void 0)}f=!1}f=!f}q=f}q&&(f=Yx(iM),v={NR:V,lk:iM,A6:v,py:z,wIo:V.version,N0:void 0},iM.Ed=v,r!==void 0?r.A6=v:iM.producers=v,f&&
$DN(V,v))}}}return V.value}
var V=Object.create(P0W);V.value=R;F!==void 0&&(V.Pu=F);n[b_J]=V;return[n,function(r){return Z_J(V,r)},
function(r){if(!MSV())throw Error();Z_J(V,r(V.value))}]};
Z_J=function(R,F){if(!MSV())throw Error();R.Pu(R.value,F)||(R.value=F,R.version++,Ryv++,dDk(R))};
Jm=function(R,F){F=F===void 0?"":F;var n={};R=edI(R,n.equals);n=n.debugName;var V;F=n&&F?n+"__"+F:(V=n!=null?n:F)!=null?V:"[signal]";R[0][b_J].debugName=F};
dH=function(R){g.TC.call(this);var F=this;this.W=this.U=0;this.BX=R!=null?R:{dK:function(r,v){return setTimeout(r,v)},
iq:function(r){clearTimeout(r)}};
var n,V;this.T=(V=(n=window.navigator)==null?void 0:n.onLine)!=null?V:!0;this.N=function(){return g.Y(function(r){return g.k(r,GG(F),0)})};
window.addEventListener("offline",this.N);window.addEventListener("online",this.N);this.W||this.pX()};
FF6=function(){var R=g.M1;dH.instance||(dH.instance=new dH(R));return dH.instance};
GG=function(R,F){return R.J?R.J:R.J=new Promise(function(n){var V,r,v,f;return g.Y(function(z){switch(z.T){case 1:return V=window.AbortController?new window.AbortController:void 0,v=(r=V)==null?void 0:r.signal,f=!1,g.zv(z,2,3),V&&(R.U=R.BX.dK(function(){V.abort()},F||2E4)),g.k(z,fetch("/generate_204",{method:"HEAD",
signal:v}),5);case 5:f=!0;case 3:g.wq(z);R.J=void 0;R.U&&(R.BX.iq(R.U),R.U=0);f!==R.T&&(R.T=f,R.T?R.dispatchEvent("networkstatus-online"):R.dispatchEvent("networkstatus-offline"));n(f);g.S7(z,0);break;case 2:g.cM(z),f=!1,z.wX(3)}})})};
nFI=function(R){this.EZ=Ll(R)};
lM=function(){this.data=[];this.T=-1};
VN_=function(R){R.T===-1&&(R.T=R.data.reduce(function(F,n,V){return F+(n?Math.pow(2,V):0)},0));
return R.T};
N1=function(R){R.setAttribute("role","link")};
$x=function(R,F){Array.isArray(F)&&(F=F.join(" "));F===""||F==void 0?(EB||(F={},EB=(F.atomic=!1,F.autocomplete="none",F.dropeffect="none",F.haspopup=!1,F.live="off",F.multiline=!1,F.multiselectable=!1,F.orientation="vertical",F.readonly=!1,F.relevant="additions text",F.required=!1,F.sort="none",F.busy=!1,F.disabled=!1,F.hidden=!1,F.invalid="false",F)),F=EB,"label"in F?R.setAttribute("aria-label",F.label):R.removeAttribute("aria-label")):R.setAttribute("aria-label",F)};
PD=function(R){R=R.getAttribute("aria-label");return R==null||R==void 0?"":String(R)};
g.bM=function(R,F,n){g.G.call(this);this.T=null;this.J=!1;this.Z=R;this.W=n;this.U=F||window;this.N=(0,g.k$)(this.yh,this)};
rHv=function(R){R=R.U;return R.requestAnimationFrame||R.webkitRequestAnimationFrame||R.mozRequestAnimationFrame||R.oRequestAnimationFrame||R.msRequestAnimationFrame||null};
vFV=function(R){R=R.U;return R.cancelAnimationFrame||R.cancelRequestAnimationFrame||R.webkitCancelRequestAnimationFrame||R.mozCancelRequestAnimationFrame||R.oCancelRequestAnimationFrame||R.msCancelRequestAnimationFrame||null};
g.ZK=function(R,F,n){g.G.call(this);this.T=R;this.uI=F||0;this.U=n;this.N=(0,g.k$)(this.Ge,this)};
g.eI=function(R,F){R.isActive()||R.start(F)};
g.Rp=function(R){R.stop();R.Ge()};
g.FK=function(R){R.isActive()&&g.Rp(R)};
g.nO=function(R,F,n){g.G.call(this);this.J=n!=null?R.bind(n):R;this.uI=F;this.N=null;this.T=!1;this.U=0;this.q5=null};
Vj=function(R){R.q5=g.JD(function(){R.q5=null;R.T&&!R.U&&(R.T=!1,Vj(R))},R.uI);
var F=R.N;R.N=null;R.J.apply(null,F)};
g.rs=function(R,F){this.T=R[g.HM.Symbol.iterator]();this.U=F};
fGI=function(R){return typeof R.className=="string"?R.className:R.getAttribute&&R.getAttribute("class")||""};
vt=function(R){return R.classList?R.classList:fGI(R).match(/\S+/g)||[]};
g.fO=function(R,F){typeof R.className=="string"?R.className=F:R.setAttribute&&R.setAttribute("class",F)};
g.t$=function(R,F){return R.classList?R.classList.contains(F):g.Rz(vt(R),F)};
g.z0=function(R,F){if(R.classList)R.classList.add(F);else if(!g.t$(R,F)){var n=fGI(R);g.fO(R,n+(n.length>0?" "+F:F))}};
g.qX=function(R,F){if(R.classList)Array.prototype.forEach.call(F,function(r){g.z0(R,r)});
else{var n={};Array.prototype.forEach.call(vt(R),function(r){n[r]=!0});
Array.prototype.forEach.call(F,function(r){n[r]=!0});
F="";for(var V in n)F+=F.length>0?" "+V:V;g.fO(R,F)}};
g.Qj=function(R,F){R.classList?R.classList.remove(F):g.t$(R,F)&&g.fO(R,Array.prototype.filter.call(vt(R),function(n){return n!=F}).join(" "))};
g.ct=function(R,F){R.classList?Array.prototype.forEach.call(F,function(n){g.Qj(R,n)}):g.fO(R,Array.prototype.filter.call(vt(R),function(n){return!g.Rz(F,n)}).join(" "))};
g.ws=function(R,F,n){n?g.z0(R,F):g.Qj(R,F)};
tNf=function(R,F){var n=!g.t$(R,F);g.ws(R,F,n)};
g.SC=function(){g.TC.call(this);this.T=0;this.endTime=this.startTime=null};
zyN=function(R,F){Array.isArray(F)||(F=[F]);F=F.map(function(n){return typeof n==="string"?n:n.property+" "+n.duration+"s "+n.timing+" "+n.delay+"s"});
g.fY(R,"transition",F.join(","))};
LO=function(R,F,n,V,r){g.SC.call(this);this.U=R;this.W=F;this.Z=n;this.J=V;this.X=Array.isArray(r)?r:[r]};
qHN=function(R,F,n,V){return new LO(R,F,{opacity:n},{opacity:V},{property:"opacity",duration:F,timing:"ease-in",delay:0})};
cHf=function(R){R=V1(R);if(R=="")return null;var F=String(R.slice(0,4)).toLowerCase();if(("url("<F?-1:"url("==F?0:1)==0)return!R.endsWith(")")||(R?R.split("(").length-1:0)>1||R&&R.split(")"),null;if(R.indexOf("(")>0){if(/"|'/.test(R))return null;F=/([\-\w]+)\(/g;for(var n;n=F.exec(R);)if(!(n[1].toLowerCase()in QNJ))return null}return R};
sA=function(R,F){R=g.HM[R];return R&&R.prototype?(F=Object.getOwnPropertyDescriptor(R.prototype,F))&&F.get||null:null};
wvj=function(R){var F=g.HM.CSSStyleDeclaration;return F&&F.prototype&&F.prototype[R]||null};
SH6=function(R,F,n,V){if(R)return R.apply(F,V);if(g.pO&&document.documentMode<10){if(!F[n].call)throw Error("IE Clobbering detected");}else if(typeof F[n]!="function")throw Error("Clobbering detected");return F[n].apply(F,V)};
AHI=function(R){if(!R)return"";var F=document.createElement("div").style;LF6(R).forEach(function(n){var V=g.WI&&n in sN_?n:n.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");eW(V,"--")||eW(V,"var")||(n=SH6(pv6,R,R.getPropertyValue?"getPropertyValue":"getAttribute",[n])||"",n=cHf(n),n!=null&&SH6(XvV,F,F.setProperty?"setProperty":"setAttribute",[V,n]))});
return F.cssText||""};
LF6=function(R){g.gq(R)?R=g.f4(R):(R=g.Ho(R),g.VK(R,"cssText"));return R};
g.A$=function(R){var F,n=F=0,V=!1;R=R.split(aGN);for(var r=0;r<R.length;r++){var v=R[r];g.XK.test(v)?(F++,n++):CQJ.test(v)?V=!0:TDN.test(v)?n++:oF_.test(v)&&(V=!0)}F=n==0?V?1:0:F/n>.4?-1:1;return(F==0?null:F)==-1?"rtl":"ltr"};
g.op=function(R){if(R instanceof ap||R instanceof CO||R instanceof T0)return R;if(typeof R.next=="function")return new ap(function(){return R});
if(typeof R[Symbol.iterator]=="function")return new ap(function(){return R[Symbol.iterator]()});
if(typeof R.YC=="function")return new ap(function(){return R.YC()});
throw Error("Not an iterator or iterable.");};
ap=function(R){this.U=R};
CO=function(R){this.U=R};
T0=function(R){ap.call(this,function(){return R});
this.N=R};
yj=function(R,F,n,V,r,v,f,z){this.T=R;this.X=F;this.N=n;this.W=V;this.J=r;this.Z=v;this.U=f;this.V=z};
UA=function(R,F){if(F==0)return R.T;if(F==1)return R.U;var n=t9(R.T,R.N,F),V=t9(R.N,R.J,F);R=t9(R.J,R.U,F);n=t9(n,V,F);V=t9(V,R,F);return t9(n,V,F)};
yHe=function(R,F){if(F==0)return R.X;if(F==1)return R.V;var n=t9(R.X,R.W,F),V=t9(R.W,R.Z,F);R=t9(R.Z,R.V,F);n=t9(n,V,F);V=t9(V,R,F);return t9(n,V,F)};
UGJ=function(R,F){var n=(F-R.T)/(R.U-R.T);if(n<=0)return 0;if(n>=1)return 1;for(var V=0,r=1,v=0,f=0;f<8;f++){v=UA(R,n);var z=(UA(R,n+1E-6)-v)/1E-6;if(Math.abs(v-F)<1E-6)return n;if(Math.abs(z)<1E-6)break;else v<F?V=n:r=n,n-=(v-F)/z}for(f=0;Math.abs(v-F)>1E-6&&f<8;f++)v<F?(V=n,n=(n+r)/2):(r=n,n=(n+V)/2),v=UA(R,n);return n};
jC=function(R,F){this.start=R<F?R:F;this.end=R<F?F:R};
Ht=function(R){return(R=R.exec(g.ft()))?R[1]:""};
h$=function(R){return g.v$(jNf,R)>=0};
g.Wt=function(R){g.G.call(this);this.Z=1;this.N=[];this.J=0;this.T=[];this.U={};this.X=!!R};
HeE=function(R,F,n){g.mt(function(){R.apply(F,n)})};
g.ua=function(R){this.pS=R};
Bt=function(R){this.pS=R};
hyv=function(R){this.data=R};
WFI=function(R){return R===void 0||R instanceof hyv?R:new hyv(R)};
m9=function(R){this.pS=R};
g.uER=function(R){var F=R.creation;R=R.expiration;return!!R&&R<g.J7()||!!F&&F>g.J7()};
g.gs=function(R){this.pS=R};
BDf=function(){};
OA=function(){};
Ip=function(R){this.T=R;this.U=null};
KO=function(R){if(R.T==null)throw Error("Storage mechanism: Storage unavailable");R.isAvailable()||J_(Error("Storage mechanism: Storage unavailable"))};
DA=function(){var R=null;try{R=g.HM.localStorage||null}catch(F){}Ip.call(this,R)};
mG_=function(){var R=null;try{R=g.HM.sessionStorage||null}catch(F){}Ip.call(this,R)};
ia=function(R,F){this.U=R;this.T=F+"::"};
g.xe=function(R){var F=new DA;return F.isAvailable()?R?new ia(F,R):F:null};
ke=function(R,F){this.T=R;this.U=F};
Ye=function(R){this.T=[];if(R)a:{if(R instanceof Ye){var F=R.V8();R=R.GU();if(this.T.length<=0){for(var n=this.T,V=0;V<F.length;V++)n.push(new ke(F[V],R[V]));break a}}else F=g.Ho(R),R=jW(R);for(n=0;n<F.length;n++)this.X6(F[n],R[n])}};
J$=function(R){return R.T[0]&&R.T[0].T};
G0=function(){Ye.apply(this,arguments)};
ds=function(){};
gFN=function(){var R=Error();R.name="SecurityError";throw R;};
Oe6=function(){return{get opener(){return null},get closed(){return!0},get location(){gFN()},get document(){gFN()},postMessage:function(){},
close:function(){},
focus:function(){}}};
IGR=function(R){var F,n,V=R.length,r=0;for(F=0;F<V;F++){var v=R.charCodeAt(F);if((v&64512)===55296&&F+1<V){var f=R.charCodeAt(F+1);(f&64512)===56320&&(v=65536+(v-55296<<10)+(f-56320),F++)}r+=v<128?1:v<2048?2:v<65536?3:4}var z=new MX.FJ(r);for(F=n=0;n<r;F++)v=R.charCodeAt(F),(v&64512)===55296&&F+1<V&&(f=R.charCodeAt(F+1),(f&64512)===56320&&(v=65536+(v-55296<<10)+(f-56320),F++)),v<128?z[n++]=v:(v<2048?z[n++]=192|v>>>6:(v<65536?z[n++]=224|v>>>12:(z[n++]=240|v>>>18,z[n++]=128|v>>>12&63),z[n++]=128|v>>>
6&63),z[n++]=128|v&63);return z};
la=function(R){for(var F=R.length;--F>=0;)R[F]=0};
NX=function(R,F,n,V,r){this.lB=R;this.je=F;this.oy=n;this.r3=V;this.dCG=r;this.s4=R&&R.length};
EA=function(R,F){this.qe=R;this.nR=0;this.u7=F};
$e=function(R,F){R.Am[R.pending++]=F&255;R.Am[R.pending++]=F>>>8&255};
Pt=function(R,F,n){R.bI>16-n?(R.BW|=F<<R.bI&65535,$e(R,R.BW),R.BW=F>>16-R.bI,R.bI+=n-16):(R.BW|=F<<R.bI&65535,R.bI+=n)};
ba=function(R,F,n){Pt(R,n[F*2],n[F*2+1])};
KFe=function(R,F){var n=0;do n|=R&1,R>>>=1,n<<=1;while(--F>0);return n>>>1};
DGI=function(R,F,n){var V=Array(16),r=0,v;for(v=1;v<=15;v++)V[v]=r=r+n[v-1]<<1;for(n=0;n<=F;n++)r=R[n*2+1],r!==0&&(R[n*2]=KFe(V[r]++,r))};
ie6=function(R){var F;for(F=0;F<286;F++)R.p6[F*2]=0;for(F=0;F<30;F++)R.QM[F*2]=0;for(F=0;F<19;F++)R.VB[F*2]=0;R.p6[512]=1;R.qF=R.CG=0;R.ES=R.matches=0};
xGf=function(R){R.bI>8?$e(R,R.BW):R.bI>0&&(R.Am[R.pending++]=R.BW);R.BW=0;R.bI=0};
k86=function(R,F,n){xGf(R);$e(R,n);$e(R,~n);MX.R_(R.Am,R.window,F,n,R.pending);R.pending+=n};
YH6=function(R,F,n,V){var r=F*2,v=n*2;return R[r]<R[v]||R[r]===R[v]&&V[F]<=V[n]};
ZA=function(R,F,n){for(var V=R.Z7[n],r=n<<1;r<=R.jw;){r<R.jw&&YH6(F,R.Z7[r+1],R.Z7[r],R.depth)&&r++;if(YH6(F,V,R.Z7[r],R.depth))break;R.Z7[n]=R.Z7[r];n=r;r<<=1}R.Z7[n]=V};
JHe=function(R,F,n){var V=0;if(R.ES!==0){do{var r=R.Am[R.tA+V*2]<<8|R.Am[R.tA+V*2+1];var v=R.Am[R.n0+V];V++;if(r===0)ba(R,v,F);else{var f=eC[v];ba(R,f+256+1,F);var z=RH[f];z!==0&&(v-=F4[f],Pt(R,v,z));r--;f=r<256?nA[r]:nA[256+(r>>>7)];ba(R,f,n);z=Vi[f];z!==0&&(r-=rB[f],Pt(R,r,z))}}while(V<R.ES)}ba(R,256,F)};
vU=function(R,F){var n=F.qe,V=F.u7.lB,r=F.u7.s4,v=F.u7.r3,f,z=-1;R.jw=0;R.Hu=573;for(f=0;f<v;f++)n[f*2]!==0?(R.Z7[++R.jw]=z=f,R.depth[f]=0):n[f*2+1]=0;for(;R.jw<2;){var q=R.Z7[++R.jw]=z<2?++z:0;n[q*2]=1;R.depth[q]=0;R.qF--;r&&(R.CG-=V[q*2+1])}F.nR=z;for(f=R.jw>>1;f>=1;f--)ZA(R,n,f);q=v;do f=R.Z7[1],R.Z7[1]=R.Z7[R.jw--],ZA(R,n,1),V=R.Z7[1],R.Z7[--R.Hu]=f,R.Z7[--R.Hu]=V,n[q*2]=n[f*2]+n[V*2],R.depth[q]=(R.depth[f]>=R.depth[V]?R.depth[f]:R.depth[V])+1,n[f*2+1]=n[V*2+1]=q,R.Z7[1]=q++,ZA(R,n,1);while(R.jw>=
2);R.Z7[--R.Hu]=R.Z7[1];f=F.qe;q=F.nR;V=F.u7.lB;r=F.u7.s4;v=F.u7.je;var Q=F.u7.oy,c=F.u7.dCG,w,L=0;for(w=0;w<=15;w++)R.Re[w]=0;f[R.Z7[R.Hu]*2+1]=0;for(F=R.Hu+1;F<573;F++){var S=R.Z7[F];w=f[f[S*2+1]*2+1]+1;w>c&&(w=c,L++);f[S*2+1]=w;if(!(S>q)){R.Re[w]++;var p=0;S>=Q&&(p=v[S-Q]);var C=f[S*2];R.qF+=C*(w+p);r&&(R.CG+=C*(V[S*2+1]+p))}}if(L!==0){do{for(w=c-1;R.Re[w]===0;)w--;R.Re[w]--;R.Re[w+1]+=2;R.Re[c]--;L-=2}while(L>0);for(w=c;w!==0;w--)for(S=R.Re[w];S!==0;)V=R.Z7[--F],V>q||(f[V*2+1]!==w&&(R.qF+=(w-
f[V*2+1])*f[V*2],f[V*2+1]=w),S--)}DGI(n,z,R.Re)};
G8j=function(R,F,n){var V,r=-1,v=F[1],f=0,z=7,q=4;v===0&&(z=138,q=3);F[(n+1)*2+1]=65535;for(V=0;V<=n;V++){var Q=v;v=F[(V+1)*2+1];++f<z&&Q===v||(f<q?R.VB[Q*2]+=f:Q!==0?(Q!==r&&R.VB[Q*2]++,R.VB[32]++):f<=10?R.VB[34]++:R.VB[36]++,f=0,r=Q,v===0?(z=138,q=3):Q===v?(z=6,q=3):(z=7,q=4))}};
dGW=function(R,F,n){var V,r=-1,v=F[1],f=0,z=7,q=4;v===0&&(z=138,q=3);for(V=0;V<=n;V++){var Q=v;v=F[(V+1)*2+1];if(!(++f<z&&Q===v)){if(f<q){do ba(R,Q,R.VB);while(--f!==0)}else Q!==0?(Q!==r&&(ba(R,Q,R.VB),f--),ba(R,16,R.VB),Pt(R,f-3,2)):f<=10?(ba(R,17,R.VB),Pt(R,f-3,3)):(ba(R,18,R.VB),Pt(R,f-11,7));f=0;r=Q;v===0?(z=138,q=3):Q===v?(z=6,q=3):(z=7,q=4)}}};
MN6=function(R){var F=4093624447,n;for(n=0;n<=31;n++,F>>>=1)if(F&1&&R.p6[n*2]!==0)return 0;if(R.p6[18]!==0||R.p6[20]!==0||R.p6[26]!==0)return 1;for(n=32;n<256;n++)if(R.p6[n*2]!==0)return 1;return 0};
fA=function(R,F,n){R.Am[R.tA+R.ES*2]=F>>>8&255;R.Am[R.tA+R.ES*2+1]=F&255;R.Am[R.n0+R.ES]=n&255;R.ES++;F===0?R.p6[n*2]++:(R.matches++,F--,R.p6[(eC[n]+256+1)*2]++,R.QM[(F<256?nA[F]:nA[256+(F>>>7)])*2]++);return R.ES===R.JH-1};
zw=function(R,F){R.msg=tt[F];return F};
qq=function(R){for(var F=R.length;--F>=0;)R[F]=0};
Qi=function(R){var F=R.state,n=F.pending;n>R.Gk&&(n=R.Gk);n!==0&&(MX.R_(R.output,F.Am,F.il,n,R.CR),R.CR+=n,F.il+=n,R.PK+=n,R.Gk-=n,F.pending-=n,F.pending===0&&(F.il=0))};
Sw=function(R,F){var n=R.qd>=0?R.qd:-1,V=R.sN-R.qd,r=0;if(R.level>0){R.Dh.Nt===2&&(R.Dh.Nt=MN6(R));vU(R,R.Kb);vU(R,R.qM);G8j(R,R.p6,R.Kb.nR);G8j(R,R.QM,R.qM.nR);vU(R,R.u9);for(r=18;r>=3&&R.VB[lGR[r]*2+1]===0;r--);R.qF+=3*(r+1)+5+5+4;var v=R.qF+3+7>>>3;var f=R.CG+3+7>>>3;f<=v&&(v=f)}else v=f=V+5;if(V+4<=v&&n!==-1)Pt(R,F?1:0,3),k86(R,n,V);else if(R.strategy===4||f===v)Pt(R,2+(F?1:0),3),JHe(R,cU,wB);else{Pt(R,4+(F?1:0),3);n=R.Kb.nR+1;V=R.qM.nR+1;r+=1;Pt(R,n-257,5);Pt(R,V-1,5);Pt(R,r-4,4);for(v=0;v<r;v++)Pt(R,
R.VB[lGR[v]*2+1],3);dGW(R,R.p6,n-1);dGW(R,R.QM,V-1);JHe(R,R.p6,R.QM)}ie6(R);F&&xGf(R);R.qd=R.sN;Qi(R.Dh)};
LA=function(R,F){R.Am[R.pending++]=F};
s3=function(R,F){R.Am[R.pending++]=F>>>8&255;R.Am[R.pending++]=F&255};
NDI=function(R,F){var n=R.B$,V=R.sN,r=R.Jx,v=R.hv,f=R.sN>R.WW-262?R.sN-(R.WW-262):0,z=R.window,q=R.Wk,Q=R.pQ,c=R.sN+258,w=z[V+r-1],L=z[V+r];R.Jx>=R.LA&&(n>>=2);v>R.Rn&&(v=R.Rn);do{var S=F;if(z[S+r]===L&&z[S+r-1]===w&&z[S]===z[V]&&z[++S]===z[V+1]){V+=2;for(S++;z[++V]===z[++S]&&z[++V]===z[++S]&&z[++V]===z[++S]&&z[++V]===z[++S]&&z[++V]===z[++S]&&z[++V]===z[++S]&&z[++V]===z[++S]&&z[++V]===z[++S]&&V<c;);S=258-(c-V);V=c-258;if(S>r){R.zQ=F;r=S;if(S>=v)break;w=z[V+r-1];L=z[V+r]}}}while((F=Q[F&q])>f&&--n!==
0);return r<=R.Rn?r:R.Rn};
At=function(R){var F=R.WW,n;do{var V=R.vJ-R.Rn-R.sN;if(R.sN>=F+(F-262)){MX.R_(R.window,R.window,F,F,0);R.zQ-=F;R.sN-=F;R.qd-=F;var r=n=R.kW;do{var v=R.head[--r];R.head[r]=v>=F?v-F:0}while(--n);r=n=F;do v=R.pQ[--r],R.pQ[r]=v>=F?v-F:0;while(--n);V+=F}if(R.Dh.K6===0)break;r=R.Dh;n=R.window;v=R.sN+R.Rn;var f=r.K6;f>V&&(f=V);f===0?n=0:(r.K6-=f,MX.R_(n,r.input,r.Q9,f,v),r.state.wrap===1?r.Ww=pA(r.Ww,n,f,v):r.state.wrap===2&&(r.Ww=X4(r.Ww,n,f,v)),r.Q9+=f,r.AT+=f,n=f);R.Rn+=n;if(R.Rn+R.X6>=3)for(V=R.sN-R.X6,
R.VS=R.window[V],R.VS=(R.VS<<R.oo^R.window[V+1])&R.cO;R.X6&&!(R.VS=(R.VS<<R.oo^R.window[V+3-1])&R.cO,R.pQ[V&R.Wk]=R.head[R.VS],R.head[R.VS]=V,V++,R.X6--,R.Rn+R.X6<3););}while(R.Rn<262&&R.Dh.K6!==0)};
aH=function(R,F){for(var n;;){if(R.Rn<262){At(R);if(R.Rn<262&&F===0)return 1;if(R.Rn===0)break}n=0;R.Rn>=3&&(R.VS=(R.VS<<R.oo^R.window[R.sN+3-1])&R.cO,n=R.pQ[R.sN&R.Wk]=R.head[R.VS],R.head[R.VS]=R.sN);n!==0&&R.sN-n<=R.WW-262&&(R.NL=NDI(R,n));if(R.NL>=3)if(n=fA(R,R.sN-R.zQ,R.NL-3),R.Rn-=R.NL,R.NL<=R.hf&&R.Rn>=3){R.NL--;do R.sN++,R.VS=(R.VS<<R.oo^R.window[R.sN+3-1])&R.cO,R.pQ[R.sN&R.Wk]=R.head[R.VS],R.head[R.VS]=R.sN;while(--R.NL!==0);R.sN++}else R.sN+=R.NL,R.NL=0,R.VS=R.window[R.sN],R.VS=(R.VS<<R.oo^
R.window[R.sN+1])&R.cO;else n=fA(R,0,R.window[R.sN]),R.Rn--,R.sN++;if(n&&(Sw(R,!1),R.Dh.Gk===0))return 1}R.X6=R.sN<2?R.sN:2;return F===4?(Sw(R,!0),R.Dh.Gk===0?3:4):R.ES&&(Sw(R,!1),R.Dh.Gk===0)?1:2};
CA=function(R,F){for(var n,V;;){if(R.Rn<262){At(R);if(R.Rn<262&&F===0)return 1;if(R.Rn===0)break}n=0;R.Rn>=3&&(R.VS=(R.VS<<R.oo^R.window[R.sN+3-1])&R.cO,n=R.pQ[R.sN&R.Wk]=R.head[R.VS],R.head[R.VS]=R.sN);R.Jx=R.NL;R.oA=R.zQ;R.NL=2;n!==0&&R.Jx<R.hf&&R.sN-n<=R.WW-262&&(R.NL=NDI(R,n),R.NL<=5&&(R.strategy===1||R.NL===3&&R.sN-R.zQ>4096)&&(R.NL=2));if(R.Jx>=3&&R.NL<=R.Jx){V=R.sN+R.Rn-3;n=fA(R,R.sN-1-R.oA,R.Jx-3);R.Rn-=R.Jx-1;R.Jx-=2;do++R.sN<=V&&(R.VS=(R.VS<<R.oo^R.window[R.sN+3-1])&R.cO,R.pQ[R.sN&R.Wk]=
R.head[R.VS],R.head[R.VS]=R.sN);while(--R.Jx!==0);R.aN=0;R.NL=2;R.sN++;if(n&&(Sw(R,!1),R.Dh.Gk===0))return 1}else if(R.aN){if((n=fA(R,0,R.window[R.sN-1]))&&Sw(R,!1),R.sN++,R.Rn--,R.Dh.Gk===0)return 1}else R.aN=1,R.sN++,R.Rn--}R.aN&&(fA(R,0,R.window[R.sN-1]),R.aN=0);R.X6=R.sN<2?R.sN:2;return F===4?(Sw(R,!0),R.Dh.Gk===0?3:4):R.ES&&(Sw(R,!1),R.Dh.Gk===0)?1:2};
EFk=function(R,F){for(var n,V,r,v=R.window;;){if(R.Rn<=258){At(R);if(R.Rn<=258&&F===0)return 1;if(R.Rn===0)break}R.NL=0;if(R.Rn>=3&&R.sN>0&&(V=R.sN-1,n=v[V],n===v[++V]&&n===v[++V]&&n===v[++V])){for(r=R.sN+258;n===v[++V]&&n===v[++V]&&n===v[++V]&&n===v[++V]&&n===v[++V]&&n===v[++V]&&n===v[++V]&&n===v[++V]&&V<r;);R.NL=258-(r-V);R.NL>R.Rn&&(R.NL=R.Rn)}R.NL>=3?(n=fA(R,1,R.NL-3),R.Rn-=R.NL,R.sN+=R.NL,R.NL=0):(n=fA(R,0,R.window[R.sN]),R.Rn--,R.sN++);if(n&&(Sw(R,!1),R.Dh.Gk===0))return 1}R.X6=0;return F===
4?(Sw(R,!0),R.Dh.Gk===0?3:4):R.ES&&(Sw(R,!1),R.Dh.Gk===0)?1:2};
$GN=function(R,F){for(var n;;){if(R.Rn===0&&(At(R),R.Rn===0)){if(F===0)return 1;break}R.NL=0;n=fA(R,0,R.window[R.sN]);R.Rn--;R.sN++;if(n&&(Sw(R,!1),R.Dh.Gk===0))return 1}R.X6=0;return F===4?(Sw(R,!0),R.Dh.Gk===0?3:4):R.ES&&(Sw(R,!1),R.Dh.Gk===0)?1:2};
jw=function(R,F,n,V,r){this.jGG=R;this.DC2=F;this.pI5=n;this.Itq=V;this.func=r};
PQe=function(){this.Dh=null;this.status=0;this.Am=null;this.wrap=this.pending=this.il=this.ND=0;this.cw=null;this.s8=0;this.method=8;this.lQ=-1;this.Wk=this.d1=this.WW=0;this.window=null;this.vJ=0;this.head=this.pQ=null;this.hv=this.LA=this.strategy=this.level=this.hf=this.B$=this.Jx=this.Rn=this.zQ=this.sN=this.aN=this.oA=this.NL=this.qd=this.oo=this.cO=this.VD=this.kW=this.VS=0;this.p6=new MX.Yo(1146);this.QM=new MX.Yo(122);this.VB=new MX.Yo(78);qq(this.p6);qq(this.QM);qq(this.VB);this.u9=this.qM=
this.Kb=null;this.Re=new MX.Yo(16);this.Z7=new MX.Yo(573);qq(this.Z7);this.Hu=this.jw=0;this.depth=new MX.Yo(573);qq(this.depth);this.bI=this.BW=this.X6=this.matches=this.CG=this.qF=this.tA=this.ES=this.JH=this.n0=0};
bee=function(R,F){if(!R||!R.state||F>5||F<0)return R?zw(R,-2):-2;var n=R.state;if(!R.output||!R.input&&R.K6!==0||n.status===666&&F!==4)return zw(R,R.Gk===0?-5:-2);n.Dh=R;var V=n.lQ;n.lQ=F;if(n.status===42)if(n.wrap===2)R.Ww=0,LA(n,31),LA(n,139),LA(n,8),n.cw?(LA(n,(n.cw.text?1:0)+(n.cw.e0?2:0)+(n.cw.extra?4:0)+(n.cw.name?8:0)+(n.cw.comment?16:0)),LA(n,n.cw.time&255),LA(n,n.cw.time>>8&255),LA(n,n.cw.time>>16&255),LA(n,n.cw.time>>24&255),LA(n,n.level===9?2:n.strategy>=2||n.level<2?4:0),LA(n,n.cw.os&
255),n.cw.extra&&n.cw.extra.length&&(LA(n,n.cw.extra.length&255),LA(n,n.cw.extra.length>>8&255)),n.cw.e0&&(R.Ww=X4(R.Ww,n.Am,n.pending,0)),n.s8=0,n.status=69):(LA(n,0),LA(n,0),LA(n,0),LA(n,0),LA(n,0),LA(n,n.level===9?2:n.strategy>=2||n.level<2?4:0),LA(n,3),n.status=113);else{var r=8+(n.d1-8<<4)<<8;r|=(n.strategy>=2||n.level<2?0:n.level<6?1:n.level===6?2:3)<<6;n.sN!==0&&(r|=32);n.status=113;s3(n,r+(31-r%31));n.sN!==0&&(s3(n,R.Ww>>>16),s3(n,R.Ww&65535));R.Ww=1}if(n.status===69)if(n.cw.extra){for(r=
n.pending;n.s8<(n.cw.extra.length&65535)&&(n.pending!==n.ND||(n.cw.e0&&n.pending>r&&(R.Ww=X4(R.Ww,n.Am,n.pending-r,r)),Qi(R),r=n.pending,n.pending!==n.ND));)LA(n,n.cw.extra[n.s8]&255),n.s8++;n.cw.e0&&n.pending>r&&(R.Ww=X4(R.Ww,n.Am,n.pending-r,r));n.s8===n.cw.extra.length&&(n.s8=0,n.status=73)}else n.status=73;if(n.status===73)if(n.cw.name){r=n.pending;do{if(n.pending===n.ND&&(n.cw.e0&&n.pending>r&&(R.Ww=X4(R.Ww,n.Am,n.pending-r,r)),Qi(R),r=n.pending,n.pending===n.ND)){var v=1;break}v=n.s8<n.cw.name.length?
n.cw.name.charCodeAt(n.s8++)&255:0;LA(n,v)}while(v!==0);n.cw.e0&&n.pending>r&&(R.Ww=X4(R.Ww,n.Am,n.pending-r,r));v===0&&(n.s8=0,n.status=91)}else n.status=91;if(n.status===91)if(n.cw.comment){r=n.pending;do{if(n.pending===n.ND&&(n.cw.e0&&n.pending>r&&(R.Ww=X4(R.Ww,n.Am,n.pending-r,r)),Qi(R),r=n.pending,n.pending===n.ND)){v=1;break}v=n.s8<n.cw.comment.length?n.cw.comment.charCodeAt(n.s8++)&255:0;LA(n,v)}while(v!==0);n.cw.e0&&n.pending>r&&(R.Ww=X4(R.Ww,n.Am,n.pending-r,r));v===0&&(n.status=103)}else n.status=
103;n.status===103&&(n.cw.e0?(n.pending+2>n.ND&&Qi(R),n.pending+2<=n.ND&&(LA(n,R.Ww&255),LA(n,R.Ww>>8&255),R.Ww=0,n.status=113)):n.status=113);if(n.pending!==0){if(Qi(R),R.Gk===0)return n.lQ=-1,0}else if(R.K6===0&&(F<<1)-(F>4?9:0)<=(V<<1)-(V>4?9:0)&&F!==4)return zw(R,-5);if(n.status===666&&R.K6!==0)return zw(R,-5);if(R.K6!==0||n.Rn!==0||F!==0&&n.status!==666){V=n.strategy===2?$GN(n,F):n.strategy===3?EFk(n,F):HU[n.level].func(n,F);if(V===3||V===4)n.status=666;if(V===1||V===3)return R.Gk===0&&(n.lQ=
-1),0;if(V===2&&(F===1?(Pt(n,2,3),ba(n,256,cU),n.bI===16?($e(n,n.BW),n.BW=0,n.bI=0):n.bI>=8&&(n.Am[n.pending++]=n.BW&255,n.BW>>=8,n.bI-=8)):F!==5&&(Pt(n,0,3),k86(n,0,0),F===3&&(qq(n.head),n.Rn===0&&(n.sN=0,n.qd=0,n.X6=0))),Qi(R),R.Gk===0))return n.lQ=-1,0}if(F!==4)return 0;if(n.wrap<=0)return 1;n.wrap===2?(LA(n,R.Ww&255),LA(n,R.Ww>>8&255),LA(n,R.Ww>>16&255),LA(n,R.Ww>>24&255),LA(n,R.AT&255),LA(n,R.AT>>8&255),LA(n,R.AT>>16&255),LA(n,R.AT>>24&255)):(s3(n,R.Ww>>>16),s3(n,R.Ww&65535));Qi(R);n.wrap>0&&
(n.wrap=-n.wrap);return n.pending!==0?0:1};
ht=function(R){if(!(this instanceof ht))return new ht(R);R=this.options=MX.assign({level:-1,method:8,chunkSize:16384,FL:15,LQ5:8,strategy:0,to:""},R||{});R.raw&&R.FL>0?R.FL=-R.FL:R.sG1&&R.FL>0&&R.FL<16&&(R.FL+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Dh=new ZeR;this.Dh.Gk=0;var F=this.Dh;var n=R.level,V=R.method,r=R.FL,v=R.LQ5,f=R.strategy;if(F){var z=1;n===-1&&(n=6);r<0?(z=0,r=-r):r>15&&(z=2,r-=16);if(v<1||v>9||V!==8||r<8||r>15||n<0||n>9||f<0||f>4)F=zw(F,-2);else{r===8&&(r=9);
var q=new PQe;F.state=q;q.Dh=F;q.wrap=z;q.cw=null;q.d1=r;q.WW=1<<q.d1;q.Wk=q.WW-1;q.VD=v+7;q.kW=1<<q.VD;q.cO=q.kW-1;q.oo=~~((q.VD+3-1)/3);q.window=new MX.FJ(q.WW*2);q.head=new MX.Yo(q.kW);q.pQ=new MX.Yo(q.WW);q.JH=1<<v+6;q.ND=q.JH*4;q.Am=new MX.FJ(q.ND);q.tA=1*q.JH;q.n0=3*q.JH;q.level=n;q.strategy=f;q.method=V;if(F&&F.state){F.AT=F.PK=0;F.Nt=2;n=F.state;n.pending=0;n.il=0;n.wrap<0&&(n.wrap=-n.wrap);n.status=n.wrap?42:113;F.Ww=n.wrap===2?0:1;n.lQ=0;if(!eyf){V=Array(16);for(v=f=0;v<28;v++)for(F4[v]=
f,r=0;r<1<<RH[v];r++)eC[f++]=v;eC[f-1]=v;for(v=f=0;v<16;v++)for(rB[v]=f,r=0;r<1<<Vi[v];r++)nA[f++]=v;for(f>>=7;v<30;v++)for(rB[v]=f<<7,r=0;r<1<<Vi[v]-7;r++)nA[256+f++]=v;for(r=0;r<=15;r++)V[r]=0;for(r=0;r<=143;)cU[r*2+1]=8,r++,V[8]++;for(;r<=255;)cU[r*2+1]=9,r++,V[9]++;for(;r<=279;)cU[r*2+1]=7,r++,V[7]++;for(;r<=287;)cU[r*2+1]=8,r++,V[8]++;DGI(cU,287,V);for(r=0;r<30;r++)wB[r*2+1]=5,wB[r*2]=KFe(r,5);Rv_=new NX(cU,RH,257,286,15);Ftj=new NX(wB,Vi,0,30,15);nvN=new NX([],VGj,0,19,7);eyf=!0}n.Kb=new EA(n.p6,
Rv_);n.qM=new EA(n.QM,Ftj);n.u9=new EA(n.VB,nvN);n.BW=0;n.bI=0;ie6(n);n=0}else n=zw(F,-2);n===0&&(F=F.state,F.vJ=2*F.WW,qq(F.head),F.hf=HU[F.level].DC2,F.LA=HU[F.level].jGG,F.hv=HU[F.level].pI5,F.B$=HU[F.level].Itq,F.sN=0,F.qd=0,F.Rn=0,F.X6=0,F.NL=F.Jx=2,F.aN=0,F.VS=0);F=n}}else F=-2;if(F!==0)throw Error(tt[F]);R.header&&(F=this.Dh)&&F.state&&F.state.wrap===2&&(F.state.cw=R.header);if(R.zA){var Q;typeof R.zA==="string"?Q=IGR(R.zA):rD_.call(R.zA)==="[object ArrayBuffer]"?Q=new Uint8Array(R.zA):Q=R.zA;
R=this.Dh;v=Q;f=v.length;if(R&&R.state)if(Q=R.state,F=Q.wrap,F===2||F===1&&Q.status!==42||Q.Rn)F=-2;else{F===1&&(R.Ww=pA(R.Ww,v,f,0));Q.wrap=0;f>=Q.WW&&(F===0&&(qq(Q.head),Q.sN=0,Q.qd=0,Q.X6=0),n=new MX.FJ(Q.WW),MX.R_(n,v,f-Q.WW,Q.WW,0),v=n,f=Q.WW);n=R.K6;V=R.Q9;r=R.input;R.K6=f;R.Q9=0;R.input=v;for(At(Q);Q.Rn>=3;){v=Q.sN;f=Q.Rn-2;do Q.VS=(Q.VS<<Q.oo^Q.window[v+3-1])&Q.cO,Q.pQ[v&Q.Wk]=Q.head[Q.VS],Q.head[Q.VS]=v,v++;while(--f);Q.sN=v;Q.Rn=2;At(Q)}Q.sN+=Q.Rn;Q.qd=Q.sN;Q.X6=Q.Rn;Q.Rn=0;Q.NL=Q.Jx=2;
Q.aN=0;R.Q9=V;R.input=r;R.K6=n;Q.wrap=F;F=0}else F=-2;if(F!==0)throw Error(tt[F]);this.R7Q=!0}};
vvv=function(R,F){F=F||{};F.sG1=!0;F=new ht(F);F.push(R,!0);if(F.err)throw F.msg||tt[F.err];return F.result};
fBE=function(){var R=g.Cq.apply(0,arguments);return R.length===0?function(F){return F}:R.length===1?R[0]:R.reduce(function(F,n){return function(){return F(n.apply(null,g.I(g.Cq.apply(0,arguments))))}})};
tGW=function(){var R=g.Cq.apply(0,arguments);return function(F){return function(n,V){function r(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
n=F(n,V);var v={getState:n.getState,dispatch:function(f){return r.apply(null,[f].concat(g.I(g.Cq.apply(1,arguments))))}};
V=R.map(function(f){return f(v)});
r=fBE.apply(null,g.I(V))(n.dispatch);return Object.assign({},n,{dispatch:r})}}};
WU=function(){return Math.random().toString(36).substring(7).split("").join(".")};
zvN=function(R){Object.keys(R).forEach(function(F){var n=R[F];if(typeof n(void 0,{type:ug})==="undefined")throw Error('The slice reducer for key "'+F+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(typeof n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+WU()})==="undefined")throw Error('The slice reducer for key "'+
F+"\" returned undefined when probed with a random type. Don't try to handle '"+(ug+'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})};
qZW=function(R,F,n){function V(){if(c)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return z}
function r(S){if(typeof S!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof S+"'");if(c)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var p=!0;Q===q&&(Q=q.slice());Q.push(S);return function(){if(p){if(c)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
p=!1;Q===q&&(Q=q.slice());Q.splice(Q.indexOf(S),1);q=null}}}
function v(S){if(typeof S!=="object"||S===null)var p=!1;else{for(p=S;Object.getPrototypeOf(p)!==null;)p=Object.getPrototypeOf(p);p=Object.getPrototypeOf(S)===p}if(!p)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof S+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
if(typeof S.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw Error("Reducers may not dispatch actions.");try{c=!0,z=f(z,S)}finally{c=!1}p=q=Q;for(var C=0;C<p.length;C++)(0,p[C])();return S}
if(typeof F==="function"&&typeof n==="function"||typeof n==="function"&&typeof arguments[3]==="function")throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");typeof F==="function"&&typeof n==="undefined"&&(n=F,F=void 0);if(typeof n!=="undefined"){if(typeof n!=="function")throw Error("Expected the enhancer to be a function. Instead, received: '"+
typeof n+"'");return n(qZW)(R,F)}if(typeof R!=="function")throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof R+"'");var f=R,z=F,q=[],Q=q,c=!1;v({type:ug});var w={},L=(w.dispatch=v,w.subscribe=r,w.getState=V,w.replaceReducer=function(S){if(typeof S!=="function")throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof S);f=S;v({type:QmV});return L},w[cDR]=function(){var S={};
return S.subscribe=function(p){function C(){p.next&&p.next(V())}
if(typeof p!=="object"||p===null)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof p+"'");C();return{unsubscribe:r(C)}},S[cDR]=function(){return this},S},w);
return L};
w2N=function(R){return R?(R=R.privateDoNotAccessOrElseSafeScriptWrappedValue)?hOW(R):null:null};
BU=function(R){return R?(R=R.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?Tx(R):null:null};
LtR=function(R){R=SZR(R);return go(R)};
g.m3=function(R){R=SZR(R);return Tx(R)};
SZR=function(R){return R===null?"null":R===void 0?"undefined":R};
sm9=function(R){this.EZ=Ll(R)};
g.gB=function(R){this.name=R};
p2f=function(R){this.EZ=Ll(R)};
O3=function(R){this.EZ=Ll(R)};
IH=function(R){this.EZ=Ll(R)};
X2e=function(R){this.EZ=Ll(R)};
KA=function(R){this.EZ=Ll(R)};
DJ=function(R){this.EZ=Ll(R)};
ig=function(R){this.EZ=Ll(R)};
xL=function(R){this.EZ=Ll(R)};
kL=function(R){this.EZ=Ll(R)};
YL=function(R){this.EZ=Ll(R)};
Jt=function(R){this.EZ=Ll(R)};
Gw=function(R){this.EZ=Ll(R)};
dB=function(R){this.EZ=Ll(R)};
Mq=function(R){this.EZ=Ll(R)};
lg=function(R){this.EZ=Ll(R)};
Nq=function(R){this.EZ=Ll(R,500)};
E3=function(R){this.EZ=Ll(R)};
$L=function(R){this.EZ=Ll(R)};
g.PU=function(R){this.EZ=Ll(R)};
ADJ=function(){return g.WM("yt.ads.biscotti.lastId_")||""};
aBI=function(R){g.h7("yt.ads.biscotti.lastId_",R)};
ZJ=function(){var R=arguments,F=bg;R.length>1?F[R[0]]=R[1]:R.length===1&&Object.assign(F,R[0])};
g.ew=function(R,F){return R in bg?bg[R]:F};
Rk=function(R){var F=bg.EXPERIMENT_FLAGS;return F?F[R]:void 0};
ChN=function(R){Fl.forEach(function(F){return F(R)})};
g.Vb=function(R){return R&&window.yterr?function(){try{return R.apply(this,arguments)}catch(F){g.n$(F)}}:R};
g.n$=function(R){var F=g.WM("yt.logging.errors.log");F?F(R,"ERROR",void 0,void 0,void 0,void 0,void 0):(F=g.ew("ERRORS",[]),F.push([R,"ERROR",void 0,void 0,void 0,void 0,void 0]),ZJ("ERRORS",F));ChN(R)};
rz=function(R,F,n,V,r){var v=g.WM("yt.logging.errors.log");v?v(R,"WARNING",F,n,V,void 0,r):(v=g.ew("ERRORS",[]),v.push([R,"WARNING",F,n,V,void 0,r]),ZJ("ERRORS",v))};
vC=function(R,F){F=R.split(F);for(var n={},V=0,r=F.length;V<r;V++){var v=F[V].split("=");if(v.length===1&&v[0]||v.length===2)try{var f=TTe(v[0]||""),z=TTe(v[1]||"");if(f in n){var q=n[f];Array.isArray(q)?g.qN(q,z):n[f]=[q,z]}else n[f]=z}catch(L){var Q=L,c=v[0],w=String(vC);Q.args=[{key:c,value:v[1],query:R,method:ovW===w?"unchanged":w}];yDW.hasOwnProperty(c)||rz(Q)}}return n};
f$=function(R){var F=[];g.DN(R,function(n,V){var r=g.N3(V);g.az(Array.isArray(n)?n:[n],function(v){v==""?F.push(r):F.push(r+"="+g.N3(v))})});
return F.join("&")};
Xj=function(R){R.charAt(0)==="?"&&(R=R.substring(1));return vC(R,"&")};
tj=function(R){return R.split(",").map(function(F){return Xj(F)})};
g.zg=function(R){return R.indexOf("?")!==-1?(R=(R||"").split("#")[0],R=R.split("?",2),Xj(R.length>1?R[1]:R[0])):{}};
ql=function(R,F){return UgN(R,F||{},!0)};
Qb=function(R,F){return UgN(R,F||{},!1)};
UgN=function(R,F,n){var V=R.split("#",2);R=V[0];V=V.length>1?"#"+V[1]:"";var r=R.split("?",2);R=r[0];r=Xj(r[1]||"");for(var v in F)if(n||!g.hx(r,v))r[v]=F[v];return g.DI(R,r)+V};
cC=function(R){if(!F)var F=window.location.href;var n=g.Wa(R)[1]||null,V=g.u5(R);n&&V?(R=g.Wa(R),F=g.Wa(F),R=R[3]==F[3]&&R[1]==F[1]&&R[4]==F[4]):R=V?g.u5(F)===V&&(Number(g.Wa(F)[4]||null)||null)===(Number(g.Wa(R)[4]||null)||null):!0;return R};
wz=function(R){R||(R=document.location.href);R=g.Wa(R)[1]||null;return R!==null&&R==="https"};
SP=function(R){R=jmj(R);return R===null?!1:R[0]==="com"&&R[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
HT_=function(R){R=jmj(R);return R===null?!1:R[1]==="google"?!0:R[2]==="google"?R[0]==="au"&&R[1]==="com"?!0:R[0]==="uk"&&R[1]==="co"?!0:!1:!1};
jmj=function(R){R=g.u5(R);return R!==null?R.split(".").reverse():null};
TTe=function(R){return R&&R.match(hve)?R:Ej(R)};
p$=function(R){var F=L$;R=R===void 0?ADJ():R;var n=Object,V=n.assign,r=s2(F);var v=F.T;try{var f=v.screenX;var z=v.screenY}catch(u){}try{var q=v.outerWidth;var Q=v.outerHeight}catch(u){}try{var c=v.innerWidth;var w=v.innerHeight}catch(u){}try{var L=v.screenLeft;var S=v.screenTop}catch(u){}try{c=v.innerWidth,w=v.innerHeight}catch(u){}try{var p=v.screen.availWidth;var C=v.screen.availTop}catch(u){}v=[L,S,f,z,p,C,q,Q,c,w];f=jvV(!1,F.T.top);z={};var y=y===void 0?g.HM:y;q=new lM;"SVGElement"in y&&"createElementNS"in
y.document&&q.set(0);Q=xNW();Q["allow-top-navigation-by-user-activation"]&&q.set(1);Q["allow-popups-to-escape-sandbox"]&&q.set(2);y.crypto&&y.crypto.subtle&&q.set(3);"TextDecoder"in y&&"TextEncoder"in y&&q.set(4);y=VN_(q);F=(z.bc=y,z.bih=f.height,z.biw=f.width,z.brdim=v.join(),z.vis=ov(F.U),z.wgl=!!N2.WebGLRenderingContext,z);n=V.call(n,r,F);n.ca_type="image";R&&(n.bid=R);return n};
s2=function(R){var F={};F.dt=Wte;F.flash="0";a:{try{var n=R.T.top.location.href}catch(Q){R=2;break a}R=n?n===R.U.location.href?0:1:2}F=(F.frm=R,F);try{F.u_tz=-(new Date).getTimezoneOffset();try{var V=N2.history.length}catch(Q){V=0}F.u_his=V;var r;F.u_h=(r=N2.screen)==null?void 0:r.height;var v;F.u_w=(v=N2.screen)==null?void 0:v.width;var f;F.u_ah=(f=N2.screen)==null?void 0:f.availHeight;var z;F.u_aw=(z=N2.screen)==null?void 0:z.availWidth;var q;F.u_cd=(q=N2.screen)==null?void 0:q.colorDepth}catch(Q){}return F};
BTW=function(){if(!u1e)return null;var R=u1e();return"open"in R?R:null};
g.Aj=function(R){switch(Xl(R)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
Xl=function(R){return R&&"status"in R?R.status:-1};
g.ak=function(R,F){typeof R==="function"&&(R=g.Vb(R));return window.setTimeout(R,F)};
g.C$=function(R,F){typeof R==="function"&&(R=g.Vb(R));return window.setInterval(R,F)};
g.Tg=function(R){window.clearTimeout(R)};
g.ok=function(R){window.clearInterval(R)};
g.U2=function(R){R=yb(R);return typeof R==="string"&&R==="false"?!1:!!R};
jP=function(R,F){R=yb(R);return R===void 0&&F!==void 0?F:Number(R||0)};
HC=function(){return g.ew("EXPERIMENTS_TOKEN","")};
yb=function(R){return g.ew("EXPERIMENT_FLAGS",{})[R]};
hj=function(){for(var R=[],F=g.ew("EXPERIMENTS_FORCED_FLAGS",{}),n=g.m(Object.keys(F)),V=n.next();!V.done;V=n.next())V=V.value,R.push({key:V,value:String(F[V])});n=g.ew("EXPERIMENT_FLAGS",{});V=g.m(Object.keys(n));for(var r=V.next();!r.done;r=V.next())r=r.value,r.startsWith("force_")&&F[r]===void 0&&R.push({key:r,value:String(n[r])});return R};
WC=function(R,F,n,V,r,v,f,z,q){function Q(){(c&&"readyState"in c?c.readyState:0)===4&&F&&g.Vb(F)(c)}
n=n===void 0?"GET":n;V=V===void 0?"":V;z=z===void 0?!1:z;var c=BTW();if(!c)return null;"onloadend"in c?c.addEventListener("loadend",Q,!1):c.onreadystatechange=Q;g.U2("debug_forward_web_query_parameters")&&(R=mgj(R));c.open(n,R,!0);v&&(c.responseType=v);f&&(c.withCredentials=!0);n=n==="POST"&&(window.FormData===void 0||!(V instanceof FormData));if(r=gvR(R,r))for(var w in r)c.setRequestHeader(w,r[w]),"content-type"===w.toLowerCase()&&(n=!1);n&&c.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
q&&"onprogress"in c&&(c.onprogress=function(){q(c.responseText)});
if(z&&"setAttributionReporting"in XMLHttpRequest.prototype){R={eventSourceEligible:!0,triggerEligible:!1};try{c.setAttributionReporting(R)}catch(L){rz(L)}}c.send(V);return c};
gvR=function(R,F){F=F===void 0?{}:F;var n=cC(R),V=g.ew("INNERTUBE_CLIENT_NAME"),r=g.U2("web_ajax_ignore_global_headers_if_set"),v;for(v in OTk){var f=g.ew(OTk[v]),z=v==="X-Goog-AuthUser"||v==="X-Goog-PageId";v!=="X-Goog-Visitor-Id"||f||(f=g.ew("VISITOR_DATA"));var q;if(!(q=!f)){if(!(q=n||(g.u5(R)?!1:!0))){q=R;var Q;if(Q=g.U2("add_auth_headers_to_remarketing_google_dot_com_ping")&&v==="Authorization"&&(V==="TVHTML5"||V==="TVHTML5_UNPLUGGED"||V==="TVHTML5_SIMPLY")&&HT_(q))q=Ba(q)||"",q=q.split("/"),
q="/"+(q.length>1?q[1]:""),Q=q==="/pagead";q=Q?!0:!1}q=!q}q||r&&F[v]!==void 0||V==="TVHTML5_UNPLUGGED"&&z||(F[v]=f)}"X-Goog-EOM-Visitor-Id"in F&&"X-Goog-Visitor-Id"in F&&delete F["X-Goog-Visitor-Id"];if(n||!g.u5(R))F["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(n||!g.u5(R)){try{var c=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(w){}c&&(F["X-YouTube-Time-Zone"]=c)}document.location.hostname.endsWith("youtubeeducation.com")||!n&&g.u5(R)||(F["X-YouTube-Ad-Signals"]=
f$(p$()));return F};
BC=function(R,F){F.method="POST";F.postParams||(F.postParams={});return g.ux(R,F)};
DgJ=function(R,F){if(window.fetch&&F.format!=="XML"){var n={method:F.method||"GET",credentials:"same-origin"};F.headers&&(n.headers=F.headers);F.priority&&(n.priority=F.priority);R=IB6(R,F);var V=Kt9(R,F);V&&(n.body=V);F.withCredentials&&(n.credentials="include");var r=F.context||g.HM,v=!1,f;fetch(R,n).then(function(z){if(!v){v=!0;f&&g.Tg(f);var q=z.ok,Q=function(c){c=c||{};q?F.onSuccess&&F.onSuccess.call(r,c,z):F.onError&&F.onError.call(r,c,z);F.onFinish&&F.onFinish.call(r,c,z)};
(F.format||"JSON")==="JSON"&&(q||z.status>=400&&z.status<500)?z.json().then(Q,function(){Q(null)}):Q(null)}}).catch(function(){F.onError&&F.onError.call(r,{},{})});
R=F.timeout||0;F.onFetchTimeout&&R>0&&(f=g.ak(function(){v||(v=!0,g.Tg(f),F.onFetchTimeout.call(F.context||g.HM))},R))}else g.ux(R,F)};
g.ux=function(R,F){var n=F.format||"JSON";R=IB6(R,F);var V=Kt9(R,F),r=!1,v=iT9(R,function(q){if(!r){r=!0;z&&g.Tg(z);var Q=g.Aj(q),c=null,w=400<=q.status&&q.status<500,L=500<=q.status&&q.status<600;if(Q||w||L)c=xg_(R,n,q,F.convertToSafeHtml);Q&&(Q=kC9(n,q,c));c=c||{};w=F.context||g.HM;Q?F.onSuccess&&F.onSuccess.call(w,q,c):F.onError&&F.onError.call(w,q,c);F.onFinish&&F.onFinish.call(w,q,c)}},F.method,V,F.headers,F.responseType,F.withCredentials,!1,F.onProgress);
V=F.timeout||0;if(F.onTimeout&&V>0){var f=F.onTimeout;var z=g.ak(function(){r||(r=!0,v.abort(),g.Tg(z),f.call(F.context||g.HM,v))},V)}return v};
IB6=function(R,F){F.includeDomain&&(R=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+R);var n=g.ew("XSRF_FIELD_NAME");if(F=F.urlParams)F[n]&&delete F[n],R=ql(R,F);return R};
Kt9=function(R,F){var n=g.ew("XSRF_FIELD_NAME"),V=g.ew("XSRF_TOKEN"),r=F.postBody||"",v=F.postParams,f=g.ew("XSRF_FIELD_NAME"),z;F.headers&&(z=F.headers["Content-Type"]);F.excludeXsrf||g.u5(R)&&!F.withCredentials&&g.u5(R)!==document.location.hostname||F.method!=="POST"||z&&z!=="application/x-www-form-urlencoded"||F.postParams&&F.postParams[f]||(v||(v={}),v[n]=V);(g.U2("ajax_parse_query_data_only_when_filled")&&v&&Object.keys(v).length>0||v)&&typeof r==="string"&&(r=Xj(r),g.xc(r,v),r=F.postBodyFormat&&
F.postBodyFormat==="JSON"?JSON.stringify(r):g.KS(r));v=r||v&&!g.g7(v);!YZN&&v&&F.method!=="POST"&&(YZN=!0,g.n$(Error("AJAX request with postData should use POST")));return r};
xg_=function(R,F,n,V){var r=null;switch(F){case "JSON":try{var v=n.responseText}catch(f){throw V=Error("Error reading responseText"),V.params=R,rz(V),f;}R=n.getResponseHeader("Content-Type")||"";v&&R.indexOf("json")>=0&&(v.substring(0,5)===")]}'\n"&&(v=v.substring(5)),r=JSON.parse(v));break;case "XML":if(R=(R=n.responseXML)?JDE(R):null)r={},g.az(R.getElementsByTagName("*"),function(f){r[f.tagName]=GCN(f)})}V&&dgR(r);
return r};
dgR=function(R){if(g.ID(R))for(var F in R)F==="html_content"||LhW(F,"_html")?R[F]=go(R[F]):dgR(R[F])};
kC9=function(R,F,n){if(F&&F.status===204)return!0;switch(R){case "JSON":return!!n;case "XML":return Number(n&&n.return_code)===0;case "RAW":return!0;default:return!!n}};
JDE=function(R){return R?(R=("responseXML"in R?R.responseXML:R).getElementsByTagName("root"))&&R.length>0?R[0]:null:null};
GCN=function(R){var F="";g.az(R.childNodes,function(n){F+=n.nodeValue});
return F};
mgj=function(R){var F=window.location.search,n=g.u5(R);g.U2("debug_handle_relative_url_for_query_forward_killswitch")||!n&&cC(R)&&(n=document.location.hostname);var V=Ba(R);V=(n=n&&(n.endsWith("youtube.com")||n.endsWith("youtube-nocookie.com")))&&V&&V.startsWith("/api/");if(!n||V)return R;var r=Xj(F),v={};g.az(MGI,function(f){r[f]&&(v[f]=r[f])});
return Qb(R,v)};
gz=function(R,F){var n=g.Di(F),V;return(new g.OZ(function(r,v){n.onSuccess=function(f){g.Aj(f)?r(new lBe(f)):v(new mH("Request failed, status="+Xl(f),"net.badstatus",f))};
n.onError=function(f){v(new mH("Unknown request error","net.unknown",f))};
n.onTimeout=function(f){v(new mH("Request timed out","net.timeout",f))};
V=g.ux(R,n)})).h5(function(r){if(r instanceof kv){var v;
(v=V)==null||v.abort()}return DB(r)})};
g.O2=function(R,F,n,V,r,v){function f(q,Q,c){return q.h5(function(w){if(Q<=0||Xl(w.xhr)===403)return DB(new mH("Request retried too many times","net.retryexhausted",w.xhr,w));var L=Math.pow(2,n-Q+1)*c,S=r>0?Math.min(r,L):L;return z(c).then(function(){v&&v(w,Q-1);return f(gz(R,F),Q-1,S)})})}
function z(q){return new g.OZ(function(Q){setTimeout(Q,q)})}
r=r===void 0?-1:r;return f(gz(R,F),n-1,V)};
mH=function(R,F,n){lU.call(this,R+", errorCode="+F);this.errorCode=F;this.xhr=n;this.name="PromiseAjaxError"};
lBe=function(R){this.xhr=R};
Ik=function(R){this.T=R===void 0?null:R;this.N=0;this.U=null};
K$=function(R){var F=new Ik;R=R===void 0?null:R;F.N=2;F.U=R===void 0?null:R;return F};
D_=function(R){var F=new Ik;R=R===void 0?null:R;F.N=1;F.U=R===void 0?null:R;return F};
g.ki=function(R,F,n,V,r){ix||xi.set(""+R,F,{DK:n,path:"/",domain:V===void 0?"youtube.com":V,secure:r===void 0?!1:r})};
g.Yi=function(R,F){if(!ix)return xi.get(""+R,F)};
g.Jj=function(R,F,n){ix||xi.remove(""+R,F===void 0?"/":F,n===void 0?"youtube.com":n)};
NTW=function(){if(!xi.isEnabled())return!1;if(!xi.isEmpty())return!0;xi.set("TESTCOOKIESENABLED","1",{DK:60});if(xi.get("TESTCOOKIESENABLED")!=="1")return!1;xi.remove("TESTCOOKIESENABLED");return!0};
g.A=function(R,F){if(R)return R[F.name]};
Gg=function(R){var F=g.ew("INNERTUBE_HOST_OVERRIDE");F&&(R=String(F)+String(mw(R)));return R};
EvJ=function(R){var F={};g.U2("json_condensed_response")&&(F.prettyPrint="false");return R=Qb(R,F)};
dz=function(R,F){var n=n===void 0?{}:n;R={method:F===void 0?"POST":F,mode:cC(R)?"same-origin":"cors",credentials:cC(R)?"same-origin":"include"};F={};for(var V=g.m(Object.keys(n)),r=V.next();!r.done;r=V.next())r=r.value,n[r]&&(F[r]=n[r]);Object.keys(F).length>0&&(R.headers=F);return R};
Ml=function(R,F){F=F===void 0?{}:F;return"service:"+R+"/"+Object.keys(F).sort().map(function(n){return n+":"+F[n]}).join("/")};
lx=function(){var R=/Chrome\/(\d+)/.exec(g.ft());return R?parseFloat(R[1]):NaN};
Nl=function(){var R=/\sCobalt\/(\S+)\s/.exec(g.ft());if(!R)return NaN;var F=[];R=g.m(R[1].split("."));for(var n=R.next();!n.done;n=R.next())n=parseInt(n.value,10),n>=0&&F.push(n);return parseFloat(F.join("."))};
$i=function(){return g.E2("android")&&g.E2("chrome")&&!(g.E2("trident/")||g.E2("edge/"))&&!g.E2("cobalt")};
g.PC=function(){return g.E2("cobalt")};
bx=function(){return g.E2("cobalt")&&g.E2("appletv")};
Z_=function(){return g.E2("(ps3; leanback shell)")||g.E2("ps3")&&g.PC()};
$gJ=function(){return g.E2("(ps4; leanback shell)")||g.E2("ps4")&&g.PC()};
g.Phf=function(){return g.PC()&&(g.E2("ps4 vr")||g.E2("ps4 pro vr"))};
eP=function(){var R=/WebKit\/([0-9]+)/.exec(g.ft());return!!(R&&parseInt(R[1],10)>=600)};
Rx=function(){var R=/WebKit\/([0-9]+)/.exec(g.ft());return!!(R&&parseInt(R[1],10)>=602)};
bTR=function(){return g.E2("iemobile")||g.E2("windows phone")&&g.E2("edge")};
Vu=function(){return(FA||nw)&&g.E2("applewebkit")&&!g.E2("version")&&(!g.E2("safari")||g.E2("gsa/"))};
vc=function(){return g.rf&&g.E2("version/")};
fw=function(){return g.E2("smart-tv")&&g.E2("samsung")};
g.E2=function(R){var F=g.ft();return F?F.toLowerCase().indexOf(R)>=0:!1};
tL=function(){return hHI()||Vu()||vc()?!0:g.ew("EOM_VISITOR_DATA")?!1:!0};
zQ=function(R,F){return F===void 0||F===null?R:F==="1"||F===!0||F===1||F==="True"?!0:!1};
q8=function(R,F,n){for(var V in n)if(n[V]==F)return n[V];return R};
Qu=function(R,F){return F===void 0||F===null?R:Number(F)};
cc=function(R,F){return F===void 0||F===null?R:F.toString()};
wf=function(R,F){if(F){if(R==="fullwidth")return Infinity;if(R==="fullheight")return 0}return R&&(F=R.match(ZTE))&&(R=Number(F[2]),F=Number(F[1]),!isNaN(R)&&!isNaN(F)&&R>0)?F/R:NaN};
S3=function(R){var F=R.docid||R.video_id||R.videoId||R.id;if(F)return F;F=R.raw_player_response;F||(R=R.player_response)&&(F=JSON.parse(R));return F&&F.videoDetails&&F.videoDetails.videoId||null};
evW=function(R){return Lw(R,!1)==="EMBEDDED_PLAYER_MODE_PFL"};
g.pw=function(R){return R==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||R==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1};
Lw=function(R,F){F=(F===void 0?0:F)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(F="EMBEDDED_PLAYER_MODE_PFL");var n=R.raw_embedded_player_response;if(!n&&(R=R.embedded_player_response))try{n=JSON.parse(R)}catch(V){return F}return n?q8(F,n.embeddedPlayerMode,R06):F};
AL=function(R){lU.call(this,R.message||R.description||R.name);this.isMissing=R instanceof XA;this.isTimeout=R instanceof mH&&R.errorCode=="net.timeout";this.isCanceled=R instanceof kv};
XA=function(){lU.call(this,"Biscotti ID is missing from server")};
FE_=function(){if(g.U2("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!tL())return Error("User has not consented - not fetching biscotti id.");var R=g.ew("PLAYER_VARS",{});if(g.Om(R,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(evW(R))return Error("Biscotti id fetching has been disabled for pfl.")};
vqW=function(){var R=FE_();if(R!==void 0)return DB(R);ax||(ax=gz("//googleads.g.doubleclick.net/pagead/id",nqV).then(VcN).h5(function(F){return rSj(2,F)}));
return ax};
VcN=function(R){R=R.xhr.responseText;if(!eW(R,")]}'"))throw new XA;R=JSON.parse(R.substr(4));if((R.type||1)>1)throw new XA;R=R.id;aBI(R);ax=D_(R);fek(18E5,2);return R};
rSj=function(R,F){F=new AL(F);aBI("");ax=K$(F);R>0&&fek(12E4,R-1);throw F;};
fek=function(R,F){g.ak(function(){gz("//googleads.g.doubleclick.net/pagead/id",nqV).then(VcN,function(n){return rSj(F,n)}).h5(g.$W)},R)};
tcv=function(){try{var R=g.WM("yt.ads.biscotti.getId_");return R?R():vqW()}catch(F){return DB(F)}};
qi9=function(R){R&&(R.dataset?R.dataset[z06()]="true":u5W(R))};
QFR=function(R){return R?R.dataset?R.dataset[z06()]:R.getAttribute("data-loaded"):null};
z06=function(){return cSN.loaded||(cSN.loaded="loaded".replace(/\-([a-z])/g,function(R,F){return F.toUpperCase()}))};
w36=function(){var R=document;if("visibilityState"in R)return R.visibilityState;var F=Cw+"VisibilityState";if(F in R)return R[F]};
TQ=function(R,F){var n;t3(R,function(V){n=F[V];return!!n});
return n};
ox=function(R){if(R.requestFullscreen)R=R.requestFullscreen(void 0);else if(R.webkitRequestFullscreen)R=R.webkitRequestFullscreen();else if(R.mozRequestFullScreen)R=R.mozRequestFullScreen();else if(R.msRequestFullscreen)R=R.msRequestFullscreen();else if(R.webkitEnterFullscreen)R=R.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return R instanceof Promise?R:Promise.resolve()};
j3=function(R){var F;g.yu()?Uw()==R&&(F=document):F=R;return F&&(R=TQ(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],F))?(F=R.call(F),F instanceof Promise?F:Promise.resolve()):Promise.resolve()};
Sij=function(R){return g.$$(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(F){return"on"+F.toLowerCase()in R})};
LEe=function(){var R=document;return g.$$(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(F){return"on"+F.toLowerCase()in R})};
g.yu=function(){return!!TQ(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
Uw=function(R){R=R===void 0?!1:R;var F=TQ(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(R)for(;F&&F.shadowRoot;)F=F.shadowRoot.fullscreenElement;return F?F:null};
Hc=function(R){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(R=R||window.event){this.event=R;for(var F in R)F in sFV||(this[F]=R[F]);this.scale=R.scale;this.rotation=R.rotation;var n=R.target||R.srcElement;n&&n.nodeType==3&&(n=n.parentNode);this.target=n;var V=R.relatedTarget;
if(V)try{V=V.nodeName?V:null}catch(r){V=null}else this.type=="mouseover"?V=R.fromElement:this.type=="mouseout"&&(V=R.toElement);this.relatedTarget=V;this.clientX=R.clientX!=void 0?R.clientX:R.pageX;this.clientY=R.clientY!=void 0?R.clientY:R.pageY;this.keyCode=R.keyCode?R.keyCode:R.which;this.charCode=R.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=R.altKey;this.ctrlKey=R.ctrlKey;this.shiftKey=R.shiftKey;this.metaKey=R.metaKey;this.T=R.pageX;this.U=R.pageY}}catch(r){}};
p3V=function(R){if(document.body&&document.documentElement){var F=document.body.scrollTop+document.documentElement.scrollTop;R.T=R.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);R.U=R.clientY+F}};
X3I=function(R,F,n,V){V=V===void 0?{}:V;R.addEventListener&&(F!="mouseenter"||"onmouseenter"in document?F!="mouseleave"||"onmouseenter"in document?F=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(F="MozMousePixelScroll"):F="mouseout":F="mouseover");return ue(hL,function(r){var v=typeof r[4]==="boolean"&&r[4]==!!V,f=g.ID(r[4])&&g.ID(V)&&g.Iz(r[4],V);return!!r.length&&r[0]==R&&r[1]==F&&r[2]==n&&(v||f)})};
g.Wc=function(R,F,n,V){V=V===void 0?{}:V;if(!R||!R.addEventListener&&!R.attachEvent)return"";var r=X3I(R,F,n,V);if(r)return r;r=++AS9.count+"";var v=!(F!="mouseenter"&&F!="mouseleave"||!R.addEventListener||"onmouseenter"in document);var f=v?function(z){z=new Hc(z);if(!J9(z.relatedTarget,function(q){return q==R},!0))return z.currentTarget=R,z.type=F,n.call(R,z)}:function(z){z=new Hc(z);
z.currentTarget=R;return n.call(R,z)};
f=g.Vb(f);R.addEventListener?(F=="mouseenter"&&v?F="mouseover":F=="mouseleave"&&v?F="mouseout":F=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(F="MozMousePixelScroll"),aej()||typeof V==="boolean"?R.addEventListener(F,f,V):R.addEventListener(F,f,!!V.capture)):R.attachEvent("on"+F,f);hL[r]=[R,F,n,f,V];return r};
Tb6=function(R){return CwE(R,function(F){return g.t$(F,"ytp-ad-has-logging-urls")})};
CwE=function(R,F){var n=document.body||document;return g.Wc(n,"click",function(V){var r=J9(V.target,function(v){return v===n||F(v)},!0);
r&&r!==n&&!r.disabled&&(V.currentTarget=r,R.call(r,V))})};
g.u6=function(R){R&&(typeof R=="string"&&(R=[R]),g.az(R,function(F){if(F in hL){var n=hL[F],V=n[0],r=n[1],v=n[3];n=n[4];V.removeEventListener?aej()||typeof n==="boolean"?V.removeEventListener(r,v,n):V.removeEventListener(r,v,!!n.capture):V.detachEvent&&V.detachEvent("on"+r,v);delete hL[F]}}))};
Bc=function(R){for(var F in hL)hL[F][0]==R&&g.u6(F)};
ml=function(R){R=R||window.event;var F;R.composedPath&&typeof R.composedPath==="function"?F=R.composedPath():F=R.path;F&&F.length?R=F[0]:(R=R||window.event,R=R.target||R.srcElement,R.nodeType==3&&(R=R.parentNode));return R};
gf=function(R){this.X=R;this.T=null;this.J=0;this.Z=null;this.W=0;this.U=[];for(R=0;R<4;R++)this.U.push(0);this.N=0;this.J1=g.Wc(window,"mousemove",(0,g.k$)(this.UZ,this));this.V=g.C$((0,g.k$)(this.Nq,this),25)};
Ow=function(R){g.G.call(this);this.Z=[];this.mQ=R||this};
Ix=function(R,F,n,V){for(var r=0;r<n.length;r++)R.C(F,n[r],V)};
g.Kw=function(R,F){for(;R.Z.length;){var n=R.Z.pop(),V=void 0;F&&oqN()&&(V={passive:!0});n.target.removeEventListener(n.name,n.callback,V)}};
g.i6=function(R,F,n){var V=n&&n>0?n:0;n=V?Date.now()+V*1E3:0;if((V=V?g.Dg.ow():g.Dg.Wz())&&window.JSON){typeof F!=="string"&&(F=JSON.stringify(F,void 0));try{V.set(R,F,n)}catch(r){V.remove(R)}}};
g.xh=function(R){var F=g.Dg.Wz(),n=g.Dg.ow();if(!F&&!n||!window.JSON)return null;try{var V=F.get(R)}catch(r){}if(typeof V!=="string")try{V=n.get(R)}catch(r){}if(typeof V!=="string")return null;try{V=JSON.parse(V,void 0)}catch(r){}return V};
ySj=function(){var R=g.Dg.ow();if(R&&(R=R.qU("yt-player-quality")))return R.creation};
g.kh=function(R){try{var F=g.Dg.Wz(),n=g.Dg.ow();F&&F.remove(R);n&&n.remove(R)}catch(V){}};
g.Yh=function(){return g.xh("yt-remote-session-screen-id")};
UvN=function(R){var F=this;this.U=void 0;this.T=!1;R.addEventListener("beforeinstallprompt",function(n){n.preventDefault();F.U=n});
R.addEventListener("appinstalled",function(){F.T=!0},{once:!0})};
JL=function(){if(!g.HM.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.HM.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.HM.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.HM.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.HM.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(R){return"WEB_DISPLAY_MODE_UNKNOWN"}};
GQ=function(){this.nM=!0};
jFV=function(){GQ.instance||(GQ.instance=new GQ);return GQ.instance};
Ha9=function(R){switch(R){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}};
h0_=function(){this.T=g.ew("ALT_PREF_COOKIE_NAME","PREF");this.U=g.ew("ALT_PREF_COOKIE_DOMAIN","youtube.com");var R=g.Yi(this.T);R&&this.parse(R)};
g.M8=function(){df||(df=new h0_);return df};
N8=function(R,F){var n="f"+(Math.floor(R/31)+1);R=1<<R%31;var V=WE6(n)||0;V=F?V|R:V&~R;V===0?delete l6[n]:(F=V.toString(16),l6[n]=F.toString())};
Ew=function(R){if(/^f([1-9][0-9]*)$/.test(R))throw Error("ExpectedRegexMatch: "+R);};
$h=function(R){if(!/^\w+$/.test(R))throw Error("ExpectedRegexMismatch: "+R);};
WE6=function(R){R=l6[R]!==void 0?l6[R].toString():null;return R!=null&&/^[A-Fa-f0-9]+$/.test(R)?parseInt(R,16):null};
uo_=function(){var R=g.HM.navigator;return R?R.connection:void 0};
mvf=function(){var R=uo_();if(R){var F=Bbj[R.type||"unknown"]||"CONN_UNKNOWN";R=Bbj[R.effectiveType||"unknown"]||"CONN_UNKNOWN";F==="CONN_CELLULAR_UNKNOWN"&&R!=="CONN_UNKNOWN"&&(F=R);if(F!=="CONN_UNKNOWN")return F;if(R!=="CONN_UNKNOWN")return R}};
OaW=function(){var R=uo_();if(R!=null&&R.effectiveType)return gq_.hasOwnProperty(R.effectiveType)?gq_[R.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
g.UR=function(R){var F=g.Cq.apply(1,arguments);var n=Error.call(this,R);this.message=n.message;"stack"in n&&(this.stack=n.stack);this.args=[].concat(g.I(F));Object.setPrototypeOf(this,this.constructor.prototype)};
g.b6=function(){try{return g.Pc(),!0}catch(R){return!1}};
g.Pc=function(R){if(g.ew("DATASYNC_ID")!==void 0)return g.ew("DATASYNC_ID");throw new g.UR("Datasync ID not set",R===void 0?"unknown":R);};
Zg=function(){this.T=new WeakMap};
g.R8=function(R,F,n){return e3(F,0,n)};
IeR=function(R,F){e3(R,2,F)};
KEj=function(R){var F=g.WM("yt.scheduler.instance.addImmediateJob");F?F(R):R()};
F_=function(){Zg.apply(this,arguments)};
g.n3=function(){F_.instance||(F_.instance=new F_);return F_.instance};
g.VM=function(){return!!g.WM("yt.scheduler.instance")};
e3=function(R,F,n){n!==void 0&&Number.isNaN(Number(n))&&(n=void 0);var V=g.WM("yt.scheduler.instance.addJob");return V?V(R,F,n):n===void 0?(R(),NaN):g.ak(R,n||0)};
rS=function(R){var F=g.WM("yt.scheduler.instance.setPriorityThreshold");F&&F(R)};
vm=function(R){this.T=(R=g.xe(R))?new m9(R):null;this.U=document.domain||window.location.hostname};
t1=function(){var R;return(R=f3())==null?void 0:R.get("LAST_RESULT_ENTRY_KEY",!0)};
cm=function(R){zR||(qx?qx.f4(R):(QM.push({type:"ERROR",payload:R}),QM.length>10&&QM.shift()))};
wS=function(R,F){zR||(qx?qx.logEvent(R,F):(QM.push({type:"EVENT",eventType:R,payload:F}),QM.length>10&&QM.shift()))};
Sa=function(R){if(R.indexOf(":")>=0)throw Error("Database name cannot contain ':'");};
L3=function(R){return R.substr(0,R.indexOf(":"))||R};
g.sg=function(R,F,n,V,r){F=F===void 0?{}:F;n=n===void 0?Dvv[R]:n;V=V===void 0?iae[R]:V;r=r===void 0?xvE[R]:r;g.UR.call(this,n,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:R},F));this.type=R;this.message=n;this.level=V;this.T=r;Object.setPrototypeOf(this,g.sg.prototype)};
p3=function(R,F){g.sg.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:F,foundObjectStores:R},Dvv.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,p3.prototype)};
X_=function(R,F){var n=Error.call(this);this.message=n.message;"stack"in n&&(this.stack=n.stack);this.index=R;this.objectStore=F;Object.setPrototypeOf(this,X_.prototype)};
a8=function(R,F,n,V){F=L3(F);var r=R instanceof Error?R:Error("Unexpected error: "+R);if(r instanceof g.sg)return r;R={objectStoreNames:n,dbName:F,dbVersion:V};if(r.name==="QuotaExceededError")return new g.sg("QUOTA_EXCEEDED",R);if(g.A1&&r.name==="UnknownError")return new g.sg("QUOTA_MAYBE_EXCEEDED",R);if(r instanceof X_)return new g.sg("MISSING_INDEX",Object.assign({},R,{objectStore:r.objectStore,index:r.index}));if(r.name==="InvalidStateError"&&kjV.some(function(v){return r.message.includes(v)}))return new g.sg("EXECUTE_TRANSACTION_ON_CLOSED_DB",
R);
if(r.name==="AbortError")return new g.sg("UNKNOWN_ABORT",R,r.message);r.args=[Object.assign({},R,{name:"IdbError",Cy:r.name})];r.level="WARNING";return r};
g.C3=function(R,F,n){var V=t1();return new g.sg("IDB_NOT_SUPPORTED",{context:{caller:R,publicName:F,version:n,hasSucceededOnce:V==null?void 0:V.hasSucceededOnce}})};
Yif=function(R){if(!R)throw Error();throw R;};
JSe=function(R){return R};
TR=function(R){this.T=R};
g.o8=function(R){function F(r){if(V.state.status==="PENDING"){V.state={status:"REJECTED",reason:r};r=g.m(V.U);for(var v=r.next();!v.done;v=r.next())v=v.value,v()}}
function n(r){if(V.state.status==="PENDING"){V.state={status:"FULFILLED",value:r};r=g.m(V.T);for(var v=r.next();!v.done;v=r.next())v=v.value,v()}}
var V=this;this.state={status:"PENDING"};this.T=[];this.U=[];R=R.T;try{R(n,F)}catch(r){F(r)}};
GjN=function(R,F,n,V,r){try{if(R.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var v=n(R.state.value);v instanceof g.o8?yM(R,F,v,V,r):V(v)}catch(f){r(f)}};
dv6=function(R,F,n,V,r){try{if(R.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var v=n(R.state.reason);v instanceof g.o8?yM(R,F,v,V,r):V(v)}catch(f){r(f)}};
yM=function(R,F,n,V,r){F===n?r(new TypeError("Circular promise chain detected.")):n.then(function(v){v instanceof g.o8?yM(R,F,v,V,r):V(v)},function(v){r(v)})};
McJ=function(R,F,n){function V(){n(R.error);v()}
function r(){F(R.result);v()}
function v(){try{R.removeEventListener("success",r),R.removeEventListener("error",V)}catch(f){}}
R.addEventListener("success",r);R.addEventListener("error",V)};
leI=function(R){return new Promise(function(F,n){McJ(R,F,n)})};
Ug=function(R){return new g.o8(new TR(function(F,n){McJ(R,F,n)}))};
Hm=function(R,F){return new g.o8(new TR(function(n,V){function r(){var v=R?F(R):null;v?v.then(function(f){R=f;r()},V):n()}
r()}))};
Nbk=function(R,F){this.request=R;this.cursor=F};
Eqj=function(R){return Ug(R).then(function(F){return F?new Nbk(R,F):null})};
g.$vN=function(R){R.cursor.continue(void 0);return Eqj(R.request)};
Pw9=function(R,F){this.T=R;this.options=F;this.transactionCount=0;this.N=Math.round((0,g.h1)());this.U=!1};
Wm=function(){return g.U2("idb_immediate_commit")};
g.Bm=function(R,F,n){R=R.T.createObjectStore(F,n);return new uV(R)};
m2=function(R,F){R.T.objectStoreNames.contains(F)&&R.T.deleteObjectStore(F)};
g.Og=function(R,F,n,V){var r,v,f,z,q,Q,c,w,L,S,p,C;return g.Y(function(y){switch(y.T){case 1:var u={mode:"readonly",Xs:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof n==="string"?u.mode=n:Object.assign(u,n);r=u;R.transactionCount++;v=r.Xs?3:1;f=0;case 2:if(z){y.wX(4);break}f++;q=Math.round((0,g.h1)());g.zv(y,5);Q=R.T.transaction(F,r.mode);u=!!r.commit;var B=new gS(Q);u=baI(B,V,u);return g.k(y,u,7);case 7:return c=y.U,w=Math.round((0,g.h1)()),Zae(R,q,w,f,void 0,F.join(),r),y.return(c);case 5:L=g.cM(y);
S=Math.round((0,g.h1)());p=a8(L,R.T.name,F.join(),R.T.version);if((C=p instanceof g.sg&&!p.T)||f>=v)Zae(R,q,S,f,p,F.join(),r),z=p;y.wX(2);break;case 4:return y.return(Promise.reject(z))}})};
Zae=function(R,F,n,V,r,v,f){F=n-F;r?(r instanceof g.sg&&(r.type==="QUOTA_EXCEEDED"||r.type==="QUOTA_MAYBE_EXCEEDED")&&wS("QUOTA_EXCEEDED",{dbName:L3(R.T.name),objectStoreNames:v,transactionCount:R.transactionCount,transactionMode:f.mode}),r instanceof g.sg&&r.type==="UNKNOWN_ABORT"&&(n-=R.N,n<0&&n>=2147483648&&(n=0),wS("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:v,transactionDuration:F,transactionCount:R.transactionCount,dbDuration:n}),R.U=!0),e0J(R,!1,V,v,F,f.tag),cm(r)):e0J(R,!0,V,v,F,
f.tag)};
e0J=function(R,F,n,V,r,v){wS("TRANSACTION_ENDED",{objectStoreNames:V,connectionHasUnknownAbortedTransaction:R.U,duration:r,isSuccessful:F,tryCount:n,tag:v===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":v})};
uV=function(R){this.T=R};
g.I8=function(R,F,n){R.T.createIndex(F,n,{unique:!1})};
RDf=function(R,F){return g.K3(R,{query:F},function(n){return n.delete().then(function(){return g.DY(n)})}).then(function(){})};
Fkf=function(R,F,n){var V=[];return g.K3(R,{query:F},function(r){if(!(n!==void 0&&V.length>=n))return V.push(r.getValue()),g.DY(r)}).then(function(){return V})};
VIf=function(R){return"getAllKeys"in IDBObjectStore.prototype?Ug(R.T.getAllKeys(void 0,void 0)):nx6(R)};
nx6=function(R){var F=[];return g.rmV(R,{query:void 0},function(n){F.push(n.cursor.primaryKey);return g.$vN(n)}).then(function(){return F})};
g.K3=function(R,F,n){R=R.T.openCursor(F.query,F.direction);return iV(R).then(function(V){return Hm(V,n)})};
g.rmV=function(R,F,n){var V=F.query;F=F.direction;R="openKeyCursor"in IDBObjectStore.prototype?R.T.openKeyCursor(V,F):R.T.openCursor(V,F);return Eqj(R).then(function(r){return Hm(r,n)})};
gS=function(R){var F=this;this.T=R;this.U=new Map;this.aborted=!1;this.done=new Promise(function(n,V){F.T.addEventListener("complete",function(){n()});
F.T.addEventListener("error",function(r){r.currentTarget===r.target&&V(F.T.error)});
F.T.addEventListener("abort",function(){var r=F.T.error;if(r)V(r);else if(!F.aborted){r=g.sg;for(var v=F.T.objectStoreNames,f=[],z=0;z<v.length;z++){var q=v.item(z);if(q===null)throw Error("Invariant: item in DOMStringList is null");f.push(q)}r=new r("UNKNOWN_ABORT",{objectStoreNames:f.join(),dbName:F.T.db.name,mode:F.T.mode});V(r)}})})};
baI=function(R,F,n){var V=new Promise(function(r,v){try{var f=F(R);n&&R.commit();f.then(function(z){r(z)}).catch(v)}catch(z){v(z),R.abort()}});
return Promise.all([V,R.done]).then(function(r){return g.m(r).next().value})};
vx9=function(R){this.T=R};
fK6=function(R,F,n){var V=[];return g.xs(R,{query:F},function(r){if(!(n!==void 0&&V.length>=n))return V.push(r.getValue()),g.DY(r)}).then(function(){return V})};
g.xs=function(R,F,n){R=R.T.openCursor(F.query===void 0?null:F.query,F.direction===void 0?"next":F.direction);return iV(R).then(function(V){return Hm(V,n)})};
ks=function(R,F){this.request=R;this.cursor=F};
iV=function(R){return Ug(R).then(function(F){return F?new ks(R,F):null})};
g.DY=function(R){R.cursor.continue(void 0);return iV(R.request)};
tIW=function(R,F,n){return new Promise(function(V,r){function v(){L||(L=new Pw9(f.result,{closed:w}));return L}
var f=F!==void 0?self.indexedDB.open(R,F):self.indexedDB.open(R);var z=n.blocked,q=n.blocking,Q=n.sVG,c=n.upgrade,w=n.closed,L;f.addEventListener("upgradeneeded",function(S){try{if(S.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(f.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");S.dataLoss&&S.dataLoss!=="none"&&wS("IDB_DATA_CORRUPTED",{reason:S.dataLossMessage||"unknown reason",dbName:L3(R)});var p=v(),C=new gS(f.transaction);
c&&c(p,function(y){return S.oldVersion<y&&S.newVersion>=y},C);
C.done.catch(function(y){r(y)})}catch(y){r(y)}});
f.addEventListener("success",function(){var S=f.result;q&&S.addEventListener("versionchange",function(){q(v())});
S.addEventListener("close",function(){wS("IDB_UNEXPECTEDLY_CLOSED",{dbName:L3(R),dbVersion:S.version});Q&&Q()});
V(v())});
f.addEventListener("error",function(){r(f.error)});
z&&f.addEventListener("blocked",function(){z()})})};
zD_=function(R,F,n){n=n===void 0?{}:n;return tIW(R,F,n)};
Ys=function(R,F){F=F===void 0?{}:F;var n,V,r,v;return g.Y(function(f){if(f.T==1)return g.zv(f,2),n=self.indexedDB.deleteDatabase(R),V=F,(r=V.blocked)&&n.addEventListener("blocked",function(){r()}),g.k(f,leI(n),4);
if(f.T!=2)return g.Qz(f,0);v=g.cM(f);throw a8(v,R,"",-1);})};
J1=function(R,F){this.name=R;this.options=F;this.N=!0;this.W=this.J=0};
qBv=function(R,F){return new g.sg("INCOMPATIBLE_DB_VERSION",{dbName:R.name,oldVersion:R.options.version,newVersion:F})};
g.GR=function(R,F){if(!F)throw g.C3("openWithToken",L3(R.name));return R.open()};
QC6=function(R,F){var n;return g.Y(function(V){if(V.T==1)return g.k(V,g.GR(dS,F),2);n=V.U;return V.return(g.Og(n,["databases"],{Xs:!0,mode:"readwrite"},function(r){var v=r.objectStore("databases");return v.get(R.actualName).then(function(f){if(f?R.actualName!==f.actualName||R.publicName!==f.publicName||R.userIdentifier!==f.userIdentifier:1)return v.put(R).then(function(){})})}))})};
Mx=function(R,F){var n;return g.Y(function(V){if(V.T==1)return R?g.k(V,g.GR(dS,F),2):V.return();n=V.U;return V.return(n.delete("databases",R))})};
cmk=function(R,F){var n,V;return g.Y(function(r){return r.T==1?(n=[],g.k(r,g.GR(dS,F),2)):r.T!=3?(V=r.U,g.k(r,g.Og(V,["databases"],{Xs:!0,mode:"readonly"},function(v){n.length=0;return g.K3(v.objectStore("databases"),{},function(f){R(f.getValue())&&n.push(f.getValue());return g.DY(f)})}),3)):r.return(n)})};
wD6=function(R,F){return cmk(function(n){return n.publicName===R&&n.userIdentifier!==void 0},F)};
SBN=function(){var R,F,n;return g.Y(function(V){switch(V.T){case 1:R=t1();if((F=R)==null?0:F.hasSucceededOnce)return V.return(!0);var r;if(!(r=lV&&eP()&&!Rx()||g.Nx)){try{r=self;var v=!!(r.indexedDB&&r.IDBIndex&&r.IDBKeyRange&&r.IDBObjectStore)}catch(f){v=!1}r=!v}if(r||!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return V.return(!1);g.zv(V,2);n={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return g.k(V,QC6(n,Eg),4);case 4:return g.k(V,
Mx("yt-idb-test-do-not-use",Eg),5);case 5:return V.return(!0);case 2:return g.cM(V),V.return(!1)}})};
LkJ=function(){if($s!==void 0)return $s;zR=!0;return $s=SBN().then(function(R){zR=!1;var F;if((F=f3())!=null&&F.T){var n;F={hasSucceededOnce:((n=t1())==null?void 0:n.hasSucceededOnce)||R};var V;(V=f3())==null||V.set("LAST_RESULT_ENTRY_KEY",F,2592E3,!0)}return R})};
Pm=function(){return g.WM("ytglobal.idbToken_")||void 0};
g.R5=function(){var R=Pm();return R?Promise.resolve(R):LkJ().then(function(F){F?(g.h7("ytglobal.idbToken_",Eg),F=Eg):F=void 0;return F})};
sCj=function(R){if(!g.b6())throw R=new g.sg("AUTH_INVALID",{dbName:R}),cm(R),R;var F=g.Pc();return{actualName:R+":"+F,publicName:R,userIdentifier:F}};
pDf=function(R,F,n,V){var r,v,f,z,q,Q;return g.Y(function(c){switch(c.T){case 1:return v=(r=Error().stack)!=null?r:"",g.k(c,g.R5(),2);case 2:f=c.U;if(!f)throw z=g.C3("openDbImpl",R,F),g.U2("ytidb_async_stack_killswitch")||(z.stack=z.stack+"\n"+v.substring(v.indexOf("\n")+1)),cm(z),z;Sa(R);q=n?{actualName:R,publicName:R,userIdentifier:void 0}:sCj(R);g.zv(c,3);return g.k(c,QC6(q,f),5);case 5:return g.k(c,zD_(q.actualName,F,V),6);case 6:return c.return(c.U);case 3:return Q=g.cM(c),g.zv(c,7),g.k(c,Mx(q.actualName,
f),9);case 9:g.Qz(c,8);break;case 7:g.cM(c);case 8:throw Q;}})};
XD6=function(R,F,n){n=n===void 0?{}:n;return pDf(R,F,!1,n)};
AmW=function(R,F,n){n=n===void 0?{}:n;return pDf(R,F,!0,n)};
aKE=function(R,F){F=F===void 0?{}:F;var n,V;return g.Y(function(r){if(r.T==1)return g.k(r,g.R5(),2);if(r.T!=3){n=r.U;if(!n)return r.return();Sa(R);V=sCj(R);return g.k(r,Ys(V.actualName,F),3)}return g.k(r,Mx(V.actualName,n),0)})};
CM9=function(R,F,n){R=R.map(function(V){return g.Y(function(r){return r.T==1?g.k(r,Ys(V.actualName,F),2):g.k(r,Mx(V.actualName,n),0)})});
return Promise.all(R).then(function(){})};
THN=function(R){var F=F===void 0?{}:F;var n,V;return g.Y(function(r){if(r.T==1)return g.k(r,g.R5(),2);if(r.T!=3){n=r.U;if(!n)return r.return();Sa(R);return g.k(r,wD6(R,n),3)}V=r.U;return g.k(r,CM9(V,F,n),0)})};
oxj=function(R,F){F=F===void 0?{}:F;var n;return g.Y(function(V){if(V.T==1)return g.k(V,g.R5(),2);if(V.T!=3){n=V.U;if(!n)return V.return();Sa(R);return g.k(V,Ys(R,F),3)}return g.k(V,Mx(R,n),0)})};
FD=function(R,F){J1.call(this,R,F);this.options=F;Sa(R)};
ym6=function(R,F){var n;return function(){n||(n=new FD(R,F));return n}};
g.nI=function(R,F){return ym6(R,F)};
V8=function(R){return g.GR(U16(),R)};
jCj=function(R,F,n,V){var r,v,f;return g.Y(function(z){switch(z.T){case 1:return r={config:R,hashData:F,timestamp:V!==void 0?V:(0,g.h1)()},g.k(z,V8(n),2);case 2:return v=z.U,g.k(z,v.clear("hotConfigStore"),3);case 3:return g.k(z,v.put("hotConfigStore",r),4);case 4:return f=z.U,z.return(f)}})};
HDj=function(R,F,n,V,r){var v,f,z;return g.Y(function(q){switch(q.T){case 1:return v={config:R,hashData:F,configData:n,timestamp:r!==void 0?r:(0,g.h1)()},g.k(q,V8(V),2);case 2:return f=q.U,g.k(q,f.clear("coldConfigStore"),3);case 3:return g.k(q,f.put("coldConfigStore",v),4);case 4:return z=q.U,q.return(z)}})};
hDN=function(R){var F,n;return g.Y(function(V){return V.T==1?g.k(V,V8(R),2):V.T!=3?(F=V.U,n=void 0,g.k(V,g.Og(F,["coldConfigStore"],{mode:"readwrite",Xs:!0},function(r){return g.xs(r.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(v){n=v.getValue()})}),3)):V.return(n)})};
WkW=function(R){var F,n;return g.Y(function(V){return V.T==1?g.k(V,V8(R),2):V.T!=3?(F=V.U,n=void 0,g.k(V,g.Og(F,["hotConfigStore"],{mode:"readwrite",Xs:!0},function(r){return g.xs(r.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(v){n=v.getValue()})}),3)):V.return(n)})};
u39=function(){return g.Y(function(R){return g.k(R,THN("ytGcfConfig"),0)})};
ry=function(){g.G.call(this);this.U=[];this.T=[];var R=g.WM("yt.gcf.config.hotUpdateCallbacks");R?(this.U=[].concat(g.I(R)),this.T=R):(this.T=[],g.h7("yt.gcf.config.hotUpdateCallbacks",this.T))};
Q8=function(){var R=this;this.W=!1;this.N=this.J=0;this.Z=new ry;this.hJ={P7Z:function(){R.W=!0},
oV5:function(){return R.T},
zoQ:function(F){vq(R,F)},
iE:function(F){R.iE(F)},
FqG:function(F){fI(R,F)},
va:function(){return R.coldHashData},
rJ:function(){return R.hotHashData},
YXG:function(){return R.U},
KtS:function(){return tc()},
bS2:function(){return zz()},
BZ2:function(){return g.WM("yt.gcf.config.coldHashData")},
ZSH:function(){return g.WM("yt.gcf.config.hotHashData")},
GRG:function(){BHj(R)},
jk2:function(){R.iE(void 0);qi(R);delete Q8.instance},
b$G:function(F){R.N=F},
Pio:function(){return R.N}}};
m1E=function(){if(!Q8.instance){var R=new Q8;Q8.instance=R}return Q8.instance};
IKN=function(R){var F;g.Y(function(n){if(n.T==1)return g.U2("start_client_gcf")||g.U2("delete_gcf_config_db")?g.U2("start_client_gcf")?g.k(n,g.R5(),3):n.wX(2):n.return();n.T!=2&&((F=n.U)&&g.b6()&&!g.U2("delete_gcf_config_db")?(R.W=!0,BHj(R)):(gxW(R),OD9(R)));return g.U2("delete_gcf_config_db")?g.k(n,u39(),0):n.wX(0)})};
cq=function(){var R;return(R=zz())!=null?R:g.ew("RAW_HOT_CONFIG_GROUP")};
Kkv=function(R){var F,n,V,r,v,f;return g.Y(function(z){switch(z.T){case 1:if(R.U)return z.return(zz());if(!R.W)return F=g.C3("getHotConfig IDB not initialized"),rz(F),z.return(Promise.reject(F));n=Pm();V=g.ew("TIME_CREATED_MS");if(!n){r=g.C3("getHotConfig token error");rz(r);z.wX(2);break}return g.k(z,WkW(n),3);case 3:if((v=z.U)&&v.timestamp>V)return vq(R,v.config),R.iE(v.hashData),z.return(zz());case 2:OD9(R);if(!(n&&R.U&&R.hotHashData)){z.wX(4);break}return g.k(z,jCj(R.U,R.hotHashData,n,V),4);case 4:return R.U?
z.return(zz()):(f=new g.UR("Config not available in ytConfig"),rz(f),z.return(Promise.reject(f)))}})};
iDI=function(R){var F,n,V,r,v,f;return g.Y(function(z){switch(z.T){case 1:if(R.T)return z.return(tc());if(!R.W)return F=g.C3("getColdConfig IDB not initialized"),rz(F),z.return(Promise.reject(F));n=Pm();V=g.ew("TIME_CREATED_MS");if(!n){r=g.C3("getColdConfig");rz(r);z.wX(2);break}return g.k(z,hDN(n),3);case 3:if((v=z.U)&&v.timestamp>V)return fI(R,v.config),D1W(R,v.configData),qi(R,v.hashData),z.return(tc());case 2:gxW(R);if(!(n&&R.T&&R.coldHashData&&R.configData)){z.wX(4);break}return g.k(z,HDj(R.T,
R.coldHashData,R.configData,n,V),4);case 4:return R.T?z.return(tc()):(f=new g.UR("Config not available in ytConfig"),rz(f),z.return(Promise.reject(f)))}})};
BHj=function(R){if(!R.U||!R.T){if(!Pm()){var F=g.C3("scheduleGetConfigs");rz(F)}R.J||(R.J=g.M1.dK(function(){return g.Y(function(n){switch(n.T){case 1:return g.zv(n,2),g.k(n,Kkv(R),4);case 4:g.Qz(n,3);break;case 2:g.cM(n);case 3:return g.zv(n,5),g.k(n,iDI(R),7);case 7:g.Qz(n,6);break;case 5:g.cM(n);case 6:R.J&&(R.J=0),g.rq(n)}})},100))}};
x1E=function(R,F,n){var V,r,v;return g.Y(function(f){switch(f.T){case 1:if(!g.U2("start_client_gcf")){f.wX(0);break}n&&vq(R,n);R.iE(F);V=Pm();if(!V){f.wX(3);break}if(n){f.wX(4);break}return g.k(f,WkW(V),5);case 5:r=f.U,n=(v=r)==null?void 0:v.config;case 4:return g.k(f,jCj(n,F,V),3);case 3:if(n)for(var z=n,q=g.m(R.Z.T),Q=q.next();!Q.done;Q=q.next())Q=Q.value,Q(z);g.rq(f)}})};
kGj=function(R,F,n){var V,r,v,f;return g.Y(function(z){if(z.T==1){if(!g.U2("start_client_gcf"))return z.wX(0);qi(R,F);return(V=Pm())?n?z.wX(4):g.k(z,hDN(V),5):z.wX(0)}z.T!=4&&(r=z.U,n=(v=r)==null?void 0:v.config);if(!n)return z.wX(0);f=n.configData;return g.k(z,HDj(n,F,f,V),0)})};
YB6=function(){var R=m1E(),F=(0,g.h1)()-R.N;if(!(R.N!==0&&F<jP("send_config_hash_timer"))){F=g.WM("yt.gcf.config.coldConfigData");var n=g.WM("yt.gcf.config.hotHashData"),V=g.WM("yt.gcf.config.coldHashData");F&&n&&V&&(R.N=(0,g.h1)());return{coldConfigData:F,hotHashData:n,coldHashData:V}}};
gxW=function(R){fI(R,g.ew("RAW_COLD_CONFIG_GROUP"));qi(R,g.ew("SERIALIZED_COLD_HASH_DATA"));var F;D1W(R,(F=R.T)==null?void 0:F.configData)};
OD9=function(R){vq(R,g.ew("RAW_HOT_CONFIG_GROUP"));R.iE(g.ew("SERIALIZED_HOT_HASH_DATA"))};
vq=function(R,F){R.U=F;g.h7("yt.gcf.config.hotConfigGroup",R.U||null)};
fI=function(R,F){R.T=F;g.h7("yt.gcf.config.coldConfigGroup",R.T||null)};
qi=function(R,F){R.coldHashData=F;g.h7("yt.gcf.config.coldHashData",R.coldHashData||null)};
D1W=function(R,F){R.configData=F;g.h7("yt.gcf.config.coldConfigData",R.configData||null)};
zz=function(){return g.WM("yt.gcf.config.hotConfigGroup")};
tc=function(){return g.WM("yt.gcf.config.coldConfigGroup")};
Jm9=function(){return"INNERTUBE_API_KEY"in bg&&"INNERTUBE_API_VERSION"in bg};
g.wy=function(){return{innertubeApiKey:g.ew("INNERTUBE_API_KEY"),innertubeApiVersion:g.ew("INNERTUBE_API_VERSION"),cn:g.ew("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),aJ:g.ew("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),tF:g.ew("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.ew("INNERTUBE_CONTEXT_CLIENT_VERSION"),yD:g.ew("INNERTUBE_CONTEXT_HL"),pU:g.ew("INNERTUBE_CONTEXT_GL"),Mi:g.ew("INNERTUBE_HOST_OVERRIDE")||"",nz:!!g.ew("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),fo1:!!g.ew("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.ew("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.Sf=function(R){var F={client:{hl:R.yD,gl:R.pU,clientName:R.aJ,clientVersion:R.innertubeContextClientVersion,configInfo:R.cn}};navigator.userAgent&&(F.client.userAgent=String(navigator.userAgent));var n=g.HM.devicePixelRatio;n&&n!=1&&(F.client.screenDensityFloat=String(n));n=HC();n!==""&&(F.client.experimentsToken=n);n=hj();n.length>0&&(F.request={internalExperimentFlags:n});GG9(R,void 0,F);d1N(void 0,F);MI9(void 0,F);lKe(R,void 0,F);NHJ(void 0,F);g.U2("start_client_gcf")&&Exv(void 0,F);g.ew("DELEGATED_SESSION_ID")&&
!g.U2("pageid_as_header_web")&&(F.user={onBehalfOfUser:g.ew("DELEGATED_SESSION_ID")});!g.U2("fill_delegate_context_in_gel_killswitch")&&(R=g.ew("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(F.user=Object.assign({},F.user,{serializedDelegationContext:R}));R=g.ew("INNERTUBE_CONTEXT");var V;if(g.U2("enable_persistent_device_token")&&(R==null?0:(V=R.client)==null?0:V.rolloutToken)){var r;F.client.rolloutToken=R==null?void 0:(r=R.client)==null?void 0:r.rolloutToken}V=Object;r=V.assign;R=F.client;
n={};for(var v=g.m(Object.entries(Xj(g.ew("DEVICE","")))),f=v.next();!f.done;f=v.next()){var z=g.m(f.value);f=z.next().value;z=z.next().value;f==="cbrand"?n.deviceMake=z:f==="cmodel"?n.deviceModel=z:f==="cbr"?n.browserName=z:f==="cbrver"?n.browserVersion=z:f==="cos"?n.osName=z:f==="cosver"?n.osVersion=z:f==="cplatform"&&(n.platform=z)}F.client=r.call(V,R,n);return F};
GG9=function(R,F,n){R=R.aJ;if(R==="WEB"||R==="MWEB"||R===1||R===2)if(F){n=dp(F,IH,96)||new IH;var V=JL();V=Object.keys($1J).indexOf(V);V=V===-1?null:V;V!==null&&v4(n,3,V);Nm(F,IH,96,n)}else n&&(n.client.mainAppWebInfo=(V=n.client.mainAppWebInfo)!=null?V:{},n.client.mainAppWebInfo.webDisplayMode=JL())};
d1N=function(R,F){var n=g.WM("yt.embedded_player.embed_url");n&&(R?(F=dp(R,kL,7)||new kL,V7(F,4,n),Nm(R,kL,7,F)):F&&(F.thirdParty={embedUrl:n}))};
MI9=function(R,F){var n;if(g.U2("web_log_memory_total_kbytes")&&((n=g.HM.navigator)==null?0:n.deviceMemory)){var V;n=(V=g.HM.navigator)==null?void 0:V.deviceMemory;R?Ud(R,95,EJ(n*1E6)):F&&(F.client.memoryTotalKbytes=""+n*1E6)}};
lKe=function(R,F,n){if(R.appInstallData)if(F){var V;n=(V=dp(F,O3,62))!=null?V:new O3;V7(n,6,R.appInstallData);Nm(F,O3,62,n)}else n&&(n.client.configInfo=n.client.configInfo||{},n.client.configInfo.appInstallData=R.appInstallData)};
NHJ=function(R,F){var n=mvf();n&&(R?v4(R,61,PMf[n]):F&&(F.client.connectionType=n));g.U2("web_log_effective_connection_type")&&(n=OaW())&&(R?v4(R,94,bDJ[n]):F&&(F.client.effectiveConnectionType=n))};
ZDV=function(R,F,n){n=n===void 0?{}:n;var V={};g.ew("EOM_VISITOR_DATA")?V={"X-Goog-EOM-Visitor-Id":g.ew("EOM_VISITOR_DATA")}:V={"X-Goog-Visitor-Id":n.visitorData||g.ew("VISITOR_DATA","")};if(F&&F.includes("www.youtube-nocookie.com"))return V;F=n.Iv||g.ew("AUTHORIZATION");F||(R?F="Bearer "+g.WM("gapi.auth.getToken")().access_token:(R=jFV().ut(LI),g.U2("pageid_as_header_web")||delete R["X-Goog-PageId"],V=Object.assign({},V,R)));F&&(V.Authorization=F);return V};
Exv=function(R,F){var n=YB6();if(n){var V=n.coldConfigData,r=n.coldHashData;n=n.hotHashData;if(R){var v;F=(v=dp(R,O3,62))!=null?v:new O3;V=V7(F,1,V);V7(V,3,r).iE(n);Nm(R,O3,62,F)}else F&&(F.client.configInfo=F.client.configInfo||{},V&&(F.client.configInfo.coldConfigData=V),r&&(F.client.configInfo.coldHashData=r),n&&(F.client.configInfo.hotHashData=n))}};
s5=function(R,F){this.version=R;this.args=F};
pI=function(R,F){this.topic=R;this.T=F};
Ac=function(R,F){var n=XD();n&&n.publish.call(n,R.toString(),R,F)};
F9E=function(R){var F=eDk,n=XD();if(!n)return 0;var V=n.subscribe(F.toString(),function(r,v){var f=g.WM("ytPubsub2Pubsub2SkipSubKey");f&&f==V||(f=function(){if(a5[V])try{if(v&&F instanceof pI&&F!=r)try{var z=F.T,q=v;if(!q.args||!q.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!z.QT){var Q=new z;z.QT=Q.version}var c=z.QT}catch(w){}if(!c||q.version!=c)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{v=Reflect.construct(z,
g.f4(q.args))}catch(w){throw w.message="yt.pubsub2.Data.deserialize(): "+w.message,w;}}catch(w){throw w.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+F.toString()+": "+w.message,w;}R.call(window,v)}catch(w){g.n$(w)}},RoI[F.toString()]?g.VM()?g.M1.dK(f):g.ak(f,0):f())});
a5[V]=!0;CI[F.toString()]||(CI[F.toString()]=[]);CI[F.toString()].push(V);return V};
r$9=function(){var R=neI,F=F9E(function(n){R.apply(void 0,arguments);VCN(F)});
return F};
VCN=function(R){var F=XD();F&&(typeof R==="number"&&(R=[R]),g.az(R,function(n){F.unsubscribeByKey(n);delete a5[n]}))};
XD=function(){return g.WM("ytPubsub2Pubsub2Instance")};
Tz=function(R,F,n){n=n===void 0?{sampleRate:.1}:n;Math.random()<Math.min(.02,n.sampleRate/100)&&Ac("meta_logging_csi_event",{timerName:R,hoH:F})};
ve6=function(){o5||(o5=BU(g.ew("WORKER_SERIALIZATION_URL")));return o5||void 0};
U5=function(){var R=ve6();y8||R===void 0||(y8=new Worker(oe(R),void 0));return y8};
fAW=function(){return typeof Worker==="function"&&ve6()?!0:!1};
zoE=function(){if(fAW()&&!jf){var R=function(n){n=n.data;if(n.op==="gzippedGelBatch"){var V=Hq.get(n.key);V&&(tCj(n.gzippedBatch,V.latencyPayload,V.url,V.options,V.sendFn),Hq.delete(n.key))}},F=U5();
F&&(F.addEventListener("message",R),F.onerror=function(){Hq.clear()},jf=!0)}};
ur=function(R,F,n,V,r){r=r===void 0?!1:r;var v={startTime:(0,g.h1)(),ticks:{},infos:{}};if(hc)try{var f=qAW(F);if(f!=null&&(f>QpE||f<c$W))V(R,n);else{if(g.U2("gzip_gel_with_worker")){jf||zoE();var z=U5();if(z&&!r){Hq.set(Wq,{latencyPayload:v,url:R,options:n,sendFn:V});z.postMessage({op:"gelBatchToGzip",serializedBatch:F,key:Wq});Wq++;return}}var q=vvv(wtk(F));tCj(q,v,R,n,V)}}catch(Q){rz(Q),V(R,n)}else V(R,n)};
tCj=function(R,F,n,V,r){var v=(0,g.h1)();F.ticks.gelc=v;Bq++;g.U2("disable_compression_due_to_performance_degredation")&&v-F.startTime>=SAN&&(mC++,hc=!1);L99(F);V.headers||(V.headers={});V.headers["Content-Encoding"]="gzip";V.postBody=R;V.postParams=void 0;r(n,V)};
ptN=function(R){var F=F===void 0?!1:F;var n=n===void 0?!1:n;var V=(0,g.h1)(),r={startTime:V,ticks:{},infos:{}},v=F?g.WM("yt.logging.gzipForFetch",!1):!0;if(hc&&v){if(!R.body)return R;try{var f=n?R.body:typeof R.body==="string"?R.body:JSON.stringify(R.body);v=f;if(!n&&typeof f==="string"){var z=qAW(f);if(z!=null&&(z>QpE||z<c$W))return R;n=F?{level:1}:void 0;v=vvv(wtk(f),n);var q=(0,g.h1)();r.ticks.gelc=q;if(F){Bq++;if((g.U2("disable_compression_due_to_performance_degredation")||g.U2("disable_compression_due_to_performance_degradation_lr"))&&
q-V>=SAN)if(mC++,g.U2("abandon_compression_after_N_slow_zips_lr")){F=mC/Bq;var Q=spE/jP("compression_disable_point");Bq>0&&Bq%jP("compression_disable_point")===0&&F>=Q&&(hc=!1)}else hc=!1;L99(r)}}R.headers=Object.assign({},{"Content-Encoding":"gzip"},R.headers||{});R.body=v;return R}catch(c){return rz(c),R}}else return R};
qAW=function(R){try{return(new Blob(R.split(""))).size}catch(F){return rz(F),null}};
L99=function(R){g.U2("gel_compression_csi_killswitch")||!g.U2("log_gel_compression_latency")&&!g.U2("log_gel_compression_latency_lr")||Tz("gel_compression",R,{sampleRate:.1})};
O5=function(R){var F=this;this.Ao=this.T=!1;this.potentialEsfErrorCounter=this.U=0;this.handleError=function(){};
this.VX=function(){};
this.now=Date.now;this.Yx=!1;this.hJ={By1:function(c){F.Dj=c},
uL5:function(){F.dA()},
RR:function(){F.bT()},
Iw:function(c){return g.Y(function(w){return g.k(w,F.Iw(c),0)})},
MR:function(c,w){return F.MR(c,w)},
gE:function(){F.gE()}};
var n;this.eA=(n=R.eA)!=null?n:100;var V;this.Dc=(V=R.Dc)!=null?V:1;var r;this.Zc=(r=R.Zc)!=null?r:2592E6;var v;this.wB=(v=R.wB)!=null?v:12E4;var f;this.IA=(f=R.IA)!=null?f:5E3;var z;this.Dj=(z=R.Dj)!=null?z:void 0;this.G5=!!R.G5;var q;this.z5=(q=R.z5)!=null?q:.1;var Q;this.im=(Q=R.im)!=null?Q:10;R.handleError&&(this.handleError=R.handleError);R.VX&&(this.VX=R.VX);R.Yx&&(this.Yx=R.Yx);R.Ao&&(this.Ao=R.Ao);this.GH=R.GH;this.BX=R.BX;this.g2=R.g2;this.Q6=R.Q6;this.sendFn=R.sendFn;this.c9=R.c9;this.sP=
R.sP;gy(this)&&(!this.GH||this.GH("networkless_logging"))&&XtE(this)};
XtE=function(R){gy(R)&&!R.Yx&&(R.T=!0,R.G5&&Math.random()<=R.z5&&R.g2.iN(R.Dj),R.gE(),R.Q6.AO()&&R.dA(),R.Q6.listen(R.c9,R.dA.bind(R)),R.Q6.listen(R.sP,R.bT.bind(R)))};
CaE=function(R,F){if(!gy(R))throw Error("IndexedDB is not supported: updateRequestHandlers");var n=F.options.onError?F.options.onError:function(){};
F.options.onError=function(r,v){var f,z,q,Q;return g.Y(function(c){switch(c.T){case 1:f=A$6(v);(z=aAR(v))&&R.GH&&R.GH("web_enable_error_204")&&R.handleError(Error("Request failed due to compression"),F.url,v);if(!(R.GH&&R.GH("nwl_consider_error_code")&&f||R.GH&&!R.GH("nwl_consider_error_code")&&R.potentialEsfErrorCounter<=R.im)){c.wX(2);break}if(!R.Q6.rE){c.wX(3);break}return g.k(c,R.Q6.rE(),3);case 3:if(R.Q6.AO()){c.wX(2);break}n(r,v);if(!R.GH||!R.GH("nwl_consider_error_code")||((q=F)==null?void 0:
q.id)===void 0){c.wX(6);break}return g.k(c,R.g2.JR(F.id,R.Dj,!1),6);case 6:return c.return();case 2:if(R.GH&&R.GH("nwl_consider_error_code")&&!f&&R.potentialEsfErrorCounter>R.im)return c.return();R.potentialEsfErrorCounter++;if(((Q=F)==null?void 0:Q.id)===void 0){c.wX(8);break}return F.sendCount<R.Dc?g.k(c,R.g2.JR(F.id,R.Dj,!0,z?!1:void 0),12):g.k(c,R.g2.sy(F.id,R.Dj),8);case 12:R.BX.dK(function(){R.Q6.AO()&&R.dA()},R.IA);
case 8:n(r,v),g.rq(c)}})};
var V=F.options.onSuccess?F.options.onSuccess:function(){};
F.options.onSuccess=function(r,v){var f;return g.Y(function(z){if(z.T==1)return((f=F)==null?void 0:f.id)===void 0?z.wX(2):g.k(z,R.g2.sy(F.id,R.Dj),2);R.Q6.J6&&R.GH&&R.GH("vss_network_hint")&&R.Q6.J6(!0);V(r,v);g.rq(z)})};
return F};
I5=function(R,F){R.Cq&&!R.Q6.AO()?R.Cq(F):R.handleError(F)};
gy=function(R){return!!R.Dj||R.Ao};
A$6=function(R){var F;return(R=R==null?void 0:(F=R.error)==null?void 0:F.code)&&R>=400&&R<=599?!1:!0};
aAR=function(R){var F;R=R==null?void 0:(F=R.error)==null?void 0:F.code;return!(R!==400&&R!==415)};
TsW=function(){if(KI)return KI();var R={};KI=g.nI("LogsDatabaseV2",{vO:(R.LogsRequestsStore={r4:2},R),shared:!1,upgrade:function(F,n,V){n(2)&&g.Bm(F,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});n(3);n(5)&&(V=V.objectStore("LogsRequestsStore"),V.T.indexNames.contains("newRequest")&&V.T.deleteIndex("newRequest"),g.I8(V,"newRequestV2",["status","interface","timestamp"]));n(7)&&m2(F,"sapisid");n(9)&&m2(F,"SWHealthLog")},
version:9});return KI()};
D1=function(R){return g.GR(TsW(),R)};
y$f=function(R,F){var n,V,r,v;return g.Y(function(f){if(f.T==1)return n={startTime:(0,g.h1)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.k(f,D1(F),2);if(f.T!=3)return V=f.U,r=Object.assign({},R,{options:JSON.parse(JSON.stringify(R.options)),interface:g.ew("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.k(f,V.put("LogsRequestsStore",r),3);v=f.U;n.ticks.tc=(0,g.h1)();oeW(n);return f.return(v)})};
UX_=function(R,F){var n,V,r,v,f,z,q,Q,c;return g.Y(function(w){if(w.T==1)return n={startTime:(0,g.h1)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.k(w,D1(F),2);if(w.T!=3)return V=w.U,r=g.ew("INNERTUBE_CONTEXT_CLIENT_NAME",0),v=[R,r,0],f=[R,r,(0,g.h1)()],z=IDBKeyRange.bound(v,f),q="prev",g.U2("use_fifo_for_networkless")&&(q="next"),Q=void 0,c=R==="NEW"?"readwrite":"readonly",g.U2("use_readonly_for_get_most_recent_by_status_killswitch")&&(c="readwrite"),g.k(w,g.Og(V,["LogsRequestsStore"],
{mode:c,Xs:!0},function(L){return g.xs(L.objectStore("LogsRequestsStore").index("newRequestV2"),{query:z,direction:q},function(S){S.getValue()&&(Q=S.getValue(),R==="NEW"&&(Q.status="QUEUED",S.update(Q)))})}),3);
n.ticks.tc=(0,g.h1)();oeW(n);return w.return(Q)})};
jpv=function(R,F){var n;return g.Y(function(V){if(V.T==1)return g.k(V,D1(F),2);n=V.U;return V.return(g.Og(n,["LogsRequestsStore"],{mode:"readwrite",Xs:!0},function(r){var v=r.objectStore("LogsRequestsStore");return v.get(R).then(function(f){if(f)return f.status="QUEUED",v.put(f).then(function(){return f})})}))})};
HOe=function(R,F,n,V){n=n===void 0?!0:n;var r;return g.Y(function(v){if(v.T==1)return g.k(v,D1(F),2);r=v.U;return v.return(g.Og(r,["LogsRequestsStore"],{mode:"readwrite",Xs:!0},function(f){var z=f.objectStore("LogsRequestsStore");return z.get(R).then(function(q){return q?(q.status="NEW",n&&(q.sendCount+=1),V!==void 0&&(q.options.compress=V),z.put(q).then(function(){return q})):g.o8.resolve(void 0)})}))})};
hok=function(R,F){var n;return g.Y(function(V){if(V.T==1)return g.k(V,D1(F),2);n=V.U;return V.return(n.delete("LogsRequestsStore",R))})};
W9_=function(R){var F,n;return g.Y(function(V){if(V.T==1)return g.k(V,D1(R),2);F=V.U;n=(0,g.h1)()-2592E6;return g.k(V,g.Og(F,["LogsRequestsStore"],{mode:"readwrite",Xs:!0},function(r){return g.K3(r.objectStore("LogsRequestsStore"),{},function(v){if(v.getValue().timestamp<=n)return v.delete().then(function(){return g.DY(v)})})}),0)})};
uKv=function(){g.Y(function(R){return g.k(R,THN("LogsDatabaseV2"),0)})};
oeW=function(R){g.U2("nwl_csi_killswitch")||Tz("networkless_performance",R,{sampleRate:1})};
mXk=function(R){return g.GR(BsW(),R)};
gej=function(R){var F,n;g.Y(function(V){if(V.T==1)return g.k(V,mXk(R),2);F=V.U;n=(0,g.h1)()-2592E6;return g.k(V,g.Og(F,["SWHealthLog"],{mode:"readwrite",Xs:!0},function(r){return g.K3(r.objectStore("SWHealthLog"),{},function(v){if(v.getValue().timestamp<=n)return v.delete().then(function(){return g.DY(v)})})}),0)})};
OOW=function(R){var F;return g.Y(function(n){if(n.T==1)return g.k(n,mXk(R),2);F=n.U;return g.k(n,F.clear("SWHealthLog"),0)})};
g.ir=function(R,F,n,V,r,v,f){r=r===void 0?"":r;v=v===void 0?!1:v;f=f===void 0?!1:f;if(R)if(n&&!g.PC())rz(new g.UR("Legacy referrer-scrubbed ping detected")),R&&IAj(R,void 0,{scrubReferrer:!0});else if(r)WC(R,F,"POST",r,V);else if(g.ew("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||V||f)WC(R,F,"GET","",V,void 0,v,f);else{b:{try{c:{var z=new $mN({url:R});if(z.T.dsh==="1")var q=null;else{var Q=z.T.ae;if(Q==="1"){var c=z.T.adurl;if(c)try{q={version:3,g3:decodeURIComponent(c),Cr:z8(z.U,"act=1","ri=1",P3N(z))};
break c}catch(S){}}q=Q==="2"?{version:4,g3:z8(z.U,"dct=1","suid="+z.N,"ri=1"),Cr:z8(z.U,"act=1","ri=1","suid="+z.N)}:null}}if(q){var w=Ba(R);var L=!(!w||!w.endsWith("/aclk")||Ym(R,"ri")!=="1");break b}}catch(S){}L=!1}L?K9e(R)?(F&&F(),n=!0):n=!1:n=!1;n||IAj(R,F)}};
K9e=function(R,F){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(R,F===void 0?"":F))return!0}catch(n){}return!1};
IAj=function(R,F,n){n=n===void 0?{}:n;var V=new Image,r=""+DXN++;xS[r]=V;V.onload=V.onerror=function(){F&&xS[r]&&F();delete xS[r]};
n.scrubReferrer&&(V.referrerPolicy="no-referrer");V.src=R};
iON=function(R){var F;return((F=document.featurePolicy)==null?0:F.allowedFeatures().includes("attribution-reporting"))?R+"&nis=6":R+"&nis=5"};
YS=function(){kS||(kS=new vm("yt.offline"));return kS};
xXJ=function(R){if(g.U2("offline_error_handling")){var F=YS().get("errors",!0)||{};F[R.message]={name:R.name,stack:R.stack};R.level&&(F[R.message].level=R.level);YS().set("errors",F,2592E3,!0)}};
Jc=function(){this.T=new Map;this.U=!1};
k0f=function(){if(!Jc.instance){var R=g.WM("yt.networkRequestMonitor.instance")||new Jc;g.h7("yt.networkRequestMonitor.instance",R);Jc.instance=R}return Jc.instance};
Gz=function(){g.TC.call(this);var R=this;this.U=!1;this.T=FF6();this.T.listen("networkstatus-online",function(){if(R.U&&g.U2("offline_error_handling")){var F=YS().get("errors",!0);if(F){for(var n in F)if(F[n]){var V=new g.UR(n,"sent via offline_errors");V.name=F[n].name;V.stack=F[n].stack;V.level=F[n].level;g.n$(V)}YS().set("errors",{},2592E3,!0)}}})};
YAN=function(){if(!Gz.instance){var R=g.WM("yt.networkStatusManager.instance")||new Gz;g.h7("yt.networkStatusManager.instance",R);Gz.instance=R}return Gz.instance};
g.dy=function(R){R=R===void 0?{}:R;g.TC.call(this);var F=this;this.T=this.J=0;this.U=YAN();var n=g.WM("yt.networkStatusManager.instance.listen").bind(this.U);n&&(R.rateLimit?(this.rateLimit=R.rateLimit,n("networkstatus-online",function(){J$E(F,"publicytnetworkstatus-online")}),n("networkstatus-offline",function(){J$E(F,"publicytnetworkstatus-offline")})):(n("networkstatus-online",function(){F.dispatchEvent("publicytnetworkstatus-online")}),n("networkstatus-offline",function(){F.dispatchEvent("publicytnetworkstatus-offline")})))};
J$E=function(R,F){R.rateLimit?R.T?(g.M1.iq(R.J),R.J=g.M1.dK(function(){R.N!==F&&(R.dispatchEvent(F),R.N=F,R.T=(0,g.h1)())},R.rateLimit-((0,g.h1)()-R.T))):(R.dispatchEvent(F),R.N=F,R.T=(0,g.h1)()):R.dispatchEvent(F)};
lr=function(){var R=O5.call;Mi||(Mi=new g.dy({gpZ:!0,YCZ:!0}));R.call(O5,this,{g2:{iN:W9_,sy:hok,M1:UX_,gFo:jpv,JR:HOe,set:y$f},Q6:Mi,handleError:function(F,n,V){var r,v=V==null?void 0:(r=V.error)==null?void 0:r.code;if(v===400||v===415){var f;F=new g.UR(F.message,n,V==null?void 0:(f=V.error)==null?void 0:f.code);rz(F,void 0,void 0,void 0,!0)}else g.n$(F)},
VX:rz,sendFn:G0f,now:g.h1,Cq:xXJ,BX:g.n3(),c9:"publicytnetworkstatus-online",sP:"publicytnetworkstatus-offline",G5:!0,z5:.1,im:jP("potential_esf_error_limit",10),GH:g.U2,Yx:!(g.b6()&&g.u5(document.location.toString())!=="www.youtube-nocookie.com")});this.N=new g.pa;g.U2("networkless_immediately_drop_all_requests")&&uKv();oxj("LogsDatabaseV2")};
Ni=function(){var R=g.WM("yt.networklessRequestController.instance");R||(R=new lr,g.h7("yt.networklessRequestController.instance",R),g.U2("networkless_logging")&&g.R5().then(function(F){R.Dj=F;XtE(R);R.N.resolve();R.G5&&Math.random()<=R.z5&&R.Dj&&gej(R.Dj);g.U2("networkless_immediately_drop_sw_health_store")&&dXV(R)}));
return R};
dXV=function(R){var F;g.Y(function(n){if(!R.Dj)throw F=g.C3("clearSWHealthLogsDb"),F;return n.return(OOW(R.Dj).catch(function(V){R.handleError(V)}))})};
G0f=function(R,F,n,V){V=V===void 0?!1:V;F=g.U2("web_fp_via_jspb")?Object.assign({},F):F;if(g.U2("use_request_time_ms_header"))F.headers&&cC(R)&&(F.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.h1)())));else{var r;if((r=F.postParams)==null?0:r.requestTimeMs)F.postParams.requestTimeMs=Math.round((0,g.h1)())}n&&Object.keys(F).length===0?g.ir(R):F.compress?F.postBody?(typeof F.postBody!=="string"&&(F.postBody=JSON.stringify(F.postBody)),ur(R,F.postBody,F,g.ux,V)):ur(R,JSON.stringify(F.postParams),
F,BC,V):g.ux(R,F)};
E5=function(R,F){g.U2("use_event_time_ms_header")&&cC(R)&&(F.headers||(F.headers={}),F.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.h1)())));return F};
g.$S=function(R){this.config_=null;R?this.config_=R:Jm9()&&(this.config_=g.wy())};
g.Pq=function(R,F,n,V){function r(Q){try{if((Q===void 0?0:Q)&&V.retry&&!V.networklessOptions.bypassNetworkless)v.method="POST",V.networklessOptions.writeThenSend?Ni().writeThenSend(q,v):Ni().sendAndWrite(q,v);else if(V.compress){var c=!V.networklessOptions.writeThenSend;if(v.postBody){var w=v.postBody;typeof w!=="string"&&(w=JSON.stringify(v.postBody));ur(q,w,v,g.ux,c)}else ur(q,JSON.stringify(v.postParams),v,BC,c)}else BC(q,v)}catch(L){if(L.name==="InvalidAccessError")rz(Error("An extension is blocking network request."));
else throw L;}}
!g.ew("VISITOR_DATA")&&F!=="visitor_id"&&Math.random()<.01&&rz(new g.UR("Missing VISITOR_DATA when sending innertube request.",F,n,V));if(!R.isReady())throw R=new g.UR("innertube xhrclient not ready",F,n,V),g.n$(R),R;var v={headers:V.headers||{},method:"POST",postParams:n,postBody:V.postBody,postBodyFormat:V.postBodyFormat||"JSON",onTimeout:function(){V.onTimeout()},
onFetchTimeout:V.onTimeout,onSuccess:function(Q,c){if(V.onSuccess)V.onSuccess(c)},
onFetchSuccess:function(Q){if(V.onSuccess)V.onSuccess(Q)},
onProgress:function(Q){if(V.onProgress)V.onProgress(Q)},
onError:function(Q,c){if(V.onError)V.onError(c)},
onFetchError:function(Q){if(V.onError)V.onError(Q)},
timeout:V.timeout,withCredentials:!0,compress:V.compress};v.headers["Content-Type"]||(v.headers["Content-Type"]="application/json");n="";var f=R.config_.Mi;f&&(n=f);f=R.config_.nz||!1;var z=ZDV(f,n,V);Object.assign(v.headers,z);v.headers.Authorization&&!n&&f&&(v.headers["x-origin"]=window.location.origin);var q=ql(""+n+("/youtubei/"+R.config_.innertubeApiVersion+"/"+F),{alt:"json"});g.WM("ytNetworklessLoggingInitializationOptions")&&MCk.isNwlInitialized?LkJ().then(function(Q){r(Q)}):r(!1)};
g.Fm=function(R,F,n){var V=g.br();if(V&&F){var r=V.subscribe(R,function(){function v(){Z1[r]&&F.apply&&typeof F.apply=="function"&&F.apply(n||window,f)}
var f=arguments;try{g.ef[R]?v():g.ak(v,0)}catch(z){g.n$(z)}},n);
Z1[r]=!0;RS[R]||(RS[R]=[]);RS[R].push(r);return r}return 0};
lAW=function(R){var F=g.Fm("LOGGED_IN",function(n){R.apply(void 0,arguments);g.nr(F)})};
g.nr=function(R){var F=g.br();F&&(typeof R==="number"?R=[R]:typeof R==="string"&&(R=[parseInt(R,10)]),g.az(R,function(n){F.unsubscribeByKey(n);delete Z1[n]}))};
g.V9=function(R,F){var n=g.br();return n?n.publish.apply(n,arguments):!1};
Eev=function(R){var F=g.br();if(F)if(F.clear(R),R)Nsk(R);else for(var n in RS)Nsk(n)};
g.br=function(){return g.HM.ytPubsubPubsubInstance};
Nsk=function(R){RS[R]&&(R=RS[R],g.az(R,function(F){Z1[F]&&delete Z1[F]}),R.length=0)};
g.rG=function(R,F,n){$XN(R,F,n===void 0?null:n)};
$XN=function(R,F,n){n=n===void 0?null:n;var V=Pa9(typeof R==="string"?R:R.toString()),r=document.getElementById(V),v=r&&QFR(r),f=r&&!v;v?F&&F():(F&&(v=g.Fm(V,F),F=""+g.x$(F),bOJ[F]=v),f||(r=ZON(R,V,function(){QFR(r)||(qi9(r),g.V9(V),g.ak(function(){Eev(V)},0))},n)))};
ZON=function(R,F,n,V){V=V===void 0?null:V;var r=g.gu("SCRIPT");r.id=F;r.onload=function(){n&&setTimeout(n,0)};
r.onreadystatechange=function(){switch(r.readyState){case "loaded":case "complete":r.onload()}};
V&&r.setAttribute("nonce",V);g.k6(r,typeof R==="string"?g.m3(R):R);R=document.getElementsByTagName("head")[0]||document.body;R.insertBefore(r,R.firstChild);return r};
Pa9=function(R){var F=document.createElement("a");g.uS(F,R);R=F.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+bS(R)};
vj=function(R,F){if(R===F)R=!0;else if(Array.isArray(R)&&Array.isArray(F))R=g.Xu(R,F,vj);else if(g.ID(R)&&g.ID(F))a:if(g.Ho(R).length!=g.Ho(F).length)R=!1;else{for(var n in R)if(!vj(R[n],F[n])){R=!1;break a}R=!0}else R=!1;return R};
zM=function(R){var F=g.Cq.apply(1,arguments);if(!fr(R)||F.some(function(V){return!fr(V)}))throw Error("Only objects may be merged.");
F=g.m(F);for(var n=F.next();!n.done;n=F.next())tw(R,n.value)};
tw=function(R,F){for(var n in F)if(fr(F[n])){if(n in R&&!fr(R[n]))throw Error("Cannot merge an object into a non-object.");n in R||(R[n]={});tw(R[n],F[n])}else if(qM(F[n])){if(n in R&&!qM(R[n]))throw Error("Cannot merge an array into a non-array.");n in R||(R[n]=[]);eoN(R[n],F[n])}else R[n]=F[n];return R};
eoN=function(R,F){F=g.m(F);for(var n=F.next();!n.done;n=F.next())n=n.value,fr(n)?R.push(tw({},n)):qM(n)?R.push(eoN([],n)):R.push(n);return R};
fr=function(R){return typeof R==="object"&&!Array.isArray(R)};
qM=function(R){return typeof R==="object"&&Array.isArray(R)};
Q9=function(R){g.G.call(this);this.U=R};
cj=function(R){Q9.call(this,!0);this.T=R};
wG=function(R,F){g.G.call(this);var n=this;this.N=[];this.X=!1;this.U=0;this.W=this.Z=this.J=!1;this.Nq=null;var V=(0,g.k$)(R,F);this.T=new g.ZK(function(){return V(n.Nq)},300);
g.d(this,this.T);this.UZ=this.V=Infinity};
RLW=function(R,F){if(!F)return!1;for(var n=0;n<F.length;n++){var V=F.item(n);if(V&&R.N.includes(V.identifier))return!0}return!1};
Lr=function(R){if(window.crypto&&window.crypto.getRandomValues)try{var F=Array(R),n=new Uint8Array(R);window.crypto.getRandomValues(n);for(var V=0;V<F.length;V++)F[V]=n[V];return F}catch(v){}F=Array(R);for(n=0;n<R;n++){V=Date.now();for(var r=0;r<V%23;r++)F[n]=Math.random();F[n]=Math.floor(Math.random()*256)}if(Sr)for(n=1,V=0;V<Sr.length;V++)F[n%R]^=F[(n-1)%R]/4^Sr.charCodeAt(V),n++;return F};
g.s$=function(R){R=Lr(R);for(var F=[],n=0;n<R.length;n++)F.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(R[n]&63));return F.join("")};
g.F3k=function(){return g.OM(Lr(16),function(R){return(R&15).toString(16)}).join("")};
VwV=function(){var R={};var F=R.qwH===void 0?!1:R.qwH;R=R.H1===void 0?!0:R.H1;if(g.WM("_lact",window)==null){var n=parseInt(g.ew("LACT"),10);n=isFinite(n)?Date.now()-Math.max(n,0):-1;g.h7("_lact",n,window);g.h7("_fact",n,window);n==-1&&pr();nLv(F,R);new gf(function(){Xm("mouse",100)})}};
nLv=function(R,F){var n=window;R=R===void 0?!1:R;F=F===void 0?!0:F;g.Wc(n.document,"keydown",pr);g.Wc(n.document,"keyup",pr);g.Wc(n.document,"mousedown",pr);g.Wc(n.document,"mouseup",pr);R?g.Wc(n,"touchmove",function(){Xm("touchmove",200)},{passive:!0}):(g.Wc(n,"resize",function(){Xm("resize",200)}),F&&g.Wc(n,"scroll",function(){Xm("scroll",200)}));
g.Wc(n.document,"touchstart",pr,{passive:!0});g.Wc(n.document,"touchend",pr,{passive:!0})};
Xm=function(R,F){Aw[R]||(Aw[R]=!0,g.M1.dK(function(){pr();Aw[R]=!1},F))};
pr=function(){g.WM("_lact",window)==null&&(VwV(),g.WM("_lact",window));var R=Date.now();g.h7("_lact",R,window);g.WM("_fact",window)==-1&&g.h7("_fact",R,window);(R=g.WM("ytglobal.ytUtilActivityCallback_"))&&R()};
aS=function(){var R=g.WM("_lact",window);return R==null?-1:Math.max(Date.now()-R,0)};
Cr=function(R){this.name=R};
TM=function(R){this.key=R};
oS=function(R){return new TM(R)};
rtE=function(){var R=this;this.T=new Map;this.N=new Map;this.U=new Map;this.hJ={ero:function(){return new Map(R.T)}}};
y9=function(R,F){R.T.set(F.Xi,F);var n=R.N.get(F.Xi);if(n)try{n.iy(R.resolve(F.Xi))}catch(V){n.xs(V)}};
jr=function(R,F,n,V){V=V===void 0?!1:V;if(n.indexOf(F)>-1)throw Error("Deps cycle for: "+F);if(R.U.has(F))return R.U.get(F);if(!R.T.has(F)){if(V)return;throw Error("No provider for: "+F);}V=R.T.get(F);n.push(F);if(V.vD!==void 0)var r=V.vD;else if(V.GZS)r=V[U$]?vLI(R,V[U$],n):[],r=V.GZS.apply(V,g.I(r));else if(V.Rf){r=V.Rf;var v=r[U$]?vLI(R,r[U$],n):[];r=new (Function.prototype.bind.apply(r,[null].concat(g.I(v))))}else throw Error("Could not resolve providers for: "+F);n.pop();V.SkH||R.U.set(F,r);
return r};
vLI=function(R,F,n){return F?F.map(function(V){return V instanceof TM?jr(R,V.key,n,!0):jr(R,V,n)}):[]};
hw=function(){Hj||(Hj=new rtE);return Hj};
twV=function(){var R=fJE;return function(){var F=hw();if(!F.resolve(oS(R))){var n={};y9(F,(n.Xi=R,n.Rf=R,n[U$]=void 0,n))}return F.resolve(R)}};
uE=function(){var R,F;return"h5vcc"in Wj&&((R=Wj.h5vcc.traceEvent)==null?0:R.traceBegin)&&((F=Wj.h5vcc.traceEvent)==null?0:F.traceEnd)?1:"performance"in Wj&&Wj.performance.mark&&Wj.performance.measure?2:0};
Bj=function(R){var F=uE();switch(F){case 1:Wj.h5vcc.traceEvent.traceBegin("YTLR",R);break;case 2:Wj.performance.mark(R+"-start");break;case 0:break;default:B$(F,"unknown trace type")}};
zL_=function(R){var F=uE();switch(F){case 1:Wj.h5vcc.traceEvent.traceEnd("YTLR",R);break;case 2:F=R+"-start";var n=R+"-end";Wj.performance.mark(n);Wj.performance.measure(R,F,n);break;case 0:break;default:B$(F,"unknown trace type")}};
q3_=function(R){var F,n;(n=(F=window).onerror)==null||n.call(F,R.message,"",0,0,R)};
QHj=function(R){var F=this;var n=n===void 0?0:n;var V=V===void 0?g.n3():V;this.N=n;this.scheduler=V;this.U=new g.pa;this.T=R;for(R={MI:0};R.MI<this.T.length;R={Ly:void 0,MI:R.MI},R.MI++)R.Ly=this.T[R.MI],n=function(r){return function(){r.Ly.tf();F.T[r.MI].m4=!0;F.T.every(function(v){return v.m4===!0})&&F.U.resolve()}}(R),V=e3(n,mf(this,R.Ly)),this.T[R.MI]=Object.assign({},R.Ly,{tf:n,
jobId:V})};
ct_=function(R){var F=Array.from(R.T.keys()).sort(function(V,r){return mf(R,R.T[r])-mf(R,R.T[V])});
F=g.m(F);for(var n=F.next();!n.done;n=F.next())n=R.T[n.value],n.jobId===void 0||n.m4||(R.scheduler.iq(n.jobId),e3(n.tf,10))};
mf=function(R,F){var n;return(n=F.priority)!=null?n:R.N};
O$=function(R){this.state=R;this.plugins=[];this.N=void 0;this.J={};gG&&Bj(this.state)};
wUV=function(R,F){var n=F.filter(function(r){return IS(R,r)===10}),V=F.filter(function(r){return IS(R,r)!==10});
return R.J.va5?function(){var r=g.Cq.apply(0,arguments);return g.Y(function(v){if(v.T==1)return g.k(v,R.F0G.apply(R,[n].concat(g.I(r))),2);R.xP.apply(R,[V].concat(g.I(r)));g.rq(v)})}:function(){var r=g.Cq.apply(0,arguments);
R.K0X.apply(R,[n].concat(g.I(r)));R.xP.apply(R,[V].concat(g.I(r)))}};
IS=function(R,F){var n,V;return(V=(n=R.N)!=null?n:F.priority)!=null?V:0};
Kr=function(R){gG&&R&&Bj(R)};
DP=function(R){gG&&R&&zL_(R)};
L39=function(R,F,n){S3N&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+R.constructor.name+"] '"+R.state+"' to '"+F+"'"),console.log("with message: ",n),console.groupEnd())};
iE=function(R){if(g.U2("web_lifecycle_error_handling_killswitch"))return R();try{return R()}catch(F){q3_(F)}};
xb=function(R){O$.call(this,R===void 0?"none":R);this.T=null;this.N=10;this.transitions=[{from:"none",to:"application_navigating",action:this.W},{from:"application_navigating",to:"none",action:this.Z},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]};
sHj=function(){kb||(kb=new xb);return kb};
Yb=function(){var R=this;this.store={};this.T=0;this.U={};this.hJ={lwG:function(){return R.T}}};
dG=function(R,F){var n=Jw(F);if(R.U[n])return R.U[n];var V=Object.keys(R.store)||[];if(V.length<=1&&Jw(F)===V[0])return V;for(var r=[],v=0;v<V.length;v++){var f=V[v].split("/");if(GM(F.auth,f[0])){var z=F.isJspb;GM(z===void 0?"undefined":z?"true":"false",f[1])&&GM(F.cttAuthInfo,f[2])&&(z=F.tier,z=z===void 0?"undefined":JSON.stringify(z),GM(z,f[3])&&r.push(V[v]))}}return R.U[n]=r};
GM=function(R,F){return R===void 0||R==="undefined"?!0:R===F};
Jw=function(R){return[R.auth===void 0?"undefined":R.auth,R.isJspb===void 0?"undefined":R.isJspb,R.cttAuthInfo===void 0?"undefined":R.cttAuthInfo,R.tier===void 0?"undefined":R.tier].join("/")};
MM=function(){this.J=this.T=this.U=0;this.N=!1};
lE=function(){var R=g.WM("yt.logging.ims");R||(R=new Yb,g.h7("yt.logging.ims",R));return R};
AtV=function(){if(fAW()&&!pUf){var R=function(n){n=n.data;if(n.op==="serializedGelBatch"){var V=NM.get(n.key);V&&(XUI(n.serializedBatch,V.client,V.resolve,V.networklessOptions,V.isIsolated,V.useVSSEndpoint,V.dangerousLogToVisitorSession,V.requestsOutstanding),NM.delete(n.key))}},F=U5();
F&&(F.addEventListener("message",R),F.onerror=function(){NM.clear()});
pUf=!0}};
Uqv=function(R,F){if(R.endpoint==="log_event"){E$(R);var n=$b(R),V=aJR(R.payload)||"",r=CgW(V),v=200;if(r){if(r.enabled===!1&&!g.U2("web_payload_policy_disabled_killswitch"))return;v=TB9(r.tier);if(v===400){oLJ(R,F);return}}Pj[n]=!0;n={cttAuthInfo:n,isJspb:!1,tier:v};lE().storePayload(n,R.payload);ytj(F,!1,n,bE(V))}};
HAW=function(R,F,n){if(F.endpoint==="log_event"){E$(void 0,F);var V=$b(F,!0),r=CgW(R),v=200;if(r){if(r.enabled===!1&&!g.U2("web_payload_policy_disabled_killswitch"))return;v=TB9(r.tier);if(v===400){jHv(R,F,n);return}}Pj[V]=!0;V={cttAuthInfo:V,isJspb:!0,tier:v};lE().storePayload(V,wp(F.payload));ytj(n,!0,V,bE(R))}};
ytj=function(R,F,n,V){function r(){ZP({writeThenSend:!0},F,n.tier)}
F=F===void 0?!1:F;V=V===void 0?!1:V;R&&(er=new R);R=jP("tvhtml5_logging_max_batch_ads_fork")||jP("tvhtml5_logging_max_batch")||jP("web_logging_max_batch")||100;var v=(0,g.h1)(),f=RQ(F,n.tier),z=f.J;V&&(f.N=!0);V=0;n&&(V=lE().getSequenceCount(n));V>=1E3?r():V>=R?FS||(FS=nJ(function(){r();FS=void 0},0)):v-z>=10&&(hL_(F,n.tier),f.J=v)};
oLJ=function(R,F){if(R.endpoint==="log_event"){g.U2("more_accurate_gel_parser")&&lE().storePayload({isJspb:!1},R.payload);E$(R);var n=$b(R),V=new Map;V.set(n,[R.payload]);var r=aJR(R.payload)||"";F&&(er=new F);return new g.OZ(function(v,f){er&&er.isReady()?W3_(V,er,v,f,{bypassNetworkless:!0},!0,bE(r)):v()})}};
jHv=function(R,F,n){if(F.endpoint==="log_event"){E$(void 0,F);var V=$b(F,!0),r=new Map;r.set(V,[wp(F.payload)]);n&&(er=new n);return new g.OZ(function(v){er&&er.isReady()?u4k(r,er,v,{bypassNetworkless:!0},!0,bE(R)):v()})}};
$b=function(R,F){var n="";if(R.dangerousLogToVisitorSession)n="visitorOnlyApprovedKey";else if(R.cttAuthInfo){if(F===void 0?0:F){F=R.cttAuthInfo.token;n=R.cttAuthInfo;var V=new $L;n.videoId?V.setVideoId(n.videoId):n.playlistId&&xD(V,2,Vt,e5(n.playlistId));rC[F]=V}else F=R.cttAuthInfo,n={},F.videoId?n.videoId=F.videoId:F.playlistId&&(n.playlistId=F.playlistId),ve[R.cttAuthInfo.token]=n;n=R.cttAuthInfo.token}return n};
ZP=function(R,F,n){R=R===void 0?{}:R;F=F===void 0?!1:F;new g.OZ(function(V,r){var v=RQ(F,n),f=v.N;v.N=!1;fJ(v.U);fJ(v.T);v.T=0;er&&er.isReady()?n===void 0&&g.U2("enable_web_tiered_gel")?BBW(V,r,R,F,300,f):BBW(V,r,R,F,n,f):(hL_(F,n),V())})};
BBW=function(R,F,n,V,r,v){var f=er;n=n===void 0?{}:n;V=V===void 0?!1:V;r=r===void 0?200:r;v=v===void 0?!1:v;var z=new Map,q=new Map,Q={isJspb:V,cttAuthInfo:void 0,tier:r},c={isJspb:V,cttAuthInfo:void 0};if(V){F=g.m(Object.keys(Pj));for(r=F.next();!r.done;r=F.next())r=r.value,q=g.U2("enable_web_tiered_gel")?lE().smartExtractMatchingEntries({keys:[Q,c],sizeLimit:1E3}):lE().extractMatchingEntries({isJspb:!0,cttAuthInfo:r}),q.length>0&&z.set(r,q),(g.U2("web_fp_via_jspb_and_json")&&n.writeThenSend||!g.U2("web_fp_via_jspb_and_json"))&&
delete Pj[r];u4k(z,f,R,n,!1,v)}else{z=g.m(Object.keys(Pj));for(Q=z.next();!Q.done;Q=z.next())Q=Q.value,c=g.U2("enable_web_tiered_gel")?lE().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:Q,tier:r},{isJspb:!1,cttAuthInfo:Q}],sizeLimit:1E3}):lE().extractMatchingEntries({isJspb:!1,cttAuthInfo:Q}),c.length>0&&q.set(Q,c),(g.U2("web_fp_via_jspb_and_json")&&n.writeThenSend||!g.U2("web_fp_via_jspb_and_json"))&&delete Pj[Q];W3_(q,f,R,F,n,!1,v)}};
hL_=function(R,F){function n(){ZP({writeThenSend:!0},R,F)}
R=R===void 0?!1:R;F=F===void 0?200:F;var V=RQ(R,F),r=V===mqN||V===gL_?5E3:OAf;g.U2("web_gel_timeout_cap")&&!V.T&&(r=nJ(function(){n()},r),V.T=r);
fJ(V.U);r=g.ew("LOGGING_BATCH_TIMEOUT",jP("web_gel_debounce_ms",1E4));g.U2("shorten_initial_gel_batch_timeout")&&tp&&(r=IJE);r=nJ(function(){jP("gel_min_batch_size")>0?lE().getSequenceCount({cttAuthInfo:void 0,isJspb:R,tier:F})>=K3E&&n():n()},r);
V.U=r};
W3_=function(R,F,n,V,r,v,f){r=r===void 0?{}:r;var z=Math.round((0,g.h1)()),q=R.size,Q=DqJ(f);R=g.m(R);var c=R.next();for(f={};!c.done;f={cS:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,T0:void 0,ZD:void 0},c=R.next()){var w=g.m(c.value);c=w.next().value;w=w.next().value;f.batchRequest=g.ie({context:g.Sf(F.config_||g.wy())});if(!g.gq(w)&&!g.U2("throw_err_when_logevent_malformed_killswitch")){V();break}f.batchRequest.events=w;(w=ve[c])&&iAR(f.batchRequest,c,w);delete ve[c];f.dangerousLogToVisitorSession=
c==="visitorOnlyApprovedKey";xqv(f.batchRequest,z,f.dangerousLogToVisitorSession);kwR(r);f.T0=function(L){g.U2("start_client_gcf")&&g.M1.dK(function(){return g.Y(function(S){return g.k(S,Y3J(L),0)})});
q--;q||n()};
f.cS=0;f.ZD=function(L){return function(){L.cS++;if(r.bypassNetworkless&&L.cS===1)try{g.Pq(F,Q,L.batchRequest,zn({writeThenSend:!0},L.dangerousLogToVisitorSession,L.T0,L.ZD,v)),tp=!1}catch(S){g.n$(S),V()}q--;q||n()}}(f);
try{g.Pq(F,Q,f.batchRequest,zn(r,f.dangerousLogToVisitorSession,f.T0,f.ZD,v)),tp=!1}catch(L){g.n$(L),V()}}};
u4k=function(R,F,n,V,r,v){V=V===void 0?{}:V;var f=Math.round((0,g.h1)()),z={value:R.size},q=new Map([].concat(g.I(R)));q=g.m(q);for(var Q=q.next();!Q.done;Q=q.next()){var c=g.m(Q.value).next().value,w=R.get(c);Q=new g.PU;var L=F.config_||g.wy(),S=new Gw,p=new KA;V7(p,1,L.yD);V7(p,2,L.pU);v4(p,16,L.tF);V7(p,17,L.innertubeContextClientVersion);if(L.cn){var C=L.cn,y=new O3;C.coldConfigData&&V7(y,1,C.coldConfigData);C.appInstallData&&V7(y,6,C.appInstallData);C.coldHashData&&V7(y,3,C.coldHashData);C.hotHashData&&
y.iE(C.hotHashData);Nm(p,O3,62,y)}(C=g.HM.devicePixelRatio)&&C!=1&&Ud(p,65,mL(C));C=HC();C!==""&&V7(p,54,C);C=hj();if(C.length>0){y=new xL;for(var u=0;u<C.length;u++){var B=new DJ;V7(B,1,C[u].key);xD(B,2,Jtf,e5(C[u].value));$D(y,15,DJ,B)}Nm(S,xL,5,y)}GG9(L,p);d1N(S);MI9(p);lKe(L,p);NHJ(p);g.U2("start_client_gcf")&&Exv(p);g.ew("DELEGATED_SESSION_ID")&&!g.U2("pageid_as_header_web")&&(L=new Jt,V7(L,3,g.ew("DELEGATED_SESSION_ID")));!g.U2("fill_delegate_context_in_gel_killswitch")&&(C=g.ew("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&
(y=dp(S,Jt,3)||new Jt,L=S,C=V7(y,18,C),Nm(L,Jt,3,C));L=p;C=g.m(Object.entries(Xj(g.ew("DEVICE",""))));for(y=C.next();!y.done;y=C.next())u=g.m(y.value),y=u.next().value,u=u.next().value,y==="cbrand"?V7(L,12,u):y==="cmodel"?V7(L,13,u):y==="cbr"?V7(L,87,u):y==="cbrver"?V7(L,88,u):y==="cos"?V7(L,18,u):y==="cosver"?V7(L,19,u):y==="cplatform"&&v4(L,42,Ha9(u));S.HV(p);Nm(Q,Gw,1,S);if(p=rC[c])a:{if(p.B_())S=1;else if(p.getPlaylistId())S=2;else break a;Nm(Q,$L,4,p);p=dp(Q,Gw,1)||new Gw;L=dp(p,Jt,3)||new Jt;
C=new YL;C.setToken(c);v4(C,1,S);$D(L,12,YL,C);Nm(p,Jt,3,L)}delete rC[c];c=c==="visitorOnlyApprovedKey";qz()||nu(Q,2,f);!c&&(S=g.ew("EVENT_ID"))&&(p=GwE(),L=new E3,V7(L,1,S),nu(L,2,p),Nm(Q,E3,5,L));kwR(V);if(g.U2("jspb_serialize_with_worker")&&(S=U5())&&V.writeThenSend){NM.set(Qt,{client:F,resolve:n,networklessOptions:V,isIsolated:r,useVSSEndpoint:v,dangerousLogToVisitorSession:c,requestsOutstanding:z});S.postMessage({op:"gelBatchToSerialize",batchRequest:wp(Q),clientEvents:w,key:Qt});Qt++;break}if(w){S=
[];for(p=0;p<w.length;p++)try{S.push(new Nq(w[p]))}catch(O){g.n$(new g.UR("Transport failed to deserialize "+String(w[p])))}w=S}else w=[];w=g.m(w);for(S=w.next();!S.done;S=w.next())$D(Q,3,Nq,S.value);w={startTime:(0,g.h1)(),ticks:{},infos:{}};Q=Q.F6();w.ticks.geljspc=(0,g.h1)();g.U2("log_jspb_serialize_latency")&&Tz("gel_jspb_serialize",w,{sampleRate:.1});XUI(Q,F,n,V,r,v,c,z)}};
XUI=function(R,F,n,V,r,v,f,z){V=V===void 0?{}:V;z=z===void 0?{value:0}:z;v=DqJ(v);V=zn(V,f,function(q){g.U2("start_client_gcf")&&g.M1.dK(function(){return g.Y(function(Q){return g.k(Q,Y3J(q),0)})});
z.value--;z.value||n()},function(){z.value--;
z.value||n()},r);
V.headers["Content-Type"]="application/json+protobuf";V.postBodyFormat="JSPB";V.postBody=R;g.Pq(F,v,"",V);tp=!1};
kwR=function(R){g.U2("always_send_and_write")&&(R.writeThenSend=!1)};
zn=function(R,F,n,V,r){R={retry:!0,onSuccess:n,onError:V,networklessOptions:R,dangerousLogToVisitorSession:F,EO2:!!r,headers:{},postBodyFormat:"",postBody:"",compress:g.U2("compress_gel")||g.U2("compress_gel_lr")};qz()&&(R.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.h1)())));return R};
xqv=function(R,F,n){qz()||(R.requestTimeMs=String(F));g.U2("unsplit_gel_payloads_in_logs")&&(R.unsplitGelPayloadsInLogs=!0);!n&&(F=g.ew("EVENT_ID"))&&(n=GwE(),R.serializedClientEventId={serializedEventId:F,clientCounter:String(n)})};
GwE=function(){var R=g.ew("BATCH_CLIENT_COUNTER")||0;R||(R=Math.floor(Math.random()*65535/2));R++;R>65535&&(R=1);ZJ("BATCH_CLIENT_COUNTER",R);return R};
iAR=function(R,F,n){if(n.videoId)var V="VIDEO";else if(n.playlistId)V="PLAYLIST";else return;R.credentialTransferTokenTargetId=n;R.context=R.context||{};R.context.user=R.context.user||{};R.context.user.credentialTransferTokens=[{token:F,scope:V}]};
E$=function(R,F){var n=g.WM("yt.logging.transport.enableScrapingForTest"),V=yb("il_payload_scraping");V=(V!==void 0?String(V):"")==="enable_il_payload_scraping";if(!n)if(V)ce=[],g.h7("yt.logging.transport.enableScrapingForTest",!0),g.h7("yt.logging.transport.scrapedPayloadsForTesting",ce),g.h7("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.h7("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
g.h7("yt.logging.transport.scrapeClientEvent",!0);else return;n=g.WM("yt.logging.transport.scrapedPayloadsForTesting");V=g.WM("yt.logging.transport.payloadToScrape");F&&(F=F.payload,(F=g.WM("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(F)())&&n.push(F));F=g.WM("yt.logging.transport.scrapeClientEvent");if(V&&V.length>=1)for(var r=0;r<V.length;r++)if(R&&R.payload[V[r]])if(F)n.push(R.payload);else{var v=void 0;n.push(((v=R)==null?void 0:v.payload)[V[r]])}g.h7("yt.logging.transport.scrapedPayloadsForTesting",
n)};
qz=function(){return g.U2("use_request_time_ms_header")||g.U2("lr_use_request_time_ms_header")};
nJ=function(R,F){return g.U2("transport_use_scheduler")===!1?g.ak(R,F):g.U2("logging_avoid_blocking_during_navigation")||g.U2("lr_logging_avoid_blocking_during_navigation")?g.R8(0,function(){if(sHj().currentState==="none")R();else{var n={};sHj().install((n.none={callback:R},n))}},F):e3(R,0,F)};
fJ=function(R){g.U2("transport_use_scheduler")?g.M1.iq(R):g.Tg(R)};
Y3J=function(R){var F,n,V,r,v,f,z,q,Q,c,w,L,S,p,C;return g.Y(function(y){if(y.T==1)return V=(F=R)==null?void 0:(n=F.responseContext)==null?void 0:n.globalConfigGroup,r=g.A(V,dqW),f=(v=V)==null?void 0:v.hotHashData,z=g.A(V,Mwj),Q=(q=V)==null?void 0:q.coldHashData,(c=hw().resolve(oS(Q8)))?f?r?g.k(y,x1E(c,f,r),3):g.k(y,x1E(c,f),3):y.wX(3):y.wX(2);if(y.T!=2)return Q?z?g.k(y,kGj(c,Q,z),2):g.k(y,kGj(c,Q),2):y.wX(2);L=(w=V)==null?void 0:w.rawFinchStaticConfigGroup;p=(S=V)==null?void 0:S.finchStaticHashData;
if(!p)return L&&rz(new g.UR("Finch config data is present, but hash is missing.")),y.return();C=hw().resolve(oS(lJN));return C?g.k(y,C.Nyo({config:L||{},oIS:p||""}),0):((L||p)&&rz(new g.UR("FinchConfigManagerService is not present, but Finch config data is present.")),y.wX(0))})};
RQ=function(R,F){F=F===void 0?200:F;return R?F===300?mqN:NBj:F===300?gL_:ELj};
CgW=function(R){if(g.U2("enable_web_tiered_gel")){R=$qE[R||""];var F,n,V,r=hw().resolve(oS(Q8))==null?void 0:(F=cq())==null?void 0:(n=F.loggingHotConfig)==null?void 0:(V=n.eventLoggingConfig)==null?void 0:V.payloadPolicies;if(r)for(F=0;F<r.length;F++)if(r[F].payloadNumber===R)return r[F]}};
aJR=function(R){R=Object.keys(R);R=g.m(R);for(var F=R.next();!F.done;F=R.next())if(F=F.value,$qE[F])return F};
TB9=function(R){switch(R){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
bE=function(R){return R==="gelDebuggingEvent"};
DqJ=function(R){return(R===void 0?0:R)&&g.U2("vss_through_gel_video_stats")?"video_stats":"log_event"};
Sg=function(R,F,n,V){V=V===void 0?{}:V;var r={},v=Math.round(V.timestamp||(0,g.h1)());r.eventTimeMs=v<Number.MAX_SAFE_INTEGER?v:0;r[R]=F;R=aS();r.context={lastActivityMs:String(V.timestamp||!isFinite(R)?-1:R)};V.sequenceGroup&&!g.U2("web_gel_sequence_info_killswitch")&&(R=r.context,F=V.sequenceGroup,F={index:Pg9(F),groupKey:F},R.sequence=F,V.endOfSequence&&delete wC[V.sequenceGroup]);g.U2("web_tag_automated_log_events")&&(r.context.automatedLogEventSource=V.automatedLogEventSource);(V.sendIsolatedPayload?
oLJ:Uqv)({endpoint:"log_event",payload:r,cttAuthInfo:V.cttAuthInfo,dangerousLogToVisitorSession:V.dangerousLogToVisitorSession},n)};
Pg9=function(R){wC[R]=R in wC?wC[R]+1:0;return wC[R]};
g.LJ=function(R,F,n){n=n===void 0?{}:n;var V=g.$S;g.ew("ytLoggingEventsDefaultDisabled",!1)&&g.$S===g.$S&&(V=null);Sg(R,F,V,n)};
sK=function(R){this.T=R};
g.pJ=function(R){return new sK({trackingParams:R})};
XS=function(R,F,n,V,r,v){var f=bAJ++;return new sK({veType:R,veCounter:f,elementIndex:n,dataElement:F,youtubeData:V,jspbYoutubeData:r,loggingDirectives:v})};
ZAj=function(R){return g.ew("client-screen-nonce-store",{})[R===void 0?0:R]};
eLj=function(R,F){F=F===void 0?0:F;var n=g.ew("client-screen-nonce-store");n||(n={},ZJ("client-screen-nonce-store",n));n[F]=R};
Ap=function(R){R=R===void 0?0:R;return R===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+R};
RqN=function(R){return g.ew(Ap(R===void 0?0:R))};
g.aQ=function(R){return(R=RqN(R===void 0?0:R))?new sK({veType:R,youtubeData:void 0,jspbYoutubeData:void 0}):null};
FHR=function(){var R=g.ew("csn-to-ctt-auth-info");R||(R={},ZJ("csn-to-ctt-auth-info",R));return R};
niW=function(){return Object.values(g.ew("client-screen-nonce-store",{})).filter(function(R){return R!==void 0})};
g.CJ=function(R){R=ZAj(R===void 0?0:R);if(!R&&!g.ew("USE_CSN_FALLBACK",!0))return null;R||(R="UNDEFINED_CSN");return R?R:null};
rjf=function(R){for(var F=g.m(Object.values(VPE)),n=F.next();!n.done;n=F.next())if(g.CJ(n.value)===R)return!0;return!1};
vie=function(R,F,n){var V=FHR();(n=g.CJ(n))&&delete V[n];F&&(V[R]=F)};
Tn=function(R){return FHR()[R]};
tPE=function(R,F,n,V){n=n===void 0?0:n;if(R!==ZAj(n)||F!==g.ew(Ap(n)))if(vie(R,V,n),eLj(R,n),ZJ(Ap(n),F),F=function(){setTimeout(function(){R&&g.LJ("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:f_9,clientScreenNonce:R})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(F)}catch(r){F()}else F()};
oQ=function(R,F){var n=n===void 0?!0:n;var V=g.ew("VALID_SESSION_TEMPDATA_DOMAINS",[]),r=g.u5(window.location.href);r&&V.push(r);r=g.u5(R);if(g.Rz(V,r)||!r&&eW(R,"/"))if(V=document.createElement("a"),g.uS(V,R),R=V.href)if(R=mw(R),R=Qvv(R))if(n&&!F.csn&&(F.itct||F.ved)&&(F=Object.assign({csn:g.CJ()},F)),v){var v=parseInt(v,10);isFinite(v)&&v>0&&zqR(R,F,v)}else zqR(R,F)};
zqR=function(R,F,n){R=q2J(R);F=F?g.KS(F):"";n=n||5;tL()&&g.ki(R,F,n)};
q2J=function(R){for(var F=g.m(Qkk),n=F.next();!n.done;n=F.next())R=JB(R,n.value);return"ST-"+bS(R).toString(36)};
cj9=function(R){if(R.name==="JavaException")return!0;R=R.stack;return R.includes("chrome://")||R.includes("-extension://")||R.includes("webkit-masked-url://")};
wCv=function(R){if(!R.stack)return!0;var F=!R.stack.includes("\n");return F&&R.stack.includes("ErrorType: ")||F&&R.stack.includes("Anonymous function (Unknown script")||R.stack.toLowerCase()==="not available"||R.fileName==="user-script"||R.fileName.startsWith("user-script:")?!0:!1};
S2k=function(){this.Gv=[];this.YO=[]};
jg=function(){if(!UK){var R=UK=new S2k;R.YO.length=0;R.Gv.length=0;LHe(R,skR)}return UK};
LHe=function(R,F){F.YO&&R.YO.push.apply(R.YO,F.YO);F.Gv&&R.Gv.push.apply(R.Gv,F.Gv)};
pCk=function(R){function F(){return R.charCodeAt(V++)}
var n=R.length,V=0;do{var r=He(F);if(r===Infinity)break;var v=r>>3;switch(r&7){case 0:r=He(F);if(v===2)return r;break;case 1:if(v===2)return;V+=8;break;case 2:r=He(F);if(v===2)return R.substr(V,r);V+=r;break;case 5:if(v===2)return;V+=4;break;default:return}}while(V<n)};
He=function(R){var F=R(),n=F&127;if(F<128)return n;F=R();n|=(F&127)<<7;if(F<128)return n;F=R();n|=(F&127)<<14;if(F<128)return n;F=R();return F<128?n|(F&127)<<21:Infinity};
XCI=function(R,F,n,V){if(R)if(Array.isArray(R)){var r=V;for(V=0;V<R.length&&!(R[V]&&(r+=hp(V,R[V],F,n),r>500));V++);V=r}else if(typeof R==="object")for(r in R){if(R[r]){var v=r;var f=R[r],z=F,q=n;v=typeof f!=="string"||v!=="clickTrackingParams"&&v!=="trackingParams"?0:(f=pCk(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?hp(v+".ve",f,z,q):0;V+=v;V+=hp(r,R[r],F,n);if(V>500)break}}else n[F]=We(R),V+=n[F].length;else n[F]=We(R),V+=n[F].length;return V};
hp=function(R,F,n,V){n+="."+R;R=We(F);V[n]=R;return n.length+R.length};
We=function(R){try{return(typeof R==="string"?R:String(JSON.stringify(R))).substr(0,500)}catch(F){return"unable to serialize "+typeof R+" ("+F.message+")"}};
Be=function(R){g.uX(R)};
g.mq=function(R){g.uX(R,"WARNING")};
g.uX=function(R,F){var n=n===void 0?{}:n;n.name=g.ew("INNERTUBE_CONTEXT_CLIENT_NAME",1);n.version=g.ew("INNERTUBE_CONTEXT_CLIENT_VERSION");F=F===void 0?"ERROR":F;var V=!1;F=F===void 0?"ERROR":F;V=V===void 0?!1:V;if(R){R.hasOwnProperty("level")&&R.level&&(F=R.level);if(g.U2("console_log_js_exceptions")||["test","dev","autopush","staging"].includes(g.ew("SERVER_VERSION"))){var r=[];r.push("Name: "+R.name);r.push("Message: "+R.message);R.hasOwnProperty("params")&&r.push("Error Params: "+JSON.stringify(R.params));
R.hasOwnProperty("args")&&r.push("Error args: "+JSON.stringify(R.args));r.push("File name: "+R.fileName);r.push("Stacktrace: "+R.stack);window.console.log(r.join("\n"),R)}if(!(AjV>=5)){r=[];for(var v=g.m(a_f),f=v.next();!f.done;f=v.next()){f=f.value;try{f()&&r.push(f())}catch(C){}}r=[].concat(g.I(CxV),g.I(r));var z=ms_(R);v=z.message||"Unknown Error";f=z.name||"UnknownError";var q=z.stack||R.U||"Not available";if(q.startsWith(f+": "+v)){var Q=q.split("\n");Q.shift();q=Q.join("\n")}Q=z.lineNumber||
"Not available";z=z.fileName||"Not available";var c=0;if(R.hasOwnProperty("args")&&R.args&&R.args.length)for(var w=0;w<R.args.length&&!(c=XCI(R.args[w],"params."+w,n,c),c>=500);w++);else if(R.hasOwnProperty("params")&&R.params){var L=R.params;if(typeof R.params==="object")for(w in L){if(L[w]){var S="params."+w,p=We(L[w]);n[S]=p;c+=S.length+p.length;if(c>500)break}}else n.params=We(L)}if(r.length)for(w=0;w<r.length&&!(c=XCI(r[w],"params.context."+w,n,c),c>=500);w++);navigator.vendor&&!n.hasOwnProperty("vendor")&&
(n["device.vendor"]=navigator.vendor);n={message:v,name:f,lineNumber:Q,fileName:z,stack:q,params:n,sampleWeight:1};w=Number(R.columnNumber);isNaN(w)||(n.lineNumber=n.lineNumber+":"+w);if(R.level==="IGNORED")R=0;else a:{R=jg();w=g.m(R.YO);for(r=w.next();!r.done;r=w.next())if(r=r.value,n.message&&n.message.match(r.H8)){R=r.weight;break a}R=g.m(R.Gv);for(w=R.next();!w.done;w=R.next())if(w=w.value,w.callback(n)){R=w.weight;break a}R=1}n.sampleWeight=R;R=g.m(Tze);for(w=R.next();!w.done;w=R.next())if(w=
w.value,w.V2[n.name])for(v=g.m(w.V2[n.name]),r=v.next();!r.done;r=v.next())if(f=r.value,r=n.message.match(f.q6)){n.params["params.error.original"]=r[0];v=f.groups;f={};for(Q=0;Q<v.length;Q++)f[v[Q]]=r[Q+1],n.params["params.error."+v[Q]]=r[Q+1];n.message=w.f0(f);break}n.params||(n.params={});R=jg();n.params["params.errorServiceSignature"]="msg="+R.YO.length+"&cb="+R.Gv.length;n.params["params.serviceWorker"]="false";g.HM.document&&g.HM.document.querySelectorAll&&(n.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));
(new Lo(SR,"sample")).constructor!==Lo&&(n.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(n);if(n.sampleWeight!==0&&!oi9.has(n.message)){if(V)yjf(F===void 0?"ERROR":F,n);else{F=F===void 0?"ERROR":F;F==="ERROR"?(gC.publish("handleError",n),g.U2("record_app_crashed_web")&&UlJ===0&&n.sampleWeight===1&&(UlJ++,V={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.U2("report_client_error_with_app_crash_ks")||(V.systemHealth={crashData:{clientError:{logMessage:{message:n.message}}}}),
g.LJ("appCrashed",V)),jkj++):F==="WARNING"&&gC.publish("handleWarning",n);if(g.U2("kevlar_gel_error_routing")){V=F;R=void 0;R=R===void 0?{}:R;b:{w=g.m(H$j);for(r=w.next();!r.done;r=w.next())if(g.E2(r.value.toLowerCase())){w=!0;break b}w=!1}if(w)R=void 0;else{r={stackTrace:n.stack};n.fileName&&(r.filename=n.fileName);w=n.lineNumber&&n.lineNumber.split?n.lineNumber.split(":"):[];w.length!==0&&(w.length!==1||isNaN(Number(w[0]))?w.length!==2||isNaN(Number(w[0]))||isNaN(Number(w[1]))||(r.lineNumber=Number(w[0]),
r.columnNumber=Number(w[1])):r.lineNumber=Number(w[0]));w={level:"ERROR_LEVEL_UNKNOWN",message:n.message,errorClassName:n.name,sampleWeight:n.sampleWeight};V==="ERROR"?w.level="ERROR_LEVEL_ERROR":V==="WARNING"&&(w.level="ERROR_LEVEL_WARNNING");r={isObfuscated:!0,browserStackInfo:r};R.pageUrl=window.location.href;R.kvPairs=[];g.ew("FEXP_EXPERIMENTS")&&(R.experimentIds=g.ew("FEXP_EXPERIMENTS"));v=g.ew("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Rk("web_disable_gel_stp_ecatcher_killswitch")&&v)for(f=
g.m(Object.keys(v)),Q=f.next();!Q.done;Q=f.next())Q=Q.value,R.kvPairs.push({key:Q,value:String(v[Q])});if(v=n.params)for(f=g.m(Object.keys(v)),Q=f.next();!Q.done;Q=f.next())Q=Q.value,R.kvPairs.push({key:"client."+Q,value:String(v[Q])});v=g.ew("SERVER_NAME");f=g.ew("SERVER_VERSION");v&&f&&(R.kvPairs.push({key:"server.name",value:v}),R.kvPairs.push({key:"server.version",value:f}));(v=g.ew("PLAYER_CLIENT_VERSION"))&&R.kvPairs.push({key:"client.player.version",value:v});R={errorMetadata:R,stackTrace:r,
logMessage:w}}if(R&&(g.LJ("clientError",R),V==="ERROR"||g.U2("errors_flush_gel_always_killswitch")))a:{if(g.U2("web_fp_via_jspb")){V=!0;V=V===void 0?!1:V;R=hqj;hqj=[];if(R)for(R=g.m(R),w=R.next();!w.done;w=R.next())w=w.value,V?Sg(w.payloadName,w.payload,g.$S,w.options):g.LJ(w.payloadName,w.payload,w.options);ZP(void 0,!0);if(!g.U2("web_fp_via_jspb_and_json"))break a}ZP(void 0,!1)}}g.U2("suppress_error_204_logging")||yjf(F,n)}try{oi9.add(n.message)}catch(C){}AjV++}}}};
yjf=function(R,F){var n=F.params||{};R={urlParams:{a:"logerror",t:"jserror",type:F.name,msg:F.message.substr(0,250),line:F.lineNumber,level:R,"client.name":n.name},postParams:{url:g.ew("PAGE_NAME",window.location.href),file:F.fileName},method:"POST"};n.version&&(R["client.version"]=n.version);if(R.postParams){F.stack&&(R.postParams.stack=F.stack);F=g.m(Object.keys(n));for(var V=F.next();!V.done;V=F.next())V=V.value,R.postParams["client."+V]=n[V];if(n=g.ew("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(F=
g.m(Object.keys(n)),V=F.next();!V.done;V=F.next())V=V.value,R.postParams[V]=n[V];(n=g.ew("LAVA_VERSION"))&&(R.postParams["lava.version"]=n);n=g.ew("SERVER_NAME");F=g.ew("SERVER_VERSION");n&&F&&(R.postParams["server.name"]=n,R.postParams["server.version"]=F);(n=g.ew("PLAYER_CLIENT_VERSION"))&&(R.postParams["client.player.version"]=n)}g.ux(g.ew("ECATCHER_REPORT_HOST","")+"/error_204",R)};
OK=function(R){var F=g.Cq.apply(1,arguments);R.args||(R.args=[]);Array.isArray(R.args)&&R.args.push.apply(R.args,g.I(F))};
Dt=function(R){var F=g.A(R,IQ);if(F)return F;if((F=g.A(R,WHI))&&F.commands)return ulJ(F.commands);if((F=g.A(R,Bzv))&&F.commands)return ulJ(F.commands);if((R=g.A(R,ml6))&&R.identifier&&R.command&&(KJ||(KJ=[]),!KJ.includes(R.identifier)))return KJ.push(R.identifier),g.A(R.command,IQ)};
ulJ=function(R){if(R.length!==0){var F=[];R=g.m(R);for(var n=R.next();!n.done;n=R.next())(n=Dt(n.value))&&F.push(n);return{commandExecutorCommand:{commands:F}}}};
g.iX=function(R,F,n){n===void 0?delete R[F.name]:R[F.name]=n};
giW=function(R){for(var F=0,n=0;n<R.length;n++)F=F*31+R.charCodeAt(n),n<R.length-1&&(F%=0x800000000000);return F%1E5};
xC=function(R){s5.call(this,1,arguments);this.csn=R};
I_R=function(R,F,n,V,r,v,f,z,q){var Q=O$6();v=new sK({veType:F,youtubeData:v,jspbYoutubeData:void 0});q=kC({automatedLogEventSource:q},Q);r&&(q.cttAuthInfo=r);r={csn:Q,pageVe:v.getAsJson()};g.U2("expectation_logging")&&z&&z.screenCreatedLoggingExpectations&&(r.screenCreatedLoggingExpectations=z.screenCreatedLoggingExpectations);n&&n.visualElement?(r.implicitGesture={parentCsn:n.clientScreenNonce,gesturedVe:n.visualElement.getAsJson()},f&&(r.implicitGesture.gestureType=f)):n&&g.mq(new g.UR("newScreen() parent element does not have a VE - rootVe",
F));V&&(r.cloneCsn=V);R?Sg("screenCreated",r,R,q):g.LJ("screenCreated",r,q);Ac(eDk,new xC(Q));YC.clear();Jp.clear();Gn.clear();return Q};
g.Mz=function(R,F,n,V,r,v){v=v===void 0?{}:v;g.dC(R,F,n,[V],r===void 0?!1:r,v)};
g.dC=function(R,F,n,V,r,v){r=r===void 0?!1:r;v=v===void 0?{}:v;Object.assign(v,kC({cttAuthInfo:Tn(F)||void 0},F));for(var f=g.m(V),z=f.next();!z.done;z=f.next()){z=z.value;var q=z.getAsJson();(g.g7(q)||!q.trackingParams&&!q.veType)&&g.mq(Error("Child VE logged with no data"));if(g.U2("no_client_ve_attach_unless_shown")){var Q=lX(z,F);if(q.veType&&!Jp.has(Q)&&!Gn.has(Q)&&!r){if(!g.U2("il_attach_cache_limit")||YC.size<1E3){YC.set(Q,[R,F,n,z]);return}g.U2("il_attach_cache_limit")&&YC.size>1E3&&g.mq(new g.UR("IL Attach cache exceeded limit"))}z=
lX(n,F);YC.has(z)?Nz(n,F):Gn.set(z,!0)}}V=V.filter(function(c){c.csn!==F?(c.csn=F,c=!0):c=!1;return c});
n={csn:F,parentVe:n.getAsJson(),childVes:g.OM(V,function(c){return c.getAsJson()})};
F==="UNDEFINED_CSN"?EK("visualElementAttached",v,n):R?Sg("visualElementAttached",n,R,v):g.LJ("visualElementAttached",n,v)};
KHI=function(R,F,n,V,r,v,f){$C(n,F);V=kC({cttAuthInfo:Tn(F)||void 0,automatedLogEventSource:f},F);n={csn:F,ve:n.getAsJson(),eventType:1};r&&(n.clientData=r);F==="UNDEFINED_CSN"?EK("visualElementShown",V,n):R?Sg("visualElementShown",n,R,V):g.LJ("visualElementShown",n,V)};
DlE=function(R,F,n,V){var r=(V=V===void 0?!1:V)?16:8;V=kC({cttAuthInfo:Tn(F)||void 0,endOfSequence:V,automatedLogEventSource:void 0},F);n={csn:F,ve:n.getAsJson(),eventType:r};F==="UNDEFINED_CSN"?EK("visualElementHidden",V,n):R?Sg("visualElementHidden",n,R,V):g.LJ("visualElementHidden",n,V)};
Pe=function(R,F,n,V,r,v){i$I(R,F,n,void 0,V,r,v)};
i$I=function(R,F,n,V,r,v,f){$C(n,F);V=V||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";v=kC({cttAuthInfo:Tn(F)||void 0,automatedLogEventSource:f},F);n={csn:F,ve:n.getAsJson(),gestureType:V};r&&(n.clientData=r);F==="UNDEFINED_CSN"?EK("visualElementGestured",v,n):R?Sg("visualElementGestured",n,R,v):g.LJ("visualElementGestured",n,v)};
xlV=function(){var R=Lr(16);for(var F=[],n=0;n<R.length;n++)F.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(R[n]&63));return F.join("")};
EK=function(R,F,n){bX.push({payloadName:R,payload:n,znH:void 0,options:F});Zt||(Zt=r$9())};
neI=function(R){if(bX){for(var F=g.m(bX),n=F.next();!n.done;n=F.next())n=n.value,n.payload&&(n.payload.csn=R.csn,g.LJ(n.payloadName,n.payload,n.options));bX.length=0}Zt=0};
lX=function(R,F){return""+R.getAsJson().veType+R.getAsJson().veCounter+F};
$C=function(R,F){if(g.U2("no_client_ve_attach_unless_shown")){var n=lX(R,F);Jp.set(n,!0);Nz(R,F)}};
Nz=function(R,F){R=lX(R,F);YC.has(R)&&(F=YC.get(R)||[],g.Mz(F[0],F[1],F[2],F[3],!0),YC.delete(R))};
kC=function(R,F){g.U2("log_sequence_info_on_gel_web")&&(R.sequenceGroup=F);return R};
g.eg=function(R,F,n,V){g.Vb(KHI)(void 0,R,F,n,V,void 0)};
g.Rh=function(R,F){g.Vb(function(){g.az(F,function(n){$C(n,R);var V=kC({cttAuthInfo:Tn(R)||void 0,automatedLogEventSource:void 0},R);n={csn:R,ve:n.getAsJson(),eventType:4};R==="UNDEFINED_CSN"?EK("visualElementShown",V,n):g.LJ("visualElementShown",n,V)})})()};
g.Fs=function(R,F){g.Vb(function(){g.az(F,function(n){DlE(void 0,R,n)})})()};
g.nG=function(R,F,n){g.Vb(Pe)(void 0,R,F,n,void 0)};
VH=function(R,F,n,V){g.Vb(i$I)(void 0,R,F,n,V,void 0)};
v5=function(R,F,n,V,r,v){n=n===void 0?{}:n;this.componentType=R;this.renderer=F===void 0?null:F;this.macros=n;this.layoutId=V;this.interactionLoggingClientData=r;this.T=v;this.id=r_(R)};
r_=function(R){var F=":"+(ds.getInstance().T++).toString(36);return R+F};
g.fG=function(R){R=R===void 0?!1:R;g.G.call(this);this.A0=new g.Wt(R);g.d(this,this.A0)};
tn=function(){var R="ytp-id-"+kgk.toString();kgk++;return R};
g.ze=function(R){g.G.call(this);this.HI={};this.Ow={};this.element=this.createElement(R)};
qB=function(R,F,n,V){if(V.substring(0,2)==="{{")R.Ow[V]=[F,n];else return V};
Y2I=function(R,F){var n=[];if(!F)return n;F=g.m(F);for(var V=F.next();!V.done;V=F.next())if(V=V.value,V!=null){var r=V.nodeType;r===1||r===3?n.push(V):V&&typeof V.j==="string"?n.push(R.createElement(V)):V.element?n.push(V.element):typeof V==="string"&&V.indexOf("\n")!==-1?V.split("\n").forEach(function(v,f){f>0&&n.push(g.gu("BR"));n.push(g.Os(v))}):n.push(g.Os(V))}return n};
QH=function(R,F,n,V){if(n==="child"){g.Ko(F);var r;V===void 0?r=void 0:r=!Array.isArray(V)||V&&typeof V.j==="string"?[V]:V;n=Y2I(R,r);n=g.m(n);for(R=n.next();!R.done;R=n.next())F.appendChild(R.value)}else n==="style"?g.fY(F,"cssText",V?V:""):V===null||V===void 0?F.removeAttribute(n):(R=V.toString(),n==="href"&&(R=g.Uj(g.h8(R))),F.setAttribute(n,R))};
g.N=function(R){g.ze.call(this,R);this.JJ=!0;this.UZ=!1;this.listeners=[]};
g.c5=function(R){g.N.call(this,R);this.uS=new g.fG;g.d(this,this.uS)};
w_=function(R,F,n,V,r,v,f){f=f===void 0?null:f;g.c5.call(this,F);this.api=R;this.macros={};this.componentType=n;this.Z=this.X=null;this.aG=f;this.layoutId=V;this.interactionLoggingClientData=r;this.Vz=v;this.dX=null;this.WP=new cj(this.element);g.d(this,this.WP);this.k5=this.C(this.element,"click",this.onClick);this.lS=[];this.jQ=new wG(this.onClick,this);g.d(this,this.jQ);this.mQ=!1;this.Mq=this.Nq=null};
S8=function(R,F){R=R===void 0?null:R;F=F===void 0?null:F;if(R==null)return g.mq(Error("Got null or undefined adText object")),"";var n=g.P$(R.text);if(!R.isTemplated)return n;if(F==null)return g.mq(Error("Missing required parameters for a templated message")),n;R=g.m(Object.entries(F));for(F=R.next();!F.done;F=R.next()){var V=g.m(F.value);F=V.next().value;V=V.next().value;n=n.replace("{"+F+"}",V)}return n};
JjN=function(R){R=R===void 0?null:R;return R!=null&&(R=R.thumbnail,R!=null&&R.thumbnails!=null&&R.thumbnails.length!=0&&R.thumbnails[0].url!=null)?g.P$(R.thumbnails[0].url):""};
GgV=function(R){R=R===void 0?null:R;return R!=null&&(R=R.thumbnail,R!=null&&R.thumbnails!=null&&R.thumbnails.length!=0&&R.thumbnails[0].width!=null&&R.thumbnails[0].height!=null)?new g.QX(R.thumbnails[0].width||0,R.thumbnails[0].height||0):new g.QX(0,0)};
g.LG=function(R){if(R.simpleText)return R.simpleText;if(R.runs){var F=[];R=g.m(R.runs);for(var n=R.next();!n.done;n=R.next())n=n.value,n.text&&F.push(n.text);return F.join("")}return""};
g.sa=function(R){if(R.simpleText)return R=document.createTextNode(R.simpleText),R;var F=[];if(R.runs)for(var n=0;n<R.runs.length;n++){var V=R.runs[n];if(V.text){var r=F,v=r.push,f=null;var z=V.text;V.bold&&(f=mp("B",null,f||z));V.italics&&(f=mp("I",null,f||z));V.strikethrough&&(f=mp("STRIKE",null,f||z));V.navigationEndpoint&&V.navigationEndpoint.urlEndpoint&&(V=V.navigationEndpoint.urlEndpoint,f=mp("A",null,f||z),g.uS(f,V.url),V.target=="TARGET_NEW_WINDOW"&&(f.target="_blank"));z=f||mp("SPAN",null,
z);v.call(r,z)}}return F.length==1?F[0]:mp("SPAN",null,F)};
g.dl_=function(){return{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,S:{d:"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 M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 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 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",
fill:"#fff"}}]}};
pG=function(){return{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",S:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
g.Xs=function(){return{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},L:[{j:"path",S:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
MPR=function(){return{j:"svg",S:{height:"100%",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",S:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}};
g.An=function(){return{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},L:[{j:"path",S:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
l__=function(){return{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},L:[{j:"path",S:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{j:"path",S:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
Nze=function(){return{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},L:[{j:"path",AX:!0,S:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
Ei_=function(){return{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},L:[{j:"path",AX:!0,S:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.ah=function(){return{j:"svg",S:{height:"100%",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",S:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
CG=function(){return{j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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 19V5H21V19H3ZM6.97 8.34C6.42 8.64 5.96 9.09 5.64 9.63L5.50 9.87C5.16 10.53 4.99 11.26 5 12L5.00 12.27C5.04 12.92 5.21 13.55 5.50 14.12L5.64 14.36C5.96 14.90 6.42 15.35 6.97 15.65L7.21 15.77C7.79 16.01 8.43 16.06 9.03 15.91L9.29 15.83C9.88 15.61 10.39 15.23 10.77 14.73C10.93 14.53 11.00 14.27 10.97 14.02C10.94 13.77 10.82 13.53 10.63 13.37C10.44 13.20 10.19 13.11 9.93 13.12C9.68 13.13 9.44 13.24 9.26 13.43L9.19 13.50C9.05 13.70 8.85 13.85 8.62 13.94L8.54 13.97C8.35 14.02 8.16 14.00 7.99 13.92L7.91 13.88C7.67 13.75 7.48 13.56 7.35 13.32L7.28 13.20C7.11 12.88 7.02 12.52 7.00 12.16L7 12C6.99 11.58 7.09 11.16 7.28 10.79L7.35 10.67C7.48 10.43 7.67 10.24 7.91 10.11C8.10 10.00 8.32 9.97 8.54 10.02L8.62 10.05C8.81 10.12 8.98 10.24 9.11 10.39L9.19 10.49L9.26 10.57C9.43 10.74 9.66 10.85 9.91 10.87C10.15 10.89 10.40 10.81 10.59 10.66C10.79 10.51 10.92 10.29 10.96 10.05C11.01 9.80 10.96 9.55 10.83 9.34L10.77 9.26L10.60 9.05C10.24 8.65 9.79 8.35 9.29 8.16L9.03 8.08C8.34 7.91 7.60 8.00 6.97 8.34ZM14.97 8.34C14.42 8.64 13.96 9.09 13.64 9.63L13.50 9.87C13.16 10.53 12.99 11.26 13 12L13.00 12.27C13.04 12.92 13.21 13.55 13.50 14.12L13.64 14.36C13.96 14.90 14.42 15.35 14.97 15.65L15.21 15.77C15.79 16.01 16.43 16.06 17.03 15.91L17.29 15.83C17.88 15.61 18.39 15.23 18.77 14.73C18.93 14.53 19.00 14.27 18.97 14.02C18.94 13.77 18.82 13.53 18.63 13.37C18.44 13.20 18.19 13.11 17.93 13.12C17.68 13.13 17.44 13.24 17.26 13.43L17.19 13.50C17.05 13.70 16.85 13.85 16.62 13.94L16.54 13.97C16.35 14.02 16.16 14.00 15.99 13.92L15.91 13.88C15.67 13.75 15.48 13.56 15.35 13.32L15.28 13.20C15.11 12.88 15.02 12.52 15.00 12.16L15 12C14.99 11.58 15.09 11.16 15.28 10.79L15.35 10.67C15.48 10.43 15.67 10.24 15.91 10.11C16.10 10.00 16.32 9.97 16.54 10.02L16.62 10.05C16.81 10.12 16.98 10.24 17.11 10.39L17.19 10.49L17.26 10.57C17.43 10.74 17.66 10.85 17.91 10.87C18.15 10.89 18.40 10.81 18.59 10.66C18.79 10.51 18.92 10.29 18.96 10.05C19.01 9.80 18.96 9.55 18.83 9.34L18.77 9.26L18.60 9.05C18.24 8.65 17.79 8.35 17.29 8.16L17.03 8.08C16.34 7.91 15.60 8.00 14.97 8.34Z",
fill:"white"}}]}};
$lf=function(){return{j:"svg",S:{height:"100%",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",S:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
PxI=function(){return{j:"svg",S:{viewBox:"0 0 24 24"},L:[{j:"path",S:{d:"M0 0h24v24H0z",fill:"none"}},{j:"path",S:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
b$J=function(){return{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}};
Te=function(){return{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
fill:"white","fill-rule":"evenodd"}}]}};
Z$v=function(){return{j:"svg",S:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},L:[{j:"path",S:{d:"M0 0h48v48H0z",fill:"none"}},{j:"path",S:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
eqN=function(){return{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{d:"m 17,23 h 2 V 17 H 17 Z 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 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}};
RXe=function(){return{j:"svg",S:{viewBox:"0 0 24 24"},L:[{j:"path",S:{d:"M0 0h24v24H0z",fill:"none"}},{j:"path",S:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
oh=function(){return{j:"svg",S:{height:"100%",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",S:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
Fl9=function(){return{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},L:[{j:"path",AX:!0,S:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
nhE=function(){return{j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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"}}]}};
yH=function(){return{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
V3f=function(){return{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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"}}]}};
g.rLR=function(){return{j:"svg",S:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},L:[{j:"path",S:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 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"}}]}};
vhk=function(){return{j:"svg",S:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M12 1c1.44 0 2.87.28 4.21.83a11 11 0 0 1 3.45 2.27l-1.81 1.05A9 9 0 0 0 3 12a9 9 0 0 0 18-.00l-.01-.44a8.99 8.99 0 0 0-.14-1.20l1.81-1.05A11.00 11.00 0 0 1 10.51 22.9 11 11 0 0 1 12 1Zm7.08 6.25-7.96 3.25a1.74 1.74 0 1 0 1.73 2.99l6.8-5.26a.57.57 0 0 0-.56-.98Z"}}]}};
Ua=function(){return{j:"svg",S:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},L:[{j:"path",S:{d:"M0 0h48v48H0z",fill:"none"}},{j:"path",S:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]}};
fg_=function(){return{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
t3J=function(){return{j:"svg",S:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},L:[{j:"path",S:{d:"M 12.75 4.5 L 9.75 4.5 C 9.15 4.5 8.58 4.73 8.15 5.15 C 7.73 5.58 7.5 6.15 7.5 6.75 L 7.5 29.25 C 7.5 29.84 7.73 30.41 8.15 30.84 C 8.58 31.26 9.15 31.5 9.75 31.5 L 12.75 31.5 C 13.34 31.5 13.91 31.26 14.34 30.84 C 14.76 30.41 15 29.84 15 29.25 L 15 6.75 C 15 6.15 14.76 5.58 14.34 5.15 C 13.91 4.73 13.34 4.5 12.75 4.5 Z M 26.25 4.5 L 23.25 4.5 C 22.65 4.5 22.08 4.73 21.65 5.15 C 21.23 5.58 21 6.15 21 6.75 V 29.25 C 21 29.84 21.23 30.41 21.65 30.84 C 22.08 31.26 22.65 31.5 23.25 31.5 L 26.25 31.5 C 26.84 31.5 27.41 31.26 27.84 30.84 C 28.26 30.41 28.5 29.84 28.5 29.25 V 6.75 L 28.5 6.75 C 28.5 6.15 28.26 5.58 27.84 5.15 C 27.41 4.73 26.84 4.5 26.25 4.5 Z",
fill:"white"}}]}};
var LIJ=function(R,F){return hv[t[22]](this,17,R,F)};
zXj=function(){return{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",Y:"ytp-svg-fill",S:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}};
j8=function(){return{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,S:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
H5=function(){return{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
hn=function(){return{j:"svg",S:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},L:[{j:"path",S:{d:"M 17 8.6 L 10.89 4.99 C 9.39 4.11 7.5 5.19 7.5 6.93 C 7.5 6.93 7.5 6.93 7.5 6.93 L 7.5 29.06 C 7.5 30.8 9.39 31.88 10.89 31 C 10.89 31 10.89 31 10.89 31 L 17 27.4 C 17 27.4 17 27.4 17 27.4 C 17 27.4 17 27.4 17 27.4 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 Z M 17 8.6 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 V 27.4 C 17 27.4 17 27.4 17 27.4 C 17 27.4 17 27.4 17 27.4 L 33 18 C 33 18 33 18 33 18 C 33 18 33 18 33 18 V 18 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 Z",
fill:"white"}}]}};
qwW=function(){return{j:"svg",S:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},L:[{j:"path",S:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ",fill:"#c00"}},{j:"path",S:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",
fill:"#fff","fill-rule":"nonzero"}}]}};
QxV=function(){return{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"rect",S:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{j:"rect",S:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{j:"path",S:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z",
fill:"white"}},{j:"defs",L:[{j:"linearGradient",S:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},L:[{j:"stop",S:{offset:"0.3","stop-color":"#E1002D"}},{j:"stop",S:{offset:"0.9","stop-color":"#E01378"}}]}]}]}};
cL6=function(){return{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
wcJ=function(){return{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]}};
g.W5=function(){return{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{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"}}]}};
g.us=function(){return{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,S:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
g.B5=function(){return{j:"svg",S:{height:"100%",viewBox:"0 0 16 16",width:"100%"},L:[{j:"path",S:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}};
Swj=function(){return{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
LlN=function(){return{j:"svg",S:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},L:[{j:"path",S:{d:"M 18 6 L 9 6 C 8.20 6 7.44 6.31 6.87 6.87 C 6.31 7.44 6 8.20 6 9 L 6 27 C 6 27.79 6.31 28.55 6.87 29.12 C 7.44 29.68 8.20 30 9 30 L 18 30 C 18 30 18 30 18 30 C 18 30 18 30 18 30 L 18 6 C 18 30 18 30 18 30 C 18 30 18 30 18 30 Z M 27 6 L 18 6 C 18 6 18 6 18 6 C 18 6 18 6 18 6 V 30 C 18 30 18 30 18 30 C 18 30 18 30 18 30 L 27 30 C 27.79 30 28.55 29.68 29.12 29.12 C 29.68 28.55 30 27.79 30 27 V 9 L 30 9 C 30 8.20 29.68 7.44 29.12 6.87 C 28.55 6.31 27.79 6 27 6 Z",
fill:"white"}}]}};
sxe=function(){return{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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"}}]}};
ma=function(){return{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
g_=function(R,F,n,V){F=F===void 0?!1:F;n=n===void 0?!1:n;V=V===void 0?!1:V;if(!R)return null;switch(R.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return n?{j:"svg",S:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",S:{d:"M21 21H3V3h9v1H4v16h16v-8h1v9zM15 3v1h4.32l-8.03 8.03.71.71 8-8V9h1V3h-6z"}}]}:Ua();case "CHECK_BOX":return{j:"svg",S:{height:"100%",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",S:{d:"M0 0h24v24H0z",fill:"none"}},{j:"path",S:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",
fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{j:"svg",S:{height:"100%",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",S:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{j:"path",S:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.ah();case "INFO_OUTLINE":return F?{j:"svg",S:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},L:[{j:"path",S:{d:"M430.09-270.8h101.34V-528H430.09v257.2Zm49.52-338.03q20.94 0 35.34-14.01 14.4-14.01 14.4-34.95 0-20.94-14.01-35.34-14.01-14.39-34.95-14.39-20.94 0-35.34 14.01-14.4 14.01-14.4 34.95 0 20.94 14.01 35.34 14.01 14.39 34.95 14.39Zm.67 548.18q-86.64 0-163.19-32.66-76.56-32.66-133.84-89.94t-89.94-133.8q-32.66-76.51-32.66-163.41 0-87.15 32.72-163.31t90.14-133.61q57.42-57.44 133.79-89.7 76.38-32.27 163.16-32.27 87.14 0 163.31 32.26 76.16 32.26 133.61 89.71 57.45 57.45 89.71 133.86 32.26 76.42 32.26 163.33 0 86.91-32.27 163.08-32.26 76.18-89.7 133.6-57.45 57.42-133.83 90.14-76.39 32.72-163.27 32.72Zm-.33-105.18q131.13 0 222.68-91.49 91.54-91.49 91.54-222.63 0-131.13-91.49-222.68-91.49-91.54-222.63-91.54-131.13 0-222.68 91.49-91.54 91.49-91.54 222.63 0 131.13 91.49 222.68 91.49 91.54 222.63 91.54ZM480-480Z"}}]}:
Z$v();case "REMOVE_CIRCLE":return{j:"svg",S:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",S:{d:"M0 0h24v24H0z",fill:"none"}},{j:"path",S:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return yH();case "SKIP_NEXT_NEW":return V?V3f():{j:"svg",S:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},L:[{j:"path",S:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return RXe();
case "DISLIKE":return PxI();default:return g.mq(new g.UR("Unexpected icon:",R)),null}};
Oa=function(R,F,n,V,r,v,f,z,q){r=r===void 0?[]:r;f=f===void 0?!1:f;q=q===void 0?!1:q;r={j:"button",BG:["ytp-ad-button"].concat(r)};z!=null&&(r.S={tabindex:z});w_.call(this,R,r,v===void 0?"button":v,F,n,V);this.T=this.U=this.N=null;this.W=f;this.J=q;this.hide()};
pce=function(R){var F=null;R.T!=null&&(F=[R.T.serviceEndpoint,R.T.navigationEndpoint].filter(function(n){return n!=null}),R.T.command&&(F=F.concat(R.T.command)));
return F||[]};
Ih=function(){g.G.call(this);var R=this;this.T=new Map;this.U=Tb6(function(F){if(F.target&&(F=R.T.get(F.target))&&F)for(var n=0;n<F.length;n++)g.ir(F[n])})};
XcV=function(){KG==null&&(KG=new Ih);return KG};
DC=function(R,F){if(R.simpleText){a:{R=R.simpleText;if(F&&(F=ALJ(R))){F=mp("SPAN",null,F);break a}F=g.Os(R)}return F}var n=[];if(R.runs)for(var V=0;V<R.runs.length;V++){var r=R.runs[V];r.text&&n.push(agN(r,F))}return n.length==1?n[0]:mp("SPAN",null,n)};
agN=function(R,F){var n=null,V=R.text;F&&(V=ALJ(V)||V);R.bold&&(n=mp("B",null,n||V));R.italics&&(n=mp("I",null,n||V));R.strikethrough&&(n=mp("STRIKE",null,n||V));R.navigationEndpoint&&g.A(R.navigationEndpoint,g.is)&&(F=g.A(R.navigationEndpoint,g.is),n=mp("A",null,n||V),g.uS(n,F.url),F.target=="TARGET_NEW_WINDOW"&&(n.target="_blank"),R=R.navigationEndpoint.loggingUrls)&&(R=R.map(function(r){return r.baseUrl}),XcV().register(n,R),g.z0(n,"ytp-ad-has-logging-urls"));
return n||mp("SPAN",null,V)};
ALJ=function(R){R=R.split(/(?:\r\n|\r|\n)/g);if(R.length>1){for(var F=[R[0]],n=1;n<R.length;n++)F.push(mp("BR")),F.push(R[n]);return F}return null};
xt=function(R,F,n,V,r,v,f,z,q){v=v===void 0?!1:v;f=f===void 0?[]:f;q=q===void 0?!1:q;w_.call(this,R,{j:"span",BG:["ytp-ad-hover-text-button"].concat(f)},z===void 0?"ad-hover-text-button":z,F,n,V);this.button=this.U=null;this.V=v;this.W=r;this.N=q;this.hide()};
kt=function(R){return R&&R.thumbnails&&(R.thumbnails||null).length!=0&&R.thumbnails[0].url?g.P$(R.thumbnails[0].url):""};
Yt=function(R,F,n,V,r,v){v=v===void 0?!1:v;w_.call(this,R,{j:"img",Y:"ytp-ad-image"},"ad-image",F,n,V,r===void 0?null:r);this.T=v;this.hide()};
Jn=function(R,F,n,V,r,v){r=r===void 0?[]:r;w_.call(this,R,{j:"div",BG:["ytp-ad-confirm-dialog-background"],L:[{j:"div",Y:"ytp-ad-confirm-dialog-container",L:[{j:"div",BG:["ytp-ad-confirm-dialog"].concat(r),S:{role:"dialog",tabindex:"-1"},L:[{j:"div",Y:"ytp-ad-confirm-dialog-title",cG:"{{title}}"},{j:"div",Y:"ytp-ad-confirm-dialog-messages"},{j:"div",Y:"ytp-ad-confirm-dialog-confirm-container",L:[{j:"button",Y:"ytp-ad-confirm-dialog-cancel-button",cG:"{{cancelLabel}}"},{j:"button",Y:"ytp-ad-confirm-dialog-confirm-button",
cG:"{{confirmLabel}}"}]}]}]},{j:"button",BG:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],L:[{j:"span",Y:"ytp-ad-button-icon",L:[g.ah()]}]}]},v===void 0?"confirm-dialog":v,F,n,V);this.V=this.sZ("ytp-ad-confirm-dialog-close-overlay-button");this.J=this.sZ("ytp-ad-confirm-dialog-cancel-button");this.W=this.sZ("ytp-ad-confirm-dialog-confirm-button");this.J1=this.sZ("ytp-ad-confirm-dialog-messages");this.N=null;this.T=new Ow;g.d(this,this.T);this.U=null;this.hide()};
C6E=function(R,F){if(F.title){var n=g.LG(F.title);R.updateValue("title",n)}if(F.dialogMessages){n=g.m(F.dialogMessages);for(var V=n.next();!V.done;V=n.next())V=DC(V.value),R.J1.appendChild(V)}F.cancelLabel&&(n=g.LG(F.cancelLabel),R.updateValue("cancelLabel",n),R.T.C(R.J,"click",function(r){return R.XV(r)}));
F.confirmLabel&&(F=g.LG(F.confirmLabel),R.updateValue("confirmLabel",F),R.T.C(R.W,"click",function(r){return R.FN(r)}));
R.T.C(R.V,"click",function(r){return R.PS(r)})};
Ge=function(R,F,n,V,r,v){r=r===void 0?[]:r;v=v===void 0?"toggle-button":v;var f=r_("ytp-ad-toggle-button-input"),z={role:"button","aria-label":"{{tooltipText}}"};R.D().experiments.GH("fix_h5_toggle_button_a11y")&&(z.tabindex="0");z.role="checkbox";w_.call(this,R,{j:"div",BG:["ytp-ad-toggle-button"].concat(r),L:[{j:"label",Y:"ytp-ad-toggle-button-label",S:{"for":f},L:[{j:"span",Y:"ytp-ad-toggle-button-icon",S:z,L:[{j:"span",Y:"ytp-ad-toggle-button-untoggled-icon",cG:"{{untoggledIconTemplateSpec}}"},
{j:"span",Y:"ytp-ad-toggle-button-toggled-icon",cG:"{{toggledIconTemplateSpec}}"}]},{j:"input",Y:"ytp-ad-toggle-button-input",S:{id:f,type:"checkbox"}},{j:"span",Y:"ytp-ad-toggle-button-text",cG:"{{buttonText}}"},{j:"span",Y:"ytp-ad-toggle-button-tooltip",cG:"{{tooltipText}}"}]}]},v,F,n,V);this.J=this.sZ("ytp-ad-toggle-button");this.T=this.sZ("ytp-ad-toggle-button-input");this.U=this.sZ("ytp-ad-toggle-button-icon");this.V=this.sZ("ytp-ad-toggle-button-untoggled-icon");this.W=this.sZ("ytp-ad-toggle-button-toggled-icon");
this.PG=this.sZ("ytp-ad-toggle-button-text");this.N=null;this.J1=!1;this.hide()};
d_=function(R){R.J1&&(R.isToggled()?(g.av(R.V,!1),g.av(R.W,!0),R.U.setAttribute("aria-checked",!0)):(g.av(R.V,!0),g.av(R.W,!1),R.U.setAttribute("aria-checked",!1)))};
TfJ=function(R,F){var n=null;R.N&&(n=(F?[R.N.defaultServiceEndpoint,R.N.defaultNavigationEndpoint]:[R.N.toggledServiceEndpoint]).filter(function(V){return V!=null}));
return n||[]};
ohk=function(R,F,n){this.actionType=F;this.id=n;this.content=R};
MB=function(R){Ow.call(this);this.T=R;this.C(this.T,"onAdUxUpdate",this.W)};
ls=function(R,F,n,V){w_.call(this,R,{j:"div",Y:"ytp-ad-feedback-dialog-background",L:[{j:"div",Y:"ytp-ad-feedback-dialog-container",L:[{j:"div",Y:"ytp-ad-feedback-dialog-form",S:{role:"dialog",tabindex:"-1"},L:[{j:"div",Y:"ytp-ad-feedback-dialog-title",L:[{j:"span",cG:"{{title}}"}]},{j:"span",Y:"ytp-ad-info-dialog-feedback-options-title",cG:"{{reasonsTitle}}"},{j:"div",Y:"ytp-ad-info-dialog-feedback-options"},{j:"div",Y:"ytp-ad-feedback-dialog-confirm-container",L:[{j:"button",Y:"ytp-ad-feedback-dialog-cancel-button",
cG:"{{cancelLabel}}"},{j:"button",Y:"ytp-ad-feedback-dialog-confirm-button",cG:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",F,n,V);this.J=[];this.T=null;this.W=this.sZ("ytp-ad-feedback-dialog-cancel-button");this.V=this.sZ("ytp-ad-feedback-dialog-confirm-button");this.J1=this.sZ("ytp-ad-info-dialog-feedback-options");this.PG=this.sZ("ytp-ad-feedback-dialog-title");this.N=this.U=null;this.hide()};
Hwk=function(R,F){var n=F.cancelRenderer&&F.cancelRenderer.buttonRenderer||null;n&&(R.T=new Oa(R.api,R.layoutId,R.interactionLoggingClientData,R.Vz,["ytp-ad-feedback-dialog-close-button"],"button"),g.d(R,R.T),R.T.init(r_("button"),n,R.macros),R.T.listen("click",R.kL,R),R.T.KH(R.element));F.title&&(n=g.LG(F.title),R.updateValue("title",n));F.reasonsTitle&&(n=g.LG(F.reasonsTitle),R.updateValue("reasonsTitle",n));F.reasons&&yLN(R,F.reasons);F.cancelLabel&&(n=g.LG(F.cancelLabel),R.updateValue("cancelLabel",
n),g.Wc(R.W,"click",function(){return R.kL()}));
F.confirmLabel&&(n=g.LG(F.confirmLabel),R.updateValue("confirmLabel",n),g.Wc(R.V,"click",function(){return U8_(R)}));
F.undoRenderer&&jxI(R,F.undoRenderer)};
yLN=function(R,F){F=g.m(F);for(var n=F.next();!n.done;n=F.next()){var V=n.value;n=V.reason;if(n==null)g.mq(Error("AdFeedbackReason.reason was not set."));else if(V=V.endpoint,V==null)g.mq(Error("AdFeedbackReason.endpoint was not set."));else{n=new NB(n,V);g.d(R,n);V=R.J1;var r=n.Fs();V.appendChild(r);R.J.push(n)}}};
jxI=function(R,F){if(F=F&&F.buttonRenderer||null)F.serviceEndpoint?(R.U=new Oa(R.api,R.layoutId,R.interactionLoggingClientData,R.Vz,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.d(R,R.U),R.U.init(r_("ad-feedback-undo-mute-button"),F,R.macros),R.U.listen("click",R.oS2,R),R.U.KH(R.PG)):g.mq(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
U8_=function(R){var F=R.J.filter(function(n){return n.isChecked()});
F.length!==0&&(F=F[0].getCommand(),R.layoutId?R.Vz.executeCommand(F,R.layoutId):g.uX(Error("Missing layoutId for ad feedback dialog.")),R.api.onAdUxClicked("ad-feedback-dialog-confirm-button",R.layoutId),R.publish("a"),R.hide())};
NB=function(R,F){this.U=F;this.T=new g.c5({j:"label",Y:"ytp-ad-feedback-dialog-reason-label",L:[{j:"input",Y:"ytp-ad-feedback-dialog-reason-input",S:{type:"radio",name:"feedback-reason-group"}},{j:"span",Y:"ytp-ad-feedback-dialog-reason-text",cG:g.LG(R)}]});this.N=this.T.sZ("ytp-ad-feedback-dialog-reason-input")};
Ea=function(R,F,n,V){Jn.call(this,R,F,n,V,[],"ad-mute-confirm-dialog")};
$t=function(R,F,n,V,r){w_.call(this,R,{j:"div",Y:"ytp-ad-info-dialog-background",L:[{j:"div",Y:"ytp-ad-info-dialog-container",L:[{j:"div",Y:"ytp-ad-info-dialog-form",S:{role:"dialog",tabindex:"-1"},L:[{j:"div",Y:"ytp-ad-info-dialog-title",cG:"{{title}}"},{j:"ul",Y:"ytp-ad-info-dialog-ad-reasons"},{j:"div",Y:"ytp-ad-info-dialog-message"},{j:"div",Y:"ytp-ad-info-dialog-mute-container"},{j:"div",Y:"ytp-ad-info-dialog-confirm-container",L:[{j:"button",Y:"ytp-ad-info-dialog-confirm-button",cG:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",F,n,V);this.T=this.U=null;this.V=this.sZ("ytp-ad-info-dialog-confirm-button");this.SQ=this.sZ("ytp-ad-info-dialog-mute-container");this.gX=this.sZ("ytp-ad-info-dialog-message");this.bS=this.sZ("ytp-ad-info-dialog-ad-reasons");this.J=this.N=null;this.PG=r;this.W=null;this.Y5=!1;this.J1=null;this.hide()};
hXR=function(R,F){if(F=F.content&&F.content.adFeedbackRenderer||null)R.U=new ls(R.api,R.layoutId,R.interactionLoggingClientData,R.Vz),g.d(R,R.U),R.U.init(r_("ad-feedback-dialog"),F,R.macros),R.U.KH(R.PG),R.U.subscribe("a",function(){return R.publish("c")})};
WlW=function(R,F){if(F=F.content&&F.content.confirmDialogRenderer||null)R.J=new Ea(R.api,R.layoutId,R.interactionLoggingClientData,R.Vz),g.d(R,R.J),R.J.init(r_("ad-mute-confirm-dialog"),F,R.macros),R.J.KH(R.PG),R.J.subscribe("b",function(){return R.publish("c")})};
uAW=function(R){R.T&&R.T.listen("click",R.f8,R);g.Wc(R.V,"click",function(){return R.f8()})};
P5=function(R,F,n,V,r,v,f){xt.call(this,R,F,n,V,v===void 0?!0:v,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",f===void 0?!1:f);this.T=null;this.J=r;this.hide()};
m8W=function(R,F,n){F=F.dialog&&g.A(F.dialog,BfN)||null;F==null?g.uX(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(R.T=new $t(R.api,R.layoutId,R.interactionLoggingClientData,R.Vz,R.J),g.d(R,R.T),R.T.init(r_("ad-info-dialog"),F,n),R.T.KH(R.J),R.T.subscribe("d",function(){return R.publish("f")}),R.T.subscribe("c",function(){return R.publish("e")}))};
IgN=function(R,F,n){R.button==null?g.uX(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(R.U&&g.z0(R.U.element,"ytp-ad-info-hover-text-short"),(F=F&&F.serviceEndpoint&&g.A(F.serviceEndpoint,gh_)||null)?(m8W(R,F,n),R.button.listen("click",function(){R.T&&!R.T.JJ&&(R.T.show(),Owe(R))})):R.button.listen("click",function(){return Owe(R)}))};
Owe=function(R){R.api.onAdUxClicked("ad-info-icon-button",R.layoutId)};
bs=function(R,F,n,V,r,v){w_.call(this,R,{j:"div",Y:"ytp-ad-text"},v===void 0?"ad-text":v,F,n,V,r===void 0?null:r);this.T=null;this.hide()};
ZC=function(R,F){F&&g.kW(R.element,S8(R.T,F))};
e8=function(R,F,n,V,r,v,f){w_.call(this,R,F,n,V,r,v);this.T=f;g.d(this,this.T);this.Y5=this.V=-1};
Rt=function(R){R.T&&R.V===-1&&(R.V=R.T.subscribe("h",R.o$,R),R.Y5=R.T.subscribe("g",R.cA,R),R.o$())};
FU=function(R){R.T!=null&&R.V!==-1&&(R.T.V6(R.V),R.T.V6(R.Y5),R.Y5=-1,R.V=-1)};
g.n5=function(R,F,n,V,r,v){g.G.call(this);this.element=R;this.state=null;n||R.hide();this.U=F;this.N=V===void 0?F:V;this.T=v;this.onHidden=r;this.delay=new g.ZK(this.Fg,0,this);g.d(this,this.delay)};
V2=function(R,F){R=R.element.element;F?R.setAttribute("aria-hidden","true"):R.removeAttribute("aria-hidden")};
rr=function(R,F,n,V,r,v){e8.call(this,R,{j:"div",Y:"ytp-ad-preview-slot"},"ad-preview",F,n,V,r);var f=this;this.SQ=-1;this.J=this.api.D().experiments.GH("enable_modern_skip_button_on_web");this.U=new g.c5({j:"span",Y:"ytp-ad-preview-container"});this.J&&this.U.element.classList.add("ytp-ad-preview-container-detached");g.d(this,this.U);this.N=this.J?new bs(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,"ytp-ad-preview-text-modern"):new bs(this.api,this.layoutId,this.interactionLoggingClientData,
this.Vz,"ytp-ad-preview-text");g.d(this,this.N);this.N.KH(this.U.element);this.PG=this.J?new g.c5({j:"span",Y:"ytp-ad-preview-image-modern"}):new g.c5({j:"span",Y:"ytp-ad-preview-image"});g.d(this,this.PG);this.W=new Yt(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz);g.d(this,this.W);this.W.KH(this.PG.element);this.PG.KH(this.U.element);this.U.KH(this.element);this.J1=new g.n5(this.U,400,!1,100,function(){return f.hide()});
g.d(this,this.J1);this.bS=0;this.gX=!1;this.h1=v;this.hide()};
vP=function(R,F,n,V,r,v){e8.call(this,R,{j:"div",BG:["ytp-flyout-cta","ytp-flyout-cta-inactive"],L:[{j:"div",Y:"ytp-flyout-cta-icon-container"},{j:"div",Y:"ytp-flyout-cta-body",L:[{j:"div",Y:"ytp-flyout-cta-text-container",L:[{j:"div",Y:"ytp-flyout-cta-headline-container"},{j:"div",Y:"ytp-flyout-cta-description-container"}]},{j:"div",Y:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",F,n,V,r);this.N=new Yt(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,"ytp-flyout-cta-icon");
g.d(this,this.N);this.N.KH(this.sZ("ytp-flyout-cta-icon-container"));this.N.element.classList.add("ytp-flyout-cta-icon-rounded");this.W=new bs(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,"ytp-flyout-cta-headline");g.d(this,this.W);this.W.KH(this.sZ("ytp-flyout-cta-headline-container"));this.J=new bs(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,"ytp-flyout-cta-description");g.d(this,this.J);this.J.KH(this.sZ("ytp-flyout-cta-description-container"));this.U=new Oa(this.api,
this.layoutId,this.interactionLoggingClientData,this.Vz,["ytp-flyout-cta-action-button","ytp-flyout-cta-action-button-rounded"]);g.d(this,this.U);this.U.KH(this.sZ("ytp-flyout-cta-action-button-container"));this.U.element.setAttribute("tabIndex","-1");N1(this.U.element);this.J1=null;this.PG=0;this.bS=v;this.hide()};
f5=function(R,F,n,V,r){w_.call(this,R,{j:"div",Y:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",F,n,V,r===void 0?null:r);var v=this;this.T=null;this.N=new Ge(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,["ytp-ad-instream-user-sentiment-like-button"]);g.d(this,this.N);this.N.KH(this.element);this.U=new Ge(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,["ytp-ad-instream-user-sentiment-dislike-button"]);g.d(this,this.U);this.U.KH(this.element);
this.J=new g.n5(this,400,!1,500,function(){return v.hide()});
g.d(this,this.J);this.hide()};
te=function(R,F,n,V,r,v){r=r===void 0?0:r;v=v===void 0?!1:v;g.G.call(this);this.U=R;this.N=!1;this.UZ=V;this.Nq=v;this.Z=!1;this.T=null;F>0&&(this.T=new g.ZK(this.Ss,F,this),g.d(this,this.T));this.W=new g.ZK(this.Ss,n,this);g.d(this,this.W);this.V=qHN(this.U,r,1,V);g.d(this,this.V);this.X=qHN(this.U,0,V,1);g.d(this,this.X);this.J=new Ow;g.d(this,this.J)};
zF=function(R,F){this.U=R;this.T=F};
Klv=function(R){switch(R){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:B$(R,"unknown result type")}};
D8N=function(R,F){var n=1;R.isTrusted===!1&&(n=0);ZJ("ISDSTAT",n);qO(n,"i.s_",{triggerContext:"sk",metadata:F});return n};
iwI=function(R,F){var n=[];F?F.isTrusted===!0?n.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):F.isTrusted===!1?n.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):n.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):n.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");qO(0,"a.s_",{metadata:R,states:n});ZJ("ASDSTAT",0)};
qO=function(R,F,n){F=x8f[F];var V,r,v={detected:R===0,source:""+F.U+((V=n.triggerContext)!=null?V:"")+((r=n.B7)!=null?r:""),detectionStates:n.states,durationMs:n.Kr};n.metadata&&(v.contentCpn=n.metadata.contentCpn,v.adCpn=n.metadata.adCpn);g.LJ("biscottiBasedDetection",v);F.T!==void 0&&(n=Number(g.ew("CATSTAT",0)),F.T!==void 0?(F=F.T,R=Klv(R),R=n&~(3<<F)|R<<F):R=n,ZJ("CATSTAT",R))};
Q2=function(R,F,n,V,r){V=V===void 0?{}:V;if(!r||Math.random()<5E-4){F=F||null;n=n||null;R=R instanceof Error?R:new g.UR(R);if(R.args)for(var v=g.m(R.args),f=v.next();!f.done;f=v.next())f=f.value,f instanceof Object&&(V=Object.assign({},f,V));V.category="H5 Ads Control Flow";F&&(V.slot=F?"slot:  "+F.slotType:"");n&&(V.layout=n?"layout:  "+n.layoutType:"",V.layoutId=n.layoutId);r&&(V.known_error_aggressively_sampled=!0);R.args=[V];g.mq(R)}};
g.cP=function(R,F){this.state=R;this.oldState=F};
wr=function(R,F){return g.E(R.state,F)&&!g.E(R.oldState,F)?1:!g.E(R.state,F)&&g.E(R.oldState,F)?-1:0};
g.Sx=function(R,F){return wr(R,F)>0};
L5=function(R,F,n,V,r,v){e8.call(this,R,{j:"div",Y:"ytp-ad-skip-button-slot"},"skip-button",F,n,V,r);var f=this;this.J1=null;this.PG=!1;this.gX=v;this.W=this.api.D().experiments.GH("enable_modern_skip_button_on_web");this.SQ=!1;this.J=new g.c5({j:"span",BG:["ytp-ad-skip-button-container"]});this.W&&this.J.element.classList.add("ytp-ad-skip-button-container-detached");g.d(this,this.J);this.J.KH(this.element);this.U=this.N=null;this.h1=new g.n5(this.J,500,!1,100,function(){return f.hide()});
g.d(this,this.h1);this.bS=new te(this.J.element,15E3,5E3,.5,.5,this.W);g.d(this,this.bS);this.hide()};
Yw6=function(R){R=R.J1&&R.J1.adRendererCommands;return(R&&R.clickCommand&&g.A(R.clickCommand,g.sq)&&g.A(R.clickCommand,g.sq).commands||[]).some(function(F){return F.adLifecycleCommand?kQR(F.adLifecycleCommand):!1})};
kQR=function(R){return R.action==="END_LINEAR_AD"||R.action==="END_LINEAR_AD_PLACEMENT"};
p5=function(R,F,n,V,r,v){e8.call(this,R,{j:"div",Y:"ytp-ad-skip-ad-slot"},"skip-ad",F,n,V,r);this.J1=v;this.J=!1;this.W=0;this.N=this.U=null;this.hide()};
JLR=function(R,F){R.J||(R.J=!0,R.U&&(F?R.U.J1.hide():R.U.hide()),F?(R=R.N,R.h1.show(),R.show()):R.N.show())};
XU=function(R,F,n,V){Oa.call(this,R,F,n,V,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
Ae=function(R,F,n,V,r,v,f){v=v===void 0?!1:v;f=f===void 0?!1:f;w_.call(this,R,{j:"span",Y:"ytp-ad-simple-ad-badge"},"simple-ad-badge",F,n,V);this.N=r;this.T=this.sZ("ytp-ad-simple-ad-badge");(this.U=v)&&this.T.classList.add("ytp-ad-simple-ad-badge--clean-player");f&&this.T.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()};
at=function(R,F,n,V,r){r=r===void 0?!1:r;v5.call(this,"player-overlay",R,{},F,V);this.videoAdDurationSeconds=n;this.interactionLoggingClientData=V;this.OI=r};
C5=function(R,F){g.fG.call(this);this.api=R;this.durationMs=F;this.T=null;this.handler=new Ow(this);g.d(this,this.handler);this.U=GQk;this.handler.C(this.api,"presentingplayerstatechange",this.TW);this.T=this.handler.C(this.api,"onAdPlaybackProgress",this.M5)};
TF=function(R){g.fG.call(this);this.T=!1;this.j7=0;this.handler=new Ow(this);g.d(this,this.handler);this.durationMs=R;this.timer=new g.Yv(100);g.d(this,this.timer);this.handler.C(this.timer,"tick",this.M5);this.U={seekableStart:0,seekableEnd:R/1E3,current:0};this.start()};
g.ot=function(R,F){var n=Math.abs(Math.floor(R)),V=Math.floor(n/86400),r=Math.floor(n%86400/3600),v=Math.floor(n%3600/60);n=Math.floor(n%60);if(F){F="";V>0&&(F+=" "+V+" Days");if(V>0||r>0)F+=" "+r+" Hours";F+=" "+v+" Minutes";F+=" "+n+" Seconds";V=F.trim()}else{F="";V>0&&(F+=V+":",r<10&&(F+="0"));if(V>0||r>0)F+=r+":",v<10&&(F+="0");F+=v+":";n<10&&(F+="0");V=F+n}return R>=0?V:"-"+V};
g.y2=function(R){return(!("button"in R)||typeof R.button!=="number"||R.button===0)&&!("shiftKey"in R&&R.shiftKey)&&!("altKey"in R&&R.altKey)&&!("metaKey"in R&&R.metaKey)&&!("ctrlKey"in R&&R.ctrlKey)};
Uq=function(R,F,n,V,r,v,f){e8.call(this,R,{j:"span",Y:f?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",F,n,V,r);this.videoAdDurationSeconds=v;this.U=null;f&&this.api.D().U&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),lV&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()};
jx=function(R,F,n,V){bs.call(this,R,F,n,V,"ytp-video-ad-top-bar-title","ad-title")};
HP=function(R){this.content=R.content;if(R.commandRuns){R=g.m(R.commandRuns);for(var F=R.next();!F.done;F=R.next())F=F.value,this.loggingDirectives=g.A(F,d8v),F.onTap&&(this.interaction={onTap:F.onTap})}};
he=function(R,F,n,V){w_.call(this,R,{j:"div",Y:"ad-simple-attributed-string"},"ad-simple-attributed-string",F,n,V);this.hide()};
WP=function(R,F,n,V,r){w_.call(this,R,{j:"span",Y:r?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",F,n,V);this.U=r;this.adBadgeText=new he(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz);this.adBadgeText.KH(this.element);g.d(this,this.adBadgeText);r?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),lV&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()};
uN=function(R,F,n,V){w_.call(this,R,{j:"span",Y:"ytp-ad-pod-index"},"ad-pod-index",F,n,V);this.api.D().U&&(this.element.classList.add("ytp-ad-pod-index--mweb"),lV&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()};
BP=function(R,F,n,V){w_.call(this,R,{j:"div",Y:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",F,n,V);this.hide()};
mz=function(R,F){this.U=R;this.T=F};
M39=function(R,F){return R.U+F*(R.T-R.U)};
Oq=function(R,F,n){return R.T-R.U?g.vI((F-R.U)/(R.T-R.U),0,1):n!=null?n:Infinity};
It=function(R,F,n,V){V=V===void 0?!1:V;g.c5.call(this,{j:"div",Y:"ytp-ad-persistent-progress-bar-container",L:[{j:"div",Y:"ytp-ad-persistent-progress-bar"}]});this.api=R;this.U=F;this.N=n;V&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.d(this,this.U);this.progressBar=this.sZ("ytp-ad-persistent-progress-bar");this.T=-1;this.C(R,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
K5=function(R,F,n,V,r,v){w_.call(this,R,{j:"div",Y:"ytp-ad-player-overlay",L:[{j:"div",Y:"ytp-ad-player-overlay-flyout-cta"},{j:"div",Y:"ytp-ad-player-overlay-instream-info"},{j:"div",Y:"ytp-ad-player-overlay-skip-or-preview"},{j:"div",Y:"ytp-ad-player-overlay-progress-bar"},{j:"div",Y:"ytp-ad-player-overlay-instream-user-sentiment"},{j:"div",Y:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",F,n,V);this.V=v;this.W=this.sZ("ytp-ad-player-overlay-flyout-cta");this.W.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
this.T=this.sZ("ytp-ad-player-overlay-instream-info");this.J=null;lgk(this)&&(R=mp("div"),g.z0(R,"ytp-ad-player-overlay-top-bar-gradients"),F=this.T,F.parentNode&&F.parentNode.insertBefore(R,F),(F=this.api.getVideoData({playerType:2}))&&F.isListed&&F.title&&(n=new jx(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz),n.KH(R),n.init(r_("ad-title"),{text:F.title},this.macros),g.d(this,n)),this.J=R);this.N=null;this.Y5=this.sZ("ytp-ad-player-overlay-skip-or-preview");this.bS=this.sZ("ytp-ad-player-overlay-progress-bar");
this.PG=this.sZ("ytp-ad-player-overlay-instream-user-sentiment");this.J1=this.sZ("ytp-ad-player-overlay-ad-disclosure-banner");this.U=r;g.d(this,this.U);this.hide()};
lgk=function(R){R=R.api.D();return g.Dz(R)&&R.U};
g.iN=function(R){R&=16777215;var F=[(R&16711680)>>16,(R&65280)>>8,R&255];R=F[0];var n=F[1];F=F[2];R=Number(R);n=Number(n);F=Number(F);if(R!=(R&255)||n!=(n&255)||F!=(F&255))throw Error('"('+R+","+n+","+F+'") is not a valid RGB color');n=R<<16|n<<8|F;return R<16?"#"+(16777216|n).toString(16).slice(1):"#"+n.toString(16)};
xH=function(){};
Nfv=function(){};
$89=function(R){var F=new oN;var n=new T8;n=V7(n,1,"botguard");R=V7(n,2,R);this.T=Fpj(F,T8,1,EhV,R)};
g.Mv=function(){if(!kH){kH=new dT(new Nfv);var R=jP("client_streamz_web_flush_count",-1);R!==-1&&(kH.N=R)}return kH};
YH=function(R){this.T=new m9(R)};
P6I=function(){var R=!1;try{R=!!window.sessionStorage.getItem("session_logininfo")}catch(F){R=!0}return(g.ew("INNERTUBE_CLIENT_NAME")==="WEB"||g.ew("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&R};
Je=function(){var R=R===void 0?!0:R;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");ZJ("LOGIN_INFO","");R&&window.sessionStorage.setItem("from_switch_account","1");R=!0;R=R===void 0?!1:R;var F,n=bwJ;n||(n=document.querySelector("#persist_identity"));if(F=n){var V=F.src?(new URL(F.src)).origin:"*";if(R){var r;(r=F.contentWindow)==null||r.postMessage({action:"clear"},V)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)){var v=window.sessionStorage.getItem("session_logininfo");if(v){var f;(f=F.contentWindow)==null||f.postMessage({loginInfo:v},V)}}}}catch(z){}};
GF=function(R){R&&(R.startsWith("https://accounts.google.com/AddSession")?Je():R.startsWith("https://accounts.google.com/ServiceLogin")?Je():R.startsWith("https://myaccount.google.com")&&g.H_(R).U.endsWith("/youtubeoptions")&&Je());if(g.ew("LOGGED_IN",!0)&&P6I()){var F=g.ew("VALID_SESSION_TEMPDATA_DOMAINS",[]);var n=g.u5(window.location.href);n&&F.push(n);n=g.u5(R);g.Rz(F,n)||!n&&eW(R,"/")?(F=mw(R),(F=Qvv(F))?(F=q2J(F),F=(F=g.Yi(F)||null)?Xj(F):{}):F=null):F=null;F==null&&(F={});n=F;var V=void 0;
P6I()?(V||(V=g.ew("LOGIN_INFO")),V?(n.session_logininfo=V,n=!0):n=!1):n=!1;n&&oQ(R,F)}};
g.Zwk=function(R){var F=F===void 0?{}:F;var n=n===void 0?"":n;var V=V===void 0?window:V;R=g.DI(R,F);GF(R);n=g.h8(R+n);V=V.location;n=W$(n);n!==void 0&&(V.href=n)};
g.dr=function(R,F,n){F=F===void 0?{}:F;n=n===void 0?!1:n;var V=g.ew("EVENT_ID");V&&(F.ei||(F.ei=V));F&&oQ(R,F);n||(GF(R),g.Zwk(R))};
g.MO=function(R,F,n,V,r){r=r===void 0?!1:r;n&&oQ(R,n);n=g.h8(R);var v=g.Uj(n);R!=v&&rz(Error("Unsafe window.open URL: "+R));R=v;F=F||bS(R).toString(36);try{if(r)return r=R,r=iON(r),GF(r),g.Ie(window,r,F,"attributionsrc")}catch(f){g.n$(f)}GF(R);return g.Ie(window,n,F,V)};
eX_=function(R){lN=R};
R8J=function(R){NO=R};
F2_=function(R){Eq=R};
Va9=function(){nsk=Eq=NO=lN=null};
vsf=function(){var R=R===void 0?window.location.href:R;if(g.U2("kevlar_disable_theme_param"))return null;var F=Ba(R);if(g.U2("enable_dark_theme_only_on_shorts")&&F!=null&&F.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var n=g.zg(R).theme;return r1e.get(n)||null}catch(V){}return null};
$H=function(){this.T={};if(this.U=NTW()){var R=g.Yi("CONSISTENCY");R&&fYj(this,{encryptedTokenJarContents:R})}};
fYj=function(R,F){if(F.encryptedTokenJarContents&&(R.T[F.encryptedTokenJarContents]=F,typeof F.expirationSeconds==="string")){var n=Number(F.expirationSeconds);setTimeout(function(){delete R.T[F.encryptedTokenJarContents]},n*1E3);
R.U&&g.ki("CONSISTENCY",F.encryptedTokenJarContents,n,void 0,!0)}};
bN=function(){this.U=-1;var R=g.ew("LOCATION_PLAYABILITY_TOKEN");g.ew("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=PP(this))&&(R=this.localStorage.get("yt-location-playability-token"));R&&(this.locationPlayabilityToken=R,this.T=void 0)};
PP=function(R){return R.localStorage===void 0?new vm("yt-client-location"):R.localStorage};
g.Zz=function(R,F,n){F=F===void 0?!1:F;n=n===void 0?!1:n;var V=g.ew("INNERTUBE_CONTEXT");if(!V)return g.uX(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};V=g.ie(V);g.U2("web_no_tracking_params_in_shell_killswitch")||delete V.clickTracking;V.client||(V.client={});var r=V.client;r.clientName==="MWEB"&&r.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(r.clientFormFactor=g.ew("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");r.screenWidthPoints=window.innerWidth;r.screenHeightPoints=
window.innerHeight;r.screenPixelDensity=Math.round(window.devicePixelRatio||1);r.screenDensityFloat=window.devicePixelRatio||1;r.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var v=v===void 0?!1:v;var f=g.M8(),z="USER_INTERFACE_THEME_LIGHT";f.pH(165)?z="USER_INTERFACE_THEME_DARK":f.pH(174)?z="USER_INTERFACE_THEME_LIGHT":!g.U2("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&
(z="USER_INTERFACE_THEME_DARK");v=v?z:vsf()||z;r.userInterfaceTheme=v;if(!F){if(v=mvf())r.connectionType=v;g.U2("web_log_effective_connection_type")&&(v=OaW())&&(V.client.effectiveConnectionType=v)}var q;if(g.U2("web_log_memory_total_kbytes")&&((q=g.HM.navigator)==null?0:q.deviceMemory)){var Q;q=(Q=g.HM.navigator)==null?void 0:Q.deviceMemory;V.client.memoryTotalKbytes=""+q*1E6}g.U2("web_gcf_hashes_innertube")&&(v=YB6())&&(Q=v.coldConfigData,q=v.coldHashData,v=v.hotHashData,V.client.configInfo=V.client.configInfo||
{},Q&&(V.client.configInfo.coldConfigData=Q),q&&(V.client.configInfo.coldHashData=q),v&&(V.client.configInfo.hotHashData=v));Q=g.zg(g.HM.location.href);!g.U2("web_populate_internal_geo_killswitch")&&Q.internalcountrycode&&(r.internalGeo=Q.internalcountrycode);r.clientName==="MWEB"||r.clientName==="WEB"?(r.mainAppWebInfo||(r.mainAppWebInfo={}),r.mainAppWebInfo.graftUrl=g.HM.location.href,g.U2("kevlar_woffle")&&UvN.instance&&(Q=UvN.instance,r.mainAppWebInfo.pwaInstallabilityStatus=!Q.T&&Q.U?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":
"PWA_INSTALLABILITY_STATUS_UNKNOWN"),r.mainAppWebInfo.webDisplayMode=JL(),r.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):r.clientName==="TVHTML5"&&(!g.U2("web_lr_app_quality_killswitch")&&(Q=g.ew("LIVING_ROOM_APP_QUALITY"))&&(r.tvAppInfo=Object.assign(r.tvAppInfo||{},{appQuality:Q})),Q=g.ew("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(r.tvAppInfo=Object.assign(r.tvAppInfo||{},{certificationScope:Q}));if(!g.U2("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!==
"undefined")try{var c=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(M){}c=void 0}c&&(r.timeZone=c)}(c=HC())?r.experimentsToken=c:delete r.experimentsToken;c=hj();$H.instance||($H.instance=new $H);V.request=Object.assign({},V.request,{internalExperimentFlags:c,consistencyTokenJars:jW($H.instance.T)});!g.U2("web_prequest_context_killswitch")&&(c=g.ew("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(V.request.externalPrequestContext=c);r=g.M8();c=r.pH(58);r=r.get("gsml","");V.user=Object.assign({},
V.user);c&&(V.user.enableSafetyMode=c);r&&(V.user.lockedSafetyMode=!0);g.U2("warm_op_csn_cleanup")?n&&(F=g.CJ())&&(V.clientScreenNonce=F):!F&&(F=g.CJ())&&(V.clientScreenNonce=F);R&&(V.clickTracking={clickTrackingParams:R});if(R=g.WM("yt.mdx.remote.remoteClient_"))V.remoteClient=R;bN.getInstance().setLocationOnInnerTubeContext(V);try{var w=p$(),L=w.bid;delete w.bid;V.adSignalsInfo={params:[],bid:L};for(var S=g.m(Object.entries(w)),p=S.next();!p.done;p=S.next()){var C=g.m(p.value),y=C.next().value,
u=C.next().value;w=y;L=u;R=void 0;(R=V.adSignalsInfo.params)==null||R.push({key:w,value:""+L})}var B,O;if(((B=V.client)==null?void 0:B.clientName)==="TVHTML5"||((O=V.client)==null?void 0:O.clientName)==="TVHTML5_UNPLUGGED"){var K=g.ew("INNERTUBE_CONTEXT");K.adSignalsInfo&&(V.adSignalsInfo.advertisingId=K.adSignalsInfo.advertisingId,V.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",V.adSignalsInfo.limitAdTracking=K.adSignalsInfo.limitAdTracking)}}catch(M){g.uX(M)}return V};
qgR=function(R,F){if(!R)return!1;var n,V=(n=g.A(R,taJ))==null?void 0:n.signal;if(V&&F.NV)return!!F.NV[V];var r;if((n=(r=g.A(R,z8N))==null?void 0:r.request)&&F.GV)return!!F.GV[n];for(var v in R)if(F.Sd[v])return!0;return!1};
Q89=function(R){var F={"Content-Type":"application/json"};g.ew("EOM_VISITOR_DATA")?F["X-Goog-EOM-Visitor-Id"]=g.ew("EOM_VISITOR_DATA"):g.ew("VISITOR_DATA")&&(F["X-Goog-Visitor-Id"]=g.ew("VISITOR_DATA"));F["X-Youtube-Bootstrap-Logged-In"]=g.ew("LOGGED_IN",!1);g.ew("DEBUG_SETTINGS_METADATA")&&(F["X-Debug-Settings-Metadata"]=g.ew("DEBUG_SETTINGS_METADATA"));R!=="cors"&&((R=g.ew("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(F["X-Youtube-Client-Name"]=R),(R=g.ew("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(F["X-Youtube-Client-Version"]=
R),(R=g.ew("CHROME_CONNECTED_HEADER"))&&(F["X-Youtube-Chrome-Connected"]=R),(R=g.ew("DOMAIN_ADMIN_STATE"))&&(F["X-Youtube-Domain-Admin-State"]=R));(R=g.ew("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(F["X-YouTube-Lava-Device-Context"]=R);return F};
c1J=function(){this.T={}};
ex=function(){this.mappings=new c1J};
RV=function(R){return function(){return new R}};
SgN=function(R){var F=F===void 0?"UNKNOWN_INTERFACE":F;if(R.length===1)return R[0];var n=wme[F];if(n){n=new RegExp(n);for(var V=g.m(R),r=V.next();!r.done;r=V.next())if(r=r.value,n.exec(r))return r}var v=[];Object.entries(wme).forEach(function(f){var z=g.m(f);f=z.next().value;z=z.next().value;F!==f&&v.push(z)});
n=new RegExp(v.join("|"));R.sort(function(f,z){return f.length-z.length});
V=g.m(R);for(r=V.next();!r.done;r=V.next())if(r=r.value,!n.exec(r))return r;return R[0]};
g.Fy=function(R){return"/youtubei/v1/"+SgN(R)};
n2=function(){};
Vp=function(){};
rV=function(){};
v8=function(R){return g.WM("ytcsi."+(R||"")+"data_")||L2V(R)};
s8e=function(){var R=v8();R.info||(R.info={});return R.info};
f2=function(R){R=v8(R);R.metadata||(R.metadata={});return R.metadata};
ts=function(R){R=v8(R);R.tick||(R.tick={});return R.tick};
zf=function(R){R=v8(R);if(R.gel){var F=R.gel;F.gelInfos||(F.gelInfos={});F.gelTicks||(F.gelTicks={})}else R.gel={gelTicks:{},gelInfos:{}};return R.gel};
pmj=function(R){R=zf(R);R.gelInfos||(R.gelInfos={});return R.gelInfos};
qT=function(R){var F=v8(R).nonce;F||(F=g.s$(16),v8(R).nonce=F);return F};
L2V=function(R){var F={tick:{},info:{}};g.h7("ytcsi."+(R||"")+"data_",F);return F};
Qp=function(){var R=g.WM("ytcsi.debug");R||(R=[],g.h7("ytcsi.debug",R),g.h7("ytcsi.reference",{}));return R};
c8=function(R){R=R||"";var F=XmW();if(F[R])return F[R];var n=Qp(),V={timerName:R,info:{},tick:{},span:{},jspbInfo:[]};n.push(V);return F[R]=V};
A1N=function(R){R=R||"";var F=XmW();F[R]&&delete F[R];var n=Qp(),V={timerName:R,info:{},tick:{},span:{},jspbInfo:[]};n.push(V);F[R]=V};
XmW=function(){var R=g.WM("ytcsi.reference");if(R)return R;Qp();return g.WM("ytcsi.reference")};
wV=function(R){return aY9[R]||"LATENCY_ACTION_UNKNOWN"};
SB=function(R,F){s5.call(this,1,arguments);this.timer=F};
L2=function(){this.T=0};
sI=function(){L2.instance||(L2.instance=new L2);return L2.instance};
Xy=function(R,F){p2[F]=p2[F]||{count:0};var n=p2[F];n.count++;n.time=(0,g.h1)();R.T||(R.T=g.R8(0,function(){var V=(0,g.h1)(),r;for(r in p2)p2[r]&&V-p2[r].time>6E4&&delete p2[r];R&&(R.T=0)},5E3));
return n.count>5?(n.count===6&&Math.random()*1E5<1&&(n=new g.UR("CSI data exceeded logging limit with key",F.split("_")),F.indexOf("plev")>=0||g.mq(n)),!0):!1};
CV_=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
TSR=function(){var R;if(g.U2("csi_use_performance_navigation_timing")){var F,n,V,r=As==null?void 0:(R=As.getEntriesByType)==null?void 0:(F=R.call(As,"navigation"))==null?void 0:(n=F[0])==null?void 0:(V=n.toJSON)==null?void 0:V.call(n);r?(r.requestStart=aV(r.requestStart),r.responseEnd=aV(r.responseEnd),r.redirectStart=aV(r.redirectStart),r.redirectEnd=aV(r.redirectEnd),r.domainLookupEnd=aV(r.domainLookupEnd),r.connectStart=aV(r.connectStart),r.connectEnd=aV(r.connectEnd),r.responseStart=aV(r.responseStart),
r.secureConnectionStart=aV(r.secureConnectionStart),r.domainLookupStart=aV(r.domainLookupStart),r.isPerformanceNavigationTiming=!0,R=r):R=As.timing}else R=g.U2("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(As.timing)):As.timing;return R};
aV=function(R){return Math.round(C2()+R)};
C2=function(){return(g.U2("csi_use_time_origin")||g.U2("csi_use_time_origin_tvhtml5"))&&As.timeOrigin?Math.floor(As.timeOrigin):As.timing.navigationStart};
oV=function(R,F){Tf("_start",R,F)};
yp=function(R,F){if(!g.U2("web_csi_action_sampling_enabled")||!v8(F).actionDisabled){var n=c8(F||"");zM(n.info,R);R.loadType&&(n=R.loadType,f2(F).loadType=n);zM(pmj(F),R);n=qT(F);F=v8(F).cttAuthInfo;sI().info(R,n,F)}};
osv=function(){var R,F,n,V;return((V=hw().resolve(oS(Q8))==null?void 0:(R=cq())==null?void 0:(F=R.loggingHotConfig)==null?void 0:(n=F.csiConfig)==null?void 0:n.debugTicks)!=null?V:[]).map(function(r){return Object.values(r)[0]})};
Tf=function(R,F,n){if(!g.U2("web_csi_action_sampling_enabled")||!v8(n).actionDisabled){var V=qT(n),r;if(r=g.U2("web_csi_debug_sample_enabled")&&V){(hw().resolve(oS(Q8))==null?0:cq())&&!y1j&&(y1j=!0,Tf("gcfl",(0,g.h1)(),n));var v,f,z;r=(hw().resolve(oS(Q8))==null?void 0:(v=cq())==null?void 0:(f=v.loggingHotConfig)==null?void 0:(z=f.csiConfig)==null?void 0:z.debugSampleWeight)||0;if(v=r!==0)b:{v=osv();if(v.length>0)for(f=0;f<v.length;f++)if(R===v[f]){v=!0;break b}v=!1}v?(r=giW(V)%r!==0,v8(n).debugTicksExcludedLogged||
(v={},v.debugTicksExcluded=r,yp(v,n)),v8(n).debugTicksExcludedLogged=!0):r=!1}if(!r){if(R[0]!=="_"&&(r=R,v=F,As.mark))if(r.startsWith("mark_")||(r="mark_"+r),n&&(r+=" ("+n+")"),v===void 0||g.U2("web_csi_disable_alt_time_performance_mark"))As.mark(r);else{v=g.U2("csi_use_performance_navigation_timing")?v-As.timeOrigin:v-(As.timeOrigin||As.timing.navigationStart);try{As.mark(r,{startTime:v})}catch(q){}}r=c8(n||"");r.tick[R]=F||(0,g.h1)();if(r.callback&&r.callback[R])for(r=g.m(r.callback[R]),v=r.next();!v.done;v=
r.next())v=v.value,v();r=zf(n);r.gelTicks&&(r.gelTicks[R]=!0);v=ts(n);r=F||(0,g.h1)();v[R]=r;v=v8(n).cttAuthInfo;R==="_start"?(R=sI(),Xy(R,"baseline_"+V)||g.LJ("latencyActionBaselined",{clientActionNonce:V},{timestamp:F,cttAuthInfo:v})):sI().tick(R,V,F,v);Uxf(n);return r}}};
j8N=function(){var R,F=(R=As.getEntriesByType)==null?void 0:R.call(As,"mark");F&&F.forEach(function(n){if(n.name.startsWith("mark_")){var V;(V=As.clearMarks)==null||V.call(As,n.name)}})};
H3J=function(){switch(w36()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
h8V=function(R){function F(v,f,z){f=f.match("_rid")?f.split("_rid")[0]:f;typeof z==="number"&&(z=JSON.stringify(z));v.requestIds?v.requestIds.push({endpoint:f,id:z}):v.requestIds=[{endpoint:f,id:z}]}
var n={};R=g.m(Object.entries(R));for(var V=R.next();!V.done;V=R.next()){var r=g.m(V.value);V=r.next().value;r=r.next().value;switch(V){case "GetBrowse_rid":F(n,V,r);break;case "GetGuide_rid":F(n,V,r);break;case "GetHome_rid":F(n,V,r);break;case "GetPlayer_rid":F(n,V,r);break;case "GetSearch_rid":F(n,V,r);break;case "GetSettings_rid":F(n,V,r);break;case "GetTrending_rid":F(n,V,r);break;case "GetWatchNext_rid":F(n,V,r);break;case "yt_red":n.isRedSubscriber=!!r;break;case "yt_ad":n.isMonetized=!!r}}return n};
W2R=function(R,F){R=document.querySelector(R);if(!R)return!1;var n="",V=R.nodeName;V==="SCRIPT"?(n=R.src,n||(n=R.getAttribute("data-timing-href"))&&(n=window.location.protocol+n)):V==="LINK"&&(n=R.href);Kt(document)&&R.setAttribute("nonce",Kt(document));return n?(R=As.getEntriesByName(n))&&R[0]&&(R=R[0],n=C2(),Tf("rsf_"+F,n+Math.round(R.fetchStart)),Tf("rse_"+F,n+Math.round(R.responseEnd)),R.transferSize!==void 0&&R.transferSize===0)?!0:!1:!1};
u_W=function(){var R=window.location.protocol,F=As.getEntriesByType("resource");F=g.dk(F,function(n){return n.name.indexOf(R+"//fonts.gstatic.com/s/")===0});
(F=KY(F,function(n,V){return V.duration>n.duration?V:n},{duration:0}))&&F.startTime>0&&F.responseEnd>0&&(Tf("wffs",aV(F.startTime)),Tf("wffe",aV(F.responseEnd)))};
BSN=function(R,F,n){As&&As.measure&&(R.startsWith("measure_")||(R="measure_"+R),n?As.measure(R,F,n):F?As.measure(R,F):As.measure(R))};
mxf=function(R){var F=UI("aft",R);if(F)return F;F=g.ew((R||"")+"TIMING_AFT_KEYS",["ol"]);for(var n=F.length,V=0;V<n;V++){var r=UI(F[V],R);if(r)return r}return NaN};
jB=function(R,F){g.h7("ytglobal.timing"+(F||"")+"ready_",R)};
UI=function(R,F){if(R=ts(F)[R])return typeof R==="number"?R:R[R.length-1]};
Uxf=function(R){var F=UI("_start",R),n=mxf(R),V=!gsI;F&&n&&V&&(Ac(O3V,new SB(Math.round(n-F),R)),gsI=!0)};
IYv=function(){if(As.getEntriesByType){var R=As.getEntriesByType("paint");if(R=g.$$(R,function(n){return n.name==="first-paint"}))return aV(R.startTime)}var F;
g.U2("csi_use_performance_navigation_timing")?F=As.getEntriesByType("first-paint")[0].startTime:F=As.timing.HeQ;return F?Math.max(0,F):0};
H8=function(R){L2V(R);K2E();j8N();R||(g.ew("TIMING_ACTION")&&ZJ("PREVIOUS_ACTION",g.ew("TIMING_ACTION")),ZJ("TIMING_ACTION",""))};
DxI=function(){var R=["pbs","pbu"];g.Vb(function(){c8("").info.actionType="watch";R&&ZJ("TIMING_AFT_KEYS",R);ZJ("TIMING_ACTION","watch");var F=h8V(g.ew("TIMING_INFO",{}));Object.keys(F).length>0&&yp(F);F={isNavigation:!0,actionType:wV(g.ew("TIMING_ACTION"))};var n=g.ew("PREVIOUS_ACTION");n&&(F.previousAction=wV(n));if(n=g.ew("CLIENT_PROTOCOL"))F.httpProtocol=n;if(n=g.ew("CLIENT_TRANSPORT"))F.transportProtocol=n;(n=g.CJ())&&n!=="UNDEFINED_CSN"&&(F.clientScreenNonce=n);n=H3J();if(n===1||n===-1)F.isVisible=
!0;n=f2().loadType==="cold";var V=s8e();n||(n=V.yt_lt==="cold");if(n){F.loadType="cold";n=s8e();V=TSR();var r=C2(),v=g.ew("CSI_START_TIMESTAMP_MILLIS",0);v>0&&!g.U2("embeds_web_enable_csi_start_override_killswitch")&&(r=v);r&&(Tf("srt",V.responseStart),n.prerender!==1&&oV(r));n=IYv();n>0&&Tf("fpt",n);n=TSR();n.isPerformanceNavigationTiming&&yp({performanceNavigationTiming:!0},void 0);Tf("nreqs",n.requestStart,void 0);Tf("nress",n.responseStart,void 0);Tf("nrese",n.responseEnd,void 0);n.redirectEnd-
n.redirectStart>0&&(Tf("nrs",n.redirectStart,void 0),Tf("nre",n.redirectEnd,void 0));n.domainLookupEnd-n.domainLookupStart>0&&(Tf("ndnss",n.domainLookupStart,void 0),Tf("ndnse",n.domainLookupEnd,void 0));n.connectEnd-n.connectStart>0&&(Tf("ntcps",n.connectStart,void 0),Tf("ntcpe",n.connectEnd,void 0));n.secureConnectionStart>=C2()&&n.connectEnd-n.secureConnectionStart>0&&(Tf("nstcps",n.secureConnectionStart,void 0),Tf("ntcpe",n.connectEnd,void 0));As&&"getEntriesByType"in As&&u_W();n=[];if(document.querySelector&&
As&&As.getEntriesByName)for(var f in hs)hs.hasOwnProperty(f)&&(V=hs[f],W2R(f,V)&&n.push(V));if(n.length>0)for(F.resourceInfo=[],f=g.m(n),n=f.next();!n.done;n=f.next())F.resourceInfo.push({resourceCache:n.value})}yp(F);F=zf();F.preLoggedGelInfos||(F.preLoggedGelInfos=[]);f=F.preLoggedGelInfos;F=pmj();n=void 0;for(V=0;V<f.length;V++)if(r=f[V],r.loadType){n=r.loadType;break}if(f2().loadType==="cold"&&(F.loadType==="cold"||n==="cold")){n=ts();V=zf();V=V.gelTicks?V.gelTicks:V.gelTicks={};for(var z in n)z in
V||typeof n[z]==="number"&&Tf(z,UI(z));z={};n=!1;f=g.m(f);for(V=f.next();!V.done;V=f.next())n=V.value,zM(F,n),zM(z,n),n=!0;n&&yp(z)}jB(!0);z=g.ew("TIMING_ACTION");g.WM("ytglobal.timingready_")&&z&&W8()&&mxf()&&Uxf()})()};
i3_=function(){var R=R===void 0?{}:R;g.Vb(function(){W8()&&uj("aa",void 0,void 0);A1N();H8();jB(!1);R.cttAuthInfo&&(v8().cttAuthInfo=R.cttAuthInfo);ZJ("TIMING_AFT_KEYS",[]);R.beX?g.B8({loadType:"hot"}):g.B8({loadType:"warm"});ZJ("TIMING_ACTION","");delete g.ew("TIMING_INFO",{}).yt_lt;g.Vb(oV)(R.startTime,void 0)})()};
mc=function(R,F){F=F===void 0?{}:F;g.Vb(function(){xxf(R);var n=F.sampleRate;if(!g.U2("web_csi_action_sampling_enabled")||n===void 0||n<=1)n=!1;else{var V=qT(R);n=giW(V)%n!==0}n&&(v8(R).actionDisabled=!0);c8(R||"").info.actionType=R;F.cttAuthInfo&&(v8(R).cttAuthInfo=F.cttAuthInfo);ZJ(R+"TIMING_ACTION",R);g.Vb(oV)(F.startTime,R);n={actionType:wV(R)};F.vpz&&(n.previousAction=wV(g.ew("TIMING_ACTION")));(V=g.CJ())&&V!=="UNDEFINED_CSN"&&(n.clientScreenNonce=V);g.B8(n,R);jB(!0,R)})()};
xxf=function(R){g.Vb(function(){W8(R)&&uj("aa",void 0,R);A1N(R);H8(R)})()};
W8=function(R){return g.Vb(function(){return gV("_start",R)})()};
g.B8=function(R,F,n){g.Vb(yp)(R,F,n===void 0?!1:n)};
uj=function(R,F,n){return g.Vb(Tf)(R,F,n)};
kRI=function(R){g.Vb(BSN)("action_finished",R,void 0)};
gV=function(R,F){return g.Vb(function(){var n=ts(F);return R in n})()};
J1_=function(R){if(!g.U2("universal_csi_network_ticks"))return"";R=Ba(R)||"";for(var F=Object.keys(Ygf),n=0;n<F.length;n++){var V=F[n];if(R.includes(V))return V}return""};
dx6=function(R){if(!g.U2("universal_csi_network_ticks"))return function(){};
var F=Ygf[R];return F?(OI(F),function(){var n=g.U2("universal_csi_network_ticks")?(n=GRJ[R])?OI(n):!1:!1;return n}):function(){}};
OI=function(R,F,n){return g.Vb(function(){if(gV(R,n))return!1;uj(R,F,n);return!0})()};
IV=function(R,F,n){g.Vb(function(){if(!W8(n)||gV(R,n))return!1;uj(R,F,n);return!0})()};
MaR=function(){g.Vb(function(){var R=qT();requestAnimationFrame(function(){setTimeout(function(){R===qT()&&uj("ftl",void 0,void 0)},0)})})()};
K2=function(R,F,n,V,r){this.aX=R;this.Q6=F;this.T=n;this.W=V;this.N=r;this.J=void 0;this.U=new Map;R.NV||(R.NV={});R.NV=Object.assign({},lYj,R.NV)};
NSV=function(R,F,n,V,r){if(K2.instance!==void 0){if(V=K2.instance,R=[R!==V.aX,F!==V.Q6,n!==V.T,r!==V.N,!1,!1,void 0!==V.J],R.some(function(v){return v}))throw new g.UR("InnerTubeTransportService is already initialized",R);
}else K2.instance=new K2(R,F,n,V,r)};
Da=function(R,F,n){var V=V===void 0?LI:V;var r=Es_(R,F);return r?new g.OZ(function(v,f){var z,q,Q,c,w;return g.Y(function(L){switch(L.T){case 1:return g.k(L,r,2);case 2:z=L.U;q=z.W(F,n,V);if(!q){f(new g.UR("Error: Failed to build request for command.",F));L.wX(0);break}GF(q.input);c=((Q=q.Ii)==null?void 0:Q.mode)==="cors"?"cors":void 0;if(R.T.nM){w=$xj(R,q.config,c);L.wX(4);break}return g.k(L,PVR(R,q.config,c),5);case 5:w=L.U;case 4:v(b3V(R,q,w)),g.rq(L)}})}):DB(new g.UR("Error: No request builder found for command.",
F))};
g.ij=function(R,F,n,V,r){function v(){}
r=r===void 0?{VT:{identity:LI}}:r;var f=f===void 0?!0:f;v=dx6(J1_(n));F.context||(F.context=g.Zz(V,f));return new g.OZ(function(z){var q,Q,c,w,L;return g.Y(function(S){if(S.T==1)return q=Gg(n),Q=cC(q)?"same-origin":"cors",R.T.nM?(c=$xj(R,r,Q),S.wX(2)):g.k(S,PVR(R,r,Q),3);S.T!=2&&(c=S.U);w=EvJ(Gg(n));L={input:w,Ii:dz(w),DH:F,config:r};z(b3V(R,L,c,v));g.rq(S)})})};
Z3v=function(R){var F,n,V,r,v,f;return g.Y(function(z){switch(z.T){case 1:if(!((F=R)==null?0:(n=F.DH)==null?0:n.context)){z.wX(0);break}V=R.DH.context;z.wX(3);break;case 3:r=g.m([]),v=r.next();case 6:if(v.done){z.wX(0);break}f=v.value;return g.k(z,f.J31(V),7);case 7:v=r.next(),z.wX(6)}})};
ky=function(R,F,n){var V;if(F&&!(F==null?0:(V=F.sequenceMetaData)==null?0:V.skipProcessing)&&R.W){V=g.m(e8R);for(var r=V.next();!r.done;r=V.next())r=r.value,R.W[r]&&R.W[r].handleResponse(F,n)}};
b3V=function(R,F,n,V){V=V===void 0?function(){}:V;
var r,v,f,z,q,Q,c,w,L,S,p,C,y,u,B,O,K,M,J,b,RJ,Fj,fW,SE,nW,CW,b9,fq,vM,l9;return g.Y(function(ge){switch(ge.T){case 1:f=(r=F.config)==null?void 0:(v=r.o3)==null?void 0:v.Ny;if(!(f&&R.N&&R.N.has(f))||((z=F.config)==null?0:(q=z.o3)==null?0:q.disableCache)){ge.wX(2);break}return g.k(ge,R.N.get(f),3);case 3:Q=ge.U;if(!Q||Q.isExpired()){ge.wX(2);break}c=R5f(Q);if(!g.U2("web_process_response_store_responses")||Q.isProcessed()){ge.wX(5);break}ky(R,c,F);return g.k(ge,FC6(R.N,f),5);case 5:return ge.return(Promise.resolve(c));
case 2:if((w=R.J)==null||!w.ga5(F.input,F.DH)){ge.wX(7);break}return g.k(ge,R.J.en1(F.input,F.DH),8);case 8:return L=ge.U,ky(R,L,F),ge.return(L);case 7:return g.k(ge,Z3v(F),9);case 9:return(C=(p=F.config)==null?void 0:p.requestKey)&&R.U.has(C)?S=R.U.get(C):(y=JSON.stringify(F.DH),O=(B=(u=F.Ii)==null?void 0:u.headers)!=null?B:{},F.Ii=Object.assign({},F.Ii,{headers:Object.assign({},O,n)}),K=Object.assign({},F.Ii),F.Ii.method==="POST"&&(K=Object.assign({},K,{body:y})),((M=F.config)==null?0:M.sa1)&&uj(F.config.sa1),
J=function(){return R.Q6.fetch(F.input,K,F.config)},S=J(),C&&R.U.set(C,S)),g.k(ge,S,10);
case 10:(b=ge.U)&&g.U2("web_streaming_player")&&Array.isArray(b)&&(b=b[0].playerResponse);if(b&&"error"in b&&((RJ=b)==null?0:(Fj=RJ.error)==null?0:Fj.details))for(fW=b.error.details,SE=g.m(fW),nW=SE.next();!nW.done;nW=SE.next())CW=nW.value,(b9=CW["@type"])&&nSe.indexOf(b9)>-1&&(delete CW["@type"],b=CW);C&&R.U.has(C)&&R.U.delete(C);((fq=F.config)==null?0:fq.wtH)&&uj(F.config.wtH);if(b||(vM=R.J)==null||!vM.a4z(F.input,F.DH)){ge.wX(11);break}return g.k(ge,R.J.Xsq(F.input,F.DH),12);case 12:b=ge.U;case 11:return ky(R,
b,F),((l9=F.config)==null?0:l9.xP5)&&uj(F.config.xP5),V(),ge.return(b||void 0)}})};
Es_=function(R,F){a:{R=R.aX;var n,V=(n=g.A(F,taJ))==null?void 0:n.signal;if(V&&R.NV&&(n=R.NV[V])){var r=n();break a}var v;if((n=(v=g.A(F,z8N))==null?void 0:v.request)&&R.GV&&(v=R.GV[n])){r=v();break a}for(r in F)if(R.Sd[r]&&(F=R.Sd[r])){r=F();break a}r=void 0}if(r!==void 0)return Promise.resolve(r)};
PVR=function(R,F,n){var V,r,v,f,z,q,Q;return g.Y(function(c){if(c.T==1){v=((V=F)==null?void 0:(r=V.VT)==null?void 0:r.identity)||LI;q=(f=F)==null?void 0:(z=f.VT)==null?void 0:z.sessionIndex;var w=g.KT(R.T.ut(v,{sessionIndex:q}));return g.k(c,w,2)}Q=c.U;return c.return(Promise.resolve(Object.assign({},Q89(n),Q)))})};
$xj=function(R,F,n){var V,r=(F==null?void 0:(V=F.VT)==null?void 0:V.identity)||LI,v;F=F==null?void 0:(v=F.VT)==null?void 0:v.sessionIndex;R=R.T.ut(r,{sessionIndex:F});return Object.assign({},Q89(n),R)};
Yy=function(){};
Js=function(){};
Gf=function(R){this.Z=R};
dV=function(){};
MT=function(){};
lj=function(){};
NT=function(){};
EI=function(R,F){this.clientName=R;this.U=F};
$y=function(R){this.data=Object.assign({},R);var F;(F=this.data.innertubeResponse)==null||delete F.frameworkUpdates};
R5f=function(R){return Object.assign({},R.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};
P8=function(){EI.apply(this,arguments);this.T=new Map};
Vfv=function(R,F,n){var V,r,v;return g.Y(function(f){V=R.U;n.expireTimestampMs&&(V=Number(n.expireTimestampMs)-Math.round((0,g.h1)()),r=jP("mweb_override_response_store_expiration_ms"),r>0&&r<V&&(V=r));v=setTimeout(function(){R.remove(F)},V);
R.T.set(F,{entryData:n,timer:v});g.rq(f)})};
rcN=function(R,F){if(R=R.T.get(F))return new $y(R.entryData)};
vSW=function(R,F){var n=R.T.get(F);n&&(clearTimeout(n.timer),R.T.delete(F))};
FC6=function(R,F){var n;return g.Y(function(V){n=R.T.get(F);if(!n)return V.wX(0);n.entryData.isProcessed=!0;return g.k(V,Vfv(R,F,n.entryData),0)})};
f1I=function(R){var F;this.T=(F=R.responseContext)==null?void 0:F.stateTags};
tf6=function(R){var F;return((F=R.T)==null?void 0:F.stateTagsModified)||[]};
bj=function(R){this.T=R};
g.Za=function(R,F){var n=g.Cq.apply(2,arguments);R=R===void 0?0:R;g.UR.call(this,F,n);this.errorType=R;Object.setPrototypeOf(this,this.constructor.prototype)};
eB=function(R){this.T=R};
z5N=function(R,F,n){if(R.T){var V=Ba(JB(F,"key"))||"/UNKNOWN_PATH";R.T.start(V)}R=n;g.U2("wug_networking_gzip_request")&&(R=ptN(n));return new window.Request(F,R)};
g.nV=function(R,F,n){if(!R7){var V=hw();y9(V,{Xi:q5N,Rf:eB});if(n==null?0:n.b0)y9(V,{Xi:Q5e,vD:g.ew("INNERTUBE_CONTEXT_CLIENT_NAME",n.clientInterface)}),y9(V,{Xi:cc_,vD:5184E6}),y9(V,{Xi:Fv,Rf:P8}),y9(V,{Xi:wq9,Rf:bj});var r={Sd:{feedbackEndpoint:RV(dV),modifyChannelNotificationPreferenceEndpoint:RV(MT),playlistEditEndpoint:RV(lj),shareEntityEndpoint:RV(Gf),subscribeEndpoint:RV(Yy),unsubscribeEndpoint:RV(Js),webPlayerShareEntityServiceEndpoint:RV(NT)}},v=bN.getInstance(),f={};v&&(f.client_location=
v);if(n==null?0:n.b0)v=V.resolve(wq9),f.store=v;R===void 0&&(R=jFV());F===void 0&&(F=V.resolve(q5N));NSV(r,F,R,f,(n==null?0:n.b0)?V.resolve(Fv):void 0);y9(V,{Xi:S5N,vD:K2.instance});R7=V.resolve(S5N)}return R7};
VD=function(R){var F={};R=R.split("&");R=g.m(R);for(var n=R.next();!n.done;n=R.next())n=n.value.split("="),n.length===2&&(F[n[0]]=n[1]);return F};
LCR=function(){var R=R===void 0?window:R;var F,n;return g.Y(function(V){if(V.T==1)return g.k(V,wD(),2);F=R;n=F.bgevmc;if(!n)throw Error("BGE Controls not exposed");return V.return({pause:function(){n.p()},
resume:function(){n.r()},
checkForRefresh:function(){return n.cr()}})})};
F5v=function(){if(g.U2("bg_st_hr"))return"havuokmhhs-0";var R,F=((R=globalThis.performance)==null?void 0:R.timeOrigin)||0;return"havuokmhhs-"+Math.floor(F)};
rN=function(R){window.bgens=R};
vu=function(R){this.T=R};
s5E=function(){return new Promise(function(R){var F=window;F.ntpevasrs!==void 0?R(new vu(F.ntpevasrs)):(F.ntpqfbel===void 0&&(F.ntpqfbel=[]),F.ntpqfbel.push(function(n){R(new vu(n))}))})};
Ac_=function(){if(tL()){var R=g.ew("PLAYER_VARS",{});if(g.Om(R,"privembed",!1)!="1"&&!evW(R)){var F=function(){fV=!0;"google_ad_status"in window?ZJ("DCLKSTAT",1):ZJ("DCLKSTAT",2)};
try{var n=Kt(document);g.rG(pqW,F,n)}catch(V){}XqN.push(g.M1.dK(function(){if(!(fV||"google_ad_status"in window)){try{if(pqW.toString()&&F){var V=""+g.x$(F),r=bOJ[V];r&&g.nr(r)}}catch(v){}fV=!0;ZJ("DCLKSTAT",3)}},5E3))}}};
tT=function(){var R=Number(g.ew("DCLKSTAT",0));return isNaN(R)?0:R};
QD=function(R,F,n){var V=this;this.network=R;this.options=F;this.J=n;this.N=0;this.T=null;this.U=new $ae;F.R$G?zy(this,a1E(this)):F.preload&&zy(this,new Promise(function(r){g.R8(0,function(){r(q0(V))},0)}))};
a1E=function(R){var F,n,V,r,v,f;return g.Y(function(z){if(z.T==1)return F=g.HM,F.ytAtRC?(n=jP("att_init_delay",0),IeR(function(){var q,Q;return g.Y(function(c){if(c.T==1){if(!F.ytAtRC)return R.U.Yq(6,R.N++),c.return();R.U.Yq(2,R.N++);q=cu(null);return g.k(c,wN(R,q),2)}Q=c.U;F.ytAtRC&&F.ytAtRC(JSON.stringify(Q));g.rq(c)})},n)):R.U.Yq(1,R.N++),g.k(z,s5E(),2);
if(z.T!=3)return V=z.U,V.bindInnertubeChallengeFetcher(function(q){R.U.Yq(3,R.N++);return wN(R,cu(q))}),V.registerChallengeFetchedCallback(function(q){q=q.challenge;
if(!q)throw Error("BGE_MACR");q={challenge:q,HA:VD(q),c_:r,bgChallenge:new La};q=Promise.resolve(q);R.T=q}),g.k(z,wD(),3);
r=z.U;v=V.getLatestChallengeResponse();f=v.challenge;if(!f)throw Error("BGE_MACIL");return z.return({challenge:f,HA:VD(f),c_:r,bgChallenge:new La})})};
cu=function(R){var F={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};R&&(F.interpreterHash=R);return F};
q0=function(R){var F,n,V,r,v,f,z,q,Q;return g.Y(function(c){switch(c.T){case 1:return F=cu(aF().T),g.zv(c,2),g.k(c,Crk(R,F),4);case 4:n=c.U;g.Qz(c,3);break;case 2:return g.cM(c),g.mq(Error("Failed to fetch attestation challenge after 5 attempts; not retrying for 24h.")),TyR(R,864E5),c.return({challenge:"",HA:{},c_:void 0,bgChallenge:void 0});case 3:V=n.BVQ;r=n.bm2;v=Number(r.t)||7200;TyR(R,v*1E3);f=void 0;if(!("c1a"in r&&n.bgChallenge)){c.wX(5);break}var w=n.bgChallenge,L=new La;if(w.interpreterJavascript){var S=
w2N(w.interpreterJavascript);S=iS(S).toString();var p=new wb;V7(p,6,S);Nm(L,wb,1,p,wF)}else w.interpreterUrl&&(S=BU(w.interpreterUrl),S=oe(S).toString(),p=new Sc,V7(p,4,S),Nm(L,Sc,2,p,wF));w.interpreterHash&&r5(L,3,w.interpreterHash,wF);w.program&&r5(L,4,w.program,wF);w.globalName&&r5(L,5,w.globalName,wF);w.clientExperimentsStateBlob&&r5(L,7,w.clientExperimentsStateBlob,wF);z=L;g.zv(c,6);return g.k(c,ZSk(aF(),z),8);case 8:g.Qz(c,7);break;case 6:return q=g.cM(c),g.mq(q),c.return({challenge:V,HA:r,
c_:f,bgChallenge:z});case 7:return g.zv(c,9),f=new Xo({challenge:z,XR:{OF:"aGIf"}}),g.k(c,f.OH,11);case 11:g.Qz(c,5);break;case 9:Q=g.cM(c),g.mq(Q),f=void 0;case 5:return c.return({challenge:V,HA:r,c_:f,bgChallenge:z})}})};
oSj=function(R,F){var n;return g.Y(function(V){if(V.T==1)return rN(2),g.zv(V,2),g.k(V,wN(R.network,F),4);if(V.T!=2)return(n=V.U)?n.challenge&&!n.bgChallenge?rN(1):rN(4):rN(3),V.return(n);g.cM(V);rN(3);return V.return(void 0)})};
wN=function(R,F){var n;return g.Y(function(V){n=R.J;if(!n||n.AO())return V.return(oSj(R,F));IV("att_pna",void 0,"attestation_challenge_fetch");return V.return(new Promise(function(r){n.NJ("publicytnetworkstatus-online",function(){oSj(R,F).then(r)})}))})};
ycN=function(R){if(!R)throw Error("Fetching Attestation challenge returned falsy");if(!R.challenge)throw Error("Missing Attestation challenge");var F=R.challenge,n=VD(F);if("c1a"in n&&(!R.bgChallenge||!R.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},R,{BVQ:F,bm2:n})};
Crk=function(R,F){var n,V,r,v,f;return g.Y(function(z){switch(z.T){case 1:n=void 0,V=0,r={};case 2:if(!(V<5)){z.wX(4);break}if(!(V>0)){z.wX(5);break}r.hB=1E3*Math.pow(2,V-1)+Math.random()*1E3;return g.k(z,new Promise(function(q){return function(Q){g.R8(0,function(){Q(void 0)},q.hB)}}(r)),5);
case 5:return g.zv(z,7),R.U.Yq(4,R.N++),g.k(z,wN(R,F),9);case 9:return v=z.U,z.return(ycN(v));case 7:n=f=g.cM(z),f instanceof Error&&g.mq(f);case 8:V++;r={hB:void 0};z.wX(2);break;case 4:throw n;}})};
zy=function(R,F){R.T=F};
UiR=function(R){var F,n,V;return g.Y(function(r){if(r.T==1)return g.k(r,Promise.race([R.T,null]),2);F=r.U;var v=q0(R);R.T=v;(n=F)==null||(V=n.c_)==null||V.dispose();g.rq(r)})};
TyR=function(R,F){function n(){var r;return g.Y(function(v){r=V-Date.now();return r<1E3?g.k(v,UiR(R),0):(e3(n,0,Math.min(r,6E4)),v.wX(0))})}
var V=Date.now()+F;n()};
j56=function(R,F){return new Promise(function(n){g.R8(0,function(){n(F())},R)})};
HII=function(){return new Promise(function(R){var F=window;F.attmp!==void 0?R(F.attmp):(F.attmq===void 0&&(F.attmq=[]),F.attmq.push(function(n){R(n)}))})};
g.h5f=function(R,F){var n,V,r;return g.Y(function(v){if(v.T==1){if(!g.U2("attmusi")||!g.U2("attmusi_ue"))return v.wX(2);n=window;return n.attmp!==void 0?v.return(n.attmp.s("ENGAGEMENT_TYPE_PLAYBACK",R,F)):g.k(v,HII(),3)}if(v.T!=2)return V=v.U,v.return(V.s("ENGAGEMENT_TYPE_PLAYBACK",R,F));var f=g.WM("yt.aba.att");return(r=f?f:QD.instance!==void 0?QD.instance.W.bind(QD.instance):null)?v.return(r("ENGAGEMENT_TYPE_PLAYBACK",R,F)):v.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
g.WCN=function(){var R,F,n;return g.Y(function(V){if(V.T==1){if(!g.U2("attmusi")||!g.U2("attmusi_ue"))return V.wX(2);R=window;return R.attmp===void 0?V.return(!1):g.k(V,HII(),3)}if(V.T!=2)return F=V.U,V.return(F.ir());var r=g.WM("yt.aba.att2");return(n=r?r:QD.instance!==void 0?QD.instance.Z.bind(QD.instance):null)?V.return(n()):V.return(Promise.resolve(!1))})};
Byv=function(R,F){var n=g.WM("ytDebugData.callbacks");n||(n={},g.h7("ytDebugData.callbacks",n));if(g.U2("web_dd_iu")||uD9.includes(R))n[R]=F};
SA=function(){var R=miN;var F=F===void 0?[]:F;var n=n===void 0?[]:n;F=fBE.apply(null,[tGW.apply(null,g.I(F))].concat(g.I(n)));this.store=qZW(R,void 0,F)};
g.LV=function(R,F,n){for(var V=Object.assign({},R),r=g.m(Object.keys(F)),v=r.next();!v.done;v=r.next()){v=v.value;var f=R[v],z=F[v];if(z===void 0)delete V[v];else if(f===void 0)V[v]=z;else if(Array.isArray(z)&&Array.isArray(f))V[v]=n?[].concat(g.I(f),g.I(z)):z;else if(!Array.isArray(z)&&g.ID(z)&&!Array.isArray(f)&&g.ID(f))V[v]=g.LV(f,z,n);else if(typeof z===typeof f)V[v]=z;else return F=new g.UR("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:v,ieq:f,updateValue:z}),g.uX(F),
R}return V};
sE=function(R){var F=this;R=R===void 0?[]:R;this.T=[];this.N=this.U=0;this.J=void 0;this.totalLength=0;R.forEach(function(n){F.append(n)})};
gSR=function(R,F){return R.T.length===0?!1:(R=R.T[R.T.length-1])&&R.buffer===F.buffer&&R.byteOffset+R.length===F.byteOffset};
pV=function(R,F){F=g.m(F.T);for(var n=F.next();!n.done;n=F.next())R.append(n.value)};
Xv=function(R,F,n){return R.split(F).l4.split(n).E9};
AT=function(R){R.J=void 0;R.U=0;R.N=0};
a7=function(R,F,n){R.isFocused(F);return F-R.N+n<=R.T[R.U].length};
OIf=function(R){if(!R.J){var F=R.T[R.U];R.J=new DataView(F.buffer,F.byteOffset,F.length)}return R.J};
I1v=function(R,F,n){F=F===void 0?0:F;n=n===void 0?-1:n;if(!R.totalLength||!n)return new DataView(new ArrayBuffer(0));n<0&&(n=R.totalLength-F);R.focus(F);if(!a7(R,F,n)){var V=R.U,r=R.N;R.focus(F+n-1);r=new Uint8Array(R.N+R.T[R.U].length-r);for(var v=0,f=V;f<=R.U;f++)r.set(R.T[f],v),v+=R.T[f].length;R.T.splice(V,R.U-V+1,r);AT(R);R.focus(F)}V=R.T[R.U];return new DataView(V.buffer,V.byteOffset+F-R.N,n)};
CV=function(R,F,n){R=I1v(R,F===void 0?0:F,n===void 0?-1:n);return new Uint8Array(R.buffer,R.byteOffset,R.byteLength)};
Ty=function(R,F,n){R=CV(R,F===void 0?0:F,n===void 0?-1:n);F=new Uint8Array(R.length);try{F.set(R)}catch(V){for(n=0;n<R.length;n++)F[n]=R[n]}return F};
o7=function(R,F){R.focus(F);return R.T[R.U][F-R.N]};
KCN=function(R,F){R.focus(F);return a7(R,F,4)?OIf(R).getUint32(F-R.N):256*(256*(256*o7(R,F)+o7(R,F+1))+o7(R,F+2))+o7(R,F+3)};
Di9=function(R){for(var F=new Uint8Array(R.length),n=0;n<R.length;n++)F[n]=R.charCodeAt(n);return F};
UE=function(R){return R.length?yD?yD.decode(R):String.fromCharCode.apply(null,R):""};
g.Hu=function(R){if(!R.length)return"";try{if(yD)return yD.decode(R);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(R)}catch(f){}for(var F=0,n=[],V=R.length;F<V;){for(var r=0;r<1024&&F<V;){var v=R[F++];if(v<128)jA[r++]=v;else{if(v<224)v=(v&31)<<6|R[F++]&63;else if(v<240)v=(v&15)<<12|(R[F++]&63)<<6|R[F++]&63;else{if(r+1===1024){--F;break}v=(v&7)<<18|(R[F++]&63)<<12|(R[F++]&63)<<6|R[F++]&63;v-=65536;jA[r++]=55296|v>>10;v=56320|v&1023}jA[r++]=v}}v=String.fromCharCode.apply(String,jA);
r<1024&&(v=v.substring(0,r));n.push(v)}return n.join("")};
Wu=function(R,F){var n;if((n=hT)==null?0:n.encodeInto)return F=hT.encodeInto(R,F),F.read<R.length?R.length*4:F.written;for(var V=n=0;V<R.length;V++){var r=R.charCodeAt(V);r<128?F[n++]=r:(r<2048?F[n++]=r>>6|192:((r&64512)===55296&&V+1<R.length&&(R.charCodeAt(V+1)&64512)===56320?(r=65536+((r&1023)<<10)+(R.charCodeAt(++V)&1023),F[n++]=r>>18|240,F[n++]=r>>12&63|128):F[n++]=r>>12|224,F[n++]=r>>6&63|128),F[n++]=r&63|128)}return n};
uA=function(R){if(hT)return hT.encode(R);var F=new Uint8Array(Math.ceil(R.length*1.2)),n=Wu(R,F);F.length<n&&(F=new Uint8Array(n),n=Wu(R,F));F.length>n&&(F=F.subarray(0,n));return F};
Bu=function(R){this.T=R;this.pos=0;this.U=-1};
mR=function(R){var F=o7(R.T,R.pos);++R.pos;if(F<128)return F;for(var n=F&127,V=1;F>=128;)F=o7(R.T,R.pos),++R.pos,V*=128,n+=(F&127)*V;return n};
gN=function(R,F){var n=R.U;for(R.U=-1;R.pos+1<=R.T.totalLength;){n<0&&(n=mR(R));var V=n>>3,r=n&7;if(V===F)return!0;if(V>F){R.U=n;break}n=-1;switch(r){case 0:mR(R);break;case 1:R.pos+=8;break;case 2:V=mR(R);R.pos+=V;break;case 5:R.pos+=4}}return!1};
OE=function(R,F){if(gN(R,F))return mR(R)};
I7=function(R,F){if(gN(R,F))return F=CV(R.T,R.pos,8),R.pos+=8,(new DataView(F.buffer,F.byteOffset,F.byteLength)).getFloat64(0,!0)};
KV=function(R,F){if(gN(R,F))return!!mR(R)};
Dm=function(R,F){if(gN(R,F)){F=mR(R);var n=CV(R.T,R.pos,F);R.pos+=F;return n}};
iA=function(R,F){if(R=Dm(R,F))return g.Hu(R)};
xK=function(R,F,n){if(R=Dm(R,F))return n(new Bu(new sE([R])))};
kK=function(R,F){for(var n=[];gN(R,F);)n.push(mR(R));return n.length?n:void 0};
YK=function(R,F,n){for(var V=[],r;r=Dm(R,F);)V.push(n(new Bu(new sE([r]))));return V.length?V:void 0};
JT=function(R,F){R=R instanceof Uint8Array?new sE([R]):R;return F(new Bu(R))};
iIW=function(R,F){R=new Uint8Array(R);F&&R.set(F);return R};
xiV=function(R){this.pos=0;this.U=[];this.T=iIW(R===void 0?4096:R);this.view=new DataView(this.T.buffer,this.T.byteOffset,this.T.byteLength)};
Gy=function(R,F){F=R.pos+F;if(!(R.T.length>=F)){for(var n=R.T.length*2;n<F;)n*=2;R.T=iIW(n,R.T.subarray(0,R.pos));R.view=new DataView(R.T.buffer,R.T.byteOffset,R.T.byteLength)}};
dN=function(R,F){if(F>268435455){Gy(R,4);for(var n=F&1073741823,V=0;V<4;V++)R.view.setUint8(R.pos,n&127|128),n>>=7,R.pos+=1;F=Math.floor(F/268435456)}for(Gy(R,4);F>127;)R.view.setUint8(R.pos,F&127|128),F>>=7,R.pos+=1;R.view.setUint8(R.pos,F);R.pos+=1};
M0=function(R,F,n){n!==void 0&&(dN(R,F*8),dN(R,n))};
lA=function(R,F,n){n!==void 0&&M0(R,F,n?1:0)};
N0=function(R,F,n){n!==void 0&&(dN(R,F*8+2),F=n.length,dN(R,F),Gy(R,F),R.T.set(n,R.pos),R.pos+=F)};
EE=function(R,F,n){n!==void 0&&(kzv(R,F,Math.ceil(Math.log2(n.length*4+2)/7)),Gy(R,n.length*1.2),F=Wu(n,R.T.subarray(R.pos)),R.pos+F>R.T.length&&(Gy(R,F),F=Wu(n,R.T.subarray(R.pos))),R.pos+=F,Y5_(R))};
kzv=function(R,F,n){n=n===void 0?2:n;dN(R,F*8+2);R.U.push(R.pos);R.U.push(n);R.pos+=n};
Y5_=function(R){for(var F=R.U.pop(),n=R.U.pop(),V=R.pos-n-F;F--;){var r=F?128:0;R.view.setUint8(n++,V&127|r);V>>=7}};
$K=function(R,F,n,V,r){n&&(kzv(R,F,r===void 0?3:r),V(R,n),Y5_(R))};
g.Pu=function(R,F){var n=new xiV(4096);F(n,R);return new Uint8Array(n.T.buffer,n.T.byteOffset,n.pos)};
g.bA=function(R){var F=new Bu(new sE([l$(decodeURIComponent(R))]));R=iA(F,2);F=OE(F,4);var n=Jck[F];if(typeof n==="undefined")throw R=new g.UR("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:F}),g.uX(R),R;return{OW:F,entityType:n,entityId:R}};
var cvj=function(){return hv[t[22]](this,1)};
g.Zm=function(R,F){var n=n===void 0?0:n;var V=new xiV;N0(V,2,uA(R));R=Gzj[F];if(typeof R==="undefined")throw n=new g.UR("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:F}),g.uX(n),n;M0(V,4,R);M0(V,5,1);F=new Uint8Array(V.T.buffer,V.T.byteOffset,V.pos);return encodeURIComponent(g.dQ(F,n))};
eA=function(R,F,n,V){if(V===void 0)return V=Object.assign({},R[F]||{}),n=(delete V[n],V),V={},Object.assign({},R,(V[F]=n,V));var r={},v={};return Object.assign({},R,(v[F]=Object.assign({},R[F],(r[n]=V,r)),v))};
diE=function(R,F,n,V,r){var v=R[F];if(v==null||!v[n])return R;V=g.LV(v[n],V,r==="REPEATED_FIELDS_MERGE_OPTION_APPEND");r={};v={};return Object.assign({},R,(v[F]=Object.assign({},R[F],(r[n]=V,r)),v))};
Mf6=function(R,F){R=R===void 0?{}:R;switch(F.type){case "ENTITY_LOADED":return F.payload.reduce(function(V,r){var v,f=(v=r.options)==null?void 0:v.persistenceOption;if(f&&f!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&f!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return V;if(!r.entityKey)return g.uX(Error("Missing entity key")),V;if(r.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!r.payload)return r=new g.UR("REPLACE entity mutation is missing a payload",{entityKey:r.entityKey}),g.uX(r),V;var z=g.Um(r.payload);
return eA(V,z,r.entityKey,r.payload[z])}if(r.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{r=r.entityKey;try{var q=g.bA(r).entityType;z=eA(V,q,r);break a}catch(w){if(w instanceof Error){r=new g.UR("Failed to deserialize entity key",{entityKey:r,originalMessage:w.message});g.uX(r);z=V;break a}throw w;}z=void 0}return z}if(r.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!r.payload)return r=new g.UR("UPDATE entity mutation is missing a payload",{entityKey:r.entityKey}),g.uX(r),V;z=g.Um(r.payload);var Q,c;return diE(V,
z,r.entityKey,r.payload[z],(Q=r.fieldMask)==null?void 0:(c=Q.mergeOptions)==null?void 0:c.repeatedFieldsMergeOption)}return V},R);
case "REPLACE_ENTITY":var n=F.payload;return eA(R,n.entityType,n.key,n.fB);case "REPLACE_ENTITIES":return Object.keys(F.payload).reduce(function(V,r){var v=F.payload[r];return Object.keys(v).reduce(function(f,z){return eA(f,r,z,v[z])},V)},R);
case "UPDATE_ENTITY":return n=F.payload,diE(R,n.entityType,n.key,n.fB,n.SKG);default:return R}};
RK=function(R,F,n){return R[F]?R[F][n]||null:null};
Fq=function(R){return window.Int32Array?new Int32Array(R):Array(R)};
tF=function(R){g.G.call(this);this.counter=[0,0,0,0];this.U=new Uint8Array(16);this.T=16;if(!l1N){var F,n=new Uint8Array(256),V=new Uint8Array(256);var r=1;for(F=0;F<256;F++)n[r]=F,V[F]=r,r^=r<<1^(r>>7&&283);nL=new Uint8Array(256);VL=Fq(256);rY=Fq(256);vF=Fq(256);fL=Fq(256);for(var v=0;v<256;v++){r=v?V[255^n[v]]:0;r^=r<<1^r<<2^r<<3^r<<4;r=r&255^r>>>8^99;nL[v]=r;F=r<<1^(r>>7&&283);var f=F^r;VL[v]=F<<24|r<<16|r<<8|f;rY[v]=f<<24|VL[v]>>>8;vF[v]=r<<24|rY[v]>>>8;fL[v]=r<<24|vF[v]>>>8}l1N=!0}r=Fq(44);for(n=
0;n<4;n++)r[n]=R[4*n]<<24|R[4*n+1]<<16|R[4*n+2]<<8|R[4*n+3];for(V=1;n<44;n++)R=r[n-1],n%4||(R=(nL[R>>16&255]^V)<<24|nL[R>>8&255]<<16|nL[R&255]<<8|nL[R>>>24],V=V<<1^(V>>7&&283)),r[n]=r[n-4]^R;this.key=r};
NyN=function(R){for(var F=R.key,n=R.counter[0]^F[0],V=R.counter[1]^F[1],r=R.counter[2]^F[2],v=R.counter[3]^F[3],f=3;f>=0&&!(R.counter[f]=-~R.counter[f]);f--);for(var z,q,Q=4;Q<40;)f=VL[n>>>24]^rY[V>>16&255]^vF[r>>8&255]^fL[v&255]^F[Q++],z=VL[V>>>24]^rY[r>>16&255]^vF[v>>8&255]^fL[n&255]^F[Q++],q=VL[r>>>24]^rY[v>>16&255]^vF[n>>8&255]^fL[V&255]^F[Q++],v=VL[v>>>24]^rY[n>>16&255]^vF[V>>8&255]^fL[r&255]^F[Q++],n=f,V=z,r=q;R=R.U;f=F[40];R[0]=nL[n>>>24]^f>>>24;R[1]=nL[V>>16&255]^f>>16&255;R[2]=nL[r>>8&255]^
f>>8&255;R[3]=nL[v&255]^f&255;f=F[41];R[4]=nL[V>>>24]^f>>>24;R[5]=nL[r>>16&255]^f>>16&255;R[6]=nL[v>>8&255]^f>>8&255;R[7]=nL[n&255]^f&255;f=F[42];R[8]=nL[r>>>24]^f>>>24;R[9]=nL[v>>16&255]^f>>16&255;R[10]=nL[n>>8&255]^f>>8&255;R[11]=nL[V&255]^f&255;f=F[43];R[12]=nL[v>>>24]^f>>>24;R[13]=nL[n>>16&255]^f>>16&255;R[14]=nL[V>>8&255]^f>>8&255;R[15]=nL[r&255]^f&255};
QL=function(){if(!zm&&!g.Nx){if(qS)return qS;var R;qS=(R=window.crypto)==null?void 0:R.subtle;var F,n,V;if(((F=qS)==null?0:F.importKey)&&((n=qS)==null?0:n.sign)&&((V=qS)==null?0:V.encrypt))return qS;qS=void 0}};
g.Se=function(R){var F=QL();F&&(this.T=new cF(R,F));this.U=new g.wY(R)};
cF=function(R,F){this.U=R;this.subtleCrypto=F};
ESf=function(R,F,n){var V,r;return g.Y(function(v){switch(v.T){case 1:if(R.T){v.wX(2);break}return g.k(v,R.subtleCrypto.importKey("raw",R.U,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:R.T=v.U;case 2:return V={name:"AES-CTR",counter:n,length:128},g.k(v,R.subtleCrypto.encrypt(V,R.T,F),4);case 4:return r=v.U,v.return(new Uint8Array(r))}})};
g.wY=function(R){this.U=R};
LL=function(R){this.W=new Uint8Array(64);this.N=new Uint8Array(64);this.J=0;this.Z=new Uint8Array(64);this.U=0;this.W.set(R);this.N.set(R);for(R=0;R<64;R++)this.W[R]^=92,this.N[R]^=54;this.reset()};
$i9=function(R,F,n){for(var V=R.X,r=R.T[0],v=R.T[1],f=R.T[2],z=R.T[3],q=R.T[4],Q=R.T[5],c=R.T[6],w=R.T[7],L,S,p,C=0;C<64;)C<16?(V[C]=p=F[n]<<24|F[n+1]<<16|F[n+2]<<8|F[n+3],n+=4):(L=V[C-2],S=V[C-15],p=V[C-7]+V[C-16]+((L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+((S>>>7|S<<25)^(S>>>18|S<<14)^S>>>3),V[C]=p),L=w+sX[C]+p+((q>>>6|q<<26)^(q>>>11|q<<21)^(q>>>25|q<<7))+(q&Q^~q&c),S=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&v^r&f^v&f),w=L+S,z+=L,C++,C<16?(V[C]=p=F[n]<<24|F[n+1]<<16|F[n+2]<<8|F[n+3],n+=4):(L=
V[C-2],S=V[C-15],p=V[C-7]+V[C-16]+((L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+((S>>>7|S<<25)^(S>>>18|S<<14)^S>>>3),V[C]=p),L=c+sX[C]+p+((z>>>6|z<<26)^(z>>>11|z<<21)^(z>>>25|z<<7))+(z&q^~z&Q),S=((w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10))+(w&r^w&v^r&v),c=L+S,f+=L,C++,C<16?(V[C]=p=F[n]<<24|F[n+1]<<16|F[n+2]<<8|F[n+3],n+=4):(L=V[C-2],S=V[C-15],p=V[C-7]+V[C-16]+((L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+((S>>>7|S<<25)^(S>>>18|S<<14)^S>>>3),V[C]=p),L=Q+sX[C]+p+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&z^
~f&q),S=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&w^c&r^w&r),Q=L+S,v+=L,C++,C<16?(V[C]=p=F[n]<<24|F[n+1]<<16|F[n+2]<<8|F[n+3],n+=4):(L=V[C-2],S=V[C-15],p=V[C-7]+V[C-16]+((L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+((S>>>7|S<<25)^(S>>>18|S<<14)^S>>>3),V[C]=p),L=q+sX[C]+p+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&f^~v&z),S=((Q>>>2|Q<<30)^(Q>>>13|Q<<19)^(Q>>>22|Q<<10))+(Q&c^Q&w^c&w),p=w,w=z,z=p,p=c,c=f,f=p,p=Q,Q=v,v=p,q=r+L,r=L+S,C++;R.T[0]=r+R.T[0]|0;R.T[1]=v+R.T[1]|0;R.T[2]=f+R.T[2]|0;R.T[3]=
z+R.T[3]|0;R.T[4]=q+R.T[4]|0;R.T[5]=Q+R.T[5]|0;R.T[6]=c+R.T[6]|0;R.T[7]=w+R.T[7]|0};
bIE=function(R){var F=new Uint8Array(32),n=64-R.U;R.U>55&&(n+=64);var V=new Uint8Array(n);V[0]=128;for(var r=R.J*8,v=1;v<9;v++){var f=r%256;V[n-v]=f;r=(r-f)/256}R.update(V);for(n=0;n<8;n++)F[n*4]=R.T[n]>>>24,F[n*4+1]=R.T[n]>>>16&255,F[n*4+2]=R.T[n]>>>8&255,F[n*4+3]=R.T[n]&255;Prv(R);return F};
Prv=function(R){R.T=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];R.X=[];R.X.length=64;R.J=0;R.U=0};
ZI_=function(R){this.T=R};
e5J=function(R,F,n){R=new LL(R.T);R.update(F);R.update(n);F=bIE(R);R.update(R.W);R.update(F);F=bIE(R);R.reset();return F};
RzR=function(R,F){this.U=R;this.subtleCrypto=F};
FfJ=function(R,F,n){var V,r,v;return g.Y(function(f){switch(f.T){case 1:if(R.T){f.wX(2);break}return g.k(f,R.subtleCrypto.importKey("raw",R.U,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:R.T=f.U;case 2:return V=new Uint8Array(F.length+n.length),V.set(F),V.set(n,F.length),r={name:"HMAC",hash:"SHA-256"},g.k(f,R.subtleCrypto.sign(r,R.T,V),4);case 4:return v=f.U,f.return(new Uint8Array(v))}})};
nb9=function(R){this.T=R};
VrI=function(R,F,n,V){return g.Y(function(r){R.U||(R.U=new RzR(R.T,V));return r.return(FfJ(R.U,F,n))})};
rwJ=function(R,F,n){R.N||(R.N=new ZI_(R.T));return e5J(R.N,F,n)};
vbv=function(R,F,n){var V,r;return g.Y(function(v){if(v.T==1){V=QL();if(!V)return v.return(rwJ(R,F,n));g.zv(v,3);return g.k(v,VrI(R,F,n,V),5)}if(v.T!=3)return v.return(v.U);r=g.cM(v);g.mq(r);zm=!0;return v.return(rwJ(R,F,n))})};
trJ=function(R){for(var F="",n=0;n<R.length;n++){var V=R[n];if(n===0)V="M "+V.x.toFixed(1)+","+V.y.toFixed(1);else{var r=fPV(R[n-1],R[n-2],V),v=fPV(V,R[n-1],R[n+1],!0);V=" C "+(r.x.toFixed(1)+","+r.y.toFixed(1)+" "+v.x.toFixed(1)+","+v.y.toFixed(1)+" "+V.x.toFixed(1)+","+V.y.toFixed(1))}F+=V}return F};
fPV=function(R,F,n,V){V=V===void 0?!1:V;F=new zzv(F||R,n||R);return{x:R.x+((V===void 0?0:V)?F.T*-1:F.T)*.2,y:R.y+((V===void 0?0:V)?F.U*-1:F.U)*.2}};
zzv=function(R,F){this.U=this.T=0;this.T=F.x-R.x;this.U=F.y-R.y};
cw_=function(R,F){var n,V,r;return g.Y(function(v){if(v.T==1)return n={context:g.Zz(),settingItemIds:F},V=g.Fy(q$N),g.k(v,g.ij(R,n,V),2);r=v.U;return!r||r.errorMetadata?(QS9("GetSettingValuesRequest",r),v.return(void 0)):v.return(r.settingValues)})};
S$j=function(R,F,n){var V,r,v;g.Y(function(f){if(f.T==1)return V={context:g.Zz(),settingItemId:F,newValue:n},r=g.Fy(wjV),g.k(f,g.ij(R,V,r),2);v=f.U;if(!v||v.errorMetadata)return QS9("SetSettingRequest",v),f.return(void 0);g.rq(f)})};
QS9=function(R,F){F?F.errorMetadata&&g.mq(new g.UR(R+" failed with status "+F.errorMetadata.status)):g.mq(new g.UR(R+" failed with empty response"))};
Lf9=function(R){return xm(R,0,"gclid",R.search(km))>=0||xm(R,0,"gad_source",R.search(km))>=0};
sSR=function(){this.T=new Map};
Xj9=function(R,F){var n=hw().resolve(pj_);if(Lf9(F)){var V=Ym(F,"gclid");F={handleEvent:function(z){R&&!R.closed&&typeof R.postMessage==="function"&&z&&z.origin&&z.source===R&&z.data&&z.data.action==="gcl_setup"&&R.postMessage(Object.assign({},{action:"gcl_transfer"},V&&{gclid:V},{gadSource:2}),z.origin)}};
for(var r=g.m(n.T),v=r.next();!v.done;v=r.next()){var f=g.m(v.value);v=f.next().value;f=f.next().value;if(v.closed)try{window.removeEventListener("message",f),n.T.delete(v)}catch(z){g.uX(z)}}R&&n.T.size<15&&(n.T.set(R,F),window.addEventListener("message",F))}};
pL=function(R,F,n){if(!F)return R.length>=1?R[R.length-1]:null;for(var V=g.m(R),r=V.next();!r.done;r=V.next())if(r=r.value,r.width&&r.height&&(n&&r.width>=F||!n&&r.height>=F))return r;for(F=R.length-1;F>=0;F--)if(n&&R[F].width||!n&&R[F].height)return R[F];return R[0]};
Xq=function(){this.state=1;this.c_=null;this.rK=void 0};
aPv=function(R,F,n,V,r,v){var f=f===void 0?"trayride":f;n?(R.nX(2),g.rG(g.m3(n),function(){if(window[f])AwE(R,V,f,r);else{R.nX(3);var z=Pa9(n),q=document.getElementById(z);q&&(Eev(z),q.parentNode.removeChild(q));g.mq(new g.UR("BL:ULB",""+n))}},v)):F?(v=g.gu("SCRIPT"),F instanceof D$?(v.textContent=iS(F),x6(v)):v.textContent=F,v.nonce=Kt(document),document.head.appendChild(v),document.head.removeChild(v),window[f]?AwE(R,V,f,r):(R.nX(4),g.mq(new g.UR("BL:ULBJ")))):g.mq(new g.UR("BL:ULV"))};
AwE=function(R,F,n,V){R.nX(5);var r=!!R.rK&&CEV.includes(g.u5(R.rK)||"");try{var v=new Xo({program:F,globalName:n,XR:{disable:!g.U2("att_web_record_metrics")||!g.U2("att_skip_metrics_for_cookieless_domains_ks")&&r,OF:"aGIf"}});v.OH.then(function(){R.nX(6);V&&V(F)});
R.DC(v)}catch(f){R.nX(7),f instanceof Error&&g.mq(f)}};
AF=function(){var R=g.WM("yt.abuse.playerAttLoader");return R&&["bgvma","bgvmb","bgvmc"].every(function(F){return F in R})?R:null};
aK=function(){Xq.apply(this,arguments)};
CL=function(R){this.H6=R};
TGj=function(R,F,n){for(var V=!1,r=g.m(R.cW.entries()),v=r.next();!v.done;v=r.next())v=g.m(v.value).next().value,v.slotType==="SLOT_TYPE_PLAYER_BYTES"&&v.qq==="core"&&(V=!0);if(V){a:if(!n){R=g.m(R.cW.entries());for(n=R.next();!n.done;n=R.next())if(V=g.m(n.value),n=V.next().value,V=V.next().value,n.slotType==="SLOT_TYPE_IN_PLAYER"&&n.qq==="core"){n=V.layoutId;break a}n=void 0}n?F.eT(n):Q2("No triggering layout ID available when attempting to mute.")}};
Tm=function(R,F){this.iW=R;this.zd=F};
oK=function(){};
yL=function(){};
ywI=function(R){g.G.call(this);var F=this;this.hX=R;this.T=new Map;UX(this,"commandExecutorCommand",function(n,V,r){ob9(F,n.commands,V,r)});
UX(this,"clickTrackingParams",function(){})};
UMR=function(R,F){UX(R,F.Tf(),function(n,V,r){F.zi(n,V,r)})};
UX=function(R,F,n){R.Zo();R.T.get(F)&&g.uX(Error("Extension name "+F+" already registered"));R.T.set(F,n)};
ob9=function(R,F,n,V){F=F===void 0?[]:F;R.Zo();var r=[],v=[];F=g.m(F);for(var f=F.next();!f.done;f=F.next())f=f.value,g.A(f,jS_)||g.A(f,Hrf)?r.push(f):v.push(f);r=g.m(r);for(F=r.next();!F.done;F=r.next())je(R,F.value,n,V);v=g.m(v);for(r=v.next();!r.done;r=v.next())je(R,r.value,n,V)};
je=function(R,F,n,V){R.Zo();F.loggingUrls&&hzf(R,"loggingUrls",F.loggingUrls,n,V);F=g.m(Object.entries(F));for(var r=F.next();!r.done;r=F.next()){var v=g.m(r.value);r=v.next().value;v=v.next().value;r==="openPopupAction"?R.hX.get().b7("innertubeCommand",{openPopupAction:v}):r==="confirmDialogEndpoint"?R.hX.get().b7("innertubeCommand",{confirmDialogEndpoint:v}):WfI.hasOwnProperty(r)||hzf(R,r,v,n,V)}};
hzf=function(R,F,n,V,r){if((R=R.T.get(F))&&typeof R==="function")try{R(n,V,r)}catch(v){g.uX(v)}else F=new g.UR("Unhandled field",F),g.mq(F)};
HF=function(R,F,n){this.NT=R;this.T=F;this.zH=n;y9(hw(),{Xi:pj_,Rf:sSR})};
hF=function(R){this.value=R};
WF=function(R){this.value=R};
uL=function(R){this.value=R};
BF=function(R){this.value=R};
mu=function(R){this.value=R};
gY=function(R){this.value=R};
OX=function(R){this.value=R};
IK=function(){hF.apply(this,arguments)};
KL=function(R){this.value=R};
D4=function(R){this.value=R};
iL=function(R){this.value=R};
xV=function(R){this.value=R};
kV=function(R){this.value=R};
YV=function(R){this.value=R};
JF=function(R){this.value=R};
Gm=function(R){this.value=R};
dY=function(R){this.value=R};
MS=function(R){this.value=R};
lL=function(){hF.apply(this,arguments)};
NS=function(R){this.value=R};
EX=function(R){this.value=R};
$V=function(R){this.value=R};
PF=function(R){this.value=R};
bL=function(R){this.value=R};
Z4=function(R){this.value=R};
ee=function(R){this.value=R};
RA=function(R){this.value=R};
FF=function(R){this.value=R};
nd=function(R){this.value=R};
Vm=function(R){this.value=R};
rW=function(R){this.value=R};
vA=function(R){this.value=R};
fd=function(R){this.value=R};
ty=function(R){this.value=R};
za=function(R){this.value=R};
qI=function(R){this.value=R};
Qm=function(R){this.value=R};
cA=function(R){this.value=R};
wW=function(R){this.value=R};
SM=function(R){this.value=R};
Ld=function(R){this.value=R};
sD=function(R){this.value=R};
pd=function(R){this.value=R};
XF=function(R){this.value=R};
Ay=function(R){this.value=R};
aA=function(R){this.value=R};
Cd=function(R){this.value=R};
Ta=function(R){this.value=R};
oA=function(R){this.value=R};
ym=function(R){this.value=R};
UD=function(R){this.value=R};
jM=function(R){this.value=R};
HA=function(R){this.value=R};
hy=function(R){this.value=R};
WA=function(R){this.value=R};
uy=function(R){this.value=R};
BA=function(R){this.value=R};
mg=function(R){this.value=R};
gW=function(R){this.value=R};
OD=function(){hF.apply(this,arguments)};
IA=function(R){this.value=R};
Kd=function(){hF.apply(this,arguments)};
Dk=function(){hF.apply(this,arguments)};
iy=function(){hF.apply(this,arguments)};
x8=function(){hF.apply(this,arguments)};
k8=function(){hF.apply(this,arguments)};
Y8=function(R){this.value=R};
Jy=function(R){this.value=R};
Ga=function(R){this.value=R};
dW=function(R){this.value=R};
ly=function(R,F,n){if(n&&!n.includes(R.layoutType))return!1;F=g.m(F);for(n=F.next();!n.done;n=F.next())if(!MI(R.clientMetadata,n.value))return!1;return!0};
NI=function(){return""};
umW=function(R,F){switch(R){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 F(R),8}};
ED=function(R,F,n,V){V=V===void 0?!1:V;lU.call(this,R);this.SK=n;this.q2=V;this.args=[];F&&this.args.push(F)};
Z=function(R,F,n,V){V=V===void 0?!1:V;lU.call(this,R);this.SK=n;this.q2=V;this.args=[];F&&this.args.push(F)};
$8=function(R){var F=new Map;R.forEach(function(n){F.set(n.T(),n)});
this.T=F};
MI=function(R,F){return R.T.has(F)};
PA=function(R,F){R=R.T.get(F);if(R!==void 0)return R.get()};
by=function(R){return Array.from(R.T.keys())};
Zk=function(R,F,n){if(n&&n!==R.slotType)return!1;F=g.m(F);for(n=F.next();!n.done;n=F.next())if(!MI(R.clientMetadata,n.value))return!1;return!0};
mMv=function(R){var F;return((F=BGV.get(R))==null?void 0:F.o_)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
Rd=function(R,F){var n={type:F.slotType,controlFlowManagerLayer:gbE.get(F.qq)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};F.slotEntryTrigger&&(n.entryTriggerType=F.slotEntryTrigger.triggerType);F.slotPhysicalPosition!==1&&(n.slotPhysicalPosition=F.slotPhysicalPosition);if(R){n.debugData={slotId:F.slotId};if(R=F.slotEntryTrigger)n.debugData.slotEntryTriggerData=eM(R);R=F.slotFulfillmentTriggers;n.debugData.fulfillmentTriggerData=[];R=g.m(R);for(var V=R.next();!V.done;V=R.next())n.debugData.fulfillmentTriggerData.push(eM(V.value));
F=F.slotExpirationTriggers;n.debugData.expirationTriggerData=[];F=g.m(F);for(R=F.next();!R.done;R=F.next())n.debugData.expirationTriggerData.push(eM(R.value))}return n};
Or9=function(R,F){var n={type:F.layoutType,controlFlowManagerLayer:gbE.get(F.qq)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};R&&(n.debugData={layoutId:F.layoutId});return n};
eM=function(R,F){var n={type:R.triggerType};F!=null&&(n.category=F);R.triggeringSlotId!=null&&(n.triggerSourceData||(n.triggerSourceData={}),n.triggerSourceData.associatedSlotId=R.triggeringSlotId);R.triggeringLayoutId!=null&&(n.triggerSourceData||(n.triggerSourceData={}),n.triggerSourceData.associatedLayoutId=R.triggeringLayoutId);return n};
IPN=function(R,F,n,V){F={opportunityType:F};R&&(V||n)&&(V=g.OM(V||[],function(r){return Rd(R,r)}),F.debugData=Object.assign({},n&&n.length>0?{associatedSlotId:n}:{},V.length>0?{slots:V}:{}));
return F};
nR=function(R,F){return function(n){return KfV(Fi(R),F.slotId,F.slotType,F.slotPhysicalPosition,F.qq,F.slotEntryTrigger,F.slotFulfillmentTriggers,F.slotExpirationTriggers,n.layoutId,n.layoutType,n.qq)}};
KfV=function(R,F,n,V,r,v,f,z,q,Q,c){return{adClientDataEntry:{slotData:Rd(R,{slotId:F,slotType:n,slotPhysicalPosition:V,qq:r,slotEntryTrigger:v,slotFulfillmentTriggers:f,slotExpirationTriggers:z,clientMetadata:new $8([])}),layoutData:Or9(R,{layoutId:q,layoutType:Q,qq:c,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],NC:new Map,clientMetadata:new $8([]),gg:{}})}}};
rn=function(R){this.WG=R;R=Math.random();var F=this.WG.get();F=g.Vn(F.K.D().experiments,"html5_debug_data_log_probability");F=Number.isFinite(F)&&F>=0&&F<=1?F:0;this.T=R<F};
Fi=function(R){return R.T||R.WG.get().K.D().B("html5_force_debug_data_for_client_tmp_logs")};
vl=function(R,F,n,V){g.G.call(this);this.U=F;this.In=n;this.WG=V;this.T=R(this,this,this,this,this);g.d(this,this.T);R=g.m(F);for(F=R.next();!F.done;F=R.next())g.d(this,F.value)};
fR=function(R,F){R.U.add(F)};
tE=function(R,F){R.U.delete(F)};
Qn=function(R,F,n,V){Q2(n,F,void 0,void 0,n.q2);n.SK?zA(R.In,V,n.SK,F):Q2("adsClientErrorMessage is missing.",F);qQ(R,F,!0)};
irE=function(R,F,n){if(cl(R.T,F))if(wn(R.T,F).J=n?"filled":"not_filled",n===null){S4(R.In,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",F);n=g.m(R.U);for(var V=n.next();!V.done;V=n.next())V.value.C5(F);qQ(R,F,!1)}else{S4(R.In,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",F,n);S4(R.In,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",F,n);var r,v=(r=n.q7)!=null?r:PA(n.clientMetadata,"metadata_type_sub_layouts");if(v)for(r=g.m(v),v=r.next();!v.done;v=r.next())S4(R.In,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",
F,v.value);r=g.m(R.U);for(v=r.next();!v.done;v=r.next())v.value.Ia(F);if(cl(R.T,F))if(wn(R.T,F).W)qQ(R,F,!1);else{S4(R.In,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",F,n);try{V=R.T;if(!wn(V,F))throw new ED("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!V.l_.Gi.get(F.slotType))throw new ED("No LayoutRenderingAdapterFactory registered for slot of type: "+F.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");
if(n.layoutExitNormalTriggers.length==0&&n.layoutExitSkipTriggers.length==0&&n.layoutExitMuteTriggers.length==0&&n.layoutExitUserInputSubmittedTriggers.length==0&&n.layoutExitUserCancelledTriggers.length==0)throw new ED("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");LR(V,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",n.layoutExitNormalTriggers);LR(V,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",n.layoutExitSkipTriggers);LR(V,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",
n.layoutExitMuteTriggers);LR(V,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",n.layoutExitUserInputSubmittedTriggers);LR(V,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",n.layoutExitUserCancelledTriggers)}catch(Q){Q instanceof ED?R.qP(F,n,Q,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):R.qP(F,n,new ED("Unexpected error: "+Q,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");qQ(R,F,!0);return}wn(R.T,F).Z=!0;try{var f=R.T,z=wn(f,F),q=f.l_.Gi.get(F.slotType).get().build(f.J,
f.U,F,n);q.init();z.layout=n;if(z.N)throw new ED("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");z.N=q;sQ(f,z,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",n.layoutExitNormalTriggers);sQ(f,z,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",n.layoutExitSkipTriggers);sQ(f,z,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",n.layoutExitMuteTriggers);sQ(f,z,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",n.layoutExitUserInputSubmittedTriggers);
sQ(f,z,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",n.layoutExitUserCancelledTriggers)}catch(Q){pR(R,F);Q instanceof ED?R.qP(F,n,Q,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):R.qP(F,n,new ED("Unexpected error: "+Q,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");qQ(R,F,!0);return}S4(R.In,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",F,n);V=g.m(R.U);for(f=V.next();!f.done;f=V.next())f.value.Wt(F,n);pR(R,F);DMe(R,F)}else R=R.WG.get(),g.Xi(R.K.D())||
AE(R.K.D())||g.ad(R.K.D())?R=!0:(Q2("Composite VOD on legacy path."),R=!1),R&&Q2("slot is unscheduled after been fulfilled.",F,n)}};
xME=function(R,F,n){F.qq!=="core"&&S4(R.In,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",F,n)};
kMV=function(R,F,n){S4(R.In,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",F,n);R=g.m(R.U);for(var V=R.next();!V.done;V=R.next())V.value.Wt(F,n)};
Y$J=function(R,F,n){R=g.m(R.U);for(var V=R.next();!V.done;V=R.next())V.value.jE(F,n)};
Jw6=function(R,F,n){S4(R.In,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",F,n);R=g.m(R.U);for(var V=R.next();!V.done;V=R.next())V.value.cT(F,n)};
GMW=function(R,F,n,V){S4(R.In,mMv(V),F,n);R=g.m(R.U);for(var r=R.next();!r.done;r=R.next())r.value.dW(F,n,V)};
pR=function(R,F){if(cl(R.T,F)){wn(R.T,F).Z=!1;var n=CR;F=wn(R.T,F);var V=[].concat(g.I(F.V));P9E(F.V);n(R,V)}};
CR=function(R,F){F.sort(function(v,f){function z(q){Q2("TriggerCategoryOrder enum does not contain trigger category: "+q)}
return v.category===f.category?v.trigger.triggerId.localeCompare(f.trigger.triggerId):umW(v.category,z)-umW(f.category,z)});
var n=new Map;F=g.m(F);for(var V=F.next();!V.done;V=F.next())if(V=V.value,cl(R.T,V.slot))if(wn(R.T,V.slot).Z)wn(R.T,V.slot).V.push(V);else{dMW(R.In,V.slot,V,V.layout);var r=n.get(V.category);r||(r=[]);r.push(V);n.set(V.category,r)}F=g.m(Mr6);for(V=F.next();!V.done;V=F.next())r=g.m(V.value),V=r.next().value,r=r.next().value,(V=n.get(V))&&lPJ(R,V,r);(F=n.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&NGR(R,F);(F=n.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&EbN(R,F);(n=n.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
$Mk(R,n)};
lPJ=function(R,F,n){F=g.m(F);for(var V=F.next();!V.done;V=F.next())V=V.value,V.layout&&TA(R.T,V.slot)&&PEW(R,V.slot,V.layout,n)};
NGR=function(R,F){F=g.m(F);for(var n=F.next();!n.done;n=F.next())qQ(R,n.value.slot,!1)};
EbN=function(R,F){F=g.m(F);for(var n=F.next();!n.done;n=F.next()){n=n.value;a:switch(wn(R.T,n.slot).J){case "not_filled":var V=!0;break a;default:V=!1}V&&(od(R.In,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",n.slot),R.T.VE(n.slot))}};
$Mk=function(R,F){F=g.m(F);for(var n=F.next();!n.done;n=F.next()){n=n.value;od(R.In,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",n.slot);for(var V=g.m(R.U),r=V.next();!r.done;r=V.next())r.value.vt(n.slot);try{var v=R.T,f=n.slot,z=wn(v,f);if(!z)throw new Z("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!z.U)throw new Z("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(z.T!=="scheduled")throw new Z("Tried to enter a slot from stage: "+
z.T,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(yn(z))throw new Z("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var q=g.m(UQ(v,f.slotType+"_"+f.slotPhysicalPosition).values()),Q=q.next();!Q.done;Q=q.next()){var c=Q.value,w;if(w=z!==c&&yn(c))r=V=void 0,w=!(((r=z.slot.fulfilledLayout)==null?void 0:r.layoutType)==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"&&((V=c.layout)==null?void 0:V.layoutType)==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY");
if(w)throw new Z("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:c.T},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(L){L instanceof Z&&L.SK?(zA(R.In,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",L.SK,n.slot),Q2(L,n.slot,j4(R.T,n.slot),void 0,L.q2)):(zA(R.In,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",n.slot),Q2(L,n.slot));qQ(R,n.slot,!0);continue}n=wn(R.T,n.slot);n.T!=="scheduled"&&Hl(n.slot,n.T,"enterSlot");n.T="enter_requested";
n.U.yj()}};
DMe=function(R,F){if(cl(R.T,F)&&yn(wn(R.T,F))&&j4(R.T,F)&&!TA(R.T,F)){var n;S4(R.In,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",F,(n=j4(R.T,F))!=null?n:void 0);R=wn(R.T,F);R.T!=="entered"&&Hl(R.slot,R.T,"enterLayoutForSlot");R.T="rendering";R.N.startRendering(R.layout)}};
PEW=function(R,F,n,V){if(cl(R.T,F)){var r=R.In,v;var f=((v=BGV.get(V))==null?void 0:v.Op)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";S4(r,f,F,n);R=wn(R.T,F);R.T!=="rendering"&&Hl(R.slot,R.T,"exitLayout");R.T="rendering_stop_requested";R.N.wu(n,V)}};
qQ=function(R,F,n){if(cl(R.T,F)){a:switch(wn(R.T,F).T){case "exit_requested":var V=!0;break a;default:V=!1}if(!V)a:switch(wn(R.T,F).T){case "rendering_stop_requested":V=!0;break a;default:V=!1}if(V&&(wn(R.T,F).W=!0,!n))return;if(yn(wn(R.T,F)))wn(R.T,F).W=!0,brV(R,F,n);else{a:switch(wn(R.T,F).J){case "fill_requested":n=!0;break a;default:n=!1}if(n)wn(R.T,F).W=!0,cl(R.T,F)&&(od(R.In,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",F),F=wn(R.T,F),F.J="fill_cancel_requested",F.X.Bl());else{n=
j4(R.T,F);(V=R.WG.get().K.D().experiments.GH("h5_enable_layout_unscheduling_events"))&&(n?R.jE(F,n):Q2(Error("Layout is null for LayoutUnscheduled event."),F,n,void 0,!1));od(R.In,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",F);var r=wn(R.T,F),v=F.slotEntryTrigger,f=r.jQ.get(v.triggerId);f&&(f.eK(v),r.jQ.delete(v.triggerId));v=g.m(F.slotFulfillmentTriggers);for(f=v.next();!f.done;f=v.next()){f=f.value;var z=r.Nq.get(f.triggerId);z&&(z.eK(f),r.Nq.delete(f.triggerId))}v=g.m(F.slotExpirationTriggers);
for(f=v.next();!f.done;f=v.next())if(f=f.value,z=r.UZ.get(f.triggerId))z.eK(f),r.UZ.delete(f.triggerId);r.layout!=null&&(v=r.layout,hE(r,v.layoutExitNormalTriggers),hE(r,v.layoutExitSkipTriggers),hE(r,v.layoutExitMuteTriggers),hE(r,v.layoutExitUserInputSubmittedTriggers),hE(r,v.layoutExitUserCancelledTriggers));r.X=void 0;r.U!=null&&(r.U.release(),r.U=void 0);r.N!=null&&(r.N.release(),r.N=void 0);r=R.T;wn(r,F)&&(r=UQ(r,F.slotType+"_"+F.slotPhysicalPosition))&&r.delete(F.slotId);od(R.In,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
F);R=g.m(R.U);for(r=R.next();!r.done;r=R.next())r=r.value,r.Dz(F),n&&!V&&r.jE(F,n)}}}};
brV=function(R,F,n){if(cl(R.T,F)&&yn(wn(R.T,F))){var V=j4(R.T,F);if(V&&TA(R.T,F))PEW(R,F,V,n?"error":"abandoned");else{od(R.In,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",F);try{var r=wn(R.T,F);if(!r)throw new Z("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");r.T!=="enter_requested"&&r.T!=="entered"&&r.T!=="rendering"&&Hl(r.slot,r.T,"exitSlot");r.T="exit_requested";if(r.U===void 0)throw r.T="scheduled",new Z("Cannot exit slot because adapter is not defined",
void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");r.U.N$()}catch(v){v instanceof Z&&v.SK?(zA(R.In,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",v.SK,F),Q2(v,F,void 0,void 0,v.q2)):(zA(R.In,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",F),Q2(v,F))}}}};
ZrI=function(R){this.slot=R;this.jQ=new Map;this.Nq=new Map;this.UZ=new Map;this.J1=new Map;this.N=this.layout=this.U=this.X=void 0;this.Z=this.W=!1;this.V=[];this.T="not_scheduled";this.J="not_filled"};
yn=function(R){return R.T==="enter_requested"||R.isActive()};
Wl=function(R,F,n,V,r,v){g.G.call(this);this.l_=R;this.N=F;this.W=n;this.J=V;this.U=r;this.WG=v;this.T=new Map};
UQ=function(R,F){return(R=R.T.get(F))?R:new Map};
wn=function(R,F){return UQ(R,F.slotType+"_"+F.slotPhysicalPosition).get(F.slotId)};
ezR=function(R){var F=[];R.T.forEach(function(n){n=g.m(n.values());for(var V=n.next();!V.done;V=n.next())F.push(V.value.slot)});
return F};
cl=function(R,F){return wn(R,F)!=null};
TA=function(R,F){R=wn(R,F);if(F=R.layout!=null)a:switch(R.T){case "rendering":case "rendering_stop_requested":F=!0;break a;default:F=!1}return F};
j4=function(R,F){(R=wn(R,F))?R.layout!=null&&!R.layout&&Q2("Unexpected empty layout",F):Q2("Unexpected undefined slotState",F);return(R==null?void 0:R.layout)||null};
uO=function(R,F,n){if(n.length==0)throw new Z("No "+Rb9.get(F)+" triggers found for slot.",void 0,FqV(F));n=g.m(n);for(var V=n.next();!V.done;V=n.next())if(V=V.value,!R.l_.FW.get(V.triggerType))throw new Z("No trigger adapter registered for "+F+" trigger of type: "+V.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
FqV=function(R){switch(R){case "TRIGGER_CATEGORY_SLOT_ENTRY":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_ENTRY_TRIGGER";case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_EXPIRATION_TRIGGER";case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_FULFILLMENT_TRIGGER";default:return"ADS_CLIENT_ERROR_MESSAGE_INVALID_TRIGGER"}};
LR=function(R,F,n){n=g.m(n);for(var V=n.next();!V.done;V=n.next())if(V=V.value,!R.l_.FW.get(V.triggerType))throw new ED("No trigger adapter registered for "+Rb9.get(F)+" trigger of type: "+V.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
sQ=function(R,F,n,V){V=g.m(V);for(var r=V.next();!r.done;r=V.next()){r=r.value;var v=R.l_.FW.get(r.triggerType);v.zP(n,r,F.slot,F.layout?F.layout:null);F.J1.set(r.triggerId,v)}};
hE=function(R,F){F=g.m(F);for(var n=F.next();!n.done;n=F.next()){n=n.value;var V=R.J1.get(n.triggerId);V&&(V.eK(n),R.J1.delete(n.triggerId))}};
Hl=function(R,F,n){Q2("Slot stage was "+F+" when calling method "+n,R)};
nCR=function(R){return Bl(R.LR).concat(Bl(R.FW)).concat(Bl(R.Nf)).concat(Bl(R.hn)).concat(Bl(R.Gi))};
Bl=function(R){var F=[];R=g.m(R.values());for(var n=R.next();!n.done;n=R.next())n=n.value,n.JO&&F.push(n);return F};
var SRW=function(R,F,n){return U6J[t[22]](this,1,R,F,n)};
mO=function(R){g.G.call(this);var F=this;this.T=R;this.instance=null;this.addOnDisposeCallback(function(){g.Cv(F.instance);F.instance=null})};
gn=function(R){return new mO(R)};
OQ=function(R){g.G.call(this);this.T=R;this.U=Vg6(this)};
Vg6=function(R){var F=new vl(function(n,V,r,v){return new Wl(R.T.l_,n,V,r,v,R.T.WG)},new Set(nCR(R.T.l_).concat(R.T.listeners)),R.T.In,R.T.WG);
g.d(R,F);return F};
Id=function(R){this.T=R};
KR=function(R,F,n){ob9(R.T(),F,n)};
D7=function(R,F,n,V){(R=R.T())||Q2("Could not initiate a command router instance.");je(R,F,n,V)};
iO=function(){this.listeners=new Set};
xA=function(R){this.WG=R};
rpW=function(R,F){var n=F.bgp&&F.bgub,V=!!F.upb;F.siub&&F.scs&&(n||V)&&(V&&kA(R.WG.get(),"html5_export_sodar_snapshot")&&d6e(function(r){var v;return g.Y(function(f){if(f.T==1)return g.k(f,wD(),2);v=f.U;return f.return(v.snapshot(r))})}),e4R(F.siub,F.scs,F.bgub,F.bgp,F.upb))};
vCI=function(R,F,n,V,r){this.callback=R;this.slot=F;this.U=n;this.Ol=V;this.WG=r;this.T=null};
tgj=function(R,F,n,V){R.T&&Q2("Currently active request ongoing for slot. This should never happen",R.slot);R.T=F();R.T.then(function(r){R.T=null;V&&V(r);var v=r.De?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",f=R.U.get(),z=R.slot.slotId,q=nR(R.Ol.get(),{slotId:R.slot.slotId,slotType:R.slot.slotType,slotPhysicalPosition:R.slot.slotPhysicalPosition,qq:R.slot.qq,slotEntryTrigger:R.slot.slotEntryTrigger,slotFulfillmentTriggers:R.slot.slotFulfillmentTriggers,slotExpirationTriggers:R.slot.slotExpirationTriggers}),
Q=YA(f.U.get(),v,z),c={layoutId:Q,layoutType:v,qq:"core"};r={layoutId:Q,layoutType:v,NC:new Map,layoutExitNormalTriggers:[new ft_(f.T,z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:"core",clientMetadata:new $8([new uy(r)]),gg:q(c)};irE(R.callback,R.slot,r)},function(r){R.T=null;
n&&n();r instanceof kv||Qn(R.callback,R.slot,new Z(r,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
zbe=function(R){if(R.T==null)R.callback.zm(R.slot);else try{R.T.cancel(),R.T=null,R.callback.zm(R.slot)}catch(F){R.T=null,Qn(R.callback,R.slot,new Z(F,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
JE=function(R,F,n,V){!R&&(n===void 0?0:n)&&g.mq(Error("Player URL validator detects invalid url. "+(V===void 0?"":V)+": "+F));return R};
GA=function(R,F){return F&&F.test(R)?!0:!1};
QQv=function(R){return(R=qKR&&qKR.exec(R))?R[0]:""};
sR=function(R){var F=F===void 0?!1:F;return JE(GA(R,cpW),R,F,"Trusted Stream URL")};
g.dn=function(R){var F=F===void 0?!1:F;return JE(GA(R,weE),R,F,"Trusted Image URL")};
LqJ=function(R){var F=F===void 0?!1:F;return JE(GA(R,SKJ),R,F,"Trusted Promoted Video Domain URL")};
peE=function(R){var F=F===void 0?!1:F;return JE(GA(R,sQV),R,F,"Drm Licensor URL")};
Apf=function(R,F){F=F===void 0?!1:F;return JE(GA(R,Xef),R,F,"Captions URL")};
RVI=function(R){R=new g.c_(R);g.q1(R,document.location.protocol);g.we(R,document.location.hostname);document.location.port&&g.QG(R,document.location.port);return R.toString()};
MQ=function(R){R=new g.c_(R);g.q1(R,document.location.protocol);return R.toString()};
g.NQ=function(R,F,n){n=n===void 0?{}:n;this.start=R;this.end=F;this.active=!0;this.color="";this.U=atW++;this.id=n.id||"";this.priority=n.priority||9;this.visible=n.visible||!1;this.style=n.style||lO.AD_MARKER;this.namespace=n.namespace||"";if(R=n.color)R=R.toString(16),this.color="#"+Array(7-R.length).join("0")+R;this.tooltip=n.tooltip;this.icons=n.icons?n.icons.filter(function(V){return g.Iv(V.thumbnails,function(r){return g.dn(r.url)})}):null;
this.associatedClipId=n.associatedClipId;this.markerPositionMs=n.markerPositionMs;this.visible=this.visible;this.style=this.style;this.start=this.start};
CXj=function(R){return R===-0x8000000000000?"BEFORE_MEDIA_START":R===0?"MEDIA_START":R===0x7ffffffffffff?"MEDIA_END":R===0x8000000000000?"AFTER_MEDIA_END":R.toString()};
TCe=function(R,F){switch(R.style){case lO.CHAPTER_MARKER:return F?8:5;case lO.AD_MARKER:return 6;case lO.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.EQ=function(R,F){return R.start-F.start||R.priority-F.priority||R.U-F.U};
g.$A=function(R){return"crn_"+R};
g.Pl=function(R){return"crx_"+R};
bO=function(R,F,n,V,r,v,f,z,q){this.slot=F;this.U=n;this.zH=f;this.F2=z;this.SB=q;this.T=new vCI(R,F,V,r,v)};
oCN=function(R){var F;(F=R.SB)==null||F.get().wI(PA(R.slot.clientMetadata,"metadata_type_cue_point").identifier)};
Z7=function(R,F,n,V,r,v){this.slot=F;this.T=n;this.U=new vCI(R,F,V,r,v)};
e4=function(R,F){this.callback=R;this.slot=F};
RB=function(R,F){return Zk(R,F.N8,F.slotType)?!0:!1};
F8=function(){};
ny=function(R,F,n,V,r,v,f){this.T=R;this.U=F;this.Ol=n;this.WG=V;this.zH=r;this.F2=v;this.SB=f};
Vd=function(){};
ypk=function(R,F,n,V,r,v){this.callback=R;this.slot=F;this.layout=n;this.N=V;this.T=r;this.U=v};
jQk=function(R){if(PA(R.slot.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var F=Uz9(R,R.slot);rE(R.T.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[F]})}};
HJ_=function(R){if(PA(R.slot.clientMetadata,"metadata_type_prefetch_metadata")){var F=Uz9(R,R.slot);rE(R.T.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[F]})}};
Uz9=function(R,F){var n=vT(R.U.get(),R.slot.slotType),V=Object,r=V.assign;R=R.slot;if(F.slotEntryTrigger){var v=F.slotId;var f=F.slotEntryTrigger;v=f.triggeringSlotId!=null&&f.triggeringSlotId===v?f.clone(n):f}else v=void 0;return r.call(V,{},R,{slotId:n,slotEntryTrigger:v,slotFulfillmentTriggers:hbf(F.slotId,n,F.slotFulfillmentTriggers),slotExpirationTriggers:hbf(F.slotId,n,F.slotExpirationTriggers)})};
hbf=function(R,F,n){var V=[];n=g.m(n);for(var r=n.next();!r.done;r=n.next()){var v=V,f=v.push;var z=R;var q=F;r=r.value;z=r.triggeringSlotId!=null&&r.triggeringSlotId===z?r.clone(q):r;f.call(v,z)}return V};
g.fy=function(R,F){for(var n=g.m(Object.keys(F)),V=n.next(),r={};!V.done;r={placeholder:void 0},V=n.next())V=V.value,r.placeholder=F[V],R=R.replace(new RegExp("\\$"+V,"gi"),function(v){return function(){return v.placeholder}}(r));
return R};
Wq9=function(R,F,n){this.T=R;this.slot=F;this.layout=n};
ta=function(R,F,n){F.layoutId!==R.layout.layoutId?R.T.qP(R.slot,F,new ED("Unknown layout received. Required LayoutId: "+R.layout.layoutId+("and LayoutType: "+R.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):n()};
zL=function(R,F,n,V){g.fG.call(this);this.callback=R;this.N=V;this.T=[];this.U=new Wq9(R,F,n)};
Qd=function(R,F,n,V,r,v,f,z){V=V||PA(n.clientMetadata,v);R=qy(R);var q=bY(function(){r.cT(F,n)});
z.push(f(V,R,n.layoutId,{adsClientData:n.gg},function(){q()}))};
wE=function(R,F,n,V,r,v,f,z,q){if(F===R)if(q){if(q===z.layoutId){a:{R=g.m(n.keys());for(F=R.next();!F.done;F=R.next())if(F=F.value,F.slotType==="SLOT_TYPE_PLAYER_BYTES"&&v===n.get(F).layoutId){n=!0;break a}n=!1}n?cT(V,1):r?r():Q2("Tried to call engagePingCallback but it is null",f,z)}}else Q2("Companion AdUxClick received without a layoutId",f,z)};
Sq=function(R){var F,n,V,r,v;return!((F=R.get("active_view_viewable"))==null||!F.length)||!((n=R.get("active_view_measurable"))==null||!n.length)||!((V=R.get("active_view_fully_viewable_audible_half_duration"))==null||!V.length)||!((r=R.get("audio_audible"))==null||!r.length)||!((v=R.get("audio_measurable"))==null||!v.length)};
Ly=function(R){var F,n;return(n=R==null?void 0:(F=R.activeViewTracking)==null?void 0:F.trafficType)!=null?n:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
uSW=function(R){var F;return R==null?void 0:(F=R.activeViewTracking)==null?void 0:F.identifier};
sF=function(R){var F,n;return new Map([["impression",R.impressionPings||[]],["error",R.errorPings||[]],["mute",R.mutePings||[]],["unmute",R.unmutePings||[]],["pause",R.pausePings||[]],["rewind",R.rewindPings||[]],["resume",R.resumePings||[]],["skip",R.skipPings||[]],["swipe",R.swipePings||[]],["close",R.closePings||[]],["progress",R.progressPings||[]],["clickthrough",R.clickthroughPings||[]],["fullscreen",R.fullscreenPings||[]],["active_view_viewable",R.activeViewViewablePings||[]],["active_view_measurable",
R.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",R.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",((F=R.activeViewTracking)==null?void 0:F.activeViewAudioAudiblePings)||[]],["audio_measurable",((n=R.activeViewTracking)==null?void 0:n.activeViewAudioMeasurablePings)||[]],["end_fullscreen",R.endFullscreenPings||[]],["channel_clickthrough",R.channelClickthroughPings||[]],["abandon",R.abandonPings||[]],["start",R.startPings||[]],["first_quartile",
R.firstQuartilePings||[]],["midpoint",R.secondQuartilePings||[]],["third_quartile",R.thirdQuartilePings||[]],["complete",R.completePings||[]],["unmuted_impression",R.unmutedImpressionPings||[]],["unmuted_error",R.unmutedErrorPings||[]],["unmuted_mute",R.unmutedMutePings||[]],["unmuted_unmute",R.unmutedUnmutePings||[]],["unmuted_pause",R.unmutedPausePings||[]],["unmuted_resume",R.unmutedResumePings||[]],["unmuted_close",R.unmutedClosePings||[]],["unmuted_progress",R.unmutedProgressPings||[]],["unmuted_clickthrough",
R.unmutedClickthroughPings||[]],["unmuted_fullscreen",R.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",R.unmutedEndFullscreenPings||[]],["unmuted_abandon",R.unmutedAbandonPings||[]],["unmuted_start",R.unmutedStartPings||[]],["unmuted_first_quartile",R.unmutedFirstQuartilePings||[]],["unmuted_midpoint",R.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",R.unmutedThirdQuartilePings||[]],["unmuted_complete",R.unmutedCompletePings||[]],["unmuted_skip",R.unmutedSkipPings||[]]])};
BCN=function(R){switch(R){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen";
case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "swipe":return null;case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile";
case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null;
default:return null}};
py=function(R,F,n,V,r){r=r===void 0?null:r;this.N=R;this.zH=F;this.layoutId=V;this.J=0;this.Z=null;this.W=void 0;this.T=new Set;this.U=Array.from(this.N.get("progress")||[]);this.U.sort(function(v,f){return(v.offsetMilliseconds||0)-(f.offsetMilliseconds||0)});
this.X={adPlacementConfig:n,tv:r}};
X8=function(){return["metadata_type_ad_placement_config"]};
qy=function(R){var F=R.zH.get();return Aa(F,R.X)};
Cy=function(R,F,n){n=n===void 0?!1:n;R.T.has(F)?aB(R,F,[]):R.Vc(F,n)};
TL=function(R,F,n){for(n=n===void 0?!1:n;R.J<R.U.length;){var V=R.U[R.J];if(V.offsetMilliseconds<=F||n)aB(R,"progress",[V]),R.J++;else break}};
oB=function(R,F){return R.T.has(F)};
yd=function(R){return R.U.every(function(F){return F.hasOwnProperty("offsetMilliseconds")})};
mzk=function(R,F,n){R.Z=F;R.W=n};
aB=function(R,F,n){var V;gCv(R.zH.get(),R.layoutId,F,n,(V=R.Z)!=null?V:void 0,R.W)};
OJN=function(R,F,n,V,r){v5.call(this,"ads-engagement-panel-layout",R,F,n,V,r)};
UF=function(R,F,n,V,r,v,f,z){zL.call(this,R,F,n,V);this.zH=r;this.lZ=v;this.Z=z;this.JO=!0;this.J=null;this.W=PA(n.clientMetadata,"metadata_type_linked_player_bytes_layout_id");fR(this.lZ(),this);R=PA(n.clientMetadata,"metadata_type_ad_placement_config");this.LH=new py(n.NC,this.zH,R,n.layoutId)};
It6=function(){var R=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];X8().forEach(function(F){R.push(F)});
return{N8:R,xq:["LAYOUT_TYPE_PANEL"]}};
Kqe=function(R,F,n,V,r){v5.call(this,"banner-image",R,F,n,V,r)};
jq=function(R,F,n,V,r,v,f,z){zL.call(this,R,F,n,V);this.zH=r;this.lZ=v;this.Z=z;this.JO=!0;this.J=null;this.W=PA(n.clientMetadata,"metadata_type_linked_player_bytes_layout_id");fR(this.lZ(),this);this.adPlacementConfig=PA(n.clientMetadata,"metadata_type_ad_placement_config");this.LH=new py(n.NC,this.zH,this.adPlacementConfig,n.layoutId)};
DzN=function(){var R=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];X8().forEach(function(F){R.push(F)});
return{N8:R,xq:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
HT=function(R,F,n,V,r){v5.call(this,"action-companion",R,F,n,V,r)};
ha=function(R,F,n,V,r,v,f,z){zL.call(this,R,F,n,V);this.zH=r;this.lZ=v;this.Z=z;this.JO=!0;this.J=null;this.W=PA(n.clientMetadata,"metadata_type_linked_player_bytes_layout_id");fR(this.lZ(),this);R=PA(n.clientMetadata,"metadata_type_ad_placement_config");this.LH=new py(n.NC,this.zH,R,n.layoutId)};
iJJ=function(){var R=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];X8().forEach(function(F){R.push(F)});
return{N8:R,xq:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
xze=function(R,F,n,V,r){v5.call(this,"image-companion",R,F,n,V,r)};
WT=function(R,F,n,V,r,v,f,z){zL.call(this,R,F,n,V);this.zH=r;this.lZ=v;this.Z=z;this.JO=!0;this.J=null;this.W=PA(n.clientMetadata,"metadata_type_linked_player_bytes_layout_id");fR(this.lZ(),this);R=PA(n.clientMetadata,"metadata_type_ad_placement_config");this.LH=new py(n.NC,this.zH,R,n.layoutId)};
kne=function(){var R=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];X8().forEach(function(F){R.push(F)});
return{N8:R,xq:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
YKf=function(R,F,n,V,r){v5.call(this,"shopping-companion",R,F,n,V,r)};
uJ=function(R,F,n,V,r,v,f,z){zL.call(this,R,F,n,V);this.zH=r;this.lZ=v;this.Z=z;this.JO=!0;this.J=null;this.W=PA(n.clientMetadata,"metadata_type_linked_player_bytes_layout_id");fR(this.lZ(),this);R=PA(n.clientMetadata,"metadata_type_ad_placement_config");this.LH=new py(n.NC,this.zH,R,n.layoutId)};
JpE=function(){var R=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];X8().forEach(function(F){R.push(F)});
return{N8:R,xq:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
GnR=function(R){var F;if(((F=R.adVideoOffset)==null?void 0:F.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var n;return((n=R.adVideoOffset)==null?void 0:n.percent)!=null};
dzv=function(R){var F;if(((F=R.adVideoOffset)==null?void 0:F.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var n;return((n=R.adVideoOffset)==null?void 0:n.milliseconds)!=null&&!isNaN(Number(R.adVideoOffset.milliseconds))};
BT=function(R,F,n,V){this.tJ=R;this.layoutId=n;this.W=V;this.U=[];this.T=[];this.N=this.J=0;R=g.m(F);for(F=R.next();!F.done;F=R.next())switch(F=F.value,n=void 0,(n=F.adVideoOffset)==null?void 0:n.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":GnR(F)?this.U.push(F):Q2("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":dzv(F)?this.T.push(F):Q2("Invalid AdVideoProgressMillisecondsCommand");break;default:Q2("Unknown or invalid AdVideoProgressOffSet kind")}this.U.sort(function(r,
v){return r.adVideoOffset.percent-v.adVideoOffset.percent});
this.T.sort(function(r,v){return Number(r.adVideoOffset.milliseconds)-Number(v.adVideoOffset.milliseconds)})};
m6=function(R,F,n){n=n===void 0?!1:n;var V=R.W();if(V){for(;R.J<R.U.length;){var r=R.U[R.J];if(r.adVideoOffset.percent*V<=F||n)R.tJ.get().executeCommand(r.command,R.layoutId),R.J++;else break}for(;R.N<R.T.length;)if(V=R.T[R.N],Number(V.adVideoOffset.milliseconds)<=F||n)R.tJ.get().executeCommand(V.command,R.layoutId),R.N++;else break}};
gE=function(R,F,n,V,r,v){zL.call(this,R,F,n,V);this.zH=r;this.lZ=v;this.JO=!0;fR(this.lZ(),this);R=PA(n.clientMetadata,"metadata_type_ad_placement_config");this.LH=new py(n.NC,this.zH,R,n.layoutId)};
MgV=function(){var R=["metadata_type_action_companion_ad_renderer"];X8().forEach(function(F){R.push(F)});
return{N8:R,xq:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
ltk=function(R,F,n,V,r,v,f,z){this.callback=R;this.slot=F;this.layout=n;this.F2=V;this.zH=r;this.WG=f;this.cI=z;this.T=!1;R=PA(n.clientMetadata,"metadata_type_ad_placement_config");this.LH=new py(n.NC,this.zH,R,n.layoutId);var q;R=((q=PA(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:q.progressCommands)||[];var Q=PA(n.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.U=new BT(v,R,n.layoutId,function(){return Q*1E3})};
OF=function(R,F,n,V,r,v){zL.call(this,R,F,n,V);this.F2=r;this.W=v;this.J=!1};
IB=function(R,F,n,V,r){v5.call(this,"top-banner-image-text-icon-buttoned",R,F,n,V,r)};
Ky=function(R,F,n,V,r,v){zL.call(this,R,F,n,V);this.zH=r;this.lZ=v;this.JO=!0;fR(this.lZ(),this);R=PA(n.clientMetadata,"metadata_type_ad_placement_config");this.LH=new py(n.NC,this.zH,R,n.layoutId)};
NCW=function(){var R=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];X8().forEach(function(F){R.push(F)});
return{N8:R,xq:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
DX=function(R,F,n){v5.call(this,"display-underlay-text-grid-cards",R,{},F,n);this.interactionLoggingClientData=n};
iJ=function(R,F,n,V,r,v){zL.call(this,R,F,n,V);this.zH=r;this.J=v;this.W=PA(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
xl=function(R,F,n,V,r,v){r=r===void 0?!1:r;v=v===void 0?!1:v;v5.call(this,"ad-action-interstitial",R,F,n,V);this.interactionLoggingClientData=V;this.hR=r;this.OI=v};
kl=function(R,F,n,V,r){zL.call(this,R,F,n,V);R=PA(n.clientMetadata,"metadata_type_ad_placement_config");this.LH=new py(n.NC,r,R,n.layoutId)};
EC9=function(){var R=["metadata_type_ad_action_interstitial_renderer"];X8().forEach(function(F){R.push(F)});
return{N8:R,xq:["LAYOUT_TYPE_ENDCAP"]}};
Yl=function(R,F){return ly(R,F.N8,F.xq)?!0:!1};
Ja=function(R,F,n){this.U=R;this.N=F;this.T=n};
$zN=function(R,F,n,V,r){v5.call(this,"ads-engagement-panel",R,F,n,V,r)};
GL=function(R,F,n,V,r,v,f,z){zL.call(this,R,F,n,V);this.zH=r;this.lZ=v;this.Z=z;this.JO=!0;this.J=null;this.W=PA(n.clientMetadata,"metadata_type_linked_player_bytes_layout_id");fR(this.lZ(),this);R=PA(n.clientMetadata,"metadata_type_ad_placement_config");this.LH=new py(n.NC,this.zH,R,n.layoutId)};
PXR=function(){var R=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];X8().forEach(function(F){R.push(F)});
return{N8:R,xq:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
dE=function(R,F,n,V,r,v,f,z){zL.call(this,R,F,n,V);this.zH=r;this.lZ=v;this.Z=z;this.JO=!0;this.J=null;this.W=PA(n.clientMetadata,"metadata_type_linked_player_bytes_layout_id");fR(this.lZ(),this);this.adPlacementConfig=PA(n.clientMetadata,"metadata_type_ad_placement_config");this.LH=new py(n.NC,this.zH,this.adPlacementConfig,n.layoutId)};
bJf=function(){var R=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];X8().forEach(function(F){R.push(F)});
return{N8:R,xq:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
ZJ6=function(R,F,n,V,r){this.JX=R;this.zH=F;this.lZ=n;this.T=V;this.cI=r};
ebe=function(R,F,n){this.JX=R;this.zH=F;this.T=n};
R3k=function(R,F,n,V,r){this.callback=R;this.slot=F;this.layout=n;this.zH=V;this.wp=r;R=PA(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.LH=new py(n.NC,this.zH,R,n.layoutId)};
FaV=function(){var R=["metadata_type_client_forecasting_ad_renderer"];X8().forEach(function(F){R.push(F)});
return{N8:R,xq:["LAYOUT_TYPE_FORECASTING"]}};
ntN=function(R,F,n,V,r){this.callback=R;this.slot=F;this.layout=n;this.zH=V;this.wp=r;R=PA(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.LH=new py(n.NC,this.zH,R,n.layoutId)};
My=function(R,F,n,V){this.WG=R;this.zH=F;this.wp=n;this.cI=V};
V8I=function(R,F){return MI(R.clientMetadata,"metadata_type_ad_info_ad_metadata")?PA(R.clientMetadata,"metadata_type_ad_info_ad_metadata"):F?{channelId:F.By,channelThumbnailUrl:F.profilePicture,channelTitle:F.author,videoTitle:F.title}:(Q2("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})};
rnR=function(R,F){return MI(R.clientMetadata,"metadata_ad_video_is_listed")?PA(R.clientMetadata,"metadata_ad_video_is_listed"):F?F.isListed:(Q2("No layout metadata nor AdPlayback specified for ad video isListed"),!1)};
vtJ=function(R,F,n,V){v5.call(this,"player-overlay-layout",R,{},n,V);this.videoAdDurationSeconds=F;this.interactionLoggingClientData=V};
lJ=function(R,F,n,V,r,v,f,z,q){zL.call(this,R,F,n,V);this.F2=r;this.zH=v;this.Z=f;this.W=z;this.WG=q;this.J=!1;this.X=PA(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
fCR=function(R){if(R.layout.renderingContent){var F;return(F=PA(R.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:F.current}return PA(R.layout.clientMetadata,"metadata_type_player_bytes_callback")};
Ny=function(R,F,n,V,r,v,f,z,q){zL.call(this,R,F,n,V);this.F2=r;this.zH=v;this.Z=f;this.W=z;this.WG=q;this.J=!1;this.X=PA(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
t8j=function(){return{N8:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],xq:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
EF=function(R){if(R.layout.renderingContent){var F;return(F=PA(R.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:F.current}return PA(R.layout.clientMetadata,"metadata_type_player_bytes_callback")};
z3W=function(R,F,n){v5.call(this,"ad-message",R,void 0,F,n)};
$l=function(R,F,n,V,r,v){zL.call(this,n,R,F,V);this.F2=r;this.WG=v};
qaE=function(){return{N8:["metadata_type_valid_ad_message_renderer"],xq:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
QhR=function(R,F,n,V){v5.call(this,"video-interstitial-buttoned-centered",R,F,n,V);this.interactionLoggingClientData=V};
PT=function(R,F,n,V,r){zL.call(this,R,F,n,V);R=PA(n.clientMetadata,"metadata_type_ad_placement_config");this.LH=new py(n.NC,r,R,n.layoutId)};
FR=function(R,F,n,V,r,v,f,z,q){return Yl(n,t8j())||n.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.A(n.renderingContent,bJ)!==void 0?new Ny(R,F,n,V,r,v,f,z,q):Yl(n,{N8:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],xq:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||n.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.A(n.renderingContent,ZX)!==void 0?
new lJ(R,F,n,V,r,v,f,z,q):Yl(n,EC9())||n.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.A(n.renderingContent,eq)!==void 0?new kl(R,F,n,V,v):Yl(n,qaE())?new $l(F,n,R,V,r,q):Yl(n,{N8:["metadata_type_instream_ad_player_overlay_renderer"],xq:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new OF(R,F,n,V,r,z):n.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.A(n.renderingContent,RT)!==void 0?new PT(R,F,n,V,v):null};
cnN=function(R,F,n,V,r,v){this.JX=R;this.F2=F;this.zH=n;this.U=V;this.T=r;this.WG=v};
nb=function(R){return!R.oldState.isPlaying()&&R.state.isPlaying()};
VB=function(R,F,n){return R<F?!1:n!=null?n<=F:R<=F+1};
r8=function(R,F,n,V,r,v,f,z,q){var Q=this;this.callback=R;this.slot=F;this.layout=n;this.F2=V;this.zH=r;this.WG=f;this.cI=z;this.Do=q;this.T=!1;R=PA(n.clientMetadata,"metadata_type_ad_placement_config");this.LH=new py(n.NC,this.zH,R,n.layoutId);var c;R=((c=PA(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:c.progressCommands)||[];this.U=new BT(v,R,n.layoutId,function(){return w5I(Q)*1E3})};
vH=function(R,F){R.T||(R.LH.Vc(F),R.T=!0)};
w5I=function(R){R.layout.renderingContent?(R=R.Do.get(),R=fb(R,1).GG/1E3):R=PA(R.layout.clientMetadata,"metadata_type_video_length_seconds");return R};
SaV=function(R,F,n,V,r,v){this.F2=R;this.zH=F;this.tJ=n;this.WG=V;this.cI=r;this.Do=v};
tQ=function(R){var F=[];if(R){R=g.m(Object.entries(R));for(var n=R.next();!n.done;n=R.next()){var V=g.m(n.value);n=V.next().value;V=V.next().value;V!==void 0&&(V=typeof V==="boolean"?""+ +V:(""+V).replace(/[:,=]/g,"_"),F.push(n+"."+V))}}return F.join(";")};
g.z$=function(R,F,n){F=F===void 0?{}:F;this.errorCode=R;this.details=F;this.severity=n===void 0?0:n};
qL=function(R){return R===1||R===2};
QB=function(R,F){F=F===void 0?0:F;if(R instanceof g.z$)return R;R=R&&R instanceof Error?R:Error(""+R);qL(F)?g.uX(R):g.mq(R);return new g.z$(F===1?"player.fatalexception":"player.exception",{name:""+R.name,message:""+R.message},F)};
La9=function(R,F){function n(){var V=g.Cq.apply(0,arguments);R.removeEventListener("playing",n);F.apply(null,g.I(V))}
R.addEventListener("playing",n)};
cH=function(){var R=g.WM("yt.player.utils.videoElement_");R||(R=g.gu("VIDEO"),g.h7("yt.player.utils.videoElement_",R));return R};
w8=function(R){var F=cH();return!!(F&&F.canPlayType&&F.canPlayType(R))};
Lb=function(R){if(/opus/.test(R)&&g.Sl&&!h$("38")&&!g.PC())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(R);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(R);if(/webm/.test(R)&&!$gJ())return!1;R==='audio/mp4; codecs="mp4a.40.2"'&&(R='video/mp4; codecs="avc1.4d401f"');return!!w8(R)};
sh_=function(R){try{var F=Lb('video/mp4; codecs="avc1.42001E"')||Lb('video/webm; codecs="vp9"');return(Lb('audio/mp4; codecs="mp4a.40.2"')||Lb('audio/webm; codecs="opus"'))&&(F||!R)||w8('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(n){return"html5.missingapi"}};
sy=function(){var R=cH();return!(!R.webkitSupportsPresentationMode||typeof R.webkitSetPresentationMode!=="function")};
pb=function(){var R=cH();try{var F=R.muted;R.muted=!F;return R.muted!==F}catch(n){}return!1};
p5R=function(){var R;return((R=navigator.connection)==null?void 0:R.type)||""};
g.AQ=function(){Ow.apply(this,arguments)};
aT=function(R,F,n,V,r,v,f,z){this.sampleRate=R===void 0?0:R;this.numChannels=F===void 0?0:F;this.spatialAudioType=n===void 0?"SPATIAL_AUDIO_TYPE_NONE":n;this.T=V===void 0?!1:V;this.N=r;this.J=v;this.audioQuality=f===void 0?"AUDIO_QUALITY_UNKNOWN":f;this.U=z===void 0?!1:z};
aCf=function(R,F){$K(R,2,F.Qm,Cb,3);$K(R,3,F.innertubeRequest,X5j,3);N0(R,4,F.onesieUstreamerConfig);N0(R,9,F.xr);$K(R,10,F.s5,T$,3);$K(R,15,F.reloadPlaybackParams,Anf,3);EE(R,18,F.iCX)};
T_J=function(R,F){$K(R,1,F.formatId,oT,3);M0(R,2,F.startTimeMs);M0(R,3,F.durationMs);M0(R,4,F.oI);M0(R,5,F.GI);$K(R,9,F.f45,CsJ,3);$K(R,11,F.psX,yB,1);$K(R,12,F.P9,yB,1)};
otW=function(R,F){EE(R,1,F.videoId);M0(R,2,F.lmt)};
CsJ=function(R,F){if(F.ZA)for(var n=0;n<F.ZA.length;n++)$K(R,1,F.ZA[n],otW,3)};
oT=function(R,F){M0(R,1,F.itag);M0(R,2,F.lmt);EE(R,3,F.xtags)};
Uy=function(R){return{itag:OE(R,1),lmt:OE(R,2),xtags:iA(R,3)}};
yB=function(R,F){M0(R,1,F.startTicks);M0(R,2,F.EC);M0(R,3,F.timescale)};
jl=function(R){return{startTicks:OE(R,1),EC:OE(R,2),timescale:OE(R,3)}};
yne=function(R,F){M0(R,1,F.defaultPolicy);M0(R,2,F.smooth);M0(R,3,F.visibility);M0(R,4,F.xv);M0(R,5,F.performance);M0(R,6,F.speed)};
jhV=function(R,F){if(F.authorizedFormats)for(var n=0;n<F.authorizedFormats.length;n++)$K(R,1,F.authorizedFormats[n],UBk,1);N0(R,2,F.sabrLicenseConstraint)};
UBk=function(R,F){M0(R,1,F.trackType);lA(R,2,F.isHdr)};
Cb=function(R,F){M0(R,13,F.timeSinceLastManualFormatSelectionMs);var n=F.lastManualDirection;n!==void 0&&(dN(R,112),dN(R,n<<1^n>>31));M0(R,16,F.WQo);M0(R,17,F.detailedNetworkType);M0(R,18,F.W0);M0(R,19,F.QA);M0(R,21,F.pt5);M0(R,23,F.dc);M0(R,28,F.nF);M0(R,29,F.PIG);M0(R,34,F.visibility);n=F.playbackRate;if(n!==void 0){var V=new ArrayBuffer(4);(new Float32Array(V))[0]=n;n=(new Uint32Array(V))[0];if(n!==void 0)for(dN(R,285),Gy(R,4),V=0;V<4;)R.view.setUint8(R.pos,n&255),n>>=8,R.pos+=1,V+=1}M0(R,36,F.qW);
$K(R,38,F.mediaCapabilities,HGW,3);M0(R,39,F.w6H);M0(R,40,F.di);M0(R,44,F.playerState);lA(R,46,F.I0);M0(R,48,F.oe);M0(R,50,F.GR);M0(R,51,F.j5);M0(R,54,F.NE);if(F.DA)for(n=0;n<F.DA.length;n++)M0(R,55,F.DA[n]);lA(R,56,F.us2);M0(R,57,F.o0);lA(R,58,F.Yr);M0(R,59,F.Fb);M0(R,60,F.jI);lA(R,61,F.isPrefetch);M0(R,62,F.sQ);N0(R,63,F.sabrLicenseConstraint);M0(R,64,F.FQH);M0(R,66,F.ltH);M0(R,67,F.rnZ);M0(R,68,F.vFG);EE(R,69,F.audioTrackId);lA(R,71,F.Ok);$K(R,72,F.imX,yne,1);M0(R,73,F.hs);M0(R,74,F.wM);M0(R,75,
F.Pd);M0(R,76,F.EwH);$K(R,79,F.Ur,jhV,3);M0(R,80,F.t8)};
HGW=function(R,F){if(F.videoFormatCapabilities)for(var n=0;n<F.videoFormatCapabilities.length;n++)$K(R,1,F.videoFormatCapabilities[n],h3f,1);if(F.audioFormatCapabilities)for(n=0;n<F.audioFormatCapabilities.length;n++)$K(R,2,F.audioFormatCapabilities[n],WaR,1);$K(R,4,F.perPlaybackAttributes,usI,3);M0(R,5,F.hdrModeBitmask)};
h3f=function(R,F){M0(R,1,F.videoCodec);lA(R,2,F.efficient);M0(R,3,F.maxHeight);M0(R,4,F.maxWidth);M0(R,11,F.maxFramerate);M0(R,12,F.maxBitrateBps);lA(R,15,F.is10BitSupported)};
WaR=function(R,F){M0(R,1,F.audioCodec);M0(R,2,F.numChannels);M0(R,3,F.maxBitrateBps);M0(R,6,F.spatialCapabilityBitmask)};
usI=function(R,F){if(F.itagDenylist)for(var n=0;n<F.itagDenylist.length;n++)M0(R,1,F.itagDenylist[n])};
T$=function(R,F){$K(R,1,F.clientInfo,B_J,3);N0(R,2,F.UH);N0(R,3,F.playbackCookie);N0(R,4,F.xr);if(F.y9)for(var n=0;n<F.y9.length;n++)$K(R,5,F.y9[n],mBk,3);if(F.LG)for(n=0;n<F.LG.length;n++)M0(R,6,F.LG[n]);EE(R,7,F.d22);$K(R,8,F.RM,gtf,3)};
OG9=function(R,F){M0(R,1,F.np5);M0(R,2,F.VjH)};
ICj=function(R,F){var n=F.code;n!==void 0&&(dN(R,8),dN(R,n<<1^n>>31));EE(R,2,F.message)};
KaN=function(R,F){M0(R,1,F.clientState);$K(R,2,F.LEX,OG9,1)};
gtf=function(R,F){N0(R,1,F.Ywq);$K(R,2,F.nSX,ICj,3);$K(R,3,F.coldStartInfo,KaN,3)};
mBk=function(R,F){M0(R,1,F.type);N0(R,2,F.value)};
B_J=function(R,F){EE(R,1,F.hl);EE(R,12,F.deviceMake);EE(R,13,F.deviceModel);M0(R,16,F.clientName);EE(R,17,F.clientVersion);EE(R,18,F.osName);EE(R,19,F.osVersion)};
DB6=function(R,F){EE(R,1,F.name);EE(R,2,F.value)};
HH=function(R,F){EE(R,1,F.url);if(F.Gp)for(var n=0;n<F.Gp.length;n++)$K(R,2,F.Gp[n],DB6,3);N0(R,3,F.postBody);lA(R,4,F.f7S);lA(R,6,F.JT)};
X5j=function(R,F){N0(R,2,F.R0);N0(R,5,F.encryptedClientKey);N0(R,6,F.iv);N0(R,7,F.v4);lA(R,10,F.e2S);lA(R,13,F.VQ);lA(R,14,F.VA);N0(R,16,F.vwG);lA(R,17,F.u7H)};
iGf=function(R){return{D6:OE(R,1),httpStatus:OE(R,2),body:Dm(R,4)}};
Anf=function(R,F){EE(R,1,F.token)};
xBj=function(R){return{token:iA(R,1)}};
ke9=function(R){for(var F=[],n;n=iA(R,1);)F.push(n);return{url:F.length?F:void 0}};
YaE=function(R){return{PY:OE(R,1),ymq:OE(R,2)}};
dBj=function(R,F){$K(R,1,F.Qm,Cb,3);if(F.yX)for(var n=0;n<F.yX.length;n++)$K(R,2,F.yX[n],oT,3);if(F.jB)for(n=0;n<F.jB.length;n++)$K(R,3,F.jB[n],T_J,3);N0(R,5,F.videoPlaybackUstreamerConfig);if(F.mp)for(n=0;n<F.mp.length;n++)$K(R,6,F.mp[n],JnI,3);if(F.qr)for(n=0;n<F.qr.length;n++)$K(R,16,F.qr[n],oT,3);if(F.Vf)for(n=0;n<F.Vf.length;n++)$K(R,17,F.Vf[n],oT,3);if(F.rl)for(n=0;n<F.rl.length;n++)$K(R,18,F.rl[n],oT,3);$K(R,19,F.s5,T$,3);$K(R,21,F.Xd,hQ,3);M0(R,22,F.Mn);M0(R,23,F.bV);if(F.Sj)for(n=0;n<F.Sj.length;n++)$K(R,
24,F.Sj[n],hQ,3);N0(R,25,F.DX5);if(F.QF)for(n=0;n<F.QF.length;n++)$K(R,1E3,F.QF[n],GeN,3)};
JnI=function(R,F){$K(R,1,F.formatId,oT,3);M0(R,2,F.VN);M0(R,3,F.sequenceNumber);$K(R,4,F.QK,yB,1);M0(R,5,F.yR);M0(R,6,F.fN)};
hQ=function(R,F){if(F.UM)for(var n=0;n<F.UM.length;n++)EE(R,1,F.UM[n]);N0(R,2,F.adsConfig);EE(R,3,F.jP);M0(R,4,F.Xt);M0(R,5,F.bD);EE(R,6,F.ZY);EE(R,7,F.cuepointId);M0(R,8,F.DN)};
GeN=function(R,F){if(F.yX)for(var n=0;n<F.yX.length;n++)$K(R,1,F.yX[n],oT,3);if(F.jB)for(n=0;n<F.jB.length;n++)$K(R,2,F.jB[n],T_J,3);EE(R,3,F.clipId)};
g.WH=function(R,F){$K(R,1,F.Qm,Cb,3);N0(R,3,F.videoPlaybackUstreamerConfig);$K(R,5,F.s5,T$,3);$K(R,6,F.Xd,hQ,3)};
M8R=function(R){return{type:OE(R,1)}};
lCE=function(R,F){EE(R,1,F.clientPlaybackNonce);N0(R,2,F.serializedPlaybackPingContextData)};
$Bv=function(R,F){EE(R,1,F.cpn);M0(R,2,F.sequenceNumber);EE(R,3,F.serializedWatchEndpointLoggingContext);if(F.decoderInfo)for(var n=0;n<F.decoderInfo.length;n++)$K(R,6,F.decoderInfo[n],N_j,3);EE(R,9,F.playerResponseCpn);M0(R,10,F.transitionStitchType);EE(R,11,F.qoePingUrl);M0(R,12,F.timestampOffsetMsecs);M0(R,15,F.remoteControlMode);if(F.remoteConnectedDevices)for(n=0;n<F.remoteConnectedDevices.length;n++)$K(R,16,F.remoteConnectedDevices[n],Etf,3);N0(R,17,F.serializedHouseBrandPlayerServiceLoggingContext);
if(F.serializedQoeContextData)for(n=0;n<F.serializedQoeContextData.length;n++)N0(R,19,F.serializedQoeContextData[n])};
N_j=function(R,F){M0(R,1,F.elapsedTimeMs);EE(R,3,F.videoDecoderName)};
Etf=function(R,F){M0(R,1,F.deviceInterface);EE(R,2,F.deviceVersion);lA(R,3,F.isSleeping)};
bGJ=function(R){return{J0:xK(R,1,PsV),trackType:OE(R,2),QB:OE(R,3),timeRange:xK(R,4,jl),tileContext:iA(R,5)}};
PsV=function(R){return{type:OE(R,1),event:OE(R,2),K8Z:I7(R,3),ih:I7(R,4),z4:iA(R,5),identifier:iA(R,6),oI:OE(R,9)}};
ZG_=function(R){return{first:OE(R,1),Lz:OE(R,2)}};
e3e=function(R){return{bitrate:OE(R,6),width:OE(R,7),height:OE(R,8),fps:OE(R,25),averageBitrate:OE(R,31),audioSampleRate:OE(R,45),audioChannels:OE(R,46),qualityOrdinal:OE(R,56)}};
uT=function(R){return{itagDenylist:kK(R,1)}};
RMk=function(R){return{Vf1:KV(R,1),Qi5:OE(R,2),LqG:KV(R,3),HZ2:I7(R,4),cryptoPeriodIndex:OE(R,5),sgZ:OE(R,6),H$2:OE(R,7)}};
Vxk=function(R){return{Zm2:OE(R,1),itag:iA(R,3),fT:xK(R,4,Fze),lmt:OE(R,5),r_z:OE(R,7),xtags:iA(R,15),Vnq:xK(R,23,nH9),KR:xK(R,34,uT)}};
Fze=function(R){return{iv:Dm(R,5),Tg1:KV(R,7)}};
reI=function(R){return{DT:kK(R,2),videoId:iA(R,3),I7:OE(R,4)}};
nH9=function(R){return{videoId:iA(R,2)}};
vHk=function(R){return{gF:OE(R,3),L3:OE(R,4),SG:OE(R,5),Sw2:KV(R,8),siX:OE(R,10),v$:OE(R,12),Cp:OE(R,13),FH:OE(R,14),Kp:OE(R,15),X1:OE(R,16)}};
fzJ=function(R){return{targetAudioReadaheadMs:OE(R,1),targetVideoReadaheadMs:OE(R,2),backoffTimeMs:OE(R,4),playbackCookie:Dm(R,7),videoId:iA(R,8)}};
txf=function(R){return{minBandwidthBytesPerSec:OE(R,1),minReadaheadMs:OE(R,2)}};
zMN=function(R){return{startMinReadaheadPolicy:YK(R,1,txf),resumeMinReadaheadPolicy:YK(R,2,txf)}};
qq_=function(R){return{label:iA(R,1),text:iA(R,2)}};
Qtk=function(R){return{videoId:iA(R,1),formatId:xK(R,2,Uy),debugInfo:YK(R,3,qq_)}};
cek=function(R){return{J$:YK(R,1,Qtk)}};
wPN=function(R){return{EA:OE(R,1),uV:OE(R,2),minReadaheadMs:OE(R,3)}};
SqV=function(R){return{Ts:OE(R,1),items:YK(R,2,wPN),RY:OE(R,3)}};
Lz6=function(R){return{token:iA(R,1),videoId:iA(R,2)}};
st9=function(R){return{ag:OE(R,1)}};
pPf=function(R){return{sI:iA(R,1),action:OE(R,2),dB:xK(R,3,st9)}};
BH=function(R){return{D2:OE(R,1),F4:OE(R,2),seekSource:OE(R,3)}};
XPv=function(R){return{j$:xK(R,2,jl),cpn:iA(R,5),loggingMetadata:Dm(R,6),T4:xK(R,7,jl),U7:OE(R,8),wJ:KV(R,9)}};
AeW=function(R){return{dPS:YK(R,1,XPv)}};
azJ=function(R){return{metadata:YK(R,1,AeW),trackType:OE(R,2)}};
CN9=function(R,F){M0(R,1,F.id);EE(R,2,F.url)};
TrR=function(R,F){M0(R,1,F.id);EE(R,2,F.name);M0(R,3,F.resourceId);M0(R,4,F.line);M0(R,5,F.column)};
oH_=function(R,F){M0(R,1,F.id);M0(R,2,F.timestampMs);M0(R,3,F.stackId)};
yev=function(R,F){M0(R,1,F.id);M0(R,2,F.frameId);M0(R,3,F.parentId)};
UOv=function(R,F){if(F.resources)for(var n=0;n<F.resources.length;n++)$K(R,1,F.resources[n],CN9,3);if(F.frames)for(n=0;n<F.frames.length;n++)$K(R,2,F.frames[n],TrR,3);if(F.samples)for(n=0;n<F.samples.length;n++)$K(R,3,F.samples[n],oH_,1);if(F.stacks)for(n=0;n<F.stacks.length;n++)$K(R,4,F.stacks[n],yev,1)};
H59=function(R){return Object.values(jt6).includes(R)};
iT=function(R,F,n,V,r,v,f,z,q,Q){this.width=R;this.height=F;this.U=z;this.quality=v||mG(R,F);this.qualityOrdinal=g.g8[this.quality];this.fps=n||0;this.stereoLayout=!r||V!=null&&V!=="UNKNOWN"&&V!=="RECTANGULAR"?0:r;this.projectionType=V?V==="EQUIRECTANGULAR"&&r===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":V:"UNKNOWN";(R=f)||(R=g.g8[this.quality],R===0?R="Auto":(F=this.fps,n=this.projectionType,R=R.toString()+(n==="EQUIRECTANGULAR"||n==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||n==="MESH"?"s":"p")+(F>55?"60":
F>49?"50":F>39?"48":"")));this.qualityLabel=R;this.T=q||"";this.primaries=Q||""};
mG=function(R,F){var n=Math.max(R,F);R=Math.min(R,F);F=xQ[0];for(var V=0;V<xQ.length;V++){var r=xQ[V],v=g.g8[r];if(n>=Math.floor(v*16/9)*1.3||R>=v*1.3)return F;F=r}return"tiny"};
JQ=function(R,F,n){n=n===void 0?{}:n;this.id=R;this.mimeType=F;n.yz>0||(n.yz=16E3);Object.assign(this,n);R=g.m(this.id.split(";"));this.itag=R.next().value;this.T=R.next().value;this.containerType=kQ(F);this.x5=YQ[this.itag]||""};
G$=function(R){return R.x5==="9"||R.x5==="("||R.x5==="9h"||R.x5==="(h"};
hM6=function(R){return R.x5==="H"||R.x5==="h"};
d8=function(R){return R.x5==="9h"||R.x5==="(h"};
Wzk=function(R){return!!R.lL&&!!R.lL.fairplay&&(R.x5==="("||R.x5==="(h"||R.x5==="A"||R.x5==="MEAC3")||ML&&!!R.lL&&R.x5==="1e"};
lT=function(R){return R.x5==="1"||R.x5==="1h"||ML&&R.x5==="1e"};
NL=function(R){return R.x5==="mac3"||R.x5==="meac3"||R.x5==="m"||R.x5==="i"||uU6(R)};
uU6=function(R){return R.x5==="MAC3"||R.x5==="MEAC3"||R.x5==="M"||R.x5==="I"};
g.Ey=function(R){return R.containerType===1};
Brj=function(R){return R.x5==="("||R.x5==="(h"||R.x5==="H"||ML&&R.x5==="1e"};
$Q=function(R){return R.mimeType==="application/x-mpegURL"};
g.PH=function(R,F){return{itag:+R.itag,lmt:F?0:R.lastModified,xtags:R.T||""}};
mOW=function(R){var F=navigator.mediaCapabilities;if(F==null||!F.decodingInfo||R.x5==="f")return Promise.resolve();var n={type:R.audio&&R.video?"file":"media-source"};R.video&&(n.video={contentType:R.mimeType,width:R.video.width||640,height:R.video.height||360,bitrate:R.yz*8||1E6,framerate:R.video.fps||30});R.audio&&(n.audio={contentType:R.mimeType,channels:""+(R.audio.numChannels||2),bitrate:R.yz*8||128E3,samplerate:R.audio.sampleRate||44100});return F.decodingInfo(n).then(function(V){R.U=V})};
bT=function(R){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(R)};
Z8=function(R){return/(vp9|vp09|vp8|avc1|av01|av02)/.test(R)};
el=function(R){return R.includes("vtt")||R.includes("text/mp4")};
kQ=function(R){return R.indexOf("/mp4")>=0?1:R.indexOf("/webm")>=0?2:R.indexOf("/x-flv")>=0?3:R.indexOf("/vtt")>=0?4:0};
Ri=function(R,F,n,V,r,v,f){var z=new aT;F in g.g8||(F="small");F==="light"&&(F="tiny");V&&r?(r=Number(r),V=Number(V)):(r=g.g8[F],V=Math.round(r*16/9));v=new iT(V,r,0,null,void 0,F,v,f);R=unescape(R.replace(/&quot;/g,'"'));return new JQ(n,R,{audio:z,video:v})};
Fn=function(R,F){return{start:function(n){return R[n]},
end:function(n){return F[n]},
length:R.length}};
gHW=function(R,F,n){for(var V=[],r=[],v=0;v<R.length;v++)V.push(R.start(v)),r.push(R.end(v));V.push(F);r.push(n);V.sort(function(f,z){return f-z});
r.sort(function(f,z){return f-z});
return Fn(V,r)};
n6=function(R,F,n){F=F===void 0?",":F;n=n===void 0?R?R.length:0:n;var V=[];if(R)for(n=Math.max(R.length-n,0);n<R.length;n++)V.push(R.start(n).toFixed(3)+"-"+R.end(n).toFixed(3));return V.join(F)};
V4=function(R,F){if(!R)return-1;try{for(var n=0;n<R.length;n++)if(R.start(n)<=F&&R.end(n)>=F)return n}catch(V){}return-1};
rl=function(R,F){return V4(R,F)>=0};
O5W=function(R,F){if(!R)return NaN;F=V4(R,F);return F>=0?R.start(F):NaN};
vz=function(R,F){if(!R)return NaN;F=V4(R,F);return F>=0?R.end(F):NaN};
f6=function(R){return R&&R.length?R.end(R.length-1):NaN};
tz=function(R){return f6(R)>0};
zr=function(R,F){R=vz(R,F);return R>=0?R-F:0};
q5=function(R,F,n){for(var V=[],r=[],v=0;v<R.length;v++)R.end(v)<F||R.start(v)>n||(V.push(Math.max(F,R.start(v))-F),r.push(Math.min(n,R.end(v))-F));return Fn(V,r)};
Q4=function(R,F,n,V){g.fG.call(this);var r=this;this.En=R;this.start=F;this.end=n;this.isActive=V;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.iA={error:function(){!r.Zo()&&r.isActive&&r.publish("error",r)},
updateend:function(){!r.Zo()&&r.isActive&&r.publish("updateend",r)}};
this.En.WA(this.iA);this.Vd=this.isActive};
wl=function(R,F,n,V,r,v){g.fG.call(this);var f=this;this.Sn=R;this.w2=F;this.id=n;this.containerType=V;this.x5=r;this.EY=v;this.e3=this.kX=this.qL=null;this.nK=!1;this.appendWindowStart=this.timestampOffset=0;this.lT=Fn([],[]);this.UO=!1;this.ij=[];this.N4=cz?[]:void 0;this.handler=function(q){return f.publish(q.type,f)};
var z;if((z=this.Sn)==null?0:z.addEventListener)this.Sn.addEventListener("updateend",this.handler),this.Sn.addEventListener("error",this.handler)};
SL=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
L6=function(R,F){this.jn=R;this.T=F===void 0?!1:F;this.U=!1};
s8=function(R,F,n){n=n===void 0?!1:n;g.G.call(this);this.mediaElement=R;this.IG=F;this.isView=n;this.Z=0;this.J=!1;this.W=!0;this.UZ=0;this.callback=null;this.V=!1;this.IG||(this.w2=this.mediaElement.Fs());this.events=new g.AQ(this);g.d(this,this.events);this.N=new L6(this.IG?window.URL.createObjectURL(this.IG):this.w2.webkitMediaSourceURL,!0);R=this.IG||this.w2;Ix(this.events,R,["sourceopen","webkitsourceopen"],this.xLH);Ix(this.events,R,["sourceclose","webkitsourceclose"],this.uGH);this.X={updateend:this.Ux}};
Izk=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
KzJ=function(R,F){p6(R)?g.mt(function(){F(R)}):R.callback=F};
DO6=function(R,F,n){if(Xn){var V;Az(R.mediaElement,{l:"mswssb",sr:(V=R.mediaElement.vG)==null?void 0:V.K5()},!1);F.WA(R.X,R);n.WA(R.X,R)}R.T=F;R.U=n;g.d(R,F);g.d(R,n)};
ai=function(R){return!!R.T||!!R.U};
p6=function(R){try{return C6(R)==="open"}catch(F){return!1}};
C6=function(R){if(R.IG)return R.IG.readyState;switch(R.w2.webkitSourceState){case R.w2.SOURCE_OPEN:return"open";case R.w2.SOURCE_ENDED:return"ended";default:return"closed"}};
Tr=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource};
i5j=function(R,F,n,V){if(!R.T||!R.U)return null;var r=R.T.isView()?R.T.En:R.T,v=R.U.isView()?R.U.En:R.U,f=new s8(R.mediaElement,R.IG,!0);f.N=R.N;DO6(f,new Q4(r,F,n,V),new Q4(v,F,n,V));p6(R)||R.T.I2(R.T.qC());return f};
xOv=function(R){var F;(F=R.T)==null||F.EL();var n;(n=R.U)==null||n.EL();R.W=!1};
oi=function(){var R=this;this.xs=this.iy=NeN;this.promise=new g.OZ(function(F,n){R.iy=F;R.xs=n})};
y4=function(){g.G.call(this);this.TL=!1;this.jn=null;this.V=this.X=!1;this.J=new g.TC;this.Z=this.vG=null;g.d(this,this.J)};
U8=function(R){R=R.Dr();return R.length<1?NaN:R.end(R.length-1)};
kFR=function(R){!R.U&&Izk()&&(R.N?R.N.then(function(){return kFR(R)}):R.Eq()||(R.U=R.Hy()))};
Yqf=function(R){R.U&&(R.U.dispose(),R.U=void 0)};
Az=function(R,F,n){var V;((V=R.vG)==null?0:V.CC())&&R.vG.m2("rms",F,n===void 0?!1:n)};
JeN=function(R,F,n){R.isPaused()||R.getCurrentTime()>F||n>10||(R.play(),g.ak(function(){JeN(R,R.getCurrentTime(),n+1)},500))};
GFJ=function(R,F){R.jn&&R.jn.equals(F)||(R.jn&&R.jn.dispose(),R.jn=F)};
jL=function(R){return zr(R.vB(),R.getCurrentTime())};
dOf=function(R,F){if(R.Is()===0||R.hasError())return!1;var n=R.getCurrentTime()>0;return F>=0&&(R=R.Dr(),R.length||!n)?rl(R,F):n};
Hz=function(R){R.Eq()&&(R.vG&&R.vG.kp("rs_s"),lV&&R.getCurrentTime()>0&&R.seekTo(0),R.b6(),R.load(),GFJ(R,null));delete R.N};
hz=function(R){switch(R.T_()){case 2:return"progressive.net.retryexhausted";case 3:return R=R.xk(),(R==null?0:R.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||MxI&&(R==null?0:R.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.Wz=function(R,F,n){this.z_=F===void 0?null:F;this.seekSource=n===void 0?null:n;this.state=R||64};
u_=function(R,F,n){n=n===void 0?!1:n;return lzk(R,F.getCurrentTime(),(0,g.h1)(),jL(F),n)};
Bz=function(R,F,n,V){if(!(F===R.state&&n===R.z_&&V===R.seekSource||F!==void 0&&(F&128&&!n||F&2&&F&16))){var r;if(r=F)r=F||R.state,r=!!(r&16||r&32);R=new g.Wz(F,n,r?V?V:R.seekSource:null)}return R};
mZ=function(R,F,n){return Bz(R,R.state|F,null,n===void 0?null:n)};
gl=function(R,F){return Bz(R,R.state&~F,null,null)};
O8=function(R,F,n,V){return Bz(R,(R.state|F)&~n,null,V===void 0?null:V)};
g.E=function(R,F){return!!(R.state&F)};
g.Ii=function(R,F){return F.state===R.state&&F.z_===R.z_};
K6=function(R){return R.isPlaying()&&!g.E(R,16)&&!g.E(R,32)};
DD=function(R){return g.E(R,128)?-1:g.E(R,2)?0:g.E(R,2048)?3:g.E(R,64)?-1:g.E(R,1)&&!g.E(R,32)?3:g.E(R,8)?1:g.E(R,4)?2:-1};
xu=function(R,F,n,V,r,v,f,z,q,Q,c,w,L,S,p,C){g.G.call(this);var y=this;this.cU=R;this.slot=F;this.layout=n;this.zH=V;this.cI=r;this.Do=v;this.F2=f;this.tX=z;this.tJ=q;this.ym=Q;this.position=w;this.J=L;this.WG=S;this.F1=p;this.context=C;this.JO=!0;this.N=!1;this.Tu="not_rendering";this.T=!1;R=PA(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.LH=new py(n.NC,this.zH,R,n.layoutId);var u;R=((u=i_(this))==null?void 0:u.progressCommands)||[];this.U=new BT(q,R,n.layoutId,function(){return y.gC()})};
i_=function(R){return PA(R.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
Nrj=function(R){Q2("Received layout exit signal when not in layout exit flow.",R.slot,R.layout)};
EHj=function(R){var F;return((F=fb(R.Do.get(),2))==null?void 0:F.clientPlaybackNonce)||""};
$O_=function(R,F){switch(F){case "normal":R.Vc("complete");break;case "skipped":R.Vc("skip");break;case "abandoned":oB(R.LH,"impression")&&R.Vc("abandon")}};
PNE=function(R,F){R.N||(F=new g.cP(F.state,new g.Wz),R.N=!0);return F};
b5W=function(R,F){nb(F)?R.ym(1):g.Sx(F,4)&&!g.Sx(F,2)&&R.OE();wr(F,4)<0&&!(wr(F,2)<0)&&R.iB()};
Z5J=function(R){R.position===0&&(R.tX.get(),R=PA(R.layout.clientMetadata,"metadata_type_ad_placement_config").kind,R={adBreakType:ku(R)},uj("ad_bl"),g.B8(R))};
Yu=function(R,F){Cy(R.LH,F,!R.T)};
Rtj=function(R){var F;return(((F=i_(R))==null?void 0:F.progressCommands)||[]).findIndex(function(n){return!!g.A(n==null?void 0:n.command,eMe)})!==-1};
g.Jz=function(R,F,n){gV(R,n)||IV(R,F,n);gV(R,"video_to_ad")||IV(R,F,"video_to_ad");gV(R,"ad_to_video")||IV(R,F,"ad_to_video");gV(R,"ad_to_ad")||IV(R,F,"ad_to_ad")};
Gr=function(R){xu.call(this,R.cU,R.slot,R.hm,R.zH,R.cI,R.Do,R.F2,R.tX,R.tJ,R.ym,R.Qu,R.lr,R.w1,R.WG,R.F1,R.context);var F=this;this.wL=!0;this.dj=this.j7=0;this.gk=bY(function(){F.cU.cT(F.slot,F.layout)});
this.hX=R.hX;this.Qu=R.Qu;this.QE=bY(function(){F.Tu!=="rendering_stop_requested"&&F.Qu(F);F.layoutExitReason?F.cU.dW(F.slot,F.layout,F.layoutExitReason):Nrj(F)});
this.timer=new g.Yv(200);this.timer.listen("tick",function(){F.M5()});
g.d(this,this.timer)};
Fck=function(R){R.dj=Date.now();dl(R,R.j7);R.timer.start()};
dl=function(R,F){F={current:F/1E3,duration:R.gC()/1E3};R.hX.get().b7("onAdPlaybackProgress",F)};
N5=function(R){xu.call(this,R.callback,R.slot,R.hm,R.zH,R.cI,R.Do,R.F2,R.tX,R.tJ,R.ym,R.Qu,R.lr,R.w1,R.WG,R.F1,R.context);var F=this;this.adCpn="";this.hF=this.tB=0;this.gk=bY(function(){F.cU.cT(F.slot,F.layout)});
this.QE=bY(function(){F.Tu!=="rendering_stop_requested"&&F.Qu(F);F.layoutExitReason?F.cU.dW(F.slot,F.layout,F.layoutExitReason):Nrj(F)});
this.eJ=R.eJ;this.DO=R.DO;this.wW=R.wW;this.hX=R.hX;this.MP=R.MP;this.Qu=R.Qu;kA(this.WG.get(),"html5_disable_media_load_timeout")||(this.hg=new g.ZK(function(){F.Ue("load_timeout",new ED("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4));
R=M5(this.WG.get());var n=l_(this.WG.get());R&&n&&(this.Y9=new g.ZK(function(){var V=PA(F.layout.clientMetadata,"metadata_type_preload_player_vars");V&&F.DO.get().K.preloadVideoByPlayerVars(V,2,300)}))};
nyR=function(R){return new Gr(Object.assign({},R,{cU:R.callback,ym:function(){}}))};
VBf=function(R){return new N5(Object.assign({},R,{ym:function(F){R.hX.get().b7("onAdIntroStateChange",F)}}))};
rsR=function(R){return new N5(Object.assign({},R,{ym:function(F){R.hX.get().mR(F)}}))};
vyV=function(R){for(var F=R.hm,n=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],V=g.m(X8()),r=V.next();!r.done;r=V.next())n.push(r.value);if(Yl(F,{N8:n,xq:["LAYOUT_TYPE_MEDIA_BREAK"]}))return nyR(R);F=R.hm;n=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];V=g.m(X8());for(r=V.next();!r.done;r=V.next())n.push(r.value);if(Yl(F,{N8:n,xq:["LAYOUT_TYPE_MEDIA"]}))return MI(R.hm.clientMetadata,"metadata_type_ad_intro")?VBf(R):rsR(R)};
E8=function(R,F,n,V,r,v,f,z,q,Q,c,w,L,S){g.G.call(this);this.callback=R;this.Do=F;this.SB=n;this.DO=V;this.F2=r;this.Q7=v;this.tX=f;this.cq=z;this.slot=q;this.layout=Q;this.P_=c;this.wp=w;this.lZ=L;this.WG=S;this.JO=!0;this.g6=!1;this.Py=[];this.IV=-1;this.UA=!1};
$u=function(R){return R.Py[R.IV]};
b_=function(R,F,n){var V=$u(R);R.IV===R.Py.length-1&&Q2("Unexpected skip with target requested during the last sublayout");if(n.renderingContent===void 0&&n.layoutId!==Pz(V,F,n)){Q2("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",V.kF(),V.iS(),{requestingSlot:F,requestingLayout:n});var r=!1}else r=!0;if(r){a:{if((r=PA(V.iS().clientMetadata,"metadata_type_ad_pod_skip_target"))&&r>0&&r<R.Py.length){b:{for(var v=r;v<R.Py.length;){if(r===PA(R.Py[v].iS().clientMetadata,
"metadata_type_ad_pod_skip_index")){r=v;break b}v++}r=void 0}if(r===void 0)Q2("Skip-to-index was requested but target index was not found",V.kF(),V.iS(),{requestingSlot:F,requestingLayout:n});else{F=r;break a}}else Q2("Invalid ad pod skip target index",V.kF(),V.iS(),{requestingSlot:F,requestingLayout:n});F=void 0}F!==void 0&&fav(R,V.kF(),V.iS(),F)}};
Pz=function(R,F,n){var V=PA(R.iS().clientMetadata,"metadata_type_linked_in_player_layout_id");return V?V:(Q2("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",R.kF(),R.iS(),{requestingSlot:F,requestingLayout:n}),null)};
eL=function(R,F,n,V){tBe(R,F,n,V,function(){ZD(R,R.IV+1)})};
fav=function(R,F,n,V){tBe(R,F,n,"skipped",function(){ZD(R,V)})};
tBe=function(R,F,n,V,r){if(!R.UA){var v=$u(R);v?(v.iS().layoutId!==n.layoutId&&Q2("SubLayout mismatch in exitSubLayout",F,n,{exitingSubLayout:n.layoutId,activeSubLayout:v.iS().layoutId}),R.UA=!0,v.wu(v.iS(),V),GMW(R.cq,F,n,V),R.UA=!1,R.lR?(R.lR(),RU(R.tX.get())):r()):Q2("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",F,n)}};
ZD=function(R,F){if(R.IV===R.Py.length-1)R.IV++,FB(R.wp,R.layout),RU(R.tX.get());else a:{if(R.IV===-1&&(R.callback.cT(R.slot,R.layout),F>0)){Q2("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",R.slot,R.layout,{indexToPlay:F,layoutId:R.layout.layoutId});break a}R.IV=F;F=$u(R);if(R.IV>0){var n=R.tX.get();n.U=!1;var V={};n.T&&n.videoId&&(V.cttAuthInfo={token:n.T,videoId:n.videoId});mc("ad_to_ad",V)}n=g.A(F.iS().renderingContent,eq);if(n==null?0:n.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var r;
n=!((r=R.Q7.get().vSH.get(n.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&r)}else n=!1;n?ZD(R,R.IV+1):F.startRendering(F.iS())}};
zt9=function(R){(R=$u(R))&&R.z7()};
qIR=function(R){return new E8(R.lNS,R.Do,R.SB,R.DO,R.F2,R.Q7,R.tX,R.cq,R.slot,R.layout,R.P_,R.wp,R.lZ,R.WG)};
nf=function(R,F,n,V,r,v,f){g.G.call(this);this.callback=R;this.DO=F;this.F2=n;this.tX=V;this.lI=r;this.lZ=v;this.WG=f;this.JO=!0;this.g6=!1};
QVj=function(R,F,n,V,r,v,f,z,q,Q,c,w,L,S,p,C,y,u,B,O,K,M){function J(){var Fj=vyV(Object.assign({},RJ,{callback:{cT:R.cT.bind(R),dW:R.dW.bind(R),qP:R.qP.bind(R)},slot:n,hm:V,Qu:function(){FB(f,V)},
lr:0,w1:1,F1:!0}));return Fj?new nf(R,c,L,C,Fj,r,O):Fj}
function b(){var Fj,fW=(Fj=V.q7)!=null?Fj:PA(V.clientMetadata,"metadata_type_sub_layouts");Fj=qIR({lNS:R,Do:w,SB:K,DO:c,F2:L,Q7:S,tX:C,cq:F,slot:n,layout:V,P_:v,wp:f,lZ:r,WG:O});for(var SE=[],nW={YH:0};nW.YH<fW.length;nW={YH:nW.YH},nW.YH++){var CW=vyV(Object.assign({},RJ,{callback:{cT:Fj.OkQ.bind(Fj),dW:Fj.kIH.bind(Fj),qP:Fj.ikG.bind(Fj)},slot:n,hm:fW[nW.YH],Qu:function(b9){return function(fq){fq.wu(fW[b9.YH],"normal")}}(nW),
lr:nW.YH,w1:fW.length,F1:!1}));if(!CW)return;SE.push(CW)}Fj.Py=SE;return Fj}
var RJ={zH:z,cI:q,eJ:Q,DO:c,Do:w,F2:L,Q7:S,wW:p,tX:C,hX:y,tJ:u,MP:B,WG:O,context:M};z=Yl(V,{N8:["metadata_type_sub_layouts"],xq:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||V.q7!==void 0&&V.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";q=Yl(V,{N8:[],xq:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(z)return b();if(q)return J()};
VI=function(R,F,n,V,r,v,f,z,q,Q){this.callback=R;this.slot=F;this.layout=n;this.Do=V;this.SB=r;this.Sl=v;this.F2=f;this.LH=z;this.zH=q;this.W=Q;this.driftRecoveryMs=PA(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.J=PA(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0};
w8J=function(R){var F=PA(R.layout.clientMetadata,"metadata_type_layout_enter_ms"),n=PA(R.layout.clientMetadata,"metadata_type_layout_exit_ms");R=R.Sl.get();F=cse(R.N,F,n);return Math.min(n,F!==null?F:Infinity)};
vg=function(R,F){var n;rI(R.zH.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(n=R.Do.get().c5)==null?void 0:n.clientPlaybackNonce,adClientData:R.layout.gg.adClientDataEntry},F)})};
ff=function(R,F,n,V,r,v,f,z,q,Q,c){VI.call(this,R,F,n,V,r,v,f,z,q,Q);this.N=c;this.U=this.T=null;R=g.m(this.N);for(F=R.next();!F.done;F=R.next())F=F.value,MI(F.iS().clientMetadata,"metadata_type_survey_overlay")&&(this.U=F.iS().layoutId)};
LcW=function(R,F){var n=SI_(R,F);n||Q2("Expected subLRA found by layout ID",R.slot,R.layout,{layoutId:F});R.T={gr:n};n?n.startRendering(n.iS()):F===R.U&&Q2("Failed to find rendering adapter for survey media layout",R.slot,R.layout,{surveyMediaLayoutId:F})};
SI_=function(R,F){return F==null?null:R.N.find(function(n){return n.iS().layoutId===F})||null};
sV_=function(R,F,n,V,r,v,f,z,q,Q){var c=r-V,w,L=((w=R.fulfilledLayout||PA(R.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:PA(w.clientMetadata,"metadata_type_ssdai_ads_config"))||"",S,p;(w=(S=PA(R.clientMetadata,"metadata_type_triggering_cue_point"))==null?void 0:(p=S.current)==null?void 0:p.identifier)||tA(Q,"ads_cpu","slid."+F.layoutId);if(!c)return f.dF(n,L,2,v,V,r,R.slotId,w),tA(Q,"ads_iraot","slid."+F.layoutId+";enterMs."+V+";exitMs."+r+";vid."+n.video_id),null;c=f.uc(n,L,2,v,
V,r,R.slotId,w);tA(Q,"ads_atct","slid."+F.layoutId+";enterMs."+V+";exitMs."+r+";vid."+n.video_id+";pid."+c+";cid."+w);if(!c)return Q2("Unexpected failure to add to playback timeline",R,F,q()),null;R=R.slotId;F=F.layoutId;c?(z.T.has(c)&&Q2("Unexpected remap of timeline playback"),z.T.set(c,{slotId:R,layoutId:F})):Q2("Invalid timeline playback ID");V+v>r&&f.XZ(c,r-V);return c};
p8R=function(R,F,n){var V=PA(F.clientMetadata,"metadata_type_sodar_extension_data");if(V)try{rpW(n,V)}catch(r){Q2("Unexpected error when loading Sodar",R,F,{error:r})}};
X8N=function(R,F,n,V,r,v,f){zT(R,F,new g.cP(n,new g.Wz),V,r,f,!1,v)};
zT=function(R,F,n,V,r,v,f,z){f=f===void 0?!0:f;nb(n)&&VB(r,0,null)&&(!oB(R,"impression")&&z&&z(),R.Vc("impression"));oB(R,"impression")&&(g.Sx(n,4)&&!g.Sx(n,2)&&R.qc("pause"),wr(n,4)<0&&!(wr(n,2)<0)&&R.qc("resume"),g.Sx(n,16)&&r>=.5&&R.qc("seek"),f&&g.Sx(n,2)&&qw(R,n.state,F,V,r,v))};
qw=function(R,F,n,V,r,v,f,z,q){oB(R,"impression")&&(v?(v=r-V,v=v>=-1&&v<=2):v=Math.abs(V-r)<=1,QI(R,F,v?V:r,n,V,f,z&&v),v&&!q&&R.Vc("complete"))};
QI=function(R,F,n,V,r,v,f){TL(R,n*1E3,f);r<=0||n<=0||(F==null?0:g.E(F,16))||(F==null?0:g.E(F,32))||(VB(n,r*.25,V)&&(v&&!oB(R,"first_quartile")&&v("first"),R.Vc("first_quartile")),VB(n,r*.5,V)&&(v&&!oB(R,"midpoint")&&v("second"),R.Vc("midpoint")),VB(n,r*.75,V)&&(v&&!oB(R,"third_quartile")&&v("third"),R.Vc("third_quartile")))};
AsE=function(R,F){oB(R,"impression")&&R.qc(F?"fullscreen":"end_fullscreen")};
aa9=function(R){oB(R,"impression")&&R.qc("clickthrough")};
CjN=function(R){R.qc("active_view_measurable")};
TVj=function(R){oB(R,"impression")&&!oB(R,"seek")&&R.qc("active_view_fully_viewable_audible_half_duration")};
oyj=function(R){oB(R,"impression")&&!oB(R,"seek")&&R.qc("active_view_viewable")};
ys9=function(R){oB(R,"impression")&&!oB(R,"seek")&&R.qc("audio_audible")};
UTR=function(R){oB(R,"impression")&&!oB(R,"seek")&&R.qc("audio_measurable")};
jVN=function(R,F,n,V,r,v,f,z,q,Q,c,w,L){this.callback=R;this.slot=F;this.layout=n;this.SB=V;this.LH=r;this.F2=v;this.r$=f;this.cI=z;this.eJ=q;this.WG=Q;this.zH=c;this.Do=w;this.wW=L;this.wL=!0;this.Zh=this.Tu=null;this.adCpn=void 0;this.T=!1};
H2e=function(R,F,n){var V;tA(R.zH.get(),"ads_qua","cpn."+PA(R.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((V=fb(R.Do.get(),2))==null?void 0:V.clientPlaybackNonce)+";qt."+F+";clr."+n)};
htv=function(R,F){var n,V;tA(R.zH.get(),"ads_imp","cpn."+PA(R.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((n=fb(R.Do.get(),2))==null?void 0:n.clientPlaybackNonce)+";clr."+F+";skp."+!!g.A((V=PA(R.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:V.skipOrPreviewRenderer,cg))};
wI=function(R){return{enterMs:PA(R.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:PA(R.clientMetadata,"metadata_type_layout_exit_ms")}};
S9=function(R,F,n,V,r,v,f,z,q,Q,c,w,L,S){VI.call(this,R,F,n,V,r,f,z,q,Q,w);this.r$=v;this.eJ=c;this.cI=L;this.WG=S;this.Zh=this.Tu=null};
Wce=function(R,F){var n;tA(R.zH.get(),"ads_imp","acpn."+((n=fb(R.Do.get(),2))==null?void 0:n.clientPlaybackNonce)+";clr."+F)};
uy6=function(R,F,n){var V;tA(R.zH.get(),"ads_qua","cpn."+PA(R.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((V=fb(R.Do.get(),2))==null?void 0:V.clientPlaybackNonce)+";qt."+F+";clr."+n)};
Lf=function(R,F,n,V,r,v,f,z,q,Q,c,w,L,S,p,C,y,u,B,O,K){this.lZ=R;this.P_=F;this.wp=n;this.Do=V;this.SB=r;this.F2=v;this.Q7=f;this.zH=z;this.r$=q;this.Sl=Q;this.cI=c;this.eJ=w;this.DO=L;this.wW=S;this.tX=p;this.hX=C;this.tJ=y;this.MP=u;this.WG=B;this.T=O;this.context=K};
sk=function(R,F,n,V,r,v,f,z,q,Q,c,w,L,S,p,C,y,u){this.lZ=R;this.P_=F;this.wp=n;this.zH=V;this.cI=r;this.eJ=v;this.DO=f;this.Do=z;this.F2=q;this.Q7=Q;this.wW=c;this.tX=w;this.hX=L;this.tJ=S;this.MP=p;this.WG=C;this.SB=y;this.context=u};
BVE=function(R,F,n,V){v5.call(this,"survey-interstitial",R,F,n,V)};
pf=function(R,F,n,V,r){zL.call(this,n,R,F,V);this.zH=r;R=PA(F.clientMetadata,"metadata_type_ad_placement_config");this.LH=new py(F.NC,r,R,F.layoutId)};
XB=function(R){return Math.round(R.width)+"x"+Math.round(R.height)};
aU=function(R,F,n){n=n===void 0?AA:n;n.width<AA.width&&(n=AA);if(R.width<n.width||R.height<n.height)return{uJ:3,DU:501,errorMessage:"ad("+XB(n)+") larger than container("+XB(R)+")."};if(n.width*n.height>R.width*R.height*.2)return{uJ:3,DU:501,errorMessage:"ad("+XB(n)+") to container("+XB(R)+") ratio exceeds limit."};if(n.height>R.height/3-F)return{uJ:3,DU:501,errorMessage:"ad("+XB(n)+") covers container("+XB(R)+") center."}};
mTJ=function(R,F){var n=PA(R.clientMetadata,"metadata_type_ad_placement_config");return new py(R.NC,F,n,R.layoutId)};
Cf=function(R){return PA(R.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")};
TT=function(R,F,n,V){v5.call(this,"invideo-overlay",R,F,n,V);this.interactionLoggingClientData=V};
oU=function(R,F,n,V,r,v,f,z,q,Q,c,w){zL.call(this,v,R,F,r);this.zH=n;this.J=f;this.F2=z;this.tJ=q;this.WG=Q;this.Z=c;this.W=w;this.LH=mTJ(F,n)};
gyN=function(){var R=["metadata_type_invideo_overlay_ad_renderer"];X8().forEach(function(F){R.push(F)});
return{N8:R,xq:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
yI=function(R,F,n,V,r,v,f,z,q,Q,c,w,L){zL.call(this,v,R,F,r);this.zH=n;this.J=f;this.V=z;this.F2=q;this.tJ=Q;this.WG=c;this.Z=w;this.W=L;this.LH=mTJ(F,n)};
O2W=function(){for(var R=["metadata_type_invideo_overlay_ad_renderer"],F=g.m(X8()),n=F.next();!n.done;n=F.next())R.push(n.value);return{N8:R,xq:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
Uk=function(R){this.F2=R;this.T=!1};
IaN=function(R,F,n){v5.call(this,"survey",R,{},F,n)};
j9=function(R,F,n,V,r,v,f){zL.call(this,n,R,F,V);this.J=r;this.F2=v;this.WG=f};
Kcj=function(R,F,n,V,r,v,f,z,q,Q){this.JX=R;this.F2=F;this.zH=n;this.J=V;this.cI=r;this.U=v;this.N=f;this.tJ=z;this.WG=q;this.T=Q};
DTN=function(R,F,n,V,r,v,f,z,q,Q){this.JX=R;this.F2=F;this.zH=n;this.J=V;this.cI=r;this.U=v;this.N=f;this.tJ=z;this.WG=q;this.T=Q};
Hg=function(R,F,n,V,r,v,f,z,q,Q){Ny.call(this,R,F,n,V,r,v,f,q);this.SU=z;this.Do=Q};
i2j=function(){var R=t8j();R.N8.push("metadata_type_ad_info_ad_metadata");return R};
xTe=function(R,F,n,V,r,v,f){this.JX=R;this.F2=F;this.zH=n;this.U=V;this.SU=r;this.T=v;this.Do=f};
kfR=function(R,F,n,V,r,v,f,z){this.JX=R;this.F2=F;this.zH=n;this.U=V;this.SU=r;this.T=v;this.WG=f;this.Do=z};
hA=function(R,F){this.adPodIndex=R;this.T=F.length;this.adBreakLengthSeconds=F.reduce(function(V,r){return V+r},0);
var n=0;for(R+=1;R<F.length;R++)n+=F[R];this.adBreakRemainingLengthSeconds=n};
Wg=function(R,F,n){this.TR=F;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=n||R(this.triggerType)};
uC=function(R,F,n){this.T=F;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=n||R(this.triggerType)};
Bg=function(R,F,n,V){this.TR=F;this.visible=n;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=V||R(this.triggerType)};
YIN=function(R){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=R(this.triggerType)};
Jsf=function(R){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=R(this.triggerType)};
m7=function(R,F,n){this.triggeringLayoutId=F;this.slotId=n;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=R(this.triggerType)};
gI=function(R,F,n){this.triggeringLayoutId=F;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=n||R(this.triggerType)};
Ok=function(R,F,n,V){this.triggeringLayoutId=F;this.T=n;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=V||R(this.triggerType)};
GfE=function(R){switch(R){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new Z("Invalid layout exit reason: "+
R)}};
IU=function(R,F,n){this.triggeringLayoutId=F;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=n||R(this.triggerType)};
Kf=function(R,F){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=F||R(this.triggerType)};
Df=function(R,F){this.breakDurationMs=R;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED";this.triggerId=F||""};
iC=function(R,F){this.breakDurationMs=R;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED";this.triggerId=F||""};
xp=function(R,F){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=F||R(this.triggerType)};
dT9=function(R){this.triggerId=R;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
MBR=function(R,F,n,V,r){this.TR=F;this.T=n;this.visible=V;this.layoutId=r;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=R(this.triggerType)};
kp=function(R,F,n,V,r){this.TR=F;this.T=n;this.visible=V;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=r||R(this.triggerType)};
Yp=function(R,F){this.breakDurationMs=R;this.triggerType="TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION";this.triggerId=F||""};
laI=function(R,F,n){this.TR=F;this.T=n;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=R(this.triggerType)};
JA=function(R,F,n,V,r){this.T=F;this.slotType=n;this.layoutType=V;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=r||R(this.triggerType)};
GT=function(R,F){this.T=F;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=R(this.triggerType)};
dI=function(R,F,n){this.layoutId=F;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=n||R(this.triggerType)};
Mw=function(R,F,n){this.T=F;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=n||R(this.triggerType)};
ft_=function(R,F){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=F;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=R(this.triggerType)};
NVN=function(R,F){this.T=R;this.index=F};
EyN=function(R){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=R(this.triggerType)};
lC=function(R,F){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=F||R(this.triggerType)};
$Tk=function(R,F,n){this.layoutId=F;this.offsetMs=n;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=R(this.triggerType)};
PjE=function(R,F){this.layoutId=F;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=R(this.triggerType)};
b2v=function(R,F,n){this.layoutId=F;this.offsetMs=n;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=R(this.triggerType)};
Nw=function(R,F,n){this.triggeringLayoutId=F;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=n||R(this.triggerType)};
Ek=function(R,F,n){this.triggeringSlotId=F;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=n||R(this.triggerType)};
$p=function(R,F,n){this.triggeringSlotId=F;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=n||R(this.triggerType)};
Pg=function(R,F){this.triggeringSlotId=F;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=R(this.triggerType)};
bC=function(R,F){this.triggeringSlotId=F;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=R(this.triggerType)};
Zf=function(R,F,n){this.triggeringSlotId=F;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=n||R(this.triggerType)};
e9=function(R,F){this.triggeringSlotId=F;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=R(this.triggerType)};
Rw=function(R,F,n){this.triggeringLayoutId=F;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=n||R(this.triggerType)};
FO=function(R,F,n,V){this.durationMs=F;this.triggeringLayoutId=n;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=V||R(this.triggerType)};
nj=function(R,F,n,V){this.category=R;this.trigger=F;this.slot=n;this.layout=V};
VQ=function(R){return(R==null?void 0:R.layoutId)!=null&&(R==null?void 0:R.layoutType)!=null};
Z2R=function(R){if(!VQ(R.adLayoutMetadata))return!1;R=R.renderingContent;return g.A(R,r6)||g.A(R,vS)||g.A(R,fj)||g.A(R,t6)||g.A(R,zN)||g.A(R,q9)?!0:!1};
etN=function(R){return(R==null?void 0:R.durationMs)!=null&&(R==null?void 0:R.durationMs)>0};
QQ=function(R){return!!(R.aoQ&&R.slot&&R.layout)};
cS=function(R){var F,n=(F=R.config)==null?void 0:F.adPlacementConfig;R=R.renderer;return!(!n||n.kind==null||!R)};
FR6=function(R){if(!VQ(R.adLayoutMetadata))return!1;R=R.renderingContent;return g.A(R,eq)||g.A(R,RT)||g.A(R,RAI)||g.A(R,bJ)||g.A(R,ZX)?!0:!1};
w6=function(R){return R.playerVars!==void 0&&R.pings!==void 0&&R.externalVideoId!==void 0};
aw=function(R){if(!VQ(R.adLayoutMetadata))return!1;R=R.renderingContent;var F=g.A(R,St);return F?Lj(F):(F=g.A(R,sf))?w6(F):(F=g.A(R,pj))?F.playerVars!==void 0:(F=g.A(R,eq))?F.durationMilliseconds!==void 0:g.A(R,XO)||g.A(R,A6)?!0:!1};
Lj=function(R){R=(R.sequentialLayouts||[]).map(function(F){return g.A(F,Cj)});
return R.length>0&&R.every(aw)};
ow=function(R){return VQ(R.adLayoutMetadata)?(R=g.A(R.renderingContent,TN))&&R.pings?!0:!1:!1};
fm9=function(R){if(!VQ(R.adLayoutMetadata))return!1;if(g.A(R.renderingContent,nK6)||g.A(R.renderingContent,yQ))return!0;var F=g.A(R.renderingContent,Uf);return g.A(R.renderingContent,jt)||g.A(F==null?void 0:F.sidePanel,VAI)||g.A(F==null?void 0:F.sidePanel,rTf)||g.A(F==null?void 0:F.sidePanel,vKk)?!0:!1};
wu9=function(R){var F;(F=!R)||(F=R.adSlotMetadata,F=!((F==null?void 0:F.slotId)!==void 0&&(F==null?void 0:F.slotType)!==void 0));if(F||!(tAJ(R)||R.slotEntryTrigger&&R.slotFulfillmentTriggers&&R.slotExpirationTriggers))return!1;var n;R=(n=R.fulfillmentContent)==null?void 0:n.fulfilledLayout;return(n=g.A(R,Cj))?aw(n):(n=g.A(R,HS))?fm9(n):(n=g.A(R,zAN))?FR6(n):(n=g.A(R,qE9))?Z2R(n):(n=g.A(R,Q7N))?VQ(n.adLayoutMetadata)?g.A(n.renderingContent,r6)?!0:!1:!1:(n=g.A(R,h6))?ow(n):(R=g.A(R,cTN))?VQ(R.adLayoutMetadata)?
g.A(R.renderingContent,yQ)?!0:!1:!1:!1};
tAJ=function(R){var F;R=g.A((F=R.fulfillmentContent)==null?void 0:F.fulfilledLayout,HS);var n;return R&&((n=R.adLayoutMetadata)==null?void 0:n.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&R.layoutExitNormalTriggers===void 0};
SER=function(R){var F;return(R==null?void 0:(F=R.adSlotMetadata)==null?void 0:F.slotType)==="SLOT_TYPE_IN_PLAYER"};
LRN=function(R){R=g.m(R||[]);for(var F=R.next();!F.done;F=R.next()){var n=g.A(F.value,WS);if(n===void 0||!wu9(n))break;F=void 0;n=(F=n.fulfillmentContent)==null?void 0:F.fulfilledLayout;if((F=g.A(n,h6))&&ow(F))return!0}return!1};
puf=function(R,F){var n;if((n=R.questions)==null||!n.length||!R.playbackCommands||(F===void 0||!F)&&R.questions.length!==1)return!1;R=g.m(R.questions);for(F=R.next();!F.done;F=R.next()){F=F.value;var V=n=void 0,r=((n=g.A(F,u8))==null?void 0:n.surveyAdQuestionCommon)||((V=g.A(F,BS))==null?void 0:V.surveyAdQuestionCommon);if(!s7e(r))return!1}return!0};
var rvj=function(R){return IJ[t[22]](this,1,R)};
var Xuf=function(R){R=((R==null?void 0:R.playerOverlay)||{}).instreamSurveyAdRenderer;var F;if(R)if(R.playbackCommands&&R.questions&&R.questions.length===1){var n,V=((F=g.A(R.questions[0],u8))==null?void 0:F.surveyAdQuestionCommon)||((n=g.A(R.questions[0],BS))==null?void 0:n.surveyAdQuestionCommon);F=s7e(V)}else F=!1;else F=!1;return F},s7e=function(R){if(!R)return!1;
R=g.A(R.instreamAdPlayerOverlay,me);var F=g.A(R==null?void 0:R.skipOrPreviewRenderer,cg),n=g.A(R==null?void 0:R.adInfoRenderer,g6);return(g.A(R==null?void 0:R.skipOrPreviewRenderer,Of)||F)&&n?!0:!1},AT_=function(R){return R.linearAds!=null&&VQ(R.adLayoutMetadata)},ame=function(R){return R.linearAd!=null&&R.adVideoStart!=null},CAk=function(R){if(isNaN(Number(R.timeoutSeconds))||!R.text||!R.ctaButton||!g.A(R.ctaButton,Iw)||!R.brandImage)return!1;
var F;return R.backgroundImage&&g.A(R.backgroundImage,Kj)&&((F=g.A(R.backgroundImage,Kj))==null?0:F.landscape)?!0:!1},Dq=function(R,F,n,V,r,v,f,z){g.G.call(this);
this.WG=R;this.T=F;this.U=V;this.Do=r;this.J=v;this.N=f;this.DO=z},yTN=function(R,F,n){var V,r=((V=n.adSlots)!=null?V:[]).map(function(z){return g.A(z,WS)});
if(n.De)if(PA(F.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))rE(R.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},F.slotId);
else{if(R.WG.get().K.D().B("h5_check_forecasting_renderer_for_throttled_midroll")){var v=n.Sf.filter(function(z){var q;return((q=z.renderer)==null?void 0:q.clientForecastingAdRenderer)!=null});
v.length!==0?TNJ(R.N,v,r,F.slotId,n.ssdaiAdsConfig):rE(R.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},F.slotId)}else rE(R.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},F.slotId);
oK6(R.J,F)}else{var f;V={Ro:Math.round(((v=PA(F.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:v.Ro)||0),hK:(f=PA(F.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:f.hK};v=PA(F.clientMetadata,"metadata_type_cue_point");TNJ(R.N,n.Sf,r,F.slotId,n.ssdaiAdsConfig,V,v)}},HV9=function(R,F,n,V,r,v,f,z){var q=fb(R.Do.get(),1);
if(U0_(R.WG.get())){var Q=i8(R.U.get(),n,V,r,q.clientPlaybackNonce,q.ZN,q.daiEnabled,q,v,f);j7f(R,Q);rE(R.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Q},F)}else rE(R.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return i8(R.U.get(),n,V,r,q.clientPlaybackNonce,q.ZN,q.daiEnabled,q,v,f,z)},F)},j7f=function(R,F){F=g.m(F);
for(var n=F.next();!n.done;n=F.next()){var V=n.value;if(V.slotType==="SLOT_TYPE_PLAYER_BYTES"&&V.fulfilledLayout)if(n=void 0,V.fulfilledLayout.renderingContent)n=PA(V.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(V.fulfilledLayout.q7){V=g.m(V.fulfilledLayout.q7);for(var r=V.next();!r.done&&(r=r.value,!r.renderingContent||!(n=PA(r.clientMetadata,"metadata_type_player_vars")));r=V.next());}}else n=void 0;if(n){R.DO.get().K.preloadVideoByPlayerVars(n,2,300);break}}},WR9=function(R,
F,n,V,r,v,f){F=hA6(F,v,Number(V.prefetchMilliseconds)||0,f);
R=F instanceof Z?F:xU(R,V,r,F,n);return R instanceof Z?R:[R]},uvV=function(R,F,n,V,r){var v=vT(R.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST");
V=[new WA({getAdBreakUrl:V.getAdBreakUrl,Ro:0,hK:0}),new Jy(!0)];R=F.pauseDurationMs?F.lactThresholdMs?{slotId:v,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Zf(R.T,v),slotFulfillmentTriggers:[new Jsf(R.T)],slotExpirationTriggers:[new Mw(R.T,r),new $p(R.T,v)],qq:"core",clientMetadata:new $8(V),adSlotLoggingData:n}:new Z("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new Z("AdPlacementConfig for Pause Ads is missing pause_duration_ms");return R instanceof
Z?R:[R]},BNk=function(R){var F,n;
return((F=R.renderer)==null?void 0:(n=F.adBreakServiceRenderer)==null?void 0:n.getAdBreakUrl)!==void 0},kU=function(R,F,n){if(R.beforeContentVideoIdStartedTrigger)R=R.beforeContentVideoIdStartedTrigger?new Wg(NI,F,R.id):new Z("Not able to create BeforeContentVideoIdStartedTrigger");
else{if(R.layoutIdExitedTrigger){var V;F=(V=R.layoutIdExitedTrigger)!=null&&V.triggeringLayoutId?new IU(NI,R.layoutIdExitedTrigger.triggeringLayoutId,R.id):new Z("Not able to create LayoutIdExitedTrigger")}else{if(R.layoutExitedForReasonTrigger){var r,v;((r=R.layoutExitedForReasonTrigger)==null?0:r.triggeringLayoutId)&&((v=R.layoutExitedForReasonTrigger)==null?0:v.layoutExitReason)?(F=GfE(R.layoutExitedForReasonTrigger.layoutExitReason),R=F instanceof Z?F:new Ok(NI,R.layoutExitedForReasonTrigger.triggeringLayoutId,
[F],R.id)):R=new Z("Not able to create LayoutIdExitedForReasonTrigger")}else{if(R.onLayoutSelfExitRequestedTrigger){var f;F=(f=R.onLayoutSelfExitRequestedTrigger)!=null&&f.triggeringLayoutId?new dI(NI,R.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,R.id):new Z("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(R.onNewPlaybackAfterContentVideoIdTrigger)R=R.onNewPlaybackAfterContentVideoIdTrigger?new Mw(NI,F,R.id):new Z("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");
else{if(R.skipRequestedTrigger){var z;F=(z=R.skipRequestedTrigger)!=null&&z.triggeringLayoutId?new Nw(NI,R.skipRequestedTrigger.triggeringLayoutId,R.id):new Z("Not able to create SkipRequestedTrigger")}else if(R.slotIdEnteredTrigger){var q;F=(q=R.slotIdEnteredTrigger)!=null&&q.triggeringSlotId?new Ek(NI,R.slotIdEnteredTrigger.triggeringSlotId,R.id):new Z("Not able to create SlotIdEnteredTrigger")}else if(R.slotIdExitedTrigger){var Q;F=(Q=R.slotIdExitedTrigger)!=null&&Q.triggeringSlotId?new $p(NI,
R.slotIdExitedTrigger.triggeringSlotId,R.id):new Z("Not able to create SkipRequestedTrigger")}else if(R.surveySubmittedTrigger){var c;F=(c=R.surveySubmittedTrigger)!=null&&c.triggeringLayoutId?new Rw(NI,R.surveySubmittedTrigger.triggeringLayoutId,R.id):new Z("Not able to create SurveySubmittedTrigger")}else{if(R.mediaResumedTrigger)R=R.mediaResumedTrigger&&R.id?new dT9(R.id):new Z("Not able to create MediaResumedTrigger");else{if(R.closeRequestedTrigger){var w;F=(w=R.closeRequestedTrigger)!=null&&
w.triggeringLayoutId?new uC(NI,R.closeRequestedTrigger.triggeringLayoutId,R.id):new Z("Not able to create CloseRequestedTrigger")}else if(R.slotIdScheduledTrigger){var L;F=(L=R.slotIdScheduledTrigger)!=null&&L.triggeringSlotId?new Zf(NI,R.slotIdScheduledTrigger.triggeringSlotId,R.id):new Z("Not able to create SlotIdScheduledTrigger")}else{if(R.mediaTimeRangeTrigger){var S;V=Number((S=R.mediaTimeRangeTrigger)==null?void 0:S.offsetStartMilliseconds);var p;f=Number((p=R.mediaTimeRangeTrigger)==null?
void 0:p.offsetEndMilliseconds);isFinite(V)&&isFinite(f)?(p=f,p===-1&&(p=n),n=V>p?new Z("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:V,offsetEndMs:p},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",p===n&&V-500<=p):new jC(V,p),R=n instanceof Z?n:new kp(NI,F,n,!1,R.id)):R=new Z("Not able to create MediaTimeRangeTrigger")}else if(R.contentVideoIdEndedTrigger)R=R.contentVideoIdEndedTrigger?new Bg(NI,F,!1,R.id):new Z("Not able to create ContentVideoIdEndedTrigger");
else{if(R.layoutIdEnteredTrigger){var C;F=(C=R.layoutIdEnteredTrigger)!=null&&C.triggeringLayoutId?new gI(NI,R.layoutIdEnteredTrigger.triggeringLayoutId,R.id):new Z("Not able to create LayoutIdEnteredTrigger")}else if(R.timeRelativeToLayoutEnterTrigger){var y;F=(y=R.timeRelativeToLayoutEnterTrigger)!=null&&y.triggeringLayoutId?new FO(NI,Number(R.timeRelativeToLayoutEnterTrigger.durationMs),R.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,R.id):new Z("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(R.onDifferentLayoutIdEnteredTrigger){var u;
F=(u=R.onDifferentLayoutIdEnteredTrigger)!=null&&u.triggeringLayoutId&&R.onDifferentLayoutIdEnteredTrigger.slotType&&R.onDifferentLayoutIdEnteredTrigger.layoutType?new JA(NI,R.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,R.onDifferentLayoutIdEnteredTrigger.slotType,R.onDifferentLayoutIdEnteredTrigger.layoutType,R.id):new Z("Not able to create CloseRequestedTrigger")}else{if(R.liveStreamBreakStartedTrigger)R=R.liveStreamBreakStartedTrigger&&R.id?new xp(NI,R.id):new Z("Not able to create LiveStreamBreakStartedTrigger");
else if(R.liveStreamBreakEndedTrigger)R=R.liveStreamBreakEndedTrigger&&R.id?new Kf(NI,R.id):new Z("Not able to create LiveStreamBreakEndedTrigger");else{if(R.liveStreamBreakScheduledDurationMatchedTrigger){var B;F=(B=R.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&B.breakDurationMs?new Df(Number(R.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,R.id):new Z("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(R.liveStreamBreakScheduledDurationNotMatchedTrigger){var O;
F=(O=R.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&O.breakDurationMs?new iC(Number(R.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,R.id):new Z("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(R.newSlotScheduledWithBreakDurationTrigger){var K;F=(K=R.newSlotScheduledWithBreakDurationTrigger)!=null&&K.breakDurationMs?new Yp(Number(R.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,R.id):new Z("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else F=
R.prefetchCacheExpiredTrigger?new lC(NI,R.id):new Z("Not able to convert an AdsControlflowTrigger.");R=F}F=R}R=F}F=R}R=F}F=R}R=F}F=R}R=F}F=R}R=F}return R},YU=function(R,F){F.T>=2&&(R.slot_pos=F.adPodIndex);
R.autoplay="1"},gKW=function(R,F,n,V,r,v,f,z){return F===null?new Z("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:F,
ActionCompanionAdRenderer:V}):[m0V(R,F,f,v,function(q){var Q=q.slotId;q=z(q);var c=V.adLayoutLoggingData,w=new $8([new WF(V),new YV(r)]);Q=YA(n.U.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Q);var L={layoutId:Q,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",qq:"core"};return{layoutId:Q,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",NC:new Map,layoutExitNormalTriggers:[new Mw(n.T,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
qq:"core",clientMetadata:w,gg:q(L),adLayoutLoggingData:c}})]},OV9=function(R,F,n,V,r,v,f,z){return F===null?new Z("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:F,
TopBannerImageTextIconButtonedLayoutViewModel:V}):[m0V(R,F,f,v,function(q){var Q=q.slotId;q=z(q);var c=V.adLayoutLoggingData,w=new $8([new uL(V),new YV(r)]);Q=YA(n.U.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Q);var L={layoutId:Q,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",qq:"core"};return{layoutId:Q,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",NC:new Map,layoutExitNormalTriggers:[new Mw(n.T,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],
layoutExitUserCancelledTriggers:[],qq:"core",clientMetadata:w,gg:q(L),adLayoutLoggingData:c}})]},iVN=function(R,F,n,V,r,v){if(!v)for(F=g.m(F),v=F.next();!v.done;v=F.next())v=v.value,J6(R,v.renderer,v.config.adPlacementConfig.kind);
R=Array.from(R.values()).filter(function(c){return Im6(c)});
F=[];v=g.m(R);for(var f=v.next(),z={};!f.done;z={Ek:void 0},f=v.next()){z.Ek=f.value;f=g.m(z.Ek.aU);for(var q=f.next(),Q={};!q.done;Q={qD:void 0},q=f.next())Q.qD=q.value,q=function(c,w){return function(L){return c.qD.iT(L,w.Ek.instreamVideoAdRenderer.elementId,c.qD.EG)}}(Q,z),Q.qD.isContentVideoCompanion?F.push(KRJ(n,V,r,z.Ek.instreamVideoAdRenderer.elementId,Q.qD.associatedCompositePlayerBytesLayoutId,Q.qD.adSlotLoggingData,q)):R.length>1?F.push(D0e(n,V,r,z.Ek.instreamVideoAdRenderer.elementId,Q.qD.adSlotLoggingData,
function(c,w){return function(L){return c.qD.iT(L,w.Ek.instreamVideoAdRenderer.elementId,c.qD.EG,c.qD.associatedCompositePlayerBytesLayoutId)}}(Q,z))):F.push(D0e(n,V,r,z.Ek.instreamVideoAdRenderer.elementId,Q.qD.adSlotLoggingData,q))}return F},J6=function(R,F,n){if(F=x0J(F)){F=g.m(F);
for(var V=F.next();!V.done;V=F.next())if((V=V.value)&&V.externalVideoId){var r=GN(R,V.externalVideoId);r.instreamVideoAdRenderer||(r.instreamVideoAdRenderer=V,r.rF=n)}else Q2("InstreamVideoAdRenderer without externalVideoId")}},x0J=function(R){var F=[],n=R.sandwichedLinearAdRenderer&&R.sandwichedLinearAdRenderer.linearAd&&g.A(R.sandwichedLinearAdRenderer.linearAd,sf);
if(n)return F.push(n),F;if(R.instreamVideoAdRenderer)return F.push(R.instreamVideoAdRenderer),F;if(R.linearAdSequenceRenderer&&R.linearAdSequenceRenderer.linearAds){R=g.m(R.linearAdSequenceRenderer.linearAds);for(n=R.next();!n.done;n=R.next())n=n.value,g.A(n,sf)&&F.push(g.A(n,sf));return F}return null},Im6=function(R){if(R.instreamVideoAdRenderer===void 0)return Q2("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;
for(var F=g.m(R.aU),n=F.next();!n.done;n=F.next()){n=n.value;if(n.iT===void 0)return!1;if(n.EG===void 0)return Q2("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(R.rF===void 0||n.uU===void 0||R.rF!==n.uU&&n.uU!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(R.instreamVideoAdRenderer.elementId===void 0)return Q2("InstreamVideoAdRenderer has no elementId",void 0,void 0,{kind:R.rF,"matching APSR kind":n.uU}),!1}return!0},GN=function(R,F){R.has(F)||
R.set(F,{instreamVideoAdRenderer:void 0,
rF:void 0,adVideoId:F,aU:[]});return R.get(F)},d6=function(R,F,n,V,r,v,f,z,q){r?GN(R,r).aU.push({GfQ:F,
uU:n,isContentVideoCompanion:V,EG:f,associatedCompositePlayerBytesLayoutId:v,adSlotLoggingData:z,iT:q}):Q2("Companion AdPlacementSupportedRenderer without adVideoId")},M9=function(R){var F=0;
R=g.m(R.questions);for(var n=R.next();!n.done;n=R.next())if(n=n.value,n=g.A(n,u8)||g.A(n,BS)){var V=void 0;F+=((V=n.surveyAdQuestionCommon)==null?void 0:V.durationMilliseconds)||0}return F},l8=function(R){var F,n,V,r,v=((n=g.A((F=R.questions)==null?void 0:F[0],u8))==null?void 0:n.surveyAdQuestionCommon)||((r=g.A((V=R.questions)==null?void 0:V[0],BS))==null?void 0:r.surveyAdQuestionCommon),f;
F=[].concat(g.I(((f=R.playbackCommands)==null?void 0:f.instreamAdCompleteCommands)||[]),g.I((v==null?void 0:v.timeoutCommands)||[]));var z,q,Q,c,w,L,S,p,C,y,u,B,O,K,M,J,b,RJ,Fj,fW;return{impressionCommands:(z=R.playbackCommands)==null?void 0:z.impressionCommands,errorCommands:(q=R.playbackCommands)==null?void 0:q.errorCommands,muteCommands:(Q=R.playbackCommands)==null?void 0:Q.muteCommands,unmuteCommands:(c=R.playbackCommands)==null?void 0:c.unmuteCommands,pauseCommands:(w=R.playbackCommands)==null?
void 0:w.pauseCommands,rewindCommands:(L=R.playbackCommands)==null?void 0:L.rewindCommands,resumeCommands:(S=R.playbackCommands)==null?void 0:S.resumeCommands,skipCommands:(p=R.playbackCommands)==null?void 0:p.skipCommands,progressCommands:(C=R.playbackCommands)==null?void 0:C.progressCommands,NaH:(y=R.playbackCommands)==null?void 0:y.clickthroughCommands,fullscreenCommands:(u=R.playbackCommands)==null?void 0:u.fullscreenCommands,activeViewViewableCommands:(B=R.playbackCommands)==null?void 0:B.activeViewViewableCommands,
activeViewMeasurableCommands:(O=R.playbackCommands)==null?void 0:O.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(K=R.playbackCommands)==null?void 0:K.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(M=R.playbackCommands)==null?void 0:(J=M.activeViewTracking)==null?void 0:J.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(b=R.playbackCommands)==null?void 0:(RJ=b.activeViewTracking)==null?void 0:RJ.activeViewAudioMeasurableCommands,
endFullscreenCommands:(Fj=R.playbackCommands)==null?void 0:Fj.endFullscreenCommands,abandonCommands:(fW=R.playbackCommands)==null?void 0:fW.abandonCommands,completeCommands:F}},YEf=function(R,F,n,V,r,v,f){return function(z,q){return kyE(R,q.slotId,z,v,function(Q,c){var w=q.layoutId;
Q=f(Q);return N9(F,w,c,r,Q,"LAYOUT_TYPE_SURVEY",[new Vm(n),V],n.adLayoutLoggingData)})}},d0k=function(R,F,n,V,r,v,f){if(!JT9(R))return new Z("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:R});
var z=R.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[GyW(v,F,n,V,function(q){var Q=q.slotId;q=f(q);Q=YA(r.U.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Q);var c={layoutId:Q,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",qq:"core"},w=new IU(r.T,V);return{layoutId:Q,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",NC:new Map,layoutExitNormalTriggers:[w],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
qq:"core",clientMetadata:new $8([new rW(z)]),gg:q(c)}})]},JT9=function(R){R=g.A(R==null?void 0:R.additionalPlayerOverlay,MAV);
if(!R)return!1;var F=R.slidingMessages;return R.title&&F&&F.length!==0?!0:!1},NNR=function(R,F,n,V,r){var v;
if((v=R.playerOverlay)==null||!v.instreamSurveyAdRenderer)return function(){return[]};
if(!Xuf(R))return function(){return new Z("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:R})};
var f=R.playerOverlay.instreamSurveyAdRenderer,z=M9(f);return z<=0?function(){return new Z("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:f})}:function(q,Q){var c=lmE(q,n,V,function(w){var L=w.slotId;
w=Q(w);var S=l8(f);L=YA(r.U.get(),"LAYOUT_TYPE_SURVEY",L);var p={layoutId:L,layoutType:"LAYOUT_TYPE_SURVEY",qq:"core"},C=new IU(r.T,V),y=new Nw(r.T,L),u=new Rw(r.T,L),B=new EyN(r.T);return{layoutId:L,layoutType:"LAYOUT_TYPE_SURVEY",NC:new Map,layoutExitNormalTriggers:[C,B],layoutExitSkipTriggers:[y],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[u],layoutExitUserCancelledTriggers:[],qq:"core",clientMetadata:new $8([new nd(f),new YV(F),new mg(z/1E3),new Kd(S)]),gg:w(p),adLayoutLoggingData:f.adLayoutLoggingData}});
q=d0k(R,n,c.slotId,V,r,q,Q);return q instanceof Z?q:[c].concat(g.I(q))}},RgE=function(R,F,n,V,r,v,f,z){f=f===void 0?!1:f;
var q=[];try{var Q=[];if(n.renderer.linearAdSequenceRenderer)var c=function(y){y=EKJ(y.slotId,n,F,r(y),V,v,f);Q=y.owz;return y.MW};
else if(n.renderer.instreamVideoAdRenderer)c=function(y){var u=y.slotId;y=r(y);var B=f,O=n.config.adPlacementConfig,K=$0k(O),M=K.G$,J=K.k0;K=n.renderer.instreamVideoAdRenderer;var b;if(K==null?0:(b=K.playerOverlay)==null?0:b.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var RJ=Ef(K,B);b=Math.min(M+RJ.videoLengthSeconds*1E3,J);B=new hA(0,[RJ.videoLengthSeconds]);J=RJ.videoLengthSeconds;var Fj=RJ.playerVars,fW=RJ.instreamAdPlayerOverlayRenderer,SE=
RJ.playerOverlayLayoutRenderer,nW=RJ.adVideoId,CW=PAV(n),b9=RJ.NC;RJ=RJ.CZ;var fq=K==null?void 0:K.adLayoutLoggingData;K=K==null?void 0:K.sodarExtensionData;u=YA(F.U.get(),"LAYOUT_TYPE_MEDIA",u);var vM={layoutId:u,layoutType:"LAYOUT_TYPE_MEDIA",qq:"core"};return{layoutId:u,layoutType:"LAYOUT_TYPE_MEDIA",NC:b9,layoutExitNormalTriggers:[new Kf(F.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:"core",clientMetadata:new $8([new NS(V),
new pd(J),new XF(Fj),new Cd(M),new Ta(b),fW&&new EX(fW),SE&&new $V(SE),new YV(O),new lL(nW),new JF(B),new HA(CW),K&&new aA(K),new cA({current:null}),new ym({}),new x8(RJ)].filter(bV6)),gg:y(vM),adLayoutLoggingData:fq}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var w=ZVv(R,V,n.adSlotLoggingData,c,z);q.push(w);for(var L=g.m(Q),S=L.next();!S.done;S=L.next()){var p=S.value,C=p(R,r);if(C instanceof Z)return C;q.push.apply(q,g.I(C))}}catch(y){return new Z(y,{errorMessage:y.message,AdPlacementRenderer:n,numberOfSurveyRenderers:eA_(n)})}return q},eA_=function(R){R=(R.renderer.linearAdSequenceRenderer||{}).linearAds;
return R!=null&&R.length?R.filter(function(F){var n,V;return((n=g.A(F,sf))==null?void 0:(V=n.playerOverlay)==null?void 0:V.instreamSurveyAdRenderer)!=null}).length:0},EKJ=function(R,F,n,V,r,v,f){var z=F.config.adPlacementConfig,q=$0k(z),Q=q.G$,c=q.k0;
q=(F.renderer.linearAdSequenceRenderer||{}).linearAds;if(q==null||!q.length)throw new TypeError("Expected linear ads");var w=[],L={Qd:Q,lr:0,NKS:w};q=q.map(function(p){return FuV(R,p,L,n,V,z,r,c,f)}).map(function(p,C){C=new hA(C,w);
return p(C)});
var S=q.map(function(p){return p.nB});
return{MW:nVe(n,R,Q,S,z,PAV(F),V,c,v),owz:q.map(function(p){return p.cDZ})}},FuV=function(R,F,n,V,r,v,f,z,q){var Q=Ef(g.A(F,sf),q),c=n.Qd,w=n.lr,L=Math.min(c+Q.videoLengthSeconds*1E3,z);
n.Qd=L;n.lr++;n.NKS.push(Q.videoLengthSeconds);var S,p,C=(S=g.A(F,sf))==null?void 0:(p=S.playerOverlay)==null?void 0:p.instreamSurveyAdRenderer;if(Q.adVideoId==="nPpU29QrbiU"&&C==null)throw new TypeError("Survey slate media has no survey overlay");return function(y){YU(Q.playerVars,y);var u,B,O=Q.videoLengthSeconds,K=Q.playerVars,M=Q.NC,J=Q.CZ,b=Q.instreamAdPlayerOverlayRenderer,RJ=Q.playerOverlayLayoutRenderer,Fj=Q.adVideoId,fW=(u=g.A(F,sf))==null?void 0:u.adLayoutLoggingData;u=(B=g.A(F,sf))==null?
void 0:B.sodarExtensionData;B=YA(V.U.get(),"LAYOUT_TYPE_MEDIA",R);var SE={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",qq:"adapter"};y={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",NC:M,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:"adapter",clientMetadata:new $8([new NS(f),new pd(O),new XF(K),new Cd(c),new Ta(L),new oA(w),new cA({current:null}),b&&new EX(b),RJ&&new $V(RJ),new YV(v),new lL(Fj),
new JF(y),u&&new aA(u),C&&new iy(C),new ym({}),new x8(J)].filter(bV6)),gg:r(SE),adLayoutLoggingData:fW};O=NNR(g.A(F,sf),v,f,y.layoutId,V);return{nB:y,cDZ:O}}},Ef=function(R,F){if(!R)throw new TypeError("Expected instream video ad renderer");
if(!R.playerVars)throw new TypeError("Expected player vars in url encoded string");var n=Xj(R.playerVars),V=Number(n.length_seconds);if(isNaN(V))throw new TypeError("Expected valid length seconds in player vars");var r=Number(R.trimmedMaxNonSkippableAdDurationMs);V=isNaN(r)?V:Math.min(V,r/1E3);r=R.playerOverlay||{};r=r.instreamAdPlayerOverlayRenderer===void 0?null:r.instreamAdPlayerOverlayRenderer;var v=R.playerOverlay||{};v=v.playerOverlayLayoutRenderer===void 0?null:v.playerOverlayLayoutRenderer;
var f=n.video_id;f||(f=(f=R.externalVideoId)?f:void 0);if(!f)throw new TypeError("Expected valid video id in IVAR");if(F&&V===0){var z;F=(z=VeR[f])!=null?z:V}else F=V;return{playerVars:n,videoLengthSeconds:F,instreamAdPlayerOverlayRenderer:r,playerOverlayLayoutRenderer:v,adVideoId:f,NC:R.pings?sF(R.pings):new Map,CZ:Ly(R.pings)}},PAV=function(R){R=Number(R.driftRecoveryMs);
return isNaN(R)||R<=0?null:R},$0k=function(R){var F=R.adTimeOffset||{};
R=F.offsetEndMilliseconds;F=Number(F.offsetStartMilliseconds);if(isNaN(F))throw new TypeError("Expected valid start offset");R=Number(R);if(isNaN(R))throw new TypeError("Expected valid end offset");return{G$:F,k0:R}},rFW=function(R){var F,n=(F=PA(R.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:F.current;
if(!n)return null;F=PA(R.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var V=R.layoutId,r=PA(R.clientMetadata,"metadata_type_content_cpn"),v=PA(R.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),f=PA(R.clientMetadata,"metadata_type_player_underlay_renderer"),z=PA(R.clientMetadata,"metadata_type_ad_placement_config"),q=PA(R.clientMetadata,"metadata_type_video_length_seconds");var Q=MI(R.clientMetadata,"metadata_type_layout_enter_ms")&&MI(R.clientMetadata,"metadata_type_layout_exit_ms")?
(PA(R.clientMetadata,"metadata_type_layout_exit_ms")-PA(R.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{BY:V,contentCpn:r,z0:n,pO:F,instreamAdPlayerOverlayRenderer:v,instreamAdPlayerUnderlayRenderer:f,adPlacementConfig:z,videoLengthSeconds:q,Hn:Q,inPlayerLayoutId:PA(R.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:PA(R.clientMetadata,"metadata_type_linked_in_player_slot_id")}},te_=function(R,F,n,V,r,v,f,z,q,Q,c,w,L,S,p){V=vT(V,"SLOT_TYPE_PLAYER_BYTES");
R=vVN(r,R,f,n,V,q,Q);if(R instanceof Z)return R;var C;Q=(C=PA(R.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:C.layoutId;if(!Q)return new Z("Invalid adNotify layout");F=f4N(Q,r,v,n,z,F,q,c,w,L,S,p,f);return F instanceof Z?F:[R].concat(g.I(F))},f4N=function(R,F,n,V,r,v,f,z,q,Q,c,w,L){n=zgN(F,n,V,v,f,z,q,Q,c,w,L);
if(n instanceof Z)return n;R=qXI(F,R,f,r,n);return R instanceof Z?R:[].concat(g.I(R.Zj),[R.Cv])},cF_=function(R,F,n,V,r,v,f,z,q,Q,c,w,L,S){F=zgN(R,F,n,r,v,z,q,Q,c,w,L,S);
if(F instanceof Z)return F;R=QK9(R,n,v,f,V,z.Zt,F);return R instanceof Z?R:R.Zj.concat(R.Cv)},zgN=function(R,F,n,V,r,v,f,z,q,Q,c,w){var L=$U(V);
return L instanceof ED?new Z(L):Q.K.D().experiments.GH("html5_refactor_in_player_slot_generation")?function(S){var p=new hA(0,[L.Jl]);S=wF_(F,L.layoutId,L.Gd,n,PS(L.playerVars,L.aM,v,q,p),L.Jl,r,p,f(S),z.get(L.Gd.externalVideoId),w);p=[];if(L.Gd.playerOverlay.instreamAdPlayerOverlayRenderer){var C=rFW(S);if(!C)return Q2("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,S),{layout:S,Zj:[]};p=[SXR(R,C.contentCpn,C.BY,function(u){return b8(F,u.slotId,
"core",C,nR(c,u))},C.inPlayerSlotId)].concat(g.I(p));
if(C.instreamAdPlayerUnderlayRenderer&&Zq(Q)){var y=C.instreamAdPlayerUnderlayRenderer;p=[LuN(R,C.contentCpn,C.BY,function(u){return sKv(F,u.slotId,y,C.adPlacementConfig,C.BY,nR(c,u))})].concat(g.I(p))}}return{layout:S,
Zj:p}}:function(S){var p=new hA(0,[L.Jl]);
return{layout:wF_(F,L.layoutId,L.Gd,n,PS(L.playerVars,L.aM,v,q,p),L.Jl,r,p,f(S),z.get(L.Gd.externalVideoId),w),Zj:[]}}},$U=function(R){if(!R.playerVars)return new ED("No playerVars available in InstreamVideoAdRenderer.");
var F,n;if(R.elementId==null||R.playerVars==null||R.playerOverlay==null||((F=R.playerOverlay)==null?void 0:F.instreamAdPlayerOverlayRenderer)==null&&((n=R.playerOverlay)==null?void 0:n.playerOverlayLayoutRenderer)==null||R.pings==null||R.externalVideoId==null)return new ED("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:R});F=Xj(R.playerVars);n=Number(F.length_seconds);isNaN(n)&&(n=0,Q2("Expected valid length seconds in player vars but got NaN"));return{layoutId:R.elementId,
Gd:R,playerVars:F,aM:R.playerVars,Jl:n}},PS=function(R,F,n,V,r){R.iv_load_policy=V;
F=Xj(F);if(F.cta_conversion_urls)try{R.cta_conversion_urls=JSON.parse(F.cta_conversion_urls)}catch(v){Q2(v)}n.J5&&(R.ctrl=n.J5);n.nW&&(R.ytr=n.nW);n.AA&&(R.ytrcc=n.AA);n.isMdxPlayback&&(R.mdx="1");R.vvt&&(R.vss_credentials_token=R.vvt,n.BA&&(R.vss_credentials_token_type=n.BA),n.mdxEnvironment&&(R.mdx_environment=n.mdxEnvironment));YU(R,r);return R},pFv=function(R){var F=new Map;
R=g.m(R);for(var n=R.next();!n.done;n=R.next())(n=n.value.renderer.remoteSlotsRenderer)&&n.hostElementId&&F.set(n.hostElementId,n);return F},et=function(R){return R.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"},XFW=function(R){return R!=null},jKN=function(R,F,n,V,r,v,f,z,q,Q,c,w,L,S,p){for(var C=[],y=g.m(R),u=y.next();!u.done;u=y.next())if(u=u.value,!tAJ(u)&&!SER(u)){var B=AF_(u,V,n.ZN);
if(B instanceof Z)return B;var O=void 0,K={slotId:u.adSlotMetadata.slotId,slotType:u.adSlotMetadata.slotType,slotPhysicalPosition:(O=u.adSlotMetadata.slotPhysicalPosition)!=null?O:1,qq:"core",slotEntryTrigger:B.slotEntryTrigger,slotFulfillmentTriggers:B.slotFulfillmentTriggers,slotExpirationTriggers:B.slotExpirationTriggers},M=g.A(u.fulfillmentContent.fulfilledLayout,Cj);if(M){if(!aw(M))return new Z("Invalid PlayerBytesAdLayoutRenderer");O=w&&!(et(u)&&u.slotEntryTrigger.beforeContentVideoIdStartedTrigger);
B=B.slotFulfillmentTriggers.some(function(J){return J instanceof Df});
B=O?a4f(K,u.adSlotMetadata.triggerEvent,M,n,V,v,R,L,B,S):CL6(K,u.adSlotMetadata.triggerEvent,M,F,n,V,r,v,f,z,q,Q,R,c,u.adSlotMetadata.triggeringSourceLayoutId);if(B instanceof Z)return B;M=[];p?M.push(new sD({current:p})):M.push(new sD({current:null}));et(u)&&M.push(new Ga({qf:et(u)&&!!u.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));O&&M.push(new ym({}));n.Zt&&M.push(new Dk({}));u=Object.assign({},K,{clientMetadata:new $8(M),fulfilledLayout:B.layout,adSlotLoggingData:u.adSlotMetadata.adSlotLoggingData});
C.push.apply(C,g.I(B.Zj));C.push(u)}else if(O=g.A(u.fulfillmentContent.fulfilledLayout,HS)){if(!fm9(O))return new Z("Invalid PlayerUnderlayAdLayoutRenderer");O=TYv(O,V,n.ZN,v,K,u.adSlotMetadata.triggerEvent,u.adSlotMetadata.triggeringSourceLayoutId);if(O instanceof Z)return O;u=Object.assign({},K,{clientMetadata:new $8([]),fulfilledLayout:O,adSlotLoggingData:u.adSlotMetadata.adSlotLoggingData});C.push(u)}else if(O=g.A(u.fulfillmentContent.fulfilledLayout,cTN)){if(!VQ(O.adLayoutMetadata)||!g.A(O.renderingContent,
yQ))return new Z("Invalid InPlayerOrganicOverlayAdLayoutRenderer");O=O.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PLAYER_ORGANIC_BANNER_OVERLAY"?oVN(O,V,n.ZN,v,K):new Z("LayoutType ["+O.adLayoutMetadata.layoutType+"] is invalid for InPlayerOrganicOverlaySlot");if(O instanceof Z)return O;u=Object.assign({},K,{clientMetadata:new $8([]),fulfilledLayout:O,adSlotLoggingData:u.adSlotMetadata.adSlotLoggingData});C.push(u)}else if(O=g.A(u.fulfillmentContent.fulfilledLayout,qE9)){if(!Z2R(O))return new Z("Invalid AboveFeedAdLayoutRenderer");
O=yF_(O,V,n.ZN,v,K,u.adSlotMetadata.triggerEvent,u.adSlotMetadata.triggeringSourceLayoutId);if(O instanceof Z)return O;u=Object.assign({},K,{clientMetadata:new $8([]),fulfilledLayout:O,adSlotLoggingData:u.adSlotMetadata.adSlotLoggingData});C.push(u)}else if(O=g.A(u.fulfillmentContent.fulfilledLayout,Q7N)){if(!VQ(O.adLayoutMetadata)||!g.A(O.renderingContent,r6))return new Z("Invalid BelowPlayerAdLayoutRenderer");O=yF_(O,V,n.ZN,v,K,u.adSlotMetadata.triggerEvent,u.adSlotMetadata.triggeringSourceLayoutId);
if(O instanceof Z)return O;u=Object.assign({},K,{clientMetadata:new $8([]),fulfilledLayout:O,adSlotLoggingData:u.adSlotMetadata.adSlotLoggingData});C.push(u)}else if(O=g.A(u.fulfillmentContent.fulfilledLayout,h6)){if(!ow(O))return new Z("Invalid PlayerBytesSequenceItemAdLayoutRenderer");O=USj(O,V,n.ZN,v,K,u.adSlotMetadata.triggerEvent);if(O instanceof Z)return O;u=Object.assign({},K,{clientMetadata:new $8([]),fulfilledLayout:O,adSlotLoggingData:u.adSlotMetadata.adSlotLoggingData});C.push(u)}else return new Z("Unable to retrieve a client slot ["+
K.slotType+"] from a given AdSlotRenderer")}return C},USj=function(R,F,n,V,r,v){var f={layoutId:R.adLayoutMetadata.layoutId,
layoutType:R.adLayoutMetadata.layoutType,qq:"core"};F=RY(R,F,n);return F instanceof Z?F:(n=g.A(R.renderingContent,TN))&&n.pings?Object.assign({},f,{renderingContent:R.renderingContent,NC:sF(n.pings)},F,{gg:nR(V,r)(f),clientMetadata:new $8([new YV(Fc(v)),new Kd({progressCommands:n.progressCommands})]),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData}):new Z("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")},yF_=function(R,F,n,V,r,v,f){var z={layoutId:R.adLayoutMetadata.layoutId,
layoutType:R.adLayoutMetadata.layoutType,qq:"core"};F=RY(R,F,n);if(F instanceof Z)return F;n=[];n.push(new YV(Fc(v)));v==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&f!==void 0&&n.push(new vA(f));return Object.assign({},z,{renderingContent:R.renderingContent,NC:new Map([["impression",HLR(R)]])},F,{gg:nR(V,r)(z),clientMetadata:new $8(n),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData})},TYv=function(R,F,n,V,r,v,f){if(R.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")a:{var z=
g.A(R.renderingContent,Uf),q=g.A(R.renderingContent,yQ);
f=new Map;if(z){f=g.A(z.sidePanel,rTf);if(!f){R=new Z("DismissablePanelTextPortraitImageRenderer is missing");break a}f=new Map([["impression",f.impressionPings||[]],["resume",f.resumePings||[]]])}else if(!q){R=new Z("AdsEngagementPanelSectionListViewModel is missing");break a}z={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,qq:"core"};F=RY(R,F,n);R=F instanceof Z?F:Object.assign({},z,{renderingContent:R.renderingContent,NC:f},F,{gg:nR(V,r)(z),clientMetadata:new $8([new YV(Fc(v))]),
adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData})}else R.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.A(R.renderingContent,nK6)?(f={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,qq:"core"},F=RY(R,F,n),R=F instanceof Z?F:Object.assign({},f,{renderingContent:R.renderingContent,NC:new Map},F,{gg:nR(V,r)(f),clientMetadata:new $8([new YV(Fc(v))]),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData})):R=new Z("CounterfactualRenderer is missing"):
R.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?R=new Z("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):R.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?R=new Z("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):R.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.A(R.renderingContent,jt)?(v={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,qq:"core"},F=RY(R,
F,n),R=F instanceof Z?F:f?Object.assign({},v,{renderingContent:R.renderingContent,NC:new Map},F,{gg:nR(V,r)(v),clientMetadata:new $8([new vA(f)]),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData}):new Z("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):R=new Z("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):R.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.A(R.renderingContent,yQ)?(v={layoutId:R.adLayoutMetadata.layoutId,
layoutType:R.adLayoutMetadata.layoutType,qq:"core"},F=RY(R,F,n),R=F instanceof Z?F:Object.assign({},v,{renderingContent:R.renderingContent,NC:new Map([])},F,{gg:nR(V,r)(v),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new $8([])})):R=new Z("AdsEngagementPanelSectionListViewModel is missing"):R=new Z("LayoutType ["+R.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return R},oVN=function(R,F,n,V,r){if(!g.A(R.renderingContent,yQ))return new Z("AdsEngagementPanelSectionListViewModel is missing");
var v={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,qq:"core"};F=RY(R,F,n);return F instanceof Z?F:Object.assign({},v,{renderingContent:R.renderingContent,NC:new Map([])},F,{gg:nR(V,r)(v),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new $8([])})},a4f=function(R,F,n,V,r,v,f,z,q,Q){if((Q==null?void 0:Q.Ro)===void 0||(Q==null?void 0:Q.hK)===void 0)return new Z("Cached ad break range from cue point is missing");
var c=RY(n,r,V.ZN);if(c instanceof Z)return c;c={layoutExitMuteTriggers:[],layoutExitNormalTriggers:c.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.A(n.renderingContent,sf))return R=hgI(R,F,n,c,r,v,f,V.ZN,Q.Ro,Q.hK),R instanceof Z?R:R.Ir===void 0?new Z("Expecting associatedInPlayerSlot for single DAI media layout"):{layout:R.layout,Zj:[R.Ir]};var w=g.A(n.renderingContent,St);if(w){if(!VQ(n.adLayoutMetadata))return new Z("Invalid ad layout metadata");
if(!Lj(w))return new Z("Invalid sequential layout");w=w.sequentialLayouts.map(function(L){return L.playerBytesAdLayoutRenderer});
R=Wu_(R,F,n,c,w,r,V,v,f,z,Q.Ro,Q.hK,q);return R instanceof Z?R:{layout:R.qp,Zj:R.Zj}}return new Z("Not able to convert a sequential layout")},Wu_=function(R,F,n,V,r,v,f,z,q,Q,c,w,L){var S=uqW(r,c,w);
if(S instanceof Z)return S;var p=[],C=[];S=g.m(S);for(var y=S.next();!y.done;y=S.next()){var u=y.value;y=R;var B=r[u.lr],O=u,K=F;u=v;var M=f,J=z,b=q,RJ=nB(B);if(RJ instanceof Z)y=RJ;else{var Fj={layoutId:B.adLayoutMetadata.layoutId,layoutType:B.adLayoutMetadata.layoutType,qq:"adapter"};O=BY6(K,B,O,u);O instanceof Z?y=O:(y=Object.assign({},Fj,V5,{NC:RJ,renderingContent:B.renderingContent,clientMetadata:new $8(O),gg:nR(J,y)(Fj),adLayoutLoggingData:B.adLayoutMetadata.adLayoutLoggingData}),y=(B=rM(b,
y,u,M.ZN,J,void 0,!0))?B instanceof Z?B:{layout:y,Ir:B}:new Z("Expecting associatedInPlayerSlot"))}if(y instanceof Z)return y;p.push(y.layout);C.push(y.Ir)}r={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,qq:"core"};F=[new HA(Number(n.driftRecoveryMs)),new Cd(c),new Ta(w),new YV(Fc(F)),new Y8(Q),new ym({})];L&&F.push(new dW({}));return{qp:Object.assign({},r,V,{q7:p,NC:new Map,clientMetadata:new $8(F),gg:nR(z,R)(r)}),Zj:C}},hgI=function(R,F,n,V,r,v,f,z,q,Q){if(!aw(n))return new Z("Invalid PlayerBytesAdLayoutRenderer");
var c=nB(n);if(c instanceof Z)return c;var w={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,qq:"core"},L=g.A(n.renderingContent,sf);if(!L)return new Z("Invalid rendering content for DAI media layout");L=Ef(L,!1);q={rk:L,lr:0,Qd:q,zM:Math.min(q+L.videoLengthSeconds*1E3,Q),NH:new hA(0,[L.videoLengthSeconds])};var S;Q=(S=Number(n.driftRecoveryMs))!=null?S:void 0;F=BY6(F,n,q,r,Q);if(F instanceof Z)return F;R=Object.assign({},w,V,{NC:c,renderingContent:n.renderingContent,
clientMetadata:new $8(F),gg:nR(v,R)(w),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData});return(r=rM(f,R,r,z,v,void 0,!0))?r instanceof Z?r:{layout:R,Ir:r}:new Z("Expecting associatedInPlayerSlot")},CL6=function(R,F,n,V,r,v,f,z,q,Q,c,w,L,S,p){var C=RY(n,v,r.ZN);
if(C instanceof Z)return C;if(g.A(n.renderingContent,sf)){q=mS6([n],r,q);if(q instanceof Z)return q;if(q.length!==1)return new Z("Only expected one media layout.");R=gVj(R,F,n,C,q[0],void 0,"core",V,v,f,z,Q,L,S,r.ZN,void 0,p);return R instanceof Z?R:{layout:R.layout,Zj:R.Ir?[R.Ir]:[]}}var y=g.A(n.renderingContent,St);if(y){if(!VQ(n.adLayoutMetadata))return new Z("Invalid ad layout metadata");if(!Lj(y))return new Z("Invalid sequential layout");y=y.sequentialLayouts.map(function(u){return u.playerBytesAdLayoutRenderer});
R=OLW(R,F,n.adLayoutMetadata,C,y,V,v,r,q,f,z,Q,c,w,L,S,p);return R instanceof Z?R:{layout:R.qp,Zj:R.Zj}}return new Z("Not able to convert a sequential layout")},OLW=function(R,F,n,V,r,v,f,z,q,Q,c,w,L,S,p,C,y){var u=new MS({current:null}),B=mS6(r,z,q);
if(B instanceof Z)return B;q=[];for(var O=[],K=void 0,M=0;M<r.length;M++){var J=r[M];if(g.A(J.renderingContent,sf)){K=M5(L)&&l_(L)?B[M+1]:void 0;K=gVj(R,F,J,V5,B[M],K,"adapter",v,f,Q,c,w,p,C,z.ZN,u,y);if(K instanceof Z)return K;q.push(K.layout);K.Ir&&O.push(K.Ir);K=B[M]}else if(g.A(J.renderingContent,pj)){var b=R,RJ=c;if(aw(J)){var Fj=g.A(J.renderingContent,pj);if(Fj&&Fj.playerVars!==void 0){var fW={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,qq:"adapter"};Fj=Xj(Fj.playerVars);
Fj.autoplay="1";J=Object.assign({},fW,V5,{renderingContent:J.renderingContent,clientMetadata:new $8([new UD({}),new YV({kind:"AD_PLACEMENT_KIND_START"}),new cA({current:null}),new XF(Fj)]),NC:new Map,gg:nR(RJ,b)(fW),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData})}else J=new Z("Invalid ad intro renderer")}else J=new Z("Invalid PlayerBytesAdLayoutRenderer");if(J instanceof Z)return J;q.push(J)}else if(g.A(J.renderingContent,eq))if(C){J=I4I(R,J,c,Fc(F),K);if(J instanceof Z)return J;q.push(J);
J=rM(p,J,f,z.ZN,c,u,!1);if(J instanceof Z)return J;if(J)O.push(J);else return new Z("Not able to retrieve InPlayer slot for endcap")}else{a:{b=J.adLayoutMetadata.layoutId;RJ=g.m(v);for(fW=RJ.next();!fW.done;fW=RJ.next()){fW=fW.value;var SE=Fj=void 0,nW=((Fj=fW.renderer)==null?void 0:(SE=Fj.linearAdSequenceRenderer)==null?void 0:SE.linearAds)||[];Fj=g.m(nW);for(SE=Fj.next();!SE.done;SE=Fj.next())if((SE=g.A(SE.value,eq))&&SE.inPlayerSlotId!==void 0&&SE.inPlayerLayoutId!==void 0&&SE.associatedPlayerBytesLayoutId!==
void 0&&SE.associatedPlayerBytesLayoutId===b){b={Ev:SE,adPlacementConfig:fW.config.adPlacementConfig};break a}}b=new Z("Not able to find associated InPlayer slot for endcap")}if(b instanceof Z)return b;J=I4I(R,J,c,b.adPlacementConfig,K);if(J instanceof Z)return J;q.push(J);J=Kuf(J.layoutId,S,f,b,u,c);if(J instanceof Z)return J;O.push(J)}}F={layoutId:n.layoutId,layoutType:n.layoutType,qq:"core"};return{qp:Object.assign({},F,V,{q7:q,NC:new Map,clientMetadata:new $8([u]),gg:nR(c,R)(F)}),Zj:O}},gVj=function(R,
F,n,V,r,v,f,z,q,Q,c,w,L,S,p,C,y){if(!aw(n))return new Z("Invalid PlayerBytesAdLayoutRenderer");
var u=nB(n);if(u instanceof Z)return u;f={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,qq:f};a:{var B=n.adLayoutMetadata.layoutId,O=g.A(n.renderingContent,sf);if(O&&w6(O)){var K=[];if(S)K.push(new YV(Fc(F)));else{b:{z=g.m(z);for(F=z.next();!F.done;F=z.next()){F=F.value;var M=x0J(F.renderer)||[],J=g.m(M);for(M=J.next();!M.done;M=J.next())if(M=M.value,M.associatedPlayerBytesLayoutId===B){M.associatedPlayerBytesLayoutId?(z=M.playerOverlay,J=z!==void 0&&z.playerOverlayLayoutRenderer!==
void 0&&z.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&z.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,z=z!==void 0&&z.instreamAdPlayerOverlayRenderer!==void 0&&z.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==void 0&&z.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||J):z=!1;F=z?{instreamVideoAdRenderer:M,adPlacementConfig:F.config.adPlacementConfig}:new Z("Invalid InPlayer shim");break b}}F=new Z("Not able to find associated InPlayer slot")}if(F instanceof Z){v=F;break a}z=
F.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;M=F.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var b;J=(b=z==null?void 0:z.inPlayerSlotId)!=null?b:M==null?void 0:M.inPlayerSlotId;var RJ;b=(RJ=z==null?void 0:z.inPlayerLayoutId)!=null?RJ:M==null?void 0:M.inPlayerLayoutId;if(J===void 0){v=new Z("InPlayer shim slot id is undefined");break a}if(b===void 0){v=new Z("InPlayer shim layout id is undefined");break a}K.push(new ty(b),new qI(J),new oA(r.NH.adPodIndex),
new YV(F.adPlacementConfig));z&&K.push(new EX(z));M&&K.push(new $V(M))}K.push(new JF(r.NH),new lL(O.externalVideoId),new NS(q),new Kd({impressionCommands:O.impressionCommands,abandonCommands:O.onAbandonCommands,completeCommands:O.completeCommands,progressCommands:O.adVideoProgressCommands}),new XF(r.Eo),new cA({current:null}),new pd(r.Co1.Jl),new x8(Ly(O.pings)),new Gm(r.NH.adPodIndex));y&&K.push(new vA(y));(r=DS6(B,L))&&K.push(new bL(r));v&&K.push(new Ay(v.Eo));O.adNextParams&&K.push(new gY(O.adNextParams));
O.clickthroughEndpoint&&K.push(new OX(O.clickthroughEndpoint));O.legacyInfoCardVastExtension&&K.push(new OD(O.legacyInfoCardVastExtension));O.sodarExtensionData&&K.push(new aA(O.sodarExtensionData));C&&O.adPodSkipTarget&&O.adPodSkipTarget>0&&(K.push(C),K.push(new dY(O.adPodSkipTarget)));(v=Q.get(O.externalVideoId))&&K.push(new BA(v));v=K}else v=new Z("Invalid vod media renderer")}if(v instanceof Z)return v;R=Object.assign({},f,V,{NC:u,renderingContent:n.renderingContent,clientMetadata:new $8(v),gg:nR(c,
R)(f),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData});n=g.A(n.renderingContent,sf);if(!n||!w6(n))return new Z("Invalid meida renderer");w=GN(w,n.externalVideoId);w.instreamVideoAdRenderer=n;w.rF="AD_PLACEMENT_KIND_START";return S?(q=rM(L,R,q,p,c,C,!1),q instanceof Z?q:DS6(R.layoutId,L)&&q?{layout:Object.assign({},R,{clientMetadata:new $8(v.concat(new Z4(q)))})}:{layout:R,Ir:q}):{layout:R}},I4I=function(R,F,n,V,r){if(!aw(F))return new Z("Invalid PlayerBytesAdLayoutRenderer");
var v=g.A(F.renderingContent,eq);if(!v||v.durationMilliseconds===void 0)return new Z("Invalid endcap renderer");var f={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,qq:"adapter"};V=[new gW(v.durationMilliseconds),new Kd({impressionCommands:void 0,abandonCommands:v.abandonCommands?[{commandExecutorCommand:v.abandonCommands}]:void 0,completeCommands:v.completionCommands}),new YV(V),new za("LAYOUT_TYPE_ENDCAP")];if(r){V.push(new Gm(r.NH.adPodIndex-1));V.push(new oA(r.NH.adPodIndex));
var z;V.push(new dY((z=r.adPodSkipTarget)!=null?z:-1))}return Object.assign({},f,V5,{renderingContent:F.renderingContent,clientMetadata:new $8(V),NC:v.skipPings?new Map([["skip",v.skipPings]]):new Map,gg:nR(n,R)(f),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})},rM=function(R,F,n,V,r,v,f){R=R.filter(function(w){return w.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&w.adSlotMetadata.triggeringSourceLayoutId===F.layoutId});
if(R.length!==0){if(R.length!==1)return new Z("Invalid InPlayer slot association for the given PlayerBytes layout");var z=R[0],q=AF_(z,n,V);if(q instanceof Z)return q;var Q;R={slotId:z.adSlotMetadata.slotId,slotType:z.adSlotMetadata.slotType,slotPhysicalPosition:(Q=z.adSlotMetadata.slotPhysicalPosition)!=null?Q:1,qq:"core",slotEntryTrigger:q.slotEntryTrigger,slotFulfillmentTriggers:q.slotFulfillmentTriggers,slotExpirationTriggers:q.slotExpirationTriggers};Q=g.A(z.fulfillmentContent.fulfilledLayout,
zAN);if(!Q||!FR6(Q))return new Z("Invalid InPlayerAdLayoutRenderer");q={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,qq:"core"};n=RY(Q,n,V);if(n instanceof Z)return n;V=[];var c=Q.adLayoutMetadata.layoutType;f&&V.push(new ym({}));if(c==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")V.push.apply(V,g.I(iL9(z.adSlotMetadata.triggerEvent,F))),(v=xSE(n,F.layoutId))&&V.push(new fd(v));else if(c==="LAYOUT_TYPE_ENDCAP"||c==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){V.push(new YV(Fc(z.adSlotMetadata.triggerEvent)));
if(c==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new Z("Cannot parse endcap layout since AdUxReadyApi is not provided");v&&V.push(v)}else return new Z("Not able to parse an SDF InPlayer layout");r=Object.assign({},q,n,{renderingContent:Q.renderingContent,NC:new Map,gg:nR(r,R)(q),clientMetadata:new $8(V),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},R,{fulfilledLayout:r,clientMetadata:new $8([])})}},iL9=function(R,F){var n=[];
n.push(new YV(Fc(R)));n.push(new vA(F.layoutId));(R=PA(F.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&n.push(new cA(R));(R=PA(F.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&n.push(new MS(R));(R=PA(F.clientMetadata,"metadata_type_remote_slots_data"))&&n.push(new BA(R));(R=PA(F.clientMetadata,"metadata_type_ad_next_params"))&&n.push(new gY(R));(R=PA(F.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&n.push(new OX(R));(R=PA(F.clientMetadata,"metadata_type_ad_pod_info"))&&
n.push(new JF(R));(F=PA(F.clientMetadata,"metadata_type_ad_video_id"))&&n.push(new lL(F));return n},Kuf=function(R,F,n,V,r,v){function f(Q){return vG(F,Q)}
var z=V.Ev.inPlayerSlotId,q={layoutId:V.Ev.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",qq:"core"};n={slotId:z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,qq:"core",slotEntryTrigger:new gI(f,R),slotFulfillmentTriggers:[new Ek(f,z)],slotExpirationTriggers:[new $p(f,z),new Mw(f,n)]};R=Object.assign({},q,{layoutExitNormalTriggers:[new IU(f,R)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],NC:new Map,clientMetadata:new $8([new RA(V.Ev),
new YV(V.adPlacementConfig),r]),gg:nR(v,n)(q),adLayoutLoggingData:V.Ev.adLayoutLoggingData});return Object.assign({},n,{clientMetadata:new $8([new hy(R)])})},DS6=function(R,F){F=g.m(F);
for(var n=F.next();!n.done;n=F.next())if(n=n.value,n.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var V=g.A(n.fulfillmentContent.fulfilledLayout,HS);if(V&&(V=g.A(V.renderingContent,Uf))&&V.associatedPlayerBytesLayoutId===R)return n}},AF_=function(R,F,n){var V=kU(R.slotEntryTrigger,F,n);
if(V instanceof Z)return V;for(var r=[],v=g.m(R.slotFulfillmentTriggers),f=v.next();!f.done;f=v.next()){f=kU(f.value,F,n);if(f instanceof Z)return f;r.push(f)}v=[];R=g.m(R.slotExpirationTriggers);for(f=R.next();!f.done;f=R.next()){f=kU(f.value,F,n);if(f instanceof Z)return f;v.push(f)}return{slotEntryTrigger:V,slotFulfillmentTriggers:r,slotExpirationTriggers:v}},RY=function(R,F,n){for(var V=[],r=g.m(R.layoutExitNormalTriggers||[]),v=r.next();!v.done;v=r.next()){v=kU(v.value,F,n);
if(v instanceof Z)return v;V.push(v)}r=[];v=g.m(R.layoutExitSkipTriggers||[]);for(var f=v.next();!f.done;f=v.next()){f=kU(f.value,F,n);if(f instanceof Z)return f;r.push(f)}v=[];f=g.m(R.layoutExitMuteTriggers||[]);for(var z=f.next();!z.done;z=f.next()){z=kU(z.value,F,n);if(z instanceof Z)return z;v.push(z)}f=[];R=g.m(R.layoutExitUserInputSubmittedTriggers||[]);for(z=R.next();!z.done;z=R.next()){z=kU(z.value,F,n);if(z instanceof Z)return z;f.push(z)}return{layoutExitNormalTriggers:V,layoutExitSkipTriggers:r,
layoutExitMuteTriggers:v,layoutExitUserInputSubmittedTriggers:f,layoutExitUserCancelledTriggers:[]}},nB=function(R){var F=g.A(R.renderingContent,sf);
if(F==null?0:F.pings)return sF(F.pings);R=g.A(R.renderingContent,eq);return(R==null?0:R.skipPings)?new Map([["skip",R.skipPings]]):new Map},BY6=function(R,F,n,V,r){F=g.A(F.renderingContent,sf);
if(!F)return new Z("Invalid rendering content for DAI media layout");R=[new NS(V),new pd(n.rk.videoLengthSeconds),new XF(n.rk.playerVars),new Cd(n.Qd),new Ta(n.zM),new oA(n.lr),new YV(Fc(R)),new lL(n.rk.adVideoId),new JF(n.NH),F.sodarExtensionData&&new aA(F.sodarExtensionData),new cA({current:null}),new ym({}),new x8(Ly(F.pings))].filter(XFW);r!==void 0&&R.push(new HA(r));return R},uqW=function(R,F,n){R=R.map(function(q){return Ef(g.A(q.renderingContent,sf),!1)});
var V=R.map(function(q){return q.videoLengthSeconds}),r=V.map(function(q,Q){return new hA(Q,V)}),v=F,f=n,z=[];
R.forEach(function(q,Q){f=Math.min(v+q.videoLengthSeconds*1E3,n);YU(q.playerVars,r[Q]);z.push({rk:q,Qd:v,zM:f,lr:Q,NH:r[Q]});v=f});
return z},mS6=function(R,F,n){for(var V=[],r=g.m(R),v=r.next();!v.done;v=r.next())if(v=g.A(v.value.renderingContent,sf)){if(!w6(v))return new Z("Invalid vod media renderer");
V.push(kmf(v))}r=V.map(function(w){return w.Jl});
v=[];for(var f=0,z=0;z<R.length;z++){var q=g.A(R[z].renderingContent,sf);if(q){var Q=new hA(f,r),c=PS(V[f].playerVars,V[f].aM,F,n,Q);v[z]={NH:Q,adPodSkipTarget:q.adPodSkipTarget,Co1:V[f],Eo:c};f++}}return v},kmf=function(R){var F=Xj(R.playerVars),n=Number(F.length_seconds);
isNaN(n)&&(n=0,Q2("Expected valid length seconds in player vars but got NaN"));return{playerVars:F,aM:R.playerVars,Jl:n}},Fc=function(R){switch(R){case "SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED":return{kind:"AD_PLACEMENT_KIND_LAYOUT_ID_ENTERED"};
case "SLOT_TRIGGER_EVENT_BEFORE_CONTENT":return{kind:"AD_PLACEMENT_KIND_START"};case "SLOT_TRIGGER_EVENT_CONTENT_OFFSET":return{kind:"AD_PLACEMENT_KIND_MILLISECONDS"};case "SLOT_TRIGGER_EVENT_AFTER_CONTENT":return{kind:"AD_PLACEMENT_KIND_END"};case "SLOT_TRIGGER_EVENT_CONTENT_PAUSED":return{kind:"AD_PLACEMENT_KIND_PAUSE"};default:return{kind:"AD_PLACEMENT_KIND_UNKNOWN"}}},HLR=function(R){if(g.A(R.renderingContent,fj)){var F;
return((F=g.A(R.renderingContent,fj))==null?void 0:F.impressionPings)||[]}if(g.A(R.renderingContent,r6)){var n;return((n=g.A(R.renderingContent,r6))==null?void 0:n.impressionPings)||[]}if(g.A(R.renderingContent,vS)){var V;return((V=g.A(R.renderingContent,vS))==null?void 0:V.impressionPings)||[]}return[]},xSE=function(R,F){var n;
return(n=R.layoutExitNormalTriggers.find(function(V){return V instanceof IU&&(V==null?void 0:V.triggeringLayoutId)!==F}))==null?void 0:n.triggeringLayoutId},JF_=function(R,F,n,V,r,v,f,z,q){var Q=n.pings;
return Q?[YXV(R,v,z,r,function(c){var w=c.slotId;c=q(c);var L=n.adLayoutLoggingData,S=n.progressCommands;w=YA(F.U.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",w);var p={layoutId:w,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",qq:"core"};return{layoutId:w,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",NC:sF(Q),layoutExitNormalTriggers:[new Mw(F.T,v)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:"core",
clientMetadata:new $8([new YV(V),new x8(Ly(Q)),new k8(uSW(Q)),new pd(f/1E3),new Kd({progressCommands:S}),new mg(f/1E3)]),gg:c(p),adLayoutLoggingData:L}})]:new Z("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:n})},dSW=function(R,F,n,V,r,v,f,z){R=Gmf(R,n,v,f,V,function(q){var Q=q.slotId;
q=z(q);Q=YA(F.U.get(),"LAYOUT_TYPE_FORECASTING",Q);var c={layoutId:Q,layoutType:"LAYOUT_TYPE_FORECASTING",qq:"core"},w=new Map,L=r.impressionUrls;L&&w.set("impression",L);return{layoutId:Q,layoutType:"LAYOUT_TYPE_FORECASTING",NC:w,layoutExitNormalTriggers:[new dI(F.T,Q)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:"core",clientMetadata:new $8([new jM(r),new YV(n)]),gg:q(c)}});
return R instanceof Z?R:[R]},l4f=function(R,F,n,V,r,v,f){return[MeE(R,v,V,function(z){var q=z.slotId;
z=f(z);q=YA(F.U.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",q);var Q={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",qq:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",NC:new Map,layoutExitNormalTriggers:[new Mw(F.T,v)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:"core",clientMetadata:new $8([new EX(r),new YV(n)]),gg:z(Q),adLayoutLoggingData:r.adLayoutLoggingData}})]},
EVk=function(R,F,n,V,r,v,f,z){R=NYN(R,n,v,f,V,function(q,Q){var c=q.slotId;
q=z(q);var w=r.contentSupportedRenderer;w?w.textOverlayAdContentRenderer?(w=YA(F.U.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",c),Q=fB(F,w,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",r,n,q,tq(F,Q,c))):w.enhancedTextOverlayAdContentRenderer?(w=YA(F.U.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",c),Q=fB(F,w,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",r,n,q,tq(F,Q,c))):w.imageOverlayAdContentRenderer?(w=YA(F.U.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",c),Q=tq(F,Q,c),Q.push(new FO(F.T,45E3,w)),Q=fB(F,w,
"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",r,n,q,Q)):Q=new ED("InvideoOverlayAdRenderer without appropriate sub renderer"):Q=new ED("InvideoOverlayAdRenderer without contentSupportedRenderer");return Q});
return R instanceof Z?R:[R]},bLI=function(R,F,n,V,r,v,f,z,q){var Q=Number(V.durationMilliseconds);
return isNaN(Q)?new Z("Expected valid duration for AdActionInterstitialRenderer."):function(c){return $SJ(F,c.slotId,n,Q,{impressionCommands:void 0,abandonCommands:V.abandonCommands?[{commandExecutorCommand:V.abandonCommands}]:void 0,completeCommands:V.completionCommands},V.skipPings?new Map([["skip",V.skipPings]]):new Map,f(c),function(w){return PLe(R,w,r,function(L,S){var p=L.slotId;L=f(L);p=YA(F.U.get(),"LAYOUT_TYPE_ENDCAP",p);return N9(F,p,S,n,L,"LAYOUT_TYPE_ENDCAP",[new RA(V),z],V.adLayoutLoggingData)})},
q,v-1,V.adLayoutLoggingData,v)}},ZLe=function(R,F,n,V){if(!n.playerVars)return new Z("No playerVars available in AdIntroRenderer.");
var r=Xj(n.playerVars);r.autoplay="1";return function(v){var f=v.slotId;v=V(v);f=YA(R.U.get(),"LAYOUT_TYPE_MEDIA",f);var z={layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA",qq:"adapter"};return{hm:{layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA",NC:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:"adapter",clientMetadata:new $8([new UD({}),new YV(F),new cA({current:null}),new XF(r)]),gg:v(z)},D8:[new Ok(R.T,
f,["error"])],kY:[],mu:[],Uy:[]}}},RQE=function(R,F,n,V,r,v,f,z,q,Q){Q=Q===void 0?!1:Q;
var c=M9(r);if(!puf(r,Q))return new Z("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:r});if(c<=0)return new Z("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:r});var w=YEf(R,F,r,v,n,V,f);return w instanceof Z?w:function(L){return egN(F,L.slotId,n,c,l8(r),f(L),w,z,q)}},Fgk=function(R,F,n,V,r,v,f,z){function q(w){return PLe(R,w,V,Q)}
function Q(w,L){var S=w.slotId;w=f(w);S=YA(F.U.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",S);return N9(F,S,L,n,w,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new FF(r),v],r.adLayoutLoggingData)}
if(!CAk(r))return new Z("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:r});var c=r.timeoutSeconds*1E3;return function(w){var L=w.slotId,S={impressionCommands:r.impressionCommands,completeCommands:r.timeoutCommands,skipCommands:r.dismissCommands};w=f(w);L=z_(F,L,n,c,S,new Map,w,q);S=new ty(L.Ib);w=new Gm(z);return{hm:{layoutId:L.layoutId,layoutType:L.layoutType,NC:L.NC,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],
layoutExitUserCancelledTriggers:[],qq:L.qq,clientMetadata:new $8([].concat(g.I(L.yY),[S,w])),gg:L.gg,adLayoutLoggingData:L.adLayoutLoggingData},D8:[],kY:L.layoutExitMuteTriggers,mu:L.layoutExitUserInputSubmittedTriggers,Uy:L.layoutExitUserCancelledTriggers,Ir:L.Ir}}},VM9=function(R,F,n,V,r,v,f,z,q,Q,c,w,L,S,p,C){R=vT(R,"SLOT_TYPE_PLAYER_BYTES");
V=vVN(F,f,V,r,R,Q,c);if(V instanceof Z)return V;var y;f=(y=PA(V.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:y.layoutId;if(!f)return new Z("Invalid adNotify layout");F=n8N(f,F,n,r,v,q,z,Q,w,L,S,p,C);return F instanceof Z?F:[V].concat(g.I(F))},n8N=function(R,F,n,V,r,v,f,z,q,Q,c,w,L){n=ryJ(F,n,V,v,f,z,q,Q,c,w,L);
v8_(v)?(V=fkR(F,R),R=vT(F.U.get(),"SLOT_TYPE_IN_PLAYER"),v=YA(F.U.get(),"LAYOUT_TYPE_SURVEY",R),z=qV(F,V,z),F=[].concat(g.I(z.slotExpirationTriggers),[new uC(F.T,v)]),R=n({slotId:z.slotId,slotType:z.slotType,slotPhysicalPosition:z.slotPhysicalPosition,slotEntryTrigger:z.slotEntryTrigger,slotFulfillmentTriggers:z.slotFulfillmentTriggers,slotExpirationTriggers:F,qq:z.qq},{slotId:R,layoutId:v}),r=R instanceof Z?R:{Cv:Object.assign({},z,{slotExpirationTriggers:F,clientMetadata:new $8([new hy(R.layout)]),
adSlotLoggingData:r}),Zj:R.Zj}):r=qXI(F,R,z,r,n);return r instanceof Z?r:[].concat(g.I(r.Zj),[r.Cv])},zQI=function(R,F,n,V,r,v,f,z,q,Q,c,w,L,S){F=ryJ(R,F,n,r,v,f,q,Q,c,w,L,S);
v8_(r)?(r=tMj(R,n,f,z),r instanceof Z?R=r:(z=vT(R.U.get(),"SLOT_TYPE_IN_PLAYER"),q=YA(R.U.get(),"LAYOUT_TYPE_SURVEY",z),f=[].concat(g.I(r.slotExpirationTriggers),[new uC(R.T,q)]),z=F({slotId:r.slotId,slotType:r.slotType,slotPhysicalPosition:r.slotPhysicalPosition,qq:r.qq,slotEntryTrigger:r.slotEntryTrigger,slotFulfillmentTriggers:r.slotFulfillmentTriggers,slotExpirationTriggers:f},{slotId:z,layoutId:q}),R=z instanceof Z?z:{Cv:{slotId:r.slotId,slotType:r.slotType,slotPhysicalPosition:r.slotPhysicalPosition,
slotEntryTrigger:r.slotEntryTrigger,slotFulfillmentTriggers:r.slotFulfillmentTriggers,slotExpirationTriggers:f,qq:r.qq,clientMetadata:new $8([new hy(z.layout),new Ga({qf:R.qf(n)})]),adSlotLoggingData:V},Zj:z.Zj})):R=QK9(R,n,f,z,V,q.Zt,F);return R instanceof Z?R:R.Zj.concat(R.Cv)},v8_=function(R){R=g.m(R);
for(var F=R.next();!F.done;F=R.next())if(g.A(F.value,XO))return!0;return!1},ryJ=function(R,F,n,V,r,v,f,z,q,Q,c,w){return function(L,S){if(M5(c)&&l_(c))a:{var p=qDI(V);
if(p instanceof Z)S=p;else{for(var C=0,y=[],u=[],B=[],O=[],K=[],M=[],J=new wW({current:null}),b=new MS({current:null}),RJ=!1,Fj=[],fW=0,SE=[],nW=0;nW<V.length;nW++){var CW=V[nW],b9=g.A(CW,sf);if(b9){b9=$U(b9);if(b9 instanceof ED){S=new Z(b9);break a}var fq=new hA(fW,p),vM=PS(b9.playerVars,b9.aM,f,Q,fq);fW++;SE[nW]={renderer:CW,data:b9,NH:fq,Eo:vM}}}fW=-1;for(p=0;p<V.length;p++)if(nW=V[p],CW=g.A(nW,pj)){nW=ZLe(F,n,CW,z);if(nW instanceof Z){S=nW;break a}nW=nW(L);y.push(nW.hm);u=[].concat(g.I(nW.D8),
g.I(u));B=[].concat(g.I(nW.kY),g.I(B));nW.Ir&&(Fj=[nW.Ir].concat(g.I(Fj)))}else if(g.A(nW,sf))CW=SE[p],fW=CW.data,nW=CW.NH,CW=CW.Eo,b9=SE[p+1],fq=void 0,b9&&(fq=b9.Eo),nW=QAE(F,fW.layoutId,fW.Gd,n,CW,fW.Jl,v,nW,z(L),b,q.get(fW.Gd.externalVideoId),fq,w),C++,y.push(nW.hm),u=[].concat(g.I(nW.D8),g.I(u)),B=[].concat(g.I(nW.kY),g.I(B)),RJ||(M.push(b),RJ=!0),fW=(fW=fW.Gd.adPodSkipTarget)&&fW>0?fW:-1;else if(CW=g.A(nW,eq)){nW=bLI(R,F,n,CW,v,C,z,b,fW);if(nW instanceof Z){S=nW;break a}nW=nW(L);y.push(nW.hm);
u=[].concat(g.I(nW.D8),g.I(u));B=[].concat(g.I(nW.kY),g.I(B));nW.Ir&&(Fj=[nW.Ir].concat(g.I(Fj)))}else if(CW=g.A(nW,XO)){if(S===void 0){S=new Z("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:CW});break a}nW=RQE(R,F,n,v,CW,J,z,S,C,kA(c,"supports_multi_step_on_desktop"));if(nW instanceof Z){S=nW;break a}nW=nW(L);y.push(nW.hm);nW.Ir&&Fj.push(nW.Ir);u=[].concat(g.I(nW.D8),g.I(u));B=[].concat(g.I(nW.kY),g.I(B));O=[].concat(g.I(nW.mu),g.I(O));K=[].concat(g.I(nW.Uy),
g.I(K));M=[J].concat(g.I(M))}else if(nW=g.A(nW,A6)){nW=Fgk(R,F,n,v,nW,J,z,C);if(nW instanceof Z){S=nW;break a}nW=nW(L);y.push(nW.hm);nW.Ir&&Fj.push(nW.Ir);B=[].concat(g.I(nW.kY),g.I(B))}else{S=new Z("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}S={q7:y,layoutExitSkipTriggers:u,layoutExitUserInputSubmittedTriggers:O,layoutExitUserCancelledTriggers:K,layoutExitMuteTriggers:B,yY:M,Zj:Fj}}}else a:if(C=qDI(V),C instanceof Z)S=C;else{y=0;u=[];B=[];O=[];K=[];M=[];J=[];b=new wW({current:null});
RJ=new MS({current:null});Fj=!1;SE=[];fW=-1;p=g.m(V);for(nW=p.next();!nW.done;nW=p.next())if(nW=nW.value,g.A(nW,pj)){nW=ZLe(F,n,g.A(nW,pj),z);if(nW instanceof Z){S=nW;break a}nW=nW(L);u.push(nW.hm);B=[].concat(g.I(nW.D8),g.I(B));O=[].concat(g.I(nW.kY),g.I(O));nW.Ir&&(SE=[nW.Ir].concat(g.I(SE)))}else if(g.A(nW,sf)){fW=$U(g.A(nW,sf));if(fW instanceof ED){S=new Z(fW);break a}nW=new hA(y,C);nW=QAE(F,fW.layoutId,fW.Gd,n,PS(fW.playerVars,fW.aM,f,Q,nW),fW.Jl,v,nW,z(L),RJ,q.get(fW.Gd.externalVideoId),void 0,
w);y++;u.push(nW.hm);B=[].concat(g.I(nW.D8),g.I(B));O=[].concat(g.I(nW.kY),g.I(O));Fj||(J.push(RJ),Fj=!0);fW=(fW=fW.Gd.adPodSkipTarget)&&fW>0?fW:-1}else if(g.A(nW,eq)){nW=bLI(R,F,n,g.A(nW,eq),v,y,z,RJ,fW);if(nW instanceof Z){S=nW;break a}nW=nW(L);u.push(nW.hm);B=[].concat(g.I(nW.D8),g.I(B));O=[].concat(g.I(nW.kY),g.I(O));nW.Ir&&(SE=[nW.Ir].concat(g.I(SE)))}else if(g.A(nW,XO)){if(S===void 0){S=new Z("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.A(nW,
XO)});break a}nW=RQE(R,F,n,v,g.A(nW,XO),b,z,S,y,kA(c,"supports_multi_step_on_desktop"));if(nW instanceof Z){S=nW;break a}nW=nW(L);u.push(nW.hm);nW.Ir&&SE.push(nW.Ir);B=[].concat(g.I(nW.D8),g.I(B));O=[].concat(g.I(nW.kY),g.I(O));K=[].concat(g.I(nW.mu),g.I(K));M=[].concat(g.I(nW.Uy),g.I(M));J=[b].concat(g.I(J))}else if(g.A(nW,A6)){nW=Fgk(R,F,n,v,g.A(nW,A6),b,z,y);if(nW instanceof Z){S=nW;break a}nW=nW(L);u.push(nW.hm);nW.Ir&&SE.push(nW.Ir);O=[].concat(g.I(nW.kY),g.I(O))}else{S=new Z("Unsupported linearAd found in LinearAdSequenceRenderer.");
break a}S={q7:u,layoutExitSkipTriggers:B,layoutExitUserInputSubmittedTriggers:K,layoutExitUserCancelledTriggers:M,layoutExitMuteTriggers:O,yY:J,Zj:SE}}S instanceof Z?L=S:(M=L.slotId,C=S.q7,y=S.layoutExitSkipTriggers,u=S.layoutExitMuteTriggers,B=S.layoutExitUserInputSubmittedTriggers,O=S.yY,L=z(L),K=r?r.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",M=r?r.layoutId:YA(F.U.get(),K,M),J={layoutId:M,layoutType:K,qq:"core"},L={layout:{layoutId:M,layoutType:K,NC:new Map,layoutExitNormalTriggers:[new dI(F.T,
M)],layoutExitSkipTriggers:y,layoutExitMuteTriggers:u,layoutExitUserInputSubmittedTriggers:B,layoutExitUserCancelledTriggers:[],qq:"core",clientMetadata:new $8([new SM(C)].concat(g.I(O))),gg:L(J)},Zj:S.Zj});return L}},qDI=function(R){var F=[];
R=g.m(R);for(var n=R.next();!n.done;n=R.next())if(n=n.value,g.A(n,sf)){n=$U(g.A(n,sf));if(n instanceof ED)return new Z(n);F.push(n.Jl)}return F},wA6=function(R,F,n,V,r,v,f,z){if(!puf(n,z===void 0?!1:z))return new Z("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:n});
var q=M9(n);if(q<=0)return new Z("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:n});var Q=new wW({current:null}),c=YEf(R,F,n,Q,V,v,f);return cy_(R,V,v,q,r,function(w,L){var S=w.slotId,p=l8(n);w=f(w);S=YA(F.U.get(),"LAYOUT_TYPE_MEDIA_BREAK",S);var C={layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",qq:"core"},y=c(S,L),u=PA(y.clientMetadata,"metadata_type_fulfilled_layout");u||Q2("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");
p=[new YV(V),new gW(q),new Kd(p),Q];u&&p.push(new za(u.layoutType));return{rJH:{layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",NC:new Map,layoutExitNormalTriggers:[new dI(F.T,S)],layoutExitSkipTriggers:[new Nw(F.T,L.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new Rw(F.T,L.layoutId)],layoutExitUserCancelledTriggers:[],qq:"core",clientMetadata:new $8(p),gg:w(C)},u2G:y}})},SDI=function(R){if(!ame(R))return!1;
var F=g.A(R.adVideoStart,Q5);return F?g.A(R.linearAd,sf)&&QQ(F)?!0:(Q2("Invalid Sandwich with notify"),!1):!1},LgR=function(R){if(R.linearAds==null)return!1;
R=g.A(R.adStart,Q5);return R?QQ(R)?!0:(Q2("Invalid LASR with notify"),!1):!1},sAN=function(R){if(!AT_(R))return!1;
R=g.A(R.adStart,Q5);return R?QQ(R)?!0:(Q2("Invalid LASR with notify"),!1):!1},cG=function(R,F,n,V,r,v,f,z,q,Q){this.J=R;
this.U=F;this.T=n;this.WG=V;this.Ol=r;this.N=v;this.F2=f;this.Zz=z;this.Yk=q;this.loadPolicy=Q===void 0?1:Q},i8=function(R,F,n,V,r,v,f,z,q,Q,c){var w=[];
if(F.length===0&&V.length===0&&n.length===0)return w;F=F.filter(cS);var L=n.filter(wu9),S=V.filter(cS),p=new Map,C=pFv(F),y=n.some(function(vM){var l9;return(vM==null?void 0:(l9=vM.adSlotMetadata)==null?void 0:l9.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),u=n.some(function(vM){var l9;
return(vM==null?void 0:(l9=vM.adSlotMetadata)==null?void 0:l9.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),B=n.some(function(vM){var l9;
return(vM==null?void 0:(l9=vM.adSlotMetadata)==null?void 0:l9.slotType)==="SLOT_TYPE_IN_PLAYER"}),O=n.some(function(vM){var l9,ge;
return(vM==null?void 0:(l9=vM.adSlotMetadata)==null?void 0:l9.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(vM==null?void 0:(ge=vM.adSlotMetadata)==null?void 0:ge.slotType)==="SLOT_TYPE_ABOVE_FEED"}),K=n.some(function(vM){var l9;
return(vM==null?void 0:(l9=vM.adSlotMetadata)==null?void 0:l9.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"});
n=n.some(function(vM){var l9;return(vM==null?void 0:(l9=vM.adSlotMetadata)==null?void 0:l9.slotType)==="SLOT_TYPE_IN_PLAYER_ORGANIC_OVERLAY"});
if(y||u||B||O||K||n)Q=jKN(L,F,z,r,C,R.Ol.get(),R.loadPolicy,p,R.WG.get(),R.J.get(),B,f,q,Q,c),Q instanceof Z?Q2(Q,void 0,void 0,{contentCpn:r}):w.push.apply(w,g.I(Q));Q=g.m(F);for(n=Q.next();!n.done;n=Q.next())n=n.value,u=pAW(R,p,n,r,v,f,y,z,C,q,L,R.WG.get().K.D().experiments.GH("html5_enable_triggering_cuepoint_for_slot")?c:void 0),u instanceof Z?Q2(u,void 0,void 0,{renderer:n.renderer,config:n.config.adPlacementConfig,kind:n.config.adPlacementConfig.kind,contentCpn:r,daiEnabled:f}):w.push.apply(w,
g.I(u));XAV(R.WG.get())||(v=Ay_(R,S,r,z,C,p),w.push.apply(w,g.I(v)));if(R.N===null||f&&!z.gU){var M,J,b;R=z.Zt&&F.length===1&&((M=F[0].config)==null?void 0:(J=M.adPlacementConfig)==null?void 0:J.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((b=F[0].renderer)==null?void 0:b.adBreakServiceRenderer);if(!w.length&&!R){var RJ,Fj,fW,SE;Q2("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":F.length,contentCpn:r,"first APR kind":(RJ=F[0])==null?void 0:
(Fj=RJ.config)==null?void 0:(fW=Fj.adPlacementConfig)==null?void 0:fW.kind,renderer:(SE=F[0])==null?void 0:SE.renderer})}return w}M=V.filter(cS);w.push.apply(w,g.I(iVN(p,M,R.U.get(),R.N,r,y)));if(!w.length){var nW,CW,b9,fq;Q2("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":F.length,contentCpn:r,daiEnabled:f.toString(),"first APR kind":(nW=F[0])==null?void 0:(CW=nW.config)==null?void 0:(b9=CW.adPlacementConfig)==null?void 0:b9.kind,renderer:(fq=F[0])==null?
void 0:fq.renderer})}return w},Ay_=function(R,F,n,V,r,v){function f(L){return nR(R.Ol.get(),L)}
var z=[];F=g.m(F);for(var q=F.next();!q.done;q=F.next()){q=q.value;var Q=q.renderer,c=Q.sandwichedLinearAdRenderer,w=Q.linearAdSequenceRenderer;c&&SDI(c)?(Q2("Found AdNotify with SandwichedLinearAdRenderer"),w=g.A(c.adVideoStart,Q5),c=g.A(c.linearAd,sf),J6(v,Q,q.config.adPlacementConfig.kind),Q=void 0,w=f4N((Q=w)==null?void 0:Q.layout.layoutId,R.U.get(),R.T.get(),q.config.adPlacementConfig,q.adSlotLoggingData,c,n,V,f,r,R.loadPolicy,R.WG.get(),R.Ol.get()),w instanceof Z?Q2(w):z.push.apply(z,g.I(w))):
w&&(!w.adLayoutMetadata&&LgR(w)||w.adLayoutMetadata&&sAN(w))&&(Q2("Found AdNotify with LinearAdSequenceRenderer"),J6(v,Q,q.config.adPlacementConfig.kind),Q=void 0,c=n8N((Q=g.A(w.adStart,Q5))==null?void 0:Q.layout.layoutId,R.U.get(),R.T.get(),q.config.adPlacementConfig,q.adSlotLoggingData,w.linearAds,VQ(w.adLayoutMetadata)?w.adLayoutMetadata:void 0,n,V,f,r,R.loadPolicy,R.WG.get()),c instanceof Z?Q2(c):z.push.apply(z,g.I(c)))}return z},pAW=function(R,F,n,V,r,v,f,z,q,Q,c,w){function L(B){return nR(R.Ol.get(),
B)}
var S=n.renderer,p=n.config.adPlacementConfig,C=p.kind,y=n.adSlotLoggingData,u=z.gU&&C==="AD_PLACEMENT_KIND_START";u=v&&!u;if(S.adsEngagementPanelRenderer!=null)return d6(F,n.elementId,C,S.adsEngagementPanelRenderer.isContentVideoEngagementPanel,S.adsEngagementPanelRenderer.adVideoId,S.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,p,y,function(B,O,K,M){var J=R.T.get(),b=B.slotId,RJ=S.adsEngagementPanelRenderer;B=nR(R.Ol.get(),B);return wM(J,b,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new BF(RJ),O,K,RJ.impressionPings,B,S.adsEngagementPanelRenderer.adLayoutLoggingData,M)}),[];
if(S.adsEngagementPanelLayoutViewModel)return d6(F,n.elementId,C,S.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,S.adsEngagementPanelLayoutViewModel.adVideoId,S.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,p,y,function(B,O,K,M){var J=R.T.get(),b=B.slotId,RJ=S.adsEngagementPanelLayoutViewModel;B=nR(R.Ol.get(),B);return S2(J,b,"LAYOUT_TYPE_PANEL",new mu(RJ),O,K,B,S.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,M)}),[];
if(S.actionCompanionAdRenderer!=null){if(S.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return gKW(R.U.get(),R.N,R.T.get(),S.actionCompanionAdRenderer,p,y,V,L);d6(F,n.elementId,C,S.actionCompanionAdRenderer.isContentVideoCompanion,S.actionCompanionAdRenderer.adVideoId,S.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,p,y,function(B,O,K,M){var J=R.T.get(),b=B.slotId,RJ=S.actionCompanionAdRenderer;B=nR(R.Ol.get(),B);return wM(J,b,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
new WF(RJ),O,K,RJ.impressionPings,B,S.actionCompanionAdRenderer.adLayoutLoggingData,M)})}else if(S.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(S.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return OV9(R.U.get(),R.N,R.T.get(),S.topBannerImageTextIconButtonedLayoutViewModel,p,y,V,L);
d6(F,n.elementId,C,S.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,S.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,S.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,p,y,function(B,O,K,M){var J=R.T.get(),b=B.slotId,RJ=S.topBannerImageTextIconButtonedLayoutViewModel;B=nR(R.Ol.get(),B);return S2(J,b,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new uL(RJ),O,K,B,S.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,M)})}else if(S.imageCompanionAdRenderer)d6(F,
n.elementId,C,S.imageCompanionAdRenderer.isContentVideoCompanion,S.imageCompanionAdRenderer.adVideoId,S.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,p,y,function(B,O,K,M){var J=R.T.get(),b=B.slotId,RJ=S.imageCompanionAdRenderer;
B=nR(R.Ol.get(),B);return wM(J,b,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new KL(RJ),O,K,RJ.impressionPings,B,S.imageCompanionAdRenderer.adLayoutLoggingData,M)});
else if(S.bannerImageLayoutViewModel)d6(F,n.elementId,C,S.bannerImageLayoutViewModel.isContentVideoCompanion,S.bannerImageLayoutViewModel.adVideoId,S.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,p,y,function(B,O,K,M){var J=R.T.get(),b=B.slotId,RJ=S.bannerImageLayoutViewModel;B=nR(R.Ol.get(),B);return S2(J,b,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new D4(RJ),O,K,B,S.bannerImageLayoutViewModel.adLayoutLoggingData,M)});
else if(S.shoppingCompanionCarouselRenderer)d6(F,n.elementId,C,S.shoppingCompanionCarouselRenderer.isContentVideoCompanion,S.shoppingCompanionCarouselRenderer.adVideoId,S.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,p,y,function(B,O,K,M){var J=R.T.get(),b=B.slotId,RJ=S.shoppingCompanionCarouselRenderer;B=nR(R.Ol.get(),B);return wM(J,b,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new iL(RJ),O,K,RJ.impressionPings,B,S.shoppingCompanionCarouselRenderer.adLayoutLoggingData,M)});
else if(S.adBreakServiceRenderer){if(!BNk(n))return[];if(C==="AD_PLACEMENT_KIND_PAUSE")return uvV(R.U.get(),p,y,n.renderer.adBreakServiceRenderer,V);if(C!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&C!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return WR9(R.U.get(),p,y,n.renderer.adBreakServiceRenderer,V,r,v);z.Zt||Q2("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:C,adPlacementConfig:p,daiEnabledForContentVideo:String(v),isServedFromLiveInfra:String(z.Zt),clientPlaybackNonce:z.clientPlaybackNonce});
if(C==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!R.F2)return new Z("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!R.Yk)return new Z("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");R.Yk.zS({adPlacementRenderer:n,contentCpn:V,ZN:r});r=R.F2.get().getCurrentTimeSec(1,!1);return ake(R.U.get(),n.renderer.adBreakServiceRenderer,p,r,V,y,v)}if(!R.Zz)return new Z("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");
R.Zz.zS({adPlacementRenderer:n,contentCpn:V,ZN:r})}else{if(S.clientForecastingAdRenderer)return dSW(R.U.get(),R.T.get(),p,y,S.clientForecastingAdRenderer,V,r,L);if(S.invideoOverlayAdRenderer)return EVk(R.U.get(),R.T.get(),p,y,S.invideoOverlayAdRenderer,V,r,L);if(S.instreamAdPlayerOverlayRenderer)return l4f(R.U.get(),R.T.get(),p,y,S.instreamAdPlayerOverlayRenderer,V,L);if((S.linearAdSequenceRenderer||S.instreamVideoAdRenderer)&&u)return RgE(R.U.get(),R.T.get(),n,V,L,Q,!R.WG.get().K.D().B("html5_override_ad_video_length_killswitch"),
w);if(S.linearAdSequenceRenderer&&!u){if(f)return[];J6(F,S,C);if(S.linearAdSequenceRenderer.adLayoutMetadata){if(!AT_(S.linearAdSequenceRenderer))return new Z("Received invalid LinearAdSequenceRenderer.")}else if(S.linearAdSequenceRenderer.linearAds==null)return new Z("Received invalid LinearAdSequenceRenderer.");if(g.A(S.linearAdSequenceRenderer.adStart,Q5)){Q2("Found AdNotify in LinearAdSequenceRenderer");n=g.A(S.linearAdSequenceRenderer.adStart,Q5);if(!etN(n))return new Z("Invalid AdMessageRenderer.");
v=S.linearAdSequenceRenderer.linearAds;return VM9(R.J.get(),R.U.get(),R.T.get(),R.Ol.get(),p,y,n,VQ(S.linearAdSequenceRenderer.adLayoutMetadata)?S.linearAdSequenceRenderer.adLayoutMetadata:void 0,v,V,r,z,L,q,R.loadPolicy,R.WG.get())}return zQI(R.U.get(),R.T.get(),p,y,S.linearAdSequenceRenderer.linearAds,VQ(S.linearAdSequenceRenderer.adLayoutMetadata)?S.linearAdSequenceRenderer.adLayoutMetadata:void 0,V,r,z,L,q,R.loadPolicy,R.WG.get(),c)}if(!S.remoteSlotsRenderer||v){if(S.instreamVideoAdRenderer&&
!u){if(f)return[];J6(F,S,C);return cF_(R.U.get(),R.T.get(),p,y,S.instreamVideoAdRenderer,V,r,z,L,q,R.loadPolicy,R.WG.get(),R.Ol.get(),c)}if(S.instreamSurveyAdRenderer)return wA6(R.U.get(),R.T.get(),S.instreamSurveyAdRenderer,p,y,V,L,kA(R.WG.get(),"supports_multi_step_on_desktop"));if(S.sandwichedLinearAdRenderer!=null)return ame(S.sandwichedLinearAdRenderer)?g.A(S.sandwichedLinearAdRenderer.adVideoStart,Q5)?(Q2("Found AdNotify in SandwichedLinearAdRenderer"),n=g.A(S.sandwichedLinearAdRenderer.adVideoStart,
Q5),etN(n)?(v=g.A(S.sandwichedLinearAdRenderer.linearAd,sf))?te_(n,v,p,R.J.get(),R.U.get(),R.T.get(),R.Ol.get(),y,V,r,z,L,q,R.loadPolicy,R.WG.get()):new Z("Missing IVAR from Sandwich"):new Z("Invalid AdMessageRenderer.")):zQI(R.U.get(),R.T.get(),p,y,[S.sandwichedLinearAdRenderer.adVideoStart,S.sandwichedLinearAdRenderer.linearAd],void 0,V,r,z,L,q,R.loadPolicy,R.WG.get()):new Z("Received invalid SandwichedLinearAdRenderer.");if(S.videoAdTrackingRenderer!=null)return JF_(R.U.get(),R.T.get(),S.videoAdTrackingRenderer,
p,y,V,r,z.X7,L)}}return[]},LB=function(R,F,n,V,r,v,f,z){g.G.call(this);
var q=this;this.U=R;this.N=F;this.Sl=V;this.F2=r;this.WG=v;this.zH=f;this.SB=z;this.T=null;n.get().addListener(this);this.addOnDisposeCallback(function(){n.Zo()||n.get().removeListener(q)});
V.get().addListener(this);this.addOnDisposeCallback(function(){V.Zo()||V.get().removeListener(q)})},Xc=function(R,F,n){var V=R.F2.get().getCurrentTimeSec(1,!1);
R.WG.get().K.D().CC()&&tA(R.zH.get(),"sdai","onopp.1;evt."+n.event+";start."+n.startSecs.toFixed(3)+";d."+n.FP.toFixed(3));rE(R.U.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var r=R.N.get(),v=F.adPlacementRenderer.renderer.adBreakServiceRenderer,f=F.contentCpn,z=F.adPlacementRenderer.adSlotLoggingData;so(R.WG.get());var q=R.zH;var Q=r.WG.get();Q=g.Vn(Q.K.D().experiments,"max_prefetch_window_sec_for_livestream_optimization");var c=r.WG.get();var w=g.Vn(c.K.D().experiments,"min_prefetch_offset_sec_for_livestream_optimization");
c=n.startSecs*1E3;c={eh:new jC(c,c+n.FP*1E3),j6:!1,cueProcessedMs:V*1E3};var L=n.startSecs+n.FP;if(V===0)c.zl=new jC(0,L*1E3);else{w=n.startSecs-w;var S=w-V;c.zl=S<=0?new jC(w*1E3,L*1E3):new jC(Math.floor(V+Math.random()*Math.min(S,Q))*1E3,L*1E3)}v=xU(r,v,f,c,z,[new Ld(n)]);pB(r.WG.get())&&tA(q.get(),"abrsm","cpi."+n.identifier+";cps."+n.startSecs+";cpd."+n.FP+";cts."+V+";rbf."+c.zl.start);q.get().K.Yp(n.startSecs-V,c.zl.start/1E3-V);return[v]})},Aq=function(R){var F,n=(F=PA(R.clientMetadata,"metadata_type_player_bytes_callback_ref"))==
null?void 0:F.current;
if(!n)return null;F=PA(R.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var V=R.layoutId,r=PA(R.clientMetadata,"metadata_type_content_cpn"),v=PA(R.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),f=PA(R.clientMetadata,"metadata_type_player_overlay_layout_renderer"),z=PA(R.clientMetadata,"metadata_type_player_underlay_renderer"),q=PA(R.clientMetadata,"metadata_type_ad_placement_config"),Q=PA(R.clientMetadata,"metadata_type_video_length_seconds");var c=MI(R.clientMetadata,
"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?PA(R.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):MI(R.clientMetadata,"metadata_type_layout_enter_ms")&&MI(R.clientMetadata,"metadata_type_layout_exit_ms")?(PA(R.clientMetadata,"metadata_type_layout_exit_ms")-PA(R.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{BY:V,contentCpn:r,z0:n,pO:F,instreamAdPlayerOverlayRenderer:v,playerOverlayLayoutRenderer:f,instreamAdPlayerUnderlayRenderer:z,adPlacementConfig:q,videoLengthSeconds:Q,
Hn:c,inPlayerLayoutId:PA(R.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:PA(R.clientMetadata,"metadata_type_linked_in_player_slot_id")}},TWN=function(R,F){return Cy_(R,F)},o89=function(R,F){F=Cy_(R,F);
if(!F)return null;var n;F.Hn=(n=PA(R.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:n.adBreakRemainingLengthSeconds;return F},Cy_=function(R,F){var n,V=(n=PA(R.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:n.current;
if(!V)return null;n=rnR(R,F);return{FC:V8I(R,F),adPlacementConfig:PA(R.clientMetadata,"metadata_type_ad_placement_config"),bN:n,contentCpn:PA(R.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:PA(R.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:PA(R.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:PA(R.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,
Hn:void 0,z0:V,BY:R.layoutId,videoLengthSeconds:PA(R.clientMetadata,"metadata_type_video_length_seconds")}},aY=function(R,F,n,V,r,v,f,z,q){g.G.call(this);
this.J=R;this.Z=F;this.W=n;this.N=V;this.T=r;this.U=v;this.Ol=f;this.WG=z;this.Do=q;this.JO=!0},yy9=function(R,F,n){return LuN(R.T.get(),F.contentCpn,F.BY,function(V){return sKv(R.U.get(),V.slotId,n,F.adPlacementConfig,F.BY,nR(R.Ol.get(),V))})},CB=function(R,F,n,V,r,v,f){g.G.call(this);
this.U=R;this.T=F;this.N=n;this.J=V;this.Do=r;this.F2=v;this.tX=f},T_=function(R){g.G.call(this);
this.T=R},rE=function(R,F,n,V){R.T().rV(F,V);
n=n();R=R.T();R.In.T("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",F,V,n);F=g.m(n);for(n=F.next();!n.done;n=F.next())a:{V=R;n=n.value;od(V.In,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",n);od(V.In,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",n);try{var r=V.T;if(g.Re(n.slotId))throw new Z("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(wn(r,n))throw new Z("Duplicate registration for slot.",{slotId:n.slotId,slotEntryTriggerType:n.slotEntryTrigger.triggerType},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");
if(!r.l_.Nf.has(n.slotType))throw new Z("No fulfillment adapter factory registered for slot of type: "+n.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!r.l_.hn.has(n.slotType))throw new Z("No SlotAdapterFactory registered for slot of type: "+n.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");uO(r,"TRIGGER_CATEGORY_SLOT_ENTRY",n.slotEntryTrigger?[n.slotEntryTrigger]:[]);uO(r,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",n.slotFulfillmentTriggers);uO(r,
"TRIGGER_CATEGORY_SLOT_EXPIRATION",n.slotExpirationTriggers);var v=V.T,f=n.slotType+"_"+n.slotPhysicalPosition,z=UQ(v,f);if(wn(v,n))throw new Z("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");z.set(n.slotId,new ZrI(n));v.T.set(f,z)}catch(RJ){RJ instanceof Z&&RJ.SK?(zA(V.In,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",RJ.SK,n),Q2(RJ,n,void 0,void 0,RJ.q2)):(zA(V.In,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",n),Q2(RJ,n));
break a}wn(V.T,n).Z=!0;try{var q=V.T,Q=wn(q,n),c=n.slotEntryTrigger,w=q.l_.FW.get(c.triggerType);w&&(w.zP("TRIGGER_CATEGORY_SLOT_ENTRY",c,n,null),Q.jQ.set(c.triggerId,w));for(var L=g.m(n.slotFulfillmentTriggers),S=L.next();!S.done;S=L.next()){var p=S.value,C=q.l_.FW.get(p.triggerType);C&&(C.zP("TRIGGER_CATEGORY_SLOT_FULFILLMENT",p,n,null),Q.Nq.set(p.triggerId,C))}for(var y=g.m(n.slotExpirationTriggers),u=y.next();!u.done;u=y.next()){var B=u.value,O=q.l_.FW.get(B.triggerType);O&&(O.zP("TRIGGER_CATEGORY_SLOT_EXPIRATION",
B,n,null),Q.UZ.set(B.triggerId,O))}var K=q.l_.Nf.get(n.slotType).get().build(q.N,n);Q.X=K;var M=q.l_.hn.get(n.slotType).get().build(q.W,n);M.init();Q.U=M}catch(RJ){RJ instanceof Z&&RJ.SK?(zA(V.In,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",RJ.SK,n),Q2(RJ,n,void 0,void 0,RJ.q2)):(zA(V.In,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",n),Q2(RJ,n));qQ(V,n,!0);break a}od(V.In,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",n);V.T.V7(n);for(var J=g.m(V.U),b=J.next();!b.done;b=
J.next())b.value.V7(n);pR(V,n)}},oY=function(R,F,n,V,r){g.G.call(this);
var v=this;this.U=R;this.N=F;this.wW=n;this.context=r;this.T=new Map;V.get().addListener(this);this.addOnDisposeCallback(function(){V.Zo()||V.get().removeListener(v)})},oK6=function(R,F){var n=0x8000000000000,V=0,r=0x8000000000000;
var v=g.m(F.slotFulfillmentTriggers);for(var f=v.next();!f.done;f=v.next())if(f=f.value,f instanceof kp){var z=f.T.start;n=Math.min(n,z);V=Math.max(V,f.T.end);f.visible&&(r=Math.min(r,z))}else Q2("Found unexpected fulfillment trigger for throttled slot.",F,null,{fulfillmentTrigger:f});v=n;r=r<0x8000000000000&&n<r?r:void 0;n="throttledadcuerange:"+F.slotId;R.T.set(n,F);F=kA(R.context.WG.get(),"use_cue_range_marker_position")?r:void 0;R.wW.get().addCueRange(n,v,V,!1,R,void 0,void 0,void 0,F)},y5=function(){g.G.apply(this,
arguments);
this.JO=!0;this.cW=new Map;this.T=new Map},Uo=function(R,F){R=g.m(R.cW.values());
for(var n=R.next();!n.done;n=R.next())if(n.value.layoutId===F)return!0;return!1},j2=function(R,F){R=g.m(R.T.values());
for(var n=R.next();!n.done;n=R.next()){n=g.m(n.value);for(var V=n.next();!V.done;V=n.next())if(V=V.value,V.layoutId===F)return V}Q2("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.Re(F)),layoutId:F})},UI_=function(R,F){this.callback=R;
this.slot=F},HG=function(){},jAI=function(R,F,n){this.callback=R;
this.slot=F;this.F2=n},Hd9=function(R,F,n){this.callback=R;
this.slot=F;this.F2=n;this.U=!1;this.T=0},hQ9=function(R,F,n){this.callback=R;
this.slot=F;this.F2=n},hq=function(R){this.F2=R},WG=function(R){g.G.call(this);
this.eC=R;this.MC=new Map},uD=function(R,F){for(var n=[],V=g.m(R.MC.values()),r=V.next();!r.done;r=V.next()){r=r.value;
var v=r.trigger;v instanceof Rw&&v.triggeringLayoutId===F&&n.push(r)}n.length?CR(R.eC(),n):Q2("Survey is submitted but no registered triggers can be activated.")},BG=function(R,F,n){WG.call(this,R);
var V=this;this.WG=n;F.get().addListener(this);this.addOnDisposeCallback(function(){F.Zo()||F.get().removeListener(V)})},m1=function(R){g.G.call(this);
this.T=R;this.JO=!0;this.MC=new Map;this.W=new Set;this.N=new Set;this.J=new Set;this.Z=new Set;this.U=new Set},gM=function(R){g.G.call(this);
this.T=R;this.MC=new Map},Oo=function(R,F){for(var n=[],V=g.m(R.MC.values()),r=V.next();!r.done;r=V.next())r=r.value,r.trigger.T===F.layoutId&&n.push(r);
n.length&&CR(R.T(),n)},IY=function(R,F,n){g.G.call(this);
var V=this;this.T=R;this.context=n;this.MC=new Map;F.get().addListener(this);this.addOnDisposeCallback(function(){F.Zo()||F.get().removeListener(V)})},KB=function(R,F,n,V){g.G.call(this);
var r=this;this.U=R;this.wW=F;this.F2=n;this.Do=V;this.JO=!0;this.MC=new Map;this.T=new Set;n.get().addListener(this);this.addOnDisposeCallback(function(){n.Zo()||n.get().removeListener(r)})},WgN=function(R,F,n,V,r,v,f,z,q,Q){if(fb(R.Do.get(),1).clientPlaybackNonce!==q)throw new Z("Cannot register CueRange-based trigger for different content CPN",{trigger:n});
R.MC.set(n.triggerId,{f9:new nj(F,n,V,r),cueRangeId:v});R.wW.get().addCueRange(v,f,z,Q,R)},uFN=function(R,F){R=g.m(R.MC.entries());
for(var n=R.next();!n.done;n=R.next()){var V=g.m(n.value);n=V.next().value;V=V.next().value;if(F===V.cueRangeId)return n}return""},Dy=function(R,F){g.G.call(this);
var n=this;this.J=R;this.U=new Map;this.N=new Map;this.T=null;F.get().addListener(this);this.addOnDisposeCallback(function(){F.Zo()||F.get().removeListener(n)});
var V;this.T=((V=F.get().c5)==null?void 0:V.slotId)||null},BWf=function(R,F){var n=[];
R=g.m(R.values());for(var V=R.next();!V.done;V=R.next())V=V.value,V.slot.slotId===F&&n.push(V);return n},iD=function(R){g.G.call(this);
this.T=R;this.JO=!0;this.MC=new Map},FB=function(R,F){F=F.layoutId;
for(var n=[],V=g.m(R.MC.values()),r=V.next();!r.done;r=V.next())if(r=r.value,r.trigger instanceof dI){var v;if(v=r.trigger.layoutId===F)v=(v=Mr6.get(r.category))?v==="normal":!1;v&&n.push(r)}n.length&&CR(R.T(),n)},xE=function(R){g.G.call(this);
this.T=R;this.JO=!0;this.MC=new Map},kE=function(R,F,n,V,r,v){g.G.call(this);
var f=this;this.Z=R;this.Sl=F;this.F2=n;this.zH=V;this.Zz=v;this.T=null;this.J=!1;this.JO=!0;this.MC=new Map;F.get().addListener(this);this.addOnDisposeCallback(function(){F.Zo()||F.get().removeListener(f)});
r.get().addListener(this);this.addOnDisposeCallback(function(){r.Zo()||r.get().removeListener(f)})},OdN=function(R){tA(R.zH.get(),"ads_ce","bdc."+mIk(R).length+";fi."+!!R.T+";fet."+!!R.U);
R.T&&(R.J=!0,R.U&&(R.U.stop(),R.U.start()),g8E(R,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))},g8E=function(R,F){for(var n=[],V=g.m(R.MC.values()),r=V.next();!r.done;r=V.next())r=r.value,r.trigger.triggerType===F&&n.push(r);
n.length>0&&CR(R.Z(),n)},YE=function(R,F,n,V,r){for(var v=[],f=g.m(R.MC.values()),z=f.next();!z.done;z=f.next()){var q=z=z.value,Q=q.trigger;
q=q.slot;if(Q.triggerType===F){if(Q instanceof Df||Q instanceof iC||Q instanceof Yp){if(r&&Q.breakDurationMs!==n)continue;if(!r&&Q.breakDurationMs===n)continue;if(V.has(q.slotId))continue}v.push(z)}}v.length>0&&CR(R.Z(),v)},IkN=function(R,F){F=(F.FP+1)*1E3;
var n=void 0;R=g.m(R.MC.values());for(var V=R.next();!V.done;V=R.next()){var r=V.value;V=r.trigger;r=r.slot;V instanceof Df&&V.breakDurationMs<=F&&(!n||V.breakDurationMs>n.trigger.breakDurationMs)&&(n={slot:r,trigger:V})}return n},Kg9=function(R){R=R.adPlacementRenderer.config.adPlacementConfig;
if(!R.prefetchModeConfig||!R.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;R=Number(R.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(R)||R<=0?0:Math.floor(Math.random()*R)},DIN=function(R){R=R.adPlacementRenderer.config.adPlacementConfig;
if(R.prefetchModeConfig&&R.prefetchModeConfig.cacheFetchRefreshDurationMs&&(R=Number(R.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(R)||R<=0)))return R},Jq=function(R){R.T=null;
R.MC.clear();R.U&&R.U.stop();R.W&&R.W.stop();var F;(F=R.N)==null||F.stop();delete R.N},mIk=function(R){var F=[];
R=g.m(R.MC.values());for(var n=R.next();!n.done;n=R.next())n=n.value.trigger,n instanceof Df&&F.push(n.breakDurationMs);return F},G_=function(R){g.G.call(this);
this.N=R;this.JO=!0;this.MC=new Map;this.T=new Map;this.U=new Map},idW=function(R,F){var n=[];
if(F=R.T.get(F.layoutId)){F=g.m(F);for(var V=F.next();!V.done;V=F.next())(V=R.U.get(V.value.triggerId))&&n.push(V)}return n},dM=function(){g.G.call(this);
this.MC=new Map},ku=function(R){switch(R){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"}},xI_=function(R){switch(R){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";
case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}},kav=function(R,F){var n={slotId:vT(F,"SLOT_TYPE_IN_PLAYER"),
slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],qq:"surface",clientMetadata:new $8([])},V=Object,r=V.assign;F=YA(F,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",n.slotId);F={layoutId:F,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",NC:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:"surface",clientMetadata:new $8([]),
gg:KfV(!1,n.slotId,n.slotType,n.slotPhysicalPosition,n.qq,n.slotEntryTrigger,n.slotFulfillmentTriggers,n.slotExpirationTriggers,F,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return r.call(V,{},R,{aoQ:!0,slot:n,layout:F})},hA6=function(R,F,n,V){var r=R.kind;
V=V?!1:!R.hideCueRangeMarker;switch(r){case "AD_PLACEMENT_KIND_START":return V={eh:new jC(-0x8000000000000,-0x8000000000000),j6:V},n!=null&&(V.zl=new jC(-0x8000000000000,-0x8000000000000)),V;case "AD_PLACEMENT_KIND_END":return V={eh:new jC(0x7ffffffffffff,0x8000000000000),j6:V},n!=null&&(V.zl=new jC(Math.max(0,F-n),0x8000000000000)),V;case "AD_PLACEMENT_KIND_MILLISECONDS":r=R.adTimeOffset;r.offsetStartMilliseconds||Q2("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");r.offsetEndMilliseconds||
Q2("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");R=Number(r.offsetStartMilliseconds);r=Number(r.offsetEndMilliseconds);r===-1&&(r=F);if(Number.isNaN(R)||Number.isNaN(r)||R>r)return new Z("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:R,offsetEndMs:r},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",r===F&&R-500<=r);V={eh:new jC(R,r),j6:V};if(n!=null){R=Math.max(0,R-n);if(R===r)return V;V.zl=new jC(R,r)}return V;default:return new Z("AdPlacementKind not supported in convertToRange.",
{kind:r,adPlacementConfig:R})}},YD_=function(R){if(!R||!R.adPlacements&&!R.adSlots)return!1;
for(var F=g.m(R.adPlacements||[]),n=F.next();!n.done;n=F.next())if(n=n.value)if(n=n.adPlacementRenderer,n!=null&&(n.config&&n.config.adPlacementConfig&&n.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;R=g.m(R.adSlots||[]);for(F=R.next();!F.done;F=R.next()){var V=n=void 0;if(((n=g.A(F.value,WS))==null?void 0:(V=n.adSlotMetadata)==null?void 0:V.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1},MV=function(R){this.WG=R;
this.U=new Map;this.T=new Map;this.N=new Map},vT=function(R,F){if(lD(R.WG.get())){var n=R.U.get(F)||0;
n++;R.U.set(F,n);return F+"_"+n}return g.s$(16)},YA=function(R,F,n){if(lD(R.WG.get())){var V=R.T.get(F)||0;
V++;R.T.set(F,V);return n+"_"+F+"_"+V}return g.s$(16)},vG=function(R,F){if(lD(R.WG.get())){var n=R.N.get(F)||0;
n++;R.N.set(F,n);return F+"_"+n}return g.s$(16)},Jy6=function(R){var F=[new vA(R.BY),
new Qm(R.z0),new YV(R.adPlacementConfig),new pd(R.videoLengthSeconds),new mg(R.Hn)];R.instreamAdPlayerOverlayRenderer&&F.push(new EX(R.instreamAdPlayerOverlayRenderer));R.playerOverlayLayoutRenderer&&F.push(new $V(R.playerOverlayLayoutRenderer));R.pO&&F.push(new MS(R.pO));return F},GaE=function(R,F,n,V,r,v){R=n.inPlayerLayoutId?n.inPlayerLayoutId:YA(v,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",R);
var f,z,q=n.instreamAdPlayerOverlayRenderer?(f=n.instreamAdPlayerOverlayRenderer)==null?void 0:f.adLayoutLoggingData:(z=n.playerOverlayLayoutRenderer)==null?void 0:z.adLayoutLoggingData;f={layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",qq:F};return{layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",NC:new Map,layoutExitNormalTriggers:[new IU(function(Q){return vG(v,Q)},n.BY)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:F,clientMetadata:V,gg:r(f),adLayoutLoggingData:q}},NV=function(R){var F=this;
this.U=R;this.T=function(n){return vG(F.U.get(),n)}},sKv=function(R,F,n,V,r,v){n=new $8([new PF(n),
new YV(V)]);F=YA(R.U.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",F);V={layoutId:F,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",qq:"core"};return{layoutId:F,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",NC:new Map,layoutExitNormalTriggers:[new IU(function(f){return vG(R.U.get(),f)},r)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:"core",clientMetadata:n,gg:v(V),adLayoutLoggingData:void 0}},b8=function(R,F,n,V,r){var v=Jy6(V);
return GaE(F,n,V,new $8(v),r,R.U.get())},dI9=function(R,F,n,V,r){var v=Jy6(V);
v.push(new xV(V.FC));v.push(new kV(V.bN));return GaE(F,n,V,new $8(v),r,R.U.get())},wM=function(R,F,n,V,r,v,f,z,q,Q){F=YA(R.U.get(),n,F);
var c={layoutId:F,layoutType:n,qq:"core"},w=new Map;f&&w.set("impression",f);f=[new JA(R.T,r,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];Q&&f.push(new Ok(R.T,Q,["normal"]));return{layoutId:F,layoutType:n,NC:w,layoutExitNormalTriggers:f,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:"core",clientMetadata:new $8([V,new YV(v),new vA(r)]),gg:z(c),adLayoutLoggingData:q}},S2=function(R,F,n,V,r,v,f,z,q){F=YA(R.U.get(),
n,F);
var Q={layoutId:F,layoutType:n,qq:"core"},c=[new JA(R.T,r,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];q&&c.push(new Ok(R.T,q,["normal"]));return{layoutId:F,layoutType:n,NC:new Map,layoutExitNormalTriggers:c,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:"core",clientMetadata:new $8([V,new YV(v),new vA(r)]),gg:f(Q),adLayoutLoggingData:z}},tq=function(R,F,n){var V=[];
V.push(new GT(R.T,n));F&&V.push(F);return V},fB=function(R,F,n,V,r,v,f){var z={layoutId:F,
layoutType:n,qq:"core"};return{layoutId:F,layoutType:n,NC:new Map,layoutExitNormalTriggers:f,layoutExitSkipTriggers:[new uC(R.T,F)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:"core",clientMetadata:new $8([new IK(V),new YV(r)]),gg:v(z),adLayoutLoggingData:V.adLayoutLoggingData}},N9=function(R,F,n,V,r,v,f,z){var q={layoutId:F,
layoutType:v,qq:"core"};return{layoutId:F,layoutType:v,NC:new Map,layoutExitNormalTriggers:[new IU(R.T,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:"core",clientMetadata:new $8([new YV(V)].concat(g.I(f))),gg:r(q),adLayoutLoggingData:z}},$SJ=function(R,F,n,V,r,v,f,z,q,Q,c,w){R=z_(R,F,n,V,r,v,f,z,c,w);
F=R.yY;n=new ty(R.Ib);V=R.layoutExitSkipTriggers;q>0&&(F.push(n),F.push(new dY(q)),V=[]);F.push(new Gm(Q));return{hm:{layoutId:R.layoutId,layoutType:R.layoutType,NC:R.NC,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:R.qq,clientMetadata:new $8(F),gg:R.gg,adLayoutLoggingData:R.adLayoutLoggingData},D8:V,kY:R.layoutExitMuteTriggers,mu:R.layoutExitUserInputSubmittedTriggers,Uy:R.layoutExitUserCancelledTriggers,
Ir:R.Ir}},egN=function(R,F,n,V,r,v,f,z,q){F=z_(R,F,n,V,r,new Map,v,function(Q){return f(Q,z)});
R=new Rw(R.T,F.Ib);n=new ty(F.Ib);q=new Gm(q);return{hm:{layoutId:F.layoutId,layoutType:F.layoutType,NC:F.NC,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:F.qq,clientMetadata:new $8([].concat(g.I(F.yY),[n,q])),gg:F.gg,adLayoutLoggingData:F.adLayoutLoggingData},D8:F.layoutExitSkipTriggers,kY:F.layoutExitMuteTriggers,mu:[].concat(g.I(F.layoutExitUserInputSubmittedTriggers),[R]),Uy:F.layoutExitUserCancelledTriggers,
Ir:F.Ir}},z_=function(R,F,n,V,r,v,f,z,q,Q){F=YA(R.U.get(),"LAYOUT_TYPE_MEDIA_BREAK",F);
var c={layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",qq:"adapter"};z=z(F);var w=PA(z.clientMetadata,"metadata_type_fulfilled_layout");w||Q2("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var L=w?w.layoutId:"";n=[new YV(n),new gW(V),new Kd(r)];w&&n.push(new za(w.layoutType));Q&&n.push(new oA(Q));return{layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",NC:v,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new Nw(R.T,L)],layoutExitMuteTriggers:[],
layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:"adapter",yY:n,gg:f(c),adLayoutLoggingData:q,Ir:z,Ib:L}},wF_=function(R,F,n,V,r,v,f,z,q,Q,c){R=MMe(R,F,"core",n,V,r,v,f,z,q,Q,void 0,c);
return{layoutId:R.layoutId,layoutType:R.layoutType,NC:R.NC,layoutExitNormalTriggers:R.layoutExitNormalTriggers,layoutExitSkipTriggers:R.layoutExitSkipTriggers,layoutExitMuteTriggers:R.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:R.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:R.layoutExitUserCancelledTriggers,qq:R.qq,clientMetadata:new $8(R.jz),gg:R.gg,adLayoutLoggingData:R.adLayoutLoggingData}},QAE=function(R,F,n,V,r,v,f,z,q,Q,c,w,L){F=MMe(R,F,"adapter",n,V,
r,v,f,z,q,c,w,L);
V=F.layoutExitSkipTriggers;r=F.jz;n.adPodSkipTarget&&n.adPodSkipTarget>0&&(r.push(Q),r.push(new dY(n.adPodSkipTarget)),V=[]);r.push(new Gm(z.adPodIndex));n.isCritical&&(V=[new Ok(R.T,F.layoutId,["error"])].concat(g.I(V)));return{hm:{layoutId:F.layoutId,layoutType:F.layoutType,NC:F.NC,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:F.qq,clientMetadata:new $8(r),gg:F.gg,adLayoutLoggingData:F.adLayoutLoggingData},
D8:V,kY:F.layoutExitMuteTriggers,mu:F.layoutExitUserInputSubmittedTriggers,Uy:F.layoutExitUserCancelledTriggers}},MMe=function(R,F,n,V,r,v,f,z,q,Q,c,w,L){var S={layoutId:F,
layoutType:"LAYOUT_TYPE_MEDIA",qq:n};r=[new YV(r),new JF(q),new lL(V.externalVideoId),new NS(z),new Kd({impressionCommands:V.impressionCommands,abandonCommands:V.onAbandonCommands,completeCommands:V.completeCommands,progressCommands:V.adVideoProgressCommands}),new XF(v),new cA({current:null}),new pd(f)];(v=V.playerOverlay.instreamAdPlayerOverlayRenderer)&&r.push(new EX(v));(f=V.playerOverlay.playerOverlayLayoutRenderer)&&r.push(new $V(f));w&&r.push(new Ay(w));(w=V.playerUnderlay)&&r.push(new PF(w));
z=vT(R.U.get(),"SLOT_TYPE_IN_PLAYER");w=(w=v?v.elementId:f==null?void 0:f.layoutId)?w:YA(R.U.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",z);r.push(new ty(w));r.push(new qI(z));r.push(new oA(q.adPodIndex));V.adNextParams&&r.push(new gY(V.adNextParams));V.shrunkenPlayerBytesConfig&&r.push(new ee(V.shrunkenPlayerBytesConfig));V.clickthroughEndpoint&&r.push(new OX(V.clickthroughEndpoint));V.legacyInfoCardVastExtension&&r.push(new OD(V.legacyInfoCardVastExtension));V.sodarExtensionData&&r.push(new aA(V.sodarExtensionData));
c&&r.push(new BA(c));r.push(new x8(Ly(V.pings)));q=sF(V.pings);if(L){a:{L=g.m(L);for(c=L.next();!c.done;c=L.next())if(c=c.value,c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(v=g.A(c.fulfillmentContent.fulfilledLayout,HS))&&(v=g.A(v.renderingContent,Uf))&&v.associatedPlayerBytesLayoutId===F){L=c;break a}L=void 0}L&&r.push(new bL(L))}return{layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA",NC:q,layoutExitNormalTriggers:[new dI(R.T,F)],layoutExitSkipTriggers:V.skipOffsetMilliseconds?[new Nw(R.T,
w)]:[],layoutExitMuteTriggers:[new Nw(R.T,w)],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:n,jz:r,gg:Q(S),adLayoutLoggingData:V.adLayoutLoggingData}},nVe=function(R,F,n,V,r,v,f,z,q){V.every(function(c){return ly(c,[],["LAYOUT_TYPE_MEDIA"])})||Q2("Unexpect subLayout type for DAI composite layout");
F=YA(R.U.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",F);var Q={layoutId:F,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",qq:"core"};return{layoutId:F,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",NC:new Map,layoutExitNormalTriggers:[new Kf(R.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qq:"core",clientMetadata:new $8([new Cd(n),new Ta(z),new SM(V),new YV(r),new HA(v),new ym({}),new Y8(q)]),gg:f(Q)}},bV6=function(R){return R!=
null},Eo=function(R,F,n){var V=this;
this.U=R;this.N=F;this.WG=n;this.T=function(r){return vG(V.U.get(),r)}},ake=function(R,F,n,V,r,v,f){if(!n.prefetchModeConfig)return new Z("AdPlacementConfig for Live Prefetch is missing prefetch_config");
n=n.prefetchModeConfig;V*=1E3;var z=[];if(!n.breakLengthMs)return new Z("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var q=g.m(n.breakLengthMs),Q=q.next();!Q.done;Q=q.next())if(Q=Q.value,Number(Q)>0){var c=V+Number(n.startTimeOffsetMs),w=c+Number(n.cacheFetchSmearingDurationMs);Q={eh:new jC(w,w+Number(Q)),j6:!1,zl:new jC(Math.floor(c+Math.random()*Number(n.cacheFetchSmearingDurationMs)),w),cueProcessedMs:V?V:c};c=[];c.push(new dW({}));w=[];w.push(new lC(R.T));w.push(new YIN(R.T));
f&&c.push(new ym({}));z.push(xU(R,F,r,Q,v,c,w))}return z},xU=function(R,F,n,V,r,v,f){v=v===void 0?[]:v;
var z=vT(R.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST");f||(f=[],V.zl&&V.zl.start!==V.eh.start&&f.push(new kp(R.T,n,new jC(V.zl.start,V.eh.start),!1)),f.push(new kp(R.T,n,new jC(V.eh.start,V.eh.end),V.j6)));V={getAdBreakUrl:F.getAdBreakUrl,Ro:V.eh.start,hK:V.eh.end,cueProcessedMs:V.cueProcessedMs};F=new bC(R.T,z);v=[new WA(V)].concat(g.I(v));return{slotId:z,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:f,slotExpirationTriggers:[new Mw(R.T,n),new $p(R.T,
z),new Pg(R.T,z)],qq:"core",clientMetadata:new $8(v),adSlotLoggingData:r}},NWj=function(R,F,n){var V=[];
n=g.m(n);for(var r=n.next();!r.done;r=n.next())V.push(lkN(R,F,r.value));return V},lkN=function(R,F,n){return n.triggeringSlotId!=null&&n.triggeringSlotId===R?n.clone(F):n},kyE=function(R,F,n,V,r){return E8k(R,F,n,V,r)},PLe=function(R,F,n,V){var r=vT(R.U.get(),"SLOT_TYPE_IN_PLAYER");
return E8k(R,r,F,n,V)},E8k=function(R,F,n,V,r){var v=new gI(R.T,n),f=[new Ek(R.T,F)];
R=[new $p(R.T,F),new Mw(R.T,V)];return{slotId:F,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:v,slotFulfillmentTriggers:f,slotExpirationTriggers:R,qq:"core",clientMetadata:new $8([new hy(r({slotId:F,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,qq:"core",slotEntryTrigger:v,slotFulfillmentTriggers:f,slotExpirationTriggers:R},n))]),adSlotLoggingData:void 0}},cy_=function(R,F,n,V,r,v){var f=vT(R.U.get(),"SLOT_TYPE_PLAYER_BYTES"),z=vT(R.U.get(),"SLOT_TYPE_IN_PLAYER"),
q=YA(R.U.get(),"LAYOUT_TYPE_SURVEY",z);
V=$E(R,F,n,V);var Q=[new Ek(R.T,f)];n=[new $p(R.T,f),new Mw(R.T,n),new uC(R.T,q)];if(V instanceof Z)return V;v=v({slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,qq:"core",slotEntryTrigger:V,slotFulfillmentTriggers:Q,slotExpirationTriggers:n},{slotId:z,layoutId:q});z=v.u2G;return[{slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:Q,slotExpirationTriggers:n,qq:"core",clientMetadata:new $8([new hy(v.rJH),new Ga({qf:R.qf(F)})]),
adSlotLoggingData:r},z]},SXR=function(R,F,n,V,r){r=r?r:vT(R.U.get(),"SLOT_TYPE_IN_PLAYER");
n=new gI(R.T,n);var v=[new Ek(R.T,r)];R=[new Mw(R.T,F),new $p(R.T,r)];return{slotId:r,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:v,slotExpirationTriggers:R,qq:"core",clientMetadata:new $8([new hy(V({slotId:r,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,qq:"core",slotEntryTrigger:n,slotFulfillmentTriggers:v,slotExpirationTriggers:R}))])}},LuN=function(R,F,n,V){var r=vT(R.U.get(),"SLOT_TYPE_PLAYER_UNDERLAY");
n=new gI(R.T,n);var v=[new Ek(R.T,r)];R=[new Mw(R.T,F),new $p(R.T,r)];return{slotId:r,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:v,slotExpirationTriggers:R,qq:"core",clientMetadata:new $8([new hy(V({slotId:r,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,qq:"core",slotEntryTrigger:n,slotFulfillmentTriggers:v,slotExpirationTriggers:R}))])}},vVN=function(R,F,n,V,r,v,f){var z=vT(R.U.get(),"SLOT_TYPE_IN_PLAYER"),q=YA(R.U.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
z);
V=$IV(R,V,v,f,q);if(V instanceof Z)return V;f=[new Ek(R.T,z)];r=[new Mw(R.T,v),new Ek(R.T,r),new e9(R.T,r)];n=nR(n,{slotId:z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,qq:"core",slotEntryTrigger:V,slotFulfillmentTriggers:f,slotExpirationTriggers:r});R=R.N.get();v={layoutId:q,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",qq:"core"};F={layoutId:q,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",NC:new Map,layoutExitNormalTriggers:[new $Tk(R.T,q,F.durationMs)],layoutExitSkipTriggers:[new b2v(R.T,
q,F.durationMs)],layoutExitUserCancelledTriggers:[new PjE(R.T,q)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qq:"core",clientMetadata:new $8([new IA(F)]),gg:n(v)};return{slotId:z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,qq:"core",slotEntryTrigger:V,slotFulfillmentTriggers:f,slotExpirationTriggers:r,clientMetadata:new $8([new hy(F)])}},NYN=function(R,F,n,V,r,v){F=$E(R,F,n,V);
if(F instanceof Z)return F;var f=F instanceof kp?new laI(R.T,n,F.T):null;V=vT(R.U.get(),"SLOT_TYPE_IN_PLAYER");var z=[new Ek(R.T,V)];R=[new Mw(R.T,n),new $p(R.T,V)];v=v({slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,qq:"core",slotEntryTrigger:F,slotFulfillmentTriggers:z,slotExpirationTriggers:R},f);return v instanceof ED?new Z(v):{slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:z,slotExpirationTriggers:R,qq:"core",clientMetadata:new $8([new hy(v)]),
adSlotLoggingData:r}},MeE=function(R,F,n,V){var r=vT(R.U.get(),"SLOT_TYPE_IN_PLAYER"),v=new Wg(R.T,F),f=[new Zf(R.T,r)];
R=[new Mw(R.T,F),new $p(R.T,r)];return{slotId:r,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:v,slotFulfillmentTriggers:f,slotExpirationTriggers:R,qq:"core",clientMetadata:new $8([new hy(V({slotId:r,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,qq:"core",slotEntryTrigger:v,slotFulfillmentTriggers:f,slotExpirationTriggers:R}))]),adSlotLoggingData:n}},lmE=function(R,F,n,V){var r=vT(R.U.get(),"SLOT_TYPE_IN_PLAYER");
n=new gI(R.T,n);var v=[new Ek(R.T,r)],f=[new $p(R.T,r),new Mw(R.T,F)];v={slotId:r,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,qq:"core",slotEntryTrigger:n,slotFulfillmentTriggers:v,slotExpirationTriggers:f};return{slotId:r,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:[new Ek(R.T,r)],slotExpirationTriggers:[new Mw(R.T,F),new $p(R.T,r)],qq:"core",clientMetadata:new $8([new hy(V(v))])}},GyW=function(R,F,n,V,r){var v=vT(R.U.get(),"SLOT_TYPE_IN_PLAYER");
n=new m7(R.T,V,n);V=[new Ek(R.T,v)];R=[new Mw(R.T,F)];return{slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:V,slotExpirationTriggers:R,qq:"core",clientMetadata:new $8([new hy(r({slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,qq:"core",slotEntryTrigger:n,slotFulfillmentTriggers:V,slotExpirationTriggers:R}))])}},D0e=function(R,F,n,V,r,v){var f=vT(R.U.get(),F);
return PG(R,f,F,new gI(R.T,V),[new Mw(R.T,n),new $p(R.T,f),new Ok(R.T,V,["error"])],r,v)},KRJ=function(R,F,n,V,r,v,f){var z=vT(R.U.get(),F);
return PG(R,z,F,new Ok(R.T,r,["normal"]),[new Mw(R.T,n),new $p(R.T,z),new Ok(R.T,V,["error"])],v,f)},m0V=function(R,F,n,V,r){var v=vT(R.U.get(),F);
return PG(R,v,F,new Wg(R.T,n),[new Mw(R.T,n),new $p(R.T,v)],V,r)},YXV=function(R,F,n,V,r){n=n?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";
var v=vT(R.U.get(),n);F=new Wg(R.T,F);var f=[new Ek(R.T,v)];R=[new $p(R.T,v)];return{slotId:v,slotType:n,slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:f,slotExpirationTriggers:R,qq:"core",clientMetadata:new $8([new hy(r({slotId:v,slotType:n,slotPhysicalPosition:1,qq:"core",slotEntryTrigger:F,slotFulfillmentTriggers:f,slotExpirationTriggers:R}))]),adSlotLoggingData:V}},ZVv=function(R,F,n,V,r){var v=vT(R.U.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new xp(R.T),z=[new Zf(R.T,v)];
R=[new Mw(R.T,F)];F=[];F.push(new hy(V({slotId:v,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,qq:"core",slotEntryTrigger:f,slotFulfillmentTriggers:z,slotExpirationTriggers:R})));F.push(new ym({}));r&&F.push(new sD({current:r}));return{slotId:v,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:z,slotExpirationTriggers:R,qq:"core",clientMetadata:new $8(F),adSlotLoggingData:n}},fkR=function(R,F){return XAV(R.WG.get())?new Ok(R.T,F,["normal",
"error","skipped"]):new Ok(R.T,F,["normal"])},qXI=function(R,F,n,V,r){F=fkR(R,F);
R=qV(R,F,n);r=r({slotId:R.slotId,slotType:R.slotType,slotPhysicalPosition:R.slotPhysicalPosition,slotEntryTrigger:R.slotEntryTrigger,slotFulfillmentTriggers:R.slotFulfillmentTriggers,slotExpirationTriggers:R.slotExpirationTriggers,qq:R.qq});return r instanceof Z?r:{Cv:Object.assign({},R,{clientMetadata:new $8([new hy(r.layout)]),adSlotLoggingData:V}),Zj:r.Zj}},QK9=function(R,F,n,V,r,v,f){n=tMj(R,F,n,V);
if(n instanceof Z)return n;f=f({slotId:n.slotId,slotType:n.slotType,slotPhysicalPosition:n.slotPhysicalPosition,slotEntryTrigger:n.slotEntryTrigger,slotFulfillmentTriggers:n.slotFulfillmentTriggers,slotExpirationTriggers:n.slotExpirationTriggers,qq:n.qq});if(f instanceof Z)return f;R=[new hy(f.layout),new Ga({qf:R.qf(F)})];v&&R.push(new Dk({}));return{Cv:{slotId:n.slotId,slotType:n.slotType,slotPhysicalPosition:n.slotPhysicalPosition,slotEntryTrigger:n.slotEntryTrigger,slotFulfillmentTriggers:n.slotFulfillmentTriggers,
slotExpirationTriggers:n.slotExpirationTriggers,qq:n.qq,clientMetadata:new $8(R),adSlotLoggingData:r},Zj:f.Zj}},qV=function(R,F,n){var V=vT(R.U.get(),"SLOT_TYPE_PLAYER_BYTES"),r=[new Ek(R.T,V)];
R=[new $p(R.T,V),new Mw(R.T,n)];return{slotId:V,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:r,slotExpirationTriggers:R,qq:"core"}},tMj=function(R,F,n,V){F=$E(R,F,n,V);
return F instanceof Z?F:qV(R,F,n)},Gmf=function(R,F,n,V,r,v){var f=vT(R.U.get(),"SLOT_TYPE_FORECASTING");
F=$E(R,F,n,V);if(F instanceof Z)return F;V=[new Ek(R.T,f)];R=[new $p(R.T,f),new Mw(R.T,n)];return{slotId:f,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:V,slotExpirationTriggers:R,qq:"core",clientMetadata:new $8([new hy(v({slotId:f,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,qq:"core",slotEntryTrigger:F,slotFulfillmentTriggers:V,slotExpirationTriggers:R}))]),adSlotLoggingData:r}},PyJ=function(R,F,n,V,r){var v=!F.hideCueRangeMarker;
switch(F.kind){case "AD_PLACEMENT_KIND_START":return new Wg(R.T,n);case "AD_PLACEMENT_KIND_MILLISECONDS":return R=hA6(F,V),R instanceof Z?R:r(R.eh,v);case "AD_PLACEMENT_KIND_END":return new Bg(R.T,n,v);default:return new Z("Cannot construct entry trigger",{kind:F.kind})}},$IV=function(R,F,n,V,r){return PyJ(R,F,n,V,function(v,f){return new MBR(R.T,n,v,f,r)})},$E=function(R,F,n,V){return PyJ(R,F,n,V,function(r,v){return new kp(R.T,n,r,v)})},PG=function(R,F,n,V,r,v,f){R=[new Zf(R.T,F)];
return{slotId:F,slotType:n,slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:R,slotExpirationTriggers:r,qq:"core",clientMetadata:new $8([new hy(f({slotId:F,slotType:n,slotPhysicalPosition:1,qq:"core",slotEntryTrigger:V,slotFulfillmentTriggers:R,slotExpirationTriggers:r}))]),adSlotLoggingData:v}},fJE=function(){},bD=function(R,F){g.G.call(this);
this.WG=R;this.U=F;this.eventCount=0;this.N=twV()()},od=function(R,F,n){R.T(F,void 0,void 0,void 0,n,void 0,void 0,void 0,n.adSlotLoggingData)},S4=function(R,F,n,V){R.T(F,void 0,void 0,void 0,n,V?V:void 0,void 0,void 0,n.adSlotLoggingData,V?V.adLayoutLoggingData:void 0);
n=hw().resolve(oS(Q8))==null?void 0:cq();F=n==null?void 0:n.adsSeenHotConfig;n=n==null?void 0:n.adsHotConfig;(F==null?0:F.logOnAdsSeen)&&(n==null?0:n.webEnablePremiumAdsSeenLogging)&&bdf(R,V?V:void 0)},dMW=function(R,F,n,V){kA(R.WG.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED","trigger:",n,"slot:",F,"layout:",V);
Fi(R.U.get())&&R.T("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,F,V?V:void 0,void 0,n,F.adSlotLoggingData,V?V.adLayoutLoggingData:void 0)},zA=function(R,F,n,V,r){R.T("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,V,r,void 0,void 0,V.adSlotLoggingData,r?r.adLayoutLoggingData:void 0,{errorType:F,
errorMessage:n})},bdf=function(R,F){if(F){var n=F.adLayoutLoggingData;
g.R8(g.n3(),function(){R.N!=null&&n&&g.LJ("adsSeenClientLogging",{serializedAdServingDataEntry:n.serializedAdServingDataEntry})},0)}},Zy=function(R,F,n){bD.call(this,R,F);
this.WG=R;this.Do=n},e2=function(){this.T=new Map},R4=function(R,F){return R.T.get(F)||null},Fe=function(R){this.T="pending";
this.U=[];this.N=[];try{R(this.J.bind(this),this.reject.bind(this))}catch(F){this.reject(F)}},Zde=function(){var R,F;
return{WH:new Fe(function(n,V){R=n;F=V}),
resolve:R,reject:F}},rv=function(R){return nQ(R)?R:VW(R)?new Fe(function(F,n){R.then(F,n)}):new Fe(function(F){F(R)})},vQ=function(R){return new Fe(function(F,n){n(R)})},fQ=function(R){try{return rv(R())}catch(F){return vQ(F)}},RaI=function(R){return g.Y(function(F){return F.return(eQf(R))})},z4=function(R,F,n){var V=Zde(),r=V.WH,v=V.resolve,f=V.reject;
R.U.push(function(z){if(F)try{var q=F(z);v(q)}catch(Q){f(Q)}else v(z)});
R.N.push(function(z){if(n)try{var q=n(z);v(q)}catch(Q){f(Q)}else f(z)});
t0(R);return r},q4=function(R,F){return z4(R,void 0,F)},FOW=function(R,F){z4(R,function(n){return z4(rv(F()),function(){return n})},function(n){return z4(rv(F()),function(){return vQ(n)})})},t0=function(R){if(R.T==="fulfilled"){var F=R.U;
R.U=[];R.N=[];F=g.m(F);for(var n=F.next();!n.done;n=F.next())n=n.value,n(R.result)}else if(R.T==="rejected")for(F=R.N,R.U=[],R.N=[],F=g.m(F),n=F.next();!n.done;n=F.next())n=n.value,n(R.error)},eQf=function(R){return new Promise(function(F,n){z4(R,F,n)})},QW=function(R,F){return nA9(F.call(R))},cQ=function(R){return function n(){return A7(n,function(V){if(V.T==1)return g.qs(V,2),g.k(V,{WH:rv(R)},4);
if(V.T!=2)return V.return(V.U);g.wq(V);return g.S7(V,0)})}()},nA9=function(R){return fQ(function(){return wv(R,R.next())})},wv=function(R,F){return F.done?rv(F.value):q4(z4(F.value.WH,function(n){return wv(R,R.next(n))}),function(n){return wv(R,R.throw(n))})},vAf=function(R){var F=V46(R);
return z4(rEI(F),function(){return F.map(function(n){return n.state()})})},rEI=function(R){if(R.length===0)return rv(NaN);
var F=Zde(),n=F.WH,V=F.resolve,r=R.length;R=g.m(R.entries());var v=R.next();for(F={};!v.done;F={fU:void 0},v=R.next()){var f=g.m(v.value);v=f.next().value;f=f.next().value;F.fU=v;FOW(f,function(z){return function(){n.T==="pending"&&(f79(void 0)&&(void 0)(z.fU)&&n.T==="pending"?V(z.fU):(--r,r===0&&V(NaN)))}}(F))}return n},V46=function(R){return R.map(function(F){return rv(F)})},LQ=function(R){var F=R.hours||0;
var n=R.minutes||0,V=R.seconds||0;F=V+n*60+F*3600+(R.days||0)*86400+(R.weeks||0)*604800+(R.months||0)*2629800+(R.years||0)*31557600;F<=0?F={hours:0,minutes:0,seconds:0}:(R=F,F=Math.floor(R/3600),R%=3600,n=Math.floor(R/60),V=Math.floor(R%60),F={hours:F,minutes:n,seconds:V});var r=F.hours===void 0?0:F.hours;n=F.minutes===void 0?0:F.minutes;R=F.seconds===void 0?0:F.seconds;V=r>0;F=[];if(V){r=(new Intl.NumberFormat("en-u-nu-latn")).format(r);var v=["fr"],f="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(" ");
r="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(S1)?r.replace(",","\u00a0"):v.includes(S1)?r.replace(",","\u202f"):f.includes(S1)?r.replace(",","."):r;F.push(r)}V=V===void 0?!1:V;n=(["af","be","lt"].includes(S1)||V)&&n<10?t4V().format(n):(new Intl.NumberFormat("en-u-nu-latn")).format(n);F.push(n);n=t4V().format(R);F.push(n);n=":";"da fi id si sr sr-Latn".split(" ").includes(S1)&&(n=".");return F.join(n)},t4V=function(){return new Intl.NumberFormat("en-u-nu-latn",
{minimumIntegerDigits:2})},zav=function(R,F){var n,V;
R=((n=R.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(V=n.videoAuthorizationToken)==null?void 0:V.credentialTransferTokens)||[];for(n=0;n<R.length;++n)if(R[n].scope===F)return R[n].token||void 0},sT=function(R){if(R&&R.simpleText)return R.simpleText;
var F="";if(R&&R.runs)for(var n=0;n<R.runs.length;n++)R.runs[n].text&&(F+=R.runs[n].text);return F},pQ=function(R){return R?function(){try{return R.apply(this,arguments)}catch(F){g.uX(F)}}:R},Xe=function(){this.N=new Set;
this.U=new Set;this.J=new Map;this.client=void 0;this.csn=null},A0=function(){Xe.instance||(Xe.instance=new Xe);
return Xe.instance},a4=function(){},CQ=function(){this.X=[];
this.V=[];this.T=[];this.J1=[];this.W=[];this.UZ=[];this.N=new Map;this.Z=new Map;this.U=new Set;this.jQ=new Map},T4=function(){CQ.instance||(CQ.instance=new CQ);
return CQ.instance},o4=function(R,F,n,V){V=V===void 0?{}:V;
g.Vb(function(){qQf.includes(F)||(g.mq(new g.UR("createClientScreen() called with a non-page VE",F)),F=83769);V.isHistoryNavigation||(R.J1=[],R.T.push({rootVe:F,key:V.key||""}));R.X=[];R.V=[];V.v0?QdI(R,F,n,V):cEe(R,F,n,V)})()},LOE=function(R,F,n){n=n===void 0?0:n;
g.Vb(function(){F.then(function(V){R.U.has(n)&&R.J&&R.J();var r=g.CJ(n),v=g.aQ(n);if(r&&v){var f={automatedLogEventSource:3},z;(V==null?0:(z=V.response)==null?0:z.trackingParams)&&g.Mz(R.client,r,v,g.pJ(V.response.trackingParams),!1,f);var q;(V==null?0:(q=V.playerResponse)==null?0:q.trackingParams)&&g.Mz(R.client,r,v,g.pJ(V.playerResponse.trackingParams),!1,f)}})})()},UT=function(R){var F=T4();
g.Vb(function(){var n=g.pJ(R);yW(F,n);return n})()},sdv=function(R){var F={veType:253246};
return g.Vb(function(){if(!F.veType)return Be(new g.UR("Error: Trying to graft a client VE without a veType.")),null;if(F.visibilityTypes){var n=F.visibilityTypes.reduce(function(V,r){return V|r});
n={visibility:{types:String(n)}}}n=XS(F.veType,F.visualElement,F.elementIndex,F.clientYouTubeData,void 0,n);return yW(R,n)?n:null})()},yW=function(R,F,n,V){V=V===void 0?0:V;
return g.Vb(function(){if(R.U.has(V))return R.X.push([F,n]),!0;var r=g.CJ(V),v=n||g.aQ(V);if(r&&v){if(g.U2("combine_ve_grafts")){var f=R.N.get(v.toString());f?f.push(F):(R.Z.set(v.toString(),v),R.N.set(v.toString(),[F]));R.Nq||(R.Nq=g.R8(0,function(){j1(R,r)},1200))}else g.Mz(R.client,r,v,F);
return!0}return!1})()},pl6=function(R,F){var n=g.CJ(0);
n&&Pe(R.client,n,F,void 0)},XlR=function(R,F,n,V){V=V===void 0?0:V;
var r=g.CJ(V);F=F||g.aQ(V);r&&F&&(R=R.client,V=kC({cttAuthInfo:Tn(r)||void 0},r),n={csn:r,ve:F.getAsJson(),clientData:n},r==="UNDEFINED_CSN"?EK("visualElementStateChanged",V,n):R?Sg("visualElementStateChanged",n,R,V):g.LJ("visualElementStateChanged",n,V))},QdI=function(R,F,n,V){V=V===void 0?{}:V;
R.U.add(V.layer||0);R.J=function(){cEe(R,F,n,V);var f=g.aQ(V.layer);if(f){for(var z=g.m(R.X),q=z.next();!q.done;q=z.next())q=q.value,yW(R,q[0],q[1]||f,V.layer);f=g.m(R.V);for(z=f.next();!z.done;z=f.next())z=z.value,XlR(R,z[0],z[1])}};
n||g.CJ(V.layer)||R.J();if(V.v0)for(var r=g.m(V.v0),v=r.next();!v.done;v=r.next())LOE(R,v.value,V.layer);else g.uX(Error("Delayed screen needs a data promise."))},cEe=function(R,F,n,V){V=V===void 0?{}:V;
var r=void 0;V.layer||(V.layer=0);r=V.parentLayer!==void 0?V.parentLayer:V.layer;var v=g.CJ(r);r=g.aQ(r);var f=n||r,z;f&&(V.parentCsn!==void 0?z={clientScreenNonce:V.parentCsn,visualElement:f}:v&&v!=="UNDEFINED_CSN"&&(z={clientScreenNonce:v,visualElement:f}));var q,Q=g.ew("EVENT_ID");v==="UNDEFINED_CSN"&&Q&&(q={servletData:{serializedServletEventId:Q}});g.U2("combine_ve_grafts")&&v&&j1(R,v);g.U2("no_client_ve_attach_unless_shown")&&f&&v&&Nz(f,v);try{var c=I_R(R.client,F,z,V.Me,V.cttAuthInfo,q,V.implicitGestureType,
V.loggingExpectations,V.automatedLogEventSource)}catch(S){OK(S,{I4:F,rootVe:r,aEZ:n,Qgq:v,EpG:z,Me:V.Me});g.uX(S);return}tPE(c,F,V.layer,V.cttAuthInfo);v&&v!=="UNDEFINED_CSN"&&r&&!rjf(v)&&DlE(R.client,v,r,!0);R.T[R.T.length-1]&&!R.T[R.T.length-1].csn&&(R.T[R.T.length-1].csn=c||"");g.B8({clientScreenNonce:c});a4.instance||(a4.instance=new a4);g.Vb(A0().T).bind(A0())();var w=g.aQ(V.layer);v&&v!=="UNDEFINED_CSN"&&w&&g.U2("music_web_mark_root_visible")&&g.eg(c,w);R.U.delete(V.layer||0);R.J=void 0;var L;
(L=R.jQ.get(V.layer))==null||L.forEach(function(S,p){S?yW(R,p,S,V.layer):w&&yW(R,p,w,V.layer)});
AE6(R)},AE6=function(R){for(var F=0;F<R.W.length;F++){var n=R.W[F];
try{n()}catch(V){g.uX(V)}}for(F=R.W.length=0;F<R.UZ.length;F++){n=R.UZ[F];try{n()}catch(V){g.uX(V)}}},j1=function(R,F){if(F===void 0)for(var n=niW(),V=0;V<n.length;V++)n[V]!==void 0&&j1(R,n[V]);
else R.N.forEach(function(r,v){(v=R.Z.get(v))&&g.dC(R.client,F,v,r)}),R.N.clear(),R.Z.clear(),R.Nq=void 0},HQ=function(){},a7W=function(){HQ.instance||(HQ.instance=new HQ);
return HQ.instance},COf=function(R,F,n){var V=new XMLHttpRequest;
if(n==null?0:n.r0)V.onreadystatechange=function(v){n.r0(V,v)};
var r;V.open((r=F.method)!=null?r:"GET",R,!0);V.responseType="text";V.withCredentials=!0;if(F.headers)for(R=g.m(Object.entries(F.headers)),F=R.next();!F.done;F=R.next())r=g.m(F.value),F=r.next().value,r=r.next().value,V.setRequestHeader(F,r);return V},h0=function(){},Tn6=function(){var R=navigator;
return new Promise(function(F,n){var V;(V=R.webkitTemporaryStorage)!=null&&V.queryUsageAndQuota?R.webkitTemporaryStorage.queryUsageAndQuota(function(r,v){F({usage:r,quota:v})},function(r){n(r)}):n(Error("webkitTemporaryStorage is not supported."))})},WQ=function(R,F){var n=this;
this.handleError=R;this.T=F;this.U=!1;self.document===void 0||self.addEventListener("beforeunload",function(){n.U=!0});
this.N=Math.random()<=.2};
var fNN=function(){return U6J[t[22]](this,4)};
yEN=function(R,F){h0.getInstance().estimate().then(function(n){n=Object.assign({},F,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:oAW(n==null?void 0:n.usage),deviceStorageQuotaMbytes:oAW(n==null?void 0:n.quota)});R.T("idbQuotaExceeded",n)})};
oAW=function(R){return typeof R==="undefined"?"-1":String(Math.ceil(R/1048576))};
jd9=function(){var R=g.M8();return R.pH(192)?R.pH(190):!(g.U2("web_watch_cinematics_disabled_by_default")||g.U2("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&UQ6())};
haR=function(R,F){HRe(R.program,F.pBS)&&(IV("bg_i",void 0,"player_att"),g.uW.initialize(R,function(){IV("bg_l",void 0,"player_att");BQ=(0,g.h1)()},F.cspNonce,F.rK))};
WOV=function(R){R=R===void 0?{}:R;return g.uW.invoke(R)};
HRe=function(R,F){if(R){var n;g.uW.isLoading()?n=!1:n=!BQ||(0,g.h1)()-BQ>F;R=n}else R=!1;return R};
g.m$=function(R,F){return R.rK+"timedtext_video?ref=player&v="+F.videoId};
g.uif=function(R){var F=this;this.videoData=R;R={};this.T=(R.c1a=function(){var n=[];if(g.uW.isInitialized()){var V="";F.videoData&&F.videoData.HY&&(V=F.videoData.HY+("&r1b="+F.videoData.clientPlaybackNonce));var r={};V=(r.atr_challenge=V,r);IV("bg_v",void 0,"player_att");(V=WOV(V))?(IV("bg_s",void 0,"player_att"),n.push("r1a="+V)):(IV("bg_e",void 0,"player_att"),n.push("r1c=2"))}else IV("bg_e",void 0,"player_att"),window.trayride||window.botguard?n.push("r1c=1"):n.push("r1c=4");n.push("r1d="+g.uW.getState());
return n.join("&")},R.c6a=function(n){return"r6a="+(Number(n.c)^tT())},R.c6b=function(n){return"r6b="+(Number(n.c)^Number(g.ew("CATSTAT",0)))},R);
this.videoData&&this.videoData.HY?this.HA=Xj(this.videoData.HY):this.HA={}};
g.BnN=function(R){if(R.videoData&&R.videoData.HY){for(var F=[R.videoData.HY],n=g.m(Object.keys(R.T)),V=n.next();!V.done;V=n.next())V=V.value,R.HA[V]&&R.T[V]&&(V=R.T[V](R.HA))&&F.push(V);return F.join("&")}return null};
g.gv=function(R,F){haR(R,{pBS:g.Vn(F.experiments,"bg_vm_reinit_threshold"),cspNonce:F.cspNonce,rK:F.rK||""})};
mQI=function(){var R=XMLHttpRequest.prototype.fetch;return!!R&&R.length===3};
ORE=function(R){gA6=2592E3*(R||1)};
I7N=function(R){g.i6("yt-player-bandwidth",R,2592E3)};
OT=function(R){R=R===void 0?gA6:R;if(R>0&&!(ySj()>(0,g.h1)()-R*1E3))return 0;R=g.xh("yt-player-quality");if(typeof R==="string"){if(R=g.g8[R],R>0)return R}else if(R instanceof Object)return R.quality;return 0};
I4=function(){var R=g.xh("yt-player-proxima-pref");return R==null?null:R};
KO_=function(){var R=g.xh("yt-player-quality");if(R instanceof Object&&R.quality&&R.previousQuality){if(R.quality>R.previousQuality)return 1;if(R.quality<R.previousQuality)return-1}return 0};
DQV=function(){var R={values:{},tM:{}};try{var F=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);R.values=F.values;R.halfLives=F.halfLives}catch(n){}return R};
KQ=function(){return g.xh("yt-player-performance-cap")||{}};
D6=function(){var R;return(R=g.xh("yt-player-performance-cap-active-set"))!=null?R:[]};
iR_=function(R){(R===void 0?0:R)?(R=D6().filter(function(F){return F.startsWith("1")}),g.i6("yt-player-performance-cap-active-set",R,2592E3)):g.i6("yt-player-performance-cap-active-set",[],2592E3)};
xQR=function(R){g.i6("yt-player-watch-later-pending",R)};
kAe=function(){return!!g.xh("yt-player-headers-readable")};
g.iW=function(){var R=g.xh("yt-player-caption-language-preferences");return R?R:[]};
x2=function(){var R=g.xh("yt-player-user-settings"),F=new Map;if(R){R=g.m(Object.entries(R));for(var n=R.next();!n.done;n=R.next()){var V=g.m(n.value);n=V.next().value;V=V.next().value;F.set(n,V)}}return F};
YQf=function(){var R;return(R=g.xh("yt-player-voice-boost"))!=null?R:void 0};
JEk=function(){var R;return(R=g.xh("yt-player-audio-quality-setting"))!=null?R:2};
Y2=function(){try{var R=window.navigator;if(R.getAutoplayPolicy&&typeof R.getAutoplayPolicy==="function"){var F=document.getElementsByClassName(g.k2.cpH);var n=F.length>0&&F[0]?R.getAutoplayPolicy(F[0]):R.getAutoplayPolicy("mediaelement");if(GAI[n])return GAI[n]}}catch(V){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"};
J0=function(R){return R.pC||R.Lm||R.mutedAutoplay};
dQ_=function(R,F){return J0(R)?F!==1&&F!==2&&F!==0?"AUTOPLAY_STATUS_UNAVAILABLE":R.ID?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"};
M4I=function(R,F,n){var V=F.D();R.thirdParty||(R.thirdParty={});R.thirdParty=Object.assign({},R.thirdParty,{embedUrl:V.loaderUrl});V.ancestorOrigins&&(R.thirdParty.embeddedPlayerContext=Object.assign({},R.thirdParty.embeddedPlayerContext,{ancestorOrigins:V.ancestorOrigins}));V.XW!=null&&(R.thirdParty.embeddedPlayerContext=Object.assign({},R.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(V.XW)}));V.eU&&(R.thirdParty.embeddedPlayerContext=Object.assign({},R.thirdParty.embeddedPlayerContext,
{visibilityFractionSource:V.eU}));R.thirdParty.embeddedPlayerContext=Object.assign({},R.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:Y2(),autoplayIntended:J0(F),autoplayStatus:dQ_(F,n)})};
l7e=function(R){var F=[];R=g.m(R.split(","));for(var n=R.next();!n.done;n=R.next()){var V=n.value;V&&((n=V.startsWith("!"))&&(V=V.substring(1)),V=V.split("-"),V.length<3||F.push({oH:V[0],platform:V[1],deviceVersion:V[2],Fm:n}))}return F};
$Q9=function(R){return l7e(R).map(function(F){return{deviceInterface:Nnv[EAJ[F.oH]]||0,deviceVersion:F.deviceVersion||"",isSleeping:F.Fm}})};
g.G4=function(R,F){this.id=R;this.z9=F;this.captionTracks=[];this.N=this.J=null;this.xtags="";this.Z=this.W=!1;this.T=null;this.U="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";R=this.z9.id.split(".");R.length>1&&(this.W=R[1]==="2",this.Z=R[1]==="4")};
dv=function(R,F,n,V,r){this.U=R;this.T=F;this.N=n;this.reason=V;this.yz=r===void 0?0:r};
g.M4=function(R,F,n,V){return new dv(g.g8[R]||0,g.g8[F]||0,n,V)};
N4=function(R){if(lW&&R.yz)return!1;var F=g.g8.auto;return R.U===F&&R.T===F};
$2=function(R){return ET[R.T||R.U]||"auto"};
POW=function(R,F){F=g.g8[F];return R.U<=F&&(!R.T||R.T>=F)};
PQ=function(R,F,n,V){this.videoInfos=R;this.T=F;this.audioTracks=[];this.U=V||[];if(this.T){R=new Set;n==null||n({ainfolen:this.T.length});F=g.m(this.T);for(V=F.next();!V.done;V=F.next())if(V=V.value,!V.z9||R.has(V.z9.id)){var r=void 0,v=void 0,f=void 0;(f=n)==null||f({atkerr:!!V.z9,itag:V.itag,xtag:V.T,lang:((r=V.z9)==null?void 0:r.name)||"",langid:((v=V.z9)==null?void 0:v.id)||""})}else r=new g.G4(V.id,V.z9),R.add(V.z9.id),this.audioTracks.push(r);n==null||n({atklen:this.audioTracks.length})}};
bW=function(){g.G.apply(this,arguments);this.U=null;this.T=new Map};
F6j=function(R,F,n,V,r,v,f){if(R.U)return R.U;var z={},q=new Set,Q={};if(Z6(V)){for(var c in V.T)V.T.hasOwnProperty(c)&&(R=V.T[c],Q[R.info.x5]=[R.info]);return Q}c=bRR(F,V,z);v&&r({aftsrt:e1(c)});for(var w={},L=g.m(Object.keys(c)),S=L.next();!S.done;S=L.next()){S=S.value;for(var p=g.m(c[S]),C=p.next();!C.done;C=p.next()){C=C.value;var y=C.itag,u=ZR9(S,C);if(w.hasOwnProperty(u))w[u]===!0?Q[S].push(C):z[y]=w[u];else{var B=R0(F,C,n,V.isLive,q);B!==!0?(f.add(S),z[y]=B,B==="disablevp9hfr"&&(w[u]="disablevp9hfr")):
(Q[S]=Q[S]||[],Q[S].push(C),w[u]=!0)}}}v&&r({bfflt:e1(Q)});for(var O in Q)Q.hasOwnProperty(O)&&(V=O,Q[V]&&Q[V][0].EY()&&(Q[V]=Q[V],Q[V]=eaE(F,Q[V],z),Q[V]=RiE(Q[V],z)));v&&Object.keys(z).length>0&&r({rjr:tQ(z)});F=g.m(q.values());for(V=F.next();!V.done;V=F.next())(V=n.N.get(V.value))&&--V.Cc;v&&r({aftflt:e1(Q)});R.U=g.oz(Q,function(K){return!!K.length});
return R.U};
VqV=function(R,F,n,V,r,v,f,z){z=z===void 0?!1:z;if(F.HT&&f&&f.length>1&&!(F.Fb>0||F.V)){for(var q=F.T||!!r,Q=q&&F.us?v:void 0,c=bRR(F,V),w=[],L=[],S={},p=0;p<f.length;p++){var C=f[p],y=V.N.get(C);if(y&&y.info){var u=y.info;y=u.x5;if(R0(F,u,n,V.isLive)){C=u.EY()?w:L;u=g.m(c[y]);for(var B=u.next();!B.done;B=u.next()){B=B.value;var O=ZR9(y,B);S.hasOwnProperty(O)?S[O]===!0&&C.push(B):R0(F,B,n,V.isLive)&&(C.push(B),S[O]=!0)}}else q&&v({opfu:C})}}if(w.length&&L.length)return q&&v({opfm:w[0].itag+","+L[0].itag}),
D_(new PQ(w,L,Q))}return nlN(R,F,n,V,r,v,z)};
nlN=function(R,F,n,V,r,v,f){function z(M){return!!w[M]}
var q=F.T||!!r,Q=q&&F.us?v:void 0,c=new Set,w=F6j(R,F,n,V,v,q,c);Fx(V)&&(w=raE(n,w,r,q,v,F),q&&v({enflt:e1(w)}));F.aG=vle(w,F);var L=fXN(F);n=[];r=g.m(Object.values(w));for(var S=r.next();!S.done;S=r.next()){S=S.value;var p=void 0;((p=S)==null?0:p.length)&&S[0].cB()&&n.push.apply(n,g.I(S))}if(Z6(V))return v=g.$$(Object.values(w),function(M){return!!M.length&&!!M[0].audio}),q=g.$$(Object.values(w),function(M){return!!M.length&&!!M[0].video}),v&&q||K$(),D_(new PQ(q,v,Q,n));
r=w.a;S=!1;F.lS&&L[0]!=="a"&&tqW(r)&&(L.unshift("a"),S=!0);q&&(v({audioPrefOrder:L.join("_")}),v({preferHighQualityAudio:F.lS}),v({forcedAacForHqa:S}));r=[];if(F.oC){L=g.dk(L,z);S=new Set;p=g.m(L);for(var C=p.next();!C.done;C=p.next()){var y=new Set;C=g.m(w[C.value]);for(var u=C.next();!u.done;u=C.next()){u=u.value;var B=void 0,O=(B=u.z9)==null?void 0:B.id;O&&(S.has(O)?y.has(O)&&r.push(u):(y.add(O),S.add(O),r.push(u)))}}if(r.length===0){if(L.length===0)return q&&v({noaudio:1}),K$();r=w[L[0]]}}else{r=
g.$$(L,z);if(!r)return q&&v({noaudio:1}),K$();r=w[r]}w["9"]&&w.h&&V.Zt&&!F.dX&&(q&&v({dltvp9:1}),delete w["9"]);if(f){q&&v({bfsflt:e1(w),bfsflta:nn(R)});F.Y5&&(R.T=ziJ(c,R.T));q&&v({bfsfltb:nn(R)});for(var K in w)if(w.hasOwnProperty(K)&&(f=K,!(f==="f"||F.Mq===0&&qF6.has(f))))for(c=g.m(w[f]),L=c.next();!L.done;L=c.next())L=L.value,F.Y5?QBe(f,L,R.T):caW(R,f,L);q&&v({aftsflt:nn(R)})}f=w["1h"]?"1h":"1";R=w["9h"]?"9h":"9";L=w[f];S=w["2"];p=w[R];L&&L.length&&(F.U.highestAv1Resolution=L[L.length-1].video.qualityOrdinal);
p&&p.length&&(F.U.highestVp9Resolution=p[p.length-1].video.qualityOrdinal);K=[];c=[];if(F.Ra&&S)K=S,c=["2"];else if(F.t0&&L)K=L,c=[f],v({forceAv1:f});else if(F.V&&!F.Yr)for(c=wT9(V)?w["1h"]||w["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],q&&v({newhybpref:c.join(".")}),L=g.m(c),S=L.next();!S.done;S=L.next())K=K.concat(w[S.value]).filter(function(M){return M});
else F.Fb>0&&p&&L&&(c=[f,R],K=L.concat(p).filter(function(M){return M}));
if(K.length&&!F.Yr){Vs(K,c);if(q){q=[];F=g.m(K);for(V=F.next();!V.done;V=F.next())q.push(V.value.itag);v({hbdfmt:q.join(".")})}return D_(new PQ(K,r,Q,n))}K=SFN(F);K=g.$$(K,z);if(!K){if(w[f])return v=w[f],Vs(v),D_(new PQ(v,r,Q,n));q&&v({novideo:1});return K$()}K!=="1"&&K!=="1h"||!w[R]||(f=rm(w[K]),c=rm(w[R]),c>f?K=R:c===f&&L6V(w[R])&&(K=R));K==="9"&&w.h&&rm(w.h)>rm(w["9"])&&(K="h");F.on&&V.isLive&&K==="("&&w.H&&rm(w["("])<1440&&(K="H");q&&v({vfmly:vW(K)});F=w[K];if(!F.length)return q&&v({novfmly:vW(K)}),
K$();Vs(F);return D_(new PQ(F,r,Q,n))};
caW=function(R,F,n){var V,r=((V=n.video)==null?void 0:V.fps)||0;V=F+"_"+r;var v=!!n.audio,f=R.T.get(V);a:{var z=R.T.get(V),q=!!n.audio;if(z){if(q){var Q=!1;break a}var c;if(!q&&((Q=n.video)==null?0:Q.height)&&z.maxHeight&&z.maxHeight>=((c=n.video)==null?void 0:c.height)){Q=!1;break a}}Q=!0}Q&&(Q=n.itag,F=f?f:{itag:Q,x5:F,cB:v},v?F.numChannels=n.audio.numChannels:(v=n.video,F.maxWidth=v==null?void 0:v.width,F.maxHeight=v==null?void 0:v.height,F.maxFramerate=r,F.maxBitrateBps=n.yz*8,F.H4=v==null?void 0:
v.isHdr()),R.T.set(V,F))};
nn=function(R){for(var F=[],n=g.m(R.T.keys()),V=n.next();!V.done;V=n.next()){V=V.value;var r=R.T.get(V);F.push(V+"_"+r.maxWidth+"_"+r.maxHeight)}return F.join(".")};
vle=function(R,F){var n=!(!R.m&&!R.M),V=!(!R.mac3&&!R.MAC3),r=!(!R.meac3&&!R.MEAC3);R=!(!R.i&&!R.I);F.fm=R;return n||V||r||R};
L6V=function(R){R=g.m(R);for(var F=R.next();!F.done;F=R.next())if(F=F.value,F.itag&&sB9.has(F.itag))return!0;return!1};
tqW=function(R){R=g.m(R);for(var F=R.next();!F.done;F=R.next())if(F.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1};
vW=function(R){switch(R){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return R}};
ZR9=function(R,F){var n,V;return R+"_"+Number(((n=F.video)==null?void 0:n.fps)||0)+"_"+!((V=F.audio)==null||!V.U)};
e1=function(R){var F=[],n;for(n in R)if(R.hasOwnProperty(n)){var V=n;F.push(vW(V));V=g.m(R[V]);for(var r=V.next();!r.done;r=V.next())F.push(r.value.itag)}return F.join(".")};
raE=function(R,F,n,V,r,v){var f={},z={};g.DN(F,function(q,Q){q=q.filter(function(c){var w=c.itag;if(!c.lL)return z[w]="noenc",!1;if(v.HI&&c.x5==="(h"&&v.mQ)return z[w]="lichdr",!1;if(!R.J&&c.x5==="1e")return z[w]="noav1enc",!1;if(c.x5==="("||c.x5==="(h"){if(R.U&&n&&n.flavor==="widevine"){var L=c.mimeType+"; experimental=allowed";(L=!!c.lL[n.flavor]&&!!n.T[L])||(z[w]=c.lL[n.flavor]?"unspt":"noflv");return L}if(!fn(R,tI.CRYPTOBLOCKFORMAT)&&!R.lS||R.J1)return z[w]=R.J1?"disvp":"vpsub",!1}return n&&c.lL[n.flavor]&&
n.T[c.mimeType]?!0:(z[w]=n?c.lL[n.flavor]?"unspt":"noflv":"nosys",!1)});
q.length&&(f[Q]=q)});
V&&Object.entries(z).length&&r({rjr:tQ(z)});return f};
RiE=function(R,F){var n=KY(R,function(V,r){return r.video.fps>32?Math.min(V,r.video.width):V},Infinity);
n<Infinity&&(R=R.filter(function(V){if(V.video.fps>32||V.video.width<n)return!0;F[V.itag]="hfrfirst";return!1}));
Z_()&&(R=R.filter(function(V){if(V.itag!=="299")return!0;F[V.itag]="ps3hfr1080";return!1}));
return R};
eaE=function(R,F,n){return F=F.filter(function(V){if(V.video.qualityOrdinal<=R.pC)return!0;n[V.itag]="maxquality";return!1})};
bRR=function(R,F,n){var V={},r;for(r in F.T)if(F.T.hasOwnProperty(r)){var v=F.T[r].info;if(R.X&&v.video&&v.video.qualityOrdinal<R.X)n&&(n[v.itag]="min"+R.X);else{var f=v.x5;V[f]=V[f]||[];V[f].push(v)}}R=g.m(Object.keys(V));for(F=R.next();!F.done;F=R.next())Vs(V[F.value]);return V};
rm=function(R){return KY(R,function(F,n){return Math.max(F,n.video.qualityOrdinal)},0)};
R0=function(R,F,n,V,r){r=r===void 0?new Set:r;if(F.x5==="")return"unkn";if((F.itag==="304"||F.itag==="266")&&R.J1)return"blk2khfr";if(R.Z&&F.video&&F.video.qualityOrdinal>R.Z)return"max"+R.Z;if(R.k5&&F.x5==="h"&&F.video&&F.video.qualityOrdinal>1080)return"blkhigh264";if(F.x5==="(h"&&!n.Z)return"enchdr";if((V===void 0?0:V)&&uU6(F)&&!R.gX)return"blk51live";if((F.x5==="MAC3"||F.x5==="mac3")&&!R.J)return"blkac3";if((F.x5==="MEAC3"||F.x5==="meac3")&&!R.W)return"blkeac3";if(F.x5==="M"||F.x5==="m")return"blkaac51";
if((F.x5==="so"||F.x5==="sa")&&!R.Nq)return"blkamb";if(!R.HI&&Wzk(F)&&(!n.J||F.x5!=="1e"))return"cbc";if(!n.J&&Wzk(F)&&F.x5==="1e")return"cbcav1";if((F.x5==="i"||F.x5==="I")&&!R.QZ)return"blkiamf";var v;if(R.YF&&((v=F.audio)==null?void 0:v.U)===!0)return"blkvbcabr";var f,z;if(R.uS&&(F.x5==="1"||F.x5==="1h"||n.J&&F.x5==="1e")&&((f=F.video)==null?0:f.qualityOrdinal)&&((z=F.video)==null?void 0:z.qualityOrdinal)>R.uS)return"av1cap";V=n.N.get(F.x5);if(!R.KC&&V&&V.Cc>0)return r.add(F.x5),"byerr";var q;
if((q=F.video)==null?0:q.fps>32){if(!n.jQ&&!fn(n,tI.FRAMERATE))return"capHfr";if(R.h1&&F.video.qualityOrdinal>=4320)return"blk8khfr";if(G$(F)&&R.A0&&F.lL&&F.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(R.yz&&F.yz>R.yz)return"ratecap";if(R.jQ>0&&F.EY()&&F.video.height>R.jQ)return"mvhcap";R=pTj(n,F);return R!==!0?R:!0};
Vs=function(R,F){F=F===void 0?[]:F;g.p4(R,function(n,V){var r=V.yz-n.yz;if(!n.EY()||!V.EY())return r;var v=V.video.height*V.video.width-n.video.height*n.video.width;!v&&F&&F.length>0&&(n=F.indexOf(n.x5)+1,V=F.indexOf(V.x5)+1,v=n===0||V===0?V||-1:n-V);v||(v=r);return v})};
zu=function(R,F,n,V,r,v,f,z,q){this.nH=R;this.startTime=F;this.duration=n;this.ingestionTime=V;this.sourceURL=r;this.J0=q;this.endTime=F+n;this.T=f||0;this.range=v||null;this.pending=z||!1;this.J0=q||null};
g.qc=function(){this.segments=[];this.T=null;this.U=!0;this.N=""};
XTN=function(R,F){if(F>R.VZ())R.segments=[];else{var n=Ev(R.segments,function(V){return V.nH>=F},R);
n>0&&R.segments.splice(0,n)}};
Qs=function(R,F,n,V,r){r=r===void 0?!1:r;this.data=R;this.offset=F;this.size=n;this.type=V;this.T=(this.U=r)?0:8;this.dataOffset=this.offset+this.T};
cW=function(R){var F=R.data.getUint8(R.offset+R.T);R.T+=1;return F};
wm=function(R){var F=R.data.getUint16(R.offset+R.T);R.T+=2;return F};
Si=function(R){var F=R.data.getInt32(R.offset+R.T);R.T+=4;return F};
Ln=function(R){var F=R.data.getUint32(R.offset+R.T);R.T+=4;return F};
sl=function(R){var F=R.data;var n=R.offset+R.T;F=F.getUint32(n)*4294967296+F.getUint32(n+4);R.T+=8;return F};
pn=function(R,F){F=F===void 0?NaN:F;if(isNaN(F))var n=R.size;else for(n=R.T;n<R.size&&R.data.getUint8(R.offset+n)!==F;)++n;F=new Uint8Array(R.data.buffer,R.offset+R.T+R.data.byteOffset,n-R.T);R.T=Math.min(n+1,R.size);return UE(F)};
AaN=function(R){return new Uint8Array(R.data.buffer,R.offset+R.data.byteOffset,R.size)};
aXJ=function(R){this.offset=0;this.data=new DataView(new ArrayBuffer(R))};
Xx=function(R,F,n,V){(new Uint8Array(R.data.buffer,R.offset,V)).set(new Uint8Array(F.buffer,n+F.byteOffset,V));R.offset+=V};
AI=function(R,F,n,V,r,v,f){this.startSecs=R;this.FP=F;this.context=n;this.identifier=V;this.event=r;this.T=v;this.tileContext=f};
Cn=function(R,F){this.data=R;this.uri=F||"http://youtube.com/streaming/metadata/segment/102015";this.sS=a0(this,"Sequence-Number");this.J=a0(this,"Segment-Count");this.W=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=a0(this,"Ingestion-Walltime-Us")/1E6;this.T=(a0(this,"First-Frame-Time-Us")+a0(this,"First-Frame-Uncertainty-Us"))/1E6;this.L6=a0(this,"Target-Duration-Us")/1E6;this.YY=this.data["Stream-Finished"]==="T";this.N=this.data.Streamable==="T";this.cryptoPeriodIndex=a0(this,"Crypto-Period-Index");
this.U=a0(this,"Crypto-Period-Seconds")};
TEN=function(R){return R.data["Cuepoint-Type"]?new AI(-(Number(R.data["Cuepoint-Playhead-Time-Sec"])||0),Number(R.data["Cuepoint-Total-Duration-Sec"])||0,R.data["Cuepoint-Context"],R.data["Cuepoint-Identifier"]||"",CJv[R.data["Cuepoint-Event"]||""]||"unknown",(Number(R.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null};
olR=function(R){return Number(R.data["Start-Media-Time-Us"])/1E6||0};
a0=function(R,F){return Number(R.data[F])||0};
yaf=function(R){return R.data["Stitched-Video-Cpn"]?R.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.Uyk=function(R){return R.data["Serialized-State"]?R.data["Serialized-State"]:""};
g.jBv=function(R){switch(R.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
HyE=function(R,F){this.T=R;this.duration=F};
hie=function(R,F,n,V,r){this.U=r;this.T=R||0;this.pitch=F||0;this.yaw=n||0;this.roll=V||0;this.crc=r.getUint32(4)};
Tu=function(R){var F={};R=R.split("\r\n");for(var n=0;n<R.length;n++){if(R[n].length===0)return F;var V=R[n].match(/([^:]+):\s+([\S\s]+)/);V!=null&&(F[V[1]]=V[2])}return null};
W6W=function(R,F){var n=g.o0(R,0,1952868452);R=g.o0(R,0,1953658222);if(n&&R){n.skip(1);var V=cW(n)<<16|wm(n);n.skip(4);V&1&&n.skip(8);V&2&&n.skip(4);if(V&8){V=n.T;var r=Ln(n);n.data.setUint32(n.offset+V,F>1?Math.ceil(r*F):Math.floor(r*F))}R.skip(1);n=cW(R)<<16|wm(R);if(n&256){V=n&1;r=n&4;var v=n&512,f=n&1024,z=n&2048;n=Ln(R);V&&R.skip(4);r&&R.skip(4);V=(v?4:0)+(f?4:0)+(z?4:0);for(r=0;r<n;r++)v=R.T,f=Ln(R),R.data.setUint32(R.offset+v,F>1?Math.ceil(f*F):Math.floor(f*F)),R.skip(V)}}};
Ul=function(R){R=new DataView(R.buffer,R.byteOffset,R.byteLength);return(R=g.o0(R,0,1836476516))?g.ys(R):NaN};
u8k=function(R){var F=g.o0(R,0,1937011556);if(!F)return null;F=ji(R,F.dataOffset+8,1635148593)||ji(R,F.dataOffset+8,1635135537);if(!F)return null;var n=ji(R,F.dataOffset+78,1936995172),V=ji(R,F.dataOffset+78,1937126244);if(!V)return null;F=null;if(n)switch(n.skip(4),cW(n)){default:F=0;break;case 1:F=2;break;case 2:F=1;break;case 3:F=255}var r=n=null,v=null;if(V=ji(R,V.dataOffset,1886547818)){var f=ji(R,V.dataOffset,1886546020),z=ji(R,V.dataOffset,2037673328);if(!z&&(z=ji(R,V.dataOffset,1836279920),
!z))return null;f&&(f.skip(4),n=Si(f)/65536,v=Si(f)/65536,r=Si(f)/65536);R=AaN(z);R=new DataView(R.buffer,R.byteOffset+8,R.byteLength-8);return new hie(F,n,v,r,R)}return null};
ji=function(R,F,n){for(;HW(R,F);){var V=hI(R,F);if(V.type===n)return V;F+=V.size}return null};
g.o0=function(R,F,n){for(;HW(R,F);){var V=hI(R,F);if(V.type===n)return V;F=WW(V.type)?F+8:F+V.size}return null};
g.u2=function(R){if(R.data.getUint8(R.dataOffset)){var F=R.data;R=R.dataOffset+4;F=F.getUint32(R)*4294967296+F.getUint32(R+4)}else F=R.data.getUint32(R.dataOffset+4);return F};
hI=function(R,F){var n=R.getUint32(F),V=R.getUint32(F+4);return new Qs(R,F,n,V)};
g.ys=function(R){var F=R.data.getUint8(R.dataOffset)?20:12;return R.data.getUint32(R.dataOffset+F)};
BEk=function(R){R=new Qs(R.data,R.offset,R.size,R.type,R.U);var F=cW(R);R.skip(7);var n=Ln(R);if(F===0){F=Ln(R);var V=Ln(R)}else F=sl(R),V=sl(R);R.skip(2);for(var r=wm(R),v=[],f=[],z=0;z<r;z++){var q=Ln(R);v.push(q);f.push(Ln(R));R.skip(4)}return{timescale:n,d3:F,Pa:V,ktQ:v,mG:f}};
HW=function(R,F){if(R.byteLength-F<8)return!1;var n=R.getUint32(F);if(n<8||R.byteLength-F<n)return!1;for(n=4;n<8;n++){var V=R.getInt8(F+n);if(V<48||V>122)return!1}return!0};
WW=function(R){return R===1701082227||R===1836019558||R===1836019574||R===1835297121||R===1835626086||R===1937007212||R===1953653094||R===1953653099||R===1836475768};
myV=function(R){R.skip(4);return{b5H:pn(R,0),value:pn(R,0),timescale:Ln(R),m2q:Ln(R),eventDuration:Ln(R),id:Ln(R),YL:pn(R),offset:R.offset}};
g.glj=function(R){var F=ji(R,0,1701671783);if(!F)return null;var n=myV(F),V=n.b5H;n=Tu(n.YL);if(R=ji(R,F.offset+F.size,1701671783))if(R=myV(R),R=Tu(R.YL),n&&R){F=g.m(Object.keys(R));for(var r=F.next();!r.done;r=F.next())r=r.value,n[r]=R[r]}return n?new Cn(n,V):null};
BW=function(R,F){for(var n=ji(R,0,F);n;){var V=n;V.type=1936419184;V.data.setUint32(V.offset+4,1936419184);n=ji(R,n.offset+n.size,F)}};
g.mV=function(R,F){for(var n=0,V=[];HW(R,n);){var r=hI(R,n);r.type===F&&V.push(r);n=WW(r.type)?n+8:n+r.size}return V};
Oy_=function(R,F){var n=g.o0(R,0,1937011556),V=g.o0(R,0,1953654136);if(!n||!V||R.getUint32(n.offset+12)>=2)return null;var r=new DataView(F.buffer,F.byteOffset,F.length),v=g.o0(r,0,1937011556);if(!v)return null;F=r.getUint32(v.dataOffset+8);V=r.getUint32(v.dataOffset+12);if(V!==1701733217&&V!==1701733238)return null;V=new aXJ(R.byteLength+F);Xx(V,R,0,n.offset+12);V.data.setInt32(V.offset,2);V.offset+=4;Xx(V,R,n.offset+16,n.size-16);Xx(V,r,r.byteOffset+v.dataOffset+8,F);Xx(V,R,n.offset+n.size,R.byteLength-
(n.offset+n.size));n=g.m([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(r=n.next();!r.done;r=n.next())r=g.o0(R,0,r.value),V.data.setUint32(r.offset,r.size+F);R=g.o0(V.data,0,1953654136);V.data.setUint32(R.offset+16,2);return V.data};
IXN=function(R){var F=g.o0(R,0,1937011556);if(!F)return null;var n=R.getUint32(F.dataOffset+12);if(n!==1701733217&&n!==1701733238)return null;F=ji(R,F.offset+24+(n===1701733217?28:78),1936289382);if(!F)return null;n=ji(R,F.offset+8,1935894637);if(!n||R.getUint32(n.offset+12)!==1667392371)return null;F=ji(R,F.offset+8,1935894633);if(!F)return null;F=ji(R,F.offset+8,1952804451);if(!F)return null;n=new Uint8Array(16);for(var V=0;V<16;V++)n[V]=R.getInt8(F.offset+16+V);return n};
gm=function(R,F){this.T=R;this.pos=0;this.start=F||0};
Ol=function(R){return R.pos>=R.T.byteLength};
xa=function(R,F,n){var V=new gm(n);if(!I0(V,R))return!1;V=Kn(V);if(!DW(V,F))return!1;for(R=0;F;)F>>>=8,R++;F=V.start+V.pos;var r=i2(V,!0);V=R+(V.start+V.pos-F)+r;V=V>9?K6j(V-9,8):K6j(V-2,1);R=F-R;n.setUint8(R++,236);for(F=0;F<V.length;F++)n.setUint8(R++,V[F]);return!0};
Dyv=function(R){var F=new gm(R);F.lG();if(I0(F,[408125543,374648427,174,224]))F=Kn(F);else return null;for(var n=R=null;!Ol(F);){var V=i2(F,!1);if(V===21432)switch(ka(F)){default:R=0;break;case 1:R=1;break;case 3:R=2;break;case 15:R=255}else V===30320?n=Kn(F):Ya(F)}if(!n)return null;for(var r,v=V=F=null;!Ol(n);)switch(i2(n,!1)){case 30321:if(ka(n)!==3)return null;break;case 30324:F=JI(n);break;case 30323:v=JI(n);break;case 30325:V=JI(n);break;case 30322:r=i2(n,!0);r=Gu(n,r);r=new DataView(r.buffer,
r.byteOffset,r.byteLength);break;default:Ya(n)}return r?new hie(R,F,v,V,r):null};
Kn=function(R){var F=i2(R,!0),n=R.T.byteOffset+R.pos;n=new DataView(R.T.buffer,n,Math.min(F,R.T.buffer.byteLength-n));n=new gm(n,R.start+R.pos);R.pos+=F;return n};
ka=function(R){for(var F=i2(R,!0),n=dm(R),V=1;V<F;V++)n=n*256+dm(R);return n};
JI=function(R){var F=i2(R,!0),n=0;F===4?n=R.T.getFloat32(R.pos):F===8&&(n=R.T.getFloat64(R.pos));R.pos+=F;return n};
iy6=function(R){var F=i2(R,!0);return UE(Gu(R,F))};
dm=function(R){return R.T.getUint8(R.pos++)};
i2=function(R,F){var n=dm(R);if(n===1){for(F=n=0;F<7;F++)n=n*256+dm(R);return n}for(var V=128,r=0;r<6&&V>n;r++)n=n*256+dm(R),V*=128;return F?n-V:n};
Ya=function(R){var F=i2(R,!0);R.pos+=F};
xyJ=function(R){if(!DW(R,440786851,!0))return null;var F=R.pos;i2(R,!1);var n=i2(R,!0)+R.pos-F;R.pos=F+n;if(!DW(R,408125543,!1))return null;i2(R,!0);if(!DW(R,357149030,!0))return null;var V=R.pos;i2(R,!1);var r=i2(R,!0)+R.pos-V;R.pos=V+r;if(!DW(R,374648427,!0))return null;var v=R.pos;i2(R,!1);var f=i2(R,!0)+R.pos-v,z=new Uint8Array(n+12+r+f),q=new DataView(z.buffer);z.set(new Uint8Array(R.T.buffer,R.T.byteOffset+F,n));q.setUint32(n,408125543);q.setUint32(n+4,33554431);q.setUint32(n+8,4294967295);
z.set(new Uint8Array(R.T.buffer,R.T.byteOffset+V,r),n+12);z.set(new Uint8Array(R.T.buffer,R.T.byteOffset+v,f),n+12+r);return z};
Mc=function(R){var F=R.pos;R.pos=0;var n=1E6;I0(R,[408125543,357149030,2807729])&&(n=ka(R));R.pos=F;return n};
kLJ=function(R,F){var n=R.pos;R.pos=0;if(R.T.getUint8(R.pos)!==160&&!l2(R)||!DW(R,160))return R.pos=n,NaN;i2(R,!0);var V=R.pos;if(!DW(R,161))return R.pos=n,NaN;i2(R,!0);dm(R);var r=dm(R)<<8|dm(R);R.pos=V;if(!DW(R,155))return R.pos=n,NaN;V=ka(R);R.pos=n;return(r+V)*F/1E9};
l2=function(R){if(!YFE(R)||!DW(R,524531317))return!1;i2(R,!0);return!0};
YFE=function(R){if(R.lG()){if(!DW(R,408125543))return!1;i2(R,!0)}return!0};
I0=function(R,F){for(var n=0;n<F.length;n++){if(!DW(R,F[n]))return!1;n!==F.length-1&&i2(R,!0)}return!0};
DW=function(R,F,n){n=n===void 0?!1:n;if(Ol(R))return!1;for(var V=R.pos;i2(R,!1)!==F;)if(Ya(R),V=R.pos,Ol(R))return!1;n&&(R.pos=V);return!0};
K6j=function(R,F){F||(F=Math.ceil(Math.log(R+2)/Math.log(2)/7));for(var n=1<<8-F,V=[];V.length<F-1;)V.unshift(R%256),R=Math.floor(R/256);V.unshift(R|n);return V};
Gu=function(R,F){var n=new Uint8Array(R.T.buffer,R.T.byteOffset+R.pos,F);R.pos+=F;return n};
Nc=function(R){this.qX=R;this.T={};this.url=""};
Jav=function(R,F){var n=F.indexOf("?");if(n>0){var V=IJ(26,F.substring(n+1));g.DN(V,function(r,v){this.set(v,r)},R);
F=F.substring(0,n)}F=re(1,F);g.DN(F,function(r,v){this.set(v,r)},R)};
GLW=function(R){var F=R.qX.rD(),n=[];g.DN(R.T,function(r,v){n.push(v+"="+r)});
if(!n.length)return F;var V=n.join("&");R=oJ(51,R.qX)?"&":"?";return F+R+V};
El=function(R,F){var n=new g.LW(F);(F=n.get("req_id"))&&R.set("req_id",F);g.DN(R.T,function(V,r){n["set"](r,null)});
return n};
dy6=function(){this.J=this.N=this.T=this.timedOut=this.started=this.W=this.U=0};
$a=function(R){R.W=(0,g.h1)();R.started=0;R.timedOut=0;R.T=0};
PW=function(R,F){var n=R.started+R.T*4;F&&(n+=R.N);n=Math.max(0,n-3);return Math.pow(1.6,n)};
b2=function(R,F){R[F]||(R[F]=new dy6);return R[F]};
ZW=function(R){this.UZ=this.X=this.W=this.N=0;this.V=this.Z=!1;this.T=R;this.U=R.clone()};
MqV=function(R,F,n){if(Qf(24,R.T))return!1;var V=b2(n,pW(45,R.T));if(V.timedOut<1&&V.T<1)return!1;V=V.timedOut+V.T;R=ei(R,F);n=b2(n,pW(62,R));return n.timedOut+n.T+0<V};
RR=function(R,F,n){R=F?ei(R,n):R.T;return new Nc(R)};
ei=function(R,F){F=F?F.YI:!1;R.J||(R.J=pW(12,R.U,F));return R.J};
FQ=function(R,F,n){return pW(30,F?ei(R,n):R.T)};
ng=function(R,F,n,V){(V===void 0?0:V)>1?F=F.Xl:(n=b2(n,FQ(R,R.GY(F,n),F)),F=Math.max(R.W,n.timedOut)+F.jY*(R.N-R.W)+.25*R.X,F=F>3?1E3*Math.pow(1.6,F-3):0);return F===0?!0:R.UZ+F<(0,g.h1)()};
lXe=function(R,F,n){R.T.set(F,n);R.U.set(F,n);R.J&&R.J.set(F,n)};
NEe=function(R,F,n,V,r){++R.N;F&&++R.W;pW(46,n.qX).startsWith("redirector.")&&(R.T=R.U.clone(),delete R.J,V.oR&&delete r[pW(61,R.T)])};
VR=function(R){return R?(R.itag||"")+";"+(R.lmt||0)+";"+(R.xtags||""):""};
ri=function(R,F,n,V){this.initRange=n;this.indexRange=V;this.T=null;this.N=!1;this.Z=0;this.J=this.vp=this.U=null;this.info=F;this.jn=new ZW(R)};
v1=function(R,F){return VR(g.PH(R.info,F))};
fg=function(R,F){this.start=R;this.end=F;this.length=F-R+1};
td=function(R){R=R.split("-");var F=Number(R[0]),n=Number(R[1]);if(!isNaN(F)&&!isNaN(n)&&R.length===2&&(R=new fg(F,n),!isNaN(R.start)&&!isNaN(R.end)&&!isNaN(R.length)&&R.length>0))return R};
zP=function(R,F){return new fg(R,R+F-1)};
Elv=function(R){return R.end==null?{start:String(R.start)}:{start:String(R.start),end:String(R.end)}};
qd=function(R){if(!R)return new fg(0,0);var F=Number(R.start);R=Number(R.end);if(!isNaN(F)&&!isNaN(R)&&(F=new fg(F,R),F.length>0))return F};
QR=function(R,F,n,V,r,v,f,z,q,Q,c,w){V=V===void 0?"":V;this.type=R;this.A1=F;this.range=n;this.source=V;this.VN=c;this.clipId=w===void 0?"":w;this.V=[];this.Z="";this.nH=-1;this.UZ=0;this.Z=V;this.nH=r>=0?r:-1;this.startTime=v||0;this.duration=f||0;this.T=z||0;this.U=q>=0?q:this.range?this.range.length:NaN;this.N=this.range?this.T+this.U===this.range.length:Q===void 0?!!this.U:Q;this.range?(this.J=this.startTime+this.duration*this.T/this.range.length,this.X=this.duration*this.U/this.range.length,
this.W=this.J+this.X):$yI(this)};
$yI=function(R){R.J=R.startTime;R.X=R.duration;R.W=R.J+R.X};
var zV6=function(R,F){return hv[t[22]](this,68,R,F)};
PJV=function(R,F,n){var V=!(!F||F.A1!==R.A1||F.type!==R.type||F.nH!==R.nH);return n?V&&!!F&&(R.range&&F.range?F.range.end===R.range.end:F.range===R.range)&&F.T+F.U===R.T+R.U:V};
c1=function(R){return R.type===1||R.type===2};
wi=function(R){return R.type===3||R.type===6};
So=function(R,F){return R.A1===F.A1?R.range&&F.range?R.range.start+R.T+R.U===F.range.start+F.T:R.nH===F.nH?R.T+R.U===F.T:R.nH+1===F.nH&&F.T===0&&R.N:!1};
ZyI=function(R,F){return R.nH!==F.nH&&F.nH!==R.nH+1||R.type!==F.type?!1:So(R,F)?!0:Math.abs(R.J-F.J)<=1E-6&&R.nH===F.nH?!1:by_(R,F)};
by_=function(R,F){return So(R,F)||Math.abs(R.W-F.J)<=1E-6||R.nH+1===F.nH&&F.T===0&&R.N?!0:!1};
Lg=function(R){return R.nH+(R.N?1:0)};
eiW=function(R){R.length===1||g.Iv(R,function(n){return!!n.range});
for(var F=1;F<R.length;F++);F=R[R.length-1];return new fg(R[0].range.start+R[0].T,F.range.start+F.T+F.U-1)};
RYR=function(R){for(var F=1;F<R.length;F++)if(!So(R[F-1],R[F]))return!1;return!0};
FG9=function(R){var F=0;R=g.m(R);for(var n=R.next();!n.done;n=R.next())F+=n.value.range.length;return F};
s1=function(R){var F={};F.itag=R.A1.info.itag;F.type=""+R.type;F.src=""+R.source;F.segsrc=R.Z;F.seg=String(R.nH);R.range&&(F.range=R.range.start+R.T+"-"+(R.range.start+R.T+R.U-1));F.time=R.J.toFixed(1)+"-"+(R.J+R.X).toFixed(1);F.off=String(R.T);F.len=String(R.U);R.N&&(F.end="1");R.YY()&&(F.eos="1");R.clipId&&(F.cid=R.clipId);return F};
nQR=function(R){return new QR(R.type,R.A1,R.range,"getEmptyStubBefore"+R.Z,R.nH,R.startTime,0,R.T,0)};
VlE=function(R){return new QR(R.type,R.A1,R.range,"getEmptyStubAfter"+R.Z,R.nH,R.startTime+R.duration,0,R.T+R.U,0)};
rQE=function(R,F,n,V){return new QR(R.type,R.A1,R.range,"reslice"+R.Z,R.nH,R.startTime,R.duration,F,n,V,R.VN,R.clipId)};
vQJ=function(R,F){return R.A1!==F.A1?!1:R.range&&F.range?R.range.start+R.T>=F.range.start+F.T&&R.range.start+R.T+R.U<=F.range.start+F.T+F.U:R.nH===F.nH&&R.T>=F.T&&(R.T+R.U<=F.T+F.U||F.N)};
f8J=function(R,F){return R.A1!==F.A1?!1:R.type===4&&F.type===3&&R.A1.o9()?(R=R.A1.UT(R),t3(R,function(n){return f8J(n,F)})):R.nH===F.nH&&!!F.U&&F.T+F.U>R.T&&F.T+F.U<=R.T+R.U};
pg=function(R,F){var n=F.nH;R.Z="updateWithSegmentInfo";R.nH=n;if(R.startTime!==F.startTime||R.duration!==F.duration)R.startTime=F.startTime,R.duration=F.duration,$yI(R)};
XQ=function(R,F){var n=this;this.OZ=R;this.J=this.T=null;this.W=this.m0=NaN;this.GY=this.requestId=null;this.hJ={GiG:function(){return n.range}};
this.jn=R[0].A1.jn;this.U=F||"";this.OZ[0].range&&this.OZ[0].U>0&&(RYR(R)?(this.range=eiW(R),this.N=this.range.length):(this.range=this.OZ[this.OZ.length-1].range,this.N=FG9(R)))};
Ad=function(R){return!c1(R.OZ[R.OZ.length-1])};
aR=function(R){return R.OZ[R.OZ.length-1].type===4};
g.Cg=function(R,F,n){n=R.GY===null?R.jn.GY(F,n,R.OZ[0].type):R.GY;if(R.T){F=n?pW(2,R.T,F.YI):R.T;var V=new Nc(F);V.get("alr")||V.set("alr","yes");R.U&&Jav(V,R.U)}else/http[s]?:\/\//.test(R.U)?V=new Nc(new g.LW(R.U)):(V=RR(R.jn,n,F),R.U&&Jav(V,R.U));(F=R.range)?V.set("range",F.toString()):R.OZ[0].A1.qI()&&R.OZ.length===1&&R.OZ[0].T&&V.set("range",R.OZ[0].T+"-");R.requestId&&V.set("req_id",R.requestId);isNaN(R.m0)||V.set("headm",R.m0.toString());isNaN(R.W)||V.set("mffa",R.W+"ms");R.urlParams&&g.DN(R.urlParams,
function(r,v){V.set(v,r)});
return V};
tlN=function(R){if(R.range)return R.N;R=R.OZ[0];return Math.round(R.X*R.A1.info.yz)};
var Avf=function(R,F,n,V,r,v){return pW[t[22]](this,9,R,F,n,V,r,v)};
zYv=function(R,F){return Math.max(0,R.OZ[0].J-F)};
qyf=function(R,F){R=g.m(R.OZ);for(var n=R.next();!n.done;n=R.next())if(n=n.value,n.type===3&&F>=n.J&&F<=n.W)return!0;return!1};
TP=function(R,F,n,V,r,v){v=v===void 0?0:v;ri.call(this,R,F,V,void 0);this.W=n;this.L6=v;this.index=r||new g.qc};
QTj=function(R,F,n,V,r){this.nH=R;this.startSecs=F;this.FP=n;this.T=V||NaN;this.U=r||NaN};
oR=function(R,F,n){for(;R;R=R.parentNode)if(R.attributes&&(!n||R.nodeName===n)){var V=R.getAttribute(F);if(V)return V}return""};
yR=function(R,F){for(;R;R=R.parentNode){var n=R.getElementsByTagName(F);if(n.length>0)return n[0]}return null};
cQj=function(R){if(!R)return 0;var F=R.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return F?(Number(F[2])|0)*3600+(Number(F[4])|0)*60+(Number(F[6])|0):Number(R)|0};
wHJ=function(R){return R.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?R+"Z":R};
U1=function(){this.T=[];this.U=null;this.Z=0;this.N=[];this.W=!1;this.X="";this.J=-1};
Sye=function(R){var F=R.N;R.N=[];return F};
LGN=function(){this.J=[];this.T=null;this.U={};this.N={}};
AQv=function(R,F){var n=[];F=Array.from(F.getElementsByTagName("SegmentTimeline"));F=g.m(F);for(var V=F.next();!V.done;V=F.next()){V=V.value;var r=V.parentNode.parentNode,v=null;r.nodeName==="Period"?v=sTk(R):r.nodeName==="AdaptationSet"?(r=r.getAttribute("id")||r.getAttribute("mimetype")||"",v=pHe(R,r)):r.nodeName==="Representation"&&(r=r.getAttribute("id")||"",v=XHR(R,r));if(v==null)return;v.update(V);g.qN(n,Sye(v))}g.qN(R.J,n);RON(R.J,function(f){return f.startSecs*1E3+f.T})};
a8N=function(R){R.T&&(R.T.T=[]);g.DN(R.U,function(F){F.T=[]});
g.DN(R.N,function(F){F.T=[]})};
sTk=function(R){R.T||(R.T=new U1);return R.T};
pHe=function(R,F){R.U[F]||(R.U[F]=new U1);return R.U[F]};
XHR=function(R,F){R.N[F]||(R.N[F]=new U1);return R.N[F]};
H1=function(R){var F=R===void 0?{}:R;R=F.L6===void 0?0:F.L6;var n=F.V3===void 0?!1:F.V3;var V=F.f7===void 0?0:F.f7;var r=F.bX===void 0?0:F.bX;var v=F.JD===void 0?Infinity:F.JD;var f=F.Mo===void 0?0:F.Mo;var z=F.Kl===void 0?!1:F.Kl;F=F.gN===void 0?!1:F.gN;g.qc.call(this);this.f2=this.IY=-1;this.WB=R;this.f7=V;this.V3=n;this.bX=r;this.JD=v;this.Mo=f;((this.Kl=z)||isFinite(v)&&this.JD>0)&&n&&jo&&(this.U=!1,this.N="postLive");this.gN=F};
hd=function(R,F){return sm(R.segments,function(n){return F-n.nH})};
W1=function(R,F,n){n=n===void 0?{}:n;TP.call(this,R,F,"",void 0,void 0,n.L6||0);this.index=new H1(n)};
uo=function(R,F,n){ri.call(this,R,F);this.W=n;R=this.index=new g.qc;R.U=!1;R.N="d"};
CTR=function(R,F,n){var V=R.index.SS(F),r=R.index.getStartTime(F),v=R.index.getDuration(F);n?v=n=0:n=R.info.yz*v;return new XQ([new QR(3,R,void 0,"otfCreateRequestInfoForSegment",F,r,v,0,n)],V)};
T8j=function(R,F){if(!R.index.isLoaded()){var n=[],V=F.J;F=F.W.split(",").filter(function(c){return c.length>0});
for(var r=0,v=0,f=0,z=/^(\d+)/,q=/r=(\d+)/,Q=0;Q<V;Q++){if(f<=0)if(f=F.shift(),v=(v=z.exec(f))?+v[1]/1E3:0)f=(f=q.exec(f))?+f[1]:0,f+=1;else return;n.push(new zu(Q,r,v,NaN,"sq/"+(Q+1)));r+=v;f--}R.index.append(n)}};
g.B1=function(R){this.tag=R};
yQN=function(R,F){oQN.apply(null,[6,R instanceof g.B1?R.tag:R,F].concat(g.I(g.Cq.apply(2,arguments))))};
g.mW=function(R,F){oQN.apply(null,[5,R instanceof g.B1?R.tag:R,F].concat(g.I(g.Cq.apply(2,arguments))))};
oQN=function(R,F,n){var V=g.Cq.apply(3,arguments),r=R===6?"ERROR":"WARNING",v="b"+n;g.uX(new (Function.prototype.bind.apply(g.UR,[null,v].concat(g.I(V)))),r);V.unshift(v);V=V.join(", ");r=ULN.get(F);if(!r){r="ytplog."+F;v=5;try{window.localStorage&&!isNaN(+window.localStorage[r])&&(v=+window.localStorage[r]),window.sessionStorage&&!isNaN(+window.sessionStorage[r])&&(v=+window.sessionStorage[r])}catch(q){}ULN.set(F,v);r=v}if(!(R<r)){r=jTI;v=r.T.get(F);v||(v=new HbI,r.T.set(F,v));r=v;v=Date.now();var f=
Math.floor((v-r.U)*.01);f>0&&(r.T=Math.min(r.T+f,10),r.U=v);r.T>0?(r.T--,r=!0):r=!1;if(r)typeof V==="function"&&(V=V()),console.log("plyr."+F,V);else{var z;V=((z=hY_.get(F))!=null?z:0)+1;hY_.set(F,V);V%100===1&&console.warn("plyr","plyr."+F+" is chatty, dropping logs.")}}};
HbI=function(){this.T=10;this.U=Date.now()};
gi=function(R,F){this.info=R;this.U=F;this.T=null;this.J=this.N=-1;this.timestampOffset=0;this.isLocked=this.Z=!1;this.W=this.info.A1.WC()&&!this.info.T};
g.O1=function(R){return I1v(R.U)};
WGv=function(R,F){F=Math.min(F,R.info.U);var n=R.U.split(F),V=n.l4;n=new gi(new QR(R.info.type,R.info.A1,R.info.range,R.info.Z,R.info.nH,R.info.startTime,R.info.duration,R.info.T,F,!1,R.info.VN,R.info.clipId),n.E9);n.J=R.J;n.N=R.N;F=new gi(new QR(R.info.type,R.info.A1,R.info.range,R.info.Z,R.info.nH,R.info.startTime,R.info.duration,R.info.T+F,R.info.U-F,R.info.N,R.info.VN,R.info.clipId),V);F.J=R.J;F.N=R.N;return[n,F]};
g.IR=function(R,F,n,V){n=n===void 0?!1:n;V=V===void 0?0:V;if(R.isLocked||F.isLocked||!So(R.info,F.info)||R.info.N)return null;if(V){if(R.U.totalLength+F.U.totalLength>V)return null}else if(n&&(n=R.U,V=F.U,n=!(V.T.length?gSR(n,V.T[0]):1)),n)return null;n=new QR(R.info.type,R.info.A1,R.info.range,R.info.Z,R.info.nH,R.info.startTime,R.info.duration,R.info.T,R.info.U,R.info.N,R.info.VN,R.info.clipId);V=F.info;n.U+=V.U;n.range&&(n.X+=V.X);n.W=V.W;n.N=V.N;V=new sE;pV(V,R.U);pV(V,F.U);n=new gi(n,V);n.T!=
null&&F.T!=null&&g.mW("dash",414627957,"merged slice emsg overridden; prev: "+n.T.zo()+" next: "+F.T.zo());n.T=F.T||R.T;n.N=R.N!==-1?R.N:F.N;n.J=R.J!==-1?R.J:F.J;return n};
g.Kg=function(R){g.Ey(R.info.A1.info)||R.info.A1.info.UY();if(R.N!==-1)return R.N;if(R.T&&olR(R.T))return R.N=olR(R.T),R.N;if(g.Ey(R.info.A1.info)){var F=g.O1(R);for(var n=R.info.A1.T,V=NaN,r=NaN,v=0;HW(F,v);){var f=hI(F,v);f.type===1936286840?r=f.data.getUint32(f.dataOffset+8):f.type===1836476516?r=g.ys(f):f.type===1952867444&&isNaN(V)&&(V=g.u2(f));v=WW(f.type)?v+8:v+f.size}!r&&n&&(r=Ul(n));F=V/r}else F=new gm(g.O1(R)),n=R.W?F:new gm(new DataView(R.info.A1.T.buffer)),V=Mc(n),n=F.pos,F.pos=0,l2(F)?
DW(F,231)?(V=ka(F)*V/1E9,F.pos=n,F=V):(F.pos=n,F=NaN):(F.pos=n,F=NaN);R.N=F||R.info.J;return R.N};
B86=function(R,F){R.timestampOffset>0&&(F-=R.timestampOffset);var n=g.Kg(R)+F;uRe(R,n);R.timestampOffset=F};
uRe=function(R,F){g.Ey(R.info.A1.info)||R.info.A1.info.UY();R.N=F;if(g.Ey(R.info.A1.info)){var n=g.O1(R);R=R.info.A1.T;for(var V=NaN,r=NaN,v=0;HW(n,v);){var f=hI(n,v);isNaN(V)&&(f.type===1936286840?V=f.data.getUint32(f.dataOffset+8):f.type===1836476516&&(V=g.ys(f)));if(f.type===1952867444){!V&&R&&(V=Ul(R));var z=g.u2(f);isNaN(r)&&(r=Math.round(F*V)-z);var q=f;z+=r;if(q.data.getUint8(q.dataOffset)){var Q=q.data;q=q.dataOffset+4;Q.setUint32(q,Math.floor(z/4294967296));Q.setUint32(q+4,z&4294967295)}else q.data.setUint32(q.dataOffset+
4,z)}v=WW(f.type)?v+8:v+f.size}return!0}n=new gm(g.O1(R));R=R.W?n:new gm(new DataView(R.info.A1.T.buffer));V=Mc(R);R=n.pos;n.pos=0;if(l2(n)&&DW(n,231))if(r=i2(n,!0),F=Math.floor(F*1E9/V),Math.ceil(Math.log(F)/Math.log(2)/8)>r)F=!1;else{for(V=r-1;V>=0;V--)n.T.setUint8(n.pos+V,F&255),F>>>=8;n.pos=R;F=!0}else F=!1;return F};
io=function(R,F){F=F===void 0?!1:F;var n=Dj(R);R=F?0:R.info.X;return n||R};
Dj=function(R){g.Ey(R.info.A1.info)||R.info.A1.info.UY();if(R.T&&R.info.type===6)return R.T.L6;if(g.Ey(R.info.A1.info)){var F=g.O1(R);var n=0;F=g.mV(F,1936286840);F=g.m(F);for(var V=F.next();!V.done;V=F.next())V=BEk(V.value),n+=V.mG[0]/V.timescale;n=n||NaN;if(!(n>=0))a:{n=g.O1(R);F=R.info.A1.T;for(var r=V=0,v=0;HW(n,V);){var f=hI(n,V);if(f.type===1836476516)r=g.ys(f);else if(f.type===1836019558){!r&&F&&(r=Ul(F));if(!r){n=NaN;break a}var z=ji(f.data,f.dataOffset,1953653094),q=z;z=r;var Q=ji(q.data,
q.dataOffset,1952868452);q=ji(q.data,q.dataOffset,1953658222);var c=Si(Q);Si(Q);c&2&&Si(Q);Q=c&8?Si(Q):0;var w=Si(q),L=w&1;c=w&4;var S=w&256,p=w&512,C=w&1024;w&=2048;var y=Ln(q);L&&Si(q);c&&Si(q);for(var u=L=0;u<y;u++){var B=S?Si(q):Q;p&&Si(q);c&&u===0||!C||Si(q);w&&Si(q);L+=B}v+=L/z}V=WW(f.type)?V+8:V+f.size}n=v||NaN}n||g.mq(new g.UR("Missing duration while parsing bmff",R.info.KX()))}else n=new gm(g.O1(R)),R=R.W?n:new gm(new DataView(R.info.A1.T.buffer)),n=kLJ(n,Mc(R));return n};
g.mLN=function(R){if(R.info.A1.kC())return R.info.duration;R.J===-1&&(R.J=Dj(R));return R.J||R.info.duration};
gQR=function(R){var F=g.O1(R);var n=(n=g.o0(F,0,1936286840))?n.data.getUint32(n.dataOffset+8):NaN;isNaN(n)&&(R=R.info.A1.T,n=(F=g.o0(F,0,1836476516))?g.ys(F):R?Ul(R):NaN);return n};
ObN=function(R){return R.info.A1.info.UY()&&o7(R.U,0)===160};
I8f=function(R){if(!R.T){g.Ey(R.info.A1.info)||R.info.A1.info.UY();if(g.Ey(R.info.A1.info))var F=g.glj(g.O1(R));else{F=new gm(g.O1(R));var n=F.pos;F.pos=0;var V=null,r=null;if(I0(F,[408125543,307544935]))for(var v=F.pos+i2(F,!0);F.pos<v;)if(i2(F,!1)!==29555)Ya(F);else for(var f=F.pos+i2(F,!0);F.pos<f;)if(i2(F,!1)!==26568)Ya(F);else for(var z=F.pos+i2(F,!0);F.pos<z;){var q=i2(F,!1);if(q===17543){if(q=iy6(F),q=Tu(q))if(r)for(var Q=g.m(Object.keys(q)),c=Q.next();!c.done;c=Q.next())c=c.value,r[c]=q[c];
else r=q}else q===17827?(q=iy6(F),V||(V=q)):Ya(F)}F.pos=n;F=r?new Cn(r,V):null}R.T=F}};
xT=function(R){if(!R.Z){if(g.Ey(R.info.A1.info)){var F=g.O1(R);var n=ji(F,0,1836019574);if(n){n=n.offset+n.size;var V=new Uint8Array(n);V.set(new Uint8Array(F.buffer,F.byteOffset,n));F=V}else F=null}else F=xyJ(new gm(g.O1(R)));F&&(R.info.A1.T=F,R.Z=!0)}};
g.kT=function(){this.count=0;this.T=1;this.U=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)};
KGW=function(R,F){return F+1<R.count||R.U?R.offsets[F+1]-R.offsets[F]:-1};
Jd=function(R){R.offsets.length<R.count+1&&R.resize(R.offsets.length*2)};
GP=function(R,F,n,V){ri.call(this,R,F,n,V);var r=this;this.W=null;this.hJ={P4:function(v,f,z){return r.P4(v,f,z)}};
this.index=new g.kT};
DLk=function(R,F,n,V,r,v){this.displayName=R;this.vssId=F;this.languageCode=n;this.kind=V===void 0?"":V;this.xtags=r===void 0?"":r;this.id=v===void 0?"":v};
xLW=function(R){if(R=R.colorInfo)if(R=R.transferCharacteristics)return ibE[R];return null};
g.di=function(R,F,n,V){this.name=R;this.id=F;this.isDefault=n;this.isAutoDubbed=V===void 0?!1:V};
k$k=function(R){return Md(function(F,n){return g.O2(F,n,4,1E3)},R,{format:"RAW",
method:"GET",withCredentials:!0})};
g.Yy6=function(R){var F;R.responseType&&R.responseType!=="text"?R.responseType==="arraybuffer"&&(F=UE(new Uint8Array(R.response))):F=R.responseText;return!F||F.length>2048?"":F.indexOf("https://")===0?F:""};
Md=function(R,F,n){F.match(JQN);return R(F,n).then(function(V){var r=g.Yy6(V.xhr);return r?Md(R,r,n):V.xhr})};
$T=function(R,F,n){R=R===void 0?"":R;F=F===void 0?null:F;n=n===void 0?!1:n;g.fG.call(this);var V=this;this.sourceUrl=R;this.isLivePlayback=n;this.gX=this.duration=0;this.isPremiere=this.Kl=this.X=this.isLiveHeadPlayable=this.isLive=this.U=!1;this.JD=this.bX=0;this.isOtf=this.Zt=!1;this.bS=(0,g.h1)();this.J1=Infinity;this.T={};this.N=new Map;this.state=this.zt=0;this.Z=null;this.isManifestless=!1;this.lS=[];this.J=null;this.PG=0;this.W="";this.Mq=NaN;this.sf=this.LQ=this.timestampOffset=this.V=0;this.jV=
this.dl=NaN;this.w8=0;this.Y5=this.Nq=!1;this.dX=[];this.SQ={};this.uS=this.jQ=NaN;this.hJ={u$X:function(z){lo(V,z)}};
var r;this.h1=(r=F)==null?void 0:r.GH("html5_use_network_error_code_enums");G$f=!!F&&F.GH("html5_modern_vp9_mime_type");var v;Nd=!((v=F)==null||!v.GH("html5_enable_flush_during_seek"))&&g.PC();var f;E1=!((f=F)==null||!f.GH("html5_enable_reset_audio_decoder"))&&g.PC()};
dLv=function(R){return g.yf(R.T,function(F){return!!F.info.video&&F.info.video.qualityOrdinal>=2160})};
wT9=function(R){return g.yf(R.T,function(F){return!!F.info.video&&F.info.video.isHdr()})};
Fx=function(R){return g.yf(R.T,function(F){return!!F.info.lL})};
g.Mlj=function(R){return g.yf(R.T,function(F){return el(F.info.mimeType)})};
l8W=function(R){return g.yf(R.T,function(F){return F.info.video?F.info.video.projectionType==="EQUIRECTANGULAR":!1})};
N8_=function(R){return g.yf(R.T,function(F){return F.info.video?F.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})};
EQV=function(R){return g.yf(R.T,function(F){return F.info.video?F.info.video.projectionType==="MESH":!1})};
$LJ=function(R){return g.yf(R.T,function(F){return F.info.video?F.info.video.stereoLayout===1:!1})};
PT9=function(R){return v$j(R.T,function(F){return F.info.video?F.B9():!0})};
Z6=function(R){return g.yf(R.T,function(F){return Qf(57,F.jn.T)})};
lo=function(R,F){R.T[F.info.id]=F;R.N.set(v1(F,R.Zt),F)};
Zj=function(R,F,n){n=n===void 0?0:n;var V=R.mimeType||"",r=R.itag;var v=R.xtags;r=r?r.toString():"";v&&(r+=";"+v);v=r;if(Z8(V)){var f=R.width||640;r=R.height||360;var z=R.fps,q=R.qualityLabel,Q=R.qualityOrdinal,c=R.colorInfo,w=R.projectionType,L;R.stereoLayout&&(L=bb_[R.stereoLayout]);var S=xLW(R)||void 0;if(c==null?0:c.primaries)var p=Zbj[c.primaries]||void 0;f=new iT(f,r,z,w,L,void 0,q,Q&&eY6[Q],S,p);V=P1(V,f,YQ[R.itag||""]);Nd&&(V+="; enableflushduringseek=true");E1&&(V+="; enableresetaudiodecoder=true")}var C;
if(bT(V)){var y=R.audioSampleRate;L=R.audioTrack;y=new aT(y?+y:void 0,R.audioChannels,R.spatialAudioType,R.isDrc,R.loudnessDb,R.trackAbsoluteLoudnessLkfs,R.audioQuality||"AUDIO_QUALITY_UNKNOWN",R.isVb);L&&(p=L.displayName,r=L.id,z=L.audioIsDefault,L=L.isAutoDubbed,p&&(C=new g.di(p,r||"",!!z,!!L)))}var u;R.captionTrack&&(q=R.captionTrack,L=q.displayName,p=q.vssId,r=q.languageCode,z=q.kind,q=q.id,L&&p&&r&&(u=new DLk(L,p,r,z,R.xtags,q)));L=Number(R.bitrate)/8;p=Number(R.contentLength);r=Number(R.lastModified);
q=R.drmFamilies;z=R.type;n=n&&p?p/n:0;R=Number(R.approxDurationMs);if(F&&q){var B={};q=g.m(q);for(Q=q.next();!Q.done;Q=q.next())(Q=bo[Q.value])&&(B[Q]=F[Q])}return new JQ(v,V,{audio:y,video:f,z9:C,lL:B,yz:L,uO:n,contentLength:p,lastModified:r,captionTrack:u,streamType:z,approxDurationMs:R})};
eo=function(R,F,n){n=n===void 0?0:n;var V=R.type;var r=R.itag;var v=R.xtags;v&&(r=R.itag+";"+v);if(Z8(V)){var f=(R.size||"640x360").split("x");f=new iT(+f[0],+f[1],+R.fps,R.projection_type,+R.stereo_layout,void 0,R.quality_label,+R.quality_ordinal,R.eotf,R.primaries);V=P1(V,f,YQ[R.itag]);Nd&&(V+="; enableflushduringseek=true");E1&&(V+="; enableresetaudiodecoder=true")}var z;if(bT(V)){var q=new aT(+R.audio_sample_rate||void 0,+R.audio_channels||0,R.spatial_audio_type,!!R.drc);R.name&&(z=new g.di(R.name,
R.audio_track_id,R.isDefault==="1",R.isAutoDubbed==="1"))}var Q;R.caption_display_name&&R.caption_vss_id&&R.caption_language_code&&(Q=new DLk(R.caption_display_name,R.caption_vss_id,R.caption_language_code,R.caption_kind,R.xtags,R.caption_id));v=Number(R.bitrate)/8;var c=Number(R.clen),w=Number(R.lmt);n=n&&c?c/n:0;if(F&&R.drm_families){var L={};for(var S=g.m(R.drm_families.split(",")),p=S.next();!p.done;p=S.next())p=p.value,L[p]=F[p]}return new JQ(r,V,{audio:q,video:f,z9:z,lL:L,yz:v,uO:n,contentLength:c,
lastModified:w,captionTrack:Q,streamType:R.stream_type,approxDurationMs:Number(R.approx_duration_ms)})};
RjE=function(R){return t3(R,function(F){return"FORMAT_STREAM_TYPE_OTF"===F.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
FZN=function(R){return t3(R,function(F){return"FORMAT_STREAM_TYPE_OTF"===F.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
nuN=function(R,F){return R.Z?QK(R.Z.J,F):R.lS.length?QK(R.lS,F):[]};
Rc=function(R,F,n){F=F===void 0?"":F;n=n===void 0?"":n;R=new g.LW(R,!0);R.set("alr","yes");n&&(n=oJ(3,decodeURIComponent(n)),R[t[10]](F,encodeURIComponent(n)));return R};
fDR=function(R,F){var n=oR(F,"id");n=n.replace(":",";");var V=oR(F,"mimeType"),r=oR(F,"codecs");V=r?V+'; codecs="'+r+'"':V;r=Number(oR(F,"bandwidth"))/8;var v=Number(yR(F,"BaseURL").getAttribute(R.W+":contentLength")),f=R.duration&&v?v/R.duration:0;if(Z8(V)){var z=Number(oR(F,"width"));var q=Number(oR(F,"height")),Q=Number(oR(F,"frameRate")),c=VLV(oR(F,R.W+":projectionType"));a:switch(oR(F,R.W+":stereoLayout")){case "layout_left_right":var w=1;break a;case "layout_top_bottom":w=2;break a;default:w=
0}z=new iT(z,q,Q,c,w)}if(bT(V)){var L=Number(oR(F,"audioSamplingRate"));var S=Number(oR(F.getElementsByTagName("AudioChannelConfiguration")[0],"value"));q=rzR(oR(F,R.W+":spatialAudioType"));L=new aT(L,S,q);a:{S=oR(F,"lang")||"und";if(q=yR(F,"Role"))if(c=oR(q,"value")||"",g.hx(vuV,c)){q=S+"."+vuV[c];Q=c==="main";R=oR(F,R.W+":langName")||S+" - "+c;S=new g.di(R,q,Q);break a}S=void 0}}if(F=yR(F,"ContentProtection"))if(F.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var p={};for(F=
F.firstChild;F!=null;F=F.nextSibling)F instanceof Element&&/SystemURL/.test(F.nodeName)&&(R=F.getAttribute("type"),q=F.textContent,R&&q&&(p[R]=q.trim()))}else p=void 0;return new JQ(n,V,{audio:L,video:z,z9:S,lL:p,yz:r,uO:f,contentLength:v})};
VLV=function(R){switch(R){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"}};
rzR=function(R){switch(R){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"}};
zjN=function(R,F){F=F===void 0?"":F;R.state=1;R.bS=(0,g.h1)();return k$k(F||R.sourceUrl).then(function(n){if(!R.Zo()){R.zt=n.status;n=n.responseText;var V=new DOMParser;n=lS(V,LtR(n),"text/xml").getElementsByTagName("MPD")[0];R.J1=cQj(oR(n,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(n.attributes){V=g.m(n.attributes);for(var r=V.next();!r.done;r=V.next())if(r=r.value,r.value==="http://youtube.com/yt/2012/10/10"){V=r.name.split(":")[1];break b}}V=""}R.W=V;R.isLive=R.J1<Infinity&&R.isLivePlayback;R.gX=
Number(oR(n,R.W+":earliestMediaSequence"))||0;if(V=Date.parse(wHJ(oR(n,R.W+":mpdResponseTime"))))R.PG=((0,g.h1)()-V)/1E3;R.isLive&&n.getElementsByTagName("SegmentTimeline").length<=0||g.Iv(n.getElementsByTagName("Period"),R.Kh5,R);R.state=2;R.publish("loaded");tL9(R)}return R}).h5(function(n){if(n instanceof mH){var V=n.xhr;
R.zt=V.status}R.state=3;R.publish("loaderror");return DB(V)})};
q8J=function(R,F,n){return zjN(new $T(R,F,n),R)};
Fa=function(R){return R.isLive&&(0,g.h1)()-R.bS>=R.J1};
tL9=function(R){var F=R.J1;isFinite(F)&&(Fa(R)?R.refresh():(F=Math.max(0,R.bS+F-(0,g.h1)()),R.J||(R.J=new g.ZK(R.refresh,F,R),g.d(R,R.J)),R.J.start(F)))};
QiN=function(R){R=R.T;for(var F in R){var n=R[F].index;if(n.isLoaded())return n.VZ()+1}return 0};
var w_V=function(R,F,n,V,r,v,f){return Qf[t[22]](this,10,R,F,n,V,r,v,f)};
np=function(R){return R.LQ?R.LQ-(R.V||R.timestampOffset):0};
Vg=function(R){return R.sf?R.sf-(R.V||R.timestampOffset):0};
r3=function(R){if(!isNaN(R.Mq))return R.Mq;var F=R.T,n;for(n in F){var V=F[n].index;if(V.isLoaded()&&!el(F[n].info.mimeType)){F=0;for(n=V.m1();n<=V.VZ();n++)F+=V.getDuration(n);F/=V.vu();F=Math.round(F/.5)*.5;V.vu()>10&&(R.Mq=F);return F}if(R.isLive&&(V=F[n],V.L6))return V.L6}return NaN};
cz9=function(R,F){R=t7I(R.T,function(V){return V.index.isLoaded()});
if(!R)return NaN;R=R.index;var n=R.kc(F);return R.getStartTime(n)===F?F:n<R.VZ()?R.getStartTime(n+1):NaN};
wze=function(R,F){if(!R.T["0"]){var n=new JQ("0","fakesb",{video:new iT(0,0,0,void 0,void 0,"auto")});R.T["0"]=F?new TP(new g.LW("http://www.youtube.com/videoplayback"),n,"fake"):new GP(new g.LW("http://www.youtube.com/videoplayback"),n,new fg(0,0),new fg(0,0))}};
vp=function(R){if(R.isManifestless)for(var F in R.T)R.T[F].index.segments=[]};
fp=function(R,F,n){for(var V in R.T){var r=el(R.T[V].info.mimeType)||R.T[V].info.EY();if(n===r&&(r=R.T[V].index)!=null){var v=hd(r,F);v>=0&&r.segments.splice(v,1)}}};
S86=function(R){for(var F in R.T)el(R.T[F].info.mimeType)||XTN(R.T[F].index,Infinity)};
tW=function(R,F,n){for(var V in R.T){var r=R.T[V].index,v=F,f=n;r.V3&&(v&&(r.IY=Math.max(r.IY,v)),f&&(r.f2=Math.max(r.f2||0,f)))}n&&(R.jQ=n/1E3)};
LZk=function(R,F,n,V){V!==void 0&&V&&n===R.uS||(R.lS.push(F),R.uS=n,R.publish("cuepointsadded",n))};
sie=function(R){R.sf=0;R.LQ=0;R.w8=0};
zp=function(R){return R.Y5&&R.isManifestless?R.isLiveHeadPlayable:R.isLive};
P1=function(R,F,n){qr===null&&(qr=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(G$f&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return qr||n!=="9"&&n!=="("?qr||n!=="9h"&&n!=="(h"||(R='video/webm; codecs="vp9.2"'):R='video/webm; codecs="vp9"',R;if(!qr&&!Qg||R!=='video/webm; codecs="vp9"'&&R!=='video/webm; codecs="vp9.2"')return R;
n="00";var V="08",r="01",v="01",f="01";R==='video/webm; codecs="vp9.2"'&&(n="02",V="10",F.primaries==="bt2020"&&(f=r="09"),F.T==="smpte2084"&&(v="16"),F.T==="arib-std-b67"&&(v="18"));return'video/webm; codecs="'+["vp09",n,"51",V,"01",r,v,f,"00"].join(".")+'"'};
w3=function(R,F,n){R=""+R+(F>49?"p60":F>32?"p48":"");F=KQ()[R];if(F!=null&&F>0)return F;F=cp.get(R);if(F!=null&&F>0)return F;n=n==null?void 0:n.get(R);return n!=null&&n>0?n:8192};
Xzj=function(R){this.Qz=R;this.Yy=this.Yr=this.bS=this.W=this.J=this.lS=this.SQ=this.Nq=!1;this.X=this.Z=0;this.k5=!1;this.J1=!0;this.h1=!1;this.Fb=0;this.dX=this.gX=this.k8=this.PG=!1;this.U={};this.KC=this.YF=this.oC=this.disableAv1=this.mQ=this.fm=this.aG=this.on=this.T=this.V=!1;this.jQ=0;this.uZ=this.Qz.B("html5_disable_aac_preference");this.pC=Infinity;this.Mq=0;this.us=this.Qz.CC();this.HI=this.Qz.experiments.GH("html5_enable_vp9_fairplay");this.t0=this.Qz.B("html5_force_av1_for_testing");
this.Ra=this.Qz.rg().T.pH(pzj);this.uS=g.Vn(this.Qz.experiments,"html5_av1_ordinal_cap");this.A0=this.Qz.B("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.HT=this.Qz.B("html5_account_onesie_format_selection_during_format_filter");this.yz=g.Vn(this.Qz.experiments,"html5_max_byterate");this.QZ=this.Qz.B("html5_enable_iamf_audio");this.Y5=this.Qz.experiments.GH("html5_allow_capability_merge");this.eB=this.Qz.B("html5_enable_encrypted_av1")};
SFN=function(R){if(R.SQ)return["f"];if(g.E2("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var F=["9h","9","h","8"];R.eB&&F.push("1e");F=F.concat(["(h","(","H","*"]);R.PG&&(F.unshift("1"),F.unshift("1h"));R.Yr&&F.unshift("h");R.UZ&&(F=(AzI[R.UZ]||[R.UZ]).concat(F));return F};
fXN=function(R){var F=["o","a","A"];R.Mq===1&&(R.J&&(F=["mac3","MAC3"].concat(F)),R.W&&(F=["meac3","MEAC3"].concat(F)),R.QZ&&(F=["i","I"].concat(F)));R.Nq&&(F=["so","sa"].concat(F));!R.Yy||R.bS||R.N||R.uZ||F.unshift("a");R.N&&(F=(AzI[R.N]||[R.N]).concat(F));return F};
SU=function(R,F,n,V){F=F===void 0?{}:F;if(V===void 0?0:V)return F.disabled=1,0;if(fn(R.W,tI.AV1_CODECS)&&fn(R.W,tI.HEIGHT)&&fn(R.W,tI.BITRATE))return F.isCapabilityUsable=1,8192;V=1080;var r=navigator.hardwareConcurrency;r<=2&&(V=480);F.coreCount=r;if(r=g.Vn(R.experiments,"html5_default_av1_threshold"))V=F["default"]=r;if(R=R.W.Nq)F.mcap=R,V=Math.max(V,R);if(n){var v,f;if(R=(v=n.videoInfos.find(function(z){return lT(z)}))==null?void 0:(f=v.U)==null?void 0:f.powerEfficient)V=8192,F.isEfficient=1;
n=n.videoInfos[0].video;v=Math.min(w3("1",n.fps),w3("1",30));F.perfCap=v;V=Math.min(V,v);n.isHdr()&&!R&&(F.hdr=1,V*=.75)}else n=w3("1",30),F.perfCap30=n,V=Math.min(V,n),n=w3("1",60),F.perfCap60=n,V=Math.min(V,n);return F.av1Threshold=V};
Lp=function(R,F,n,V){this.flavor=R;this.keySystem=F;this.U=n;this.experiments=V;this.T={};this.qT=this.keySystemAccess=null;this.jS=this.s9=-1;this.OT=null;this.N=!!V&&V.GH("edge_nonprefixed_eme");V&&V.GH("html5_enable_vp9_fairplay")};
pp=function(R){return R.N?!1:!R.keySystemAccess&&!!sV()&&R.keySystem==="com.microsoft.playready"};
Xa=function(R){return R.keySystem==="com.microsoft.playready"};
AW=function(R){return!R.keySystemAccess&&!!sV()&&R.keySystem==="com.apple.fps.1_0"};
ac=function(R){return R.keySystem==="com.youtube.fairplay"};
Cp=function(R){return R.keySystem==="com.youtube.fairplay.sbdl"};
g.Tp=function(R){return R.flavor==="fairplay"};
sV=function(){var R=window,F=R.MSMediaKeys;eP()&&!F&&(F=R.WebKitMediaKeys);return F&&F.isTypeSupported?F:null};
yg=function(R){return navigator.requestMediaKeySystemAccess?g.Sl&&!g.PC()?h$("45"):g.Nx||g.pO?R.GH("edge_nonprefixed_eme"):g.oc?h$("47"):g.A1&&R.GH("html5_enable_safari_fairplay")?!1:!0:!1};
aDE=function(R,F,n,V){var r=bx(),v=(n=r||n&&eP())?["com.youtube.fairplay"]:["com.widevine.alpha"];F&&v.unshift("com.youtube.widevine.l3");r&&V&&v.unshift("com.youtube.fairplay.sbdl");return n?v:R?[].concat(g.I(v),g.I(UV.playready)):[].concat(g.I(UV.playready),g.I(v))};
jU=function(R,F,n,V,r){V=V===void 0?!1:V;g.G.call(this);this.Qz=F;this.useCobaltWidevine=V;this.m2=r;this.U=[];this.N={};this.T={};this.callback=null;this.W=!1;this.J=[];this.initialize(R,!n)};
Tlv=function(R,F){R.callback=F;R.J=[];yg(R.Qz.experiments)?Hp(R):C_N(R)};
Hp=function(R){if(!R.Zo())if(R.U.length===0)R.callback(R.J);else{var F=R.U[0],n=R.N[F],V=ouN(R,n);if(hW&&hW.keySystem===F&&hW.AOG===JSON.stringify(V))R.m2("remksa",{re:!0}),yzk(R,n,hW.keySystemAccess);else{var r,v;R.m2("remksa",{re:!1,ok:(v=(r=hW)==null?void 0:r.keySystem)!=null?v:""});hW=void 0;navigator.requestMediaKeySystemAccess(F,V).then(pQ(function(f){yzk(R,n,f,V)}),pQ(function(){R.W=!R.W&&R.N[R.U[0]].flavor==="widevine";
R.W||R.U.shift();Hp(R)}))}}};
yzk=function(R,F,n,V){if(!R.Zo()){V&&(hW={keySystem:F.keySystem,keySystemAccess:n,AOG:JSON.stringify(V)});F.keySystemAccess=n;if(Xa(F)){n=cH();V=g.m(Object.keys(R.T[F.flavor]));for(var r=V.next();!r.done;r=V.next())r=r.value,F.T[r]=!!n.canPlayType(r)}else{n=F.keySystemAccess.getConfiguration();if(n.audioCapabilities)for(V=g.m(n.audioCapabilities),r=V.next();!r.done;r=V.next())F.T[r.value.contentType]=!0;if(n.videoCapabilities)for(n=g.m(n.videoCapabilities),V=n.next();!V.done;V=n.next())F.T[V.value.contentType]=
!0}R.J.push(F);R.useCobaltWidevine||R.B("html5_enable_vp9_fairplay")&&Cp(F)?(R.U.shift(),Hp(R)):R.callback(R.J)}};
ouN=function(R,F){var n={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(R.B("html5_enable_vp9_fairplay")&&ac(F))return n.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),n.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[n];Xa(F)&&(n.initDataTypes=["keyids","cenc"]);for(var V=g.m(Object.keys(R.T[F.flavor])),r=V.next();!r.done;r=V.next()){r=r.value;var v=r.indexOf("audio/")===0,f=v?n.audioCapabilities:n.videoCapabilities;F.flavor!==
"widevine"||R.W?f.push({contentType:r}):v?f.push({contentType:r,robustness:"SW_SECURE_CRYPTO"}):(g.Sl&&g.E2("windows nt")&&!R.B("html5_drm_enable_moho")||f.push({contentType:r,robustness:"HW_SECURE_ALL"}),v=r,R.Qz.W.U&&r.includes("vp09")&&(v=r+"; experimental=allowed"),f.push({contentType:v,robustness:"SW_SECURE_DECODE"}),Wp(R.Qz)==="MWEB"&&(vc()||$i())&&(R.m2("swcrypto",{}),f.push({contentType:r,robustness:"SW_SECURE_CRYPTO"})))}return[n]};
C_N=function(R){if(sV()&&(g.A1||FA))R.J.push(new Lp("fairplay","com.apple.fps.1_0","",R.Qz.experiments));else{var F=U5_(),n=g.$$(R.U,function(V){var r=R.N[V],v=!1,f=!1,z;for(z in R.T[r.flavor])F(z,V)&&(r.T[z]=!0,v=v||z.indexOf("audio/")===0,f=f||z.indexOf("video/")===0);return v&&f});
n&&R.J.push(R.N[n]);R.U=[]}R.callback(R.J)};
U5_=function(){var R=sV();if(R){var F=R.isTypeSupported;return function(V,r){return F(r,V)}}var n=cH();
return n&&(n.addKey||n.webkitAddKey)?function(V,r){return!!n.canPlayType(V,r)}:function(){return!1}};
ui=function(R){var F;R=vC((F=R.serializedClientExperimentFlags)!=null?F:"","&");this.flags=new Map(Object.entries(R).map(function(n){var V=g.m(n);n=V.next().value;V=V.next().value;return typeof V==="string"?[n,V]:[n,V[0]]}))};
WZV=function(R,F){switch(F.YG){case "bool":return R.GH(F.yw);case "int":return R=jiE(R,F.yw),X$(R);case "double":return jiE(R,F.yw);case "string":return H6W(R,F.yw);case "int32_list":return hjW(R,F.yw);case "int64_list":return hjW(R,F.yw).map(function(n){return X$(n)});
case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}};
jiE=function(R,F){R=R.flags.get(""+F);return Number(R)||0};
hjW=function(R,F){if(R=R.flags.get(""+F))if(R=R.replace(/\[ *(.*?) *\]/,"$1"))return R.split(",").map(Number);return[]};
H6W=function(R,F){return(R=R.flags.get(""+F))?R.toString():""};
Bp=function(R,F,n){this.T=void 0;this.experimentIds=R?R.split(","):[];this.flags=vC(F||"","&");R={};F=g.m(this.experimentIds);for(var V=F.next();!V.done;V=F.next())R[V.value]=!0;this.experiments=R;n=new ui(n);this.N=new B2f(n);this.U=new uNk(n)};
g.Vn=function(R,F,n){n=n===void 0?0:n;R=R.pH(F);JSON.stringify(R);return R===void 0?n:Number(R)};
mj=function(R,F){return(R=R.pH(F))?R.toString():""};
unE=function(R){if(R=R.pH("html5_web_po_experiment_ids"))if(R=R.replace(/\[ *(.*?) *\]/,"$1"))return R.split(",").map(Number);return[]};
BlN=function(R){if(R.T)return R.T;if(R.experimentIds.length<=1)return R.T=R.experimentIds,R.T;var F=[].concat(g.I(R.experimentIds)).map(function(V){return Number(V)});
F.sort();for(var n=F.length-1;n>0;--n)F[n]-=F[n-1];R.T=F.map(function(V){return V.toString()});
R.T.unshift("v1");return R.T};
guJ=function(R){return m5f.then(R)};
g3=function(R,F,n){this.experiments=R;this.jQ=F;this.lS=n===void 0?!1:n;this.V=!!g.WM("cast.receiver.platform.canDisplayType");this.X={};this.UZ=!1;this.N=new Map;this.Z=!0;this.T=this.U=!1;this.Nq=0;this.J1=this.experiments.GH("html5_disable_vp9_encrypted");this.J=this.experiments.GH("html5_enable_encrypted_av1");R=g.WM("cast.receiver.platform.getValue");this.W=!this.V&&R&&R("max-video-resolution-vpx")||null;O69(this);this.U=!!(bx()&&Nl()>=21)};
pTj=function(R,F,n){n=n===void 0?1:n;var V=F.itag;if(V==="0")return!0;var r=F.mimeType;if(F.x5==="1e"&&!R.J)return"dav1enc";if(lT(F)&&R.UZ)return"dav1";if(F.video&&(F.video.isHdr()||F.video.primaries==="bt2020")&&!(fn(R,tI.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(V==="338"&&!(g.Sl?h$(53):g.oc&&h$(64)))return"dopus";var v=n;v=v===void 0?1:
v;n={};F.video&&(F.video.width&&(n[tI.WIDTH.name]=F.video.width),F.video.height&&(n[tI.HEIGHT.name]=F.video.height),F.video.fps&&(n[tI.FRAMERATE.name]=F.video.fps*v),F.video.T&&(n[tI.EOTF.name]=F.video.T),F.yz&&(n[tI.BITRATE.name]=F.yz*8*v),F.x5==="("&&(n[tI.CRYPTOBLOCKFORMAT.name]="subsample"),F.video.projectionType==="EQUIRECTANGULAR"||F.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||F.video.projectionType==="MESH")&&(n[tI.DECODETOTEXTURE.name]="true");var f;((f=F.audio)==null?0:f.numChannels)&&
F.x5!=="i"&&F.x5!=="I"&&(n[tI.CHANNELS.name]=F.audio.numChannels);R.U&&G$(F)&&(n[tI.EXPERIMENTAL.name]="allowed");f=g.m(Object.keys(tI));for(v=f.next();!v.done;v=f.next()){v=tI[v.value];var z;if(z=n[v.name])if(z=!(v===tI.EOTF&&F.mimeType.indexOf("vp09.02")>0)){z=v;var q=F;z=!(R.experiments.GH("html5_ignore_h264_framerate_cap")&&z===tI.FRAMERATE&&hM6(q))}if(z)if(fn(R,v))if(R.W){if(R.W[v.name]<n[v.name])return v.name}else r=r+"; "+v.name+"="+n[v.name];else if(d8(F)&&v===tI.EOTF)return"dvp92"}R.V&&F.video&&
F.video.qualityOrdinal>1080&&F.lL&&(r+="; hdcp=2.2");return V==="227"?"hqcenc":V!=="585"&&V!=="588"&&V!=="583"&&V!=="586"&&V!=="584"&&V!=="587"&&V!=="591"&&V!=="592"||R.experiments.GH("html5_enable_new_hvc_enc")?bx()&&Nl()>=21&&g.E2("appletv5")&&(V==="410"||V==="845")?!0:R.isTypeSupported(r)?!0:"tpus":"newhvc"};
OV=function(){var R=$i()&&!h$(29),F=g.E2("google tv")&&g.E2("chrome")&&!h$(30);return R||F?!1:Izk()};
IDj=function(R,F,n){var V=480;F=g.m(F);for(var r=F.next();!r.done;r=F.next()){r=r.value;var v=r.video.qualityOrdinal;v<=1080&&v>V&&pTj(R,r,n)===!0&&(V=v)}return V};
g.Ic=function(R,F){F=F===void 0?!1:F;return OV()&&R.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!F&&R.canPlayType(cH(),"application/x-mpegURL")?!0:!1};
D5E=function(R){KZR(function(){for(var F=g.m(Object.keys(tI)),n=F.next();!n.done;n=F.next())fn(R,tI[n.value])})};
fn=function(R,F){F.name in R.X||(R.X[F.name]=i6j(R,F));return R.X[F.name]};
i6j=function(R,F){if(R.W)return!!R.W[F.name];if(F===tI.BITRATE&&R.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!R.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(F===tI.AV1_CODECS)return R.isTypeSupported("video/mp4; codecs="+F.valid)&&!R.isTypeSupported("video/mp4; codecs="+F.OS);if(F.video){var n='video/webm; codecs="vp9"';R.isTypeSupported(n)||(n='video/mp4; codecs="avc1.4d401e"')}else n='audio/webm; codecs="opus"',
R.isTypeSupported(n)||(n='audio/mp4; codecs="mp4a.40.2"');return R.isTypeSupported(n+"; "+F.name+"="+F.valid)&&!R.isTypeSupported(n+"; "+F.name+"="+F.OS)};
x5e=function(R,F){var n=0;R.N.has(F)&&(n=R.N.get(F).s7);R.N.set(F,{s7:n+1,Cc:Math.pow(2,n+1)});R.T=!0};
ziJ=function(R,F){for(var n=new Map,V=g.m(F.keys()),r=V.next();!r.done;r=V.next()){r=r.value;var v=r.split("_")[0];R.has(v)||n.set(r,F.get(r))}return n};
QBe=function(R,F,n){var V,r=((V=F.video)==null?void 0:V.fps)||0;V=R+"_"+r;var v=!!F.audio,f={itag:F.itag,x5:R,cB:v};if(v)f.numChannels=F.audio.numChannels;else{var z=F.video;f.maxWidth=z==null?void 0:z.width;f.maxHeight=z==null?void 0:z.height;f.maxFramerate=r;f.maxBitrateBps=F.yz*8;f.H4=z==null?void 0:z.isHdr()}z=n.get(V);z?v||(F=Math.max(z.maxWidth||0,z.maxHeight||0)>Math.max(f.maxWidth||0,f.maxHeight||0)?z:f,R={itag:F.itag,x5:R,cB:v,maxWidth:Math.max(z.maxWidth||0,f.maxWidth||0),maxHeight:Math.max(z.maxHeight||
0,f.maxHeight||0),maxFramerate:r,H4:F.H4},R.maxBitrateBps=F.maxBitrateBps,n.set(V,R)):n.set(V,f)};
O69=function(R){var F;(F=navigator.mediaCapabilities)!=null&&F.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(n){n.smooth&&n.powerEfficient&&(R.Nq=2160)})};
Kp=function(){g.fG.call(this);this.items={}};
D0=function(R,F){this.T=R;this.cipher=this.T.exports.AES128CTRCipher_create(F.byteOffset)};
x0=function(){this.U=this.f$=0;this.T=Array.from({length:ii.length}).fill(0)};
kr_=function(){};
Y8N=function(){this.startTimeMs=(0,g.h1)();this.T=!1};
JzJ=function(){this.T=new kr_};
GrN=function(R,F,n,V){V=V===void 0?1:V;n>=0&&(F in R.T||(R.T[F]=new x0),R.T[F].jx(n,V))};
d5R=function(R,F,n,V,r){var v=(0,g.h1)(),f=r?r(F):void 0,z;r=(z=f==null?void 0:f.f$)!=null?z:1;if(r!==0){var q;z=(q=f==null?void 0:f.profile)!=null?q:n;GrN(R,z,v-V,r)}return F};
MLk=function(R,F,n,V,r){if(F&&typeof F==="object"){var v=function(f){return d5R(R,f,n,V,r)};
if(VW(F))return F.then(v);if(nQ(F))return z4(F,v)}return d5R(R,F,n,V,r)};
lD9=function(){};
Nlj=function(R){var F=window;F.ywc||(F.ywc={});var n=F.ywc[R];if(n)return n;n={};return F.ywc[R]=n};
EuW=function(R){var F=window;F.ywc&&delete F.ywc[R]};
$5e=function(R){var F=Nlj(R);if(F.binP)return F.binP;F.binP=Promise.resolve().then(function(){return fetch(R)}).then(function(n){if(!n.ok)throw Error("HTTP"+n.statusText);
return n.arrayBuffer()});
F.binP.then(function(n){F.bin=n},function(){EuW(R)});
return F.binP};
var aN_=function(){return Tk[t[22]](this,8)};
Z6f=function(R,F){return QW(P_v,function(){var n=this;return function r(){var v,f,z;return A7(r,function(q){switch(q.T){case 1:g.qs(q,2);if(!n.T)throw"wasm.ps.ns";v=R;f=Tv;return Vz(q,cQ(b6_(n,F)),4);case 4:z=f(q.U);if(!z)throw"wasm.ps.um";return Vz(q,cQ(WebAssembly.instantiate(z,v)),5);case 5:return q.return(q.U);case 2:g.wq(q),g.S7(q,0)}})}()})};
b6_=function(R,F){return QW(R,function(){var n=this;return function r(){var v,f,z,q,Q,c,w,L,S;return A7(r,function(p){switch(p.T){case 1:g.qs(p,2);v=[];f=function(){return"wasm.ps.c: ["+v.map(function(C){return'"'+C+'"'}).join(", ")+"]"};
z=Nlj(F);if(z.mod)return p.return(z.mod);if(!z.modP){p.wX(4);break}g.zv(p,5);q=Tv;return Vz(p,cQ(z.modP),7);case 7:return p.return(q(p.U));case 5:g.cM(p),v.unshift("pcm");case 4:if((Q=z.bin)||!z.binP){p.wX(8);break}g.zv(p,9);c=Tv;return Vz(p,cQ(z.binP),11);case 11:Q=c(p.U);g.Qz(p,8);break;case 9:g.cM(p),v.unshift("pfb");case 8:if(Q){p.wX(12);break}g.zv(p,13);w=Tv;return Vz(p,cQ($5e(F)),15);case 15:Q=w(p.U);g.Qz(p,12);break;case 13:throw g.cM(p),n.T=!1,v.unshift("fb"),f();case 12:return g.zv(p,16),
L=Tv,Vz(p,cQ(WebAssembly.compile(Q)),18);case 18:return p.return(L(p.U));case 16:S=g.cM(p),EuW(F),v.unshift("ca: "+S);case 17:throw f();case 2:g.wq(p),g.S7(p,0)}})}()})};
ejR=function(){};
R_V=function(){var R=this;this.proc_exit=function(){};
this.fd_write=function(F,n,V){if(!R.exports)return 1;F=new Uint32Array(R.exports.memory.buffer,n,V*2);n=[];for(var r=0;r<V;++r){var v=new Uint8Array(R.exports.memory.buffer,F[r*2],F[r*2+1]);v=g.Hu(v);n.push(v)}return n.reduce(function(f,z){return f+z.length},0)}};
F76=function(){this.env=new ejR;this.wasi_snapshot_preview1=new R_V};
k0=function(R,F,n){this.instance=R;this.T=n;this.exports=this.instance.exports;F.wasi_snapshot_preview1.exports=this.exports;R=Math.floor(Math.random()*256);F=Math.floor(Math.random()*256);n=0;try{n=this.exports.malloc(16);(new Uint8Array(this.exports.memory.buffer,n,16)).fill(R);if(this.exports.sentinel(n,16,F)!==F*16%256)throw"wasm.wm.vi";for(var V=new Uint8Array(this.exports.memory.buffer,n,16),r=0;r<16;r++)if(V[r]!==(R+F)%256)throw"wasm.wm.vi"+r;}finally{n!==0&&this.exports.free(n)}};
npN=function(R,F,n){var V=V===void 0?!0:V;return QW(void 0,function(){return function v(){var f,z,q,Q,c,w,L,S,p,C,y,u,B,O,K,M,J,b,RJ;return A7(v,function(Fj){switch(Fj.T){case 1:g.qs(Fj,2);f=Y0.JL();z=R&&JW;if(!z&&!F)return Q={},(q=n)==null||q("wasmns",(Q.p=R?"1":"0",Q.a=F?"1":"0",Q.s=JW?"1":"0",Q)),Fj.return(vQ(Error("wasm.wm.ns")));c=new F76;if(!z){Fj.wX(4);break}g.zv(Fj,5);w=Tv;return Vz(Fj,cQ(Z6f(c,R)),7);case 7:return L=w(Fj.U),S=new k0(L,c,!1,V),Y0.Bu("winit",f),(p=n)==null||p("wasmsw",{}),
Fj.return(S);case 5:if(C=g.cM(Fj),u={},(y=n)==null||y("wasmerrw",(u.e=""+C,u)),!F)throw Error("wasm.wm.iw: "+C);case 4:if(!F)throw Error("wasm.wm.xx");g.zv(Fj,8);B=Tv;return Vz(Fj,cQ(F(c)),10);case 10:return O=B(Fj.U),K=new k0({exports:O},c,!0,V),Y0.Bu("winitjs",f),(M=n)==null||M("wasmsa",{}),Fj.return(K);case 8:throw J=g.cM(Fj),RJ={},(b=n)==null||b("wasmerra",(RJ.e=""+J,RJ)),Error("wasm.wm.ia: "+J);case 2:g.wq(Fj),g.S7(Fj,0)}})}()})};
Gp=function(R,F,n){this.T=R;this.J=!1;F=this.T.Jj(F);this.U=new D0(R,F);this.T.free(F.byteOffset);n&&(this.N=this.T.Jj(n))};
V9v=function(R,F,n,V){n=R.T.Jj(n);var r=R.U;r.T.exports.AES128CTRCipher_setCounter(r.cipher,n.byteOffset);F=R.T.Jj(F);R.U.encrypt(F);r=void 0;if(V){V=R.T;r=R.N;var v=new Uint8Array(V.exports.memory.buffer,V.malloc(32),32);V.exports.Sha256Hmac(r.byteOffset,r.byteLength,n.byteOffset,n.byteLength,F.byteOffset,F.byteLength,v.byteOffset);r=R.T.O2(v)}R.T.free(n.byteOffset);return{JA:R.T.O2(F),signature:r}};
d3=function(R,F,n){this.T=new Gp(R,F,n)};
rAk=function(R,F,n){g.G.call(this);this.encryptedClientKey=F;this.Z=n;this.U=new Uint8Array(R.buffer,0,16);this.N=new Uint8Array(R.buffer,16)};
vpf=function(R){R.J||(R.J=new g.Se(R.U));return R.J};
Mr=function(R){try{return l$(R)}catch(F){return null}};
ffE=function(R,F){g.G.call(this);if(!F&&R)try{F=JSON.parse(R)}catch(r){}if(F){R=F.clientKey?Mr(F.clientKey):null;var n=F.encryptedClientKey?Mr(F.encryptedClientKey):null,V=F.keyExpiresInSeconds?Number(F.keyExpiresInSeconds)*1E3+(0,g.h1)():null;R&&n&&V&&(this.T=new rAk(R,n,V),g.d(this,this.T));F.onesieUstreamerConfig&&(this.onesieUstreamerConfig=Mr(F.onesieUstreamerConfig)||void 0);this.baseUrl=F.baseUrl}};
z_W=function(R,F){R=R===void 0?{}:R;F=F===void 0?{}:F;g.G.call(this);var n=this;this.values=R;this.tM=F;this.U={};this.N=this.T=0;this.J=new g.ZK(function(){t9j(n)},1E4);
g.d(this,this.J)};
t9j=function(R){var F=DQV();if(F.values){F=F.values;for(var n={},V=g.m(Object.keys(R.values)),r=V.next();!r.done;r=V.next()){r=r.value;F[r]&&R.U[r]&&(R.values[r]+=F[r]-R.U[r]);var v=R,f=v;if(!f.values[r]){var z=DQV();f.values=z.values||{};f.tM=z.halfLives||{};f.U=z.values?Object.assign({},z.values):{}}n[r]=v.values[r]&&v.tM[r]?v.values[r]/Math.pow(2,v.T/v.tM[r]):0}R.U=n}F=R.tM;n={};n.values=R.U;n.halfLives=F;g.i6("yt-player-memory",n,2592E3)};
Qw=function(R,F,n,V){g.G.call(this);this.webPlayerContextConfig=F;this.Cf=V;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.RV=this.mQ=this.A0=this.tD=this.userDisplayName=this.userDisplayImage=this.u_="";this.T={};this.KC={};this.controlsType="0";this.AK=NaN;this.h1=!1;this.H_=(0,g.h1)();this.on=0;this.I8=this.z3=!1;this.tG=!0;this.preferGapless=this.g4=this.FG=this.N=this.lX=!1;this.HO=[];this.h7=!1;this.L7=0;R=R?g.Di(R):{};F&&F.csiPageType&&(this.csiPageType=F.csiPageType);F&&F.csiServiceName&&
(this.csiServiceName=F.csiServiceName);F&&F.preferGapless&&(this.preferGapless=F.preferGapless);this.experiments=new Bp(F?F.serializedExperimentIds:R.fexp,F?F.serializedExperimentFlags:R.fflags,F!=null?F:{});this.forcedExperiments=F?F.serializedForcedExperimentIds:cc("",R.forced_experiments)||void 0;this.cspNonce=(F==null?0:F.cspNonce)?F.cspNonce:cc("",R.csp_nonce);this.B("web_player_deprecated_uvr_killswitch");try{var r=document.location.toString()}catch(b){r=""}this.fl=r;this.ancestorOrigins=(V=
window.location.ancestorOrigins)?Array.from(V):[];this.J=zQ(!1,F?F.isEmbed:R.is_embed);if(F&&F.device){if(V=F.device,V.androidOsExperience&&(this.T.caoe=""+V.androidOsExperience),V.androidPlayServicesVersion&&(this.T.capsv=""+V.androidPlayServicesVersion),V.brand&&(this.T.cbrand=V.brand),V.browser&&(this.T.cbr=V.browser),V.browserVersion&&(this.T.cbrver=V.browserVersion),V.cobaltReleaseVehicle&&(this.T.ccrv=""+V.cobaltReleaseVehicle),this.T.c=V.interfaceName||"WEB",this.T.cver=V.interfaceVersion||
"html5",V.interfaceTheme&&(this.T.ctheme=V.interfaceTheme),this.T.cplayer=V.interfacePlayerType||"UNIPLAYER",V.model&&(this.T.cmodel=V.model),V.network&&(this.T.cnetwork=V.network),V.os&&(this.T.cos=V.os),V.osVersion&&(this.T.cosver=V.osVersion),V.platform&&(this.T.cplatform=V.platform),r=mj(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),r==="all"||r==="once")V.chipset&&(this.KC.cchip=V.chipset),V.cobaltAppVersion&&(this.KC.ccappver=V.cobaltAppVersion),V.firmwareVersion&&(this.KC.cfrmver=
V.firmwareVersion),V.deviceYear&&(this.KC.crqyear=V.deviceYear)}else this.T.c=R.c||"web",this.T.cver=R.cver||"html5",this.T.cplayer="UNIPLAYER";this.loaderUrl=F?this.J||qke(this)&&F.loaderUrl?F.loaderUrl||"":this.fl:this.J||qke(this)&&R.loaderUrl?cc("",R.loaderUrl):this.fl;this.J&&g.h7("yt.embedded_player.embed_url",this.loaderUrl);this.gX=Vu()||vc();this.V=GA(this.loaderUrl,QU_)||!1;V=this.loaderUrl;var v=v===void 0?!1:v;this.LS=JE(GA(V,cAE),V,v,"Trusted Ad Domain URL");this.us=zQ(!1,R.privembed);
this.protocol=this.fl.indexOf("http:")===0?"http":"https";this.rK=QQv((F?F.customBaseYoutubeUrl:R.BASE_YT_URL)||"")||QQv(this.fl)||this.protocol+"://www.youtube.com/";v=F?F.eventLabel:R.el;V="detailpage";v==="adunit"?V=this.J?"embedded":"detailpage":v==="embedded"||this.V?V=q8(V,v,wgV):v&&(V="embedded");this.jQ=V;VwV();v=null;V=F?F.playerStyle:R.ps;r=g.Rz(SkW,V);!V||r&&!this.V||(v=V);this.playerStyle=v;this.Z=g.Rz(SkW,this.playerStyle);this.houseBrandUserStatus=F==null?void 0:F.houseBrandUserStatus;
this.J1=this.Z&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";this.VO=!this.J1;this.Y5=zQ(!1,R.disableplaybackui);this.disablePaidContentOverlay=zQ(!1,F==null?void 0:F.disablePaidContentOverlay);this.disableSeek=zQ(!1,F==null?void 0:F.disableSeek);this.enableSpeedOptions=(F==null?void 0:F.enableSpeedOptions)||(cH().defaultPlaybackRate?li||g.rf||Nr?g.oc&&h$("20")||g.Sl&&h$("4")||g.EV&&h$("11")||Rx():!(g.EV&&!g.E2("chrome")||li||g.E2("android")||g.E2("silk")):!1);this.nZ=zQ(!1,R.enable_faster_speeds);
var f;this.supportsVarispeedExtendedFeatures=(f=F==null?void 0:F.supportsVarispeedExtendedFeatures)!=null?f:!1;this.U=zQ(this.playerStyle==="blazer",R.is_html5_mobile_device||F&&F.isMobileDevice);this.XA=this.B("mweb_allow_background_playback")?!1:this.U&&!this.Z;this.Mq=pb();this.Bk=g.$0;var z;this.Dl=!!(F==null?0:(z=F.embedsHostFlags)==null?0:z.optOutApiDeprecation);var q;F?F.hideInfo!==void 0&&(q=!F.hideInfo):q=R.showinfo;this.d8=g.Pp(this)&&!this.Dl||zQ(!bi(this)&&!Z0(this)&&!this.Z,q);this.Tl=
F?!!F.mobileIphoneSupportsInlinePlayback:zQ(!1,R.playsinline);f=this.U&&eU&&R$!=null&&R$>0&&R$<=2.3;z=F?F.useNativeControls:R.use_native_controls;this.X=g.Pp(this)&&this.U;q=this.U&&!this.X;z=g.Fk(this)||!f&&zQ(q,z)?"3":"1";this.disableOrganicUi=!(F==null||!F.disableOrganicUi);q=F?F.controlsType:R.controls;this.controlsType=this.disableOrganicUi||q==="0"||q===0?"0":z;this.zy=this.U;this.color=q8("red",F?F.progressBarColor:R.color,L7v);this.ZE=this.controlsType==="3";this.HI=!this.J;this.Sm=(z=!this.HI&&
!Z0(this)&&!this.J1&&!this.Z&&!bi(this))&&!this.ZE&&this.controlsType==="1";this.eB=g.n9(this)&&z&&this.controlsType==="0"&&!this.Sm&&!(F==null?0:F.embedsEnableEmc3ds);this.lP=this.K$=f;this.oC=(this.controlsType==="3"||this.U||zQ(!1,R.use_media_volume))&&!this.X;this.qE=FA&&!g.ru(601)?!1:!0;this.fZ=this.J||!1;this.Kk=Z0(this)?"":(this.loaderUrl||R.post_message_origin||"").substring(0,128);this.widgetReferrer=cc("",F?F.widgetReferrer:R.widget_referrer);var Q;F?F.disableCastApi&&(Q=!1):Q=R.enablecastapi;
Q=!this.V||zQ(!0,Q);f=!0;F&&F.disableMdxCast&&(f=!1);this.xw=this.B("enable_cast_for_web_unplugged")&&g.Vw(this)&&f||g.Dz(this)&&f||Q&&f&&this.controlsType==="1"&&!this.U&&(Z0(this)||g.n9(this)||g.rg(this));this.PU=!!window.document.pictureInPictureEnabled||sy();Q=F?!!F.supportsAutoplayOverride:zQ(!1,R.autoplayoverride);this.Ow=!(this.U&&!g.Pp(this))&&!g.E2("nintendo wiiu")||Q;this.G_=(F?!!F.enableMutedAutoplay:zQ(!1,R.mutedautoplay))&&!1;Q=(Z0(this)||bi(this))&&this.playerStyle==="blazer";this.iI=
F?!!F.disableFullscreen:!zQ(!0,R.fs);f=g.pw(g.vV(this))&&g.Pp(this);this.aG=!this.iI&&(Q||g.yu())&&!f;this.A3=this.B("html5_picture_in_picture_logging_onresize");var c;this.Pk=(c=g.Vn(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?c:.33;this.d4=this.B("html5_picture_in_picture_blocking_onresize");this.E8=this.B("html5_picture_in_picture_blocking_ontimeupdate");this.Uk=this.B("html5_picture_in_picture_blocking_document_fullscreen");this.yJ=this.B("html5_picture_in_picture_blocking_standard_api");
c=$i()&&h$(58)&&!vc();Q=lV||typeof MediaSource==="undefined";this.nf=this.B("uniplayer_block_pip")&&(c||Q)||this.d4||this.E8||this.yJ;c=g.Pp(this)&&!this.Dl;var w;F?F.disableRelatedVideos!==void 0&&(w=!F.disableRelatedVideos):w=R.rel;this.Yy=c||zQ(!this.Z,w);this.WU=zQ(!1,F?F.enableContentOwnerRelatedVideos:R.co_rel);this.UZ=vc()&&R$>0&&R$<=4.4?"_top":"_blank";this.NP=g.rg(this);this.Zl=zQ(this.playerStyle==="blazer",F?F.enableCsiLogging:R.enablecsi);switch(this.playerStyle){case "blogger":w="bl";
break;case "discover-ads":w="dd";break;case "gmail":w="gm";break;case "gac":w="ga";break;case "ads-preview":w="ap";break;case "ads-fe":w="adfe";break;case "books":w="gb";break;case "docs":case "flix":w="gd";break;case "duo":w="gu";break;case "google-live":w="gl";break;case "google-one":w="go";break;case "play":case "play-ads":w="gp";break;case "chat":w="hc";break;case "hangouts-meet":w="hm";break;case "photos-edu":case "picasaweb":w="pw";break;default:w="yt"}this.Nq=w;this.lS=cc("",F?F.authorizedUserIndex:
R.authuser);this.YF=g.Pp(this)&&(this.us||!NTW()||this.gX);var L;F?F.disableWatchLater!==void 0&&(L=!F.disableWatchLater):L=R.showwatchlater;this.QZ=((w=!this.YF)||!!this.lS&&w)&&zQ(!this.J1,this.V?L:void 0);this.t0=F?F.isMobileDevice||!!F.disableKeyboardControls:zQ(!1,R.disablekb);this.loop=zQ(!1,R.loop);this.pageId=cc("",F?F.initialDelegatedSessionId:R.pageid);this.zR=zQ(!0,R.canplaylive);this.hs=this.experiments.GH("html5_lr_overwrite_default_audio_quality_setting")?1:2;this.Fi=zQ(!1,R.livemonitor);
this.disableSharing=zQ(this.Z,F?F.disableSharing:R.ss);(L=F&&this.B("fill_video_container_size_override_from_wpcc")?F.videoContainerOverride:R.video_container_override)?(w=L.split("x"),w.length!==2?L=null:(L=Number(w[0]),w=Number(w[1]),L=isNaN(L)||isNaN(w)||L*w<=0?null:new g.QX(L,w))):L=null;this.r8=L;this.mute=F?!!F.startMuted:zQ(!1,R.mute);this.storeUserVolume=!this.mute&&zQ(this.controlsType!=="0",F?F.storeUserVolume:R.store_user_volume);L=F?F.annotationsLoadPolicy:R.iv_load_policy;this.annotationsLoadPolicy=
this.controlsType==="3"?3:q8(void 0,L,f9);this.captionsLanguagePreference=F?F.captionsLanguagePreference||"":cc("",R.cc_lang_pref);L=q8(2,F?F.captionsLanguageLoadPolicy:R.cc_load_policy,f9);this.controlsType==="3"&&L===2&&(L=3);this.MD=L;this.HT=F?F.hl||"en_US":cc("en_US",R.hl);this.region=F?F.contentRegion||"US":cc("US",R.cr);this.hostLanguage=F?F.hostLanguage||"en":cc("en",R.host_language);this.M_=!this.us&&Math.random()<g.Vn(this.experiments,"web_player_api_logging_fraction");this.dX=!this.us;
this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(F==null||!F.deviceIsAudioOnly);this.AK=Qu(this.AK,R.ismb);this.VO?(L=R.vss_host||"s.youtube.com",L==="s.youtube.com"&&(L=tP(this.rK)||"www.youtube.com")):L="video.google.com";this.Vn=L;zV(this,R,!0);this.bS=new Kp;g.d(this,this.bS);w=F?F.innertubeApiKey:cc("",R.innertube_api_key);c=F?F.innertubeApiVersion:cc("",R.innertube_api_version);L=F?F.innertubeContextClientVersion:cc("",R.innertube_context_client_version);w=g.ew("INNERTUBE_API_KEY")||
w;c=g.ew("INNERTUBE_API_VERSION")||c;Q=g.ew("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");f=Wp(this);z=typeof this.T.c==="number"?Number(this.T.c):Object.keys(sUI).indexOf(this.T.c);this.dG={innertubeApiKey:w,innertubeApiVersion:c,cn:Q,aJ:f,tF:z,innertubeContextClientVersion:g.ew("INNERTUBE_CONTEXT_CLIENT_VERSION")||L,yD:this.hostLanguage,pU:this.region,Mi:g.ew("INNERTUBE_HOST_OVERRIDE")||"",nz:!!g.ew("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),fo1:!!g.ew("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};
this.D1=window.WebKitPlaybackTargetAvailabilityEvent!=null;this.W=new g3(this.experiments,this.B("html5_force_hfr_support")?!0:AE(this)||Z_()||$gJ()||pgJ(this),g.Sl&&g.ru(56)||g.oc&&g.ru(54)||this.B("html5_force_vp9_subsample_encryption_support")||pgJ(this));var S;this.enableSafetyMode=(S=F==null?void 0:F.initialEnableSafetyMode)!=null?S:zQ(!1,R.enable_safety_mode);S=this.Y5?!1:Z0(this)&&this.playerStyle!=="blazer";var p;F?F.disableAutonav!=null&&(p=!F.disableAutonav):p=R.allow_autonav;this.uZ=zQ(S,
!this.J1&&p);this.sendVisitorIdHeader=F?!!F.sendVisitorIdHeader:zQ(!1,R.send_visitor_id_header);var C;this.playerStyle==="docs"&&(F?C=F.disableNativeContextMenu:C=R.disable_native_context_menu);this.disableNativeContextMenu=zQ(!1,C);this.vU=AE(this)&&this.B("enable_skip_intro_button");this.embedConfig=cc("",F?F.serializedEmbedConfig:R.embed_config);this.PG=Lw(R,g.Pp(this));this.N=this.PG==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(F==null||!F.embedsErrorLinks);this.mz=zQ(!1,R.full_window);
var y;this.SQ=!((y=this.webPlayerContextConfig)==null?0:y.chromeless);var u;this.livingRoomAppMode=q8("LIVING_ROOM_APP_MODE_UNSPECIFIED",R.living_room_app_mode||(F==null?void 0:(u=F.device)==null?void 0:u.livingRoomAppMode),Xgj);var B;p=Qu(NaN,F==null?void 0:(B=F.device)==null?void 0:B.deviceYear);isNaN(p)||(this.deviceYear=p);this.transparentBackground=F?!!F.transparentBackground:zQ(!1,R.transparent_background);this.showMiniplayerButton=F?!!F.showMiniplayerButton:zQ(!1,R.show_miniplayer_button);
var O;g.Pp(this)&&!(F==null?0:(O=F.embedsHostFlags)==null?0:O.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=F?!!F.externalFullscreen:zQ(!1,R.external_fullscreen);this.showMiniplayerUiWhenMinimized=F?!!F.showMiniplayerUiWhenMinimized:zQ(!1,R.use_miniplayer_ui);var K;this.tG=(K=R.show_loop_video_toggle)!=null?K:!0;this.xV=Math.random()<1E-4;if(R.onesie_hot_config||(F==null?0:F.onesieHotConfig))this.pC=new ffE(R.onesie_hot_config,F==null?void 0:F.onesieHotConfig),g.d(this,
this.pC);this.isTectonic=F?!!F.isTectonic:!!R.isTectonic;this.playerCanaryState=n;this.playerCanaryStage=F==null?void 0:F.canaryStage;this.vA=new z_W;g.d(this,this.vA);this.datasyncId=(F==null?void 0:F.datasyncId)||g.ew("DATASYNC_ID");this.o8=g.ew("LOGGED_IN",!1);this.hD=(F==null?void 0:F.allowWoffleManagement)||!1;this.w4=Infinity;this.Kf=NaN;this.livingRoomPoTokenId=F==null?void 0:F.livingRoomPoTokenId;this.B("html5_high_res_logging_always")?this.FG=!0:this.FG=Math.random()*100<g.Vn(this.experiments,
"html5_high_res_logging_percent");var M;this.g4=!!(F==null?0:(M=F.embedsHostFlags)==null?0:M.allowRcat);this.YI=!g.Vw(this)&&!qA(this);R=R.embedded_player_response?JSON.parse(R.embedded_player_response).trackingParams:void 0;R&&(this.YK=R);var J;this.Xn=!((J=this.webPlayerContextConfig)==null||!J.embedsEnableEmc3ds)};
g.vV=function(R){var F,n;if(!((F=R.webPlayerContextConfig)==null?0:(n=F.embedsHostFlags)==null?0:n.enableLiteUx)||R.us||R.Z||R.N||R.PG==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";R=g.Vn(R.experiments,"embeds_web_lite_mode");return R===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":R>=0&&R<AAI.length?AAI[R]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
zV=function(R,F,n){n=n===void 0?!1:n;R.mQ=cc(R.mQ,F.video_id);R.A0=cc(R.A0,F.eventid);R.A0&&(Sr=R.A0);for(var V=[],r=g.m(Object.keys(afW)),v=r.next();!v.done;v=r.next()){v=afW[v.value];var f=F[v];f!=null&&(f!==R.T[v]&&V.push(v),R.T[v]=f)}!n&&V.length>0&&R.xV&&(V.sort(),g.mq(new g.UR("Player client parameters changed after startup",V)));R.userAge=Qu(R.userAge,F.user_age);R.u_=cc(R.u_,F.user_display_email);R.userDisplayImage=cc(R.userDisplayImage,F.user_display_image);g.dn(R.userDisplayImage)||(R.userDisplayImage=
"");R.userDisplayName=cc(R.userDisplayName,F.user_display_name);R.tD=cc(R.tD,F.user_gender);R.csiPageType=cc(R.csiPageType,F.csi_page_type);R.csiServiceName=cc(R.csiServiceName,F.csi_service_name);R.Zl=zQ(R.Zl,F.enablecsi);R.pageId=cc(R.pageId,F.pageid);if(n=F.enabled_engage_types)R.enabledEngageTypes=new Set(n.split(","));F.living_room_session_po_token&&(R.Ru=F.living_room_session_po_token.toString())};
cV=function(R,F){return!R.Z&&$i()&&h$(55)&&R.controlsType==="3"&&!F};
g.wg=function(R){R=tP(R.rK);return R==="www.youtube-nocookie.com"?"www.youtube.com":R};
ST=function(R,F,n){return R.protocol+"://i1.ytimg.com/vi/"+F+"/"+(n||"hqdefault.jpg")};
L9=function(R){return Z0(R)&&!g.Vw(R)};
g.Fk=function(R){return R.B("html5_local_playsinline")?FA&&!g.ru(602)&&!("playsInline"in cH()):FA&&!R.Tl||g.E2("nintendo wiiu")?!0:!1};
Wp=function(R){return R.T.c};
g.ad=function(R){return/^TVHTML5/.test(Wp(R))};
sP=function(R){return Wp(R)==="TVHTML5"};
qke=function(R){return Wp(R)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"};
pgJ=function(R){return R.T.cmodel==="CHROMECAST ULTRA/STEAK"||R.T.cmodel==="CHROMECAST/STEAK"};
g.p9=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1};
AE=function(R){return/web/i.test(Wp(R))};
g.Xk=function(R){return Wp(R).toUpperCase()==="WEB"};
qA=function(R){return Wp(R)==="WEB_KIDS"};
g.Vw=function(R){return Wp(R)==="WEB_UNPLUGGED"};
AP=function(R){return Wp(R)==="TVHTML5_UNPLUGGED"};
g.Xi=function(R){return g.Vw(R)||Wp(R)==="TV_UNPLUGGED_CAST"||AP(R)};
g.Dz=function(R){return Wp(R)==="WEB_REMIX"};
g.a$=function(R){return Wp(R)==="WEB_MUSIC_INTEGRATIONS"};
g.C9=function(R){return Wp(R)==="WEB_EMBEDDED_PLAYER"};
g.o$=function(R){return(R.deviceIsAudioOnly||!g.Sl||lV||R.controlsType==="3"?!1:g.rf?R.J&&g.ru(51):!0)||(R.deviceIsAudioOnly||!g.oc||lV||R.controlsType==="3"?!1:g.rf?R.J&&g.ru(48):g.ru(38))||(R.deviceIsAudioOnly||!g.EV||lV||R.controlsType==="3"?!1:g.rf?R.J&&g.ru(37):g.ru(27))||!R.deviceIsAudioOnly&&g.TV&&!bTR()&&g.ru(11)||!R.deviceIsAudioOnly&&g.A1&&g.ru("604.4")};
CCV=function(R){if(g.n9(R)&&eU)return!1;if(g.oc){if(!g.ru(47)||!g.ru(52)&&g.ru(51))return!1}else if(g.A1)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
opE=function(R,F){return R.enabledEngageTypes.has(F.toString())||TIj.includes(F)};
Z0=function(R){return R.jQ==="detailpage"};
g.n9=function(R){return R.jQ==="embedded"};
yw=function(R){return R.jQ==="leanback"};
bi=function(R){return R.jQ==="adunit"||R.playerStyle==="gvn"};
g.rg=function(R){return R.jQ==="profilepage"};
g.Pp=function(R){return R.J&&g.n9(R)&&!bi(R)&&!R.Z};
UP=function(R){if(!R.userDisplayImage)return"";var F=R.userDisplayImage.split("/");if(F.length===5)return R=F[F.length-1].split("="),R[1]="s20-c",F[F.length-1]=R.join("="),F.join("/");if(F.length===8)return F.splice(7,0,"s20-c"),F.join("/");if(F.length===9)return F[7]+="-s20-c",F.join("/");g.mq(new g.UR("Profile image not a FIFE URL.",R.userDisplayImage));return R.userDisplayImage};
g.jT=function(R){var F=g.wg(R);yAN.includes(F)&&(F="www.youtube.com");return R.protocol+"://"+F};
g.HV=function(R,F){F=F===void 0?"":F;if(R.Cf){var n=new oi,V,r=R.Cf();r.signedOut?V="":r.token?V=r.token:r.pendingResult.then(function(v){r.signedOut?n.resolve(""):n.resolve(v.token)},function(v){g.mq(new g.UR("b189348328_oauth_callback_failed",{error:v}));
n.resolve(F)});
return V!==void 0?D_(V):new Ik(n)}return D_(F)};
hP=function(R,F){F=F===void 0?"":F;return R.o8?rv(!0):q4(z4(rv(g.HV(R,F)),function(n){return rv(!!n)}),function(){return rv(!1)})};
Uwk=function(R){var F;return!((F=R.webPlayerContextConfig)==null||!F.enableSelfProfilingLogging)};
jUE=function(R,F){R.k5=F;var n,V;(n=R.pC)!=null&&(V=n.T)!=null&&(V.T=new d3(F,V.U,V.N),g.d(V,V.T));F.T?R.HO.push("asmjs"):R.HO.push("wasm")};
tP=function(R){var F=g.u5(R);return(R=Number(g.Wa(R)[4]||null)||null)?F+":"+R:F};
WV=function(R,F){F=F===void 0?!1:F;var n=YQ[R],V=Hf9[n],r=h_9[R];if(!r||!V)return null;F=new iT(F?r.height:r.width,F?r.width:r.height,r.fps);V=P1(V,F,n);return new JQ(R,V,{video:F,yz:r.bitrate/8})};
uBv=function(R){var F=Hf9[YQ[R]],n=W7E[R];return n&&F?new JQ(R,F,{audio:new aT(n.audioSampleRate,n.numChannels)}):null};
uk=function(R){this.T=R};
BV=function(R,F,n,V){if(n)return K$();n={};var r=cH();F=g.m(F);for(var v=F.next();!v.done;v=F.next())if(v=v.value,R.canPlayType(r,v.getInfo().mimeType)||V){var f=v.T.video.quality;if(!n[f]||n[f].getInfo().UY())n[f]=v}R=[];n.auto&&R.push(n.auto);V=g.m(xQ);for(r=V.next();!r.done;r=V.next())(r=n[r.value])&&R.push(r);return R.length?D_(R):K$()};
BIf=function(R){this.itag=R.itag;this.url=R.url;this.codecs=R.codecs;this.width=R.width;this.height=R.height;this.fps=R.fps;this.bitrate=R.bitrate;var F;this.U=((F=R.audioItag)==null?void 0:F.split(","))||[];this.xz=R.xz;this.lL=R.lL||"";this.z9=R.z9;this.audioChannels=R.audioChannels;this.T=""};
mwe=function(R,F,n,V){F=F===void 0?!1:F;n=n===void 0?!0:n;V=V===void 0?{}:V;var r={};R=g.m(R);for(var v=R.next();!v.done;v=R.next()){v=v.value;if(F&&MediaSource&&MediaSource.isTypeSupported){var f=v.type;v.audio_channels&&(f=f+"; channels="+v.audio_channels);if(!MediaSource.isTypeSupported(f)){V[v.itag]="tpus";continue}}if(n||!v.drm_families||v.eotf!=="smpte2084"&&v.eotf!=="arib-std-b67"){f=void 0;var z={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},q=v.type.match(/codecs="([^"]*)"/);
q=q?q[1]:"";v.audio_track_id&&(f=new g.di(v.name,v.audio_track_id,!!v.is_default));var Q=v.eotf;v=new BIf({itag:v.itag,url:v.url,codecs:q,width:Number(v.width),height:Number(v.height),fps:Number(v.fps),bitrate:Number(v.bitrate),audioItag:v.audio_itag,xz:Q?z[Q]:void 0,lL:v.drm_families,z9:f,audioChannels:Number(v.audio_channels)});r[v.itag]=r[v.itag]||[];r[v.itag].push(v)}else V[v.itag]="enchdr"}return r};
gpR=function(R,F,n,V,r){this.N=R;this.U=F;this.W=n;this.cpn=V;this.Z=r;this.J=0;this.T=""};
OfW=function(R,F){R.N.some(function(n){var V;return((V=n.z9)==null?void 0:V.getId())===F});
R.T=F};
mm=function(R,F,n){R.cpn&&(F=g.DI(F,{cpn:R.cpn}));n&&(F=g.DI(F,{paired:n}));return F};
IfE=function(R,F){R=R.itag.toString();F!==null&&(R+=F.itag.toString());return R};
K76=function(R){for(var F=[],n=[],V=g.m(R.U),r=V.next();!r.done;r=V.next())r=r.value,r.bitrate<=R.J?F.push(r):n.push(r);F.sort(function(v,f){return f.bitrate-v.bitrate});
n.sort(function(v,f){return v.bitrate-f.bitrate});
R.U=F.concat(n)};
gg=function(R,F,n){this.T=R;this.U=F;this.expiration=n;this.jn=null};
DwE=function(R,F){if(!(lV||eP()||bx()))return null;R=mwe(F,R.B("html5_filter_fmp4_in_hls"));if(!R)return null;F=[];for(var n={},V=g.m(Object.keys(R)),r=V.next();!r.done;r=V.next()){r=g.m(R[r.value]);for(var v=r.next();!v.done;v=r.next()){var f=v.value;f.z9&&(v=f.z9.getId(),n[v]||(f=new g.G4(v,f.z9),n[v]=f,F.push(f)))}}return F.length>0?F:null};
JAR=function(R,F,n,V,r,v,f){if(!(lV||eP()||bx()))return K$();var z={},q=ifJ(n),Q=mwe(n,R.B("html5_filter_fmp4_in_hls"),R.W.Z,z);if(!Q)return f({noplst:1}),K$();xwN(Q);n={};var c=(n.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",n),w;n=[];var L=[],S=[],p=null,C="";V=V&&V.match(/hls_timedtext_playlist/)?new BIf({itag:"0",url:V,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,z9:new g.di("English","en",!1)}):null;for(var y=g.m(Object.keys(Q)),u=y.next();!u.done;u=y.next())if(u=u.value,!R.B("html5_disable_drm_hfr_1080")||
u!=="383"&&u!=="373"){u=g.m(Q[u]);for(var B=u.next();!B.done;B=u.next())if(B=B.value,B.width){for(var O=g.m(B.U),K=O.next();!K.done;K=O.next())if(K=K.value,Q[K]){B.T=K;break}B.T||(B.T=kTk(Q,B));if(O=Q[B.T])if(n.push(B),B.lL==="fairplay"&&(w=c),K="",B.xz==="PQ"?K="smpte2084":B.xz==="HLG"&&(K="arib-std-b67"),K&&(C=K),S.push(YkI(O,[B],V,v,B.itag,B.width,B.height,B.fps,q,void 0,void 0,w,K)),!p||B.width*B.height*B.fps>p.width*p.height*p.fps)p=B}else L.push(B)}else z[u]="disdrmhfr";S.reduce(function(M,
J){return J.getInfo().isEncrypted()&&M},!0)&&(w=c);
r=Math.max(r,0);c=p||{};Q=c.fps===void 0?0:c.fps;p=c.width===void 0?0:c.width;c=c.height===void 0?0:c.height;y=R.B("html5_native_audio_track_switching");S.push(YkI(L,n,V,v,"93",p,c,Q,q,"auto",r,w,C,y));Object.entries(z).length&&f(z);return BV(R.W,S,cV(R,F),!1)};
YkI=function(R,F,n,V,r,v,f,z,q,Q,c,w,L,S){for(var p=0,C="",y=g.m(R),u=y.next();!u.done;u=y.next())u=u.value,C||(C=u.itag),u.audioChannels&&u.audioChannels>p&&(p=u.audioChannels,C=u.itag);r=new JQ(r,"application/x-mpegURL",{audio:new aT(0,p),video:new iT(v,f,z,null,void 0,Q,void 0,void 0,L),lL:w,E2:C});R=new gpR(R,F,n?[n]:[],V,!!S);R.J=c?c:1369843;return new gg(r,R,q)};
ifJ=function(R){R=g.m(R);for(var F=R.next();!F.done;F=R.next())if(F=F.value,F.url&&(F=F.url.split("expire/"),!(F.length<=1)))return+F[1].split("/")[0];return NaN};
kTk=function(R,F){for(var n=g.m(Object.keys(R)),V=n.next();!V.done;V=n.next()){V=V.value;var r=R[V][0];if(!r.width&&r.lL===F.lL&&!r.audioChannels)return V}return""};
xwN=function(R){for(var F=new Set,n=g.m(Object.values(R)),V=n.next();!V.done;V=n.next())V=V.value,V.length&&(V=V[0],V.height&&V.codecs.startsWith("vp09")&&F.add(V.height));n=[];if(F.size){V=g.m(Object.keys(R));for(var r=V.next();!r.done;r=V.next())if(r=r.value,R[r].length){var v=R[r][0];v.height&&F.has(v.height)&&!v.codecs.startsWith("vp09")&&n.push(r)}}F=g.m(n);for(n=F.next();!n.done;n=F.next())delete R[n.value]};
OP=function(R,F){this.T=R;this.U=F};
GTI=function(R,F,n,V){var r=[];n=g.m(n);for(var v=n.next();!v.done;v=n.next()){var f=v.value;if(f.url){v=new g.LW(f.url,!0);if(f.s){var z=v,q=f.sp,Q=oJ(7,decodeURIComponent(f.s));z[t[10]](q,encodeURIComponent(Q))}z=g.m(Object.keys(V));for(q=z.next();!q.done;q=z.next())q=q.value,v.set(q,V[q]);f=Ri(f.type,f.quality,f.itag,f.width,f.height);r.push(new OP(f,v))}}return BV(R.W,r,cV(R,F),!1)};
I$=function(R,F){this.T=R;this.U=F};
dwW=function(R,F,n){var V=[];n=g.m(n);for(var r=n.next();!r.done;r=n.next())if((r=r.value)&&r.url){var v=Ri(r.type,"medium","0");V.push(new I$(v,r.url))}return BV(R.W,V,cV(R,F),!1)};
M9k=function(R,F){var n=[],V=Ri(F.type,"auto",F.itag);n.push(new I$(V,F.url));return BV(R.W,n,!1,!0)};
NIf=function(R){return R&&lfN[R]?lfN[R]:null};
EpV=function(R){switch(R){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.live_unauthorized_request":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 R;default:return"sabr.config"}};
$wf=function(R){if(R=R.commonConfig)this.url=R.url,this.urlQueryOverride=R.urlQueryOverride,R.ustreamerConfig&&(this.xr=Mr(R.ustreamerConfig)||void 0)};
PCN=function(R,F){var n;if(F=F==null?void 0:(n=F.watchEndpointSupportedOnesieConfig)==null?void 0:n.html5PlaybackOnesieConfig)R.vQ=new $wf(F)};
g.K9=function(R){R=R===void 0?{}:R;this.languageCode=R.languageCode||"";this.languageName=R.languageName||null;this.kind=R.kind||"";this.name=R.name===void 0?null:R.name;this.displayName=R.displayName||null;this.id=R.id||null;this.T=R.is_servable||!1;this.isTranslateable=R.is_translateable||!1;this.url=R.url||null;this.vssId=R.vss_id||"";this.isDefault=R.is_default||!1;this.translationLanguage=R.translationLanguage||null;this.xtags=R.xtags||"";this.captionId=R.captionId||""};
g.ik=function(R){var F={languageCode:R.languageCode,languageName:R.languageName,displayName:g.Dv(R),kind:R.kind,name:R.name,id:R.id,is_servable:R.T,is_default:R.isDefault,is_translateable:R.isTranslateable,vss_id:R.vssId};R.xtags&&(F.xtags=R.xtags);R.captionId&&(F.captionId=R.captionId);R.translationLanguage&&(F.translationLanguage=R.translationLanguage);return F};
g.x_=function(R){return R.translationLanguage?R.translationLanguage.languageCode:R.languageCode};
g.bf9=function(R){var F=R.vssId;R.translationLanguage&&F&&(F="t"+F+"."+g.x_(R));return F};
g.Dv=function(R){var F=[];if(R.displayName)F.push(R.displayName);else{var n=R.languageName||"";F.push(n);R.kind==="asr"&&n.indexOf("(")===-1&&F.push(" (Automatic Captions)");R.name&&F.push(" - "+R.name)}R.translationLanguage&&F.push(" >> "+R.translationLanguage.languageName);return F.join("")};
Fe9=function(R,F,n,V){R||(R=F&&ZfR.hasOwnProperty(F)&&e_R.hasOwnProperty(F)?e_R[F]+"_"+ZfR[F]:void 0);F=R;if(!F)return null;R=F.match(RUv);if(!R||R.length!==5)return null;if(R=F.match(RUv)){var r=Number(R[3]),v=[7,8,10,5,6];R=!(Number(R[1])===1&&r===8)&&v.indexOf(r)>=0}else R=!1;return n||V||R?F:null};
k_=function(R,F){for(var n={},V=g.m(Object.keys(nUR)),r=V.next();!r.done;r=V.next()){r=r.value;var v=F?F+r:r;v=R[v+"_webp"]||R[v];g.dn(v)&&(n[nUR[r]]=v)}return n};
Y_=function(R){var F={};if(!R||!R.thumbnails)return F;R=R.thumbnails.filter(function(z){return!!z.url});
R.sort(function(z,q){return z.width-q.width||z.height-q.height});
for(var n=g.m(Object.keys(Vt6)),V=n.next();!V.done;V=n.next()){var r=Number(V.value);V=Vt6[r];for(var v=g.m(R),f=v.next();!f.done;f=v.next())if(f=f.value,f.width>=r){r=r6R(f.url);g.dn(r)&&(F[V]=r);break}}(R=R.pop())&&R.width>=1280&&(R=r6R(R.url),g.dn(R)&&(F["maxresdefault.jpg"]=R));return F};
r6R=function(R){return R.startsWith("//")?"https:"+R:R};
JP=function(R){return R&&R.baseUrl||""};
GV=function(R){R=g.zg(R);for(var F=g.m(Object.keys(R)),n=F.next();!n.done;n=F.next()){n=n.value;var V=R[n];R[n]=Array.isArray(V)?V[0]:V}return R};
fqR=function(R,F){F=g.m(F);for(var n=F.next();!n.done;n=F.next())if(n=n.value.playerAnnotationsUrlsRenderer){n.adsOnly&&(R.aS=!0);if(F=n.loadPolicy)R.annotationsLoadPolicy=vUN[F];if(F=n.invideoUrl)R.Sa=MQ(F);R.bY=!0;break}};
ttR=function(R,F){R.botguardData=F.playerAttestationRenderer.botguardData;F=F.playerAttestationRenderer.challenge;F!=null&&(R.HY=F)};
qfI=function(R,F){R.captionTracks=[];if(F.captionTracks)for(var n=g.m(F.captionTracks),V=n.next();!V.done;V=n.next()){V=V.value;var r=zUj(V.baseUrl);if(!r)return;r={is_translateable:!!V.isTranslatable,languageCode:V.languageCode,languageName:V.name&&g.LG(V.name),url:r,vss_id:V.vssId,kind:V.kind};r.name=V.trackName;r.displayName=V.name&&g.LG(V.name);R.captionTracks.push(new g.K9(r))}R.Z5=F.audioTracks||[];R.Ec=F.defaultAudioTrackIndex||0;R.b2=[];if(F.translationLanguages)for(n=g.m(F.translationLanguages),
V=n.next();!V.done;V=n.next()){r=V.value;V={};V.languageCode=r.languageCode;V.languageName=g.LG(r.languageName);if(r.translationSourceTrackIndices){V.translationSourceTrackIndices=[];for(var v=g.m(r.translationSourceTrackIndices),f=v.next();!f.done;f=v.next())V.translationSourceTrackIndices.push(f.value)}if(r.excludeAudioTrackIndices)for(V.excludeAudioTrackIndices=[],r=g.m(r.excludeAudioTrackIndices),v=r.next();!v.done;v=r.next())V.excludeAudioTrackIndices.push(v.value);R.b2.push(V)}R.zV=[];if(F.defaultTranslationSourceTrackIndices)for(n=
g.m(F.defaultTranslationSourceTrackIndices),V=n.next();!V.done;V=n.next())R.zV.push(V.value);R.BL=!!F.contribute&&!!F.contribute.captionsMetadataRenderer};
Qw6=function(R,F,n){var V=F.errorScreen;if(!(V&&(V.playerLegacyDesktopYpcOfferRenderer||V.playerLegacyDesktopYpcTrailerRenderer||V.ypcTrailerRenderer)||n&&n.isUpcoming||["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(F.status))){R.errorCode=NIf(F.errorCode)||"auth";if(n=V&&V.playerErrorMessageRenderer){R.playerErrorMessageRenderer=n;var r=n.reason;r&&(R.errorReason=g.LG(r));if(n=n.subreason)R.kK=g.LG(n),R.AE=n}else R.errorReason=F.reason||null;n=F.status;if(n==="LOGIN_REQUIRED")R.errorDetail=
"1";else if(n==="CONTENT_CHECK_REQUIRED")R.errorDetail="2";else if(n==="AGE_CHECK_REQUIRED")F=(F=F.errorScreen)&&F.playerKavRenderer,R.errorDetail=F&&F.kavUrl?"4":"3";else{var v,f,z;V=(z=V==null?void 0:(v=V.playerErrorMessageRenderer)==null?void 0:(f=v.proceedButton)==null?void 0:f.buttonRenderer)==null?void 0:z.command;if(F.isBlockedInRestrictedMode)R.errorDetail="5";else{var q;((q=g.A(V,g.dg))==null?void 0:q.signal)==="RELOAD_PAGE"?R.errorDetail="7":R.errorDetail="0"}}}};
c6_=function(R,F){R.U4=!0;var n=F.heartbeatToken;n&&(R.drmSessionId=F.drmSessionId||"",R.heartbeatToken=n,R.al=Number(F.intervalMilliseconds),R.AF=Number(F.maxRetries),R.QR=!!F.softFailOnError,R.z8=!!F.useInnertubeHeartbeatsForDrm);R.heartbeatServerData=F.heartbeatServerData;var V;R.Tj=!((V=F.heartbeatAttestationConfig)==null||!V.requiresAttestation)};
LeE=function(R,F){F=g.m(F);for(var n=F.next();!n.done;n=F.next()){n=n.value;var V=n.interstitials.map(function(f){var z=g.A(f,wSE);if(z)return{is_yto_interstitial:!0,raw_player_response:z};if(f=g.A(f,Sff))return Object.assign({is_yto_interstitial:!0},Xj(f))});
V=g.m(V);for(var r=V.next();!r.done;r=V.next())switch(r=r.value,n.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":R.interstitials=R.interstitials.concat({time:0,playerVars:r,uG:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":R.interstitials=R.interstitials.concat({time:0x7ffffffffffff,playerVars:r,uG:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var v=Number(n.podConfig.timeToInsertAtMillis);R.interstitials=R.interstitials.concat({time:v,playerVars:r,
uG:v===0?5:7})}}};
sw6=function(R,F){if(F=F.find(function(n){return!(!n||!n.tooltipRenderer)}))R.tooltipRenderer=F.tooltipRenderer};
pSI=function(R,F){F.subscribeCommand&&(R.subscribeCommand=F.subscribeCommand);F.unsubscribeCommand&&(R.unsubscribeCommand=F.unsubscribeCommand);F.addToWatchLaterCommand&&(R.addToWatchLaterCommand=F.addToWatchLaterCommand);F.removeFromWatchLaterCommand&&(R.removeFromWatchLaterCommand=F.removeFromWatchLaterCommand);F.getSharePanelCommand&&(R.getSharePanelCommand=F.getSharePanelCommand)};
XSj=function(R,F){F!=null?(R.B8=F,R.On=!0):(R.B8="",R.On=!1)};
C8k=function(R,F){if(F=F.playerControlsOverlayRenderer)XSj(R,F.controlBgHtml),F.mutedAutoplay?(F=g.A(F.mutedAutoplay,A6f))&&F.endScreen&&(F=g.A(F.endScreen,aqN))&&F.text&&(R.ql=g.LG(F.text)):R.mutedAutoplay=!1};
T6N=function(R,F){var n=F.backgroundability;n&&n.backgroundabilityRenderer.backgroundable&&(R.backgroundable=!0);var V,r;if((V=F.offlineability)==null?0:(r=V.offlineabilityRenderer)==null?0:r.offlineable)R.offlineable=!0;if(n=F.contextParams)R.contextParams=n;(n=F.pictureInPicture)&&n.pictureInPictureRenderer.playableInPip&&(R.pipable=!0);F.playableInEmbed&&(R.allowEmbed=!0);if(n=F.ypcClickwrap)F=n.playerLegacyDesktopYpcClickwrapRenderer,n=n.ypcRentalActivationRenderer,F?(R.R3=F.durationMessage||
"",R.Zn=!0):n&&(F=n.durationMessage,R.R3=F?g.LG(F):"",R.Zn=!0)};
y6_=function(R,F,n){var V=JP(F.googleRemarketingUrl);V&&(R.googleRemarketingUrl=V);if(V=JP(F.youtubeRemarketingUrl))R.youtubeRemarketingUrl=V;if(V=F.heartbeatLoggingToken)R.heartbeatLoggingToken=V;V={};var r=JP(F.ptrackingUrl);if(r){r=GV(r);var v=r.oid;v&&(R.LT=v);if(v=r.pltype)R.Hr=v;if(v=r.ptchn)R.Vi=v;if(v=r.ptk)R.qY=encodeURIComponent(v);if(r=r.m)R.kh=r}if(r=JP(F.qoeUrl)){r=g.zg(r);v=g.m(Object.keys(r));for(var f=v.next();!f.done;f=v.next()){f=f.value;var z=r[f];r[f]=Array.isArray(z)?z.join(","):
z}R.GJ=r;if(v=r.cat)R.B("html5_enable_qoe_cat_list")?R.Ji=R.Ji.concat(v.split(",")):R.HO=v;if(v=r.live)R.rj=v;if(r=r.drm_product)R.drmProduct=r}if(r=JP(F.videostatsPlaybackUrl)){r=GV(r);if(v=r.adformat)if(n.adformat=v,f=R.D(),f=Fe9(v,R.Si,f.J,f.V))R.adFormat=f;if(f=r.aqi)n.ad_query_id=f;if(n=r.autoplay)R.Lm=n=="1",R.jm=n=="1";if(n=r.autonav)R.isAutonav=n=="1";if(n=r.delay)R.l0=Z$(n);if(n=r.ei)R.eventId=n;if(n=Mr(r.adcontext))try{var q=oUf(n);q&&(R.Bj=q)}catch(Q){g.mq(Error("Malformed adContext"))}if(n||
v)R.Lm=!0;if(q=r.feature)R.FQ=q;if(q=r.list)R.playlistId=q;if(q=r.of)R.W9=q;if(q=r.osid)R.osid=q;if(q=r.referrer)R.referrer=q;if(q=r.sdetail)R.Fa=q;if(q=r.sourceid)R.oaH=q;if(q=r.ssrt)R.a4=q=="1";if(q=r.subscribed)R.subscribed=q=="1";if(q=r.uga)R.userGenderAge=q;if(q=r.upt)R.Z9=q;if(q=r.vm)R.videoMetadata=q;V.playback=r}if(q=JP(F.videostatsWatchtimeUrl)){q=GV(q);if(n=q.ald)R.Hf=n;V.watchtime=q}if(q=JP(F.atrUrl))q=GV(q),V.atr=q;if(q=JP(F.engageUrl))q=GV(q),V.engage=q;R.kT=V;F.promotedPlaybackTracking&&
(F=F.promotedPlaybackTracking,F.startUrls&&(R.oL=F.startUrls),F.firstQuartileUrls&&(R.DR=F.firstQuartileUrls),F.secondQuartileUrls&&(R.dw=F.secondQuartileUrls),F.thirdQuartileUrls&&(R.Sv=F.thirdQuartileUrls),F.completeUrls&&(R.I1=F.completeUrls),F.engagedViewUrls&&(F.engagedViewUrls.length>1&&g.mq(new g.UR("There are more than one engaged_view_urls.")),R.j4=F.engagedViewUrls[0]))};
U9I=function(R,F,n){F=g.m(F);for(var V=F.next();!V.done;V=F.next())if(V=V.value)if(V=V.playerLegacyDesktopWatchAdsRenderer)if(V=V.playerAdParams){V.autoplay=="1"&&(R.Lm=!0,R.jm=!0);R.x8=V.encodedAdSafetyReason||null;V.showContentThumbnail!==void 0&&(R.nG=!!V.showContentThumbnail);n.enabled_engage_types=V.enabledEngageTypes;break}};
jwf=function(R,F){var n=F.manifestlessWindowedLiveConfig;if(n){var V=Number(n.minDvrSequence),r=Number(n.maxDvrSequence),v=Number(n.minDvrMediaTimeMs),f=Number(n.maxDvrMediaTimeMs);n=Number(n.startWalltimeMs);V&&(R.bX=V);v&&(R.sf=v/1E3,R.B("html5_sabr_parse_live_metadata_playback_boundaries")&&MA(R)&&(R.dl=v/1E3));r&&(R.JD=r);f&&(R.LQ=f/1E3,R.B("html5_sabr_parse_live_metadata_playback_boundaries")&&MA(R)&&(R.jV=f/1E3));n&&(R.w8=n/1E3);(V||v)&&(r||f)&&(R.Xb=!0,R.isLivePlayback=!0,R.allowLiveDvr=!0,
R.Kl=!1)}if(V=F.daiConfig){if(V.enableDai){R.OY=!0;if(r=V.enableServerStitchedDai)R.enableServerStitchedDai=r;if(r=V.enablePreroll)R.fK=r}var z;if(V.daiType==="DAI_TYPE_SS_DISABLED"||((z=V.debugInfo)==null?0:z.isDisabledUnpluggedChannel))R.jO=!0;V.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(R.gm=!0);V.allowUstreamerRequestAdconfig&&(R.eV=!0);V.sendSsdaiMissingAdBreakReasons&&(R.EcG=!0)}if(z=F.audioConfig){V=z.loudnessDb;V!=null&&(R.Rm=V);V=z.trackAbsoluteLoudnessLkfs;V!=null&&(R.EQ=V);V=z.loudnessTargetLkfs;
V!=null&&(R.loudnessTargetLkfs=V);z.audioMuted&&(R.GD=!0);z.muteOnStart&&(R.C9=!0);if(V=z.loudnessNormalizationConfig)V.applyStatefulNormalization&&(R.applyStatefulNormalization=!0),V.preserveStatefulLoudnessTarget&&(R.preserveStatefulLoudnessTarget=!0),r=V.minimumLoudnessTargetLkfs,r!=null&&(R.minimumLoudnessTargetLkfs=r),V=V.maxStatefulTimeThresholdSec,V!=null&&(R.maxStatefulTimeThresholdSec=V);z.playAudioOnly&&(R.wy=!0)}if(V=F.playbackEndConfig)z=V.endSeconds,V=V.limitedPlaybackDurationInSeconds,
R.mutedAutoplay&&(z&&(R.endSeconds=z),V&&(R.limitedPlaybackDurationInSeconds=V));if(z=F.fairPlayConfig){if(V=z.certificate)R.qT=Mr(V);V=Number(z.keyRotationPeriodMs);V>0&&(R.s9=V);z=Number(z.keyPrefetchMarginMs);z>0&&(R.jS=z)}if(z=F.playbackStartConfig){R.GQ=Number(z.startSeconds);r=z.liveUtcStartSeconds;V=!!R.liveUtcStartSeconds&&R.liveUtcStartSeconds>0;r&&!V&&(R.liveUtcStartSeconds=Number(r));if(r=z.startPosition)if((v=r.utcTimeMillis)&&!V&&(R.liveUtcStartSeconds=Number(v)*.001),V=r.streamTimeMillis)R.N_=
Number(V)*.001;R.progressBarStartPosition=z.progressBarStartPosition;R.progressBarEndPosition=z.progressBarEndPosition}else if(z=F.skippableSegmentsConfig){if(V=z.introSkipDurationMs)R.TQ=Number(V)/1E3;if(z=z.outroSkipDurationMs)R.o1=Number(z)/1E3}if(V=F.skippableIntroConfig)z=Number(V.startMs),V=Number(V.endMs),isNaN(z)||isNaN(V)||(R.v5=z,R.Iq=V);if(z=F.streamSelectionConfig)R.AK=Number(z.maxBitrate);if(z=F.vrConfig)R.cC=z.partialSpherical=="1";if(z=F.webDrmConfig){z.skipWidevine&&(R.UE=!0);if(V=
z.widevineServiceCert)R.OT=Mr(V);z.useCobaltWidevine&&(R.useCobaltWidevine=!0);z.startWithNoQualityConstraint&&(R.Ab=!0)}if(z=F.mediaCommonConfig){if(V=z.dynamicReadaheadConfig){R.maxReadAheadMediaTimeMs=V.maxReadAheadMediaTimeMs||NaN;R.minReadAheadMediaTimeMs=V.minReadAheadMediaTimeMs||NaN;R.readAheadGrowthRateMs=V.readAheadGrowthRateMs||NaN;var q;if(V=z==null?void 0:(q=z.mediaUstreamerRequestConfig)==null?void 0:q.videoPlaybackUstreamerConfig)R.K4=Mr(V);if((q=z==null?void 0:z.sabrContextUpdates)&&
q.length>0)for(q=g.m(q),V=q.next();!V.done;V=q.next())V=V.value,V.type&&V.value&&(r={type:V.type,scope:V.scope,value:Mr(V.value)||void 0,sendByDefault:V.sendByDefault},R.sabrContextUpdates.set(V.type,r))}if(q=z.serverPlaybackStartConfig)R.serverPlaybackStartConfig=q;z.useServerDrivenAbr&&(R.wP=!0);if(q=z.requestPipeliningConfig)R.requestPipeliningConfig=q}if(q=F.inlinePlaybackConfig)R.LN=!!q.showAudioControls;if(q=F.embeddedPlayerConfig){R.embeddedPlayerConfig=q;if(z=q.embeddedPlayerMode)V=R.D(),
V.PG=z,V.N=z==="EMBEDDED_PLAYER_MODE_PFL";if(q=q.permissions)R.allowImaMonetization=!!q.allowImaMonetization}if(F=F.webPlayerConfig)F.gatewayExperimentGroup&&(R.gatewayExperimentGroup=F.gatewayExperimentGroup),F.isProximaEligible&&(R.isProximaLatencyEligible=!0)};
Hjv=function(R,F,n){var V=F.formats;if(V){for(var r=[],v=g.m(V),f=v.next();!f.done;f=v.next())f=f.value,r.push(f.itag+"/"+f.width+"x"+f.height);R.XU=r.join(",");r=[];V=g.m(V);for(v=V.next();!v.done;v=V.next()){f=v.value;v={itag:f.itag,type:f.mimeType,quality:f.quality};var z=f.url;z&&(v.url=z);f=Av(33,f);z=f.oK;var q=f.NZ,Q=f.s;f.a6&&(v.url=z,v.sp=q,v.s=Q);r.push(g.KS(v))}R.jf=r.join(",")}if(v=F.hlsFormats){r={};if(n&&(n=n.audioPairingConfig)&&n.pairs)for(n=g.m(n.pairs),V=n.next();!V.done;V=n.next())V=
V.value,f=V.videoItag,r[f]||(r[f]=[]),r[f].push(V.audioItag);n={};V=g.m(v);for(f=V.next();!f.done;f=V.next())f=f.value,n[f.itag]=f.bitrate;V=[];v=g.m(v);for(f=v.next();!f.done;f=v.next()){f=f.value;z={itag:f.itag,type:f.mimeType,url:f.url,bitrate:f.bitrate,width:f.width,height:f.height,fps:f.fps};if(q=f.audioTrack)if(Q=q.displayName)z.name=Q,z.audio_track_id=q.id,q.audioIsDefault&&(z.is_default="1");if(f.drmFamilies){q=[];Q=g.m(f.drmFamilies);for(var c=Q.next();!c.done;c=Q.next())q.push(bo[c.value]);
z.drm_families=q.join(",")}(q=r[f.itag])&&q.length&&(z.audio_itag=q.join(","),(q=n[q[0]])&&(z.bitrate+=q));(q=xLW(f))&&(z.eotf=q);f.audioChannels&&(z.audio_channels=f.audioChannels);V.push(g.KS(z))}R.hlsFormats=V.join(",")}if((n=F.licenseInfos)&&n.length>0){r={};n=g.m(n);for(V=n.next();!V.done;V=n.next())v=V.value,V=v.drmFamily,v=v.url,V&&v&&(r[bo[V]]=v);R.lL=r}if(r=F.drmParams)R.drmParams=r;if(r=F.dashManifestUrl)R.xo=g.DI(r,{cpn:R.clientPlaybackNonce});if(r=F.hlsManifestUrl)R.hlsvp=r;if(r=F.probeUrl)R.probeUrl=
MQ(g.DI(r,{cpn:R.clientPlaybackNonce}));if(F=F.serverAbrStreamingUrl)R.TD=new g.LW(F,!0)};
WeN=function(R,F,n){var V=F.videoId;V&&(R.videoId=V,n.video_id||(n.video_id=V));if(V=F.title)R.title=V,n.title||(n.title=V);if(V=F.lengthSeconds)R.lengthSeconds=Number(V),n.length_seconds||(n.length_seconds=V);if(V=F.keywords)R.keywords=hU6(V);if(V=F.channelId)R.By=V,n.ucid||(n.ucid=V);if(V=F.viewCount)R.rawViewCount=Number(V);if(V=F.author)R.author=V,n.author||(n.author=V);if(n=F.shortDescription)R.shortDescription=n;if(n=F.isCrawlable)R.isListed=n;if(n=F.musicVideoType)R.musicVideoType=n;n=F.isLive;
n!=null&&(R.isLivePlayback=n);if(n||F.isUpcoming)R.isPremiere=!F.isLiveContent;if(n=F.thumbnail)R.Su=Y_(n);if(n=F.isExternallyHostedPodcast)R.isExternallyHostedPodcast=n;(n=F.stationType)&&n!=="STATION_TYPE_UNKNOWN"&&(R.cJG=!0);F=F.viewerLivestreamJoinPosition;if(F==null?0:F.utcTimeMillis)R.qy=Z$(F.utcTimeMillis)};
m99=function(R,F){if(F.playerLegacyDesktopYpcTrailerRenderer){var n=F.playerLegacyDesktopYpcTrailerRenderer;R.iH=n.trailerVideoId||"";var V=(V=F.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer)&&V.ypcTrailerRenderer}else if(F.playerLegacyDesktopYpcOfferRenderer)n=F.playerLegacyDesktopYpcOfferRenderer;else if(F.ypcTrailerRenderer){V=F.ypcTrailerRenderer;F=V.fullVideoMessage;R.GT=F?g.LG(F):"";var r,v;R.iH=((r=g.A(V,uON))==null?void 0:(v=r.videoDetails)==null?void 0:v.videoId)||""}n&&(R.uH=n.itemTitle||
"",n.itemUrl&&(R.H3=n.itemUrl),n.itemBuyUrl&&(R.V$=n.itemBuyUrl),R.Lu=n.itemThumbnail||"",R.G6=n.offerHeadline||"",R.x_=n.offerDescription||"",R.kz=n.offerId||"",R.Rz=n.offerButtonText||"",R.Vv=n.offerButtonFormattedText||null,R.O5=n.overlayDurationMsec||NaN,R.GT=n.fullVideoMessage||"",R.lO=!0);V&&((n=g.A(V,uON))?R.ET={raw_player_response:n}:(n=g.A(V,B6j),R.ET=n?Xj(n):null),R.lO=!0)};
Ojv=function(R,F,n,V){F.isLiveDefaultBroadcast&&(R.isLiveDefaultBroadcast=!0);F.isUpcoming&&(R.isUpcoming=!0);if(F.isPostLiveDvr){R.Kl=!0;if(V=F.latencyClass)R.latencyClass=gUe[V]||"UNKNOWN";F.isLowLatencyLiveStream&&(R.isLowLatencyLiveStream=!0)}else{var r=!1;R.Fi?(R.allowLiveDvr=OV()?!0:nw&&lk<5?!1:!0,R.isLivePlayback=!0):F.isLive?(V.livestream="1",R.allowLiveDvr=F.isLiveDvrEnabled?OV()?!0:nw&&lk<5?!1:!0:!1,R.partnerId=27,r=!0):F.isUpcoming&&(r=!0);if(F.isLive||R.Fi){F.isLowLatencyLiveStream&&(R.isLowLatencyLiveStream=
!0);var v=F.latencyClass;v&&(R.latencyClass=gUe[v]||"UNKNOWN");if(F=F.liveChunkReadahead)R.liveChunkReadahead=F;if(F=n&&n.livePlayerConfig){F.hasSubfragmentedFmp4&&(R.hasSubfragmentedFmp4=!0);F.hasSubfragmentedWebm&&(R.Xu=!0);F.defraggedFromSubfragments&&(R.defraggedFromSubfragments=!0);if(n=F.liveExperimentalContentId)R.liveExperimentalContentId=Number(n);F=F.isLiveHeadPlayable;R.B("html5_live_head_playable")&&F!=null&&(R.isLiveHeadPlayable=F)}}r&&(R.isLivePlayback=!0,V.adformat&&V.adformat.split("_")[1]!==
"8"||R.D0.push("heartbeat"))}};
NA=function(R,F){this.type=R||"";this.id=F||""};
EP=function(R){return new NA(R.substring(0,2),R.substring(2))};
$_=function(R,F){this.Qz=R;this.author="";this.Sp=null;this.playlistLength=0;this.T=this.sessionData=null;this.Su={};this.title="";if(F){this.author=F.author||F.playlist_author||"";this.title=F.playlist_title||"";if(R=F.session_data)this.sessionData=vC(R,"&");var n;this.T=((n=F.thumbnail_ids)==null?void 0:n.split(",")[0])||null;this.Su=k_(F,"playlist_");this.videoId=F.video_id||void 0;if(n=F.list)switch(F.listType){case "user_uploads":this.playlistId=(new NA("UU","PLAYER_"+n)).toString();break;default:if(R=
F.playlist_length)this.playlistLength=Number(R)||0;this.playlistId=EP(n).toString();if(F=F.video)this.videoId=(F[0]||null).video_id||void 0}else F.playlist&&(this.playlistLength=F.playlist.toString().split(",").length)}};
PV=function(R,F){this.Qz=R;this.q_=this.author="";this.Sp=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.xH=this.lengthText="";this.sessionData=null;this.Su={};this.title="";if(F){this.ariaLabel=F.aria_label||void 0;this.author=F.author||"";this.q_=F.q_||"";if(R=F.endscreen_autoplay_session_data)this.Sp=vC(R,"&");this.wC=F.wC;this.isLivePlayback=F.live_playback==="1";this.isUpcoming=!!F.isUpcoming;if(R=F.length_seconds)this.lengthSeconds=typeof R==="string"?Number(R):R;this.lengthText=
F.lengthText||"";this.xH=F.xH||"";this.publishedTimeText=F.publishedTimeText||void 0;if(R=F.session_data)this.sessionData=vC(R,"&");this.shortViewCount=F.short_view_count_text||void 0;this.Su=k_(F);this.title=F.title||"";this.videoId=F.docid||F.video_id||F.videoId||F.id||void 0;this.watchUrl=F.watchUrl||void 0}};
Iqf=function(R){var F,n,V=(F=R.getWatchNextResponse())==null?void 0:(n=F.contents)==null?void 0:n.twoColumnWatchNextResults,r,v,f,z,q;R=(r=R.getWatchNextResponse())==null?void 0:(v=r.playerOverlays)==null?void 0:(f=v.playerOverlayRenderer)==null?void 0:(z=f.endScreen)==null?void 0:(q=z.watchNextEndScreenRenderer)==null?void 0:q.results;if(!R){var Q,c;R=V==null?void 0:(Q=V.endScreen)==null?void 0:(c=Q.endScreen)==null?void 0:c.results}return R};
g.Zv=function(R){var F,n,V;R=g.A((F=R.getWatchNextResponse())==null?void 0:(n=F.playerOverlays)==null?void 0:(V=n.playerOverlayRenderer)==null?void 0:V.decoratedPlayerBarRenderer,bk);return g.A(R==null?void 0:R.playerBar,KeJ)};
D9R=function(R){this.T=R.playback_progress_0s_url;this.N=R.playback_progress_2s_url;this.U=R.playback_progress_10s_url};
ijJ=function(){if(eT===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(F){}a:{try{var R=!!self.localStorage}catch(F){R=!1}if(R&&(R=g.xe(g.Pc()+"::yt-player"))){eT=new YH(R);break a}eT=void 0}}return eT};
g.Ro=function(){var R=ijJ();if(!R)return{};try{var F=R.get("yt-player-lv");return JSON.parse(F||"{}")}catch(n){return{}}};
g.x9f=function(R){var F=ijJ();F&&(R=JSON.stringify(R),F.set("yt-player-lv",R))};
g.FV=function(R){return g.Ro()[R]||0};
g.nM=function(R,F){var n=g.Ro();F!==n[R]&&(F!==0?n[R]=F:delete n[R],g.x9f(n))};
g.Vq=function(R){return g.Y(function(F){return F.return(g.GR(kNf(),R))})};
vh=function(R,F,n,V,r,v,f,z){var q,Q,c,w,L,S;return g.Y(function(p){switch(p.T){case 1:return q=g.FV(R),q===4?p.return(4):g.k(p,g.R5(),2);case 2:Q=p.U;if(!Q)throw g.C3("wiac");if(!z||f===void 0){p.wX(3);break}return g.k(p,Yfv(z,f),4);case 4:f=p.U;case 3:return c=n.lastModified||"0",g.k(p,g.Vq(Q),5);case 5:return w=p.U,g.zv(p,6),rd++,g.k(p,g.Og(w,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Xs:!0},function(C){if(v!==void 0&&f!==void 0){var y=""+R+"|"+F.id+"|"+c+"|"+String(v).padStart(10,
"0");y=C.objectStore("media").put(f,y)}else y=g.o8.resolve(void 0);var u=J6e(R,F.EY()),B=J6e(R,!F.EY()),O={fmts:GNj(V),format:n||{}};u=C.objectStore("index").put(O,u);var K=V.downloadedEndTime===-1;O=K?C.objectStore("index").get(B):g.o8.resolve(void 0);var M={fmts:"music",format:{}};C=K&&r&&!F.EY()?C.objectStore("index").put(M,B):g.o8.resolve(void 0);return g.o8.all([C,O,y,u]).then(function(J){J=g.m(J);J.next();J=J.next().value;rd--;var b=g.FV(R);if(b!==4&&K&&r||J!==void 0&&g.d9W(J.fmts))b=1,g.nM(R,
b);return b})}),8);
case 8:return p.return(p.U);case 6:L=g.cM(p);rd--;S=g.FV(R);if(S===4)return p.return(S);g.nM(R,4);throw L;}})};
g.MtN=function(R){var F,n;return g.Y(function(V){if(V.T==1)return g.k(V,g.R5(),2);if(V.T!=3){F=V.U;if(!F)throw g.C3("ri");return g.k(V,g.Vq(F),3)}n=V.U;return V.return(g.Og(n,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(r){var v=IDBKeyRange.bound(R+"|",R+"~");return r.objectStore("index").getAll(v).then(function(f){return f.map(function(z){return z?z.format:{}})})}))})};
N6R=function(R,F,n,V,r){var v,f,z;return g.Y(function(q){if(q.T==1)return g.k(q,g.R5(),2);if(q.T!=3){v=q.U;if(!v)throw g.C3("rc");return g.k(q,g.Vq(v),3)}f=q.U;z=g.Og(f,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(Q){var c=""+R+"|"+F+"|"+n+"|"+String(V).padStart(10,"0");return Q.objectStore("media").get(c)});
return r?q.return(z.then(function(Q){if(Q===void 0)throw Error("No data from indexDb");return lqW(r,Q)}).catch(function(Q){throw new g.UR("Error while reading chunk: "+Q.name+", "+Q.message);
})):q.return(z)})};
g.d9W=function(R){return R?R==="music"?!0:R.includes("dlt=-1")||!R.includes("dlt="):!1};
J6e=function(R,F){return""+R+"|"+(F?"v":"a")};
GNj=function(R){var F={};return f$((F.dlt=R.downloadedEndTime.toString(),F.mket=R.maxKnownEndTime.toString(),F.avbr=R.averageByteRate.toString(),F))};
$9f=function(R){var F={},n={};R=g.m(R);for(var V=R.next();!V.done;V=R.next()){var r=V.value,v=r.split("|");r.match(g.EUI)?(V=Number(v.pop()),isNaN(V)?n[r]="?":(v=v.join("|"),(r=F[v])?(v=r[r.length-1],V===v.end+1?v.end=V:r.push({start:V,end:V})):F[v]=[{start:V,end:V}])):n[r]="?"}R=g.m(Object.keys(F));for(V=R.next();!V.done;V=R.next())V=V.value,n[V]=F[V].map(function(f){return f.start+"-"+f.end}).join(",");
return n};
fM=function(R){g.fG.call(this);this.T=null;this.N=new G0;this.T=null;this.Z=new Set;this.crossOrigin=R||""};
P8R=function(R,F,n){for(n=tu(R,n);n>=0;){var V=R.levels[n];if(V.isLoaded(z7(V,F))&&(V=g.qF(V,F)))return V;n--}return g.qF(R.levels[0],F)};
Zjj=function(R,F,n){n=tu(R,n);for(var V,r;n>=0;n--)if(V=R.levels[n],r=z7(V,F),!V.isLoaded(r)){V=R;var v=n,f=v+"-"+r;V.Z.has(f)||(V.Z.add(f),V.N.enqueue(v,{Tx:v,S2:r}))}bje(R)};
bje=function(R){if(!R.T&&!R.N.isEmpty()){var F=R.N.remove();R.T=eUE(R,F)}};
eUE=function(R,F){var n=document.createElement("img");R.crossOrigin&&(n.crossOrigin=R.crossOrigin);n.src=R.levels[F.Tx].rD(F.S2);n.onload=function(){var V=F.Tx,r=F.S2;R.T!==null&&(R.T.onload=null,R.T=null);V=R.levels[V];V.loaded.add(r);bje(R);var v=V.columns*V.rows;r*=v;V=Math.min(r+v-1,V.zN()-1);r=[r,V];R.publish("l",r[0],r[1])};
return n};
g.Qq=function(R,F,n,V){this.level=R;this.J=F;this.loaded=new Set;this.level=R;this.J=F;R=n.split("#");this.width=Math.floor(Number(R[0]));this.height=Math.floor(Number(R[1]));this.frameCount=Math.floor(Number(R[2]));this.columns=Math.floor(Number(R[3]));this.rows=Math.floor(Number(R[4]));this.T=Math.floor(Number(R[5]));this.N=R[6];this.signature=R[7];this.videoLength=V};
z7=function(R,F){return Math.floor(F/(R.columns*R.rows))};
g.qF=function(R,F){F>=R.vx()&&R.DS();var n=z7(R,F),V=R.columns*R.rows,r=F%V;F=r%R.columns;r=Math.floor(r/R.columns);var v=R.DS()+1-V*n;if(v<R.columns){var f=v;V=1}else f=R.columns,V=v<V?Math.ceil(v/R.columns):R.rows;return{url:R.rD(n),column:F,columns:f,row:r,rows:V,bl:R.width*f,m$:R.height*V}};
ch=function(R,F,n,V,r){V=V===void 0?!1:V;r=r===void 0?!1:r;fM.call(this,n);this.isLive=V;this.X=!!r;this.levels=this.U(R,F);this.J=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
Rcv=function(R,F,n){return(R=R.levels[F])?R.ZI(n):-1};
tu=function(R,F){var n=R.J.get(F);if(n)return n;n=R.levels.length;for(var V=0;V<n;V++)if(R.levels[V].width>=F)return R.J.set(F,V),V;R.J.set(F,n-1);return n-1};
wd=function(R,F,n,V){n=n.split("#");n=[n[1],n[2],0,n[3],n[4],-1,n[0],""].join("#");g.Qq.call(this,R,F,n,0);this.U=null;this.W=V?2:0};
SZ=function(R,F,n,V){ch.call(this,R,0,void 0,F,!(V===void 0||!V));for(R=0;R<this.levels.length;R++)this.levels[R].ye(n)};
F1R=function(R,F,n){F={cpn:F};R.indexOf("/ibw/")===-1&&(F.ibw=n?String(n):"1369843");return{url:g.DI(R,F),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
nER=function(R){try{var F=(new g.LW(R,!0)).get("n");if(F){var n=R.match(/\/n\/([^/]+)/);if(n&&n[1]&&n[1]!==F)return R.replace("/n/"+n[1],"/n/"+F)}}catch(V){g.mq(V)}return R};
g.sr=function(R,F){g.fG.call(this);var n=this;this.Qz=R;this.adaptiveFormats="";this.x8=this.adQueryId=this.Kf=null;this.qE={start:NaN,end:NaN};this.cueRanges=this.lL=null;this.vA=new Map;this.drmProduct=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Sa="";this.aS=!1;this.sH=null;this.Zn=this.lO=this.bY=!1;this.J=null;this.C9=this.GD=!1;this.Rm=NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=
0;this.EQ=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.RV=0;this.Tj=!1;this.cycToken=null;this.author="";this.ID=!1;this.KC=0;this.G_=!1;this.E8=null;this.S5=[];this.xa=this.YI=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.Y5=this.YF="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.l0=0;this.OT=this.qT=this.U=null;this.XU="";this.loading=!1;this.AK=this.Tl=0;this.vF=this.pipable=
this.jm=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.mutedAutoplay=this.Lm=!1;this.mutedAutoplayDurationMode=0;this.isLiveHeadPlayable=this.isLivePlayback=this.Fi=this.isPrivate=this.isListed=this.us=!1;this.rj="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.Pk=this.Xb=this.Kl=!1;this.latencyClass="UNKNOWN";this.aD=this.A3=this.jO=this.CY=this.rR=this.vU=this.fK=this.gm=this.EcG=this.eV=this.enableServerStitchedDai=this.OY=this.isMdxPlayback=
this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.dX=0;this.reloadReason="";this.Nr=this.pC=!1;this.keywords={};this.h1="";this.K$=0;this.dP=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.nf=null;this.D1=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.ri=this.paygated=!1;this.a$=[];this.Ow=!1;this.D0=[];this.K4=null;this.Cg=this.racyCheckOk=!1;this.HD={};this.isProximaLatencyEligible=!1;this.I4=0;this.N=
null;this.autonavState=1;this.rz=null;this.shortDescription="";this.V=this.IS=!1;this.N_=this.gX=this.startSeconds=0;this.Dl=this.dR=this.d4=LM;this.Zl=this.suggestions=null;this.o8=this.w4=void 0;this.isExternallyHostedPodcast=!1;this.NP=null;this.Bq=this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.Mq=[];this.oC=[];this.hlsFormats=this.jf="";this.YK=this.I8=this.lX=this.k5=this.PG=this.iI=this.xV=this.eB=null;this.BA="vvt";this.fl=!1;this.Vv=null;this.VP="";this.O5=NaN;this.iH=
this.H3=this.uH=this.Lu=this.V$=this.kz=this.GT=this.G6=this.x_=this.Rz="";this.ET=null;this.eH=!1;this.clipStart=0;this.clipEnd=Infinity;this.U4=!1;this.heartbeatToken="";this.AF=this.al=NaN;this.k_=this.uZ=this.hD=this.Yy=this.z8=this.QR=!1;this.nG=!0;this.Su={};this.captionTracks=[];this.Z5=[];this.Ec=0;this.zV=[];this.b2=[];this.BL=!1;this.L7={};this.FG=new g.G4("und",new g.di("Default","und",!0));this.Bk=0;this.W=null;this.GZ=[];this.VO=!1;this.Si=this.aG="";this.slotPosition=-1;this.breakType=
0;this.embeddedPlayerConfig=this.reelItemWatchResponse=this.jQ=this.zR=this.LS=this.playerResponse=this.VV=this.eU=this.tD=this.zZ=null;this.fZ=!1;this.on=null;this.isInlinePlaybackNoAd=this.Ab=this.Xn=this.useCobaltWidevine=this.UE=this.cC=!1;this.LN=!0;this.Iq=this.v5=NaN;this.defraggedFromSubfragments=this.Xu=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.bS=new Set;this.sabrContextUpdates=new Map;this.gatewayExperimentGroup="";this.d8=this.lS=this.wy=!1;this.interstitials=
[];this.On=this.xX=!1;this.B8="";this.allowImaMonetization=!1;this.ql="";this.Kt=!1;this.HO="";this.Ji=[];this.WU=[];this.Zh="";this.zD=this.X=this.e1=!1;this.R3="";this.GQ=this.o1=this.TQ=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.mz=!1;this.Ru=this.QZ=!0;this.errorDetail=this.userGenderAge="";this.ZS=this.tT=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=
this.contextParams=this.kK=this.errorReason=this.errorCode=null;this.zy=!1;this.dG=[];this.w8=this.sf=this.LQ=this.JD=this.bX=0;this.fetchType=null;this.hL=!0;this.transitionEndpointAtEndOfStream=void 0;this.Vn=this.Dm=-1;this.h7=this.mQ=!1;this.uS=null;this.UZ="";this.watchUrl=null;this.XW=[];this.visibleOnLoadKeys=[];this.gR=[];this.inlineMetricEnabled=this.H_=!1;this.MD=this.embedsRctn=this.embedsRct="";this.ZE=NaN;this.authorizedFormats=[];this.Db=(0,g.h1)();this.qy=this.t0=0;this.xr=null;this.cJG=
this.e9=this.wP=this.fE=!1;this.kT={};this.Lo=.25;this.zT=2;this.qA=this.HT=!1;this.SQ=this.Qz.experiments.GH("html5_use_triple_equals");this.ge=g.Vn(this.Qz.experiments,"html5_gapless_loop_seek_offset_in_milli");this.hJ={setData:function(V){n.setData(V)},
qo:function(){n.qo()},
hw:function(V){n.hw(V)}};
this.mQ=this.B("web_new_autonav_countdown");this.h7=this.B("web_new_big_thumbnail_endscreen");this.Qz.YK&&(this.Nq=this.Qz.YK);this.setData(F);this.u_=new bW;g.d(this,this.u_)};
g.Au=function(R,F,n){F&&F.cpn&&g.mq(new g.UR("CPN provided in VideoData update",{Rn1:F.cpn,pm:R.clientPlaybackNonce,jiQ:n}));n?(S3(F),R.setData(F),pM(R)&&R.qo()):(F=F||{},V29(R,F),XV(R,F),rq_(R,F),vEj(R,F),R.publish("dataupdated"))};
vEj=function(R,F){R.fflags=cc(R.fflags,F.fflags);var n=F.iv_invideo_url;n&&(R.Sa=MQ(n));R.aS=zQ(R.aS,F.iv_ads_only);if(n=F.cta_conversion_urls)R.Hx=n;R.isPharma=zQ(R.isPharma,F.is_pharma);R.author=cc(R.author,F.author);R.YF=zUj(F.ttsurl)||R.YF;R.G_=zQ(R.G_,F.cc_asr);R.Y5=cc(R.Y5,F.channel_path);if(n=F.profile_picture)R.profilePicture=cc(R.profilePicture,n);R.videoCountText=cc(R.videoCountText,F.video_count_text);R.autonavState=q8(R.autonavState,F.autonav_state,fyE);R.clientPlaybackNonce=cc(R.clientPlaybackNonce,
F.cpn);R.subscribed=zQ(R.subscribed,F.subscribed);R.rawViewCount=Qu(R.rawViewCount,F.view_count);R.shortViewCount=cc(R.shortViewCount,F.short_view_count_text);R.publishedTimeText=cc(R.publishedTimeText||"",F.publishedTimeText);R.lengthText=cc(R.lengthText||"",F.lengthText);R.xH=cc(R.xH||"",F.xH);R.q_=cc(R.q_||"",F.q_);R.title=cc(R.title,F.title);R.subtitle=cc(R.subtitle,F.subtitle);R.expandedTitle=cc(R.expandedTitle,F.expanded_title);R.expandedSubtitle=cc(R.expandedSubtitle,F.expanded_subtitle);R.ypcPreview=
cc(R.ypcPreview,F.ypc_preview);R.qV=cc(R.qV,F.ypc_origin);R.fl=zQ(R.fl,F.ypc_is_premiere_trailer);R.R3=cc(R.R3,F.ypc_clickwrap_message);R.paygated=zQ(R.paygated,F.paygated);R.eH=zQ(R.eH,F.requires_purchase);R.showShareButton=!zQ(!R.showShareButton,F.ss);R.QZ=zQ(R.QZ,F.showwatchlater);R.Ru=zQ(R.Ru,F.shownotifybutton);R.mz=zQ(R.mz,F.copy_share);if(n=F.el)R.eventLabel=n;if(n=F.keywords)R.keywords=hU6(n.split(","));if(n=F.rvs)R.suggestions=tj(n).map(function(V){return V.playlist||V.list||V.api?new $_(R.Qz,
V):new PV(R.Qz,V)});
R.contentCheckOk=zQ(R.contentCheckOk,F.cco);R.racyCheckOk=zQ(R.racyCheckOk,F.rco);R.isLivingRoomDeeplink=zQ(R.isLivingRoomDeeplink,F.is_living_room_deeplink);R.oauthToken=cc(R.oauthToken,F.oauth_token);R.h1=cc(R.h1,F.kpt);R.visitorData=cc(R.visitorData,F.visitor_data);if(n=F.session_data)R.sessionData=vC(n,"&");R.LY=cc(R.LY,F.endscreen_ad_tracking_data);R.SH=zQ(R.SH,F.wait_for_vast_info_cards_xml);R.bO=zQ(R.bO,F.suppress_creator_endscreen);R.ll=zQ(R.ll,F.is_trueview_action);R.DI=cc(R.DI,F.tracking_list);
t2j(R,F)};
zcV=function(R){R=g.zg(R);return Number(R.expire)||0};
ao=function(R){var F=R.D();return R.Qz.Nq==="hm"||R.Qz.Nq==="gd"||F.experiments.rg().T.pH(qoN)&&R.Qz.Z?!0:!1};
QYV=function(R,F,n){switch(F){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":n>30?R.limitedPlaybackDurationInSeconds=30:n<30&&n>10&&(R.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":R.limitedPlaybackDurationInSeconds=n*.2}};
XV=function(R,F){var n=F.raw_watch_next_response;if(!n){var V=F.watch_next_response;V&&(n=JSON.parse(V))}if(n){R.jQ=n;var r=R.jQ.playerCueRangeSet;r&&g.CM(R,r);var v=R.jQ.playerOverlays;if(v){var f=v.playerOverlayRenderer;if(f){var z=f.autonavToggle;z&&(R.autoplaySwitchButtonRenderer=g.A(z,cq9),R.B("web_player_autonav_use_server_provided_state")&&T7(R)&&(R.autonavState=R.autoplaySwitchButtonRenderer.enabled?2:1));var q=f.videoDetails;if(q){var Q=q.embeddedPlayerOverlayVideoDetailsRenderer;var c=q.playerOverlayVideoDetailsRenderer;
c&&(c.title&&(F.title=g.LG(c.title)),c.subtitle&&(F.subtitle=g.LG(c.subtitle)))}g.n9(R.Qz)&&(R.QZ=!!f.addToMenu);wGN(R,f.shareButton);f.startPosition&&f.endPosition&&(R.progressBarStartPosition=f.startPosition,R.progressBarEndPosition=f.endPosition);var w=f.gatedActionsOverlayRenderer;w&&(R.LO=g.A(w,SoI));var L,S,p,C=g.A((L=R.getWatchNextResponse())==null?void 0:(S=L.playerOverlays)==null?void 0:(p=S.playerOverlayRenderer)==null?void 0:p.infoPanel,L1k);if(C){R.ZE=Number(C==null?void 0:C.durationMs)||
NaN;if(C==null?0:C.infoPanelOverviewViewModel)R.HI=C==null?void 0:C.infoPanelOverviewViewModel;if(C==null?0:C.infoPanelDetailsViewModel)R.Kk=C==null?void 0:C.infoPanelDetailsViewModel}R.showSeekingControls=!!f.showSeekingControls}}var y,u,B=(y=R.getWatchNextResponse())==null?void 0:(u=y.contents)==null?void 0:u.twoColumnWatchNextResults;if(B){var O=B.desktopOverlay&&g.A(B.desktopOverlay,sYE);O&&(O.suppressShareButton&&(R.showShareButton=!1),O.suppressWatchLaterButton&&(R.QZ=!1))}Q&&pGN(R,F,Q);var K=
Qu(0,F.autoplay_count),M=R.getWatchNextResponse(),J,b=(J=M.contents)==null?void 0:J.twoColumnWatchNextResults,RJ,Fj,fW,SE=(RJ=M.playerOverlays)==null?void 0:(Fj=RJ.playerOverlayRenderer)==null?void 0:(fW=Fj.autoplay)==null?void 0:fW.playerOverlayAutoplayRenderer,nW=Iqf(R),CW,b9=(CW=M.contents)==null?void 0:CW.singleColumnWatchNextResults;if(b9){var fq;if(((fq=b9.autoplay)==null?0:fq.autoplay)&&!b9.playlist){var vM=b9.autoplay.autoplay.sets,l9={},ge=new PV(R.D()),bU=null,Ov;if(vM){for(var W=g.m(vM),
P_=W.next();!P_.done;P_=W.next()){var tx=P_.value.autoplayVideoRenderer;if(tx&&tx.compactVideoRenderer){bU=tx.compactVideoRenderer;break}}if(Ov=vM[0].autoplayVideo){var Zr=Ov.clickTrackingParams;Zr&&(l9.itct=Zr);l9.autonav="1";l9.playnext=String(K)}}else l9.feature="related-auto";var v_=g.A(Ov,g.oo);if(bU){ge.videoId=bU.videoId;var uU=bU.shortBylineText;uU&&(ge.author=g.LG(uU));var U=bU.title;U&&(ge.title=g.LG(U))}else v_!=null&&v_.videoId&&(ge.videoId=v_.videoId);ge.Sp=l9;R.suggestions=[];R.Zl=ge}}if(nW){for(var Vf=
[],w7=g.m(nW),K4=w7.next();!K4.done;K4=w7.next()){var Q1=K4.value,Uv=void 0,OR=null;if(Q1.endScreenVideoRenderer){var Bo=Q1.endScreenVideoRenderer,Em=Bo.title;OR=new PV(R.D());OR.videoId=Bo.videoId;OR.lengthSeconds=Bo.lengthInSeconds||0;var H=Bo.publishedTimeText;H&&(OR.publishedTimeText=g.LG(H));var T=Bo.shortBylineText;T&&(OR.author=g.LG(T));var h=Bo.shortViewCountText;h&&(OR.shortViewCount=g.LG(h));if(Em){OR.title=g.LG(Em);var D=Em.accessibility;if(D){var x=D.accessibilityData;x&&x.label&&(OR.ariaLabel=
x.label)}}var zk=Bo.navigationEndpoint;if(zk){Uv=zk.clickTrackingParams;var P=g.A(zk,g.oo),l=g.A(zk,g.is);P?OR.wC=P:l!=null&&(OR.watchUrl=l.url)}var q6=Bo.thumbnailOverlays;if(q6)for(var u9=g.m(q6),ZN=u9.next();!ZN.done;ZN=u9.next()){var pq=ZN.value.thumbnailOverlayTimeStatusRenderer;if(pq)if(pq.style==="LIVE"){OR.isLivePlayback=!0;break}else if(pq.style==="UPCOMING"){OR.isUpcoming=!0;break}}OR.Su=Y_(Bo.thumbnail)}else if(Q1.endScreenPlaylistRenderer){var mI=Q1.endScreenPlaylistRenderer,t7=mI.navigationEndpoint;
if(!t7)continue;var jE=g.A(t7,g.oo);if(!jE)continue;var $c=jE.videoId;OR=new $_(R.D());OR.playlistId=mI.playlistId;OR.playlistLength=Number(mI.videoCount)||0;OR.T=$c||null;OR.videoId=$c;var W_=mI.title;W_&&(OR.title=g.LG(W_));var e7=mI.shortBylineText;e7&&(OR.author=g.LG(e7));Uv=t7.clickTrackingParams;OR.Su=Y_(mI.thumbnail)}OR&&(Uv&&(OR.sessionData={itct:Uv}),Vf.push(OR))}R.suggestions=Vf}if(SE){R.hL=!!SE.preferImmediateRedirect;R.mQ=R.mQ||!!SE.webShowNewAutonavCountdown;R.h7=R.h7||!!SE.webShowBigThumbnailEndscreen;
if(R.mQ||R.h7){var B_=b||null,m0=new PV(R.D());m0.videoId=SE.videoId;var aD=SE.videoTitle;if(aD){m0.title=g.LG(aD);var Jv=aD.accessibility;if(Jv){var eE=Jv.accessibilityData;eE&&eE.label&&(m0.ariaLabel=eE.label)}}var mY=SE.byline;mY&&(m0.author=g.LG(mY));var Fu=SE.publishedTimeText;Fu&&(m0.publishedTimeText=g.LG(Fu));var zX=SE.shortViewCountText;zX&&(m0.shortViewCount=g.LG(zX));var dq=SE.thumbnailOverlays;if(dq)for(var Dr=g.m(dq),iU=Dr.next();!iU.done;iU=Dr.next()){var Po=iU.value.thumbnailOverlayTimeStatusRenderer;
if(Po)if(Po.style==="LIVE"){m0.isLivePlayback=!0;break}else if(Po.style==="UPCOMING"){m0.isUpcoming=!0;break}else if(Po.style==="DEFAULT"&&Po.text){m0.lengthText=g.LG(Po.text);var pk=Po.text.accessibility;if(pk){var $R=pk.accessibilityData;$R&&$R.label&&(m0.xH=$R.label||"")}break}}m0.Su=Y_(SE.background);var ib=SE.nextButton;if(ib){var qt=ib.buttonRenderer;if(qt){var Q7=qt.navigationEndpoint;if(Q7){var zl=g.A(Q7,g.oo);zl&&(m0.wC=zl)}}}if(SE.topBadges){var jR=SE.topBadges[0];if(jR){var c4=g.A(jR,XGE);
c4&&c4.style==="BADGE_STYLE_TYPE_PREMIUM"&&(m0.G_X=!0)}}var w5=SE.alternativeTitle;w5&&(m0.q_=g.LG(w5));var PE={autonav:"1",playnext:String(K)};m0.playlistId&&(PE.autoplay="1");if(B_){var S0,xB,kB,Lu,YB=(S0=B_.autoplay)==null?void 0:(xB=S0.autoplay)==null?void 0:(kB=xB.sets)==null?void 0:(Lu=kB[0])==null?void 0:Lu.autoplayVideo;if(YB){var sh=YB.clickTrackingParams;sh&&(PE.itct=sh);var pu=g.A(YB,g.oo);pu&&(m0.rz=pu)}}else if(SE){var Xd,AN,ar,HE=(Xd=SE.nextButton)==null?void 0:(AN=Xd.buttonRenderer)==
null?void 0:(ar=AN.navigationEndpoint)==null?void 0:ar.clickTrackingParams;HE&&(PE.itct=HE)}PE.itct||(PE.feature="related-auto");m0.Sp=PE;R.suggestions||(R.suggestions=[]);R.Zl=m0}SE.countDownSecs!=null&&(R.Dm=SE.countDownSecs*1E3);SE.countDownSecsForFullscreen!=null&&(R.Vn=SE.countDownSecsForFullscreen>=0?SE.countDownSecsForFullscreen*1E3:-1);R.B("web_autonav_color_transition")&&SE.watchToWatchTransitionRenderer&&(R.watchToWatchTransitionRenderer=g.A(SE.watchToWatchTransitionRenderer,AqN))}var h_=
Iqf(R);if(h_){var Cu,K_,fT,DZ=h_==null?void 0:(Cu=h_[0])==null?void 0:(K_=Cu.endScreenVideoRenderer)==null?void 0:(fT=K_.navigationEndpoint)==null?void 0:fT.clickTrackingParams,oZ=g.yq(R);DZ&&oZ&&(oZ.sessionData={itct:DZ})}R.jQ.currentVideoThumbnail&&(R.Su=Y_(R.jQ.currentVideoThumbnail));var i0,xw,Tw,oH,yi,ya=(i0=R.jQ)==null?void 0:(xw=i0.contents)==null?void 0:(Tw=xw.twoColumnWatchNextResults)==null?void 0:(oH=Tw.results)==null?void 0:(yi=oH.results)==null?void 0:yi.contents;if(ya&&ya[0]){var zG=
ya[0].videoPrimaryInfoRenderer;zG&&zG&&zG.subtitle&&(R.Bq=g.LG(zG.subtitle))}if(ya&&ya[1]){var bV,Oy,ZY,IT,U3=(bV=ya[1].videoSecondaryInfoRenderer)==null?void 0:(Oy=bV.owner)==null?void 0:(ZY=Oy.videoOwnerRenderer)==null?void 0:(IT=ZY.thumbnail)==null?void 0:IT.thumbnails;U3&&U3.length&&(R.profilePicture=U3[U3.length-1].url)}var gr=S3(F),Kb,ea=(Kb=R.getWatchNextResponse())==null?void 0:Kb.onResponseReceivedEndpoints;if(ea)for(var wlV=g.m(ea),Rj=wlV.next();!Rj.done;Rj=wlV.next()){var F2=Rj.value;g.A(F2,
Ur)&&(R.lH=g.A(F2,Ur));var O6=g.A(F2,ay_),SQV=void 0;if((SQV=O6)==null?0:SQV.entityKeys)R.XW=O6.entityKeys||[],O6.visibleOnLoadKeys&&(R.visibleOnLoadKeys=O6.visibleOnLoadKeys)}if(R.B("web_key_moments_markers")){var Hoh=g.jZ.getState().entities,hNq=g.Zm("visibility_override","markersVisibilityOverrideEntity");var D8=RK(Hoh,"markersVisibilityOverrideEntity",hNq);R.Mq=(D8==null?void 0:D8.videoId)===(R.videoId||gr)&&(D8==null?0:D8.visibilityOverrideMarkersKey)?D8.visibilityOverrideMarkersKey:R.visibleOnLoadKeys;
R.visibleOnLoadKeys=[].concat(g.I(R.Mq))}}};
rq_=function(R,F){if(F=F.raw_reel_item_watch_response)R.reelItemWatchResponse=F};
CDe=function(R){return!!R&&isFinite(R)&&R>1E9};
T7=function(R){var F;return((F=R.autoplaySwitchButtonRenderer)==null?void 0:F.enabled)!==void 0};
Hh=function(R){return!!(R.N&&R.N.videoInfos&&R.N.videoInfos.length)};
g.mJ=function(R){var F=R.X;R.B("html5_gapless_unlimit_format_selection")&&hu(R)&&(F=!1);var n=!!R.T&&R.T.Zt,V=R.Qz,r=R.Jf(),v=Wh(R),f=R.lS,z=F,q=R.isOtf();F=R.k8();var Q=R.Fi,c=R.getUserAudio51Preference(),w=ut(R),L=Bh(R),S=new Xzj(V);if(V.CC()||V.B("html5_logging_format_selection"))S.T=!0;S.SQ=v;S.lS=f&&V.V;S.Mq=c;g.E2("windows nt 5.1")&&!g.oc&&(S.Yr=!0);if(v=r)v=g.o$(V)?CCV(V):!1;v&&(S.Nq=!0);z&&(S.Yr=!0,S.Yy=!0);q&&!V.B("html5_otf_prefer_vp9")&&(S.Yr=!0);V.playerStyle==="picasaweb"&&(q&&(S.Yr=
!1),S.J1=!1);Q&&(S.Yr=!0);fn(V.W,tI.CHANNELS)&&(V.B("html5_enable_ac3")&&(S.J=!0),V.B("html5_enable_eac3")&&(S.W=!0),V.B("html5_enable_ac3_gapless")&&(S.bS=!0));V.B("html5_block_8k_hfr")&&(S.h1=!0);S.Z=g.Vn(V.experiments,"html5_max_selectable_quality_ordinal");S.X=g.Vn(V.experiments,"html5_min_selectable_quality_ordinal");Nr&&(S.pC=480);if(n||r)S.J1=!1;S.k5=!1;S.disableAv1=w;n=SU(V,S.U,void 0,S.disableAv1);n>0&&n<2160&&(SL()||V.B("html5_format_hybridization"))&&(S.U.supportsChangeType=+SL(),S.Fb=
n);n>=2160&&(S.PG=!0);S.k8=F;S.dX=g.Nx||fw()&&!F?!1:!0;S.V=V.B("html5_format_hybridization");S.on=V.B("html5_disable_encrypted_vp9_live_non_2k_4k");S.KC=L;MA(R)&&(S.oC=!0);bx()&&R.playerResponse&&R.playerResponse.playerConfig&&R.playerResponse.playerConfig.webPlayerConfig&&R.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(S.J=!0,S.W=!0);R.X&&R.isAd()&&(R.w4&&(S.UZ=R.w4),R.o8&&(S.N=R.o8));R.X7()&&(S.jQ=g.Vn(R.Qz.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts"));
S.gX=R.isLivePlayback&&R.iX()&&R.Qz.B("html5_drm_live_audio_51");S.mQ=R.Xn;S.YF=!MA(R);return R.uS=S};
TMJ=function(R){var F,n,V,r;return(r=(F=R.playerResponse)==null?void 0:(n=F.playerConfig)==null?void 0:(V=n.compositeVideoConfig)==null?void 0:V.sourceConfigs)!=null?r:[]};
ut=function(R){return R.Qz.B("html5_disable_av1")?!0:!1};
oEv=function(R){uj("drm_pb_s",void 0,R.UZ);R.qT||R.T&&Fx(R.T);var F={};R.T&&(F=F6j(R.u_,g.mJ(R),R.Qz.W,R.T,function(n){return R.publish("ctmp","fmtflt",n)},!0,new Set));
F=new jU(F,R.Qz,R.UE,R.useCobaltWidevine?bx()?gd(R):!1:!1,function(n,V){R.m2(n,V)});
g.d(R,F);R.hD=!1;R.loading=!0;Tlv(F,function(n){uj("drm_pb_f",void 0,R.UZ);for(var V=g.m(n),r=V.next();!r.done;r=V.next())switch(r=r.value,r.flavor){case "fairplay":r.qT=R.qT;r.s9=R.s9;r.jS=R.jS;break;case "widevine":r.OT=R.OT}R.GZ=n;if(R.GZ.length>0&&(R.W=R.GZ[0],R.Qz.CC())){n={};V=g.m(Object.entries(R.W.T));for(r=V.next();!r.done;r=V.next()){var v=g.m(r.value);r=v.next().value;v=v.next().value;var f="unk";(r=r.match(/(.*)codecs="(.*)"/))&&(f=r[2]);n[f]=v}R.m2("drmProbe",n)}R.qo()})};
yqN=function(R,F){if(F.length===0||Or(R))return null;R.Qz.W.U&&(Qg=!0);var n=R.lL;var V=R.lengthSeconds,r=R.isLivePlayback,v=R.Kl,f=R.Qz,z=FZN(F);if(r||v){f=f.experiments;V=new $T("",f,!0);V.U=!v;V.Zt=!0;V.isManifestless=!0;V.isLive=!v;V.Kl=v;r=g.m(F);for(z=r.next();!z.done;z=r.next()){var q=z.value;z=Zj(q,n);var Q=Av(34,q);Q=Rc(Q.oK||q.url||"",Q.NZ,Q.s);var c=Q.get("id");c&&c.includes("%7E")&&(V.Nq=!0);var w=void 0;c=(w=f)==null?void 0:w.GH("html5_max_known_end_time_rebase");w=Number(q.targetDurationSec||
5);q=Number(q.maxDvrDurationSec||14400);var L=Number(Q.get("mindsq")||Q.get("min_sq")||"0"),S=Number(Q.get("maxdsq")||Q.get("max_sq")||"0")||Infinity;V.bX=V.bX||L;V.JD=V.JD||S;var p=!el(z.mimeType);Q&&lo(V,new W1(Q,z,{L6:w,V3:p,f7:q,bX:L,JD:S,Mo:300,Kl:v,gN:c}))}n=V}else if(z==="FORMAT_STREAM_TYPE_OTF"){V=V===void 0?0:V;v=new $T("",f.experiments,!1);v.duration=V||0;f=g.m(F);for(V=f.next();!V.done;V=f.next())V=V.value,r=Zj(V,n,v.duration),z=Av(35,V),(z=Rc(z.oK||V.url||"",z.NZ,z.s))&&(r.streamType===
"FORMAT_STREAM_TYPE_OTF"?lo(v,new uo(z,r,"sq/0")):lo(v,new GP(z,r,qd(V.initRange),qd(V.indexRange))));v.isOtf=!0;n=v}else{V=V===void 0?0:V;v=new $T("",f.experiments,!1);v.duration=V||0;f=g.m(F);for(V=f.next();!V.done;V=f.next())Q=V.value,V=Zj(Q,n,v.duration),r=qd(Q.initRange),z=qd(Q.indexRange),c=Av(32,Q),(Q=Rc(c.oK||Q.url||"",c.NZ,c.s))&&lo(v,new GP(Q,V,r,z));n=v}F.length>0&&(F=F[0],ao(R)&&F.url&&(R.t0=R.t0||zcV(F.url)));F=R.isLivePlayback&&!R.Kl&&!R.Xb&&!R.isPremiere;R.B("html5_live_head_playable")&&
(!Io(R)&&F&&R.m2("missingLiveHeadPlayable",{}),R.Qz.Nq==="yt"&&(n.Y5=!0));return n};
UVJ=function(R){var F,n,V=((F=R.playerResponse)==null?void 0:(n=F.streamingData)==null?void 0:n.adaptiveFormats)||[];F=null;if(V.length>0)F=yqN(R,V);else if(!R.B("html5_deprecate_adaptive_formats_string")){R.m2("pafmtstr",{s:R.adaptiveFormats.substring(0,50)});if((V=R.adaptiveFormats)&&!Or(R)){R.Qz.W.U&&(Qg=!0);V=KM(V);F=R.lL;var r=R.lengthSeconds,v=R.isLivePlayback;n=R.Kl;var f=R.Qz,z=RjE(V);if(v||n){f=f==null?void 0:f.experiments;r=new $T("",f,!0);r.Zt=!0;r.isManifestless=!0;r.U=!n;r.isLive=!n;
r.Kl=n;v=g.m(V);for(z=v.next();!z.done;z=v.next()){var q=z.value;z=eo(q,F);var Q=Rc(q.url,q.sp,q.s),c=Q.get("id");c&&c.includes("%7E")&&(r.Nq=!0);var w=void 0;c=(w=f)==null?void 0:w.GH("html5_max_known_end_time_rebase");w=Number(q.target_duration_sec)||5;q=Number(q.max_dvr_duration_sec)||14400;var L=Number(Q.get("mindsq")||Q.get("min_sq")||"0"),S=Number(Q.get("maxdsq")||Q.get("max_sq")||"0")||Infinity;r.bX=r.bX||L;r.JD=r.JD||S;var p=!el(z.mimeType);Q&&lo(r,new W1(Q,z,{L6:w,V3:p,f7:q,bX:L,JD:S,Mo:300,
Kl:n,gN:c}))}F=r}else if(z==="FORMAT_STREAM_TYPE_OTF"){r=r===void 0?0:r;n=new $T("",f==null?void 0:f.experiments,!1);n.duration=r||0;f=g.m(V);for(r=f.next();!r.done;r=f.next())if(Q=r.value,r=eo(Q,F,n.duration),v=Rc(Q.url,Q.sp,Q.s))r.streamType==="FORMAT_STREAM_TYPE_OTF"?lo(n,new uo(v,r,"sq/0")):(z=td(Q.init),Q=td(Q.index),lo(n,new GP(v,r,z,Q)));n.isOtf=!0;F=n}else{r=r===void 0?0:r;n=new $T("",f==null?void 0:f.experiments,!1);n.duration=r||0;f=g.m(V);for(r=f.next();!r.done;r=f.next())Q=r.value,r=eo(Q,
F,n.duration),v=td(Q.init),z=td(Q.index),(Q=Rc(Q.url,Q.sp,Q.s))&&lo(n,new GP(Q,r,v,z));F=n}V.length>0&&(V=V[0],ao(R)&&V.url&&(R.t0=R.t0||zcV(V.url)));V=R.isLivePlayback&&!R.Kl&&!R.Xb&&!R.isPremiere;R.B("html5_live_head_playable")&&(!Io(R)&&V&&R.m2("missingLiveHeadPlayable",{}),R.Qz.Nq==="yt"&&(F.Y5=!0))}else F=null;R.m2("pafmts",{isManifestFilled:!!F})}if(!F)return!1;Dh(R,F);return!0};
Or=function(R){return bx()?!gd(R):eP()?!(!R.qT||!R.B("html5_enable_safari_fairplay")&&OV()):!1};
gd=function(R){return R.B("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
g.CM=function(R,F){F=g.m(F);for(var n=F.next();!n.done;n=F.next())if(n=n.value,n.cueRangeSetIdentifier){var V=void 0;R.vA.set(n.cueRangeSetIdentifier,(V=n.playerCueRanges)!=null?V:[])}};
xG=function(R){return!(!R.T||!R.T.isManifestless)};
kG=function(R){return R.SQ?R.isLowLatencyLiveStream&&R.T!=null&&r3(R.T)>=5:R.isLowLatencyLiveStream&&R.T!=void 0&&r3(R.T)>=5};
jYN=function(R){return bx()&&gd(R)?!1:Or(R)&&(g.Xi(R.Qz)?!R.isLivePlayback:R.hlsvp)||!OV()||R.YI?!0:!1};
hck=function(R){R.loading=!0;R.Yy=!1;if(HBR(R))g.MtN(R.videoId).then(function(V){var r;if((r=R.playerResponse)!=null&&r.streamingData){r=[];V=g.m(V);for(var v=V.next();!v.done;v=V.next())v=Object.assign({},v.value),v.signatureCipher="",r.push(v);r.length<2&&R.m2("offmlf",{len:r.length});r=yqN(R,r);Wh(R)&&wze(r,!1);Dh(R,r);R.m2("dlr",{})}else R.m2("offsdm",{cotn:R.zR?R.zR.cotn:"0",cpn:R.clientPlaybackNonce})}).then(function(){R.qo()});
else{sR(R.xo)||g.mq(new g.UR("DASH MPD Origin invalid: ",R.xo));var F=R.xo,n=g.Vn(R.Qz.experiments,"dash_manifest_version")||4;F=g.DI(F,{mpd_version:n});R.isLowLatencyLiveStream&&R.latencyClass!=="NORMAL"||(F=g.DI(F,{pacing:0}));q8J(F,R.Qz.experiments,R.isLivePlayback).then(function(V){R.Zo()||(Dh(R,V,!0),uj("mrc",void 0,R.UZ),R.qo())},function(V){R.Zo()||(R.loading=!1,R.publish("dataloaderror",new g.z$("manifest.net.retryexhausted",{backend:"manifest",
rc:V.status},1)))});
uj("mrs",void 0,R.UZ)}};
W1v=function(R){var F;return!((F=R.Qz.getWebPlayerContextConfig())==null||!F.enableProximaLowLatency)};
YG=function(R){if(!R.isProximaLatencyEligible)return 0;var F=I4();return W1v(R)?2:F===1?1:R.B("html5_enable_proxima")?2:0};
Dh=function(R,F,n){n=n===void 0?!1:n;R.tG=void 0;R.T=F;g.d(R,F);F.bX=R.bX;F.JD=R.JD;F.sf=R.sf;F.LQ=R.LQ;F.w8=R.w8;R.TD&&(F.UZ=new ZW(R.TD));(R.Jf()||g.Ju(R))&&R.D0.push("webgl");R.T.isLive||(R.isLivePlayback=!1);var V=F.sourceUrl.split("/");if(R.SQ?V.indexOf("manifest_duration")!==-1:V.indexOf("manifest_duration")!=-1)R.nf=Number(V[V.indexOf("manifest_duration")+1]);if(F.U||F.isManifestless)F.subscribe("clienttemp",R.m2,R),n?F.subscribe("refresh",R.yU,R):F.subscribe("cuepointsadded",R.m9,R);Fx(F)?
R.hD=!0:hW=void 0;R.Xb&&(F.X=R.Xb,F.isLive=!0,R.isLivePlayback=!0);F.isPremiere=R.isPremiere;F.isLiveHeadPlayable=R.isLiveHeadPlayable};
ucJ=function(R,F){var n=F||jYN(R)||R.isExternallyHostedPodcast;if(!R.T||n)return R.m2("skipDash",{dm:!!R.T,air:F,dd:R.YI,mss:OV(),"3pp":R.isExternallyHostedPodcast}),K$();Wh(R)&&wze(R.T,R.isLivePlayback);return D_().then(function(){return VqV(R.u_,g.mJ(R),R.Qz.W,R.T,R.W,function(V){return R.publish("ctmp","fmtflt",V)},R.WU,G7(R)).then(function(V){R.hw(V);
R.u_.U=null;/^av/.test(R.clientPlaybackNonce)&&R.uS&&R.m2("av1",R.uS.U)})})};
mVI=function(R,F){if(F&&R.hlsvp)return K$();if(R.hlsFormats){if(F=KM(R.hlsFormats)){for(var n=[],V=g.m(F),r=V.next();!r.done;r=V.next()){r=r.value;r.url&&(r.url=nER(r.url));var v=void 0;((v=R.uS)==null?0:v.T)&&n.push(r.itag)}var f;((f=R.uS)==null?0:f.T)&&n.length>0&&R.m2("hlsfmt",{itags:n.join(".")})}R.eB=DwE(R.Qz,F);R.eB&&BM_(R,R.eB);f=R.clientPlaybackNonce;var z,q,Q,c;return JAR(R.Qz,R.isAd(),F,(c=(z=R.playerResponse)==null?void 0:(q=z.captions)==null?void 0:(Q=q.playerCaptionsRenderer)==null?void 0:
Q.baseUrl)!=null?c:null,R.AK,f,function(w){return R.publish("ctmp","hlsflt",w)}).then(function(w){for(var L=0,S=[],p=g.m(w),C=p.next();!C.done;C=p.next()){C=C.value;
var y=void 0;S.push((y=C.getInfo())==null?void 0:y.itag);var u=y=void 0;((y=C.getInfo())==null?void 0:(u=y.audio)==null?void 0:u.numChannels)>L&&(L=C.getInfo().audio.numChannels)}L>2&&R.m2("hlschl",{mn:L});var B;((B=R.uS)==null?0:B.T)&&R.m2("hlsfmtaf",{itags:S.join(".")});var O;if(R.B("html5_enable_vp9_fairplay")&&((O=R.W)==null?0:Cp(O)))for(R.m2("drm",{sbdlfbk:1}),L=g.m(R.GZ),S=L.next();!S.done;S=L.next())if(S=S.value,ac(S)){R.W=S;break}dd(R,w)})}return K$()};
gER=function(R){if(R.isExternallyHostedPodcast&&R.jf){var F=KM(R.jf);if(!F[0])return K$();R.qQ=F[0];return M9k(R.Qz,F[0]).then(function(n){dd(R,n)})}return R.NP&&R.Nr?dwW(R.Qz,R.isAd(),R.NP).then(function(n){dd(R,n)}):K$()};
IyR=function(R){if(R.isExternallyHostedPodcast)return K$();var F=KM(R.jf,R.XU);if(R.hlsvp){var n=F1R(R.hlsvp,R.clientPlaybackNonce,R.AK);F.push(n)}return GTI(R.Qz,R.isAd(),F,OBV(R)).then(function(V){dd(R,V)})};
dd=function(R,F){R.k5=F;R.hw(new PQ(g.OM(R.k5,function(n){return n.getInfo()})))};
OBV=function(R){var F={cpn:R.clientPlaybackNonce,c:R.Qz.T.c,cver:R.Qz.T.cver};R.qY&&(F.ptk=R.qY,F.oid=R.LT,F.ptchn=R.Vi,F.pltype=R.Hr,R.kh&&(F.m=R.kh));return F};
g.MF=function(R){return Or(R)&&R.qT?(R={},R.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",R):R.U&&R.U.lL||null};
K1E=function(R){var F=lt(R);return F&&F.text?g.LG(F.text):R.paidContentOverlayText};
DV6=function(R){var F=lt(R);return F&&F.durationMs?Z$(F.durationMs):R.paidContentOverlayDurationMs};
lt=function(R){var F,n,V;return R.playerResponse&&R.playerResponse.paidContentOverlay&&R.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.A((F=R.jQ)==null?void 0:(n=F.playerOverlays)==null?void 0:(V=n.playerOverlayRenderer)==null?void 0:V.playerDisclosure,iBI)||null};
xVv=function(R){if(!R)return null;R=g.m(R);for(var F=R.next();!F.done;F=R.next()){var n=void 0,V=void 0;if(F=(n=F.value.adPlacementRenderer)==null?void 0:(V=n.renderer)==null?void 0:V.videoAdTrackingRenderer)return F}return null};
NF=function(R){var F="";if(R.rj)return R.rj;R.isLivePlayback&&(F=R.allowLiveDvr?"dvr":R.isPremiere?"lp":R.Xb?"window":"live");R.Kl&&(F="post");return F};
g.Er=function(R,F){return typeof R.keywords[F]!=="string"?null:R.keywords[F]};
k_v=function(R){return!!R.j4||!!R.PU||!!R.oL||!!R.g4||R.ri};
g.$G=function(R){return!!(R.xo||R.jf||R.NP||R.hlsvp||R.tb())};
pM=function(R){if(R.B("html5_onesie")&&R.errorCode)return!1;var F=g.Rz(R.D0,"ypc");R.ypcPreview&&(F=!1);return R.XP()&&!R.loading&&(g.$G(R)||g.Rz(R.D0,"heartbeat")||F)};
KM=function(R,F){R=tj(R);var n={};if(F){F=g.m(F.split(","));for(var V=F.next();!V.done;V=F.next())(V=V.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(n[V[1]]={width:V[2],height:V[3]})}F=g.m(R);for(V=F.next();!V.done;V=F.next()){V=V.value;var r=n[V.itag];r&&(V.width=r.width,V.height=r.height)}return R};
wGN=function(R,F){R.showShareButton=!!F;var n,V,r=((n=g.A(F,Iw))==null?void 0:n.navigationEndpoint)||((V=g.A(F,Iw))==null?void 0:V.command);r&&(R.mz=!!g.A(r,YoJ))};
V29=function(R,F){var n=F.raw_embedded_player_response;if(!n){var V=F.embedded_player_response;V&&(n=JSON.parse(V))}n&&(R.zZ=n);if(R.zZ){R.embeddedPlayerConfig=R.zZ.embeddedPlayerConfig||null;if(n=R.zZ.videoFlags)n.playableInEmbed&&(R.allowEmbed=!0),n.isPrivate&&(R.isPrivate=!0),n.userDisplayName&&(F.user_display_name=n.userDisplayName),n.userDisplayImage&&(F.user_display_image=n.userDisplayImage);if((n=R.zZ.embedPreview)&&n.thumbnailPreviewRenderer){n=n.thumbnailPreviewRenderer;XSj(R,n.controlBgHtml);
if(V=n.defaultThumbnail)R.Su=Y_(V);R.B("embeds_web_enable_search_button")&&n.searchButton&&(V=g.A(n.searchButton,Iw))&&(R.S3=g.A(V.navigationEndpoint,g.Ph));(V=g.A(n==null?void 0:n.videoDetails,Jq_))&&pGN(R,F,V);V=g.A(n==null?void 0:n.videoDetails,G_e);R.QZ=!!n.addToWatchLaterButton;wGN(R,n.shareButton);if(V==null?0:V.musicVideoType)R.musicVideoType=V.musicVideoType;var r,v,f,z,q;if(V=g.A((r=R.getEmbeddedPlayerResponse())==null?void 0:(v=r.embedPreview)==null?void 0:(f=v.thumbnailPreviewRenderer)==
null?void 0:(z=f.playButton)==null?void 0:(q=z.buttonRenderer)==null?void 0:q.navigationEndpoint,g.oo))PCN(R,V),R.videoId=V.videoId||R.videoId;n.videoDurationSeconds&&(R.lengthSeconds=Z$(n.videoDurationSeconds));n.webPlayerActionsPorting&&pSI(R,n.webPlayerActionsPorting);if(r=g.A(n==null?void 0:n.playlist,dVI)){R.Ow=!0;v=[];f=Number(r.currentIndex);if(r.contents)for(z=0,q=r.contents.length;z<q;z++)if(n=r.contents[z].playlistPanelVideoRenderer){V=n.shortBylineText?g.LG(n.shortBylineText):"";var Q=
n.title?g.LG(n.title):"";v.push({author:V,encrypted_id:n.videoId,title:Q,channel_path:z===f?F.channel_path:"",profile_picture:z===f?F.profile_picture:"",is_private:z===f?R.isPrivate:!0,is_dni:z===f?R.On:!1,dni_color:z===f?R.B8:""})}F={index:r.currentIndex,list:r.playlistId,playlist_length:r.totalVideos,video:v};r.titleText&&(F.title=g.LG(r.titleText));r.shortBylineText&&(F.author=g.LG(r.shortBylineText));R.VV=F}var c,w,L;if(F=g.A((c=R.getEmbeddedPlayerResponse())==null?void 0:(w=c.embedPreview)==
null?void 0:(L=w.thumbnailPreviewRenderer)==null?void 0:L.infoPanel,L1k)){R.ZE=Number(F==null?void 0:F.durationMs)||NaN;if(F==null?0:F.infoPanelOverviewViewModel)R.HI=F==null?void 0:F.infoPanelOverviewViewModel;if(F==null?0:F.infoPanelDetailsViewModel)R.Kk=F==null?void 0:F.infoPanelDetailsViewModel}}if(R.zZ.previewPlayabilityStatus){if(R.eU=R.zZ.previewPlayabilityStatus,c=R.eU,!["OK","LIVE_STREAM_OFFLINE"].includes(c.status)){R.errorCode=NIf(c.errorCode);w=c.errorScreen;if(L=w==null?void 0:w.playerErrorMessageRenderer){R.XA=
L;if(F=L.reason)R.errorReason=g.LG(F);if(L=L.subreason)R.kK=g.LG(L)}else R.errorReason=c.reason||null;switch(c.status){case "LOGIN_REQUIRED":R.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":R.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var S;(w==null?0:(S=w.playerKavRenderer)==null?0:S.kavUrl)?R.errorDetail="4":R.errorDetail="3";break;default:R.errorDetail=c.isBlockedInRestrictedMode?"5":"0"}}}else R.zZ.playabilityStatus&&(R.tD=R.zZ.playabilityStatus,M2I(R)&&(R.errorDetail="0",R.tD&&((S=
R.tD.embeddedPlayerErrorMessageRenderer)?R.XA=g.A(S,lyN):R.errorReason=R.tD.reason||null)));(S=R.zZ.attestation)&&ttR(R,S);(S=R.zZ.permissions)&&S.allowImaMonetization&&(R.allowImaMonetization=!0)}};
pGN=function(R,F,n){var V=n.channelThumbnail;V&&(V=V.thumbnails)&&(V=V[0])&&(F.profile_picture=V.url);var r;if(V=g.A((r=g.A(n==null?void 0:n.channelThumbnailEndpoint,NME))==null?void 0:r.urlEndpoint,g.is))F.channel_path=V.url;if(r=n.collapsedRenderer)if(r=g.A(r,EE_)){if(V=r.title)F.title=g.LG(V);if(r=r.subtitle)F.subtitle=g.LG(r)}if(n=n.expandedRenderer)if(n=g.A(n,$VV)){if(r=n.title)F.expanded_title=g.LG(r);if(r=n.subtitle)F.expanded_subtitle=g.LG(r);if(n=n.subscribeButton)R.subscribeButtonRenderer=
g.A(n,g.bt),R.subscribeButtonRenderer&&(F.ucid=R.subscribeButtonRenderer.channelId,F.subscribed=R.subscribeButtonRenderer.subscribed,R.Ru=!!R.subscribeButtonRenderer.notificationPreferenceToggleButton,R.subscribeButtonRenderer.notificationPreferenceToggleButton&&R.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(F=R.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,F.isToggled?(R.tT=F.toggledServiceEndpoint||null,R.ZS=F.defaultServiceEndpoint||
null):(R.tT=F.defaultServiceEndpoint||null,R.ZS=F.toggledServiceEndpoint||null)))}};
g.Zh=function(R){return Io(R)&&!R.allowLiveDvr};
eZ=function(R){return Io(R)&&R.allowLiveDvr};
Io=function(R){return R.B("html5_live_head_playable")&&xG(R)&&R.Qz.Nq==="yt"?R.isLiveHeadPlayable:R.isLivePlayback};
BM_=function(R,F){F.sort(function(n,V){return n.toString().localeCompare(V.toString(),R.Qz.hostLanguage)})};
g.Rq=function(R){return!!R.T&&l8W(R.T)};
g.FY=function(R){return!!R.T&&N8_(R.T)};
g.nK=function(R){return!!R.T&&EQV(R.T)};
g.Ju=function(R){return!!R.T&&$LJ(R.T)};
g.PD6=function(R){if(R.bO)return null;var F=R.sH;F||(F=R.playerResponse&&R.playerResponse.endscreen&&R.playerResponse.endscreen.endscreenUrlRenderer&&R.playerResponse.endscreen.endscreenUrlRenderer.url);return F||null};
g.bB9=function(R){return R.bO?null:R.playerResponse&&R.playerResponse.endscreen&&R.playerResponse.endscreen.endscreenRenderer||null};
g.Vl=function(R){return R.B("enable_wn_infocards")};
g.rZ=function(R){var F,n,V,r;return(g.Vl(R)?(F=R.jQ)==null?void 0:(n=F.cards)==null?void 0:n.cardCollectionRenderer:(V=R.playerResponse)==null?void 0:(r=V.cards)==null?void 0:r.cardCollectionRenderer)||null};
g.vK=function(R){if(!R.playerResponse||!R.playerResponse.annotations)return null;R=g.m(R.playerResponse.annotations);for(var F=R.next();!F.done;F=R.next())if(F=F.value,F.playerAnnotationsExpandedRenderer&&F.playerAnnotationsExpandedRenderer.featuredChannel)return F.playerAnnotationsExpandedRenderer;return null};
fK=function(R){return R.adFormat&&(R.SQ?R.adFormat!=="1_5":R.adFormat!="1_5")?"adunit":R.eventLabel||R.Qz.jQ};
g.tg=function(R){return fK(R)==="shortspage"};
hu=function(R){return R.X7()&&R.D().supportsGaplessShorts()};
z9=function(R){if(R.isAd()&&(R.SQ?R.videoId!==R.Qz.mQ:R.videoId!=R.Qz.mQ))return R.Qz.mQ};
qj=function(R){return R.Lm||fK(R)==="detailpage"||fK(R)==="shortspage"||R.mutedAutoplay};
ZBf=function(R){var F=fK(R)==="adunit"?R.jm:qj(R)?fK(R)==="detailpage"||fK(R)==="shortspage"?R.isAutonav||R.dX>0:R.us?!1:R.Qz.Ow||R.Qz.G_||!g.Pp(R.Qz)?!0:!1:(R.us?0:R.pC)&&g.Pp(R.Qz)?!0:!1;R.B("html5_log_detailpage_autoplay")&&fK(R)==="detailpage"&&R.m2("autoplay_info",{autoplay:R.Lm,autonav:R.isAutonav,wasDompaused:R.us,result:F});return F};
g.Ql=function(R){return R.oauthToken||R.Qz.RV};
RKR=function(R){if(R.B("html5_stateful_audio_normalization")){var F=1,n=g.Vn(R.Qz.experiments,"html5_default_ad_gain");n&&R.isAd()&&(F=n);var V,r;n=(r=(V=R.J)==null?void 0:V.audio.J)!=null?r:R.EQ;if(n==null||isNaN(n))R=ecf(R);else{V=(0,g.h1)();R.RV=1;r=V-R.Qz.Kf<=R.maxStatefulTimeThresholdSec*1E3;R.applyStatefulNormalization&&r?R.RV=2:r||(R.Qz.w4=Infinity,R.Qz.Kf=NaN);r=(R.RV===2?g.vI(R.Qz.w4,R.minimumLoudnessTargetLkfs,R.loudnessTargetLkfs):R.loudnessTargetLkfs)-n;if(R.RV!==2){var v,f,z,q,Q=((v=
R.playerResponse)==null?void 0:(f=v.playerConfig)==null?void 0:(z=f.audioConfig)==null?void 0:(q=z.loudnessNormalizationConfig)==null?void 0:q.statelessLoudnessAdjustmentGain)||0;r+=Q}r=Math.min(r,0);R.preserveStatefulLoudnessTarget&&(R.Qz.w4=n+r,R.Qz.Kf=V);R=Math.min(1,Math.pow(10,r/20))||F}}else R=ecf(R);return R};
ecf=function(R){var F=1,n=g.Vn(R.Qz.experiments,"html5_default_ad_gain");n&&R.isAd()&&(F=n);var V,r;n=((V=R.J)==null?void 0:V.audio.N)!=null?(r=R.J)==null?void 0:r.audio.N:R.Rm;isNaN(n)||(R.RV=4);return Math.min(1,Math.pow(10,-n/20))||F};
Wh=function(R){var F=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],n=Wp(R.Qz)==="TVHTML5_SIMPLY"&&R.Qz.T.ctheme==="MUSIC";!R.wy&&(g.Dz(R.Qz)||g.a$(R.Qz)||n)&&(F.includes(R.musicVideoType)||R.isExternallyHostedPodcast)&&(R.wy=!0);if(F=g.PC())F=/Starboard\/([0-9]+)/.exec(g.ft()),F=(F?parseInt(F[1],10):NaN)<10;n=R.Qz;n=(Wp(n)==="TVHTML5_CAST"||Wp(n)==="TVHTML5"&&(n.T.cver.startsWith("6.20130725")||n.T.cver.startsWith("6.20130726")))&&R.Qz.T.ctheme==="MUSIC";var V;if(V=!R.wy)n||(n=
R.Qz,n=Wp(n)==="TVHTML5"&&n.T.cver.startsWith("7")),V=n;V&&!F&&(F=R.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",n=(R.B("cast_prefer_audio_only_for_atv_and_uploads")||R.B("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&R.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",F||n||R.isExternallyHostedPodcast)&&(R.wy=!0);return R.Qz.deviceIsAudioOnly||R.wy&&R.Qz.V};
Bh=function(R){var F,n,V;return((F=R.playerResponse)==null?void 0:(n=F.playerConfig)==null?void 0:(V=n.compositeVideoConfig)==null?void 0:V.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"};
F$9=function(R){var F,n,V,r=(F=R.playerResponse)==null?void 0:(n=F.playerConfig)==null?void 0:(V=n.compositeVideoConfig)==null?void 0:V.sourceConfigs,v,f,z;R=(v=R.playerResponse)==null?void 0:(f=v.playerConfig)==null?void 0:(z=f.compositeVideoConfig)==null?void 0:z.defaultActiveSourceVideoId;if(!r||!r.length)return"";R||(R=r[0].videoId||"");r=g.m(r);for(v=r.next();!v.done;v=r.next())if(v=v.value,v.videoId===R&&v.audioTracks)for(v=g.m(v.audioTracks),f=v.next();!f.done;f=v.next())if(f=f.value,f.isDefaultForSource)return f.id||
"";return""};
g.n2R=function(R){return R.Zt()&&MA(R)};
cK=function(R){var F,n,V;return!!((F=R.playerResponse)==null?0:(n=F.playerConfig)==null?0:(V=n.mediaCommonConfig)==null?0:V.splitScreenEligible)};
wZ=function(R){var F;return!((F=R.playerResponse)==null||!F.compositePlayabilityStatus)};
V1E=function(R){return isNaN(R)?0:Math.max((Date.now()-R)/1E3-30,0)};
SH=function(R){return!(!R.zy||!R.Qz.V)&&R.tb()};
LK=function(R){return R.fK&&R.enableServerStitchedDai};
r0N=function(R){return R.wP&&!R.TD};
var p_e=function(R,F){return pW[t[22]](this,16,R,F)};
MA=function(R){var F=R.B("html5_enable_sabr_on_drive")&&R.Qz.Nq==="gd";if(R.aD)return R.wP&&R.m2("fds",{fds:!0},!0),!1;if(R.Qz.Nq!=="yt"&&!F)return R.wP&&R.m2("dsvn",{ns:R.Qz.Nq},!0),!1;if(R.cotn||!R.T||R.T.isOtf&&!R.B("html5_enable_sabr_otf_in_client")||R.N&&!R.N.T||R.gm&&!R.B("html5_enable_sabr_csdai"))return!1;if(R.B("html5_use_sabr_requests_for_debugging"))return!0;R.wP&&R.m2("esfw",{usbc:R.wP,hsu:!!R.TD},!0);if(R.wP&&R.TD)return!0;if(R.B("html5_remove_client_sabr_determination"))return!1;var n=
!R.T.Zt&&!R.iX();F=n&&s6&&R.B("html5_enable_sabr_vod_streaming_xhr");n=n&&!s6&&R.B("html5_enable_sabr_vod_non_streaming_xhr");var V=pK(R),r=R.B("html5_enable_sabr_drm_vod_streaming_xhr")&&s6&&R.iX()&&!R.T.Zt&&(R.drmProduct==="1"?!1:!0);(F=F||n||V||r)&&!R.TD&&R.m2("sabr",{loc:"m"},!0);return F&&!!R.TD};
pK=function(R){var F;if(!(F=s6&&R.Zt()&&R.iX()&&(R.drmProduct==="1"?!1:!0)&&R.B("html5_sabr_live_drm_streaming_xhr"))){F=R.Zt()&&!R.iX()&&s6;var n=R.Zt()&&R.latencyClass!=="ULTRALOW"&&!R.isLowLatencyLiveStream&&R.B("html5_sabr_live_normal_latency_streaming_xhr"),V=R.isLowLatencyLiveStream&&R.B("html5_sabr_live_low_latency_streaming_xhr"),r=R.latencyClass==="ULTRALOW"&&R.B("html5_sabr_live_ultra_low_latency_streaming_xhr");F=F&&(n||V||r)}n=F;F=R.enableServerStitchedDai&&n&&R.B("html5_enable_sabr_ssdai_streaming_xhr");
n=!R.enableServerStitchedDai&&n;V=R.Zt()&&!s6&&R.B("html5_enable_sabr_live_non_streaming_xhr");R=s6&&(R.iZ()||cK(R)&&R.B("html5_enable_sabr_for_lifa_eligible_streams"));return F||n||V||R};
G7=function(R){var F=R.B("html5_enable_server_format_filter")&&!R.iX(),n=R.B("html5_enable_server_format_filter_for_drm")&&R.iX();return MA(R)&&(F||n)};
HBR=function(R){var F;if(F=!!R.cotn)F=R.videoId,F=!!F&&g.FV(F)===1;return F&&!R.zy};
g.XY=function(R){if(!R.T||!R.U||!R.J)return!1;var F=R.T.T,n=!!F[R.U.id]&&Qf(57,F[R.U.id].jn.T);F=!!F[R.J.id]&&Qf(41,F[R.J.id].jn.T);return(R.U.itag==="0"||n)&&F};
Ag=function(R){return R.eU?["OK","LIVE_STREAM_OFFLINE"].includes(R.eU.status):!0};
M2I=function(R){return(R=R.tD)&&R.showError?R.showError:!1};
aq=function(R,F){return R.B(F)?!0:(R.fflags||"").includes(F+"=true")};
t2j=function(R,F){F.inlineMetricEnabled&&(R.inlineMetricEnabled=!0);F.playback_progress_0s_url&&(R.g4=new D9R(F));if(F=F.video_masthead_ad_quartile_urls)R.PU=F.quartile_0_url,R.yH=F.quartile_25_url,R.Tn=F.quartile_50_url,R.Uo=F.quartile_75_url,R.pG=F.quartile_100_url,R.oL=F.quartile_0_urls,R.DR=F.quartile_25_urls,R.dw=F.quartile_50_urls,R.Sv=F.quartile_75_urls,R.I1=F.quartile_100_urls};
hU6=function(R){var F={};R=g.m(R);for(var n=R.next();!n.done;n=R.next()){n=n.value;var V=n.split("=");V.length===2?F[V[0]]=V[1]:F[n]=!0}return F};
zUj=function(R){if(R){if(Apf(R))return R;R=RVI(R);if(Apf(R,!0))return R}return""};
g.v2J=function(R){return R.captionsLanguagePreference||R.Qz.captionsLanguagePreference||g.Er(R,"yt:cc_default_lang")||R.Qz.HT};
CK=function(R){return!(!R.isLivePlayback||!R.hasProgressBarBoundaries())};
g.yq=function(R){var F;return R.Zl||((F=R.suggestions)==null?void 0:F[0])||null};
f6j=function(R,F){return F!=null?zQ(R.X,F):R.X?R.X:R.Qz.preferGapless&&R.Qz.supportsGaplessShorts()};
g.T9=function(R){var F,n;return!!((F=R.embeddedPlayerConfig)==null?0:(n=F.embeddedPlayerFlags)==null?0:n.enableMusicUx)};
t1E=function(R){return R.X||R.B("web_player_media_session_infinity")&&R.isLivePlayback};
oq=function(R){return R.Qz.J&&R.isPrivate};
zKk=function(R){var F,n;return((F=R.playerResponse)==null?0:(n=F.playerConfig)==null?0:n.daiConfig)?R.jO?1:R.A3?2:0:3};
g.U6=function(R){var F=R.D(),n=g.yl(F),V=F.Kk;g.n9(F)&&(V&&(n.thirdParty=Object.assign({},n.thirdParty,{embedUrl:V})),M4I(n,R));if(V=R.Nq)n.clickTracking={clickTrackingParams:V};else if(g.n9(R.D())&&g.ew("EVENT_ID"))n.clickTracking={clickTrackingParams:g.ew("EVENT_ID")};else if(F.B("html5_log_missing_itct")){var r;V=new g.UR("Missing ITCT in InnerTubeContext",{isAd:R.isAd(),A_X:(r=F.getWebPlayerContextConfig())==null?void 0:r.contextId});g.uX(V)}r=n.client||{};V="EMBED";var v=fK(R);v==="leanback"?
V="WATCH":F.B("gvi_channel_client_screen")&&v==="profilepage"?V="CHANNEL":R.Fi?V="LIVE_MONITOR":v==="detailpage"?V="WATCH_FULL_SCREEN":v==="adunit"?V="ADUNIT":v==="sponsorshipsoffer"&&(V="UNKNOWN");r.clientScreen=V;if(V=R.kidsAppInfo)r.kidsAppInfo=JSON.parse(V);(v=R.K$)&&!V&&(r.kidsAppInfo={contentSettings:{ageUpMode:qTI[v]}});if(V=R.dP)r.unpluggedAppInfo={enableFilterMode:!0};(v=R.unpluggedFilterModeType)&&!V&&(r.unpluggedAppInfo={filterModeType:Q4e[v]});if(V=R.on)r.unpluggedLocationInfo=V;n.client=
r;r=n.request||{};R.uZ&&(r.isPrefetch=!0);if(V=R.mdxEnvironment)r.mdxEnvironment=V;if(V=R.mdxControlMode)r.mdxControlMode=c0k[V];n.request=r;r=n.user||{};if(V=R.J1)r.credentialTransferTokens=[{token:V,scope:"VIDEO"}];if(V=R.h1)r.delegatePurchases={oauthToken:V},r.kidsParent={oauthToken:V};var f;V=(f=F.getWebPlayerContextConfig())==null?void 0:f.userContentRating;F.rg().T.pH(wQe)&&V&&(r.serializedUserContentRating=V);n.user=r;if(F=R.contextParams)n.activePlayers=[{playerContextParams:F}];if(R=R.clientScreenNonce)n.clientScreenNonce=
R;return n};
g.yl=function(R){var F=g.Zz(),n=F.client||{};if(R.forcedExperiments){var V=R.forcedExperiments.split(","),r=[];V=g.m(V);for(var v=V.next();!v.done;v=V.next())r.push(Number(v.value));n.experimentIds=r}if(r=R.homeGroupInfo)n.homeGroupInfo=JSON.parse(r);if(r=R.getPlayerType())n.playerType=r;if(r=R.T.ctheme)n.theme=r;if(r=R.livingRoomAppMode)n.tvAppInfo=Object.assign({},n.tvAppInfo,{livingRoomAppMode:r});r=R.deviceYear;R.B("html5_propagate_device_year")&&r&&(n.tvAppInfo=Object.assign({},n.tvAppInfo,{deviceYear:r}));
if(r=R.livingRoomPoTokenId)n.tvAppInfo=Object.assign({},n.tvAppInfo,{livingRoomPoTokenId:r});F.client=n;r=F.user||{};R.enableSafetyMode&&(r=Object.assign({},r,{enableSafetyMode:!0}));var f;((f=n.tvAppInfo)==null?0:f.usePageidAsHeader)||!R.pageId||(r=Object.assign({},r,{onBehalfOfUser:R.pageId}));F.user=r;return F};
A0f=function(R,F,n){var V=R.videoId,r=g.U6(R),v=R.D(),f={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(aS()),referer:document.location.toString(),signatureTimestamp:20467},z=g.M8();R.isAutonav&&(f.autonav=!0);z.pH(141)&&(f.autonavState=z.pH(140)?"STATE_OFF":"STATE_ON");f.autoCaptionsDefaultOn=z.pH(66);ZBf(R)&&(f.autoplay=!0);v.V&&R.cycToken&&(f.cycToken=R.cycToken);v.enablePrivacyFilter&&(f.enablePrivacyFilter=!0);R.isFling&&(f.fling=!0);var q=R.forceAdsUrl;if(q){z={};var Q=[];q=q.split(",");
q=g.m(q);for(var c=q.next();!c.done;c=q.next()){c=c.value;var w=c.split("|");w.length!==3||c.includes("=")||(w[0]="breaktype="+w[0],w[1]="offset="+w[1],w[2]="url="+w[2]);c={adtype:"video_ad"};w=g.m(w);for(var L=w.next();!L.done;L=w.next()){var S=g.m(L.value.split("="));L=S.next().value;S=BeI(S);c[L]=S.join("=")}w=c.url;L=c.presetad;S=c.viralresponseurl;var p=Number(c.campaignid),C=c.bibliotecaadid;if(c.adtype==="in_display_ad")w&&(z.url=w),L&&(z.presetAd=L),S&&(z.viralAdResponseUrl=S),p&&(z.viralCampaignId=
String(p)),C&&(z.bibliotecaAdId=C);else if(c.adtype==="video_ad"){var y={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(c.offset)||0)}};if(c=STe[c.breaktype])y.breakType=c;w&&(y.url=w);L&&(y.presetAd=L);S&&(y.viralAdResponseUrl=S);p&&(y.viralCampaignId=String(p));C&&(y.bibliotecaAdId=C);Q.push(y)}}f.forceAdParameters={videoAds:Q,inDisplayAd:z}}R.isInlinePlaybackNoAd&&(f.isInlinePlaybackNoAd=!0);R.isLivingRoomDeeplink&&(f.isLivingRoomDeeplink=!0);z=R.RU;if(z!=null){z={startWalltime:String(z)};
if(Q=R.nf)z.manifestDuration=String(Q||14400);f.liveContext=z}if(R.mutedAutoplay){f.mutedAutoplay=!0;z=v.getWebPlayerContextConfig();var u,B;(z==null?0:(u=z.embedsHostFlags)==null?0:u.allowMutedAutoplayDurationMode)&&(z==null?0:(B=z.embedsHostFlags)==null?0:B.allowMutedAutoplayDurationMode.includes(L$N[R.mutedAutoplayDurationMode]))&&(f.mutedAutoplayDurationMode=L$N[R.mutedAutoplayDurationMode])}if(R.us?0:R.pC)f.splay=!0;u=R.vnd;u===5&&(f.vnd=u);u={};if(B=R.isMdxPlayback)u.triggeredByMdx=B;if(B=R.AA)u.skippableAdsSupported=
B.split(",").includes("ska");if(Q=R.nW){B=R.lP;z=[];Q=g.m(l7e(Q));for(q=Q.next();!q.done;q=Q.next()){q=q.value;c=q.platform;q={applicationState:q.Fm?"INACTIVE":"ACTIVE",clientFormFactor:s4W[c]||"UNKNOWN_FORM_FACTOR",clientName:EAJ[q.oH]||"UNKNOWN_INTERFACE",clientVersion:q.deviceVersion||"",platform:pQf[c]||"UNKNOWN_PLATFORM"};c={};if(B){w=void 0;try{w=JSON.parse(B)}catch(K){g.mq(K)}w&&(c={params:[{key:"ms",value:w.ms}]},w.advertising_id&&(c.advertisingId=w.advertising_id),w.limit_ad_tracking!==void 0&&
w.limit_ad_tracking!==null&&(c.limitAdTracking=w.limit_ad_tracking),q.osName=w.os_name,q.userAgent=w.user_agent,q.windowHeightPoints=w.window_height_points,q.windowWidthPoints=w.window_width_points)}z.push({adSignalsInfo:c,remoteClient:q})}u.remoteContexts=z}B=R.sourceContainerPlaylistId;z=R.serializedMdxMetadata;if(B||z)Q={},B&&(Q.mdxPlaybackContainerInfo={sourceContainerPlaylistId:B}),z&&(Q.serializedMdxMetadata=z),u.mdxPlaybackSourceContext=Q;f.mdxContext=u;u=F.width;u>0&&(f.playerWidthPixels=
Math.round(u));if(F=F.height)f.playerHeightPixels=Math.round(F);n!==0&&(f.vis=n);if(n=v.widgetReferrer)f.widgetReferrer=n.substring(0,128);g.Pp(v)&&f&&(f.ancestorOrigins=v.ancestorOrigins);R.defaultActiveSourceVideoId&&(f.compositeVideoContext={defaultActiveSourceVideoId:R.defaultActiveSourceVideoId});if(v=v.getWebPlayerContextConfig())f.encryptedHostFlags=v.encryptedHostFlags;V={videoId:V,context:r,playbackContext:{contentPlaybackContext:f}};if(R.xw){var O;V.playbackContext.reloadPlaybackContext=
{reloadPlaybackParams:(O=R.xw)==null?void 0:O.reloadPlaybackParams}}R.contentCheckOk&&(V.contentCheckOk=!0);if(O=R.clientPlaybackNonce)V.cpn=O;if(O=R.playerParams)V.params=O;if(O=R.playlistId)V.playlistId=O;R.racyCheckOk&&(V.racyCheckOk=!0);O=R.D();r=O.embedConfig;R.MD&&O.B("embeds_enable_per_video_embed_config")?V.serializedThirdPartyEmbedConfig=R.MD:r&&(V.serializedThirdPartyEmbedConfig=r);V.captionParams={};r=g.M8().pH(65);R.deviceCaptionsOn!=null?V.captionParams.deviceCaptionsOn=R.deviceCaptionsOn:
g.Xk(O)&&(V.captionParams.deviceCaptionsOn=r!=null?!r:!1);R.qS&&(V.captionParams.deviceCaptionsLangPref=R.qS);R.S5.length?V.captionParams.viewerSelectedCaptionLangs=R.S5:g.Xk(O)&&(r=g.iW(),r==null?0:r.length)&&(V.captionParams.viewerSelectedCaptionLangs=r);r=R.fetchType==="onesie"&&R.B("html5_onesie_attach_po_token");f=R.fetchType!=="onesie"&&R.B("html5_non_onesie_attach_po_token");if(r||f)r=R.D(),r.Ru&&(V.serviceIntegrityDimensions={},V.serviceIntegrityDimensions.poToken=r.Ru);O.B("fetch_att_independently")&&
(V.attestationRequest={omitBotguardData:!0});V.playbackContext||(V.playbackContext={});V.playbackContext.devicePlaybackCapabilities=XQ9(R);V.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&R.m2("noVp9",{});return V};
XQ9=function(R){var F=!(R==null?0:R.k8())&&(R==null?void 0:R.Zt())&&fw(),n;if(!(n=R==null)){n=g.mJ(R);R=R.D().W;var V=WV("243");n=!(V&&R0(n,V,R,!0)===!0)}return{supportsVp9Encoding:!(n||F),supportXhr:s6}};
CWv=function(R,F){var n,V,r;return g.Y(function(v){if(v.T==1)return n={context:g.yl(R.D()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:R.videoId,cpn:R.clientPlaybackNonce}}]},V=g.Fy(a6R),g.k(v,g.ij(F,n,V),2);r=v.U;return v.return(r)})};
Tv9=function(R,F,n){var V=g.Vn(F.experiments,"bg_vm_reinit_threshold");(!BQ||(0,g.h1)()-BQ>V)&&CWv(R,n).then(function(r){r&&(r=r.botguardData)&&g.gv(r,F)},function(r){R.Zo()||(r=QB(r),R.m2("attf",r.details))})};
jH=function(R,F){g.G.call(this);this.app=R;this.state=F};
hg=function(R,F,n){R.state.T.hasOwnProperty(F)||HK(R,F,n);R.state.Z[F]=function(){return n.apply(R,g.Cq.apply(0,arguments))};
R.state.V.add(F)};
WK=function(R,F,n){R.state.T.hasOwnProperty(F)||HK(R,F,n);R.app.D().V&&(R.state.X[F]=function(){return n.apply(R,g.Cq.apply(0,arguments))},R.state.V.add(F))};
HK=function(R,F,n){R.state.T[F]=function(){return n.apply(R,g.Cq.apply(0,arguments))}};
g.u4=function(R,F,n){return R.state.T[F].apply(R.state.T,g.I(n))};
BK=function(){g.Wt.call(this);this.W=new Map};
mx=function(){g.G.apply(this,arguments);this.element=null;this.V=new Set;this.Z={};this.X={};this.T={};this.UZ=new Set;this.N=new BK;this.U=new BK;this.J=new BK;this.W=new BK};
o2f=function(R,F,n){typeof R==="string"&&(R={mediaContentUrl:R,startSeconds:F,suggestedQuality:n});a:{if((F=R.mediaContentUrl)&&(F=/\/([ve]|embed)\/([^#?]+)/.exec(F))&&F[2]){F=F[2];break a}F=null}R.videoId=F;return gZ(R)};
gZ=function(R,F,n){if(typeof R==="string")return{videoId:R,startSeconds:F,suggestedQuality:n};F={};n=g.m(y0j);for(var V=n.next();!V.done;V=n.next())V=V.value,R[V]&&(F[V]=R[V]);if(R=R.embedConfig||R.embed_config)if(typeof R==="string")F.embed_config=R;else if(g.ID(R))try{var r=JSON.stringify(R);F.embed_config=r}catch(v){console.error("Invalid embedConfig JSON",v)}return F};
U49=function(R,F,n,V){if(g.ID(R)&&!Array.isArray(R)){F="playlist list listType index startSeconds suggestedQuality".split(" ");n={};for(V=0;V<F.length;V++){var r=F[V];R[r]&&(n[r]=R[r])}return n}F={index:F,startSeconds:n,suggestedQuality:V};typeof R==="string"&&R.length===16?F.list="PL"+R:F.playlist=R;return F};
Iq=function(){jH.apply(this,arguments)};
HQR=function(R){hg(R,"cueVideoById",R.B1);hg(R,"loadVideoById",R.ZCZ);hg(R,"cueVideoByUrl",R.tV);hg(R,"loadVideoByUrl",R.Mn2);hg(R,"playVideo",R.eL2);hg(R,"pauseVideo",R.pauseVideo);hg(R,"stopVideo",R.UXG);hg(R,"clearVideo",R.clearVideo);hg(R,"getVideoBytesLoaded",R.E7);hg(R,"getVideoBytesTotal",R.pP);hg(R,"getVideoLoadedFraction",R.rb);hg(R,"getVideoStartBytes",R.Uq1);hg(R,"cuePlaylist",R.cuePlaylist);hg(R,"loadPlaylist",R.BgX);hg(R,"nextVideo",R.EFH);hg(R,"previousVideo",R.hLG);hg(R,"playVideoAt",
R.XBZ);hg(R,"setShuffle",R.setShuffle);hg(R,"setLoop",R.setLoop);hg(R,"getPlaylist",R.fP);hg(R,"getPlaylistIndex",R.getPlaylistIndex);hg(R,"getPlaylistId",R.getPlaylistId);hg(R,"loadModule",R.c$);hg(R,"unloadModule",R.NG);hg(R,"setOption",R.gx);hg(R,"getOption",R.LP);hg(R,"getOptions",R.U_);hg(R,"mute",R.k91);hg(R,"unMute",R.X6G);hg(R,"isMuted",R.isMuted);hg(R,"setVolume",R.h22);hg(R,"getVolume",R.getVolume);hg(R,"seekTo",R.MuG);hg(R,"getPlayerMode",R.getPlayerMode);hg(R,"getPlayerState",R.ue);hg(R,
"getAvailablePlaybackRates",R.getAvailablePlaybackRates);hg(R,"getPlaybackQuality",function(){return R.getPlaybackQuality(1)});
hg(R,"setPlaybackQuality",R.SqG);hg(R,"getAvailableQualityLevels",R.XK);hg(R,"getCurrentTime",R.Iy);hg(R,"getDuration",R.Se);hg(R,"addEventListener",R.Yn);hg(R,"removeEventListener",R.mcX);hg(R,"getDebugText",R.dJ);hg(R,"getVideoData",function(){return j4_(R)});
hg(R,"addCueRange",R.zC);hg(R,"removeCueRange",R.removeCueRange);hg(R,"setSize",R.setSize);hg(R,"getApiInterface",R.getApiInterface);hg(R,"destroy",R.destroy);hg(R,"mutedAutoplay",R.mutedAutoplay);var F=R.app.D();F.Z||(hg(R,"getVideoEmbedCode",R.getVideoEmbedCode),hg(R,"getVideoUrl",R.NX2));hg(R,"getMediaReferenceTime",R.Va);hg(R,"getSize",R.getSize);hg(R,"setFauxFullscreen",R.C_o);F.B("embeds_enable_move_set_center_crop_to_public")&&hg(R,"setCenterCrop",R.setCenterCrop);F.Z||hg(R,"logImaAdEvent",
R.logImaAdEvent);hg(R,"preloadVideoById",R.rmG);hg(R,"wakeUpControls",R.wakeUpControls)};
g.KK=function(R){return(R=hKe(R.app.WI()))?R.Z0():null};
i4=function(R){var F=g.vV(R.app.D()),n,V=(n=R.app.getVideoData())==null?void 0:n.Ow;R=DU(R.app);return g.pw(F)&&!V||R?!1:!0};
j4_=function(R,F){var n={};if(F=xM(R.app,{playerType:F===void 0?1:F})){F=F.getVideoData();if(oq(F))return{};n.video_id=F.videoId;n.author=F.author;n.title=F.title;n.isPlayable=Ag(F);n.errorCode=F.errorCode;if(F.U&&F.U.video){n.video_quality=F.U.video.quality;F=F.U.video;var V=[];F.fps>32&&V.push("hfr");F.isHdr()&&V.push("hdr");F.primaries==="bt2020"&&V.push("wcg");n.video_quality_features=V}}if(R=R.getPlaylistId())n.list=R;return n};
kM=function(){Iq.apply(this,arguments)};
YM=function(R,F){var n={};if(R.app.D().J1){R=g.m(W$f);for(var V=R.next();!V.done;V=R.next())V=V.value,F.hasOwnProperty(V)&&(n[V]=F[V]);if(F=n.qoe_cat)R="",typeof F==="string"&&F.length>0&&(R=F.split(",").filter(function(r){return ueJ.includes(r)}).join(",")),n.qoe_cat=R;
BvW(n)}else for(R=g.m(m4_),V=R.next();!V.done;V=R.next())V=V.value,F.hasOwnProperty(V)&&(n[V]=F[V]);return n};
BvW=function(R){var F=R.raw_player_response;if(!F){var n=R.player_response;n&&(F=JSON.parse(n))}delete R.player_response;delete R.raw_player_response;if(F){R.raw_player_response={streamingData:F.streamingData,playerConfig:F.playerConfig};var V;if((V=F.playbackTracking)==null?0:V.qoeUrl)R.raw_player_response=Object.assign({},R.raw_player_response,{playbackTracking:{qoeUrl:F.playbackTracking.qoeUrl}});F.videoDetails&&(F.videoDetails.videoId||F.videoDetails.lengthSeconds)&&(n={},F.videoDetails.videoId&&
(n.videoId=F.videoDetails.videoId),F.videoDetails.lengthSeconds&&(n.lengthSeconds=F.videoDetails.lengthSeconds),R.raw_player_response=Object.assign({},R.raw_player_response,{videoDetails:n}))}};
OQJ=function(R){var F=F===void 0?5:F;return R?g2f[R]||F:F};
g.Jg=function(){kM.apply(this,arguments)};
I6_=function(R){HK(R,"getInternalApiInterface",R.getInternalApiInterface);HK(R,"getTrustedApi",R.getTrustedApi);HK(R,"addEventListener",R.M3);HK(R,"removeEventListener",R.Uc1);HK(R,"cueVideoByPlayerVars",R.bx);HK(R,"loadVideoByPlayerVars",R.tnX);HK(R,"preloadVideoByPlayerVars",R.VE5);HK(R,"getAdState",R.getAdState);HK(R,"sendAbandonmentPing",R.sendAbandonmentPing);HK(R,"setLoopRange",R.setLoopRange);HK(R,"getLoopRange",R.getLoopRange);HK(R,"setAutonavState",R.setAutonavState);HK(R,"seekTo",R.z2G);
HK(R,"seekBy",R.Z5G);HK(R,"seekToLiveHead",R.seekToLiveHead);HK(R,"requestSeekToWallTimeSeconds",R.requestSeekToWallTimeSeconds);HK(R,"seekToStreamTime",R.seekToStreamTime);HK(R,"prefetchKeyPlay",R.prefetchKeyPlay);HK(R,"startSeekCsiAction",R.startSeekCsiAction);HK(R,"getStreamTimeOffset",R.getStreamTimeOffset);HK(R,"getVideoData",R.ya);HK(R,"setInlinePreview",R.setInlinePreview);HK(R,"getAppState",R.getAppState);HK(R,"updateLastActiveTime",R.updateLastActiveTime);HK(R,"setBlackout",R.setBlackout);
HK(R,"setUserEngagement",R.setUserEngagement);HK(R,"updateSubtitlesUserSettings",R.updateSubtitlesUserSettings);HK(R,"getPresentingPlayerType",R.vZ);HK(R,"canPlayType",R.canPlayType);HK(R,"updatePlaylist",R.updatePlaylist);HK(R,"updateVideoData",R.updateVideoData);HK(R,"updateEnvironmentData",R.updateEnvironmentData);HK(R,"sendVideoStatsEngageEvent",R.XtQ);HK(R,"productsInVideoVisibilityUpdated",R.productsInVideoVisibilityUpdated);HK(R,"setSafetyMode",R.setSafetyMode);HK(R,"isAtLiveHead",function(F){return R.isAtLiveHead(void 0,
F)});
HK(R,"getVideoAspectRatio",R.getVideoAspectRatio);HK(R,"getPreferredQuality",R.getPreferredQuality);HK(R,"getPlaybackQualityLabel",R.getPlaybackQualityLabel);HK(R,"setPlaybackQualityRange",R.qqG);HK(R,"onAdUxClicked",R.onAdUxClicked);HK(R,"getFeedbackProductData",R.getFeedbackProductData);HK(R,"getStoryboardFrame",R.getStoryboardFrame);HK(R,"getStoryboardFrameIndex",R.getStoryboardFrameIndex);HK(R,"getStoryboardLevel",R.getStoryboardLevel);HK(R,"getNumberOfStoryboardLevels",R.getNumberOfStoryboardLevels);
HK(R,"getCaptionWindowContainerId",R.getCaptionWindowContainerId);HK(R,"getAvailableQualityLabels",R.getAvailableQualityLabels);HK(R,"addCueRange",R.addCueRange);HK(R,"addUtcCueRange",R.addUtcCueRange);HK(R,"showAirplayPicker",R.showAirplayPicker);HK(R,"dispatchReduxAction",R.dispatchReduxAction);HK(R,"getPlayerResponse",R.Ry);HK(R,"getWatchNextResponse",R.J1G);HK(R,"getHeartbeatResponse",R.qh);HK(R,"getCurrentTime",R.CP);HK(R,"getDuration",R.wb);HK(R,"getPlayerState",R.getPlayerState);HK(R,"getPlayerStateObject",
R.Gh);HK(R,"getVideoLoadedFraction",R.getVideoLoadedFraction);HK(R,"getProgressState",R.getProgressState);HK(R,"getVolume",R.getVolume);HK(R,"setVolume",R.xl);HK(R,"isMuted",R.isMuted);HK(R,"mute",R.k6);HK(R,"unMute",R.bJ);HK(R,"loadModule",R.loadModule);HK(R,"unloadModule",R.unloadModule);HK(R,"getOption",R.Y2);HK(R,"getOptions",R.getOptions);HK(R,"setOption",R.setOption);HK(R,"loadVideoById",R.j2);HK(R,"loadVideoByUrl",R.Av);HK(R,"playVideo",R.b3);HK(R,"loadPlaylist",R.loadPlaylist);HK(R,"nextVideo",
R.nextVideo);HK(R,"previousVideo",R.previousVideo);HK(R,"playVideoAt",R.playVideoAt);HK(R,"getDebugText",R.getDebugText);HK(R,"getWebPlayerContextConfig",R.getWebPlayerContextConfig);HK(R,"notifyShortsAdSwipeEvent",R.notifyShortsAdSwipeEvent);HK(R,"getVideoContentRect",R.getVideoContentRect);HK(R,"setSqueezeback",R.setSqueezeback);HK(R,"toggleSubtitlesOn",R.toggleSubtitlesOn);HK(R,"isSubtitlesOn",R.isSubtitlesOn);HK(R,"getAudioTrack",R.ZF);HK(R,"setAudioTrack",R.gcH);HK(R,"getAvailableAudioTracks",
R.Yt);HK(R,"reportPlaybackIssue",R.reportPlaybackIssue);HK(R,"setAutonav",R.setAutonav);HK(R,"isNotServable",R.isNotServable);HK(R,"channelSubscribed",R.channelSubscribed);HK(R,"channelUnsubscribed",R.channelUnsubscribed);HK(R,"togglePictureInPicture",R.togglePictureInPicture);HK(R,"supportsGaplessAudio",R.supportsGaplessAudio);HK(R,"supportsGaplessShorts",R.supportsGaplessShorts);HK(R,"enqueueVideoByPlayerVars",function(F){return void R.enqueueVideoByPlayerVars(F)});
HK(R,"clearQueue",R.clearQueue);HK(R,"getMaxPlaybackQuality",R.getMaxPlaybackQuality);HK(R,"getUserPlaybackQualityPreference",R.getUserPlaybackQualityPreference);HK(R,"getSubtitlesUserSettings",R.getSubtitlesUserSettings);HK(R,"resetSubtitlesUserSettings",R.resetSubtitlesUserSettings);HK(R,"setMinimized",R.setMinimized);HK(R,"setOverlayVisibility",R.setOverlayVisibility);HK(R,"confirmYpcRental",R.confirmYpcRental);HK(R,"queueNextVideo",R.queueNextVideo);HK(R,"handleExternalCall",R.handleExternalCall);
HK(R,"logApiCall",R.logApiCall);HK(R,"isExternalMethodAvailable",R.isExternalMethodAvailable);HK(R,"setScreenLayer",R.setScreenLayer);HK(R,"getCurrentPlaylistSequence",R.getCurrentPlaylistSequence);HK(R,"getPlaylistSequenceForTime",R.getPlaylistSequenceForTime);HK(R,"shouldSendVisibilityState",R.shouldSendVisibilityState);HK(R,"syncVolume",R.syncVolume);HK(R,"highlightSettingsMenuItem",R.highlightSettingsMenuItem);HK(R,"openSettingsMenuItem",R.openSettingsMenuItem);HK(R,"getEmbeddedPlayerResponse",
R.getEmbeddedPlayerResponse);HK(R,"getVisibilityState",R.getVisibilityState);HK(R,"isMutedByMutedAutoplay",R.isMutedByMutedAutoplay);HK(R,"isMutedByEmbedsMutedAutoplay",R.isMutedByEmbedsMutedAutoplay);HK(R,"setGlobalCrop",R.setGlobalCrop);HK(R,"setInternalSize",R.setInternalSize);HK(R,"setFauxFullscreen",R.setFauxFullscreen);HK(R,"setAppFullscreen",R.setAppFullscreen)};
dZ=function(R,F,n){R=g.G9(R.q8(),F);return n?(n.addOnDisposeCallback(R),null):R};
g.Mj=function(R,F,n){return R.app.D().t0?F:g.fy("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:F,SHORTCUT:n})};
K$f=function(R){R.q8().element.setAttribute("aria-live","polite")};
g.l4=function(R,F){g.Jg.call(this,R,F);I6_(this);WK(this,"addEventListener",this.XC);WK(this,"removeEventListener",this.N22);WK(this,"cueVideoByPlayerVars",this.Zd);WK(this,"loadVideoByPlayerVars",this.zp1);WK(this,"preloadVideoByPlayerVars",this.LhH);WK(this,"loadVideoById",this.j2);WK(this,"loadVideoByUrl",this.Av);WK(this,"playVideo",this.b3);WK(this,"loadPlaylist",this.loadPlaylist);WK(this,"nextVideo",this.nextVideo);WK(this,"previousVideo",this.previousVideo);WK(this,"playVideoAt",this.playVideoAt);
WK(this,"getVideoData",this.q1);WK(this,"seekBy",this.tuo);WK(this,"seekTo",this.ncz);WK(this,"showControls",this.showControls);WK(this,"hideControls",this.hideControls);WK(this,"cancelPlayback",this.cancelPlayback);WK(this,"getProgressState",this.getProgressState);WK(this,"isInline",this.isInline);WK(this,"setInline",this.setInline);WK(this,"setLoopVideo",this.setLoopVideo);WK(this,"getLoopVideo",this.getLoopVideo);WK(this,"getVideoContentRect",this.getVideoContentRect);WK(this,"getVideoStats",this.mq5);
WK(this,"getCurrentTime",this.DF);WK(this,"getDuration",this.wb);WK(this,"getPlayerState",this.xt);WK(this,"getVideoLoadedFraction",this.TXG);WK(this,"mute",this.k6);WK(this,"unMute",this.bJ);WK(this,"setVolume",this.xl);WK(this,"loadModule",this.loadModule);WK(this,"unloadModule",this.unloadModule);WK(this,"getOption",this.Y2);WK(this,"getOptions",this.getOptions);WK(this,"setOption",this.setOption);WK(this,"addCueRange",this.addCueRange);WK(this,"getDebugText",this.getDebugText);WK(this,"getStoryboardFormat",
this.getStoryboardFormat);WK(this,"toggleFullscreen",this.toggleFullscreen);WK(this,"isFullscreen",this.isFullscreen);WK(this,"getPlayerSize",this.getPlayerSize);WK(this,"toggleSubtitles",this.toggleSubtitles);WK(this,"setCenterCrop",this.setCenterCrop);WK(this,"setFauxFullscreen",this.setFauxFullscreen);WK(this,"setSizeStyle",this.setSizeStyle);WK(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);WK(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);HQR(this)};
g.Nj=function(R){R=R.WI();var F=R.A7.get("endscreen");return F&&F.Wy()?!0:R.EH()};
g.E6=function(R,F){R.getPresentingPlayerType()===3?R.publish("mdxautoplaycancel"):R.HG("onAutonavCancelled",F)};
g.PK=function(R){var F=$M(R.WI());return R.app.bq&&!R.isFullscreen()||R.getPresentingPlayerType()===3&&F&&F.hasNext()&&F.hasPrevious()||!!R.getPlaylist()};
g.b4=function(R,F){g.u4(R,"addEmbedsConversionTrackingParams",[F])};
g.eH=function(R){return(R=g.ZU(R.WI()))?R.VK():{}};
g.D4v=function(R){R=(R=R.getVideoData())&&R.U;return!!R&&!(!R.audio||!R.video)&&R.mimeType!=="application/x-mpegURL"};
g.RL=function(R,F,n){R=R.fH().element;var V=sm(R.children,function(r){r=Number(r.getAttribute("data-layer"));return n-r||1});
V<0&&(V=-(V+1));DT(R,F,V);F.setAttribute("data-layer",String(n))};
g.Fp=function(R){var F=R.D();if(!F.uZ)return!1;var n=R.getVideoData();if(!n||R.getPresentingPlayerType()===3)return!1;var V=(!n.isLiveDefaultBroadcast||F.B("allow_poltergust_autoplay"))&&!CK(n);V=n.isLivePlayback&&(!F.B("allow_live_autoplay")||!V);var r=n.isLivePlayback&&F.B("allow_live_autoplay_on_mweb");R=R.getPlaylist();R=!!R&&R.hasNext();var v=n.jQ&&n.jQ.playerOverlays||null;v=!!(v&&v.playerOverlayRenderer&&v.playerOverlayRenderer.autoplay);v=n.On&&v;return!n.ypcPreview&&(!V||r)&&!g.Rz(n.D0,"ypc")&&
!R&&(!g.Pp(F)||v)};
iQN=function(R,F){R=R.app.I9().W.PH();R=g.m(R);for(var n=R.next();!n.done;n=R.next()){n=n.value;var V=n.getAvailableAudioTracks(),r=null;V=g.m(V);for(var v=V.next();!v.done;v=V.next())if(v=v.value,v.getLanguageInfo().getId()===F){r=v;break}r&&n.QY(r,!0)}};
ni=function(){GQ.apply(this,arguments);this.requestHeaders={}};
r$=function(){Vk||(Vk=new ni);return Vk};
vN=function(R,F){F?R.requestHeaders.Authorization="Bearer "+F:delete R.requestHeaders.Authorization};
x4f=function(R){this.experiments=R;this.T=2048;this.J=0;this.Nq=(this.X=this.B("html5_streaming_resilience"))?.5:.25;var F=F===void 0?0:F;this.N=g.Vn(this.experiments,"html5_media_time_weight_prop")||F;this.UZ=(this.W=this.experiments.GH("html5_consider_end_stall"))&&s6;this.U=this.experiments.GH("html5_measure_max_progress_handling");this.V=this.B("html5_treat_requests_pre_elbow_as_metadata");this.Z=this.B("html5_media_time_weight")||!!this.N;this.B("html5_sabr_live_audio_early_return_fix")&&s6&&
(this.T=65536)};
g.fi=function(R){g.G.call(this);var F=this;this.TH=R;this.hJ={KU:function(){return F.TH}}};
ti=function(R,F,n,V){V=V===void 0?!1:V;g.c5.call(this,F);var r=this;this.K=R;this.Nq=V;this.W=new g.AQ(this);this.fade=new g.n5(this,n,!0,void 0,void 0,function(){r.N1()});
g.d(this,this.W);g.d(this,this.fade)};
z6=function(R){var F=R.K.getRootNode();return R.K.B("web_watch_pip")||R.K.B("web_shorts_pip")?aE(F):document};
k4N=function(R){R.sourceElement&&(document.activeElement&&g.xW(R.element,document.activeElement)&&R.sourceElement.focus(),R.sourceElement.setAttribute("aria-expanded","false"),R.sourceElement=void 0);g.Kw(R.W);R.Z=void 0};
qJ=function(R,F,n){R.mw()?R.nC():R.rW(F,n)};
Qk=function(R,F,n,V){V=new g.N({j:"div",BG:["ytp-linked-account-popup-button"],cG:V,S:{role:"button",tabindex:"0"}});F=new g.N({j:"div",Y:"ytp-linked-account-popup",S:{role:"dialog","aria-modal":"true",tabindex:"-1"},L:[{j:"div",Y:"ytp-linked-account-popup-title",cG:F},{j:"div",Y:"ytp-linked-account-popup-description",cG:n},{j:"div",Y:"ytp-linked-account-popup-buttons",L:[V]}]});ti.call(this,R,{j:"div",Y:"ytp-linked-account-popup-container",L:[F]},100);var r=this;this.dialog=F;g.d(this,this.dialog);
V.listen("click",function(){r.nC()});
g.d(this,V);g.RL(this.K,this.element,4);this.hide()};
g.w$=function(R,F,n,V){g.c5.call(this,R);this.priority=F;n&&g.cN(this,n);V&&this.setContent(V)};
g.SK=function(R,F,n,V){R=R===void 0?{}:R;F=F===void 0?[]:F;n=n===void 0?!1:n;V=V===void 0?!1:V;F.push("ytp-menuitem");var r=R;"role"in r||(r.role="menuitem");n||(r=R,"tabindex"in r||(r.tabindex="0"));R={j:n?"a":"div",BG:F,S:R,L:[{j:"div",Y:"ytp-menuitem-icon",cG:"{{icon}}"},{j:"div",Y:"ytp-menuitem-label",cG:"{{label}}"},{j:"div",Y:"ytp-menuitem-content",cG:"{{content}}"}]};V&&R.L.push({j:"div",Y:"ytp-menuitem-secondary-icon",cG:"{{secondaryIcon}}"});return R};
g.cN=function(R,F){R.updateValue("label",F)};
Li=function(R){g.w$.call(this,g.SK({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var F=this;this.K=R;this.U=this.T=!1;this.T9=R.MX();R.createServerVe(this.element,this,!0);this.C(this.K,"settingsMenuVisibilityChanged",function(n){F.Un(n)});
this.C(this.K,"videodatachange",this.J);this.listen("click",this.onClick);this.J()};
sY=function(R){return R?g.LG(R):""};
pi=function(R){g.G.call(this);this.api=R};
Xp=function(R){pi.call(this,R);var F=this;HK(R,"setAccountLinkState",function(n){F.setAccountLinkState(n)});
HK(R,"updateAccountLinkingConfig",function(n){F.updateAccountLinkingConfig(n)});
R.addEventListener("videodatachange",function(n,V){F.onVideoDataChange(V)});
R.addEventListener("settingsMenuInitialized",function(){F.menuItem=new Li(F.api);g.d(F,F.menuItem)})};
Ai=function(R){pi.call(this,R);var F=this;this.T=null;this.events=new g.AQ(R);g.d(this,this.events);this.events.C(R,"applicationvideodatachange",function(){F.WS()})};
YTE=function(R){this.api=R;this.T={}};
aL=function(R,F,n,V){F in R.T||(n=new g.NQ(n,V,{id:F,priority:2,namespace:"appad"}),R.api.iL([n],1),R.T[F]=n)};
Ci=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(this);g.d(this,this.events);this.T=new YTE(this.api);this.events.C(this.api,"legacyadtrackingpingreset",function(){F.T.T={}});
this.events.C(this.api,"legacyadtrackingpingchange",function(n){var V=F.T;aL(V,"part2viewed",1,0x8000000000000);aL(V,"engagedview",Math.max(1,n.l0*1E3),0x8000000000000);if(!n.isLivePlayback){var r=n.lengthSeconds*1E3;hu(n)&&V.api.B("html5_shorts_gapless_ads_duration_fix")&&(r=V.api.getProgressState().seekableEnd*1E3-n.ge);aL(V,"videoplaytime25",r*.25,r);aL(V,"videoplaytime50",r*.5,r);aL(V,"videoplaytime75",r*.75,r);aL(V,"videoplaytime100",r,0x8000000000000);aL(V,"conversionview",r,0x8000000000000);
aL(V,"videoplaybackstart",1,r);aL(V,"videoplayback2s",2E3,r);aL(V,"videoplayback10s",1E4,r)}});
this.events.C(this.api,g.$A("appad"),this.U);this.events.C(this.api,g.Pl("appad"),this.U)};
M1k=function(R,F,n){if(!(n in F))return!1;F=F[n];Array.isArray(F)||(F=[F]);F=g.m(F);for(n=F.next();!n.done;n=F.next()){n=n.value;var V={CPN:R.api.getVideoData().clientPlaybackNonce};n=g.OB(n,V);V=void 0;V=V===void 0?!1:V;(V=JE(GA(n,J0J),n,V,"Active View 3rd Party Integration URL"))||(V=void 0,V=V===void 0?!1:V,V=JE(GA(n,G4I),n,V,"Google/YouTube Brand Lift URL"));V||(V=void 0,V=V===void 0?!1:V,V=JE(GA(n,d4j),n,V,"Nielsen OCR URL"));g.ir(n,void 0,V)}return!0};
T6=function(R,F){l6J(R,F).then(function(n){g.ir(F,void 0,void 0,n)})};
oL=function(R,F){F.forEach(function(n){T6(R,n)})};
l6J=function(R,F){return g.ad(R.api.D())&&SP(F)&&wz(F)?g.HV(R.api.D(),g.Ql(R.api.getVideoData())).then(function(n){var V;n&&(V={Authorization:"Bearer "+n});return V},void 0):D_()};
var X_I=function(R){return Tk[t[22]](this,74,R)};
NvN=function(R){pi.call(this,R);this.events=new g.AQ(R);g.d(this,this.events);this.events.C(R,"videoready",function(F){if(R.getPresentingPlayerType()===1){var n,V,r={playerDebugData:{pmlSignal:!!((n=F.getPlayerResponse())==null?0:(V=n.adPlacements)==null?0:V.some(function(v){var f;return v==null?void 0:(f=v.adPlacementRenderer)==null?void 0:f.renderer})),
contentCpn:F.clientPlaybackNonce}};g.LJ("adsClientStateChange",r)}})};
yk=function(R,F){g.w$.call(this,g.SK({role:"menuitemcheckbox","aria-checked":"false"}),F,R,{j:"div",Y:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)};
UY=function(R,F){R.checked=F;R.element.setAttribute("aria-checked",String(R.checked))};
E2E=function(R){var F=!R.D().iI&&R.getPresentingPlayerType()!==3;return R.isFullscreen()||F};
g.jK=function(R,F,n,V){var r=R.currentTarget;if((n===void 0||!n)&&g.y2(R))return R.preventDefault(),!0;F.pauseVideo();R=r.getAttribute("href");g.dr(R,V,!0);return!1};
g.HN=function(R,F,n){if(L9(F.D())&&F.getPresentingPlayerType()!==2){if(g.y2(n))return F.isFullscreen()&&!F.D().externalFullscreen&&F.toggleFullscreen(),n.preventDefault(),!0}else{var V=g.y2(n);V&&F.pauseVideo();g.dr(R,void 0,!0);V&&(g.MO(R),n.preventDefault())}return!1};
$46=function(R){R=hi.includes("en")?R.B("delhi_modern_web_player_icons")?CG():{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,S:{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"}}]}:R.B("delhi_modern_web_player_icons")?sxe():{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,S:{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"}}]};R.Y="ytp-subtitles-button-icon";
return R};
PWN=function(R){return hi.includes("en")?R?CG():{j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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"}}]}:R?{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",
width:"24"},L:[{j:"path",S:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z",
fill:"white"}}]}:{j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}};
WN=function(){return{j:"div",Y:"ytp-spinner-container",L:[{j:"div",Y:"ytp-spinner-rotator",L:[{j:"div",Y:"ytp-spinner-left",L:[{j:"div",Y:"ytp-spinner-circle"}]},{j:"div",Y:"ytp-spinner-right",L:[{j:"div",Y:"ytp-spinner-circle"}]}]}]}};
uF=function(R){if(document.createRange){var F=document.createRange();F&&(F.selectNodeContents(R),R=window.getSelection())&&(R.removeAllRanges(),R.addRange(F))}};
mS=function(R,F){var n=R.B("web_fix_annotations")?"Annotated Overlays":"Annotations";yk.call(this,n,g.BN.qG);this.K=R;this.T9=F;this.T=!1;R.B("web_settings_menu_icons")&&(F=R.B("delhi_modern_web_player_icons")?{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z",
fill:"white"}}]}:{j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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(F));this.C(R,"videodatachange",this.CH);this.C(R,"onApiChange",this.CH);this.subscribe("select",this.onSelect,this);this.CH()};
bQ6=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);R.addEventListener("settingsMenuInitialized",function(){var n=new mS(F.api,F.api.MX());g.d(F,n)})};
OY=function(R){var F=this;this.T={};this.N={};this.hJ={pUz:function(){return F.T}};
this.videoData=R;var n,V=(n=R.N)==null?void 0:n.U;V&&V.length>0?this.U=V:(R=R.getAvailableAudioTracks(),this.U=R.length>0?ZQW(R):[]);R=g.m(g$);for(n=R.next();!n.done;n=R.next())n=n.value,this.T[n]=eKV[n](this.U);this.y7()};
RPv=function(R,F){var n=F.getAudioTrack();return n.id!=="und"?g.dk(R,function(V){var r;return((r=V.z9)==null?void 0:r.name)===n.getLanguageInfo().name}):R};
FVE=function(R,F){return F.getUserAudio51Preference()?g.dk(R,IL):R};
ZQW=function(R){return R.map(function(F){return new JQ(F.id,"application/x-mpegURL",{z9:F.z9})})};
naf=function(R){return g.xh("yt-player-drc-pref")?g.dk(R,Ki):R};
Vik=function(R){return YQf()===2?g.dk(R,DH):R};
rIN=function(R){return JEk()===1?g.dk(R,iF):R};
iF=function(R){var F;return((F=R.audio)==null?void 0:F.audioQuality)==="AUDIO_QUALITY_HIGH"&&!NL(R)};
Ki=function(R){var F;return((F=R.audio)==null?void 0:F.T)===!0};
IL=function(R){return NL(R)};
vaN=function(R){return R.z9!==void 0};
DH=function(R){var F;return((F=R.audio)==null?void 0:F.U)===!0};
x1=function(R,F){if(R.length<2)return!1;var n=F(R[0]);return R.some(function(V){return F(V)!==n})};
fWV=function(R,F){R=new Set(R.map(F));R.delete(void 0);return R.size>=2};
k1=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);var n=this.api.B("html5_enable_audio_quality_setting_feature");HK(this.api,"getUserAudioQualitySetting",function(){return n?F.getUserAudioQualitySetting():2});
HK(this.api,"setUserAudioQualitySetting",function(V){n&&F.setUserAudioQualitySetting(V)});
HK(this.api,"hasHqaAudioTrack",function(){return n?F.hasHqaAudioTrack():!1});
HK(this.api,"getAudioQualitySettingState",function(){return n?F.api.a8(4):1});
this.hs=JEk();this.updateEnvironmentData()};
tiI=function(R){pi.call(this,R);var F=this;HK(this.api,"getAudioTrackState",function(){return F.api.a8(0)})};
Y1=function(R){g.N.call(this,{j:"button",BG:["ytp-button","ytp-autonav-toggle"],S:{title:R.B("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"},L:[{j:"div",Y:"ytp-autonav-toggle-button-container",L:[{j:"div",Y:"ytp-autonav-toggle-button",S:{"aria-checked":"true"}}]}]});this.K=R;this.U=[];this.T=!1;this.isChecked=!0;R.createClientVe(this.element,this,
113681);this.C(R,"presentingplayerstatechange",this.nY);this.listen("click",this.onClick);this.U.push(this.C(this.K,"videodatachange",this.nY));this.U.push(this.C(this.K,"videoplayerreset",this.nY));this.U.push(this.C(this.K,"onPlaylistUpdate",this.nY));this.U.push(this.C(this.K,"autonavchange",this.TJ));R.B("delhi_fast_follow_autonav_toggle")&&this.element.classList.add("delhi-fast-follow-autonav-toggle");dZ(R,this.element,this);this.nY()};
zPE=function(R){R.isChecked=R.isChecked;R.sZ("ytp-autonav-toggle-button").setAttribute("aria-checked",String(R.isChecked));var F=R.isChecked?"Autoplay is on":"Autoplay is off";R.K.D().B("player_tooltip_data_title_killswitch")?R.update({title:F,label:F}):R.update({"data-tooltip-title":F,label:F});R.K.Ew()};
qlj=function(R){return R.K.D().B("web_player_autonav_use_server_provided_state")&&T7(R.aC())};
Q0I=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);this.events.C(R,"standardControlsInitialized",function(){var n=new Y1(R);g.d(F,n);R.hT(n,"RIGHT_CONTROLS_LEFT")})};
G6=function(R){var F=R.B("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";yk.call(this,F,g.BN.kd);var n=this;this.K=R;this.T=!1;this.U=new g.ZK(function(){g.Qj(n.element,"ytp-menuitem-highlighted")},0);
this.T9=R.MX();R=R.B("delhi_modern_web_player_icons")?{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z",
fill:"white"}}]}:{j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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(R);this.subscribe("select",this.N,this);this.listen(Ji,this.J);g.d(this,this.U)};
d$=function(R){pi.call(this,R);var F=this;this.T=!1;R.addEventListener("settingsMenuInitialized",function(){cIf(F)});
R.addEventListener("highlightSettingsMenu",function(n){cIf(F);var V=F.menuItem;n==="menu_item_cinematic_lighting"&&(g.z0(V.element,"ytp-menuitem-highlighted"),g.z0(V.element,"ytp-menuitem-highlight-transition-enabled"),V.U.start())});
HK(R,"updateCinematicSettings",function(n){F.updateCinematicSettings(n)})};
cIf=function(R){R.menuItem||(R.menuItem=new G6(R.api),g.d(R,R.menuItem),R.menuItem.CH(R.T))};
wWf=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);this.events.C(R,"applicationvideodatachange",function(n,V){V=V.clipConfig;n==="dataloaded"&&V&&V.startTimeMs!=null&&V.endTimeMs!=null&&F.api.setLoopRange({startTimeMs:Math.floor(Number(V.startTimeMs)),endTimeMs:Math.floor(Number(V.endTimeMs)),postId:V.postId,type:"clips"})})};
MJ=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);HK(R,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));HK(R,"setCreatorEndscreenHideButton",this.T.bind(this));this.B("web_fix_annotations")&&this.events.C(R,"annotationvisibility",function(n){F.setCreatorEndscreenVisibility(!n);F.hideButton&&g.av(F.hideButton,n)})};
LVj=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);this.events.C(R,"videodatachange",function(){var n=F.api.getRootNode(),V=F.api.D();g.z0(n,"ytp-delhi-modern");V.B("delhi_modern_web_player_icons")&&g.z0(n,"ytp-delhi-modern-icons");V.B("delhi_modern_web_player_horizontal_volume_controls")&&g.z0(n,"ytp-delhi-horizontal-volume-controls");V.B("delhi_modern_web_player_compact_controls")&&g.z0(n,"ytp-delhi-modern-compact-controls");V.B("delhi_modern_web_player_big_mode_consistent_pill_height")&&
g.z0(n,"ytp-big-mode-consistent-pill-height");switch(mj(V.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.z0(n,"ytp-delhi-modern-with-luminosity");break;case "difference":g.z0(n,"ytp-delhi-modern-with-difference");break;case "exclusion":g.z0(n,"ytp-delhi-modern-with-exclusion")}n=F.api.isHdr()||F.api.B("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";F.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",n);SlV(F)});
this.events.C(R,"resize",function(){SlV(F)})};
SlV=function(R){var F=R.api.B("delhi_modern_web_player_compact_controls"),n=g.Vn(R.api.D().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),V=F||n>0&&R.api.getPlayerSize().width<=n;F=R.api.getRootNode();F.classList.toggle("ytp-delhi-modern-compact-controls",V);n=V?"40px":"48px";var r=V?"8px":"12px",v=V?"56px":"72px",f=V?"56px":"64px",z=V?"48px":"56px",q=V?"12px":"20px";V=V?"72px":"96px";R.api.B("delhi_modern_web_player_big_mode_consistent_pill_height")&&(z="56px",q="12px",
V="80px");F.style.setProperty("--yt-delhi-pill-height",n);F.style.setProperty("--yt-delhi-pill-top-height",r);F.style.setProperty("--yt-delhi-bottom-controls-height",v);F.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",f);F.style.setProperty("--yt-delhi-big-mode-pill-height",z);F.style.setProperty("--yt-delhi-big-mode-pill-top-height",q);F.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",V)};
lF=function(R,F,n,V,r){var v=R.B("html5_enable_new_audio_settings_menu");yk.call(this,"Stable Volume",v?s0e.qk:g.BN.qk);this.K=R;this.J=F;this.U=n;this.hasDrcAudioTrack=V;this.getDrcState=r;this.N=this.enableNewAudioSettingsMenu=this.T=!1;g.z0(this.element,"ytp-drc-menu-item");this.T9=(this.enableNewAudioSettingsMenu=v)?R.MX().m_:R.MX();R.B("html5_enable_voice_boost")?(this.N=!0,this.C(R,"onFilterAudioFeatures",this.v_)):R.addEventListener("videodatachange",this.v_.bind(this));R.B("mta_drc_mutual_exclusion_removal")&&
this.C(R,"onPlaybackAudioChange",this.v_);R.createClientVe(this.element,this,273317);this.listen("click",this.Z);F=this.U()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(R=R.B("delhi_modern_web_player_icons")?{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z",
fill:"white"}}]}:{j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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(R));this.subscribe("select",this.W,this);this.enableNewAudioSettingsMenu||this.N?this.v_():(this.setEnabled(this.hasDrcAudioTrack()),UY(this,F),this.T9.xF(this))};
NJ=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);R.B("html5_show_drc_toggle")&&R.addEventListener("settingsMenuInitialized",function(){F.menuItem||(F.menuItem=new lF(F.api,F.setDrcUserPreference.bind(F),F.getDrcUserPreference.bind(F),F.q9.bind(F),F.getDrcState.bind(F)),g.d(F,F.menuItem))});
HK(this.api,"setDrcUserPreference",function(V){F.setDrcUserPreference(V)});
HK(this.api,"getDrcUserPreference",function(){return F.getDrcUserPreference()});
HK(this.api,"hasDrcAudioTrack",function(){return F.q9()});
HK(this.api,"getDrcState",function(){return F.getDrcState()});
var n;this.T=(n=g.xh("yt-player-drc-pref"))!=null?n:1;this.updateEnvironmentData()};
EY=function(R){pi.call(this,R);var F=this;this.T={};this.events=new g.AQ(R);g.d(this,this.events);this.events.C(R,"videodatachange",function(){F.onVideoDataChange()});
this.events.C(R,g.$A("embargo"),function(n){F.api.S7(!0);var V,r=(V=F.T[n.id])!=null?V:[];V=g.m(r);for(r=V.next();!r.done;r=V.next()){var v=r.value;F.api.hideControls();F.api.Rr("auth",2,"This video isn't available in your current playback area",tQ({embargoed:1,id:n.id,idx:n.U,start:n.start}));r=void 0;(v=(r=v.embargo)==null?void 0:r.onTrigger)&&F.api.HG("innertubeCommand",v)}})};
pWV=function(R,F){var n;return(n=F.onEnter)==null?void 0:n.some(R.U)};
XWf=function(R,F){F=g.m(F);for(var n=F.next();!n.done;n=F.next()){n=n.value;var V=void 0,r=Number((V=n.playbackPosition)==null?void 0:V.utcTimeMillis)/1E3,v=void 0;V=r+Number((v=n.duration)==null?void 0:v.seconds);v="embargo_"+r;R.api.addUtcCueRange(v,r,V,"embargo",!1);n.onEnter&&(R.T[v]=n.onEnter.filter(R.U))}};
$1=function(R){pi.call(this,R);var F=this;this.T=[];this.events=new g.AQ(R);g.d(this,this.events);HK(R,"addEmbedsConversionTrackingParams",function(n){F.addEmbedsConversionTrackingParams(n)});
this.events.C(R,"veClickLogged",function(n){F.api.hasVe(n)&&(n=n.visualElement.getAsJspb(),n=g.Pb(n,2),F.T.push(n))})};
AIV=function(R){pi.call(this,R);HK(R,"isEmbedsShortsMode",function(){return R.isEmbedsShortsMode()});
HK(R,"getReelItemWatchResponse",function(){var F,n;return(n=(F=R.getVideoData({playerType:1}))==null?void 0:F.getReelItemWatchResponse())!=null?n:null})};
aWe=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);this.events.C(R,"initialvideodatacreated",function(n){o4(T4(),16623);F.T=g.CJ();var V=R.D().Ow&&!n.us;if(qj(n)&&V){o4(T4(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(n.getWatchNextResponse()){var r,v=(r=n.getWatchNextResponse())==null?void 0:r.trackingParams;v&&UT(v)}if(n.getPlayerResponse()){var f;(n=(f=n.getPlayerResponse())==null?void 0:f.trackingParams)&&UT(n)}}else o4(T4(),
32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),n.getEmbeddedPlayerResponse()&&(f=(v=n.getEmbeddedPlayerResponse())==null?void 0:v.trackingParams)&&UT(f)});
this.events.C(R,"loadvideo",function(){o4(T4(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:F.T})});
this.events.C(R,"cuevideo",function(n){n===1&&o4(T4(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:F.T})});
this.events.C(R,"largeplaybuttonclicked",function(n){o4(T4(),27240,n.visualElement)});
this.events.C(R,"playlistnextbuttonclicked",function(n){o4(T4(),27240,n.visualElement)});
this.events.C(R,"playlistprevbuttonclicked",function(n){o4(T4(),27240,n.visualElement)});
this.events.C(R,"playlistautonextvideo",function(){o4(T4(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})};
PN=function(R,F){g.G.call(this);var n=this;this.T=null;this.N=F;F=[];for(var V=0;V<=100;V++)F.push(V/100);F={threshold:F,trackVisibility:!0,delay:1E3};(this.U=window.IntersectionObserver?new IntersectionObserver(function(r){r=r[r.length-1];var v=null;typeof r.isVisible==="undefined"?document.visibilityState==="visible"&&r.isIntersecting&&r.intersectionRatio>0?v=r.intersectionRatio:document.visibilityState==="hidden"?v=0:v=null:v=r.isVisible?r.intersectionRatio:0;v!=null&&(v=Math.max(v,0),v=Math.min(v,
1));n.T=v;typeof n.N==="function"&&n.N(n.T)},F):null)&&this.U.observe(R)};
Tme=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);this.events.C(R,"applicationInitialized",function(){C2N(F)})};
C2N=function(R){var F=R.api.getRootNode(),n,V=R.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((n=F.parentElement)==null?void 0:n.parentElement)||F:F;R.T=new PN(V,function(r){r!=null&&(R.api.D().XW=r,R.api.D().eU="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")});
g.d(R,R.T);R.events.C(R.api,"videoStatsPingCreated",function(r){var v=R.T;v=v.T==null?null:Math.round(v.T*100)/100;r.inview=v!=null?v:void 0;v=R.api.getPlayerSize();if(v.height>0&&v.width>0){v=[Math.round(v.width),Math.round(v.height)];var f=g.p9();f>1&&v.push(f);v=v.join(":")}else v=void 0;r.size=v})};
bF=function(R){pi.call(this,R);var F=this;HK(this.api,"dismissFeaturedProductOverlay",function(){F.dismissFeaturedProductOverlay()})};
oaW=function(R){var F;return((F=((R==null?void 0:R.messageRenderers)||[]).find(function(n){return!!n.timeCounterRenderer}))==null?void 0:F.timeCounterRenderer)||null};
ZH=function(R){g.N.call(this,{j:"div",BG:["ytp-player-content","ytp-iv-player-content"],L:[{j:"div",Y:"ytp-free-preview-countdown-timer",L:[{j:"span",cG:"{{label}}"},{j:"span",Y:"ytp-free-preview-countdown-timer-separator",cG:"\u2022"},{j:"span",cG:"{{duration}}"}]}]});this.api=R;this.T=null;this.N=this.U=0;this.C(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)};
Ucv=function(R,F){R.T||(R.U=F,R.N=(0,g.h1)(),R.T=new g.bM(function(){yIe(R)},null),yIe(R))};
yIe=function(R){var F=Math,n=F.round,V=Math.min((0,g.h1)()-R.N,R.U);F=n.call(F,(R.U-V)/1E3);R.updateValue("duration",LQ({seconds:F}));F<=0&&R.T?R.stopTimer():R.T&&R.T.start()};
j09=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);this.events.C(R,"basechromeinitialized",function(){F.T=new ZH(R);g.d(F,F.T);g.RL(R,F.T.element,4);F.T.hide()})};
eK=function(R){g.N.call(this,{j:"button",BG:["ytp-fullerscreen-edu-button","ytp-button"],L:[{j:"div",BG:["ytp-fullerscreen-edu-text"],cG:"Scroll for details"},{j:"div",BG:["ytp-fullerscreen-edu-chevron"],L:[MPR()]}],S:{"data-priority":"2"}});this.eQ=R;this.fade=new g.n5(this,250,void 0,100);this.U=this.T=!1;R.createClientVe(this.element,this,61214);g.d(this,this.fade);this.C(R,"fullscreentoggled",this.CH);this.C(R,"presentingplayerstatechange",this.CH);this.listen("click",this.onClick);this.CH()};
Rl=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);HK(this.api,"updateFullerscreenEduButtonSubtleModeState",function(V){F.updateFullerscreenEduButtonSubtleModeState(V)});
HK(this.api,"updateFullerscreenEduButtonVisibility",function(V){F.updateFullerscreenEduButtonVisibility(V)});
var n=R.D();R.B("external_fullscreen_with_edu")&&n.externalFullscreen&&L9(n)&&n.controlsType==="1"&&this.events.C(R,"standardControlsInitialized",function(){F.T=new eK(R);g.d(F,F.T);R.hT(F.T)})};
Hne=function(R){g.N.call(this,{j:"div",Y:"ytp-gated-actions-overlay",L:[{j:"div",Y:"ytp-gated-actions-overlay-background",L:[{j:"div",Y:"ytp-gated-actions-overlay-background-overlay"}]},{j:"button",BG:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],S:{"aria-label":"Close"},L:[g.ah()]},{j:"div",Y:"ytp-gated-actions-overlay-bar",L:[{j:"div",Y:"ytp-gated-actions-overlay-text-container",L:[{j:"div",Y:"ytp-gated-actions-overlay-title",cG:"{{title}}"},{j:"div",Y:"ytp-gated-actions-overlay-subtitle",
cG:"{{subtitle}}"}]},{j:"div",Y:"ytp-gated-actions-overlay-button-container"}]}]});var F=this;this.api=R;this.background=this.sZ("ytp-gated-actions-overlay-background");this.U=this.sZ("ytp-gated-actions-overlay-button-container");this.T=[];this.C(this.sZ("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){F.api.HG("onCloseMiniplayer")});
this.hide()};
WVe=function(R,F){var n=0;n=0;for(var V={};n<F.length;V={jD:void 0},n++){var r=R.T[n],v=void 0,f=(v=r)==null?void 0:v.element;f||(f=new g.N({j:"button",Y:"ytp-gated-actions-overlay-button",S:{tabindex:"0"},L:[{j:"div",Y:"ytp-gated-actions-overlay-button-title",cG:"{{buttonText}}"}]}),g.d(R,f),f.KH(R.U),r={element:f});V.jD=g.A(F[n],hPf);var z=v=void 0,q=void 0,Q=((v=V.jD)==null?void 0:v.title)||((z=V.jD)==null?void 0:(q=z.titleFormatted)==null?void 0:q.content)||"";f.update({buttonText:Q});r.listener&&
f.ZO(r.listener);r.listener=f.listen("click",function(c){return function(){var w,L=g.A((w=c.jD)==null?void 0:w.onTap,IQ);L&&R.api.HG("innertubeCommand",L)}}(V));
R.T[n]=r}for(;n<R.T.length;)R.T.pop().element.dispose()};
uxJ=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);this.T=new Hne(this.api);g.d(this,this.T);this.events.C(R,"videodatachange",function(){var n,V=(n=F.api.getVideoData())==null?void 0:n.LO;n=F.T;if(V){var r,v,f=((r=V.title)==null?void 0:r.content)||"";r=((v=V.subtitle)==null?void 0:v.content)||"";n.update({title:f,subtitle:r});f=V.thumbnail;v="none";if(f==null?0:f.sources){r=0;f=g.m(f.sources);for(var z=f.next();!z.done;z=f.next())z=z.value,z.width&&z.url&&z.width>
r&&(r=z.width,v="url("+z.url+")")}n.background.style.backgroundImage=v;WVe(n,V.actionButtons||[]);n.show()}else n.hide()});
g.RL(this.api,this.T.element,4)};
F9=function(R){pi.call(this,R);var F=this;WK(this.api,"getSphericalProperties",function(){return F.getSphericalProperties()});
WK(this.api,"setSphericalProperties",function(){F.setSphericalProperties.apply(F,g.I(g.Cq.apply(0,arguments)))});
hg(this.api,"getSphericalProperties",function(){return F.api.getPresentingPlayerType()===2?{}:F.getSphericalProperties()});
hg(this.api,"setSphericalProperties",function(){var n=g.Cq.apply(0,arguments);F.api.getPresentingPlayerType()!==2&&F.setSphericalProperties.apply(F,g.I(n))})};
n0=function(R){pi.call(this,R);HK(R,"createClientVe",this.createClientVe.bind(this));HK(R,"createServerVe",this.createServerVe.bind(this));HK(R,"destroyVe",this.destroyVe.bind(this));HK(R,"hasVe",this.hasVe.bind(this));HK(R,"logClick",this.logClick.bind(this));HK(R,"logVisibility",this.logVisibility.bind(this));HK(R,"setTrackingParams",this.setTrackingParams.bind(this))};
VP=function(R,F,n,V){function r(f){var z=!(f.status!==204&&f.status!==200&&!f.response),q;f={succ:""+ +z,rc:f.status,lb:((q=f.response)==null?void 0:q.byteLength)||0,rt:((0,g.h1)()-v).toFixed(),shost:g.u5(R),trigger:F};Bmf(f,R);n&&n(f);V&&!z&&V(new g.z$("pathprobe.net",f))}
var v=(0,g.h1)();g.ux(R,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:r,onTimeout:r})};
Bmf=function(R,F){var n;((n=window.performance)==null?0:n.getEntriesByName)&&(F=performance.getEntriesByName(F))&&F.length&&(F=F[0],R.pedns=(F.domainLookupEnd-F.startTime).toFixed(),R.pecon=(F.connectEnd-F.domainLookupEnd).toFixed(),R.perqs=(F.requestStart-F.connectEnd).toFixed())};
rA=function(R,F){this.AJ=R;this.policy=F;this.playbackRate=1};
mce=function(R,F){var n=Math.min(2.5,v9(R.AJ));R=f0(R);return F-n*R};
zH=function(R,F,n,V,r){r=r===void 0?!1:r;if(R.policy.WU)return Math.ceil(R.policy.WU*F);R.policy.qE&&(V=Math.abs(V));V/=R.playbackRate;var v=1/tf(R.AJ);n=Math.max(.9*(V-3),v9(R.AJ)+R.AJ.U.T*v)/v*.8/(F+n);n=Math.min(n,V);R.policy.Kf>0&&r&&(n=Math.max(n,R.policy.Kf));return gaN(R,n,F)};
gaN=function(R,F,n){return Math.ceil(Math.max(Math.max(R.policy.XW,R.policy.e1*n),Math.min(Math.min(R.policy.SQ,31*n),Math.ceil(F*n))))||R.policy.XW};
f0=function(R){return tf(R.AJ,!R.policy.Zl,R.policy.ri)};
qH=function(R){return f0(R)/R.playbackRate};
QP=function(R,F,n){var V=R.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],r=R.policy.playbackStartPolicy.startMinReadaheadPolicy||[];R=Infinity;F=g.m(F&&V.length>0?V:r);for(V=F.next();!V.done;V=F.next())V=V.value,r=V.minReadaheadMs||0,n<(V.minBandwidthBytesPerSec||0)||R>r&&(R=r);return R<Infinity?R/1E3:R};
c9=function(R,F,n,V){var r=this;this.X=R;this.X2=F;this.policy=n;this.logger=V;this.UU=[];this.jB=[];this.T=-1;this.Sn=null;this.Z=this.timestampOffset=0;this.U=10;this.W=new Set;this.hJ={j1:function(v){return r.j1(v)}};
this.J=F.Zt?0:1;n.Xq>0&&(this.U=n.Xq)};
KVf=function(R,F,n,V,r){if(!V.info.N){if(n.length===0)n.push(V);else{var v;(R=(v=n.pop())==null?void 0:g.IR(v,V))?n.push(R):n.push(V)}return r}var f;(n=(f=n.pop())==null?void 0:g.IR(f,V))||(n=V);if(n.info.T)return R.logger&&R.logger({incompleteSegment:n.info.KX()}),r;V=R.j1(n);r=V.nH;V={clipId:V.clipId,formatId:V.formatId,startTimeMs:V.startTimeMs,durationMs:V.Dd,oI:r,GI:r};r=OnW(F,V.startTimeMs);if(v=n=r>=0?F[r]:null){v=V;var z=r;f=n.startTimeMs+n.durationMs;var q=v.startTimeMs+v.durationMs;if(v.startTimeMs-
f>R.U)v=!1;else if(IWN(R,n.formatId,v.formatId))n.durationMs=Math.max(f,q)-n.startTimeMs,n.GI=Math.max(n.GI,v.GI),v=!0;else if(Math.abs(n.startTimeMs-v.startTimeMs)<=R.U)if(n.durationMs>v.durationMs+R.U){var Q=n.formatId,c=n.oI;z=n.GI;n.formatId=v.formatId;n.durationMs=v.durationMs;n.oI=v.oI;n.GI=v.GI;v.formatId=Q;v.startTimeMs=q;v.durationMs=f-q;v.oI=c;v.GI=z;v=!1}else n.formatId=v.formatId,v=!0;else f>v.startTimeMs&&(f>q&&(F.splice(z+1,0,{formatId:n.formatId,startTimeMs:q,durationMs:f-q,oI:v.GI+
1,GI:n.GI}),R.logger&&R.logger({splitOldStart:(Q=n.startTimeMs)==null?void 0:Q.toFixed(3),splitOldEnd:f==null?void 0:f.toFixed(3),splitNewStart:(c=v.startTimeMs)==null?void 0:c.toFixed(3),splitNewEnd:q==null?void 0:q.toFixed(3)})),n.durationMs=v.startTimeMs-n.startTimeMs,n.GI=v.oI-1),v=!1}v?V=n:(r+=1,F.splice(r,0,V));Q=0;for(c=r+1;c<F.length;c++){n=R;v=F[c];f=V;q=v.startTimeMs+v.durationMs;z=f.startTimeMs+f.durationMs;z>=q+n.U?n=!0:z+n.U<v.startTimeMs?n=!1:IWN(n,v.formatId,f.formatId)?(f.durationMs=
q-f.startTimeMs,f.GI=v.GI,n=!0):(v.startTimeMs=z,v.oI=f.GI+1,n=!1);if(!n)break;Q++}Q&&F.splice(r+1,Q);return r};
inR=function(R,F,n){n!=null&&n.Ho||(R.UU=[]);R.policy.d4?(F=g.L4(R.jB,{startTimeMs:F*1E3},function(V,r){return V.startTimeMs-r.startTimeMs}),R.T!==F&&(R.T=-1,R.N=void 0)):(DcN(R,!0),R.T=OnW(R.jB,F*1E3))};
OnW=function(R,F){R=g.L4(R,{startTimeMs:F},function(n,V){return n.startTimeMs-V.startTimeMs});
return R>=0?R:-R-2};
DcN=function(R,F){if(R.Sn){var n=R.Sn.TI();if(n.length!==0){if(R.N&&F){var V=R.N,r=V.info.J;!rl(n,r)&&V.info.X>0&&(0,g.h1)()-R.Z<5E3&&(R.logger&&R.logger({dend:V.info.KX()}),n=gHW(n,r,r+.01))}R.policy.d4&&R.logger&&R.logger({cbri:""+R.T});V=[];for(var v=r=0;r<n.length&&v<R.jB.length;){var f=n.start(r),z=n.end(r),q=R.jB[v].startTimeMs/1E3,Q=(R.jB[v].startTimeMs+R.jB[v].durationMs)/1E3;if(q<=z&&Q>=f){var c=Object.assign({},R.jB[v]),w=R.X2.N.get(VR(R.jB[v].formatId)),L=Math.max(q,f);f=w.index.kc(L+R.U/
1E3);q=w.index.getStartTime(f);var S=f+ +(Math.abs(q-L)>R.U/1E3);L=S+R.J;S=w.index.getStartTime(S)*1E3;v!==R.T||F?(c.oI=L,c.startTimeMs=S):(R.logger&&R.logger({pEvict:"1",og:c.startTimeMs,adj:q*1E3}),c.oI=f+R.J,c.startTimeMs=q*1E3);f=void 0;q=((f=R.N)==null?void 0:f.info.duration)||11;v===R.T&&z<Q&&Q-z<=q*1.01&&(z=Q);f=Math.min(Q,z);q=w.index.kc(f-R.U/1E3);L=w.index.fL(q);q-=+(Math.abs(L-f)>R.U/1E3);f=q+R.J;w=w.index.fL(q)*1E3;c.GI=f;c.durationMs=w-c.startTimeMs;c.oI<=c.GI&&V.push(c)}Q<z?v+=1:r+=
1}R.jB=V}}};
xck=function(R){var F=[],n=[].concat(g.I(R.UU));R.jB.forEach(function(f){F.push(Object.assign({},f))});
for(var V=R.T,r=g.m(R.X.eq()),v=r.next();!v.done;v=r.next())V=KVf(R,F,n,v.value,V);F.forEach(function(f){f.startTimeMs&&(f.startTimeMs+=R.timestampOffset*1E3)});
return{jB:F,UU:n}};
IWN=function(R,F,n){return F.itag!==n.itag||F.xtags!==n.xtags?!1:R.X2.Zt||F.lmt===n.lmt};
ku9=function(R,F,n){if(R.logger){for(var V=[],r=0;r<F.length;r++){var v=F[r],f=void 0;if((f=v.P9)==null?0:f.startTicks){var z=f=void 0,q=void 0;V.push("i."+((f=v.formatId)==null?void 0:f.itag)+"_st."+(v.startTimeMs+"_psst.")+(((z=v.P9)==null?void 0:z.startTicks)+"_psd.")+((q=v.P9)==null?void 0:q.EC))}f=void 0;V.push("i."+((f=v.formatId)==null?void 0:f.itag)+"_st."+(v.startTimeMs+"_e."+(v.startTimeMs+v.durationMs)+"_d."+v.durationMs)+("_sn."+v.oI)+("_en."+v.GI))}R.logger({p:""+n,br:V.join(";")})}};
YlR=function(R){R.jB=[];R.UU=[];R.W.clear();R.T=-1;R.N=void 0};
wA=function(R,F,n,V,r){this.loader=R;this.X2=F;this.videoTrack=n;this.audioTrack=V;this.policy=r;this.seekCount=this.targetTime=0;this.J=!1;this.N=null;this.U=0;this.T=this.X2.isManifestless&&!this.X2.Kl};
JIk=function(R,F,n){if(!R.policy.Z){R=F.A1.index;var V=F.T.nH;R.Ap(V)||n&&n.nH===V?(F.J=!R.Ap(V),F.J1=!R.Ap(V)):(F.J=!0,F.J1=!0)}};
dcW=function(R){var F=Math.max(R.videoTrack.N.N||0,R.audioTrack.N.N||0);Gu_(R.videoTrack);Gu_(R.audioTrack);R.policy.Z||S86(R.X2);R.X2.isManifestless&&!R.policy.Z&&(R.T=!0,R.U=0);var n=R.loader;if(!n.policy.J1||n.policy.aG)n.currentTime=F;R.J=!0;R.N=new oi;return R.N};
NmW=function(R,F,n,V,r){if(!F.A1.o9()){if(!(r=n===0||!!F.U.length&&F.U[0]instanceof Sh))a:{if(F.U.length&&(r=F.U[0],r instanceof L0&&r.Bt&&r.K4)){r=!0;break a}r=!1}r||R.policy.T||sn(F);return n}var v=p0(F,n);if(!isNaN(v))return v;if(R.loader.Af(n*1E3))return n;r.Ho?R.policy.rR&&(R=X9(R.loader,F),Mi6(F.N,n+R,!0)):(F.L4(),R.loader.cY(!1,"sta_"+ +F.A1.info.cB()));return V&&(R=vz(V.TI(),n),!isNaN(R))?(Af(F,R+lWW,r),n):Af(F,n,r)};
$c9=function(R,F,n,V){if(R.policy.Z)!V||!R.T&&R.policy.on||g.mt(function(){al(R)});
else{if(R.isSeeking()&&R.targetTime){var r=EaW(R,F,n);if(r!==-1){R.videoTrack.J=!1;R.audioTrack.J=!1;R.T=!0;R.U=0;g.mt(function(){R.loader.m2("seekreason",{reason:"behindMinSq",tgt:r});C0(R,r)});
return}}n?R.videoTrack.J1=!1:R.audioTrack.J1=!1;var v=!R.T;p0(R.videoTrack,R.targetTime)>=0&&p0(R.audioTrack,R.targetTime)>=0&&v?((R.videoTrack.J||R.audioTrack.J)&&R.loader.m2("iterativeSeeking",{status:"done",count:R.seekCount}),R.videoTrack.J=!1,R.audioTrack.J=!1):V&&g.mt(function(){if(R.T||!R.policy.on)al(R);else{var f=F.startTime,z=F.duration;if(!R.policy.Z){var q=R.videoTrack.W!==-1&&R.audioTrack.W!==-1,Q=!R.videoTrack.J1&&!R.audioTrack.J1;(n?R.videoTrack.J:R.audioTrack.J)&&q&&Q&&(R.targetTime>=
f&&R.targetTime<f+z+.1?((n?R.videoTrack:R.audioTrack).J=!1,R.videoTrack.J||R.audioTrack.J||(R.loader.m2("iterativeSeeking",{status:"done",target:f,originalTime:f+R.loader.qC(),count:R.seekCount}),R.seekCount=0)):R.seekCount<8?(R.seekCount++,R.loader.m2("iterativeSeeking",{status:"inprogress",count:R.seekCount,target:R.targetTime,actual:f,duration:z,isVideo:n}),R.seek(R.targetTime,{})):(R.loader.m2("iterativeSeeking",{status:"incomplete",count:R.seekCount,target:R.targetTime,actual:f}),R.seekCount=
0,R.videoTrack.J=!1,R.audioTrack.J=!1,TH(R.loader,f+.1,{eP:!0,gW:"chunkSelectorSynchronizeMedia",c8:!0})))}}})}};
EaW=function(R,F,n){if(!R.isSeeking())return-1;n=(n?R.videoTrack:R.audioTrack).A1.index;var V=n.kc(R.targetTime);return(n.Ap(R.X2.bX)||F.nH===R.X2.bX)&&V<R.X2.bX?R.X2.RC():-1};
C0=function(R,F,n){R.T&&R.videoTrack.W!==-1&&R.audioTrack.W!==-1&&(R.T=!1,R.targetTime=F,TH(R.loader,F+.1,{eP:!0,gW:"chunkSelectorSynchronize",c8:!0,seekSource:n}))};
al=function(R){var F=R.videoTrack.W!==-1,n=R.audioTrack.W!==-1;if(!F||!n)if(F=!F&&ol(R.videoTrack),n=!n&&ol(R.audioTrack),F||n){n=F?R.videoTrack:R.audioTrack;F=F?R.audioTrack:R.videoTrack;n.W=ol(n).info.nH;if(R.policy.Z){var V;F.W=((V=ol(F))==null?void 0:V.info.nH)||F.W}if(F.W!==-1){var r=Math.max(F.A1.index.getStartTime(F.W),n.A1.index.getStartTime(n.W));Vg(R.X2)&&Math.abs(r-Vg(R.X2))>432E3&&sie(R.X2);R.U&&(r=R.U,R.U=0);g.mt(function(){R.policy.Z||C0(R,r,102)});
R.loader.m2("initManifestlessSync",{st:r,ost:r+R.loader.qC(),a:R.audioTrack.W,v:R.videoTrack.W});R.N&&(R.N.resolve(r+.1),R.N=null);R.policy.Z&&C0(R,r,102)}}};
Un=function(){this.data=new Uint8Array(2048);this.pos=0;yP||(yP=uA("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))};
H9=function(R,F){var n=this;this.vG=R;this.requestNumber=++P2W;this.T=this.now();this.V=this.UZ=NaN;this.X=this.T;this.N=this.HI=this.W=0;this.Z=this.T;this.h1=this.J1=this.Mq=this.pC=this.us=this.lS=this.U=this.J=0;this.Nq=this.isActive=!1;this.on=this.k5=0;this.hJ={tjQ:function(){return n.hG}};
this.AJ=F.AJ;this.snapshot=jh(this.AJ);this.policy=this.AJ.U;this.KQ=!!F.KQ;this.gI=F.gI;this.y5=F.y5||0;this.WB=F.WB||0;F.u2&&(this.PG=new Un);var V;this.hG=(V=F.hG)!=null?V:!1;this.KQ||bnN(this.AJ)};
Zn6=function(R){R.Mq=Math.max(R.Mq,R.W-R.us);R.J1=Math.max(R.J1,R.X-R.pC);R.lS=0};
hf=function(R,F,n){eP6(R.AJ,F);R.PG&&(R.PG.add(Math.ceil(F)-Math.ceil(R.X)),R.PG.add(Math.max(0,Math.ceil(n/1024)-Math.ceil(R.W/1024))));var V=F-R.X,r=n-R.W;R.HI=r;R.h1=Math.max(R.h1,r/(V+.01)*1E3);R.X=F;R.W=n;R.lS&&n>R.lS&&Zn6(R)};
RpE=function(R,F){R.url=F;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
W9=function(R,F){H9.call(this,R,F);this.aG=this.KC=!1;this.bS=this.jQ=Infinity;this.Y5=NaN;this.mQ=!1;this.uS=NaN;this.QZ=this.gX=this.dX=0;this.lF=F.lF||1;this.Au=F.Au||this.lF;this.pW=F.pW;this.nH=F.nH;this.m0=F.m0;FW_(this);this.Oi(this.T);this.YF=(this.uS-this.T)/1E3};
nTR=function(R){var F=R.gX||R.dX;return F?R.snapshot.delay+Math.min(R.WB,(R.V-R.UZ)/1E3)+F:R.YF};
B9=function(R,F,n){if(!R.KQ){F=Math.max(F,.01);var V=R.y5?Math.max(F,n/R.y5):F,r=R.AJ.U.N;r&&(V=F,R.y5&&(V=Math.max(F,n/R.y5*r)));uZ(R.AJ,F,n,V)}};
VoI=function(R){return(R.Z-R.T)/1E3};
FW_=function(R){R.Y5=R.T+R.snapshot.delay*1E3;R.mQ=!1};
mT=function(R,F){if(R.pW&&R.nH!==void 0&&R.m0!==void 0){var n=Math,V=n.min,r=R.jQ;var v=R.pW;var f=R.T;if(rde(v,R.nH))v=F;else{var z=0;v.A5&&(z=.2);v=f+(v.WB+z)*1E3}R.jQ=V.call(n,r,v);n=Math;V=n.min;r=R.bS;v=R.pW;f=R.T;z=vT_(v,R.nH,R.m0);z!==2&&(F=z?F:f+v.WB*1E3,v.A5&&(F+=v.WB*1E3));R.bS=V.call(n,r,F);R.jQ<=R.T?FW_(R):(R.Y5=R.jQ,R.mQ=!0)}};
fjj=function(R,F){if(F+1<=R.totalLength){var n=o7(R,F);n=n<128?1:n<192?2:n<224?3:n<240?4:5}else n=0;if(n<1||!(F+n<=R.totalLength))return[-1,F];if(n===1)R=o7(R,F++);else if(n===2)n=o7(R,F++),R=o7(R,F++),R=(n&63)+64*R;else if(n===3){n=o7(R,F++);var V=o7(R,F++);R=o7(R,F++);R=(n&31)+32*(V+256*R)}else if(n===4){n=o7(R,F++);V=o7(R,F++);var r=o7(R,F++);R=o7(R,F++);R=(n&15)+16*(V+256*(r+256*R))}else n=F+1,R.focus(n),a7(R,n,4)?R=OIf(R).getUint32(n-R.N,!0):(V=o7(R,n+2)+256*o7(R,n+3),R=o7(R,n)+256*(o7(R,n+1)+
256*V)),F+=5;return[R,F]};
gA=function(R){this.vG=R;this.T=new sE};
On=function(R,F){this.info=R;this.callback=F;this.state=1;this.HC=this.r5=!1;this.yG=null};
to_=function(R){return g.Iv(R.info.OZ,function(F){return F.type===3})};
Il=function(R,F,n,V){var r=this;V=V===void 0?{}:V;this.policy=F;this.vG=n;this.status=0;this.T=new sE;this.U=0;this.Zo=this.J=this.N=!1;this.xhr=new XMLHttpRequest;this.xhr.open(V.method||"GET",R);if(V.headers)for(R=V.headers,F=g.m(Object.keys(R)),n=F.next();!n.done;n=F.next())n=n.value,this.xhr.setRequestHeader(n,R[n]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return r.r0()};
this.xhr.onload=function(){return r.onDone()};
this.xhr.onerror=function(){return r.onError()};
this.xhr.fetch(function(v){r.T.append(v);r.U+=v.length;v=(0,g.h1)();r.vG.Sw(v,r.U)},function(){},V.body||null)};
zpv=function(R,F){this.U=(new TextEncoder).encode(R);this.T=(new TextEncoder).encode(F)};
Yfv=function(R,F){var n;return g.Y(function(V){if(!F)return V.return(F);n=new g.Se(R.U);return V.return(n.encrypt(F,R.T))})};
lqW=function(R,F){var n;return g.Y(function(V){if(V.T==1){if(!F)return V.return(F);n=new g.Se(R.U);return g.k(V,n.decrypt(F,R.T),2)}return V.return(V.U)})};
q1E=function(R,F){var n=this;this.T=R;this.vG=F;this.loaded=this.status=0;this.error="";R=td(this.T.get("range")||"");if(!R)throw Error("bad range");this.range=R;this.U=new sE;this.run().then(function(){n.vG.nx()},function(V){n.error=""+V||"unknown_err";
n.vG.nx()})};
cd9=function(R,F,n,V){var r=this;V=V===void 0?{}:V;this.policy=F;this.vG=n;this.Z=V;this.status=0;this.response=void 0;this.U=0;this.aborted=this.W=!1;this.errorMessage="";this.V=function(v){if(v)if(r.status=v.status,v.ok&&v.body&&r.status!==204)r.status=r.status||242,r.N=v.body.getReader(),r.Zo()?r.N.cancel().catch(function(){}):(r.responseHeaders=v.headers,r.vG.FD(),QRV(r));
else r.onDone();else r.onError(Error("null_response"))};
this.X=function(v){var f=(0,g.h1)();r.Zo()||(v.done?(r.N=void 0,r.onDone()):(v=v.value,r.U+=v.length,r.T.append(v),QRV(r),r.vG.Sw(f,r.U)))};
this.onError=function(v){r.errorMessage=String(v);r.W=!0;r.onDone()};
this.T=new sE;this.J=window.AbortController?new AbortController:void 0;this.start(R)};
QRV=function(R){R.N.read().then(R.X,R.onError).then(void 0,Be)};
w1I=function(R,F,n){var V=this;n=n===void 0?{}:n;this.vG=F;this.U=this.status=0;this.Zo=this.T=!1;this.xhr=new XMLHttpRequest;this.xhr.open(n.method||"GET",R);if(n.headers){R=n.headers;F=g.m(Object.keys(R));for(var r=F.next();!r.done;r=F.next())r=r.value,this.xhr.setRequestHeader(r,R[r])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(v){V.r0(v)};
R=pQ(function(v){V.onDone(v)});
this.xhr.addEventListener("load",R,!1);this.xhr.addEventListener("error",R,!1);n.body?this.xhr.send(n.body):this.xhr.send();this.xhr.addEventListener("progress",pQ(function(v){V.onProgress(v)}),!1)};
K0=function(R,F,n,V,r){if(Qf(25,R.qX))return new q1E(R,n);R=R.rD();return V?mQI()?new Il(R,F,n,r):new cd9(R,F,n,r):new w1I(R,n,r)};
D9=function(R,F){g.G.call(this);var n=this;this.policy=R;this.OZ=F;this.U=0;this.T=null;this.XG=[];this.N=null;this.hJ={o2:function(){return n.OZ}};
this.OZ.length===1||g.Iv(this.OZ,function(V){return!!V.range})};
iZ=function(R,F,n){R.T&&(pV(R.T,F),F=R.T,R.T=null);for(var V=0,r=0,v=g.m(R.OZ),f=v.next();!f.done;f=v.next())if(f=f.value,f.range&&V+f.U<=R.U)V+=f.U;else{if(c1(f)&&!n&&R.U+F.totalLength-r<V+f.U){R.T=F.split(r).l4;break}a:{var z=R;var q=f,Q=R.U-V,c=F.totalLength-r;q.range&&(c=Math.min(q.U-Q,c));q=rQE(q,q.T+Q,c,q.range?q.T+Q+c===q.range.length:!!n);Q=Xv(F,r,c);q=new gi(q,Q);if(z.policy.useUmp&&z.XG.length&&(Q=g.IR(z.XG[z.XG.length-1],q))){z.XG[z.XG.length-1]=Q;z=c;break a}z.XG.push(q);z=c}R.U+=z;r+=
z;V+=f.U;if(r===F.totalLength)break}};
xz=function(R,F,n,V,r,v,f,z,q){q=q===void 0?!1:q;g.G.call(this);this.vG=R;this.policy=F;this.bL=n;this.jn=V;this.timing=r;this.logger=v;this.J=f;this.eI=z;this.Z=q;this.lastError=null;this.T=0;this.W=!1;this.N=0;this.U=new g.ZK(this.jao,this.policy.Kk,this)};
S1V=function(R){R.jn.UZ=(0,g.h1)();R=kz(R);R.U=(0,g.h1)();R.started+=1};
p16=function(R,F,n,V){R.timing.oO((0,g.h1)(),F,n);F=R.jn;F.N=0;F.W=0;F.X=0;$a(kz(R));V&&(V=kz(R),V.N+=1);if((V=R.eI)!=null&&(R=R.bL.qX,!((0,g.h1)()<V.Z+3E5||Qf(56,R))&&(F=pW(13,R))&&LWN(F)&&V.U===Yz(F))){var r;re(10,R)&&(r=pW(13,pW(10,R)));g.i6("yt-player-bandaid-host",{primary:F,secondary:r},864E3);V.Z=(0,g.h1)();sRE(V,{primary:F,secondary:r})}};
Jf=function(R){if(R.lastError==="ump.spsrejectfailure")R.timing.Nq||NEe(R.jn,!1,R.bL,R.policy,R.J);else{if(R.lastError==="net.timeout")R.timing.mF((0,g.h1)());else{var F=R.timing;hf(F,(0,g.h1)(),F.W)}if(R.lastError==="net.nocontent")++R.jn.X;else{if((F=R.lastError==="net.timeout"||R.lastError==="net.connect"||R.lastError==="net.closed")&&!Qf(25,R.bL.qX)){var n=kz(R);n.timedOut+=1}else n=kz(R),n.T+=1;R.timing.Nq||NEe(R.jn,F,R.bL,R.policy,R.J)}}R.vG.nX(5)};
GH=function(R,F,n,V,r){return F>=400?(R.lastError="net.badstatus",!0):(r===void 0?0:r)?(R.lastError="ump.spsrejectfailure",!0):n||V!==void 0&&V?!1:(R.lastError=F===204?"net.nocontent":"net.connect",!0)};
dA=function(R,F){if(R.policy.ge)return!1;var n=F.getResponseHeader("content-type"),V=F.OO();R=!V||V<=R.policy.zD;return(!F.xp()||!n||n.indexOf("text/plain")!==-1)&&R};
X16=function(R,F){var n="";F=F.HQ();F.totalLength<=R.policy.zD&&(R=CV(F),R=UE(R),n=sR(R)?R:"");return n};
kz=function(R){return b2(R.J,pW(45,R.bL.qX))};
AdE=function(R){var F=R.timing.Ie();F.shost=pW(62,R.bL.qX);R.policy.H_&&R.policy.yJ&&(F.csrc=1);return F};
ajV=function(R,F){return(R==null?void 0:R.maxWidth)>(F==null?void 0:F.maxWidth)||(R==null?void 0:R.maxHeight)>(F==null?void 0:F.maxHeight)};
Cov=function(R,F){for(var n=g.m(F.keys()),V=n.next();!V.done;V=n.next())if(V=F.get(V.value),V.length!==0){g.p4(V,function(z,q){return q.maxFramerate-z.maxFramerate});
for(var r=[V[0]],v=0,f=1;f<V.length;f++)ajV(V[f],r[v])&&(r.push(V[f]),v++);R=R.concat(r)}return R};
oTf=function(R,F){var n=[];F=g.m(F);for(var V=F.next();!V.done;V=F.next()){V=V.value;var r=TiN[V]||0;R.T&&r>R.T||n.push(V)}return n};
MH=function(R,F,n){var V=ydk[R]||[];n.B("html5_shorts_onesie_mismatched_fix")&&(V=UdJ[R]||[]);F.push.apply(F,g.I(V));n.B("html5_early_media_for_drm")&&F.push.apply(F,g.I(jR_[R]||[]))};
mdR=function(R,F){var n=g.mJ(R),V=R.D(),r=V.W;V=V.B("html5_shorts_onesie_mismatched_fix");var v=R.X7();if(V){if(!r.T){if(v&&lZ)return lZ;if(NH)return NH}}else if(NH&&!r.T)return NH;var f=[],z=[],q={},Q=En.concat(Hg_);V&&(Q=En.concat(hpI));R.B("html5_early_media_for_drm")&&(Q=Q.concat(WWe),R.B("allow_vp9_1080p_mq_enc")&&Q.push(uQj));var c=[].concat(g.I(Bie));R.B("html5_iamf_audio_onesie_fmt")&&c.push(["773"]);Q=g.m(Q);for(var w=Q.next();!w.done;w=Q.next()){var L=!1;w=g.m(w.value);for(var S=w.next();!S.done;S=
w.next()){S=S.value;var p=WV(S,v&&V);if(p&&p.video&&!(lT(p)&&!n.PG&&p.video.qualityOrdinal>n.Fb)){var C=g.Vn(R.D().experiments,"html5_drm_byterate_soft_cap");C>0&&Brj(p)&&p.yz>C||(L?(f.push(S),MH(S,f,R)):(p=R0(n,p,r),p===!0?(L=!0,f.push(S),MH(S,f,R)):q[S]=p))}}}c=g.m(c);for(Q=c.next();!Q.done;Q=c.next())for(Q=g.m(Q.value),L=Q.next();!L.done;L=Q.next())if(L=L.value,(w=uBv(L))&&w.audio&&(R.B("html5_onesie_51_audio")||!NL(w)))if(w=R0(n,w,r),w===!0){z.push(L);MH(L,z,R);break}else q[L]=w;if(!R.B("html5_enable_audio_quality_setting"))for(R=
g.m(["141","774"]),c=R.next();!c.done;c=R.next())c=c.value,z.includes(c)&&(g.VK(z,c),q[c]="blkhqa");n.T&&F("orfmts",q);if(V)return r.T&&(r.T=!1,lZ=NH=void 0),v?lZ={video:f,audio:z}:NH={video:f,audio:z};NH={video:f,audio:z};r.T=!1;return NH};
g.Ijv=function(R,F,n){var V=n.W,r=[],v=[],f=n.B("html5_shorts_onesie_mismatched_fix");R=R.X7();var z=En.concat(Hg_);f&&(z=En.concat(hpI));n.B("html5_early_media_for_drm")&&(z=z.concat(WWe),n.B("allow_vp9_1080p_mq_enc")&&z.push(uQj));var q=[].concat(g.I(Bie));n.B("html5_iamf_audio_onesie_fmt")&&q.push(["773"]);z=g.m(z);for(var Q=z.next();!Q.done;Q=z.next()){Q=g.m(Q.value);for(var c=Q.next();!c.done;c=Q.next()){c=c.value;var w=WV(c,R&&f);if(w&&w.video){var L=g.Vn(n.experiments,"html5_drm_byterate_soft_cap");
if(!(L>0&&Brj(w)&&w.yz>L)&&R0(F,w,V)===!0){r.push({videoCodec:gTJ[YQ[c]],maxWidth:w.video.width,maxHeight:w.video.height,maxFramerate:w.video.fps});break}}}}f=g.m(q);for(R=f.next();!R.done;R=f.next())for(R=g.m(R.value),q=R.next();!q.done;q=R.next())if(q=q.value,(z=uBv(q))&&z.audio&&(n.B("html5_onesie_51_audio")||!NL(z))&&R0(F,z,V)===!0){v.push({audioCodec:OgN[YQ[q]],numChannels:z.audio.numChannels});break}return{videoFormatCapabilities:r,audioFormatCapabilities:v}};
igW=function(R){var F,n={},V=R.TH,r=R.Qz,v=R.AJ,f=V.getVideoData(),z=OT(0),q=V.getVisibilityState();r.B("html5_enable_audio_quality_setting")&&(n.hs=r.hs);z&&(n.WQo=z,n.lastManualDirection=KO_(),z=ySj()||0,z>0&&(z=(r.B("html5_use_date_now_for_local_storage")?Date.now():(0,g.h1)())-z,r.B("html5_use_date_now_for_local_storage")?z>0&&(n.timeSinceLastManualFormatSelectionMs=z):n.timeSinceLastManualFormatSelectionMs=z));z=r.B("html5_use_streamer_bandwidth_for_low_latency_live")&&f.isLowLatencyLiveStream;
if((v.Nq||r.B("html5_sabr_ugc_vod_web_embedded_client_default_bandwidth_on_iphone")&&FA)&&!z){var Q;z=r.B("html5_disable_bandwidth_cofactors_for_sabr_live")?!((Q=R.gD)==null||!Q.Zl):!1;n.dc=tf(v,!z)}z=g.g8.medium;var c=Math.floor(z*16/9);(Q=f.X7())||(f.T&&f.N&&f.N.videoInfos.length!==0?(Q=f.N.videoInfos[0],Q=!!Q.video&&Q.video.width<Q.video.height):Q=!1);var w=Q;Q=w?z:c;c=w?c:z;w=V.KJ();z=w.width;w=w.height;n.W0=Math.max(z,Q);n.QA=Math.max(w,c);r.B("html5_enable_client_viewport_size_logging")&&r.CC()&&
(Q=V.ZZ(),V.m2("cvw",{w:z,h:w,cvw:n.W0,cvh:n.QA,cvu:Q.T}));n.visibility=q;n.w6H=aS();n.qW=V.HE()*1E3;q=R.TH.SZ();var L,S,p,C,y;n.imX={defaultPolicy:(q==null?void 0:(F=q.CN)==null?void 0:F.T)||0,smooth:(q==null?void 0:(L=q.Jy)==null?void 0:L.T)||0,visibility:(q==null?void 0:(S=q.zw)==null?void 0:S.T)||0,xv:(q==null?void 0:(p=q.Rc)==null?void 0:p.T)||0,performance:(q==null?void 0:(C=q.Rp)==null?void 0:C.T)||0,speed:(q==null?void 0:(y=q.jA)==null?void 0:y.T)||0};var u;n.pt5=(q==null?void 0:(u=q.FB)==
null?void 0:u.T)||0;F=f.fetchType==="onesie"||f.Ab?[{trackType:1,isHdr:!1},{trackType:2,isHdr:!1},{trackType:2,isHdr:!0},{trackType:3,isHdr:!1},{trackType:3,isHdr:!0},{trackType:4,isHdr:!1},{trackType:4,isHdr:!0},{trackType:5,isHdr:!1},{trackType:5,isHdr:!0}]:[{trackType:1,isHdr:!1},{trackType:2,isHdr:!1},{trackType:2,isHdr:!0}];n.Ur=R.authorizedFormats&&R.authorizedFormats.length>0?{authorizedFormats:R.authorizedFormats}:{authorizedFormats:F};R.sabrLicenseConstraint&&(n.Ur.sabrLicenseConstraint=
R.sabrLicenseConstraint);if(r.B("html5_onesie_media_capabilities")||G7(f))n.di=3;r.B("html5_onesie_audio_only_playback")&&Wh(f)&&(n.di=1);var B;((B=R.gD)==null?0:B.uZ)&&R.y12&&(n.di=n.di===void 0?7:n.di|4);B=f.uS?f.uS:g.mJ(f);r.B("html5_onesie_media_capabilities")&&(n.mediaCapabilities=g.Ijv(f,B,r));var O;if((O=R.gD)==null?0:$z(O)){var K;O=R.Um;F=R.T3;L=(K=R.gD)==null?void 0:K.yz;K=[];S=[];p=new Map;C=g.m(f.u_.T.values());for(y=C.next();!y.done;y=C.next())if(y=y.value,y.cB)S.push({audioCodec:OgN[y.x5],
numChannels:y.numChannels,spatialCapabilityBitmask:KWE[y.x5]});else{u=gTJ[y.x5];q=y.maxBitrateBps||0;Q=L?L*8:0;q={videoCodec:u,maxWidth:F?854:y.maxWidth||0,maxHeight:F?480:y.maxHeight||0,maxFramerate:y.maxFramerate||0,is10BitSupported:y.H4||!1,maxBitrateBps:Q&&q?Math.min(Q,q):Q||q};if(y.x5==="1"||y.x5==="9")q.efficient=!0;y=u+"_"+y.H4;u=p.get(y)||[];u.push(q);p.set(y,u)}K=Cov(K,p);O=O?[].concat(g.I(O)):[];f.B("html5_ssff_denylist_opus_low")&&O.push(249,350);g.mJ(f);n.mediaCapabilities={videoFormatCapabilities:K,
audioFormatCapabilities:S,hdrModeBitmask:3,perPlaybackAttributes:O.length?{itagDenylist:O}:{}}}var M;if((M=R.gD)==null?0:M.T){n.Yr=B.Yr;var J;n.Fb=(J=R.gD)==null?void 0:J.Fb}r.h7&&(n.I0=r.h7);n.nF=R.SD;n.wM=R.wM;n.Pd=R.Pd;n.oe=R.oe;R.zL&&(n.PIG=(0,g.h1)()-R.zL);R.t8&&(n.t8=R.t8);s6||(n.us2=!0);M=v9(v)*1E3;M>0&&(n.o0=M);var b;((b=R.gD)==null?0:b.aD)&&R.jI&&R.jI<Infinity&&(n.jI=R.jI);V=V.getPlaybackRate();V!==1&&(n.playbackRate=V);var RJ;((RJ=R.gD)==null?0:RJ.Yy)&&R.NE&&(n.GR=R.GR,n.j5=R.j5,n.NE=R.NE);
I4()===1&&(n.FQH=1);r.B("html5_sabr_force_proxima")&&(n.ltH=1);RJ=g.Vn(r.experiments,"html5_sabr_force_max_network_interruption_duration_ms");n.vFG=RJ>0?RJ:v.interruptions[0]||0;var Fj;if((Fj=R.gD)==null?0:Fj.HI)n.Ok=R.Ok;r.uS&&(n.audioTrackId=r.uS);wZ(f)&&!n.audioTrackId&&(r.B("html5_fill_default_mosaic_audio_track_id")||(R=F$9(f),n.audioTrackId=R),f==null||f.m2("misstrkchg",{"default":n.audioTrackId}));if(R=p5R())n.detailedNetworkType=DdI[R]||DdI.other;!r.B("html5_enable_voice_boost")||f.X7()||
f.isAd()||(n.EwH=r.L7);return n};
P9=function(R,F,n,V,r,v,f){var z={};F&&(z.RM=F);if(!R)return z;z.playbackCookie=n==null?void 0:n.playbackCookie;r&&(z.UH=r);z.LG=[];z.y9=[];if(f==null?0:f.size)for(F=g.m(f.values()),n=F.next();!n.done;n=F.next())z.y9.push(n.value);if(R.sabrContextUpdates.size>0)for(F=g.m(R.sabrContextUpdates.values()),n=F.next();!n.done;n=F.next())xdj(z,n.value,V);MA(R)&&v&&xdj(z,v,V);V=R.D().T;z.clientInfo={clientName:kPe[V.c.toUpperCase()]||0};V.cbrand&&(z.clientInfo.deviceMake=V.cbrand);V.cmodel&&(z.clientInfo.deviceModel=
V.cmodel);V.cver&&(z.clientInfo.clientVersion=V.cver);V.cos&&(z.clientInfo.osName=V.cos);V.cosver&&(z.clientInfo.osVersion=V.cosver);V=R.D();V.B("html5_sabr_enable_server_xtag_selection")&&V.HT&&(z.clientInfo.hl=V.HT);R.xr&&(z.xr=R.xr);return z};
xdj=function(R,F,n){var V=F.type||0;(n==null?0:n.has(V))?R.y9.push(F):R.LG.push(V)};
L0=function(R,F,n,V,r,v){var f=v===void 0?{}:v;var z=f.E1===void 0?[]:f.E1;var q=f.AL===void 0?!1:f.AL;var Q=f.h3===void 0?0:f.h3;var c=f.poToken===void 0?"":f.poToken;var w=f.eI===void 0?void 0:f.eI;var L=f.o4===void 0?"":f.o4;var S=f.Bt===void 0?0:f.Bt;var p=f.K4===void 0?new Uint8Array(0):f.K4;var C=f.Jt===void 0?!1:f.Jt;v=f.RY===void 0?0:f.RY;f=f.RM===void 0?void 0:f.RM;On.call(this,F,r);var y=this;this.policy=R;this.logger=new g.B1("dash/request");this.TO=this.zt=0;this.HN=!1;this.f2=this.IY=
null;this.Ni=!1;this.K4=this.Bt=null;this.B3=this.yF=!1;this.WL=null;this.RY=this.ag=0;this.Li=!1;this.hJ={nX:function(B){y.nX(B)},
fwz:function(){return y.yG},
Yk2:function(B){y.yG=B},
naz:function(B){y.zt=B},
Mfq:function(B){y.bZ.lastError=B},
Bz:function(){return y.xhr}};
this.timing=new W9(this,n);this.AL=q;this.Bt=S;this.K4=p;this.bL=g.Cg(this.info,this.policy,V);this.bL.set("rn",this.M6().toString());this.bL.set("rbuf",(Q*1E3).toFixed().toString());this.AL&&this.bL.set("smb","1");this.policy.Vn&&c&&this.bL.set("pot",c);L&&this.bL.set("bbs",L);this.policy.useUmp&&!Qf(56,this.bL.qX)&&(this.K2=new gA(this),this.bL.set("ump","1"),this.bL.set("srfvp","1"));if(R=this.policy.R2?this.policy.s3&&!isNaN(this.info.m0)&&this.info.m0>this.policy.Tb?!1:!0:!1)F=null,this.policy.jc&&
this.policy.aI?F=[1]:C&&(F=[]),F!=null&&(this.policy.TC&&F.push(2),this.bL.set("defsel",F.join(",")));this.bZ=new xz(this,this.policy,this.bL,this.info.jn,this.timing,this.logger,V,w);this.E1=z||null;this.HC=Y1E(this);S1V(this.bZ);V=void 0;if(this.policy.Om5||this.K2||this.policy.gX)V={method:"POST"},z=(0,g.bZ)([120,0]),w={},f&&(f=P9(void 0,f),w.s5=f),this.policy.sH&&this.K4&&(w.videoPlaybackUstreamerConfig=this.K4),this.policy.gX&&(f=this.info.J)&&Object.assign(w,f),Object.keys(w).length>0?V.body=
g.Pu(w,g.WH):V.body=z;if(this.Bt&&this.K4){this.bL.set("iwts","1");V={method:"POST"};f={oe:this.Bt*1E3};var u;z=(u=this.info.J)==null?void 0:u.Xd;u=g.Pu({Qm:f,Xd:z||void 0,videoPlaybackUstreamerConfig:this.K4},g.WH);V.body=u}try{this.xhr=K0(this.bL,this.policy.V,this.timing,R,V),this.bZ.U.start(),v&&(this.Jn=new g.ZK(this.Zi,v,this),this.Jn.start(v+(this.timing.AJ.V.Cm()||0)*1E3)),g.mt(function(){})}catch(B){Jdk(this,B,!0)}};
Y1E=function(R){if(!(aR(R.info)&&R.info.hG()&&R.policy.FG&&R.E1)||R.info.jn.N>=2||OT()>0||!kAe())return!1;var F=R.bL.get("aitags");if(!F)return!1;F=Ej(F).split(",");for(var n=[],V=g.m(R.E1),r=V.next();!r.done;r=V.next())r=r.value,g.Rz(F,r)&&n.push(r);if(!n.length)return!1;R.bL.set("altitags",g.N3(n.join(",")));return!0};
Jdk=function(R,F,n){n=n===void 0?!1:n;g.uX(F);R.bZ.lastError="player.exception";R.errorMessage=F.name+"_"+F.message;n?g.mt(function(){Jf(R.bZ)}):Jf(R.bZ)};
GPV=function(R,F){R.timing.Nq=!0;R.xhr.xp()&&R.timing.M0();if(R.policy.HT){var n;(n=R.Jn)==null||n.stop()}iZ(R.yG,F,!1)};
ddI=function(R){R.ag&&(R.xhr.status=R.ag,R.zt=R.ag)};
Z9=function(R,F){H9.call(this,R,F);this.bS=!0;this.jQ=!1;this.gX=this.Y5=0;this.dX=NaN};
MoV=function(R,F,n){var V=R.y5?Math.max(F,n/R.y5):F,r=R.AJ.U.N;r&&(V=F,R.y5&&(V=Math.max(F,n/R.y5*r)));uZ(R.AJ,F,n,V)};
eh=function(R,F){this.vG=F;this.U={};this.logger=new g.B1(R)};
Rs=function(R){eh.call(this,"sabr",R);this.vG=R;this.T=[]};
ljj=function(R,F,n){switch(F){case 35:R.fQ(n);break;case 44:R.rM(n);break;case 43:R.EP(n);break;case 53:R.x7(n);break;case 56:R.Sb();break;case 57:R.MO(n);break;case 42:R.Y7(n);break;case 45:R.kE(n);break;case 59:R.qJ(n);break;case 51:R.Hd(n);break;case 49:R.RZ(n);break;case 50:R.IZ(n);break;case 47:R.Vq(n);break;case 58:R.Ps(n);break;case 61:R.vG.Ul.l1((0,g.h1)());break;case 66:R.dY(n);break;case 46:R.DQ(n);break;case 67:R.onSnackbarMessage(n);break;case 71:F=JT(n,azJ),R.vG.Yg(F)}};
FW=function(R){g.G.call(this);this.J=R;this.logger=new g.B1("onesie");this.vT=new Map;this.U=this.T=!1;this.gD=this.X2=null;this.N=!1};
NiI=function(R,F,n){R.vT.get(F).onProgress=n};
rj=function(R,F){R.vT.has(F)&&(nm?R.vT.get(F).e7.clear():R.vT.get(F).XG=new sE,Vy(R,F),R.U=!0)};
ETf=function(R){for(var F=g.m(R.vT),n=F.next();!n.done;n=F.next()){var V=g.m(n.value);n=V.next().value;V=V.next().value;V.hh||rj(R,n)}};
$dN=function(R,F){F=R.vT.get(F);if(!F)return 0;R=0;if(F.OZ.length>0){F=g.m(F.OZ);for(var n=F.next();!n.done;n=F.next()){var V=void 0;R+=((V=n.value.range)==null?void 0:V.length)||0}return R}if(F.F3.length>0)for(n=g.m(F.F3),V=n.next();!V.done;V=n.next())R+=V.value.Og||0;return R+F.Bb};
vs=function(R,F){if(nm){var n=0;R=R.vT.get(F);if(R==null||!R.e7)return 0;R=g.m(R.e7.values());for(F=R.next();!F.done;F=R.next())n+=F.value.data.totalLength;return n}return((n=R.vT.get(F))==null?void 0:n.XG.totalLength)||0};
fm=function(R,F){R=R.vT.get(F);if(nm){if(R==null||!R.hh)return!1;F=R.e7.size>0;return R.Up.length>0||F}return!(R==null||!R.hh)&&!(R==null||!R.XG.totalLength)};
Poj=function(R,F){var n=R.vT.get(F),V=$dN(R,F),r=!V&&!!n.bytesReceived;if(nm){var v;if((v=R.X2)==null?0:v.Zt){R=g.m(n.e7.values());for(F=R.next();!F.done;F=R.next())if(!F.value.SP)return!1;return r}}else if(v=R.Ci(F),r&&R.T&&v!==void 0)return v;return(r||n.bytesReceived===V)&&n.iO+vs(R,F)===n.bytesReceived};
bg6=function(R,F,n,V){n.OZ.push.apply(n.OZ,g.I(V));if(nm){n.mj.has(F)||n.mj.set(F,[]);var r;(r=n.mj.get(F)).push.apply(r,g.I(V))}else if(n.yG)for(R=g.m(V),F=R.next();!F.done;F=R.next())n.yG.OZ.push(F.value);else{n.yG=new D9(R.gD,[].concat(g.I(n.OZ)));var v;((v=R.gD)==null?0:v.g4)&&g.d(R,n.yG)}};
ZgV=function(R,F,n){var V,r=(V=R.X2)==null?void 0:V.N.get(F);if(!r)return[];if(n.lG){var v;return((v=r.bK(0,n.clipId))==null?void 0:v.OZ)||[]}if(r.kC()){var f=n.startMs,z=n.durationMs;V=1E3;var q;if(((q=R.gD)==null?0:q.T)&&n.timeRange){var Q;f=(Q=n.timeRange.startTicks)!=null?Q:-1;var c;z=(c=n.timeRange.EC)!=null?c:-1;var w;V=(w=n.timeRange.timescale)!=null?w:-1}if(n.sT<0||n.QB<0||z<0||f<0||n.Og<0||V<0)return rj(R,F),[];R=zP(n.sT,n.Og);F=n.Jq||0;return[new QR(3,r,R,"makeSliceInfosMediaBytes",n.QB-
1,f/V,z/V,F,R.length-F,void 0,n.VN,n.clipId)]}if(n.QB<0)return rj(R,F),[];var L;return((L=R.X2)==null?0:L.Zt)?(F=r.L6,q=F*r.info.yz,Q=n.Jq,((f=R.gD)==null?0:f.T)&&R.J.oJ()!=="ONESIE"&&n.timeRange&&!Q&&(z=n.timeRange.startTicks/n.timeRange.timescale),[new QR(3,r,void 0,"makeSliceInfosMediaBytes",n.QB,z,F,Q,q,!0,n.VN,n.clipId)]):[]};
ep_=function(R,F,n){R.X2=F;R.gD=n;F=g.m(R.vT);for(n=F.next();!n.done;n=F.next()){var V=g.m(n.value);n=V.next().value;V=V.next().value;for(var r=g.m(V.BP),v=r.next();!v.done;v=r.next()){v=v.value;var f=ZgV(R,n,v);bg6(R,v.QJ,V,f)}}};
tZ=function(R,F,n,V){(R=R.vT.get(n))&&!R.D7&&(nm?(R.e7.has(F)||R.e7.set(F,{data:new sE,Qj:0,SP:!1}),pV(R.e7.get(F).data,V)):pV(R.XG,V),R.bytesReceived+=V.totalLength,R.v9=!0)};
Vy=function(R,F){if((F=R.vT.get(F))&&!F.D7){F.D7=!0;if(F.onProgress)F.onProgress();a:{F=g.m(R.vT.values());for(var n=F.next();!n.done;n=F.next())if(!n.value.D7){F=!1;break a}F=!0}F&&R.J.Gx()}};
RRe=function(R){nm=R};
zB=function(R,F,n,V,r,v,f){g.G.call(this);this.policy=R;this.info=F;this.X2=n;this.vG=r;this.logger=new g.B1("sabr");this.K2=new gA(this);this.l5=new Rs(this);this.VG=new FW(this);this.state=1;this.DE=!1;this.pF=0;this.clipId="";this.sS=-1;this.tI=0;this.Ub=-1;this.j3=this.H0=this.Li=this.YA=!1;this.policy.Vy?this.Ul=new Z9(this,v):this.Ul=new W9(this,v);this.bL=this.policy.HI?F.S4:Fjf(F,this.policy,V);this.bL.set("rn",""+this.M6());this.bL.set("alr","yes");ep_(this.VG,n,R);this.bZ=new xz(this,this.policy,
this.bL,F.jn,this.Ul,this.logger,V,f,this.policy.enableServerDrivenRequestCancellation);S1V(this.bZ);var z;if((z=this.policy)==null?0:z.g4)g.d(this,this.VG),g.d(this,this.bZ);R=F.U;F={method:"POST",body:R};R&&(this.tI=R.length);try{this.xhr=K0(this.bL,this.policy.V,this.Ul,s6,F),this.bZ.U.start()}catch(q){g.mq(q)}};
n09=function(R){R.policy.Nr&&R.Cn&&!R.H0?R.H0=!0:R.Ul.M0()};
VUI=function(R,F){var n=-1,V=-1,r=-1,v;if((v=R.Ei)==null?0:v.items)for(R=g.m(R.Ei.items),v=R.next();!v.done;v=R.next())v=v.value,F<v.EA||v.EA<n||(n=v.EA,V=v.uV,r=v.minReadaheadMs);return{Qn2:n,uV:V,yb:r}};
rWI=function(R){return R.sA()&&!R.j3};
v0N=function(R){this.T=R;this.UZ=this.Y5=this.X=this.Mq=this.J=this.W=this.Nq=this.Z=this.PG=this.V=this.bS=this.jQ=this.lS=this.J1=0;this.ticks={}};
qk=function(R){R.J1||(R.J1=(0,g.h1)(),g.Jz("mb_s",R.J1,R.T))};
f0V=function(R){R.lS||(R.lS=(0,g.h1)(),g.Jz("ovfs_rp",R.lS,R.T))};
tUj=function(R){R.jQ||(R.jQ=(0,g.h1)(),g.Jz("oafs_rp",R.jQ,R.T))};
zRN=function(R,F,n){var V=F instanceof zB&&!R.N&&!R.U,r=!R.N&&(n==null?void 0:n.info.video);n=!R.U&&(n==null?void 0:n.info.audio);F.state===3?((r||V)&&R.tick("vrr"),(n||V)&&R.tick("arr")):F.state===4?r?(R.N=F.rD(),g.n3(),rS(4)):n&&(R.U=F.rD()):F instanceof L0&&F.r6()&&r&&(g.n3(),rS(4))};
Qy=function(R,F,n,V,r,v){g.fG.call(this);var f=this;this.loader=R;this.X2=F;this.policy=n;this.videoTrack=V;this.audioTrack=r;this.UZ=this.T=null;this.W=this.Z=NaN;this.X=0;this.V=NaN;this.vI=null;this.jQ=this.J1=NaN;this.lS=new Map;this.Nq=this.N=this.J=NaN;this.hJ={poq:function(){return f.U}};
this.U=v?1:0};
Qck=function(R,F,n,V){V=V===void 0?!0:V;if(!R.policy.RV){if(n&&!R.lS.has(F.nH)){for(var r=F.startTime,v=[],f=0;f<n.T.length;f++){var z=n.T[f],q=r;r=q+n.U[f];v.push({startTime:q,endTime:r,adCpn:z})}R.lS.set(F.nH,v)}if(R.policy.Ru)if(r=R.UZ&&F.nH===R.UZ.nH+1,R.UZ=F,v=R.T&&F.nH===R.T.nH+1,v=R.T&&r&&v&&R.T.J0.event!=="stop"&&R.T.J0.event!=="predictStart",f=F.J0||null,z=R.videoTrack.A1.index.VZ(),z=F.nH>=z,q=R.X2.isManifestless,f){var Q;if(((Q=R.T)==null?void 0:Q.J0.event)==="predictStart"&&R.T.nH<F.nH&&
f.event==="stop"){var c;R.loader.handleError("ssdai.missingstartcueevent",{lastpredict:((c=R.T)==null?void 0:c.nH)||0,csq:F.nH},0)}R.T={J0:f,nH:F.nH,zo:!!n,EY:V};z?cs(R,f,F.nH):q&&(r?v?cs(R,f,F.nH):f.event==="continue"||f.event==="stop"?qV_(R,F):cs(R,f,F.nH):cs(R,f,F.nH))}else v&&qV_(R,F),R.U===4&&wj(R,5,"qend")}};
cs=function(R,F,n){F.startSecs+=isNaN(R.X)?0:R.X;LZk(R.X2,F,n)};
wpN=function(R,F,n){if(R.U!==0&&n&&F.OZ[0].EY()){var V=F.OZ[0].nH,r=F.OZ[0].J;F=F.isDecorated();cWf(R,V,r,F,n)}};
cWf=function(R,F,n,V,r){var v;F!==((v=R.T)==null?void 0:v.nH)||R.U===1||V||R.T.J0.event==="predictStart"||R.m2("sdai",{undecevt:1,sq:F,mt:n,evt:R.T.J0.event},!0);F>R.W&&(R.W=NaN,R.Z=NaN);if(R.T&&R.T.nH===F){if(V=R.T,!R.policy.W||!R.policy.U)if(r&&V){var f=V.J0;v=r.Q_(f);f.event==="predictStart"&&(R.Nq=F);R.m2("sdai",{onqevt:f.event,sq:F,mt:n,gab:v,cst:f.startSecs,cueid:R.policy.eH&&(v||f.event==="start")?f.identifier:void 0},!0);if(v)if(f.event!=="predictStart")f.event==="start"&&R.Nq===F-1&&R.m2("sdai",
{gabonstart:F}),V.zo?wj(R,4,"cue"):(R.W=F,R.Z=n,R.m2("sdai",{joinad:R.U,sg:R.W,st:R.Z.toFixed(3)}),R.V=Date.now(),wj(R,2,R.U===3?"staftpred":"join"),SVN(r,V.J0));else{var z=LjE(R);F+=Math.max(Math.ceil(-f.T/z),1);f=Math.floor(n-f.T/1E3);R.policy.U?R.N=f:R.J=F;R.m2("sdai",{onpred:n,estsq:F,estmt:f.toFixed(3)});SF(R.loader,f,f,F,z);R.V=Date.now();wj(R,3,"predict");SVN(r,V.J0)}else R.U===1?((z=R.vI)==null?0:z.xK?0:Lm(z,n))?(SF(R.loader,n,n,F),wj(R,4,"sk2head")):wj(R,5,"nogab"):f.event==="predictStart"&&
(R.policy.U&&R.N>0?(n=Math.floor(n-f.T/1E3),R.N!==n&&R.m2("sdai",{updateSt:n,old:R.N}),R.N=n):R.J>0&&(n=F+Math.max(Math.ceil(-f.T/LjE(R)),1),R.J!==n&&(R.m2("sdai",{updateSt:n,old:R.J}),R.J=n)))}else R.m2("sdai",{nulldec:1,sq:F,mt:n.toFixed(3),evt:(V==null?void 0:(f=V.J0)==null?void 0:f.event)||"none"})}else R.U===1&&wj(R,5,"noad")};
ppI=function(R,F,n){if(R.policy.Mq?0:R.U===1||R.U===2)return!1;if(R.U!==0&&F===R.audioTrack){if(R.policy.U)return scf(R.videoTrack,n)||scf(R.videoTrack,n+1);R=sC(R.videoTrack);if(n>(R?R.nH:-1))return!1}return!0};
pm=function(R,F,n){return(n<0||n===R.W)&&!isNaN(R.Z)?R.Z:F};
LjE=function(R){switch(R.policy.latencyClass){case "LOW":return 2E3;case "ULTRALOW":return 1E3;default:return 5E3}};
qV_=function(R,F){if(R.T){var n=R.T.J0.FP-(F.startTime+R.X-R.T.J0.startSecs);n<=0||(n=new AI(R.T.J0.startSecs-(isNaN(R.X)?0:R.X),n,R.T.J0.context,R.T.J0.identifier,"stop",R.T.J0.T+F.duration*1E3),R.m2("cuepointdiscontinuity",{segNum:F.nH}),cs(R,n,F.nH))}};
wj=function(R,F,n){R.U!==F&&(R.m2("sdai",{setsst:F,old:R.U,r:n}),R.U=F)};
XW=function(R,F,n,V){(V===void 0?0:V)?wj(R,1,"seek"):F>0&&Math.abs(F-n)>=5&&R.U===4&&wj(R,5,"sk2t")};
Xpj=function(R,F,n,V){var r=this;this.policy=R;this.m2=F;this.X=n;this.T=V;this.J=void 0;this.U=new Set;this.Z=-1;this.N=0;this.W=!1;this.hJ={AQ1:function(){return r.U}}};
a0R=function(R,F){var n,V=-(((n=F.J0)==null?void 0:n.ih)||0);F.timeRange&&(V+=(F.timeRange.startTicks||0)/(F.timeRange.timescale||1));var r,v,f,z,q;return new AI(V,((r=F.J0)==null?void 0:r.K8Z)||0,((v=F.J0)==null?void 0:v.z4)||"",((f=F.J0)==null?void 0:f.identifier)||"",AWj((z=F.J0)==null?void 0:z.event),(((q=F.J0)==null?void 0:q.ih)||0)*1E3,R.policy.Cf?F.tileContext:void 0)};
AZ=function(R,F){return F?R.policy.Cf&&F.tileContext?F.identifier+";"+F.tileContext:F.identifier:""};
Cik=function(R,F){for(var n="",V=[],r=g.m(R.T.entries()),v=r.next();!v.done;v=r.next()){var f=g.m(v.value);v=f.next().value;f=f.next().value;var z=void 0,q=void 0,Q=void 0;((z=f)==null?void 0:z.startTimeSecs)<=F&&F<=((q=f)==null?void 0:q.startTimeSecs)+((Q=f)==null?void 0:Q.FP)&&V.push(v);q=z=void 0;n+=v+":"+((z=f)==null?void 0:z.startTimeSecs.toFixed(3))+":"+((q=f)==null?void 0:q.FP.toFixed(3))+";"}V.length===0&&R.m2("clsdai",{no_cid:1,mt:F.toFixed(3),adConfigMap:n.substring(0,1024)});return V};
AWj=function(R){if(!R)return"unknown";switch(R){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}};
T3j=function(R){switch(R){case 1:return"timeout";case 2:return"ratecontrol";case 3:return"sverr";case 4:return"deleted";case 5:return"waiting";case 6:return"ready";case 7:return"ssdisabled";default:return"unknown"}};
as=function(R,F,n){this.audio=R;this.video=F;this.reason=n};
Cm=function(R,F,n,V){this.T=R;this.reason=F;this.source=n;this.token=V};
TB=function(R,F,n){g.G.call(this);this.policy=R;this.J=F;this.m2=n;this.N=new Map;this.W=0;this.Z=!1;this.T="";this.U=!1};
os=function(R,F,n){if(n===void 0?0:n)R.Z=!0;++R.W;n=6E4*Math.pow(2,R.W);n=(0,g.h1)()+n;R.N.set(F.info.id,n)};
yy=function(R){for(var F=g.m(R.N.entries()),n=F.next();!n.done;n=F.next()){var V=g.m(n.value);n=V.next().value;V=V.next().value;V<(0,g.h1)()&&R.N.delete(n)}return R.N};
UC=function(R,F){R.T!==F&&(R.T=F,R.U=!0)};
o0v=function(R,F){var n;F&&(n=g.$$(R.J.T,function(r){return r.id===F}));
if(!n&&(n=g.$$(R.J.T,function(r){var v;return!((v=r.z9)==null||!v.isDefault)}),F)){var V;
R.m2("iaf",{id:F,sid:(V=n)==null?void 0:V.id})}return n};
jF=function(R){this.T=this.U=0;this.alpha=Math.exp(Math.log(.5)/R)};
hZ=function(R,F,n,V,r,v){var f=this;v=v===void 0?[]:v;this.loader=R;this.jQ=F;this.policy=n;this.X2=V;this.Z=r;this.h1=v;this.logger=new g.B1("dash/abr");this.T=LM;this.N=this.X=null;this.UZ=-1;this.bS=!1;this.nextVideo=this.U=null;this.J=[];this.gX=new Set;this.Mq={};this.uS=new jF(1);this.V=0;this.dX=this.J1=this.Nq=!1;this.lS=0;this.SQ=!1;this.PG=new Set;this.Y5=!1;this.hJ={qN:function(){Hs(f)}};
this.W=new TB(this.policy,r,function(z,q){f.loader.m2(z,q)})};
hRf=function(R,F,n){Ws(R,F);F=o0v(R.W,n);n||F||(F=yWV(R));F=F||R.Z.T[0];R.U=R.X2.T[F.id];Hs(R);R.X=R.U;UrR(R);jcv(R);R.N=R.nextVideo;R.X=R.U;return Hpv(R)};
uaE=function(R,F){if(Wj_(R,F))return null;if(F.reason==="m"&&F.isLocked())return Ws(R,F),R.V=R.J.length-1,Hs(R),uG(R),R.J1=R.J1||R.N!==R.nextVideo,R.N=R.nextVideo,new as(R.U,R.N,F.reason);F.reason==="r"&&(R.UZ=-1);Ws(R,F);uG(R);if(F.reason==="r"&&R.nextVideo===R.N)return new as(R.U,R.nextVideo,F.reason);R.N&&R.nextVideo&&Bs(R,R.N.info)<Bs(R,R.nextVideo.info)&&(F=R.T.reason,R.Nq=R.Nq||F==="r"||F==="u"||F==="v");return null};
B39=function(R,F){if(F.info.video){if(R.N!==F)return R.N=F,Hpv(R)}else R.dX=R.X!==F,R.X=F;return null};
mrf=function(R,F){if(F.A1.info.video&&F.N){var n=(F.T+F.U)/F.duration,V=F.A1.info.yz;n&&V&&(R.uS.Sy(1,n/V),R.policy.N&&n/V>1.5&&R.loader.m2("overshoot",{sq:F.nH,br:n,max:V}))}};
mn=function(R,F,n){os(R.W,F,n===void 0?!1:n);R.UZ=-1;Ws(R,R.T)};
g0j=function(R,F){return new as(R.X,R.N,F||R.T.reason)};
Hpv=function(R){R.bS?R.bS=!1:R.UZ=(0,g.h1)();R.Nq=!1;R.Y5=!1;return new as(R.X,R.N,R.T.reason)};
Op6=function(R,F){var n={};F=g.m(F);for(var V=F.next();!V.done;V=F.next())if((V=V.value)&&V.video){var r=V.video.qualityOrdinal,v=n[r],f=v&&lT(v)&&v.video.qualityOrdinal>R.policy.Fb,z=r<=R.policy.Fb?lT(V):G$(V);if(!v||f||z)n[r]=V}return n};
Ws=function(R,F){R.T=F;var n=R.Z.videoInfos;if(!R.T.isLocked()){var V=(0,g.h1)();n=g.dk(n,function(f){if(f.yz>this.policy.yz)return!1;var z=this.X2.T[f.id];return yy(this.W).get(f.id)>V||z.jn.N>4||z.Z>4?!1:this.PG.has(+f.itag)?!1:!0},R);
R.W.T3()&&(n=g.dk(n,function(f){return f.video.width<=854&&f.video.height<=480}))}n.length||(n=R.Z.videoInfos);
var r=n;R.policy.PU&&(r=I0E(R,r,F));r=g.dk(r,F.J,F);if(R.T.isLocked()&&R.W.T){var v=g.$$(n,function(f){return f.id===R.W.T});
v?r=[v]:UC(R.W,"")}R.policy.PU||(r=I0E(R,r,F));r.length||(r=[n[0]]);r.sort(function(f,z){return Bs(R,f)-Bs(R,z)});
F={};for(n=1;n<r.length;F={Az:void 0,un:void 0},n++)F.un=r[n-1],F.Az=r[n],F.un.video.width>F.Az.video.width?(g.n4(r,n),n--):Bs(R,F.un)*R.policy.UZ>Bs(R,F.Az)&&(g.n4(r,n-1),n--);F=r[r.length-1];R.SQ=!!R.N&&!!R.N.info&&R.N.info.x5!==F.x5;R.J=r;R.gX.clear();n=!1;for(v=0;v<r.length;v++)n?R.gX.add(r[v].itag):r[v].video.qualityOrdinal>=1080&&(n=!0);Kj6(R.policy,F,R.X2.Zt)};
I0E=function(R,F,n){var V=n.reason==="m"||n.reason==="s";R.policy.hC&&gj&&g.A1&&(!V||n.T<1080)&&(F=F.filter(function(Q){return Q.video&&(!Q.U||Q.U.powerEfficient)}));
if(F.length>0)if(SL()){var r=Op6(R,F);F=F.filter(function(Q){return!!Q&&!!Q.video&&Q.x5===r[Q.video.qualityOrdinal].x5})}else{var v,f,z=(v=F[0])==null?void 0:(f=v.video)==null?void 0:f.qualityOrdinal;
if(z){n=F.filter(function(Q){return!!Q&&!!Q.video&&Q.video.qualityOrdinal===z});
var q=Op6(R,n)[z].x5;F=F.filter(function(Q){return!!Q&&!!Q.video&&Q.x5===q})}}return F};
Dr_=function(R,F){for(var n=0;n+1<R.J.length&&R.J[n].video.quality==="tiny";)n++;var V=qH(R.jQ)/R.policy.UZ;return Bs(R,F.info)+Bs(R,R.J[n])>V};
Hs=function(R){if(!R.U||!R.policy.J&&!R.U.info.z9){var F=R.Z.T;R.U&&(F=F.filter(function(V){return V.audio.T===R.U.info.audio.T}),F.length||(F=R.Z.T));
R.U=R.X2.T[F[0].id];if(F.length>1&&!R.policy.lS){if(!R.policy.xV){var n=g.$$(F,function(V){return V.audio.audioQuality!=="AUDIO_QUALITY_HIGH"});
n&&(R.U=R.X2.T[n.id])}n=!1;if(n=R.policy.fm?!0:R.T.isLocked()?R.T.T<240:Dr_(R,R.U))R.U=R.X2.T[g.Ns(F).id]}}};
uG=function(R){if(!R.nextVideo||!R.policy.J)if(R.T.isLocked())R.nextVideo=R.T.T<=360?R.X2.T[R.J[0].id]:R.X2.T[g.Ns(R.J).id];else{for(var F=Math.min(R.V,R.J.length-1),n=qH(R.jQ),V=Bs(R,R.U.info),r=n/R.policy.jQ-V;F>0&&!(Bs(R,R.J[F])<=r);F--);for(n=n/R.policy.UZ-V;F<R.J.length-1&&!(Bs(R,R.J[F+1])>=n);F++);R.nextVideo=R.X2.T[R.J[F].id];R.V=F}};
UrR=function(R){var F=R.policy.jQ,n=qH(R.jQ)/F-Bs(R,R.U.info);F=g.PM(R.J,function(V){return Bs(this,V)<n},R);
F<0&&(F=0);R.V=F;R.nextVideo=R.X2.T[R.J[F].id]};
jcv=function(R){if(R.h1.length){var F=R.h1,n=function(V,r){if(V.info.x5==="f"||F.includes(v1(V,R.X2.Zt)))return V;for(var v={},f=0;f<r.length;v={o6:void 0,VF:void 0},f++){var z=R.X2.T[r[f].id];if(F.includes(v1(z,R.X2.Zt))){var q=V.info.x5,Q=z.info.x5;if(q===Q||SL()){q=f=void 0;r=V.info.video?V.info.T!==z.info.T:V.info.audio.T!==z.info.audio.T||((q=V.info.z9)==null?void 0:q.id)!==((f=z.info.z9)==null?void 0:f.id);if(r)return R.loader.m2("ombifa",{mismatch:"xtag",f:V.info.id,t:z.info.id}),V;v.o6=V.info.itag;
v.VF=z.info.itag;R.loader.m2("ombifa",{f:v.o6,t:v.VF});R.bS=!0;return z}R.loader.m2("ombifa",{mismatch:"efficient",fc:q,tc:Q})}}R.loader.m2("ombifa",{mismatch:"unselectable",fmts:F.join(".")});return V};
R.nextVideo=n(R.nextVideo,R.Z.videoInfos);R.U=n(R.U,R.Z.T)}};
Bs=function(R,F){if(!R.Mq[F.id]){var n=R.X2.T[F.id].index.Zk(R.lS,15);n=F.uO&&R.N&&R.N.index.isLoaded()?n||F.uO:n||F.yz;R.Mq[F.id]=n}n=R.Mq[F.id];R.gX.has(F.itag)&&(n*=1.5);return n*=Math.max(1,R.uS.Cm()||0)};
ipe=function(R,F){R=t7I(R.X2.T,function(n){return n.info.itag===F});
if(!R)throw Error("Itag "+F+" from server not known.");return R};
xrW=function(R){var F=[];if(R.T.reason==="m"||R.T.reason==="s")return F;if(PT9(R.X2)){for(var n=Math.max(0,R.V-2);n<R.V&&n<R.J.length;n++)F.push(R.J[n].itag);F.reverse()}return F};
Wj_=function(R,F){var n;return R.T.equals(F)&&(!R.W.T||!R.T.isLocked()||((n=R.nextVideo)==null?void 0:n.info.id)===R.W.T)};
yWV=function(R){var F=g.$$(R.Z.T,function(V){return V.audio.T}),n=g.$$(R.Z.T,function(V){return!V.audio.T});
return F?R.policy.xD?F:n:null};
Is=function(R){g.G.call(this);this.N5=R;this.T=null;this.U=OC;this.N5("ismp_i")};
kp6=function(R,F){R.N5("ismp_p");R.U=F};
Km=function(R,F){(F===void 0||F)&&YVI(R);R.T=null};
YVI=function(R){R.T&&(R.T.dispose(),R.N5("ismp_d"))};
JW6=function(R){var F=R===void 0?{}:R;R=F.A5===void 0?!1:F.A5;var n=F.aI===void 0?!1:F.aI;F=F.R2===void 0?!1:F.R2;return R?F?3:2:n?-1:1};
D5=function(R){this.track=R;this.buffered=[];this.N=this.J=0;this.Z={};this.W=0;this.T=new Un};
iG=function(R,F,n){var V=[],r=R.track.Sn;if(r){r=r.TI();for(var v=0;v<r.length;v++)V.push(Math.round(r.start(v)*1E3)),V.push(Math.round(r.end(v)*1E3))}r=1;v=V.length;if(v===R.buffered.length){for(var f=0;f<=v&&V[f]===R.buffered[f];f++);f>v?r=0:V[f]>R.buffered[f]&&(f===v-1?r=2:f===v-2&&V[f+1]>R.buffered[f+1]&&(r=3))}R.T.add(F<<3|(n&&4)|r);F=Math.ceil(R.track.HE()*1E3);R.T.add(F-R.W);R.W=F;if(r===1)for(R.T.add(v),f=F=0;f<v;f++)R.T.add(V[f]-F),F=V[f];r===3&&R.T.add(V[v-2]-R.buffered[v-2]);r>=2&&R.T.add(V[v-
1]-R.buffered[v-1]);n&&R.T.add(n);R.buffered=V};
xg=function(R,F,n){var V=this;this.policy=R;this.T=F;this.lS=n;this.J=this.U=0;this.qL=null;this.Nq=new Set;this.UZ=[];this.indexRange=this.initRange=null;this.V=new oi;this.J1=this.jQ=!1;this.hJ={HSG:function(){return V.N},
cQ2:function(){return V.chunkSize},
k3X:function(){return V.X},
iZS:function(){return V.Z}};
(F=Gpk(this))?(this.chunkSize=F.csz,this.N=Math.floor(F.clen/F.csz),this.X=F.ck,this.Z=F.civ):(this.chunkSize=R.SH,this.N=0,this.X=g.s$(16),this.Z=g.s$(16));this.W=new Uint8Array(this.chunkSize);this.X&&this.Z&&(this.crypto=new zpv(this.X,this.Z))};
Gpk=function(R){if(R.policy.NP&&R.policy.qA)for(var F=g.m(R.policy.NP),n=F.next(),V={};!n.done;V={D5:void 0,aE:void 0},n=F.next())if(n=g.zg(n.value),V.D5=+n.clen,V.aE=+n.csz,V.D5>0&&V.aE>0&&R.policy.J===n.docid&&R.T.info.id===n.fmtid&&R.T.info.lastModified===+n.lmt)return R={},R.clen=V.D5,R.csz=V.aE,R.ck=n.ck,R.civ=n.civ,R};
kg=function(R){return!!R.qL&&R.qL.YY()};
l0j=function(R,F){if(!kg(R)&&!R.Zo()){if(!(R.jQ||(R.jQ=!0,R.N>0))){var n=Yg(R);n=vh(R.policy.J,R.T.info,JZ(R),n,R.policy.k5);GB(R,n)}if(F.info.type===1){if(R.qL){dj(R,Error("Woffle: Expect INIT slices to always start us off"));return}R.initRange=zP(0,F.U.totalLength)}else if(F.info.type===2)R.qL&&R.qL.type===1||dj(R,Error("Woffle: Index before init")),R.indexRange=zP(R.initRange.end+1,F.U.totalLength);else if(F.info.type===3){if(!R.qL){dj(R,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(R.qL.type===3&&!So(R.qL,F.info)&&(R.UZ=[],F.info.nH!==Lg(R.qL)||F.info.T!==0))return;if(F.info.N){n=g.m(R.UZ);for(var V=n.next();!V.done;V=n.next())drV(R,V.value);R.UZ=[]}else{R.UZ.push(F);R.qL=F.info;return}}else{dj(R,Error("Woffle: Unexpected slice type"));return}R.qL=F.info;drV(R,F);MU6(R)}};
drV=function(R,F){var n=0,V=CV(F.U);if(R.J<R.N){n=R.N*R.chunkSize;var r,v=(((r=F.info.range)==null?void 0:r.start)||0)+F.info.T;n-=v;if(n>=V.length)return;if(n<0)throw Error("Missing data");R.J=R.N;R.U=0}for(r={};n<V.length;r={rS:void 0})if(r.rS=Math.min(V.length-n,R.W.byteLength-R.U),v=new Uint8Array(V.buffer,V.byteOffset+n,r.rS),R.W.set(v,R.U),R.U+=r.rS,n+=r.rS,R.U===R.W.length){if(F.info===R.qL&&kg(R)&&n===V.length)break;r=Yg(R);r=vh(R.policy.J,R.T.info,JZ(R),r,R.policy.k5,R.J,R.W,R.crypto);R.Nq.add(r);
GB(R,r);R.Zo()||(r=Yg(R),R.lS(JZ(R),r!==void 0?(r.downloadedEndTime||0)*r.averageByteRate:r.maxKnownEndTime*r.averageByteRate,r.maxKnownEndTime*r.averageByteRate));R.W=new Uint8Array(R.chunkSize);R.U=0;R.J+=1}};
MU6=function(R){if(kg(R))if(R.qL&&R.indexRange)if(R.U){var F=new Uint8Array(R.W.buffer,0,R.U),n=N3J(R),V=R.policy.J;Promise.all(R.Nq).then(function(){var r=vh(V,R.qL.A1.info,JZ(R,!0),n,R.policy.k5,R.J,F,R.crypto);GB(R,r,!0)})}else dj(R,new Mk("Woffle: Expect always re-mark currentChunkOffset at EOS"));
else dj(R,new Mk("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
Yg=function(R){return{downloadedEndTime:Math.round(R.qL?R.qL.W:0),maxKnownEndTime:Math.round(R.T.index.Ug()),averageByteRate:Math.round(R.T.info.uO)}};
N3J=function(R){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(R.T.index.Ug()),averageByteRate:Math.round(R.T.info.uO)}};
JZ=function(R,F){F===void 0||!F||R.indexRange&&R.initRange&&R.qL||dj(R,new Mk("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));F={lmt:R.T.info.lastModified,docid:R.policy.J,fmtid:R.T.info.id,type:R.T.info.mimeType.split(";")[0],csz:R.chunkSize,clen:R.J*R.chunkSize+R.U};R.crypto&&(F.ck=R.X,F.civ=R.Z);var n="local://localhost/videoplayback?"+f$(F),V,r;F={itag:+R.T.info.itag,mimeType:R.T.info.mimeType,bitrate:R.T.info.yz*8,lastModified:String(R.T.info.lastModified),initRange:(V=
R.initRange)==null?void 0:Elv(V),indexRange:(r=R.indexRange)==null?void 0:Elv(r),url:n};if(V=R.T.info.T)F.xtags=V;if(V=R.T.info.video)if(F.quality=V.quality,F.qualityLabel=V.qualityLabel,F.width=V.width,F.height=V.height,V=V.fps)F.fps=V;if(R=R.T.info.audio){if(V=R.sampleRate)F.audioSampleRate=String(V);if(R=R.numChannels)F.audioChannels=R}return F};
GB=function(R,F,n){n=n===void 0?!1:n;F.then(function(V){R.Nq.delete(F);(n||V===4)&&R.V.resolve(V)},function(V){R.V.reject(V)})};
dj=function(R,F){g.FV(R.policy.J)!==4&&(g.nM(R.policy.J,4),g.mq(F),R.V.reject(new Mk(F.message)))};
Mk=function(R,F){R=Error.call(this,R);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.T=F===void 0?!1:F};
E0j=function(R){R=g.mV(R,1886614376);for(var F=g.m(R),n=F.next();!n.done;n=F.next());return g.OM(R,function(V){return AaN(V)})};
$rV=function(R){var F=KY(R,function(r,v){return r+v.length},0);
F=new Uint8Array(F);var n=0;R=g.m(R);for(var V=R.next();!V.done;V=R.next())V=V.value,F.set(V,n),n+=V.length;return F};
PiN=function(R,F,n,V,r,v){this.ids=R;this.T=F;this.U=n;this.J=V;this.N=r;this.RD=v};
lG=function(R,F,n){this.initData=R;this.contentType=F;this.isPrefetch=n;this.T=this.cryptoPeriodIndex=NaN;this.N=[];this.UY=!1;this.U=null;if((F==null?void 0:F.toLowerCase())==="webm"||R.length===16)this.UY=!0};
ZpW=function(R){a:{var F=R.initData;try{for(var n=0,V=new DataView(F.buffer);n<V.byteLength-8;){var r=V.getUint32(n);if(r<=1)break;if(V.getUint32(n+4)===1886614376){var v=32;if(V.getUint8(n+8)>0){var f=V.getUint32(n+28);v+=f*16+4}var z=V.getUint32(n+v-4);try{var q=bpV(F.subarray(n+v,n+v+z));if(q!==null){var Q=q;break a}}catch(c){}}n+=r}Q=null;break a}catch(c){Q=null;break a}Q=void 0}if(Q!=null)for(F=Jb(oX(Q,7,void 0,Rr)),F==null||R.UY||(R.cryptoPeriodIndex=F),F=Jb(oX(Q,10,void 0,Rr)),F!=null&&F>0&&
!R.UY&&(R.T=F),Q=u3(Q,2,PSN,void 0===eTj?2:4),Q=g.m(Q),V=Q.next();!V.done;V=Q.next())F=R.N,n=F.push,V=R2(V.value),V=g.dQ(V,4),n.call(F,V)};
eR_=function(R){return isNaN(R.cryptoPeriodIndex)?g.dQ(R.initData):""+R.cryptoPeriodIndex};
Nk=function(R,F,n){var V=n===void 0?{}:n;n=V.videoDuration===void 0?0:V.videoDuration;var r=V.yq===void 0?void 0:V.yq;V=V.yK===void 0?!1:V.yK;this.videoId=R;this.status=F;this.videoDuration=n;this.yq=r;this.yK=V};
Rnv=function(R,F,n,V,r){this.videoId=R;this.CL=F;this.U=n;this.bytesDownloaded=V;this.T=r};
EC=function(R){this.T=R;this.offset=0};
$g=function(R){if(R.offset>=R.T.totalLength)throw Error();return o7(R.T,R.offset++)};
FmI=function(R,F){F=F===void 0?!1:F;var n=$g(R);if(n===1){F=-1;for(n=0;n<7;n++){var V=$g(R);F===-1&&V!==255&&(F=0);F>-1&&(F=F*256+V)}return F}V=128;for(var r=0;r<6&&V>n;r++)n=n*256+$g(R),V*=128;return F?n:n-V};
n_f=function(R){try{var F=FmI(R,!0),n=FmI(R,!1);return{id:F,size:n}}catch(V){return{id:-1,size:-1}}};
VTJ=function(R){for(var F=new EC(R),n=-1,V=0,r=0;!V||!r;){var v=n_f(F),f=v.id;v=v.size;if(f<0)return;if(f===176){if(v!==2)return;V=F.R$()}else if(f===186){if(v!==2)return;r=F.R$()}f===374648427?n=F.R$()+v:f!==408125543&&f!==174&&f!==224&&F.skip(v)}F=Ty(R,0,n);n=new DataView(F.buffer);n.setUint16(V,3840);n.setUint16(r,2160);V=new sE([F]);pV(V,R);return V};
rPj=function(R,F,n){var V=this;this.loader=R;this.policy=F;this.A1=n;this.logger=new g.B1("dash");this.U=[];this.T=null;this.J1=-1;this.V=0;this.lS=NaN;this.UZ=0;this.N=NaN;this.X=this.Mq=0;this.dX=-1;this.PG=this.J=this.W=this.jQ=null;this.SQ=this.gX=NaN;this.Z=this.Nq=this.Y5=this.uS=null;this.h1=!1;this.bS=this.timestampOffset=0;this.hJ={eq:function(){return V.U}};
if(this.policy.J){var r=this.A1,v=this.policy.J;this.policy.k5&&R.m2("atv",{ap:this.policy.k5});this.Z=new xg(this.policy,r,function(f,z,q){R.TH.t6(new Nk(V.policy.J,2,{yq:new Rnv(v,f,r.info,z,q)}))});
this.Z.V.promise.then(function(f){V.Z=null;f===1?R.TH.t6(new Nk(V.policy.J,f)):V.loader.m2("offlineerr",{status:f.toString()})},function(f){var z=(f.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
f instanceof Mk&&!f.T?(V.loader.m2("offlinenwerr",{em:z}),Ps(V),R.TH.t6(new Nk(V.policy.J,4))):(V.loader.m2("dldbwerr",{em:z}),Ps(V),R.TH.t6(new Nk(V.policy.J,4,{yK:!0})))})}};
v_N=function(R){return R.U.length?R.U[0]:null};
fvv=function(R,F){return R.U.some(function(n){return n.info.nH===F})};
cPk=function(R,F,n,V){V=V===void 0?0:V;if(R.J){var r=R.J.T+R.J.U;if(n.info.T>0)if(n.info.nH===R.J.nH&&n.info.T<r){if(n.info.T+n.info.U<=r)return;n=WGv(n,r-n.info.T)[1]}else if(n.info.nH>=0&&R.J.nH>=0&&!So(R.J,n.info))throw new g.UR("improper_continuation",R.J.KX(),n.info.KX());ZyI(R.J,n.info)||bG(R,"d")}else if(n.info.T>0)throw new g.UR("continuation_of_null",n.info.KX());R.J=n.info;R.A1=n.info.A1;if(n.info.T===0){if(R.T)if(!R.loader.isOffline()||R.policy.nf)R.loader.m2("slice_not_fully_processed",
{buffered:R.T.info.KX(),push:n.info.KX()});else throw new g.UR("slice_not_fully_processed",R.T.info.KX(),n.info.KX());Z5(R);R.Mq=V}else{if(R.Mq&&V&&R.Mq!==V)throw R=new g.UR("lmt_mismatch",n.info.nH,R.Mq,V),R.level="WARNING",R;!n.info.A1.kC()&&R.W&&(V=n.info,r=R.W.sS,V.Z="updateWithEmsg",V.nH=r)}if(R.T){V=g.IR(R.T,n);if(!V)throw new g.UR("failed_to_merge",R.T.info.KX(),n.info.KX());R.T=V}else R.T=n;a:{n=g.Ey(R.T.info.A1.info);if(R.T.info.type!==3){if(!R.T.info.N)break a;R.T.info.type===6?tTR(R,F,
R.T):znW(R,R.T);R.T=null}for(;R.T;){V=R.T.U.totalLength;if(R.J1<=0&&R.V===0){var v=R.T.U,f=-1;r=-1;if(n){for(var z=0;z+8<v.totalLength;){var q=KCN(v,z),Q=KCN(v,z+4);z+=q||1;if(Q===1836019558)f=z;else if(Q===1835295092){r=z;break}}r<0&&(f=-1)}else{v=new EC(v);for(q=z=!1;;){Q=v.R$();var c=n_f(v),w=c.id;c=c.size;if(!(w>0))break;if(w!==408125543)if(w===524531317)z=!0,c>=0&&(r=v.R$()+c,q=!0);else{if(z&&(w===160||w===163)&&(f<0&&(f=Q),q))break;w===163&&(f=Math.max(0,f),r=v.R$()+c);if(w===160){f<0&&(r=f=
v.R$()+c);break}v.skip(c)}}f<0&&(r=-1)}if(f<0)break;R.J1=f;R.V=r-f}if(R.J1>V)break;R.J1?(V=qP6(R,R.J1),V.W&&Q$N(R,V),tTR(R,F,V),eF(R,V),R.J1=0):R.V&&(V=qP6(R,R.V<0?Infinity:R.V),R.V-=V.U.totalLength,eF(R,V))}}R.T&&R.T.info.N&&(eF(R,R.T),R.T=null)};
znW=function(R,F){!F.info.A1.kC()&&F.info.T===0&&(g.Ey(F.info.A1.info)||F.info.A1.info.UY())&&I8f(F);if(F.info.type===1)try{Q$N(R,F),wV_(R,F)}catch(r){g.uX(r);var n=s1(F.info);n.hms="1";R.loader.handleError("fmt.unparseable",n||{},1)}n=F.info.A1;n.Xp(F);R.Z&&l0j(R.Z,F);if(n.o9()&&R.policy.T)a:{R=R.loader.X2;F=F.info.clipId;n=g.PH(n.info,R.Zt);if(F){var V=VR({itag:n.itag,lmt:R.Zt?0:n.lmt||0,xtags:n.xtags});if(R.SQ[V])break a;R.SQ[V]=F}R.dX.push(n)}};
Mi6=function(R,F,n){if(R.U.length!==0&&(n||R.U.some(function(v){return v.info.J<F}))){n=0;
for(var V=g.m(R.U),r=V.next();!r.done;r=V.next()){r=r.value;if(r.info.J<F)break;R.loader.m2("cmat",{max:F,s:r.info.KX()});n+=1}R.U.splice(0,n)}};
Ps=function(R){var F;(F=R.Z)==null||F.dispose();R.Z=null};
SPV=function(R){var F=R.U.reduce(function(n,V){return n+V.U.totalLength},0);
R.T&&(F+=R.T.U.totalLength);return F};
qP6=function(R,F){var n=R.T;F=Math.min(F,n.U.totalLength);if(F===n.U.totalLength)return R.T=null,n;n=WGv(n,F);R.T=n[1];return n[0]};
Q$N=function(R,F){var n=g.O1(F);if(d8(F.info.A1.info)&&F.info.A1.info.video.primaries==="bt2020"){var V=new gm(n);I0(V,[408125543,374648427,174,224,21936,21937])&&(V=V.start+V.pos,n.getUint8(V)===129&&n.getUint8(V+1)===1&&n.setUint8(V+1,9))}V=F.info.A1.info;G$(V)&&!d8(V)&&(V=g.O1(F),(new gm(V)).lG(),xa([408125543,374648427,174,224],21936,V));F.info.A1.info.EY()&&(V=F.info.A1,V.info&&V.info.video&&V.info.video.projectionType==="MESH"&&!V.U&&(g.Ey(V.info)?V.U=u8k(n):V.info.UY()&&(V.U=Dyv(n))));F.info.A1.info.UY()&&
F.info.EY()&&(n=g.O1(F),(new gm(n)).lG(),xa([408125543,374648427,174,224],30320,n)&&xa([408125543,374648427,174,224],21432,n));if(R.policy.A2&&F.info.A1.info.UY()){n=g.O1(F);var r=new gm(n);if(I0(r,[408125543,374648427,174,29637])){V=i2(r,!0);r=r.start+r.pos;for(var v=0;v<V-1;v++)n.setUint8(r+v,0);n.setUint8(r+V-1,1)}}if(R.cB()&&g.Ey(F.info.A1.info)){V=g.O1(F);n=g.o0(V,0,1701606260);v=g.o0(V,0,1836476516);if(n&&v){n.skip(2);var f=wm(n),z=Ln(n);V=[];r=[];var q=[],Q=[];if(f)for(f=0;f<z;++f)V.push(sl(n)),
r.push(sl(n)),q.push(wm(n)),Q.push(wm(n));else for(f=0;f<z;++f)V.push(Si(n)),r.push(Si(n)),q.push(wm(n)),Q.push(wm(n));n=g.ys(v);n=new HyE(r[0]/n,V[0]/n)}else n=null;if(n){if(g.Ey(F.info.A1.info))for(V=g.O1(F),r=g.o0(V,0,1701082227);r;)v=r,v.type=1936419184,v.data.setUint32(v.offset+4,1936419184),r=g.o0(V,r.offset+r.size,1701082227);R.h1=!0;F.info.A1.J=n}}F.info.A1.kC()||F.info.A1.T||F.info.A1.indexRange||xT(F)};
tTR=function(R,F,n){if(n.info.A1.kC()){if(R.h1&&LmV(n)&&(F=g.O1(n),F=g.o0(F,0,1953658222))){F.skip(1);var V=cW(F)<<16|wm(F),r=V&1,v=V&4;if(V&256){var f=V&512,z=V&1024;V&=2048;var q=Ln(F);q<2||(r&&F.skip(4),v&&F.skip(4),r=Ln(F),F.skip((q-1)*(4+(f?4:0)+(z?4:0)+(V?4:0))-4),F.data.setUint32(F.offset+F.T,r))}}if(F=R.jQ&&!!R.jQ.A1.J)if(F=n.info.EY())F=gQR(n),f=R.jQ,R6?(z=1/F,F=FM(R,F)>=FM(f)+z):F=R.getDuration()>=f.getDuration(),F=!F;F&&LmV(n)&&(F=R.jQ,R6?(z=gQR(n),f=1/z,z=FM(R,z),F=FM(F)+f-z):F=F.getDuration()-
R.getDuration(),F=1+F/n.info.duration,W6W(g.O1(n),F))}else{f=!1;R.W||(I8f(n),n.T&&(R.W=n.T,f=!0,r=n.info,v=n.T.sS,r.Z="updateWithEmsg",r.nH=v,r=n.T,r.YY&&(v=R.A1.index,v.U=!r.YY,v.N="emsg"),r=n.info.A1.info,v=g.O1(n),g.Ey(r)?BW(v,1701671783):r.UY()&&xa([408125543],307544935,v)));a:if((r=io(n,R.policy.us))&&ObN(n))z=s$N(R,n),R.X+=z,r-=z,R.UZ+=r,R.N=R.policy.eU?R.N+r:NaN;else{if(R.policy.zT){if(v=q=R.loader.c8(g.Kg(n),1),R.N>=0&&n.info.type!==6){if(R.policy.eU&&isNaN(R.gX)){g.mq(new g.UR("Missing duration while processing previous chunk",
n.info.KX()));R.loader.isOffline()&&!R.policy.nf||pVV(R,n,v);bG(R,"m");break a}V=q-R.N;var Q=V-R.X,c=n.info.nH,w=R.PG?R.PG.nH:-1,L=R.SQ,S=R.gX,p=R.policy.ZS&&V>R.policy.ZS,C=Math.abs(Q)>10,y=Math.abs(R.N-v)<1E-7;if(Math.abs(Q)>1E-4){R.bS+=1;var u=(z=R.W)==null?void 0:yaf(z);z={audio:""+ +R.cB(),sq:c.toFixed(),sliceStart:q,lastSq:w.toFixed(),lastSliceStart:L,lastSliceDuration:S,totalDrift:(V*1E3).toFixed(),segDrift:(Q*1E3).toFixed(),skipRewrite:""+ +(p||C)};if(u==null?0:u.length)z.adCpn=u[0];R.loader.handleError("qoe.avsync",
z);R.dX=c}p||C||y||(v=R.N);z=s$N(R,n,q);r-=z;R.X=V+z}}else v=isNaN(R.N)?n.info.startTime:R.N;pVV(R,n,v)&&(R.UZ+=r,R.N=v+r,R.policy.bO&&R.bS>=R.policy.bO&&(R.bS=0,R.loader.vX({resetForRewrites:"count"})))}R.PG=n.info;R.gX=Dj(n);n.N>=0&&(R.SQ=n.N);if(f&&R.W){f=XVN(R,!0);pg(n.info,f);R.T&&pg(R.T.info,f);F=g.m(F);for(z=F.next();!z.done;z=F.next())z=z.value,r=void 0,R.policy.Z&&z.nH!==((r=R.W)==null?void 0:r.sS)||pg(z,f);(n.info.N||R.T&&R.T.info.N)&&n.info.type!==6||(R.Nq=f,R.policy.U?(F=APN(R.W),R.loader.Ky(R.A1,
f,F)):(F=R.loader,F.X2.isManifestless&&av_(F,f,null,!!R.A1.info.video)),R.policy.Ru||Ck9(R))}}wV_(R,n);R.timestampOffset&&B86(n,R.timestampOffset)};
eF=function(R,F){if(F.info.N){R.uS=F.info;if(R.W){var n=R.W,V=XVN(R,!1);n=APN(n);R.loader.Ky(R.A1,V,n);R.Nq||R.policy.Ru||Ck9(R);R.Nq=null}Z5(R)}R.Z&&l0j(R.Z,F);if(V=R.aY())if(V=g.IR(V,F,R.policy.TB,R.policy.lX)){R.U.pop();R.U.push(V);return}R.U.push(F)};
APN=function(R){if(R.zo()){var F=R.data["Stitched-Video-Id"]?R.data["Stitched-Video-Id"].split(",").slice(0,-1):[],n=yaf(R),V=[];if(R.data["Stitched-Video-Duration-Us"])for(var r=g.m(R.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),v=r.next();!v.done;v=r.next())V.push((Number(v.value)||0)/1E6);r=[];if(R.data["Stitched-Video-Start-Frame-Index"]){v=g.m(R.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var f=v.next();!f.done;f=v.next())r.push(Number(f.value)||0)}r=[];
if(R.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(v=g.m(R.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),f=v.next();!f.done;f=v.next())r.push((Number(f.value)||0)/1E6);R=new PiN(F,n,V,r,g.Uyk(R),g.jBv(R))}else R=null;return R};
Z5=function(R){R.T=null;R.J1=-1;R.V=0;R.W=null;R.lS=NaN;R.UZ=0;R.Nq=null};
bG=function(R,F){F={rst4disc:F,cd:R.X.toFixed(3),sq:R.PG?R.PG.nH:-1};R.N=NaN;R.X=0;R.dX=-1;R.PG=null;R.SQ=NaN;R.gX=NaN;R.Y5=null;R.loader.m2("mdstm",F)};
wV_=function(R,F){if(R.isDrm()){if(F.info.A1.info.UY()){var n=new gm(g.O1(F));if(I0(n,[408125543,374648427,174,28032,25152,20533,18402])){var V=i2(n,!0);n=V!==16?null:Gu(n,V)}else n=null;V="webm"}else F.info.V=E0j(g.O1(F)),n=$rV(F.info.V),V="cenc";n&&n.length&&(n=new lG(n,V),R.policy.Xj&&g.Ey(F.info.A1.info)&&(V=IXN(g.O1(F)))&&(n.U=V),n.UY=F.info.A1.info.UY(),F.T&&F.T.cryptoPeriodIndex&&(n.cryptoPeriodIndex=F.T.cryptoPeriodIndex),F.T&&F.T.U&&(n.T=F.T.U),R.loader.Ws(n))}};
Ck9=function(R){var F=R.W,n=TEN(F);n&&(n.startSecs+=R.lS,R.loader.rh(R.A1,n,F.sS,F.zo()))};
XVN=function(R,F){var n,V=R.W;if(n=TEN(V))n.startSecs+=R.lS;var r=R.lS,v=0;R.A1 instanceof TP&&(v=R.A1.L6);return new zu(V.sS,r,F?v:R.UZ,V.ingestionTime,"sq/"+V.sS,void 0,void 0,F,n)};
pVV=function(R,F,n){if(!uRe(F,n))return F=s1(F.info),F.smst="1",R.loader.handleError("fmt.unparseable",F||{},1),!1;isNaN(R.lS)&&(R.lS=n);return!0};
s$N=function(R,F,n){var V=0;if(F.info.A1.info.UY()&&!ObN(F))return 0;if(R.jQ&&!R.cB()){var r=0;n&&g.Ey(F.info.A1.info)?r=n-R.N:F.info.A1.info.UY()&&(r=R.X);var v=F.info.nH;n=io(F,R.policy.us);var f=R.jQ;var z=f.dX;f=f.X;var q=Math.abs(f-r)>.02;if((v===z||v>z&&v>R.dX)&&q){V=Math.max(.95,Math.min(1.05,(n-(f-r))/n));if(g.Ey(F.info.A1.info))W6W(g.O1(F),V);else if(F.info.A1.info.UY()&&(v=r-f,!g.Ey(F.info.A1.info)&&(F.info.A1.info.UY(),V=new gm(g.O1(F)),z=F.W?V:new gm(new DataView(F.info.A1.T.buffer)),
io(F,!0)))){var Q=v*1E3,c=Mc(z);z=V.pos;V.pos=0;if(V.T.getUint8(V.pos)===160||l2(V))if(DW(V,160))if(i2(V,!0),DW(V,155)){if(v=V.pos,q=i2(V,!0),V.pos=v,Q=Q*1E9/c,c=ka(V),Q=c+Math.max(-c*.7,Math.min(c,Q)),Q=Math.sign(Q)*Math.floor(Math.abs(Q)),!(Math.ceil(Math.log(Q)/Math.log(2)/8)>q)){V.pos=v+1;for(v=q-1;v>=0;v--)V.T.setUint8(V.pos+v,Q&255),Q>>>=8;V.pos=z}}else V.pos=z;else V.pos=z;else V.pos=z}V=io(F,R.policy.us);V=n-V}V&&F.info.A1.info.UY()&&R.loader.m2("webmDurationAdjustment",{durationAdjustment:V,
videoDrift:r+V,audioDrift:f})}return V};
LmV=function(R){return R.info.A1.kC()&&R.info.nH===R.info.A1.index.VZ()};
FM=function(R,F){F=(F=F===void 0?0:F)?Math.round(R.timestampOffset*F)/F:R.timestampOffset;R.A1.J&&F&&(F+=R.A1.J.T);return F+R.getDuration()};
Tgv=function(R,F){F<0||(R.U.forEach(function(n){B86(n,F)}),R.timestampOffset=F)};
Sh=function(R,F,n,V,r){On.call(this,n,r);var v=this;this.policy=R;this.formatId=F;this.VG=V;this.lastError=null;this.onProgress=function(){v.Zo()||(v.VG.vT.has(v.formatId)?(v.isComplete()||v.T.start(),fm(v.VG,v.formatId)&&v.IM(2),v.VG.D7(v.formatId)&&(Poj(v.VG,v.formatId)?v.nX(4):(v.lastError="net.closed",v.nX(5)))):(v.lastError="player.exception",v.nX(5)))};
this.T=new g.ZK(function(){v.isComplete()||(v.lastError="net.timeout",v.nX(5))},1E3);
this.T.start();NiI(this.VG,this.formatId,this.onProgress);g.mt(this.onProgress)};
nF=function(R,F,n,V){g.G.call(this);var r=this;this.loader=R;this.policy=F;this.A1=n;this.timing=V;this.logger=new g.B1("dash");this.U=[];this.jQ=[];this.T=this.Sn=null;this.Y5=!1;this.Mq=this.bS=0;this.W=-1;this.J1=!1;this.lS=-1;this.PG=null;this.Nq=NaN;this.UZ=[];this.hJ={aP:function(){return r.N},
rQQ:function(){return r.U},
TZz:function(){return r.X}};
this.N=new rPj(R,F,n);this.policy.T&&(this.X=new c9(this.N,this.loader.getManifest(),this.policy,function(v){r.policy.Kt&&r.m2("buftl",v)}));
this.policy.QZ&&(this.V=new D5(this));this.yz=n.info.yz;this.Z=this.policy.PG?!1:n.JP();this.isManifestless=n.JP();this.J=this.Z;g.d(this,this.PG)};
Vc=function(R,F,n){n=n===void 0?!1:n;F&&R6&&Tgv(R.N,F.Pz());if(!n){var V;(V=R.X)==null||YlR(V)}R.Sn=F;(F=R.X)!=null&&(F.Sn=R.Sn)};
rO=function(R){var F=R.Sn&&R.Sn.Xw();if(R.policy.E8){if((R=R.X)==null)R=void 0;else{var n;R=(n=R.N)==null?void 0:n.info}return R||null}return F};
o_j=function(R){for(var F={},n=0;n<R.jQ.length;n++)F["r"+n]=R.jQ[n];return F};
vf=function(R,F){isNaN(R.Nq)||R.m2("aswr",{sq:F.info.OZ[0].nH,id:F.info.OZ[0].A1.info.itag,xtag:F.info.OZ[0].A1.info.T,ep:Date.now()-R.Nq});R.U.push(F);R.T=g.Ns(F.info.OZ);R.jQ.push(F.KX());R.jQ.length>4&&R.jQ.shift()};
yPf=function(R,F){if(F.JG()){var n=F.Q8();n=g.m(n);for(var V=n.next();!V.done;V=n.next())V=V.value,R.policy.N&&F instanceof Sh&&R.m2("omblss",{s:V.info.KX()}),fF(R,F.info.OZ,V,F.QD())}};
fF=function(R,F,n,V){V=V===void 0?0:V;isNaN(R.Nq)||(R.m2("aswm",{sq:F[0].nH,id:F[0].A1.info.itag,xtag:F[0].A1.info.T,ep:Date.now()-R.Nq}),R.Nq=NaN);switch(n.info.type){case 1:case 2:UAj(R,n);break;case 4:var r=n.info.A1,v=r.p8(n),f;((f=R.T)==null?0:f.type===4)&&vQJ(n.info,R.T)&&(R.T=r.UT(R.T).pop());n=g.m(v);for(r=n.next();!r.done;r=n.next())fF(R,F,r.value,V);break;case 3:n.info.A1.info.video?(r=R.timing,r.PG||(r.PG=(0,g.h1)(),g.Jz("fvb_r",r.PG,r.T))):(r=R.timing,r.Z||(r.Z=(0,g.h1)(),g.Jz("fab_r",
r.Z,r.T)));cPk(R.N,F,n,V);R.policy.T&&j$9(R);break;case 6:cPk(R.N,F,n,V),R.T=n.info}};
UAj=function(R,F){if(F.info.type===1)if(F.info.A1.info.video){var n=R.timing;n.bS||(n.bS=(0,g.h1)(),g.Jz("vis_r",n.bS,n.T))}else n=R.timing,n.V||(n.V=(0,g.h1)(),g.Jz("ais_r",n.V,n.T));znW(R.N,F);R=R.loader;R.videoTrack.A1.o9()&&R.audioTrack.A1.o9()&&R.policy.T&&!R.X2.Zt&&(F=R.audioTrack.getDuration(),n=R.videoTrack.getDuration(),Math.abs(F-n)>1&&R.m2("trBug",{af:""+g.PH(R.audioTrack.A1.info,!1),vf:""+g.PH(R.videoTrack.A1.info,!1),a:""+F,v:""+n}))};
ol=function(R){return v_N(R.N)};
j$9=function(R){R.U.length?R.T=g.Ns(g.Ns(R.U).info.OZ):R.N.U.length?R.T=R.N.aY().info:R.T=rO(R)};
t2=function(R,F){var n={jB:[],mp:[]},V;if((R=R.X)==null)R=void 0;else{ku9(R,R.jB,"og");DcN(R,F);ku9(R,R.jB,"trim");var r=xck(R);F=r.jB;r=r.UU;for(var v=[],f=0;f<r.length;f++){var z=r[f],q=R.policy.h1&&z.N!==-1?z.N:z.info.startTime,Q={startTicks:(q+R.timestampOffset)*1E3,EC:(R.policy.h1&&z.J!==-1?z.J:z.info.duration)*1E3,timescale:1E3},c=void 0,w=(c=R.Sn)==null?void 0:c.TI();c=void 0;if(R.policy.LY&&w&&w.length>0){var L=V4(w,q);L>=0&&(c=(w.end(L)-q+.1)*1E3)}v.push({formatId:g.PH(z.info.A1.info,R.X2.Zt),
VN:z.info.VN,sequenceNumber:z.info.nH+R.J,QK:Q,yR:z.info.U,fN:c})}R={jB:F,mp:v}}return(V=R)!=null?V:n};
p0=function(R,F,n){n=n===void 0?!1:n;if(R.Sn){var V=R.Sn.TI(),r=vz(V,F),v=NaN,f=rO(R);f&&(v=vz(V,f.A1.index.getStartTime(f.nH)));if(r===v&&R.T&&R.T.U&&H9J(zh(R),0))return F}R=qn(R,F,n);return R>=0?R:NaN};
Af=function(R,F,n){R.A1.o9();var V=qn(R,F);if(V>=0)return V;var r;(r=R.X)==null||inR(r,F,n);V=Math;r=V.min;var v=R.N;if(v.Z)if(v=v.Z,v.qL&&v.qL.type===3)v=v.qL.startTime;else if(v.N>0){var f=v.T.index;f=g.L4(f.offsets.subarray(0,f.count),v.N*v.chunkSize);v=v.T.index.getStartTime(f>=0?f:Math.max(0,-f-2))}else v=0;else v=Infinity;F=r.call(V,F,v);R.T=R.policy.PG?null:R.A1.KS(F).OZ[0];Qc(R)&&(R.policy.Lo&&(n==null?void 0:n.seekSource)===60||R.Sn&&R.Sn.abort(),R.policy.fE&&(n=R.X)!=null&&(n.N=void 0));
R.Mq=0;return R.T?R.T.startTime:F};
Gu_=function(R){R.Z=!0;R.J=!0;R.W=-1;Af(R,Infinity)};
cf=function(R){for(var F=0,n=g.m(R.U),V=n.next();!V.done;V=n.next())F+=tlN(V.value.info);return F+=SPV(R.N)};
Sz=function(R,F){F=F===void 0?!1:F;var n=R.loader.getCurrentTime(),V=R.N.aY(),r=(V==null?void 0:V.info.W)||0;if((V==null?0:V.info.A1.JP())&&!V.info.N)if(R.policy.tG)r=V.info.J;else if(R.policy.Bk){var v=V.info;r=v.range?v.W:Math.min(v.startTime+Math.min(v.duration*v.T/v.A1.info.yz,v.duration)+(v.range?v.X:Math.min(v.duration,v.duration*v.U/v.A1.info.yz)),v.startTime+v.duration)}if(!R.Sn){if((R.policy.T||R.policy.Uk)&&F&&!isNaN(n)){if(V)return r-n;if(R.policy.Uk&&R.A1.info.x5==="f")return Infinity}return 0}if((v=
rO(R))&&wO(v))return v.W;var f=R.Sn.TI(!0);if(F&&V)return v=0,R.policy.T&&(v=zr(f,r+.02)),v+r-n;F=zr(f,n);R.policy.Xg&&v&&(V=V4(f,n),f=V4(f,v.J-.02),V===f&&(n=v.W-n,R.policy.N&&n>F+.02&&R.m2("abh",{bh:F,bhtls:n}),F=Math.max(F,n)));return F};
hnE=function(R){var F=rO(R);return F?F.W-R.loader.getCurrentTime():0};
LF=function(R,F,n,V){if(!R.A1.index.Ap(F,!0))return!1;try{sn(R);for(var r=R.N,v=null,f=r.U.length-1;f>=0;f--){var z=r.U[f];z.info.nH>=F&&(r.U.pop(),r.N-=io(z,r.policy.us),v=z.info)}v&&(r.J=r.U.length>0?r.U[r.U.length-1].info:r.Y5,r.U.length!==0||r.J||bG(r,"r"));r.loader.m2("mdstm",{rollbk:1,itag:v?v.A1.info.itag:"",popped:v?v.nH:-1,sq:F,lastslc:r.J?r.J.nH:-1,lastfraget:r.N.toFixed(3)});if(R.policy.T)return R.T=null,!0;V>n?Af(R,V):R.T=R.A1.ZJ(F-1,!1).OZ[0]}catch(q){return F=QB(q),F.details.reason=
"rollbkerr",R.loader.handleError(F.errorCode,F.details,F.severity),!1}return!0};
pF=function(R,F){var n;for(n=0;n<R.U.length&&F!==R.U[n];n++);if(n===R.U.length)sz(R,F);else{for(;n<R.U.length;)sz(R,R.U.pop());var V=sC(R);V&&V.A1.qI()&&t3(F.info.OZ,function(r){return f8J(r,V)})?(R.T=V,R.policy.N&&R.m2("cer",{lsr:"lsp",
lsp:V.KX()})):(wi(F.info.OZ[0])?(R.T=F.yG&&F.yG.N?VlE(F.yG.N):nQR(F.info.OZ[0]),R.policy.N&&R.m2("cer",{lsr:R.T.KX(),lsp:V==null?void 0:V.KX()})):(R.T=null,R.policy.N&&R.m2("cer",{lsr:"null",lsp:V==null?void 0:V.KX()})),R.loader.isOffline()&&!R.policy.nf||sz(R,F,!0))}};
wO=function(R){return R?R.YY():!1};
Qc=function(R){var F;!(F=R.A1.info.x5==="f")&&(F=R.policy.J)&&(F=R.N,F=!!F.Z&&kg(F.Z));if(F)return!0;F=rO(R);if(!F)return!1;var n=wO(F)&&F.N;return R.isManifestless&&R.lS>0?n||F.nH>=R.lS:n};
XM=function(R){var F;return Qc(R)||wO((F=R.N.aY())==null?void 0:F.info)};
zh=function(R){var F=[],n=rO(R);n&&F.push(n);F=g.vo(F,R.N.o2());n=g.m(R.U);for(var V=n.next();!V.done;V=n.next()){V=V.value;for(var r=g.m(V.info.OZ),v=r.next(),f={};!v.done;f={XQ:void 0},v=r.next())f.XQ=v.value,V.r5&&(F=g.dk(F,function(z){return function(q){return!vQJ(q,z.XQ)}}(f))),(wi(f.XQ)||f.XQ.type===4)&&F.push(f.XQ)}R.T&&!PJV(R.T,g.Ns(F),R.T.A1.kC())&&F.push(R.T);
return F};
H9J=function(R,F){if(!R.length)return!1;for(F+=1;F<R.length;F++)if(!by_(R[F-1],R[F]))return!1;return!0};
qn=function(R,F,n){n=n===void 0?!1:n;if(!R.T||!R.T.U)return NaN;R=zh(R);a:{F+=.02;var V=n;V=V===void 0?!1:V;for(var r=-1,v=0;v<R.length;++v){var f=R[v];if(f.J<=F)if(V)r=v;else if(f.startTime+f.duration>=F){F=v;break a}}F=r}return F<0?NaN:H9J(R,n?F:0)?R[F].startTime:NaN};
A2=function(R){return!(!R.T||R.T.A1===R.A1)};
WmI=function(R,F,n){return R.policy.T?Sz(R,!0)<n:(R=sC(R))&&!wO(R)?R.W>F&&R.W<F+n:!1};
sC=function(R){var F=R.N.aY();return F?F.info:rO(R)};
scf=function(R,F){var n;return!((n=R.X)==null||!n.W.has(F))||fvv(R.N,F)};
sn=function(R){for(var F=g.m(R.U),n=F.next();!n.done;n=F.next())sz(R,n.value);R.U=[];R.T=null};
a6=function(R){var F;(F=R.X)==null||YlR(F);R.UZ=[]};
sz=function(R,F,n){n=n===void 0?!1:n;F.r5&&((n===void 0?0:n)||!F.info.OZ[0].A1.qI())&&(R=R.N,R.Nq&&!R.policy.qV&&(n=R.loader,n.X2.isManifestless&&fp(n.X2,R.Nq.nH,!!R.A1.info.video)),R.Nq=null,R.W=null,R.J=R.uS,R.N=R.J?R.N-R.UZ:NaN,Z5(R));F.dispose()};
ukj=function(R){return!!R.T&&R.T.nH!==-1&&R.T.nH<R.A1.index.m1()};
Bge=function(R){var F=R.T;F&&F.nH===-1&&(R=R.N.aY())&&wi(R.info)&&(R=R.info.nH,F.Z="updateLastSliceRequested",F.nH=R)};
mAI=function(R){return t3(R.U,function(F){return F.HC})};
CF=function(R){var F;return!((F=ol(R))==null||!F.isLocked)};
g_j=function(R,F){var n=ol(R);return n&&n.info.type!==6?!ppI(F,R,n.info.nH):!1};
O9f=function(R){if((R=R.X)==null)R=void 0;else if(R.jB.length===0||R.policy.d4&&R.T<0)R=null;else{var F=R.jB[R.T]?R.jB[R.T].formatId:null;R=F?(R=R.X2.N.get(VR(F)))?R.info:null:null}return R||null};
Ivj=function(R,F){R=g.m(R.UZ);for(var n=R.next();!n.done;n=R.next())if(n=n.value,n.sS===F)return n.yOG?2:1;return 0};
KmN=function(){this.A5=!1};
DAN=function(R){var F=R===void 0?{}:R;R=F.hasSubfragmentedFmp4===void 0?!1:F.hasSubfragmentedFmp4;F=F.Xu===void 0?!1:F.Xu;var n=new KmN;n.A5=R||F;return n};
g.kVj=function(R){this.Qz=R;this.V=new KmN;this.vF=this.gR=!1;this.tT=2;this.dX=20971520;this.mQ=8388608;this.bS=120;this.e1=this.L7=this.NS=2;this.H_=this.Xn=!1;this.lP=1E3;this.YF=15;this.GZ=1;this.UZ=1.15;this.jQ=1.05;this.z3=1;this.Zl=this.G_=!1;this.zy=6;this.N=!1;this.yH=100;this.o8=10;this.FF=6;this.mz=!1;this.Bq=1;this.aI=this.FG=!1;this.YK=2;this.D1=this.zT=this.u_=!1;this.on=!0;this.A0=this.xV=this.lS=this.fm=!1;this.ZE=!0;this.xX=!1;this.J="";this.NP=[];this.M_=this.QZ=!1;this.Fb=0;this.dG=
"";this.vU=this.k_=this.Kt=this.aD=this.Ow=this.xw=this.Z=this.S9=this.iI=this.T=this.k5=this.Y5=this.fE=this.E8=this.Nq=this.Ru=this.Lo=!1;this.Ra=!0;this.Dm=this.Bk=this.tG=this.XA=this.e9=this.U=this.h1=!1;this.uS=!0;this.yJ=this.rR=this.t0=this.oC=this.qS=this.LY=this.Pk=this.Uo=this.uZ=this.lH=this.PG=this.Tn=this.tD=this.aG=this.J1=!1;this.nZ=0;this.RV=this.W=this.A3=this.fl=this.K$=this.VV=!1;this.latencyClass="UNKNOWN";this.ID=!1;this.ll=0;this.S5=g.Vn(this.Qz.experiments,"html5_min_readbehind_secs");
this.Wc=g.Vn(this.Qz.experiments,"html5_min_readbehind_cap_secs");this.nf=this.Qz.B("html5_offline_reset_media_stream_on_unresumable_slices");this.yz=NaN;this.XW=Th(this,"html5_request_size_min_kb",64)*1024;this.SQ=2097152;this.MA=Th(this,"html5_bypass_contention_secs");this.ri=1048576;this.Kk=Th(this,"html5_repredict_interval_ms",1800);this.OV=Th(this,"html5_head_miss_secs",5);this.Pc=Th(this,"html5_min_upgrade_health_secs",10);this.wO=Th(this,"html5_min_seconds_between_format_selections",8);this.Gw=
Th(this,"html5_max_buffer_health_for_downgrade_secs",15);this.R2=s6;this.MD=g.Vn(this.Qz.experiments,"html5_min_startup_buffered_media_duration_secs");this.CY=g.Vn(this.Qz.experiments,"html5_post_interrupt_readahead");this.ge=this.Qz.B("html5_disable_classic_alr");this.dR=g.Vn(this.Qz.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.hL=Th(this,"html5_ssdai_failure_retry_limit",3);this.YI=this.Qz.experiments.GH("html5_clone_original_for_fallback_location");this.eB=g.Vn(this.Qz.experiments,
"html5_subsegment_readahead_target_buffer_health_secs");this.Dl=g.Vn(this.Qz.experiments,"html5_subsegment_readahead_timeout_secs");this.AJ1=g.Vn(this.Qz.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.I8=g.Vn(this.Qz.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.PsG=g.Vn(this.Qz.experiments,"html5_subsegment_readahead_min_load_speed");this.pG=g.Vn(this.Qz.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.RpQ=g.Vn(this.Qz.experiments,
"html5_subsegment_readahead_seek_latency_fudge");this.Kf=Th(this,"html5_hopeless_secs",15);this.s3=this.Qz.B("html5_restrict_streaming_xhr_on_sqless_requests");this.Tb=g.Vn(this.Qz.experiments,"html5_max_headm_for_streaming_xhr");this.SW=this.Qz.B("html5_pipeline_manifestless_allow_nonstreaming");this.Ox=this.Qz.B("html5_prefer_server_bwe3");this.S3=this.Qz.B("html5_last_slice_transition");this.L2G=this.Qz.B("html5_store_xhr_headers_readable");this.ZS=g.Vn(this.Qz.experiments,"html5_max_drift_per_track_secs");
this.qV=this.Qz.B("html5_no_placeholder_rollbacks");this.oFG=this.Qz.B("html5_subsegment_readahead_enable_mffa");this.KC=this.Qz.B("html5_allow_video_keyframe_without_audio");this.D1=g.ad(this.Qz)&&!g.PC()&&this.Qz.B("html5_adjust_media_time_for_non_cobalt_tv");this.Xj=this.Qz.B("html5_enable_vp9_fairplay");this.SH=1048576;this.qA=this.Qz.B("html5_woffle_resume");this.qE=this.Qz.B("html5_abs_buffer_health");this.ZG=this.Qz.B("html5_interruption_resets_seeked_time");this.Nv=g.Vn(this.Qz.experiments,
"html5_max_live_dvr_window_plus_margin_secs")||46800;this.IB=this.Qz.B("html5_report_captions_ctmp_qoe");this.zR=this.Qz.B("html5_explicitly_dispose_xhr");this.TB=!this.Qz.B("html5_encourage_array_coalescing");this.Qz.B("html5_limit_media_merge_size")?s6?Nl()<21?this.lX=786432:this.lX=8388608:this.lX=262144:this.lX=0;this.hC=this.Qz.B("html5_filter_non_efficient_formats_for_safari");this.Qz.B("html5_format_hybridization");this.po=this.Qz.B("html5_abort_before_separate_init");this.A2=Rx();this.Qo=
this.Qz.B("html5_serialize_server_stitched_ad_request");this.Vn=this.Qz.B("html5_attach_po_token_to_bandaid");this.zD=g.Vn(this.Qz.experiments,"html5_max_redirect_response_length")||8192;this.eU=this.Qz.B("html5_rewrite_timestamps_for_webm");this.us=this.Qz.B("html5_only_media_duration_for_discontinuities");this.jY=g.Vn(this.Qz.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Qz.B("html5_onesie_live");this.Mz=g.Vn(this.Qz.experiments,"html5_onesie_live_ttl_secs")||8;this.YU=g.Vn(this.Qz.experiments,
"html5_attach_num_random_bytes_to_bandaid");this.atH=this.Qz.B("html5_update_container_type_on_codec_family_change");this.HI=this.Qz.B("html5_enable_sabr_host_fallback");this.RU=this.Qz.B("html5_gapless_fallback_on_append_error");this.SY=this.Qz.B("html5_shorts_stop_request_when_buffer_to_end");this.lzH=this.Qz.B("html5_vod_stop_request_when_buffer_to_end");this.gX=this.Qz.B("html5_ssdai_use_post_for_media")&&this.Qz.B("gab_return_sabr_ssdai_config");this.Om5=this.Qz.B("html5_use_post_for_media");
this.HT=this.Qz.B("html5_use_live_ump_heartbeat");this.useUmp=this.Qz.B("html5_use_ump");this.xD=this.Qz.h7;this.oR=this.Qz.B("html5_reset_primary_stats_on_redirector_failure");this.Ex=this.Qz.B("html5_remap_to_original_host_when_redirected");this.d8=this.Qz.B("html5_use_network_error_code_enums");this.Cg=this.Qz.B("html5_disable_overlapping_requests");this.enableServerDrivenRequestCancellation=this.Qz.B("html5_enable_server_driven_request_cancellation");this.Vy=this.Qz.B("html5_enable_sabr_request_timing");
this.VP=this.Qz.B("html5_enable_lawnmower");this.hD=this.Qz.CC()?g.Vn(this.Qz.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.zE=g.Vn(this.Qz.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.qQ=this.Qz.B("html5_live_defrag_only_h264_playbacks");this.jc=this.Qz.B("html5_live_defrag_only_h264_formats");this.VO=g.Vn(this.Qz.experiments,"html5_drm_byterate_soft_cap");this.LS=g.Vn(this.Qz.experiments,"html5_drm_live_byterate_soft_cap");this.X=this.Qz.B("html5_sabr_log_request_creation");
this.h7=this.Qz.B("html5_use_buffer_timeline_for_sabr_request_creation");this.Yy=this.Qz.B("html5_sabr_report_request_cancellation_info");this.HD=this.Qz.B("html5_spoof_4k");this.dP=Th(this,"html5_min_media_duration_for_cabr_slice");this.jF=Th(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")||.01;this.TC=this.Qz.B("html5_remove_defrag_without_frame_level_streaming");this.Y8=this.Qz.B("html5_consume_all_buffered_bytes_one_poll");this.DI=this.Qz.B("html5_disable_urgent_adaptation");this.yd=
this.Qz.B("html5_apply_constraints_in_client_for_sabr");this.sH=this.Qz.B("html5_send_video_playback_ustreamer_config");this.bO=Th(this,"html5_max_discontinuity_rewrite_count");this.WU=Th(this,"html5_fixed_media_duration_for_request");this.r8=this.Qz.B("html5_apply_fix_for_missing_seg_info_without_logger");this.xV=this.Qz.B("html5_enable_audio_quality_setting");this.Qz.B("html5_enable_audio_quality_setting_feature");this.Sm=Th(this,"html5_sabr_request_limit_per_period");this.g4=this.Qz.B("html5_sabr_dispose_media_objects");
this.w4=this.Qz.B("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.Qz.B("html5_high_res_seek_logging");this.fZ=this.Qz.B("html5_disable_chunk_synchronization_sabr_seek");this.Xq=g.Vn(this.Qz.experiments,"html5_override_micro_discontinuities_threshold_ms");this.PU=this.Qz.B("html5_byterate_constraints");this.G1=this.Qz.B("html5_refactor_sabr_audio_format_selection_logging");this.LO=this.Qz.B("enable_sabr_snackbar_message");this.Qz.B("html5_reinit_source_buffer_by_new_element");this.Db=this.Qz.B("html5_refactor_sabr_video_format_selection_logging");
this.NGZ=this.Qz.B("html5_log_slice_info_in_sbu");this.pC=Th(this,"html5_paced_poll_ms");this.n1=Th(this,"html5_paced_poll_min_health_ms");this.IS=this.Qz.B("html5_disable_sabr_fallback");this.d4=this.Qz.B("html5_track_current_buffered_range_at_sync");this.Xl=g.ad(this.Qz)?500:2E3;this.vA=this.Qz.B("html5_sabr_live_timing");this.Xg=this.Qz.B("html5_count_updating_slice_for_buffer_health");this.N3=this.Qz.B("html5_report_max_buffer_bytes_limit_to_sabr");this.Nr=this.Qz.B("html5_sabr_live_audio_early_return_fix");
this.L1=g.Vn(this.Qz.experiments,"html5_platform_max_buffer_health_oversend_duration_secs");this.eH=this.Qz.B("html5_cuepoint_identifier_logging");this.m6Z=this.Qz.B("html5_sabr_log_server_xtag_selection_onesie_mismatch");this.GC=this.Qz.B("html5_skip_client_drm_license_constraint");this.Lo=this.Qz.B("html5_pseudogapless_shorts_skip_abort_on_transition");this.Pk=this.Qz.B("html5_sabr_request_on_constraint");this.b$=this.Qz.B("html5_live_metadata_resets_timeout");this.A3=this.Qz.B("html5_sabr_log_invalid_sabr_current_time");
this.Tl=this.Qz.B("html5_ssdai_new_decoration_logic");this.Hx=this.Qz.B("html5_enable_smooth_audio_offset");this.E5=this.Qz.B("html5_cuepoint_list_clear_on_seek");this.Uk=this.Qz.rg().T.pH(o6);this.Mq=this.Qz.rg().T.pH(i99);this.o5Z=this.Qz.B("html5_ssdai_clear_backoff_on_cuepoint_list_resolved");this.Cf=this.Qz.rg().T.pH(xAv);this.ll=g.Vn(this.Qz.experiments,"html5_sabr_unused_bloat_size_bytes")};
Kj6=function(R,F,n){n=n===void 0?!1:n;F.video.qualityOrdinal>1080&&!R.gR&&(R.dX=36700160,R.mQ=5242880,R.SQ=Math.max(4194304,R.SQ),R.gR=!0);F.video.qualityOrdinal>2160&&!R.vF&&(R.dX=104857600,R.yz=13107200,R.vF=!0);g.Vn(R.Qz.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?F.isEncrypted()&&g.PC()&&g.E2("samsung")&&(g.E2("kant")||g.E2("muse"))&&(R.yz=g.Vn(R.Qz.experiments,"html5_samsung_kant_limit_max_bitrate")):F.isEncrypted()&&g.PC()&&g.E2("kant")&&(R.yz=1310720);R.VO!==0&&F.isEncrypted()&&
(R.yz=R.VO);R.LS!==0&&F.isEncrypted()&&n&&(R.yz=R.LS);F.yz&&(R.ri=Math.max(R.XW,Math.min(R.SQ,5*F.yz)))};
$z=function(R){return R.T&&R.xw};
yc=function(R){return R.T&&R.iI&&R.playbackStartPolicy};
Uz=function(R,F,n,V){R.iI&&(R.playbackStartPolicy=F,R.GW=n,R.Rj=V)};
Th=function(R,F,n){n=n===void 0?0:n;return g.Vn(R.Qz.experiments,F)||n};
YPV=function(R){var F=R===void 0?{}:R;R=F.aI;var n=F.A5;var V=F.WB;var r=F.VZ;F=F.lK;this.aI=R;this.A5=n;this.WB=V;this.VZ=r;this.lK=F};
rde=function(R,F){if(F<0)return!0;var n=R.VZ();return F<n||F===n&&!R.aI||F===n&&(R=R.lK())&&F===R.nH?!0:!1};
vT_=function(R,F,n){if(!rde(R,F))return 0;if(!R.A5||!isNaN(n)&&n>0)return 2;if(F<0)return 1;n=R.VZ();return F<n||F===n&&(R=R.lK())&&F===R.nH&&!R.pending?2:1};
jz=function(R,F,n){g.G.call(this);this.loader=R;this.policy=F;this.AJ=n;this.U=0;this.T=!1;this.delay=new g.ZK(this.N,this.policy.hD,this);g.d(this,this.delay)};
Hf=function(R,F){Qf(24,F.T)||(R.jn=F,R.U=0,g.eI(R.delay))};
JPV=function(R,F,n,V,r){var v=this;this.loader=R;this.policy=F;this.AJ=n;this.jn=V;this.GY=r;this.done=!1;this.onTimeout=function(){v.done||(v.done=!0,v.onError("net.timeout"))};
this.size=Math.ceil(Math.min(1E5,.1*tf(this.AJ)));this.timing=new W9(this,{AJ:this.AJ,lF:this.size,KQ:!0,gI:function(){},
u2:this.policy.N});R=RR(this.jn,this.GY,this.policy).qX.clone();re(74,R);R[t[2]]!=="/videogoodput"&&(R[t[2]]="/videogoodput",R[t[11]]=t[28]);this.location=new Nc(R);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=K0(this.location,this.policy.V,this.timing,this.policy.R2,{});setTimeout(this.onTimeout,1E4)};
GV6=function(R,F,n){var V=R.m3();if(R.isComplete()||!V||R.info.jn.GY(F,n))return 0;var r=F.YK;if(!r||V<r)return 0;R=b2(n,FQ(R.info.jn,!0,F));return R.T||R.timedOut||R.started?0:2};
dAj=function(R,F,n){if(!(F.dR&&R.isComplete()&&R.canRetry()&&R.info.jn.GY(F,n))||R.info.jn.V)return 0;R=b2(n,FQ(R.info.jn,!1,F));return R.U+F.dR*PW(R,!0)>(0,g.h1)()?0:1};
h2=function(R,F,n,V,r,v,f,z,q,Q,c,w,L,S){S=S===void 0?null:S;g.G.call(this);var p=this;this.loader=R;this.policy=F;this.videoTrack=n;this.audioTrack=V;this.N=r;this.T=v;this.timing=f;this.J=z;this.schedule=q;this.X2=Q;this.U=c;this.UZ=w;this.Jt=L;this.K4=S;this.Nq=!1;this.o4="";this.pW=null;this.m0=NaN;this.J1=!1;this.vI=null;this.Bt=this.V=NaN;this.RY=this.W=0;this.logger=new g.B1("dash");this.hJ={We:function(C,y){return p.We(C,y)}};
this.policy.YU>0&&(this.o4=g.s$(this.policy.YU));this.policy.hD&&(this.X=new jz(this.loader,this.policy,this.schedule),g.d(this,this.X))};
lvR=function(R,F,n){var V=F.T?F.T.A1.jn:F.A1.jn;var r=R.N,v;(v=!R.policy.Ex)||(v=pW(46,V.T)===pW(62,V.U));v?V=!1:(r=b2(r,pW(61,V.U)),v=6E4*Math.pow(r.J,1.6),(0,g.h1)()<r.U+v?V=!1:(r.U=(0,g.h1)(),r.J+=1,V.T=V.U.clone(),V=!0));V&&R.loader.m2("hostch",{},!0);if(Wf(R,F,n)){n=R.Z(F,n);if(R.vI){var f=n.OZ[0].A1.info.id;V=R.T;r=n.OZ[0].nH;V=r<0&&!isNaN(V.W)?V.W:r;r=pm(R.T,n.OZ[0].J,V);var z=F===R.audioTrack?1:2,q=n.OZ[0].A1.info.x5;v=f.split(";")[0];a:{var Q=R.T;if(Q.T){var c=Q.T.J0.event;if(Q.T.nH===V){Q=
c==="predictStart"?void 0:Q.T.J0.event;break a}if(Q.T.nH===V-1){Q=c==="start"||c==="continue"?c:void 0;break a}}Q=void 0}if(R.policy.gX&&R.T.U!==0){var w=g.MT9(R.vI,r,V,f,z,q,Q);V<0&&z===2&&XW(R.T,0,0,!0);if(w){var L;f=((L=w.Xd)==null?void 0:L.jP)||"";var S;L=((S=w.Xd)==null?void 0:S.Xt)||-1;R.loader.m2("sdai",{ssdaiinfo:"1",ds:f,skipsq:L,itag:v,f:q,sg:V,st:r.toFixed(3)});n.J=w}}else if(S=R.vI.BH(r,V,f,z,q,Q),V<0&&z===2&&XW(R.T,0,0,!0),S){L={dec_sq:V,itag:v,st:r.toFixed(3)};if(R.policy.Qo&&F.isRequestPending(V-
1)){R.loader.m2("sdai",{wt_daistate_on_sg:V-1});return}R.loader.m2("sdai",L);S&&(n.T=new g.LW(S));R.policy.N&&(S=n.jn.Dv("id")||"",L=((w=n.T)==null?void 0:w.get("id"))||"",S!==L&&R.loader.m2("stmidmismatch",{cid:S,aid:L}))}else R.T.U!==5&&R.loader.m2("sdai",{nodec_sq:V,itag:v,st:r.toFixed(3)})}R.policy.M_&&n.OZ[0].nH!==-1&&n.OZ[0].nH<R.X2.bX&&(n=F.A1.ZJ(R.X2.bX,!1));vf(F,uB(R,n));qk(R.timing);var p;(p=R.X)==null||Hf(p,n.jn)}};
Wf=function(R,F,n){if(R.policy.Ow)return!1;var V;var r=R.T,v=((V=F.T)==null?void 0:V.nH)||-1;r.U===3&&v+1>=r.J?(r.m2("sdai",{haltrq:v+1,est:r.J}),V=!1):V=r.U!==2;if(!V||!ng(F.T?F.T.A1.jn:F.A1.jn,R.policy,R.N,R.loader.Ri)||R.loader.isSuspended&&(!Bf(R.schedule)||R.loader.LK))return!1;if(R.policy.J&&rd>=5)return g.eI(R.loader.Zp),!1;if(R.X2.isManifestless){if(F.U.length>0&&F.T&&F.T.nH===-1||F.U.length>=R.policy.Bq||!R.policy.SW&&F.U.length>0&&!R.policy.V.A5)return!1;if(F.Z)return!R.X2.isLive||!isNaN(R.m0)}if(mAI(F))return!1;
if(!F.T){if(!F.A1.o9())return!1;Af(F,R.loader.getCurrentTime())}if(ol(F)&&(F.aY()!==ol(F)||R.loader.isSuspended))return!1;r=(V=R.policy.MA)&&!F.U.length&&Sz(F,!0)<Math.min(V,Sz(n));V=F.U.length+n.U.length;v=!R.policy.Cg&&((F.U.length?F.U[0].r6():!1)||(n.U.length?n.U[0].r6():!1)||R.X2.isLive);(r||v)&&--V;if(V+1>=R.policy.tT)return!1;V=F.T;if(!V)return!0;V.type===4&&V.A1.o9()&&(F.T=g.Ns(V.A1.UT(V)),V=F.T);if(!V.YY()&&!V.A1.bP(V))return!1;v=R.X2.Kl||R.X2.X;if(R.X2.isManifestless&&v){v=F.A1.index.VZ();
var f=n.A1.index.VZ();v=Math.min(v,f);if(F.A1.index.yE()>0&&v>0&&V.nH>=v)return F.lS=v,n.lS=v,!1}if(V.A1.info.audio&&V.type===4||V.YY())return!1;v=!F.J&&!n.J;if(r=!r)r=V.W,r=!!(n.T&&!wO(n.T)&&n.T.W<r);f=F===R.videoTrack&&R.policy.Y5;return r&&(!R.X2.isManifestless||n.T&&n.T.W&&V.W)&&v&&!f||R.policy.on&&!F.J&&n.J?!1:wi(V)&&V.W>NgR(R,F)?(NgR(R,F),!1):(R=F.Sn)&&R.isLocked()?!1:!0};
NgR=function(R,F){var n=R.T;n=n.T?n.T.J0:null;if(R.policy.Y5&&n)return n.startSecs+n.FP+15;F=X9(R.loader,F);R.policy.YF>0&&(n=((0,g.h1)()-R.loader.Ix)/1E3,F=Math.min(F,R.policy.YF+R.policy.GZ*n));F=R.loader.getCurrentTime()+F;return R.policy.CY&&(n=E_E(R.loader)+R.policy.CY,n<F)?(R.loader.m2("mrl",{ori:F,mod:n},!0),R.policy.ZG&&mM(R.loader),n):F};
$AW=function(R,F,n){if(n!==0){a:if(F=F.info,n=n===2,F.T)F=null;else{var V=F.OZ[0];if(F.range)var r=zP(F.range.start,Math.min(4096,F.N));else{if(F.U&&F.U.indexOf("/range/")>=0||F.jn.Dv("defrag")==="1"||F.jn.Dv("otf")==="1"){F=null;break a}r=zP(0,4096)}r=new XQ([new QR(5,V.A1,r,"createProbeRequestInfo"+V.Z,V.nH)],F.U);r.GY=n;r.T=F.T;F=r}F&&uB(R,F)}};
uB=function(R,F){R.loader.HZ(F);var n=tlN(F),V=R.loader.dn();n={AJ:R.schedule,lF:n,Au:mce(R.J,n),hG:c1(F.OZ[0]),KQ:Qf(25,F.jn.T),u2:R.policy.N,gI:function(f,z){R.loader.wl(f,z)}};
if(R.schedule.U.Z){var r,v;n.y5=(((r=R.videoTrack.A1)==null?void 0:r.info.yz)||0)+(((v=R.audioTrack.A1)==null?void 0:v.info.yz)||0)}R.pW&&(n.nH=F.OZ[0].nH,n.m0=F.m0,n.pW=R.pW);V={h3:zYv(F,R.loader.getCurrentTime()),E1:R.policy.FG&&aR(F)&&F.OZ[0].A1.info.video?xrW(R.U):void 0,AL:R.policy.Y5,poToken:R.loader.cX(),eI:R.loader.C3(),o4:R.o4,Bt:isNaN(R.Bt)?null:R.Bt,K4:R.K4,Jt:R.Jt,RY:R.RY,RM:V};return new L0(R.policy,F,n,R.N,function(f,z){try{a:{var q=f.info.OZ[0].A1,Q=q.info.video?R.videoTrack:R.audioTrack;
if(!(f.state>=2)||f.isComplete()||f.m3()||!(!R.loader.IG||R.loader.isSuspended||Sz(Q)>3)){var c=GV6(f,R.policy,R.N);c===1&&(R.J1=!0);$AW(R,f,c);if(f.isComplete()||f.Zo()&&z<3){if(R.policy.N){var w=f.timing.Ie();w.rst=f.state;w.strm=f.xhr.xp();w.cncl=f.xhr&&f.bZ.W?1:0;R.loader.m2("rqs",w)}f.HN&&R.loader.m2("sbwe3",{},!0)}if(!R.Zo()&&f.state>=2){zRN(R.timing,f,q);var L=R.loader;R.Bt&&f.WL&&L&&(R.Bt=NaN,R.loader.Ih(f.WL),R.loader.jp(),R.loader.m2("cabrUtcSeek",{mediaTimeSeconds:f.WL}));f.cM&&R.Bt&&f.cM&&
!f.cM.action&&(R.loader.EX(R.Bt),R.Bt=NaN,R.loader.m2("cabrUtcSeekFallback",{targetUtcTimeSeconds:R.Bt}));f.PY&&R.loader.Ps(f.PY);R.policy.HT&&(R.RY=f.RY);if(f.state===3){pF(Q,f);aR(f.info)&&gO(R,Q,q,!0);if(R.vI){var S=f.info.BH();S&&R.vI.xC(f.info.OZ[0].nH,q.info.id,S)}R.loader.pX()}else if(f.isComplete()&&f.info.OZ[0].type===5){if(f.state!==4)f.fW()&&R.loader.handleError(f.T_(),f.YE());else{var p=(f.info.OZ[0].A1.info.video?R.videoTrack:R.audioTrack).U[0]||null;p&&p instanceof L0&&p.m3()&&p.y_()}f.dispose()}else{if(!f.fW()&&
f.HC&&f.state>=2&&f.state!==3){var C=f.xhr.getResponseHeader("X-Response-Itag");if(C){var y=ipe(R.U,C),u=f.info.N;if(u){var B=u-y.pL();y.N=!0;f.info.OZ[0].A1.N=!1;var O=y.bK(B);f.info=O;if(f.yG){var K=f.yG,M=O.OZ;(M.length!==K.OZ.length||M.length<K.XG.length)&&g.mW("dash/request",260511119,""+M.length,""+K.OZ.length,""+K.XG.length);K.OZ=M;var J=M[0].range,b=new sE;for(z=0;z<K.XG.length;z++)pV(b,K.XG[z].U);for(z=0;z<K.XG.length;z++){K.XG[z].info=M[z];var RJ=M[z].range;K.XG[z].U=Xv(b,RJ.start-J.start,
RJ.length)}}f.HC=!1;Oz(R.loader,R.videoTrack,y);var Fj=R.videoTrack;Fj.T&&(Fj.T.A1=y);R.loader.NQ(y.info.video.quality);var fW=f.QD();fW&&y.info.lastModified&&y.info.lastModified!==+fW&&pF(R.videoTrack,f)}}else f.HC=!1}var SE;((SE=f.KR)==null?0:SE.itagDenylist)&&R.loader.PQ(f.KR.itagDenylist);if(f.state===4)I6(R,f),R.T&&wpN(R.T,f.info,R.vI);else if(R.policy.R2&&f.JG()&&!f.isComplete()&&!I6(R,f)&&!f.fW())break a;if(f.fW()){var nW=f.info.OZ[0].A1,CW=f.T_();if(Qf(24,nW.jn.T)){var b9=g.Mu(f.xk(),3);R.loader.m2("dldbrerr",
{em:b9||"none"})}var fq=f.info.OZ[0].nH,vM=pm(R.T,f.info.OZ[0].J,fq);CW==="net.badstatus"&&(R.W+=1);if(f.canRetry()&&KF(R.loader)){if(!(f.info.jn.N>=R.policy.hL&&R.vI&&f.info.isDecorated()&&CW==="net.badstatus"&&Dw(R.vI,vM,fq))){var l9=(nW.info.video&&nW.jn.N>1||f.zt===410||f.zt===500||f.zt===503)&&!(yy(R.U.W).size>0)&&!Qf(41,nW.jn.T),ge=f.YE(),bU=nW.info.video?R.videoTrack:R.audioTrack;l9&&(ge.stun="1");R.loader.handleError(CW,ge);R.Zo()||(l9&&mn(R.U,nW),pF(bU,f),R.loader.pX())}}else y=1,R.vI&&f.info.isDecorated()&&
CW==="net.badstatus"&&Dw(R.vI,vM,fq)&&(y=0),R.X2.isLive&&f.T_()==="net.badstatus"&&R.W<=R.policy.o8*2?(S86(R.X2),R.X2.Kl||R.X2.isPremiere?TH(R.loader,0,{gW:"badStatusWorkaround"}):R.X2.X?TH(R.loader,R.X2.sf,{gW:"badStatusWorkaround",c8:!0}):iB(R.loader)):R.loader.handleError(CW,f.YE(),y);isNaN(R.Bt)||(R.loader.EX(R.Bt),R.Bt=NaN)}R.policy.pC&&!f.isComplete()?xZ(R.loader):R.loader.pX();var Ov=dAj(f,R.policy,R.N);$AW(R,f,Ov)}}}}}catch(W){CW=R.Nq?1:0,R.Nq=!0,f=qL(CW),CW=QB(W,CW),R.loader.handleError(CW.errorCode,
CW.details,CW.severity),f||R.loader.L4()}},V)};
I6=function(R,F){if(R.policy.useUmp&&F.Zo())return!1;try{var n=F.info.OZ[0].A1,V=n.info.video?R.videoTrack:R.audioTrack;if(R.X2.isManifestless&&V){R.W=0;V.Z&&(F.Zo(),F.isComplete()||F.JG(),V.Z=!1);F.LL()&&R.loader.sO.Sy(1,F.LL());var r=F.yE(),v=F.KA();tW(R.X2,r,v)}if(F.info.hG()&&!Ad(F.info))for(var f=g.m(F.Q8()),z=f.next();!z.done;z=f.next())UAj(V,z.value);for(R.loader.getCurrentTime();V.U.length&&V.U[0].state===4;){var q=V.U.shift();yPf(V,q);V.bS=q.Q0()}V.U.length&&yPf(V,V.U[0]);var Q=!!ol(V);Q&&
F instanceof Sh&&(n.info.cB()?tUj(R.timing):f0V(R.timing));return Q}catch(c){F=F.YE();F.origin="hrhs";a:{R=R.loader;n=c;if(n instanceof Error){F.msg||(F.msg=""+n.message);F.name||(F.name=""+n.name);if(n instanceof g.UR&&n.args)for(V=g.m(Object.entries(n.args)),r=V.next();!r.done;r=V.next())v=g.m(r.value),r=v.next().value,v=v.next().value,F["arg"+r]=""+v;g.mq(n);if(n.level==="WARNING"){R.TH.vX(F);break a}}R.handleError("fmt.unplayable",F,1)}return!1}};
PkJ=function(R){var F=R.videoTrack.A1.index;R.pW=new YPV({aI:R.policy.aI,A5:R.policy.V.A5,WB:F.KE(),VZ:function(){return F.VZ()},
lK:function(){return F.lK()}})};
gO=function(R,F,n,V){if(!(n.o9()||n.WC()||n.N||!ng(n.jn,R.policy,R.N,R.loader.Ri)||n.info.x5==="f"||R.policy.T)){if(V){V=R.J;var r=n.info;V=gaN(V,r.video?V.policy.NS:V.policy.L7,r.yz)}else V=0;V=n.bK(V);R=uB(R,V);Ad(V)&&vf(F,R);n.N=!0}};
kZ=function(R,F,n,V,r,v,f,z){g.G.call(this);var q=this;this.loader=R;this.gD=F;this.videoTrack=n;this.audioTrack=V;this.X2=r;this.Nq=v;this.isAudioOnly=f;this.V=z;this.U=LM;this.lS=!1;this.logger=new g.B1("sabr");this.UZ=this.X=this.jQ=this.J1=!1;this.videoInfos=this.Z=this.Nq.videoInfos;this.N=this.PG=this.Nq.T;this.T=new TB(F,v,function(Q,c){q.loader.m2(Q,c)});
this.isAudioOnly&&b9N(this,this.X2.T["0"])};
Z9I=function(R,F){var n=[];F=g.m(F);for(var V=F.next();!V.done;V=F.next())n.push(g.PH(V.value,R.X2.Zt));return n};
b9N=function(R,F,n,V){F!==R.J&&(R.J&&(R.lS=!0),R.J=F,R.w_(F,R.videoTrack,n===void 0?0:n,V))};
FJR=function(R,F){$z(R.gD)&&(R.jQ=F.reason==="m"||F.reason==="l"?!0:!1);F.reason==="m"?F.isLocked()&&env(R,F.T):R7E(R,F)?YZ(R,F.U,F.T):R.videoInfos=R.Z;R.UZ=!0;R.U=F};
R7E=function(R,F){return R.gD.GC&&F.reason==="l"||R.gD.S9?!1:R.gD.yd?!0:F.reason==="l"||F.reason==="b"||F.reason==="o"};
env=function(R,F){var n=R.T.T;if(n){R.videoInfos=R.Z;var V=g.$$(R.videoInfos,function(r){return r.id===n});
V&&V.video.qualityOrdinal===F?R.videoInfos=[V]:(V=R.videoInfos.map(function(r){return r.id}),R.loader.m2("sabrpf",{pfid:""+n,
vfids:""+V.join(".")}),YZ(R,F,F),UC(R.T,""))}else YZ(R,F,F)};
YZ=function(R,F,n){R.videoInfos=R.Z;R.videoInfos=g.dk(R.videoInfos,function(V){return V.video.qualityOrdinal>=F&&V.video.qualityOrdinal<=n})};
nGI=function(R,F,n){if(R.V){var V=g.dk(R.N,function(r){return r.id===R.V});
return J2(V,n).includes(F)}V=g.dk(R.N,function(r){var v;return!((v=r.z9)==null||!v.isDefault)});
return V.length>0?J2(V,n).includes(F):J2(R.N,n).includes(F)};
J2=function(R,F){return R.map(function(n){return VR(g.PH(n,F))})};
VZv=function(R){var F;if((F=R.U)==null?0:F.isLocked())return R.videoInfos;var n=yy(R.T);F=g.dk(R.videoInfos,function(V){return V.yz>R.gD.yz?!1:!n.has(V.id)});
R.T.T3()&&(F=g.dk(F,function(V){return V.video.width<=854&&V.video.height<=480}));
return F};
vGE=function(R,F,n,V){var r=R.X2,v=R.TH.getVideoData(),f=R.rl,z=igW({AJ:R.AJ,Qz:v.D(),TH:R.TH,SD:R.SD,gD:R.gD,zL:R.zL,jI:R.jI,GR:R.GR,j5:R.j5,NE:R.NE,t8:R.t8,sQ:R.sQ,sabrLicenseConstraint:v.sabrLicenseConstraint,oe:R.oe,Ok:R.Ok,wM:R.wM,Pd:R.Pd,y12:!!f,authorizedFormats:v.authorizedFormats,Um:R.Um,T3:R.T3}),q=P9(v,R.RM,R.nextRequestPolicy,R.O_,R.UH,R.ys,R.P1);n&&F&&(n=q.y9?q.y9.map(function(C){return C.type}):[],F("sabr",{stmctxt:n.join("_"),
unsntctxt:q.LG?q.LG.join("_"):""}));F=R.qr;n=R.Vf;if(n===void 0&&F===void 0){var Q;n=ru6(r.Zt,(Q=R.Lr)==null?void 0:Q.video);var c;F=ru6(r.Zt,(c=R.Lr)==null?void 0:c.audio)}if(v.K4)var w=v.K4;var L,S;(v=(S=R.gD)==null?void 0:S.ll)&&v>0&&(R.QC||R.DE)&&(L=new Uint8Array(v));f={Qm:z,mp:R.mp,qr:F,Vf:n,rl:f,videoPlaybackUstreamerConfig:w,s5:q,DX5:L};V&&R.Sj?R.Sj.length>0&&(f.Sj=R.Sj):R.Xd&&(f.Xd=R.Xd);var p;((p=R.gD)==null?0:$z(p))&&!SL()&&(R.Mn&&(f.Mn=R.Mn),R.bV&&(f.bV=R.bV));f.jB=R.jB;f.yX=r.dX;return f};
ru6=function(R,F){return F?[g.PH(F.info,R)]:[]};
Gh=function(R,F,n){var V=this;this.requestType=R;this.jn=F;this.vG=n;this.U=null;this.hJ={t8:function(){var r;return(r=V.data)==null?void 0:r.t8},
UH:function(){var r;return(r=V.data)==null?void 0:r.UH},
oe:function(){var r;return(r=V.data)==null?void 0:r.oe}}};
Fjf=function(R,F,n){F=RR(R.jn,fh_(R,F,n),F);R.KD()&&F.set("probe","1");return F};
fh_=function(R,F,n){R.GY===void 0&&(R.GY=R.jn.GY(F,n));return R.GY};
dO=function(R){var F,n;return((F=R.T)==null?void 0:(n=F.Qm)==null?void 0:n.nF)||0};
Mn=function(R){var F,n;return!!((F=R.T)==null?0:(n=F.Qm)==null?0:n.oe)};
tZV=function(R){var F={},n=[],V=[];if(!R.data)return F;for(var r=0;r<R.data.jB.length;r++){var v=R.data.jB[r],f=void 0;n.push("i."+((f=v.formatId)==null?void 0:f.itag)+"_st."+(v.startTimeMs+"_e."+(v.startTimeMs+v.durationMs)+"_d."+v.durationMs)+("_sn."+v.oI)+("_en."+v.GI))}for(r=0;r<R.data.mp.length;r++){v=R.data.mp[r];var z=f=void 0,q=void 0,Q=void 0;V.push("i."+((f=v.formatId)==null?void 0:f.itag)+"_sn."+v.sequenceNumber+"_sl."+(v.VN||NaN)+"_lb."+v.yR+"_tr.s_"+((z=v.QK)==null?void 0:z.startTicks)+
"_d_"+((q=v.QK)==null?void 0:q.EC)+"_t_"+((Q=v.QK)==null?void 0:Q.timescale)+"_ed_"+v.fN)}F.ptime=dO(R);F.rtype=R.requestType;F.brl=n.join(";");F.ps=V.join(";");return F};
lB=function(R){this.T=R;this.iv=(0,g.bZ)(Lr(16))};
qrR=function(R,F){var n;return g.Y(function(V){(0,g.h1)();if(R.T.T)return V.return(z7E(R,F,R.iv));n=vpf(R.T);return V.return(n.encrypt(F,R.iv))})};
QoV=function(R,F){(0,g.h1)();var n;if((n=R.T.T)==null)var V=void 0;else a:{try{var r=V9v(n.T,F,R.iv,!0);V={JA:r.JA,signature:r.signature};break a}catch(v){OK(v,"wasm ocwceas"),g.mq(v)}V=void 0}return V};
cu9=function(R,F){var n;return g.Y(function(V){(0,g.h1)();var r=R.T;r.W||(r.W=new nb9(r.N));n=r.W;return V.return(vbv(n,F,R.iv))})};
whE=function(R,F,n){var V;return g.Y(function(r){(0,g.h1)();if(R.T.T)return r.return(z7E(R,F,n));V=vpf(R.T);return r.return(V.decrypt(F,n))})};
Nn=function(R,F,n){var V,r=(V=R.T.T)==null?void 0:V.encrypt(F,n);return r?r:(new g.wY(R.T.U)).encrypt(F,n)};
z7E=function(R,F,n){var V;return g.Y(function(r){switch(r.T){case 1:var v=R.T;var f=QL();v=f?new cF(v.U,f):void 0;V=v;if(!V){r.wX(2);break}g.zv(r,3);return g.k(r,V.encrypt(F,n),5);case 5:return r.return(r.U);case 3:g.cM(r);case 2:return r.return(Nn(R,F,n))}})};
Ez=function(R){g.G.call(this);var F=this;this.G=R;this.T=new Map;this.J=[];this.U=!QL();this.UZ=g.Vn(this.G.experiments,"html5_onesie_prewarm_interval_ms");this.V=new g.ZK(this.X,this.UZ,this);this.Z=-1;this.hJ={M0o:function(){return F.T},
vV5:function(){return F.W},
nVX:function(){return SrI}};
g.d(this,this.V);sRE(this,g.xh("yt-player-bandaid-host"));this.W=this.load();this.UZ&&this.W.then(function(){F.X()})};
sRE=function(R,F){var n=F==null?void 0:F.primary;R.N(0,n);n=n?LJV(n):void 0;R.N(2,n);R.N(1,F==null?void 0:F.secondary)};
$Z=function(R,F,n){return new g.LW(((n===void 0?0:n)?"http":"https")+"://"+F+R.G.pC.baseUrl)};
sok=function(R,F){R="https://"+pW(78,F.location)+"/initplayback?c="+Wp(R.G)+"&owc=1";VP(R,"pw",function(n){n.ht=F.T})};
Pf=function(R,F,n,V){VP("https://"+F+"/videoplayback?probe=1",n,function(r){!V.B("html5_onesie_host_racing")||V.videoData.isLivePlayback||V.B("html5_onesie_probe_ec_hosts")||V.Ag||V.Dg();R.J.push(r)},function(r){R.J.push(r.details)})};
LJV=function(R){return R.replace(/(\d+)---/g,function(F,n){F=Number(n);return(F===1?2:F-1)+"---"})};
bB=function(R,F){var n,V,r,v,f,z,q,Q;return g.Y(function(c){if(c.T==1){n=$Z(R,"redirector.googlevideo.com");n.set("alr","yes");n.set("id",""+Math.round(Math.random()*1E5));if(F===1||F===2)n.set("cmo=sensitive_content","yes"),n.set("sc","yes");F===2&&n.set("cmo=td","c.youtube.com");V={format:"RAW",timeout:5E3};return g.k(c,gz(n.rD(),V),2)}r=c.U;if(r.xhr.status!==200||!r.xhr.responseText)return c.return(Promise.reject(new g.UR("b204258371_no_host",n.rD(),r.xhr.status)));v=new g.LW(r.xhr.responseText);
f=pW(30,v);z=v.get("ms");q=$Z(R,f);Q=v.get("mm");q.set("ms",z);q.set("mm",Q);return f&&LWN(f)?F!==2||Yz(f)?c.return(q):c.return(Promise.reject(new g.UR("b204258371_untrusted",f,z))):c.return(Promise.reject(new g.UR("b204258371_invalid",f,z)))})};
phW=function(R){var F=R.J;R.J=[];return F};
LWN=function(R){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(R)};
Yz=function(R){var F=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(R)&&!F.test(R)};
XhI=function(R,F){this.location=R;this.T=F};
Zw=function(R){this.Ty=R;this.U=!1;this.T=[]};
RO=function(R){for(;R.T.length&&!R.T[0].isEncrypted;){var F=R.T.shift(),n=F.videoId,V=F.QJ,r=F.formatId,v=F.buffer;F=F.Ba;if(v)F=void 0,(F=ez(R.Ty.vG,n))==null||tZ(F,V,r,v);else if(F)R.Ty.vG.xE(n,V,r);else if(V=R.Ty,V.T[r].pA=!0,n=ez(V.vG,n),n==null?0:n.vT.has(r))n==null||Vy(n,r)}};
g.AuI=function(R){this.data=R;this.T=0;this.J=!1;this.N=0;this.error=!1;this.register=this.U=0;if(Fb.length===0){Fb.length=288;Fb.fill(8);for(R=144;R<280;R++)Fb[R]=R<=255?9:7;nh.length=32;nh.fill(5);V0.length=286;V0.fill(0);for(R=261;R<285;R++)V0[R]=Math.floor((R-261)/4);rx[257]=3;for(R=258;R<285;R++){var F=rx[R-1];F+=1<<V0[R-1];rx[R]=F}rx[285]=258;for(R=0;R<30;R++)v6[R]=R<=3?0:Math.floor((R-2)/2);for(R=fh[0]=1;R<30;R++)F=fh[R-1],F+=1<<v6[R-1],fh[R]=F}R=100+7*this.data.length;this.data[0]===31&&this.data[1]===
139&&(R=(new DataView(this.data.buffer,this.data.byteOffset+this.data.length-4)).getUint32(0,!0),this.data=this.data.subarray(10,this.data.length-8));this.output=new Uint8Array(R)};
var sJj=function(R,F){return aJ[t[22]](this,4,R,F)};
g.oGR=function(R){for(;!R.J&&!R.error;){var F=R;F.J=!!tK(F,1);switch(tK(F,2)){case 2:var n=[],V=[];V.length=19;V.fill(0);var r=tK(F,5)+257;var v=tK(F,5)+1;for(var f=tK(F,4)+4,z=0;z<f;z++)V[ahN[z]]=tK(F,3);V=zd(V);for(f=r+v;n.length<f;){z=Ctf(F,V);switch(z){case 16:z=n[n.length-1];var q=tK(F,2)+3;break;case 17:z=0;q=tK(F,3)+3;break;case 18:z=0;q=tK(F,7)+11;break;default:q=1}for(;q>0;q--)n.push(z)}n.length!==f?F.error=!0:(v=n.slice(-v),n.length=r,Tdf(F,n,v));break;case 1:Tdf(F,Fb,nh);break;case 0:qC(F,
F.T&7);n=tK(F,16);r=tK(F,16);(n^r)!==65535&&(F.error=!0);F.output.set(F.data.subarray(F.U,F.U+n),F.N);F.U+=n;F.N+=n;break;default:F.error=!0}R.N>R.output.length&&(R.output=new Uint8Array(R.N*2),R.N=0,R.U=0,R.J=!1,R.T=0,R.register=0)}R.output.length!==R.N&&(R.output=R.output.subarray(0,R.N));return R.error?new Uint8Array(0):R.output};
Tdf=function(R,F,n){F=zd(F);n=zd(n);for(var V=R.data,r=R.output,v=R.N,f=R.register,z=R.T,q=R.U;;){if(z<15){if(q>V.length){R.error=!0;break}f|=(V[q+1]<<8)+V[q]<<z;q+=2;z+=16}var Q=F[f&127];if(Q<0)for(f>>=7;Q<0;)Q=F[(f&1)-Q],f>>=1;else f>>=Q&15;z-=Q&15;Q>>=4;if(Q<256)r[v++]=Q;else if(R.register=f,R.T=z,R.U=q,Q>256){f=rx[Q];f+=tK(R,V0[Q]);q=Ctf(R,n);z=fh[q];z+=tK(R,v6[q]);if(yuv&&f<z)z=v-z,r.copyWithin(v,z,z+f);else for(q=v+f,Q=v;Q<q;Q+=4)r[Q]=r[Q-z],r[Q+1]=r[Q-z+1],r[Q+2]=r[Q-z+2],r[Q+3]=r[Q-z+3];v+=
f;f=R.register;z=R.T;q=R.U}else break}R.N=v};
Ctf=function(R,F){if(R.T<7){var n=R.data,V=R.U;V>n.length&&(R.error=!0);R.register|=(n[V+1]<<8)+n[V]<<R.T;R.U+=2;R.T+=16}n=F[R.register&127];if(n>=0)return qC(R,n&15),n>>4;for(qC(R,7);n<0;)n=F[tK(R,1)-n];return n>>4};
tK=function(R,F){for(;R.T<F;){if(R.U>=R.data.length)return R.error=!0,0;R.register|=R.data[R.U++]<<R.T;R.T+=8}var n=R.register&(1<<F)-1;R.register>>=F;R.T-=F;return n};
qC=function(R,F){R.T-=F;R.register>>=F};
zd=function(R){for(var F=[],n=g.m(R),V=n.next();!V.done;V=n.next())V=V.value,F[V]||(F[V]=0),F[V]++;var r=F[0]=0;n=[];var v=0;V=0;for(var f=1;f<F.length;f++)F[f]?V=f:F[f]=0,r=r+F[f-1]<<1,n[f]=r,f>7&&(v+=F[f]);for(r=1;r<v;)r<<=1;F=128;V=new Int16Array(128+(r+V)*2);for(v=0;v<R.length;v++)if(f=R[v]){for(var z=n[f]++,q=r=0;q<f;q++)r=r<<1|z>>q&1;z=v<<4|f;if(f<=7)for(q=1<<7-f;q--;)V[q<<f|r]=z;else{q=r&127;f-=7;for(r>>=7;f--;){V[q]||(V[q]=-F,F+=2);var Q=r&1;r>>=1;q=Q-V[q]}V[q]=z}}return V};
Q0=function(R,F,n){this.T=R;this.context="oprgz2";this.m2=F;this.U=n};
UFj=function(R,F){return QW(R,function(){var n=this;return function r(){var v,f,z,q,Q,c;return A7(r,function(w){switch(w.T){case 1:return g.qs(w,2),f=Date.now(),g.zv(w,4,5),c6(n,"s"),z=Tv,Vz(w,cQ(F()),7);case 7:q=z(w.U);if(!q)throw Error("no result");c6(n,"e");return w.return(q);case 5:g.wq(w,0,2);Q=Date.now();n.BI("gz",Q-f,v);g.S7(w,2);break;case 4:throw c=g.cM(w),c6(n,"f"),v=c,n.f4(v,"gz"),c;case 2:g.wq(w),g.S7(w,0)}})}()})};
c6=function(R,F){R.U("dcmprs_"+R.context+"_"+R.T+"_gz_"+F)};
WJI=function(R,F,n,V){return QW(void 0,function(){return function v(){var f,z,q,Q;return A7(v,function(c){switch(c.T){case 1:g.qs(c,2);f=function(w,L){return UFj(new Q0(w,n,V),function(){return rv(L(R))})};
if(!wx){c.wX(4);break}g.zv(c,5);z=Tv;return Vz(c,cQ(f("n",jov)),7);case 7:return c.return(z(c.U));case 5:g.cM(c);case 4:if(!F){c.wX(8);break}g.zv(c,9);q=F.T?"a":"w";Q=Tv;return Vz(c,cQ(f(q,function(w){return HMW(w,F)})),11);
case 11:return c.return(Q(c.U));case 9:g.cM(c);case 8:return Vz(c,cQ(f("p",h7N)),12);case 12:return c.return(c.U);case 2:g.wq(c),g.S7(c,0)}})}()})};
jov=function(R){var F,n,V,r,v,f,z,q,Q;return g.Y(function(c){switch(c.T){case 1:if(!wx)throw Error("DecompressionStream is not supported");F=Y0.JL();n=new DecompressionStream("gzip");V=n.writable.getWriter();V.write(R);V.close();r=n.readable.getReader();v=new sE([]);case 2:return g.k(c,r.read(),5);case 5:f=c.U;z=f.value;if(q=f.done){c.wX(4);break}v.append(z);c.wX(2);break;case 4:return Q=CV(v),Y0.Bu("gznb",F,Math.ceil(Q.byteLength/16)),c.return(Q)}})};
h7N=function(R){var F=Y0.JL();R=g.oGR(new g.AuI(R));Y0.Bu("gzjb",F,Math.ceil(R.byteLength/16));return R};
HMW=function(R,F){var n=Y0.JL();R=F.Jj(R);try{var V=R.byteOffset,r=R.byteLength,v=F.exports.getInflatedSize(V,r);if(v===0)throw Error("wasm_gz: bad input");var f=F.malloc(v),z=F.exports.inflateGzip(V,r,f);if(z)throw F.free(f),Error("wasm_gz: fail"+z);var q=new Uint8Array(F.exports.memory.buffer,f,v)}finally{F.free(R.byteOffset)}F=F.O2(q);Y0.Bu("gzwb",n,Math.ceil(F.byteLength/16));return F};
Sb=function(R){eh.call(this,"onesie",R);this.vG=R;this.T={};this.J=!0;this.N=null;this.queue=new Zw(this);this.W={}};
Lh=function(R){var F=R.queue;F.T.length&&F.T[0].isEncrypted&&!F.U&&(F.T.length=0);F=g.m(Object.keys(R.T));for(var n=F.next();!n.done;n=F.next()){n=n.value;var V=R.T[n];if(!V.pA){var r=R.queue;r.T.push({videoId:V.videoId,formatId:n,isEncrypted:!1});r.U||RO(r)}}};
uVe=function(R,F){var n=F.totalLength,V=!1;switch(R.N){case 0:R.GS(F,R.J).then(function(r){var v=R.vG;v.N5("oprr");v.playerResponse=r;v.uY||(v.vV=!1);sp(v)},function(r){R.vG.fail(r)});
break;case 2:R.N5("ormk");F=CV(F);R.queue.decrypt(F);break;default:V=!0}R.vG.uW&&R.vG.m2("ombup","id.11;pt."+R.N+";len."+n+(V?";ignored.1":""));R.N=null};
BdW=function(R,F){R.vG.N5("oprgz2_s");F=WJI(F,R.vG.D().k5,R.vG.uW?R.vG.m2.bind(R.vG):function(){},function(n){R.vG.N5(n)});
z4(F,function(){R.vG.N5("oprgz2_e")},function(){R.vG.N5("oprgz2_f")});
return F};
mFe=function(R,F){var n,V,r,v,f;return g.Y(function(z){switch(z.T){case 1:R.vG.N5("oprgz_s");if(!wx){z.wX(2);break}g.zv(z,3);return g.k(z,jov(F),5);case 5:return n=z.U,R.vG.N5("oprgz_n"),R.vG.m2("oprsgz",{i:"n"}),z.return(n);case 3:V=g.cM(z),R.vG.m2("gzerr",{impl:"native",err:""+V});case 2:if(r=R.vG.D().k5)try{return v=HMW(F,r),R.vG.N5("oprgz_w"),R.vG.m2("oprsgz",{i:"w"}),z.return(v)}catch(q){R.vG.m2("gzerr",{impl:"wasm",err:""+q})}f=h7N(F);R.vG.N5("oprgz_p");R.vG.m2("oprsgz",{i:"j"});return z.return(f)}})};
gGe=function(R){return new Promise(function(F){setTimeout(F,R)})};
OMf=function(R,F){var n=R.D();var V=R.uZ&&n.B("html5_onesie_preload_use_content_owner"),r=R.vQ;V=V===void 0?!1:V;if(n=mj(F.G.experiments,"debug_bandaid_hostname")){var v=g.Vn(F.G.experiments,"debug_bandaid_port");v=v>0?n+":"+v:n;n=F.G.experiments.GH("debug_bandaid_insecure_scheme");F=$Z(F,v,n)}else V&&(r==null?0:r.url)&&!F.U?(v=pW(46,new g.LW(r.url)),F=$Z(F,v)):F=(v=F.T.get(0))==null?void 0:v.location.clone();if(F&&R.videoId){v=Mr(R.videoId);R=[];if(v)for(v=g.m(v),n=v.next();!n.done;n=v.next())R.push(n.value.toString(16).padStart(2,
"0"));F.set("id",R.join(""));return F}};
IhI=function(R,F,n){n=n===void 0?0:n;var V,r;return g.Y(function(v){if(v.T==1)return V=[],V.push(F.load()),n>0&&V.push(gGe(n)),g.k(v,Promise.race(V),2);r=OMf(R,F);return v.return(r)})};
KJ9=function(R,F,n,V){V=V===void 0?!1:V;R.set("cpn",F.clientPlaybackNonce);R.set("opr","1");var r=F.D();R.set("por","1");QL()||R.set("onem","1");F.startSeconds>0&&R.set("osts",""+F.startSeconds);V||(r.B("html5_onesie_disable_partial_segments")&&R.set("oses","1"),F=r.B("html5_gapless_onesie_no_media_bytes")&&hu(F)&&F.uZ,n&&!F?(F=n.audio,R.set("pvi",n.video.join(",")),r.B("html5_onesie_disable_audio_bytes")||R.set("pai",F.join(",")),s6||R.set("osh","1")):(R.set("oad","0"),R.set("ovd","0"),R.set("oaad",
"0"),R.set("oavd","0")))};
var yvI=function(R){return aJ[t[22]](this,1,R)};
DF9=function(R,F,n,V,r){r=r===void 0?!1:r;var v="https://youtubei.googleapis.com/youtubei/"+F.dG.innertubeApiVersion+"/player",f=[{name:"Content-Type",value:"application/json"}];V&&f.push({name:"Authorization",value:"Bearer "+V});f.push({name:"User-Agent",value:g.ft()});g.ew("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.ew("EOM_VISITOR_DATA")}):(n=n.visitorData||g.ew("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:n});(n=g.ew("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&f.push({name:"X-YouTube-Lava-Device-Context",
value:n});(F=mj(F.experiments,"debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:F});R=uA(JSON.stringify(R));return{url:v,Gp:f,postBody:R,f7S:r,JT:r}};
ph=function(R,F,n,V,r,v,f,z,q){var Q=R.l8,c=R.v4;R=R.CIG;var w=Q!==void 0&&c!==void 0,L=V.getVideoData(),S,p=F.T.encryptedClientKey;F=w?F.iv:void 0;w=tf(v,!0);r=r||!!QL()&&w>1572864;return{innertubeRequest:{vwG:R,R0:Q,v4:c,encryptedClientKey:p,iv:F,e2S:!0,VQ:!0,VA:"DecompressionStream"in window||!r,u7H:n.experiments.GH("html5_use_jsonformatter_to_parse_player_response")},Qm:igW({AJ:v,Qz:n,TH:V,SD:L.startSeconds*1E3}),onesieUstreamerConfig:f,xr:z,s5:P9(L),reloadPlaybackParams:(S=L.xw)==null?void 0:
S.reloadPlaybackParams,iCX:q}};
iM9=function(R,F,n,V,r,v,f,z){var q=g.Pu(R,HH),Q;if(!R.JT)if(Q=QoV(F,q)){var c=Q.JA;Q=Q.signature}else Q=c=F.encrypt(q),(0,g.h1)(),Q=e5J(new ZI_(F.T.N),Q,F.iv);return ph(c&&Q?{l8:c,v4:Q}:{CIG:q},F,n,V,!!R.JT,r,v,f,z)};
xF9=function(R,F,n,V,r,v,f,z){var q,Q,c;return g.Y(function(w){if(w.T==1)return q=g.Pu(R,HH),g.k(w,qrR(F,q),2);if(w.T!=3)return Q=w.U,g.k(w,cu9(F,Q),3);c=w.U;return w.return(ph({l8:Q,v4:c},F,n,V,!!R.JT,r,v,f,z))})};
k7e=function(R,F,n,V,r,v,f,z){var q=g.Pu(R,HH);if(q=QoV(F,q))return ph({l8:q.JA,v4:q.signature},F,n,V,!!R.JT,r,v,f,z)};
AK=function(R,F,n){g.G.call(this);var V=this;this.TH=R;this.playerRequest=F;this.AJ=n;this.logger=new g.B1("onesie");this.dk=[];this.Lb=[];this.xhr=null;this.state=1;this.F9=new oi;this.mf=!1;this.playerResponse="";this.K2=new gA(this);this.Ty=new Sb(this);this.Bs="";this.Ag=this.Xm=!1;this.Ju="";this.enableCompression=this.uY=this.Ud=!1;this.WD=[];this.sS=-1;this.YP=0;this.G=this.TH.D();this.videoData=this.TH.getVideoData();this.uW=this.G.CC();this.D$=this.G.pC;this.GX=new lB(this.D$.T);this.er=
this.G.B("html5_onesie_check_timeout");this.YM=new g.ZK(this.O3,500,this);this.ul=new g.ZK(this.Dg,1E4,this);this.g_=new g.ZK(function(){if(!V.isComplete()){var r=Xb(V);V.fail(new g.z$("net.timeout",r))}},1E3);
this.Ip=new g.ZK(this.SNS,2E3,this);this.hj=this.TH.C3();this.vV=this.B("html5_onesie_wait_for_media_availability");g.d(this.videoData,this);g.d(this,this.YM);g.d(this,this.ul);g.d(this,this.Ip);R=OV();s6&&R&&(this.au=new Map);this.cZ=new Map;this.Lp=new Map;this.zs=new Map;this.gf=new Map};
ez=function(R,F){var n;return(n=R.au)==null?void 0:n.get(F)};
Ju9=function(R,F,n){var V;return g.Y(function(r){if(r.T==1)return R.N5("oprd_s"),Yre(R)?g.k(r,whE(R.GX,F,n),3):(V=R.GX.decrypt(F,n),r.wX(2));r.T!=2&&(V=r.U);R.N5("oprd_c");return r.return(V)})};
G7E=function(R){return R.B("html5_onesie_host_probing")||R.uW?s6:!1};
sp=function(R){if(!R.playerResponse)return!1;if(R.Ud)return!0;var F=R.videoData.B("html5_onesie_audio_only_playback")&&Wh(R.videoData);if(R.au&&R.vV){if(!R.au.has(R.Bs))return!1;var n=R.au.get(R.Bs),V;if(V=n){V=!1;for(var r=g.m(n.vT.keys()),v=r.next();!v.done;v=r.next())if(v=n.vT.get(v.value))for(var f=g.m(v.F3),z=f.next();!z.done;z=f.next())z.value.Og>0&&(v.cB?V=!0:F=!0);V=!(F&&V)}if(V)return!1}R.N5("ofr");R.F9.resolve(R.playerResponse);if(!R.er){var q;(q=R.g_)==null||q.start();R.ul.start()}return R.Ud=
!0};
MZN=function(R){if(R.au&&!R.B("html5_onesie_media_capabilities")){R.N5("ogsf_s");var F=mdR(R.TH.getVideoData(),function(V,r){R.m2(V,r)}),n=dFf(R.TH);
F.video=oTf(n,F.video);R.N5("ogsf_c");if(F.video.length)return F;R.m2("ombspf","l."+n.U+";u."+n.T+";o."+n.N+";r."+n.reason)}};
Yre=function(R,F){return R.B("html5_onesie_sync_request_encryption")||(F==null?0:F.JT)?!1:!!QL()};
Xb=function(R){if(!R.Ul)return{};var F=R.Ul.Ie(),n;F.d=(n=R.Ul.PG)==null?void 0:n.F6();F.shost=R.S4;F.ty="o";return F};
lhe=function(R,F){var n,V;(V=(R=(n=R.au)==null?void 0:n.get(F))==null)||(F=R.N?!1:R.N=!0,V=!F);return!V};
aO=function(R,F,n,V,r,v,f,z,q,Q,c,w){g.G.call(this);var L=this;this.TH=R;this.loader=F;this.policy=n;this.audioTrack=V;this.videoTrack=r;this.X2=v;this.AJ=f;this.aG=z;this.U=q;this.timing=Q;this.jQ=c;this.V=w;this.T=[];this.J={};this.dX=this.k5=!1;this.uS=this.NE=0;this.QC=!0;this.DE=!1;this.Nq=0;this.J1={mH:0,g$:0};this.h1={mH:0,g$:0};this.vI=null;this.PG={jB:[],mp:[]};this.Mq={jB:[],mp:[]};this.Z=null;this.W=[];this.bS=0;this.SQ=!1;this.hJ={xf2:function(){return L.T},
QqG:function(){return L.J},
m_1:function(){L.T.length=0},
XoH:function(){return L.videoData.bS},
zr2:function(){return L.Nq},
tfq:function(S){L.Nq=S},
XkH:function(S){L.J1.g$=S},
Oj:function(S){L.Z=S},
Ma:function(S){L.W=S},
wH:function(){return L.wH()}};
this.videoData=this.TH.getVideoData();this.UZ=this.videoData.latencyClass==="LOW"?50:this.videoData.latencyClass==="ULTRALOW"?100:this.policy.Sm;this.policy.hD&&(this.lS=new jz(this.loader,this.policy,this.AJ),g.d(this,this.lS))};
$FN=function(R,F){if(NdI(R)){F=EGJ(R,F);R.T.push(F);var n;(n=R.lS)==null||Hf(n,R.X2.UZ);R.UZ>0&&R.J1.g$++}};
EGJ=function(R,F){R.policy.X&&R.loader.m2("sabrcrq",{create:1});var n=new Gh(0,R.X2.UZ,R);R.U.UZ=!1;return PtI(R,n,F)};
Ch=function(R){var F,n=R.policy.Z&&((F=R.loader)==null?void 0:F.G7());F=R.loader.getCurrentTime()||0;F=bMe(R,F);if(R.policy.D1&&R.loader.isSeeking()){var V=qn(R.videoTrack,F);R.loader.m2("asmtfnctv",{b:F,a:V});isNaN(V)||(F=V)}V=R.loader.qC()||0;F+=V;V=eZ(R.videoData)||g.Zh(R.videoData);var r=0;n?(V&&(r=Number.MAX_SAFE_INTEGER),R.videoData.Xb&&(r=Math.ceil(R.videoData.sf*1E3))):r=Math.ceil(F*1E3);return Math.min(Number.MAX_SAFE_INTEGER,r)};
Td=function(R){return R.policy.uZ&&!!R.Z};
bMe=function(R,F){if(R.loader.isSeeking())return F;var n=R.TH.LX();if(!n)return F;n=n.vB();if(n.length===0||rl(n,F))return F;if(!R.videoTrack.lE(F)&&!R.audioTrack.lE(F))return R.loader.m2("sundrn",{b:0,lt:F}),F;for(var V=F,r=Infinity,v=0;v<n.length;v++)if(!(n.start(v)>F)){var f=F-n.end(v);f<r&&(r=f,V=n.end(v))}return V!==F&&(R.loader.m2("sundrn",{bre:V,lt:F}),r>=20)?(R.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),F):V};
y0=function(R,F,n){R=R.loader.qC()||0;return oO(F,(n+R)*1E3)/1E3+n};
NdI=function(R){if(!ZMf(R,R.J1)||XM(R.audioTrack)&&XM(R.videoTrack))return!1;if(R.policy.U)if(R.policy.W){var F;if((F=R.V)==null)var n=0;else{n=!1;F=g.m(F.T.entries());for(var V=F.next();!V.done;V=F.next())if(V=g.m(V.value),V.next(),V=V.next().value,V.event!=="predictStart"&&V.DN===5){var r=void 0,v=void 0;((r=V)==null?0:r.eD)&&Date.now()-((v=V)==null?NaN:v.eD)>1E4?V.DN=1:n=!0}}if(n)return!1}else if(n=!1,R.jQ.U===2?n=!0:R.jQ.U===3&&(Ch(R),R.loader.qC(),r=t2(R.audioTrack,R.loader.isSeeking()).jB,F=
t2(R.videoTrack,R.loader.isSeeking()).jB,V=R.loader.getCurrentTime()||0,r=y0(R,r,V),F=y0(R,F,V),F=Math.min(r,F),V=R.jQ,F>=V.N?(V.m2("sdai",{haltrq:F,est:V.N}),F=!0):F=!1,F&&(n=!0)),n&&R.policy.X&&R.loader.m2("sabrcrq",{waitad:1}),n)return!1;R.policy.h7&&(R.PG=Up(R,R.audioTrack),R.Mq=Up(R,R.videoTrack));if(!R.N)return R.policy.X&&R.loader.m2("sabrcrq",{nopolicy:1}),!0;if(R.TH.QO())return R.policy.X&&R.loader.m2("sabrcrq",{utc:1}),!0;if(R.U.X)return R.policy.X&&R.loader.m2("sabrcrq",{audio:1}),!0;if(R.policy.Pk&&
R.U.UZ)return R.policy.X&&R.loader.m2("sabrcrq",{constraint:1}),!0;if(!R.N.targetAudioReadaheadMs||!R.N.targetVideoReadaheadMs)return R.policy.X&&R.loader.m2("sabrcrq",{noreadahead:1}),!0;if(R.policy.Z&&R.loader.G7())return R.policy.X&&R.loader.m2("sabrcrq",{seekToHead:1}),!0;n=Math.min(X9(R.loader,R.audioTrack)*1E3,R.N.targetAudioReadaheadMs);F=Math.min(X9(R.loader,R.videoTrack)*1E3,R.N.targetVideoReadaheadMs);var f=Math.min(n,F),z=R.TH.getCurrentTime()*1E3,q=e7k(R,z);V=q.nN;r=q.ez;v=q.Jo;q=q.dS;
var Q=V<f;var c=r<f;if(Td(R)){z=oO(R.W,z);var w=z<f;R.TH.CC()&&w&&!Q&&!c&&R.loader.m2("sabrcrnm",{cra:z,mpra:f,cbrl:R.W.length})}if(!(Q||c||Td(R)&&w))return R.policy.h7&&R.TH.CC()&&(v<f||q<f)&&R.loader.m2("sabrncrq",{car:V,vac:r,abh:v,vbh:q,mar:n,mvr:F}),!1;if(R.policy.SY&&Rlv(R.loader)&&R.videoData.X7()||R.policy.lzH&&Rlv(R.loader))return!1;if(R.policy.X){w=R.loader.fC();w.car=V;w.vac=r;w.mar=n;w.mvr=F;w.tar=R.N.targetAudioReadaheadMs;w.tvr=R.N.targetVideoReadaheadMs;var L;w.pcl=((L=R.N.playbackCookie)==
null?void 0:L.length)||0;var S;w.vbu=n6(((S=R.TH.LX())==null?void 0:S.vB())||null);w.abh=v;w.vbh=q;R.loader.m2("sabrcrq",w)}return!0};
Up=function(R,F){Ch(R);R.loader.qC();return t2(F,R.loader.isSeeking())};
g.LW=function(R,F){return Qf[t[22]](this,18,R,F)};
oO=function(R,F){var n=0,V=-1;R=g.m(R);for(var r=R.next();!r.done;r=R.next())if(r=r.value,!(r.startTimeMs+r.durationMs<F)){if(V<0&&r.startTimeMs>F||V>=0&&r.oI>V+1)break;n=Math.max(n,r.startTimeMs+r.durationMs);V=Math.max(V,r.GI)}return Math.max(0,n-F)};
PtI=function(R,F,n){var V={AJ:R.AJ,gI:function(q,Q){R.TH.wl(q,Q)},
hG:R.policy.XA,u2:R.policy.N};R.AJ.U.Z&&(V.y5=(R.videoTrack.A1.info.yz||0)+(R.audioTrack.A1.info.yz||0));R.policy.vA&&(V.WB=R.audioTrack.A1.index.KE(),V.hG=!1);var r=fh_(F,R.policy,R.J)?2:1;r!==R.Nq&&(R.Nq=r,FxN(R));n=R.wH(n);if(R.policy.Nq&&R.policy.N&&n.O_){for(var v=r="",f=g.m(n.O_),z=f.next();!z.done;z=f.next())z=z.value,R.videoData.sabrContextUpdates.has(z)||R.policy.Nq&&n.ys&&n.ys.type===z?r+="_"+z:v+="_"+z;R.loader.m2("sabrbldrqs",{ctxts:r,misctxts:v})}!F.setData(n,R.policy,R.J)&&R.policy.Nq&&
R.loader.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);V=new zB(R.policy,F,R.X2,R.J,R,V,R.loader.C3());qk(R.timing);R.policy.X&&R.loader.m2("sabrcrq",{rn:V.M6(),probe:F.KD()});return V};
hK=function(R,F){if(F.Zo()||R.Zo())R.policy.fZ||(R.policy.Z?jb(R.loader):R.loader.pX());else{if(R.policy.N&&F.isComplete()&&F instanceof zB){var n=R.loader,V=n.m2,r,v,f=Object.assign(F.Ul.Ie(),{rst:F.state,strm:F.xhr.xp(),d:(r=F.Ul.PG)==null?void 0:r.F6(),cncl:F.xhr&&F.bZ.W?1:0,rqb:F.tI,cwt:F.bZ.N,swt:(v=F.Cn)==null?void 0:v.SG});r=Object.assign(tZV(F.info),f);V.call(n,"rqs",r)}if(F.isComplete()&&F.KD()&&F instanceof zB)R.policy.oC?F.VR()?(F.dispose(),R.T.length===0?R.loader.pX():(R=R.T[0],R instanceof
zB&&R.m3()&&R.y_())):F.fW()&&R.loader.handleError(F.T_(),F.YE()):(F.dispose(),R.loader.pX());else{if(F.wj())R.DE=!0,F instanceof zB&&zRN(R.timing,F),FxN(R),H6(R);else if(F.fW())if(n=R.TH.QO(),F instanceof zB&&Mn(F.info)&&n&&R.loader.EX(n),F instanceof zB&&rWI(F)){var z;(z=R.loader.WX)==null||Km(z)}else F instanceof AK?R.T.pop():(z=1,F.canRetry()&&KF(R.loader)&&(nMR(R,F),z=0),R.loader.handleError(F.T_(),F.YE(),z));else{if(R.loader.isSuspended&&!F.isComplete())return;H6(R)}F.Zo()||F instanceof AK||
(F.isComplete()?z=dAj(F,R.policy,R.J):(z=GV6(F,R.policy,R.J),z===1&&(R.k5=!0)),z!==0&&(n=new Gh(1,F.info.jn),n.GY=z===2,PtI(R,n)));F.isComplete()&&(R.QC=!1,F.wj()||(R.DE=!1));R.policy.pC&&!F.isComplete()?xZ(R.loader):R.loader.pX()}}};
H6=function(R){for(;R.T.length&&R.T[0].jX(R.B_());){var F=R.T.shift();VH9(R,F)}R.T.length&&VH9(R,R.T[0])};
VH9=function(R,F){F instanceof zB&&(R.gX=F);var n=new Set(F.j0(R.B_()));n=g.m(n);for(var V=n.next();!V.done;V=n.next()){var r=V.value;if(!(V=!(F instanceof AK))){V=R.U;var v=V.X2.Zt,f=J2(V.videoInfos,v);v=nGI(V,r,v);var z=f.includes(r);!V.gD.m6Z||v||z||V.loader.m2("sabrcpf",{fid:""+r,vfids:""+f.join("."),said:V.V||""});V=v||f.includes(r)}if(V&&(V=F.o2(r,R.B_()),f=R.policy.uZ&&el(V[0].A1.info.mimeType),F.JG(r,R.B_())))for(r=F.Q8(r,R.B_()),r=g.m(r),v=r.next();!v.done;v=r.next())if(v=v.value,R.policy.N&&
F instanceof AK&&R.loader.m2("omblss",{s:v.info.KX()}),f)z=R.timing,z.Nq||(z.Nq=(0,g.h1)(),g.Jz("fcb_r",z.Nq,z.T)),z=R,z.videoData.Zt()&&z.Z&&VR(z.Z)===VR(g.PH(v.info.A1.info,z.X2.Zt))&&z.TH.publish("sabrCaptionsDataLoaded",v,z.Ma.bind(z));else{z=v.info.A1.info.cB();var q=v.info.A1,Q=F instanceof AK?1:2;if(z){var c=void 0;var w=R.U,L=(c=F.cz(R.B_()))==null?void 0:c.token;w.X&&q!==w.W?c=!0:(w.X=!1,q!==w.W&&(w.W=q,w.w_(q,w.audioTrack,Q===void 0?0:Q,L)),c=!1);if(c)continue}else c=void 0,b9N(R.U,q,Q,
(c=F.cz(R.B_()))==null?void 0:c.token);c=z?R.audioTrack:R.videoTrack;F instanceof AK&&(c.Z=!1,F instanceof AK&&(z?tUj(R.timing):f0V(R.timing)));try{fF(c,V,v)}catch(S){v=QB(S),R.loader.handleError(v.errorCode,v.details,v.severity),c.L4(),R.cY(!1,"pushSlice"),jb(R.loader)}}}};
nMR=function(R,F){R.policy.Nq?R.T.splice(R.T.indexOf(F)).forEach(function(n){n.dispose()}):(R.T.pop(),F==null||F.dispose())};
rgE=function(R,F,n){for(var V=[],r=0;r<R.T.length;r++)F&&R.T[r]instanceof AK?V.push(R.T[r]):(R.policy.X&&R.loader.m2("sabrcrq",{d:R.T[r].M6(),src:n}),R.T[r].dispose());R.T=V};
FxN=function(R){R.videoData.bS.clear();if(R.videoData.sabrContextUpdates.size>0)for(var F=g.m(R.videoData.sabrContextUpdates.keys()),n=F.next();!n.done;n=F.next()){n=n.value;var V=void 0;((V=R.videoData.sabrContextUpdates.get(n))==null?0:V.sendByDefault)&&R.videoData.bS.add(n)}if(R.policy.Nq&&R.T.length)for(F=g.m(R.T),n=F.next();!n.done;n=F.next())(n=n.value.s_())&&n.type&&n.sendByDefault&&R.videoData.bS.add(n.type)};
vMI=function(R){R.policy.Yy&&(R.Y5=void 0,R.NE=0)};
fUk=function(R,F){if(F.fW()||F.Zo()){var n=R.loader,V=n.m2,r=F.state;R=R.B_();var v,f;if((F=(v=F.au)==null?void 0:v.get(R))==null)F=void 0;else{v=0;R=F.j0();for(var z=0;z<R.length;z++){var q=void 0;v+=((q=F.vT.get(R[z]))==null?void 0:q.bytesReceived)||0}F=v}F=(f=F)!=null?f:-1;V.call(n,"sabromb",{s:r,tbytes:F})}else R.T.push(F),F.WD.push(R),qk(R.timing),R.policy.tD&&F.d9&&R.kE(F.d9,F.M6())};
ZMf=function(R,F){a:{if(R.UZ>0){var n=Math.floor((0,g.h1)()/1E4);if(n===F.mH){if(F.g$>=R.UZ){F.g$===R.UZ&&(n={reason:"toomanyrequests"},n.limit=F.g$,R.loader.handleError("player.exception",n),F.g$+=1);F=!1;break a}}else F.mH=n,F.g$=0}F=!0}if(!F||R.loader.isSuspended&&R.loader.LK)return!1;if(R.X&&(0,g.h1)()<R.X)return g.eI(R.loader.Zp),!1;if(F=!(R.T.length>0)||R.policy.Nq&&R.T.length===1&&R.T[0].KI()?!0:!1){var V;F=(V=R.X2.UZ)!=null&&ng(V,R.policy,R.J,R.loader.Ri)?!0:!1}return F&&!R.SQ?!0:!1};
e7k=function(R,F){var n=tHj(R),V=n.Jo;n=n.dS;if(R.policy.h7){var r=oO(R.PG.jB,F);R=oO(R.Mq.jB,F)}else r=V,R=n;return{nN:r,ez:R,Jo:V,dS:n}};
tHj=function(R){var F=Sz(R.audioTrack,!0)*1E3;R=Sz(R.videoTrack,!0)*1E3;return{Jo:F,dS:R}};
zle=function(R){this.TH=R;this.T=new Map;this.delay=null};
W6=function(R,F){if(K6(R.TH.getPlayerState())&&R.T.size!==0){var n=F!=null?F:Array.from(R.T.values()).sort(function(r,v){return r.mediaTime-v.mediaTime});
F=R.getCurrentTime();var V=(n[0].mediaTime-F)*1E3/R.TH.getPlaybackRate();if(V<500)for(F=V>0?q69(R):F,n=g.m(n),V=n.next();!V.done;V=n.next())if(V=V.value,F>=V.mediaTime)V.resolve([V.mediaTime,V.id]),R.T.delete(V.id);else break;QqV(R,F)}};
cgj=function(R,F,n){R.T.delete(n);return new Promise(function(V){R.T.set(n,{id:n,mediaTime:F,resolve:V});V=Array.from(R.T.values()).sort(function(r,v){return r.mediaTime-v.mediaTime});
n===V[0].id&&W6(R,V)})};
wKf=function(R){var F;(F=R.delay)==null||F.dispose();R.T.clear()};
QqV=function(R,F){var n;(n=R.delay)==null||n.dispose();R.delay=null;n=Array.from(R.T.values()).sort(function(V,r){return V.mediaTime-r.mediaTime});
n.length!==0&&(F=(n[0].mediaTime-F)*1E3/R.TH.getPlaybackRate(),R.delay=new g.ZK(function(){W6(R)},F>500?F-500:F),R.delay.start())};
q69=function(R){var F,n;return(n=(F=R.TH.LX())==null?void 0:F.getCurrentTime())!=null?n:R.TH.getCurrentTime()};
uf=function(R,F,n){var V=this;this.J=R;this.cpn=F;this.TH=n;this.T=new Map;this.N=new Map;this.Z=NaN;this.U=this.pm="";this.isSeeking=!1;this.W=new zle(n);this.a9=n.a9;this.TH.subscribe("statechange",this.X,this);this.TH.subscribe("SEEK_TO",function(){V.Lh()});
this.TH.subscribe("SEEK_COMPLETE",function(){S6E(V)});
this.pm=this.U=this.cpn};
sqE=function(R,F,n){var V=R.T.get(F),r=R.J.getStartTime(F),v=R.J.getDuration(F),f=r,z;((z=V==null?void 0:V.T)!=null?z:[R.cpn]).forEach(function(q,Q){var c,w=(c=V==null?void 0:V.U[Q])!=null?c:v;if(n>=f&&n<f+w){var L;Q=q!==R.cpn?f-((L=V==null?void 0:V.J[Q])!=null?L:0):f;R.U=q;Lx6(R,q,Q,!0)}f+=w})};
AgJ=function(R,F,n,V){V=V===void 0?0:V;var r;if(F!==R.Z||((r=R.T.get(F))==null?void 0:r.N)!==(n==null?void 0:n.N))if(n?R.T.set(F,n):R.T.delete(F),!R.isSeeking){var v=R.J.getStartTime(F);R.Z=F;pKe(R,F);if(n){var f=v;n.T.forEach(function(z,q){f<v+V||(z!==R.U&&XKN(R,F,z,z!==R.cpn?f-n.J[q]:f),f+=n.U[q])})}else R.U!==R.cpn&&XKN(R,F,R.cpn,v+V)}};
pKe=function(R,F){var n;((n=R.N.get(F))!=null?n:[]).forEach(function(V){R.W.T.delete(V)});
R.N.delete(F)};
S6E=function(R){var F,n,V=(n=(F=R.TH.LX())==null?void 0:F.getCurrentTime())!=null?n:R.TH.getCurrentTime(),r=R.J.kc(V);sqE(R,r,V);R.isSeeking=!1;F=Array.from(R.T.keys()).filter(function(f){return f>=r}).sort(function(f,z){return f-z});
F=g.m(F);for(n=F.next();!n.done;n=F.next()){n=n.value;var v=n===r?V-R.J.getStartTime(r):0;AgJ(R,n,R.T.get(n),v)}};
Lx6=function(R,F,n,V){V=V===void 0?!1:V;F!==R.pm&&(R.pm=F,R.TH.publish("playbackstarted",F,n+R.TH.qC(),V))};
XKN=function(R,F,n,V){R.U=n;n=F+"."+n;R.N.has(F)?R.N.get(F).push(n):R.N.set(F,[n]);cgj(R.W,V,n).then(function(r){var v=g.m(r);r=v.next().value;v=v.next().value;var f=g.m(v.split("."));v=f.next().value;f=f.next().value;v=g.m([Number(v),f]);v.next();v=v.next().value;Lx6(R,v,r)})};
B6=function(R,F,n,V,r){this.loader=R;this.policy=F;this.schedule=n;this.TO=V;this.UZ=r;this.Nq=NaN;this.U=this.X=this.J=null;this.T=this.W=this.Z=this.startTimeSecs=NaN;this.N=!1;this.V=NaN};
aUV=function(R,F,n,V,r,v){return F.mz&&F.KC&&n===3?new B6(R,F,V,r,v):null};
C4R=function(R,F){if(R.policy.oFG){var n=F.info.yz,V=tf(R.schedule);F=F.index.KE();n=Math.max(1,V/n);R.V=Math.round(Math.max(((n-1)*F+R.policy.eB)/n,F-R.policy.Dl)*1E3)}};
ygR=function(R,F){var n=Date.now()/1E3,V=n-R.startTimeSecs,r=n-R.Z,v=r>=R.policy.pG,f=!1;if(v){var z=0;!isNaN(F)&&F>R.W&&(z=F-R.W,R.W=F);z/r<R.policy.PsG&&(f=!0);R.Z=n}n=V>=R.policy.Dl&&!R.N;if(!v&&!n&&TZf(R,F))return NaN;n&&(R.N=!0);a:{V=f;n=(0,g.h1)()/1E3-(R.TO.Cm()||0)-R.X.T-R.policy.eB;v=R.U.startTime;n=v+n;if(V){if(isNaN(F)){md(R,NaN,"n",F);v=NaN;break a}V=F-R.policy.I8;V<n&&(n=V)}else R.N&&(V=n+R.policy.eB-R.Nq+R.policy.RpQ,isNaN(F)||(V=Math.max(V,Math.min(n,F-R.policy.I8))),n=V);v=n=Math.max(n,
v)}R.T=v;if(isNaN(R.T))return R.clear(),NaN;if(!f&&TZf(R,F))return oMj(R,F),NaN;if(R.T<=R.U.startTime)return md(R,NaN,"y",F),R.clear(),NaN;if(!R.UZ(R.T,!1))return!oMj(R,F)&&f&&(md(R,NaN,"t",F),R.clear()),NaN;f=R.T;md(R,f,"s",F);R.clear();return f};
oMj=function(R,F){return R.UZ(R.T,!0)?!1:(md(R,NaN,"ns",F),R.clear(),!0)};
TZf=function(R,F){return isNaN(F)?!0:isNaN(R.T)?!1:F<R.T+(R.N?R.policy.I8:R.policy.AJ1)};
md=function(R,F,n,V){var r=R.J.YE();r.ssr_sk=(F*1E3).toFixed(0);r.ssr_t=(R.T*1E3).toFixed(0);r.ssr_r=n;r.ssr_st=(R.startTimeSecs*1E3).toFixed(0);r.ssr_n=(0,g.h1)().toFixed(0);r.ssr_f=(R.X.T*1E3).toFixed(0);r.ssr_fa=R.N?"1":"0";r.ssr_o=(R.TO.Cm()*1E3||0).toFixed(0);r.ssr_v=(V*1E3).toFixed(0);F=R.U.A1.index;F.Ap(R.U.nH,!0)&&(r.ssr_ist=(F.getStartTime(R.U.nH)*1E3).toFixed(0),r.ssr_id=(F.getDuration(R.U.nH)*1E3).toFixed(0));R.loader.m2("ssr",r)};
UjR=function(){var R={},F=window.performance;if(F){var n=F.memory;if(n){R.jsTotal=n.totalJSHeapSize;R.jsUsed=n.usedJSHeapSize;R.jsLimit=n.jsHeapSizeLimit;var V,r;R.msTotal=(r=(V=n.getMediaSourceTotalAllocatedMemory)==null?void 0:V.call(n))!=null?r:n.totalMediaSourceSize;var v,f;R.msLimit=(f=(v=n.getMediaSourceMaximumMemoryCapacity)==null?void 0:v.call(n))!=null?f:n.mediaSourceSizeLimit;var z,q;R.msUsed=(q=(z=n.getMediaSourceCurrentMemoryCapacity)==null?void 0:z.call(n))!=null?q:n.usedMediaSourceMemorySize}F.measureAvailableCpuMemory&&
(R.cbFree=F.measureAvailableCpuMemory());F.measureUsedCpuMemory&&(R.cbUsed=F.measureUsedCpuMemory())}var Q;if((Q=window.h5vcc)==null?0:Q.cVal)R.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),R.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),R.cbJs=window.h5vcc.cVal.getValue("Memory.JS");return R};
jq_=function(R){return window.PressureObserver&&new window.PressureObserver(R)};
HKv=function(R){R=R===void 0?jq_:R;g.G.call(this);var F=this;try{this.N=R(function(V){F.U=V.at(-1)});
var n;this.J=(n=this.N)==null?void 0:n.observe("cpu",{sampleInterval:2E3}).catch(function(V){V instanceof DOMException&&(F.T=V)})}catch(V){V instanceof DOMException&&(this.T=V)}};
hlv=function(R){var F={},n=window.h5vcc;F.hwConcurrency=navigator.hardwareConcurrency;R.T&&(F.cpe=R.T.message);R.U&&(F.cpt=R.U.time,F.cps=R.U.state);if(n==null?0:n.cVal)F.cb2s=n.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),F.cb5s=n.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),F.cb30s=n.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return F};
Wxj=function(R){var F;g.Y(function(n){switch(n.T){case 1:return g.zv(n,2),g.k(n,R.J,4);case 4:g.Qz(n,3);break;case 2:g.cM(n);case 3:(F=R.N)==null||F.disconnect(),g.rq(n)}})};
BZj=function(R,F){F?uY9.test(R):(R=g.zg(R),Object.keys(R).includes("cpn"))};
mjW=function(R,F,n,V,r,v){var f={format:"RAW"},z={};if(cC(R)&&wz()){var q=g.ew("EOM_VISITOR_DATA");q?z["X-Goog-EOM-Visitor-Id"]=q:V?z["X-Goog-Visitor-Id"]=V:g.ew("VISITOR_DATA")&&(z["X-Goog-Visitor-Id"]=g.ew("VISITOR_DATA"));n&&(z["X-Goog-PageId"]=n);(V=F.lS)&&!AP(F)&&(z["X-Goog-AuthUser"]=V);r&&(z.Authorization="Bearer "+r);F.B("enable_datasync_id_header_in_web_vss_pings")&&F.o8&&F.datasyncId&&(z["X-YouTube-DataSync-Id"]=F.datasyncId);if(F.B("enable_rollout_token_header")){var Q,c,w=(Q=g.ew("INNERTUBE_CONTEXT"))==
null?void 0:(c=Q.client)==null?void 0:c.rolloutToken;w&&(z["X-YouTube-Rollout-Token"]=w)}q||z["X-Goog-Visitor-Id"]||r||n||V?f.withCredentials=!0:F.B("html5_send_cpn_with_options")&&uY9.test(R)&&(f.withCredentials=!0)}Object.keys(z).length>0&&(f.headers=z);v&&(f.onFinish=v);return Object.keys(f).length>1?f:null};
gM9=function(R,F,n,V,r,v,f,z){wz()&&n.token&&(R=ql(R,{ctt:n.token,cttype:n.AY,mdx_environment:n.mdxEnvironment}));V.B("net_pings_low_priority")&&(F||(F={}),F.priority="low");v||z&&V.B("nwl_skip_retry")?(F==null?F={}:BZj(R,V.B("html5_assert_cpn_with_regex")),f?Ni().sendAndWrite(R,F):Ni().sendThenWrite(R,F,z)):F?(BZj(R,V.B("html5_assert_cpn_with_regex")),DgJ(R,F)):g.ir(R,r)};
OKW=function(R){for(var F=[],n=0;n<R;n++){for(var V={},r=Math.floor(Math.random()*9*1E8)+1E8,v="",f=0;f<9;f++)v+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(Math.random()*52)];V.videoDecoderName=v;V.elapsedTimeMs=r;F.push(V)}return F};
IUR=function(R){return window.Profiler&&new window.Profiler(R)};
KxE=function(R){/[^a-zA-Z0-9;.!_-]/.test(R)&&(R=R.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return R};
gx=function(R,F,n){R=R===void 0?100:R;F=F===void 0?100:F;n=n===void 0?IUR:n;g.G.call(this);this.sampleInterval=R;this.maxBufferSize=F;this.W=n;this.T=[];this.N=0;DjN(this)};
DjN=function(R){var F=R.sampleInterval,n=R.maxBufferSize;if(F>0&&n>0&&!R.U&&R.N<1E7)try{R.J=R.W({sampleInterval:F,maxBufferSize:n});var V;(V=R.J)==null||V.addEventListener("samplebufferfull",function(){return g.Y(function(r){if(r.T==1)return g.k(r,R.stop(),2);DjN(R);g.rq(r)})})}catch(r){R.U=KxE(r.message)}};
Op=function(R,F){var n,V,r=(n=window.h5vcc)==null?void 0:(V=n.settings)==null?void 0:V.set(R,F);return VW(r)?z4(rv(r),function(){return!0},function(){return!1}):rv(!!r)};
iKE=function(R){return Op("MediaSource.EnableUsingMediaSourceBufferedRange",R?1:0)};
xjf=function(R){return Op("HTTP3",R?1:0)};
k9v=function(R){return Op("MediaSource.EnableUsingMediaSourceAttachmentMethods",R?1:0)};
Y6N=function(R){return Op("QUIC",R?1:0)};
JgR=function(R){return Op("Media.AudioWriteDurationLocal",R)};
G9R=function(R){return Op("Media.PlayerConfiguration.DecodeToTexturePreferred",R?1:0)};
dje=function(R){return Op("Media.DisableAllocator",R?1:0)};
MH_=function(R){return Op("Media.VideoBufferSizeClampMb",R)};
lUe=function(R){return Op("Media.EnableAllocateOnDemand",R?1:0)};
NZv=function(R){return Op("Media.NotifyMemoryPressureBeforePlayback",R?1:0)};
$j_=function(){var R,F,n,V=(R=window.h5vcc)==null?void 0:(F=R.settings)==null?void 0:(n=F.getPersistentSettingAsString)==null?void 0:n.call(F,"cpu_usage_tracker_intervals");if(V!=null){var r;R=(r=JSON.parse(V))!=null?r:[];r=R.filter(function(Q){return Q.type==="total"}).map(function(Q){return Q.seconds});
F=g.m(EMV);for(n=F.next();!n.done;n=F.next())n=n.value,r.indexOf(n)===-1&&R.push({type:"total",seconds:n});var v,f;(v=window.h5vcc)==null||(f=v.settings)==null||f.set("cpu_usage_tracker_intervals_enabled",1);var z,q;(z=window.h5vcc)==null||(q=z.settings)==null||q.set("cpu_usage_tracker_intervals",JSON.stringify(R))}};
P4V=function(){var R=window.H5vccPlatformService,F="";if(R&&R.has("dev.cobalt.coat.clientloginfo")&&(R=R.open("dev.cobalt.coat.clientloginfo",function(){}))){var n=R.send(new ArrayBuffer(0));
n&&(F=String.fromCharCode.apply(String,g.I(new Uint8Array(n))));R.close()}return F};
g.DQ=function(R){g.G.call(this);var F=this;this.provider=R;this.logger=new g.B1("qoe");this.T=new Map;this.sequenceNumber=1;this.J1=NaN;this.Ll="N";this.V=this.iQ=this.Od=this.Nq=this.U=0;this.YF=this.bS=this.Z=this.gX="";this.QZ=this.Y5=NaN;this.HI=0;this.pC=-1;this.us=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.k5=this.isEmbargoed=this.PG=this.isOffline=this.isBuffering=!1;this.Yy=[];this.UZ=null;this.h1=this.J=this.lS=this.X=!1;this.N=-1;this.SQ=!1;this.oC=new g.ZK(this.zGG,750,this);this.Lt=
this.adCpn="";this.cV=this.Gn=this.Hq=this.VY=this.adFormat=void 0;this.A0=0;this.HT=new Set("cl fexp drm drm_system drm_product ns adformat live cat shbpslc".split(" "));this.uZ=new Set(["gd","pw","gp","gm","dd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.aG=!1;this.KC=NaN;this.Mq=0;this.mQ=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.on=!1;this.eB=new Set;this.hJ={Qf:function(v){F.Qf(v)},
gV2:function(){return F.W},
reportStats:function(){F.reportStats()},
mf2:function(){return F.T.get("cat")||[]},
Dv:function(v){return F.T.get(v)||[]},
m0G:function(){return F.T},
x_G:function(){return{adCpn:F.adCpn,Lt:F.Lt,adFormat:F.adFormat}},
unQ:function(){return{VY:F.VY,Hq:F.Hq,Gn:F.Gn,cV:F.cV}}};
this.jQ=this.provider.G.B("html5_qoe_relaxed_reporting");var n=g.Vn(this.provider.G.experiments,"html5_qoe_proto_mock_length");n&&!IO.length&&(IO=OKW(n));g.d(this,this.oC);try{var V,r;(r=(V=navigator).getBattery)==null||r.call(V).then(function(v){F.UZ=v})}catch(v){}g.Kh(this,0,"vps",["N"]);
R.G.CC()&&(this.Mq=(0,g.h1)(),this.KC=g.C$(function(){var v=(0,g.h1)(),f=v-F.Mq;f>500&&F.m2("vmlock",{diff:f.toFixed()});F.Mq=v},250));
this.provider.videoData.J5&&(this.remoteControlMode=bK_[this.provider.videoData.J5]||0);this.provider.videoData.nW&&(n=$Q9(this.provider.videoData.nW),n==null?0:n.length)&&(this.remoteConnectedDevices=n);R.G.CC()&&(this.uS=new HKv,g.d(this,this.uS));Uwk(R.G)&&(this.dX=new gx,g.d(this,this.dX))};
xr=function(R,F,n){var V=R.T.get(F);V?V.push(n):R.T.set(F,[n])};
g.Kh=function(R,F,n,V){xr(R,n,F.toFixed(3)+":"+V.join(":"))};
ZK_=function(R,F){var n=R.provider.getCurrentTime();g.Kh(R,F,"cmt",[n.toFixed(3)]);var V=n=R.provider.uX();if((!R.W||R.provider.G.B("html5_shorts_gapless_no_gllat")&&hu(R.provider.videoData)?0:V*1E3>R.W.H$+100)&&R.W){var r=R.W;V=r.isAd;n=n*1E3-r.H$;R.PC=F*1E3-r.B2z-n-r.T2X;r=(0,g.h1)()-n;F=R.PC;n=R.provider.videoData;var v=n.isAd();if(V||v){v=(V?"ad":"video")+"_to_"+(v?"ad":"video");var f={};n.Z&&(f.cttAuthInfo={token:n.Z,videoId:n.videoId});f.startTime=r-F;mc(v,f);g.B8({targetVideoId:n.videoId,targetCpn:n.clientPlaybackNonce},
v);uj("pbs",r,v)}else r=R.provider.TH.Mc(),r.Z!==n.clientPlaybackNonce?(r.W=n.clientPlaybackNonce,r.U=F):n.X7()||g.mq(new g.UR("CSI timing logged before gllat",{cpn:n.clientPlaybackNonce}));R.m2("gllat",{l:R.PC.toFixed(),prev_ad:+V});delete R.W}};
Yr=function(R,F){F=F===void 0?NaN:F;F=F>=0?F:g.kr(R.provider);var n=R.provider.TH.lj(),V=n.A_-(R.Y5||0);V>0&&g.Kh(R,F,"bwm",[V,(n.EK-(R.QZ||0)).toFixed(3)]);isNaN(R.Y5)&&n.A_&&R.isOffline&&R.Qf(!1);R.Y5=n.A_;R.QZ=n.EK;isNaN(n.bandwidthEstimate)||g.Kh(R,F,"bwe",[n.bandwidthEstimate.toFixed(0)]);R.provider.G.CC()&&Object.keys(n.T).length!==0&&R.m2("bwinfo",n.T);if(R.provider.G.CC()||R.provider.G.B("html5_log_meminfo"))V=UjR(),Object.values(V).some(function(v){return v!==void 0})&&R.m2("meminfo",V);
if(R.provider.G.CC()){var r;(V=(r=R.uS)==null?void 0:hlv(r))&&Object.values(V).some(function(v){return v!=null})&&R.m2("cpuinfo",V)}R.dX&&R.m2("jsprof",R.dX.flush());
R.UZ&&g.Kh(R,F,"bat",[R.UZ.level,R.UZ.charging?"1":"0"]);r=R.provider.TH.getVisibilityState();R.pC!==r&&(g.Kh(R,F,"vis",[r]),R.pC=r);ZK_(R,F);(r=elf(R.provider))&&r!==R.HI&&(g.Kh(R,F,"conn",[r]),R.HI=r);RWe(R,F,n)};
FSN=function(R){var F=R.provider.TH.lj(),n=g.kr(R.provider);RWe(R,n,F);var V=F.N;F=F.J;isNaN(V)||(R.provider.G.B("html5_unified_live_latency_reporting")&&!isNaN(F)&&F?g.Kh(R,n,"e2el",[V.toFixed(3),F.toFixed(3)]):g.Kh(R,n,"e2el",[V.toFixed(3)]))};
RWe=function(R,F,n){if(!isNaN(n.h3)){var V=n.h3;n.U<V&&(V=n.U);g.Kh(R,F,"bh",[V.toFixed(3)])}};
n1_=function(R,F){F={cpn:R.provider.videoData.clientPlaybackNonce,sequenceNumber:F,serializedWatchEndpointLoggingContext:R.provider.videoData.jc};R.serializedHouseBrandPlayerServiceLoggingContext&&(F.serializedHouseBrandPlayerServiceLoggingContext=l$(R.serializedHouseBrandPlayerServiceLoggingContext)||void 0);R.provider.videoData.playerResponseCpn&&(F.playerResponseCpn=R.provider.videoData.playerResponseCpn);IO.length&&(F.decoderInfo=IO);R.remoteControlMode&&(F.remoteControlMode=R.remoteControlMode);
R.remoteConnectedDevices.length&&(F.remoteConnectedDevices=R.remoteConnectedDevices);var n;if((n=R.cV)==null?0:n.length)F.serializedQoeContextData=R.cV.map(function(V){return uA(V)});
return F};
VKe=function(R,F,n){g.HV(R.provider.G,g.Ql(R.provider.videoData)).then(function(V){var r=!1;F.includes("&dt=")||F.includes("&cotn=")?r=!0:R.provider.G.B("qoe_with_networkless")&&(r=!0);var v=R.provider.G.B("qoe_send_and_write"),f=R.provider.G;V=mjW(F,f,R.provider.G.pageId,R.provider.G.sendVisitorIdHeader?R.provider.videoData.visitorData:void 0,V);f.B("html5_simplify_pings")&&(V=V||{});V?(V.method="POST",V.postBody=n,gM9(F,V,{token:R.provider.videoData.Z,AY:R.provider.videoData.BA,mdxEnvironment:R.provider.videoData.mdxEnvironment},
f,void 0,r,v&&R.PG)):r?(r=R.provider.G.B("networkless_ajax"),f={method:"POST",postBody:n},v&&R.PG?Ni().sendAndWrite(F,f):r?g.ux(F,{method:"POST",postBody:n}):Ni().sendThenWrite(F,f)):(v=n,v=v===void 0?"":v,K9e(F,v)||g.ir(F,void 0,void 0,void 0,v))})};
rik=function(R){if(!R.provider.G.B("html5_qoe_no_len_check")){for(var F=0,n=g.m(R.T.entries()),V=n.next();!V.done;V=n.next()){var r=g.m(V.value);V=r.next().value;r=r.next().value;F+=V.length+Number(KY(r,function(v,f){return v+f.length},0))}F>96E3&&(new g.ZK(R.reportStats,0,R)).start()}};
v1I=function(R){R.provider.videoData.uZ&&JK(R,"prefetch");R.provider.videoData.dX&&R.m2("reload",{r:R.provider.videoData.reloadReason,ct:R.provider.videoData.dX});R.provider.videoData.Fi&&JK(R,"monitor");R.provider.videoData.isLivePlayback&&JK(R,"live");s6&&JK(R,"streaming");R.provider.videoData.J5&&R.m2("ctrl",{mode:R.provider.videoData.J5},!0);if(R.provider.videoData.nW){var F=R.provider.videoData.nW.replace(/,/g,"_");R.m2("ytp",{type:F},!0)}R.provider.videoData.Xg&&(F=R.provider.videoData.Xg.replace(/,/g,
"."),R.m2("ytrexp",{ids:F},!0));R.provider.G.CC()&&R.m2("now",{wt:(0,g.h1)()});F=R.provider.videoData;var n=R.provider.G.B("enable_white_noise")||R.provider.G.B("enable_webgl_noop"),V=g.Ju(F)||g.Rq(F)||g.FY(F)||g.nK(F);(n||V)&&(n=(0,g.Gd)())&&R.T.set("gpu",[n]);SH(R.provider.videoData)&&g.Kh(R,g.kr(R.provider),"dt",["1"]);F.cotn&&!SH(F)&&R.Qf(!0);R.provider.G.CC()&&(F=(0,g.h1)()-R.provider.G.H_,R.m2("playerage",{secs:Math.pow(1.6,Math.round(Math.log(F/1E3)/Math.log(1.6))).toFixed()}));R.J=!0;R.J1=
g.C$(function(){R.reportStats()},1E4)};
tKV=function(R,F,n){var V=g.kr(R.provider);fHk(R,V,F,0,n);Yr(R,V);rik(R)};
var vNW=function(R,F,n,V,r){return aJ[t[22]](this,40,R,F,n,V,r)};
fHk=function(R,F,n,V,r){var v=R.provider.G.T.cbrver;R.provider.G.T.cbr==="Chrome"&&/^96[.]/.test(v)&&n==="net.badstatus"&&/rc\.500/.test(r)&&zWN(R,3);R.provider.G.B("html5_use_ump")&&/b248180278/.test(r)&&zWN(R,4);v=R.provider.getCurrentTime();V=V===1?"fatal":"";n=[n,V,v.toFixed(3)];V&&(r+=";a6s."+tT());r&&n.push(qYI(r));g.Kh(R,F,"error",n);R.J=!0};
ciE=function(R,F){var n=g.kr(R.provider);if(!R.provider.G.experiments.GH("html5_refactor_sabr_video_format_selection_logging")||F.T.id!==R.gX){var V=R.provider.G.rg().T.pH(o6);V&&!R.lS&&F.reason!=="m"&&(F.reason="i");var r=[F.T.id,F.U,R.gX,F.reason];V&&F.reason==="i"&&r.push(QLv(R,F));F.token&&r.push(F.token);g.Kh(R,n,"vfs",r);R.gX=F.T.id;V=R.provider.TH.getPlayerSize();V.width>0&&V.height>0&&(V=[Math.round(V.width),Math.round(V.height)],r=g.p9(),r>1&&V.push(r),g.Kh(R,n,"view",V));R.lS||(R.provider.G.CC()&&
JK(R,"rqs2"),R.provider.videoData.T&&Z6(R.provider.videoData.T)&&R.T.set("preload",["1"]));R.lS=!0;R.J=!0}F.reason==="m"&&++R.A0===100&&zWN(R,2);g.Kh(R,n,"vps",[R.Ll]);R.jQ||R.reportStats(n)};
wNN=function(R){R.N>=0||(R.provider.G.lX||R.provider.TH.getVisibilityState()!==3?R.N=g.kr(R.provider):R.SQ=!0)};
LSN=function(R,F,n){var V=R.provider.G,r=V.rg(),v=[];V.experiments.GH("html5_refactor_sabr_audio_format_selection_logging")?(F=n.T,V=[F.audio&&F.video?F.E2?F.E2:"":F.id],F.z9&&F.z9.id&&V.push(F.z9.id),F=V.join(";"),F!==R.Z&&(V=[F,R.Z,n.reason],v.push.apply(v,g.I(SYR(n))),r.T.pH(o6)&&n.reason==="i"&&v.push(QLv(R,n)),v.length>0&&V.push(v.join(";")),n.token&&V.push(n.token),g.Kh(R,g.kr(R.provider),"afs",V),R.Z=F)):n.T.id!==R.Z&&(V=[n.T.id,R.Z,n.reason],v.push.apply(v,g.I(SYR(n))),r.T.pH(o6)&&n.reason===
"i"&&v.push(QLv(R,n)),v.length>0&&V.push(v.join(";")),n.token&&V.push(n.token),g.Kh(R,F,"afs",V),R.Z=n.T.id)};
QLv=function(R,F){if(g.XY(R.provider.videoData)){R=4;var n=1}else{var V;R=(V=F.source)!=null?V:0}V="sms."+R;n!==void 0&&(V+="_"+n);return V};
SYR=function(R){var F=[];if(R=R.T.audio){var n=R==null?void 0:R.J;n!==void 0&&F.push("fl."+n);R=R==null?void 0:R.N;R!==void 0&&(R=Math.min(-R,0),F.push("vg."+R),F.push("nm.4"))}return F};
JK=function(R,F){xr(R,"cat",F)};
dx=function(R,F,n,V,r){var v=g.kr(R.provider);F!==1&&F!==3&&F!==5||g.Kh(R,v,"vps",[R.Ll]);xr(R,"xvt","t."+v.toFixed(3)+";m."+r.toFixed(3)+";g.2;tt."+F+";np.0;c."+n+";d."+V)};
zWN=function(R,F){R.h1||(xr(R,"fcnz",""+F),R.h1=!0)};
qYI=function(R){/[^a-zA-Z0-9;.!_-]/.test(R)&&(R=R.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return R};
XNv=function(R,F,n,V,r,v,f,z,q,Q){z=z===void 0?!1:z;g.G.call(this);var c=this;this.TH=R;this.schedule=F;this.policy=n;this.X2=V;this.Nq=q;this.HT=Q;this.WX=this.IG=null;this.bS=this.Y5=this.Mq=this.J1=0;this.BO=this.LK=this.isSuspended=!1;this.uS="";this.uZ={};this.mQ=NaN;this.aG=this.on=this.Ri=0;this.vI=null;this.KC=this.gX=!1;this.Ix=0;this.h1=!1;this.PG=this.k5=0;this.QZ=null;this.Z4=!1;this.HE=function(){return c.TH.HE()};
this.timing=new v0N(this.HT);this.UZ=new rA(this.schedule,this.policy);this.HI=new g.ZK(this.pX,0,this);this.YF=new g.ZK(this.pX,this.policy.pC,this);this.Zp=new g.ZK(this.pX,1E3,this);this.Yy=new g.ZK(this.pX,void 0,this);this.SQ=new g.ZK(function(){c.isSuspended||c.pX()},1E4,this);
this.pC=new g.ZK(this.DPo,250,this);this.X=this.currentTime=NaN;this.sO=new jF(5);this.lS=this.timestampOffset=NaN;this.logger=new g.B1("dash");this.oC=Infinity;this.hJ={JQo:function(){return c.PB},
sqQ:function(){return c.N},
getAudioTrack:function(){return c.audioTrack},
cn5:function(){return c.videoTrack},
woX:function(){return c.jQ},
getManifest:function(){return c.X2},
kiZ:function(){return c.U},
pX:function(){c.pX()},
x9:function(){c.J1=0;c.x9()},
U2q:function(S){return MC(c,c.videoTrack,c.IG.U,S)}};
R=q&&q.j0();q&&(ep_(q,this.X2,this.policy),this.lS=Date.now());this.T=new hZ(this,this.UZ,n,this.X2,r,R);n=hRf(this.T,v,f&&f.id);this.audioTrack=new nF(this,this.policy,n.audio,this.timing);this.videoTrack=new nF(this,this.policy,n.video,this.timing);this.videoTrack.N.jQ=this.audioTrack.aP();this.dX={updateend:this.Nz,error:this.AXS};g.d(this,this.HI);g.d(this,this.YF);g.d(this,this.Zp);g.d(this,this.Yy);g.d(this,this.SQ);n=this.policy.qQ&&this.policy.aI?!hM6(this.videoTrack.A1.info):!1;this.us=JW6({A5:this.policy.V.A5||
n,aI:this.policy.aI&&!n,R2:this.policy.R2});this.V=aUV(this,this.policy,this.us,this.schedule,this.sO,function(S,p){return sLk(c,S,p)});
this.N=new Qy(this,this.X2,this.policy,this.videoTrack,this.audioTrack,z);if(this.policy.W){z=this.TH.getVideoData();var w;this.m2("clsdai",{initld:1,admapsz:(w=z.Cf)==null?void 0:w.size});z.Cf||(z.Cf=new Map);this.jQ=new Xpj(this.policy,function(S,p){c.m2(S,p)},this.policy.E5,z.Cf)}this.PB=new wA(this,this.X2,this.videoTrack,this.audioTrack,this.policy);
w=this.policy.sH?this.TH.getVideoData().K4:null;this.Z=new h2(this,this.policy,this.videoTrack,this.audioTrack,this.uZ,this.N,this.timing,this.UZ,this.schedule,this.X2,this.T,this.V,n,w);g.d(this,this.Z);this.W=new kZ(this,this.policy,this.videoTrack,this.audioTrack,this.X2,r,Wh(this.TH.getVideoData()),f==null?void 0:f.id);g.d(this,this.W);FJR(this.W,v);this.U=new aO(this.TH,this,this.policy,this.audioTrack,this.videoTrack,this.X2,this.schedule,this.T,this.W,this.timing,this.N,this.jQ);g.d(this,this.U);
this.J=this.TH.CX.T2.W5;this.policy.Z||pNW(this);if(this.policy.fl){var L;this.eB=new uf(this.videoTrack.A1.index,(L=this.TH.getVideoData().clientPlaybackNonce)!=null?L:"",this.TH)}};
Aie=function(R){R.policy.W&&R.J&&(R.J.dk.forEach(function(F){R.CD(F,-1)}),R.J.dk=[])};
pNW=function(R){var F,n;if((F=R.J)==null?0:(n=F.KR)==null?0:n.itagDenylist){var V;R.PQ((V=R.J)==null?void 0:V.KR.itagDenylist)}var r;if((r=R.J)==null?0:r.playbackStartPolicy){var v,f;Uz(R.policy,(v=R.J)==null?void 0:v.playbackStartPolicy,3,(f=R.J)==null?void 0:f.M6())}if(R.policy.vU){F=R.B_();var z;(n=F?(z=R.J)==null?void 0:z.Lp.get(F):void 0)&&R.U.fQ(n,-1)}if(!R.X2.Nq){var q;z=(q=R.J)==null?void 0:q.Jv;(z==null?0:z.gF)&&(z==null?0:z.L3)&&R.X2.Zt&&tW(R.X2,z.gF,z.L3)}var Q;if((Q=R.J)==null?0:Q.gf){q=
R.J.gf.get(R.B_()||"");if(!q)return;R.X2&&q.formatId&&(Q=R.X2.N.get(VR(q.formatId)))&&(Q.info.debugInfo=q.debugInfo)}if(R.policy.Mq){var c;(c=R.J)==null||c.Lb.forEach(function(w){R.US(w)});
(c=R.J)!=null&&(c.Lb=[])}};
aHE=function(R,F){var n=v1(F.A1,R.X2.Zt),V,r=((V=R.Nq)==null?void 0:V.o2(n))||[];if(r.length===0)return R.m2("ombmsi",{}),!1;V=new XQ(r);if((!R.policy.PG||isFinite(R.getCurrentTime())||R.TH.QO())&&!qyf(V,R.getCurrentTime()))return R.m2("ostmf",{ct:R.getCurrentTime(),a:F.A1.info.cB()}),!1;(R=R.Nq)!=null&&(R.vT.get(n).hh=!0);return!0};
CF_=function(R){if(!R.X2.Zt)return!0;var F=R.TH.getVideoData();if(R.TH.PX())return R.m2("ombpa",{}),!1;var n,V;if(!!((n=R.J)==null?0:(V=n.Jv)==null?0:V.Sw2)!==R.X2.Kl)return R.m2("ombplmm",{}),!1;n=F.gX||F.liveUtcStartSeconds||F.N_;if(R.X2.Kl&&n)return R.m2("ombplst",{}),!1;if(R.X2.Nq)return R.m2("ombab",{}),!1;n=Date.now();return zp(R.X2)&&!isNaN(R.lS)&&n-R.lS>R.policy.Mz*1E3?(R.m2("ombttl",{}),!1):YG(F)!==0&&!R.policy.T||F.B("html5_disable_onesie_media_for_mosaic")&&wZ(F)||F.B("html5_disable_onesie_media_for_lifa_eligible")&&
cK(F)?!1:!0};
T$k=function(R,F){var n=F.A1,V=R.X2.Zt;if(CF_(R))if(R.Nq&&R.Nq.vT.has(v1(n,V))){if(V=v1(n,V),aHE(R,F)){var r=new XQ(R.Nq.o2(V)),v=function(f){try{if(f.fW())R.handleError(f.T_(),f.YE()),pF(F,f),aR(f.info)&&gO(R.Z,F,n,!0),R.pX();else if(I6(R.Z,f)){var z;(z=R.N)==null||wpN(z,f.info,R.vI);R.pX()}}catch(q){f=QB(q),R.handleError(f.errorCode,f.details,f.severity),R.L4()}};
n.N=!0;Ad(r)&&(vf(F,new Sh(R.policy,V,r,R.Nq,v)),qk(R.timing))}}else R.m2("ombfmt",{})};
o1f=function(R,F){F=F||R.videoTrack&&R.videoTrack.T&&R.videoTrack.T.startTime||R.getCurrentTime();var n=R.videoTrack,V=R.T;F=V.nextVideo&&V.nextVideo.index.kc(F)||0;V.lS!==F&&(V.Mq={},V.lS=F,Ws(V,V.T));F=!V.T.isLocked()&&V.UZ>-1&&(0,g.h1)()-V.UZ<V.policy.wO*1E3;var r=V.nextVideo&&Bs(V,V.nextVideo.info)*3<qH(V.jQ);if(!F||r)Hs(V),uG(V),V.J1=V.J1||V.nextVideo!==V.N;V.nextVideo&&!V.nextVideo.index.isLoaded()&&(V.lS=-1);Oz(R,n,V.nextVideo);Oz(R,R.audioTrack,R.T.U)};
yiW=function(R,F){R.LK=F||R.TH.D().B("html5_allow_multiview_tile_preload")&&R.TH.getVideoData().HT;R.policy.Y5||(R.isSuspended=!0,R.policy.k_&&(R.Zp.stop(),R.YF.stop(),R.HI.stop()),R.SQ.stop())};
SF=function(R,F,n,V,r){R.TH.getVideoData().iZ()?r&&R.U.bS+r/1E3>n&&(R.m2("sdai",{seg:V,rbt:n.toFixed(3),end:R.U.bS.toFixed(3),sd:r.toFixed(3)}),R.cY(!1,"rollback")):R.policy.U&&R.cY(!1,"rollback");if(R.X2.isManifestless){r=LF(R.audioTrack,V,n,F);var v=LF(R.videoTrack,V,n,F);R.policy.t0||(v&&fp(R.X2,V,!0),r&&fp(R.X2,V,!1));v&&(R.videoTrack.UZ=[]);r&&(R.audioTrack.UZ=[]);R.m2("sdai",{rollbk2_seg:V,rbt:n.toFixed(3),lt:F.toFixed(3),a:r,v:v});(r||v)&&R.policy.U&&jb(R)}};
UJ6=function(R,F){if(!isNaN(R.mQ)){var n=Date.now()-R.mQ;n<1E4&&R.m2("bfaswtch",{ep:n,sk:F!==void 0?"1":"0",sr:F||""})}};
jLf=function(R){R.policy.A0=!1;try{R.x9()}catch(F){g.uX(F)}};
HiR=function(R,F){F=F===void 0?!1:F;R.IG&&R.IG.T&&R.IG.U&&(R.IG.T.mq(R.dX,R),R.IG.U.mq(R.dX,R));Vc(R.audioTrack,null,F);Vc(R.videoTrack,null,F);R.IG&&(R.IG.J=!1);R.IG=null};
hWk=function(R){R.IG&&R.IG.D7()&&R.Aj()};
upN=function(R,F){F&&WSJ(R.TH,new Cm(F.video,F.reason));R.T.dX&&(F=g0j(R.T,"a"),R.TH.Zu(new Cm(F.audio,F.reason)))};
jb=function(R){g.eI(R.HI)};
xZ=function(R){R.policy.pC&&R.policy.R2&&Math.min(hnE(R.videoTrack),hnE(R.audioTrack))*1E3>R.policy.n1?g.eI(R.YF):R.pX()};
B$9=function(R){if(mAI(R.videoTrack))return"ssf";if(R.policy.uS&&CF(R.videoTrack)&&CF(R.audioTrack))return"updateEnd";if(XM(R.audioTrack)||XM(R.videoTrack)&&R.videoTrack.A1.info.x5!=="f")return"";if(R.PB.isSeeking()){var F=R.UZ;var n=R.videoTrack;var V=R.audioTrack;if(F.policy.T){var r=F.policy.MD;yc(F.policy)&&(r=QP(F,!1,qH(F)));F=r;n=Sz(V,!0)>=F&&Sz(n,!0)>=F}else n.U.length||V.U.length?(r=n.A1.info.yz+V.A1.info.yz,r=10*(1-qH(F)/r),F=Math.max(r,F.policy.MD),n=Sz(V,!0)>=F&&Sz(n,!0)>=F):n=!0;if(!n)return"abr";
n=R.videoTrack;if(n.U.length>0&&n.N.U.length===1&&v_N(n.N).info.X<n.bS)return"seek"}if(R.policy.U&&g_j(R.videoTrack,R.N)&&g_j(R.audioTrack,R.N))return"ssdai";n=!R.policy.zy||R.getCurrentTime()<10;R.policy.T||(n=n||R.videoTrack.A1.info.video.qualityOrdinal>360);if(!R.BO||n)return"";n=R.policy.zy;yc(R.policy)&&(n=QP(R.UZ,R.BO,qH(R.UZ)));V=R.policy.Tn?R.currentTime:R.getCurrentTime();n=WmI(R.videoTrack,V,n)||WmI(R.audioTrack,V,n);return yc(R.policy)?n?"mbnm":"":(R.videoTrack.U.length>0||R.audioTrack.U.length>
0||Wf(R.Z,R.videoTrack,R.audioTrack)||Wf(R.Z,R.audioTrack,R.videoTrack))&&n?"nord":""};
KSN=function(R,F,n){if(R.policy.uS&&CF(F))return!1;if(n.mV())return!0;if(!n.FS())return!1;var V=ol(F);if(!V||V.info.type===6)return!1;var r;if(R.policy.qS||((r=R.N)==null?0:ppI(r,F,V.info.nH)))R.bS=0;else return R.PB.isSeeking()&&jb(R),R.bS=R.bS||(0,g.h1)(),!1;if(!MC(R,F,n,V.info))return!1;if(R.X2.U&&V.info.T===0){if(n.P5()==null){r=rO(F);var v;if(!(v=!r||r.A1!==V.info.A1)){b:if(r=r.V,v=V.info.V,r.length!==v.length)r=!1;else{for(var f=0;f<r.length;f++)if(!g.Xu(r[f],v[f])){r=!1;break b}r=!0}v=!r}r=
v}else r=n.P5(),V.info.A1.WC()&&xT(V),v=V.info.A1.T,r=r!==v&&!g.Xu(r,v);r&&(v=rO(F),R.m2("initchg",{it:V.info.A1.info.id,sr:!!v&&v.A1===V.info.A1,ty:V.info.type,seg:V.info.nH}));v=g.Ey(V.info.A1.info);R.policy.G_&&v&&!r&&(g.Ey(V.info.A1.info)?(BW(g.O1(V),1836019574),BW(g.O1(V),1718909296)):(r=new gm(g.O1(V)),YFE(r),DW(r,524531317,!0),V.U=V.U.split(r.start+r.pos).l4),V.W=!1)}v=R.V&&!!R.V.J&&F.A1.info.audio;r=R.X2.isManifestless||V.W;if(!(R.X2.U&&V.info.T!==0||r&&!v)&&mJk(R,F,n,V))return!0;if(v)return!1;
v=X9(R,F);v=R.getCurrentTime()+v;if(V.info.J>v)return R.policy.T&&(F===R.videoTrack?R.Y5=R.Y5||(0,g.h1)():R.Mq=R.Mq||(0,g.h1)()),R.policy.VV&&Mi6(F.N,v,!1),!1;F===R.videoTrack?R.Y5=0:R.Mq=0;var z;R.policy.Ra&&n===((z=R.IG)==null?void 0:z.T)&&R.h1&&(n.GN()===0?(R.h1=!1,R.policy.Ra=!1):R.k5=n.GN());a:{z=R.policy.QZ?(0,g.h1)():0;f=V.W&&V.info.A1.T||void 0;v=V.U;V.W&&(v=g1N(R,V,v)||v);var q=CV(v);v=R.policy.QZ?(0,g.h1)():0;n=Oi9(R,n,q,V.info,f);(f=F.V)!=null&&(q=V.info,z=v-z,v=(0,g.h1)()-v,!f.U||ZyI(f.U,
q)&&f.U.nH===q.nH||f.flush(),f.J+=z,f.N+=v,z=1,!f.U&&q.T&&(z=2),iG(f,z,n),v=Math.ceil(q.T/1024),z===2&&f.T.add(v),f.T.add(Math.ceil((q.T+q.U)/1024)-v),f.U=q);R.PG=0;if(n===0)R.gX&&(R.gX=!1,R.KC=!1),R.aG=0,n=!0;else{if(n===2||n===5)IHv(R,"checked",n,V.info);else{if(n===1){if(!R.gX){R.gX=!0;n=!1;break a}if(!R.KC){R.KC=!0;R.TH.seekTo(R.getCurrentTime(),{gW:"quotaExceeded",c8:!0});n=!1;break a}V.info.EY()?(z=R.policy,z.dX=Math.floor(z.dX*.8),z.bS=Math.floor(z.bS*.8)):(z=R.policy,z.mQ=Math.floor(z.mQ*
.8),z.bS=Math.floor(z.bS*.8));R.policy.T?os(R.W.T,V.info.A1,!1):mn(R.T,V.info.A1)}R.TH.vX({reattachOnAppend:n})}n=!1}}if(!n)return!1;R.policy.uS&&V.info.YY()?(R.TH.D().CC()&&R.m2("eosl",{ls:V.info.KX()}),V.isLocked=!0):(F.pD(V),mrf(R.T,V.info));r&&(F=V.info.A1.vp)&&R.TH.Ws(new lG(F.key,F.type));return!0};
g1N=function(R,F,n){var V;if(V=R.policy.HD&&R.IG&&!R.IG.V&&!R.TH.Ov())F=F.info.A1.info,V=F.UY()&&G$(F)&&F.video&&F.video.width<3840&&F.video.width>F.video.height;if(V&&(R.IG.V=!0,Lb('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return n=VTJ(n),R.policy.N&&R.m2("sp4k",{s:!!n}),n};
IHv=function(R,F,n,V){var r="fmt.unplayable",v=1;n===5||n===3?(r="fmt.unparseable",R.policy.T?!V.A1.info.video||yy(R.W.T).size>0||os(R.W.T,V.A1,!1):!V.A1.info.video||yy(R.T.W).size>0||mn(R.T,V.A1)):n===2&&(R.aG<15?(R.aG++,r="html5.invalidstate",v=0):r="fmt.unplayable");V=s1(V);var f;V.mrs=(f=R.IG)==null?void 0:C6(f);V.origin=F;V.reason=n;V.trg="appenderr";R.handleError(r,V,v)};
av_=function(R,F,n,V,r){var v=R.X2;var f=R.policy.T,z=!1,q=-1,Q;for(Q in v.T){var c=el(v.T[Q].info.mimeType)||v.T[Q].info.EY();if(V===c)if(c=v.T[Q].index,c.Ap(F.nH)){z=c;var w=F,L=z.EU(w.nH);L&&L.startTime!==w.startTime?(z.segments=[],z.bU(w),z=!0):z=!1;z?q=F.nH:!F.pending&&f&&(w=c.getDuration(F.nH),w!==F.duration&&(v.publish("clienttemp","mfldurUpdate",{itag:v.T[Q].info.itag,seg:F.nH,od:w,nd:F.duration},!1),c.bU(F),z=!0))}else c.bU(F),z=!0}q>=0&&(f={},v.publish("clienttemp","resetMflIndex",(f[V?
"v":"a"]=q,f),!1));v=z;$c9(R.PB,F,V,v);R.policy.Mq||R.N.Ky(F,n,V,r);F.nH===R.X2.bX&&v&&Vg(R.X2)&&F.startTime>Vg(R.X2)&&(R.X2.sf=F.startTime+(isNaN(R.timestampOffset)?0:R.timestampOffset),R.PB.isSeeking()&&R.PB.targetTime<R.X2.RC()&&R.PB.seek(R.X2.RC(),{}))};
MC=function(R,F,n,V){var r=rO(F);!r||r.N||So(r,V)||(n.abort(),R.policy.E8&&(r=F.X)!=null&&(r.N=void 0),(F=F.V)!=null&&(iG(F,4),F.flush()));if(!n.T7()||SL())try{R.policy.atH?n.e6(V.A1.info.containerType,V.A1.info.x5)&&n.Mb(V.A1.info.containerType,V.A1.info.x5,V.A1.info.mimeType):n.zr(V.A1.info.containerType,V.A1.info.mimeType)}catch(v){return n=v,g.mq(n),R.m2("ctexp",{name:n.name,msg:n.message}),!1}else V.A1.info.containerType!==n.T7()&&R.m2("ctu",{ct:SL(),prev_c:n.T7(),curr_c:V.A1.info.containerType});
F=V.A1.J;R.policy.ZE&&F&&(V=0+F.duration,F=-F.T,0===n.GA()&&V===n.lf()||n.zc(0,V),F!==n.qC()&&(n.I2(F),R6&&Tgv(R.audioTrack.aP(),n.Pz())));return!0};
mJk=function(R,F,n,V){V.info.A1.o9();var r=V.info.A1.T;if(!r||!n.FS()||n.P5()===r)return!1;var v=r,f=n.nJ();if(R.policy.xX&&f&&n.isView()&&g.Ey(V.info.A1.info)){var z=new DataView(r.buffer,r.byteOffset,r.byteLength);(f=Oy_(z,f))?v=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):R.m2("fenc",{})}R.policy.HD&&(f=g1N(R,V,new sE([v])))&&(v=CV(f));var q;(f=V.info.A1.bK(0,V.info.clipId))&&(q=f.OZ[0]);if(V===R.QZ){if(R.PG+=1,R.TH.getVideoData().B("html5_shorts_gapless_restart_on_init_seg_retries")&&R.PG>
5)return R.PG=0,R.TH.vX({initSegStuck:1,as:V.info.KX()}),!0}else R.PG=0,R.QZ=V;R.policy.po&&(n.abort(),(f=F.V)!=null&&(iG(f,4),f.flush()));r=Oi9(R,n,v,q,r);(F=F.V)!=null&&(F.flush(),F.U=q,iG(F,3,r));if(r!==0)return R.policy.RU&&hu(R.TH.getVideoData())?(R.TH.Qb()||IHv(R,"sepInit",r,V.info),DJR(R.TH,"sie")):IHv(R,"sepInit",r,V.info),!0;V.info.EY()?(q=R.timing,q.Mq||(q.Mq=(0,g.h1)(),g.Jz("vis_a",q.Mq,q.T))):(q=R.timing,q.X||(q.X=(0,g.h1)(),g.Jz("ais_a",q.X,q.T)));(V=V.info.A1.vp)&&R.TH.Ws(new lG(V.key,
V.type));return n.Of()};
Oi9=function(R,F,n,V,r){try{var v,f=F===((v=R.IG)==null?void 0:v.T)?R.audioTrack:R.videoTrack;if(R.policy.uS&&(V==null?0:V.YY())){if((V==null?void 0:V.UZ)>1)return 6;f.PG=new g.ZK(function(){var z=ol(f);R.Zo()||z==null||!z.isLocked?R.TH.D().CC()&&R.m2("eosl",{delayA:z==null?void 0:z.info.KX()}):ii9(f)?(R.TH.D().CC()&&R.m2("eosl",{dunlock:z==null?void 0:z.info.KX()}),xJk(R,f===R.audioTrack)):(R.m2("nue",{ls:z.info.KX()}),z.info.UZ+=1,R.IG&&R.x9())},1E4,R);
R.TH.D().CC()&&R.m2("eosl",{delayS:V.KX()});f.PG.start()}R.policy.Uo&&(V==null?void 0:V.A1)instanceof TP&&V.YY()&&R.m2("poseos",{itag:V.A1.info.itag,seg:V.nH,lseg:V.A1.index.VZ(),es:V.A1.index.N});F.appendBuffer(n,V,r)}catch(z){if(z instanceof DOMException){if(z.code===11)return 2;if(z.code===12)return 5;if(z.code===22||z.message.indexOf("Not enough storage")===0)return F=Object.assign({name:"QuotaExceededError",buffered:n6(F.TI()).replace(/,/g,"_"),vheap:cf(R.videoTrack),aheap:cf(R.audioTrack),message:g.Mu(z.message,
3),track:R.IG?F===R.IG.U?"v":"a":"u"},UjR()),R.handleError("player.exception",F),1;g.uX(z)}return 4}return R.IG.D7()?3:0};
TH=function(R,F,n){UJ6(R,n.gW||"unknown");R.TH.seekTo(F,n)};
X9=function(R,F){if(R.gX&&!R.BO)return 3;if(R.isSuspended)return 1;var n;if((n=R.IG)==null?0:n.IG&&n.IG.streaming===!1)return 4;n=(F.A1.info.audio?R.policy.mQ:R.policy.dX)/(F.yz*R.policy.z3);if(R.policy.S5>0&&R.IG&&p6(R.IG)&&(F=F.A1.info.video?R.IG.U:R.IG.T)&&!F.Of()){F=F.TI();var V=V4(F,R.getCurrentTime());V>=0&&(F=R.getCurrentTime()-F.start(V),n+=Math.max(0,Math.min(F-R.policy.S5,R.policy.Wc)))}R.policy.bS>0&&(n=Math.min(n,R.policy.bS));return n};
k6R=function(R,F){return(X9(R,F)+R.policy.L1)*F.yz};
Ji_=function(R){R.uS&&!R.isSuspended&&Bf(R.schedule)&&(YYe(R,R.uS),R.uS="")};
YYe=function(R,F){VP(F,"cms",function(n){R.policy.N&&R.m2("pathprobe",n)},function(n){R.TH.handleError(n)})};
G6N=function(R,F){R.vI=F;R.N&&(R.N.vI=F);F=R.vI;var n=R.videoTrack.A1.info.UY();F.pC=n;F.BI({swebm:n});R.Z.vI=R.vI;R.policy.U&&(R.U.vI=R.vI,Aie(R))};
MKf=function(R,F){if(R.IG&&R.IG.U){if(R.policy.G1){var n=O9f(R.audioTrack);if(n&&n.cB()){var V=R.TH;if(V.Uv&&(V.Uv.T=n,n=V.Dt,n.qoe)){n=n.qoe;V=V.Uv;var r=g.kr(n.provider);LSN(n,r,V)}}}R.policy.Db&&(n=O9f(R.videoTrack))&&n.EY()&&(V=R.TH,V.Iz&&(V.Iz.T=n,n=V.Dt,n.qoe&&ciE(n.qoe,V.Iz)));F-=isNaN(R.timestampOffset)?0:R.timestampOffset;R.getCurrentTime()!==F&&R.resume();R.PB.isSeeking()&&R.IG&&!R.IG.D7()&&(V=R.getCurrentTime()<=F&&F<R.getCurrentTime()+10,n=rl(R.IG.U.TI(),R.getCurrentTime()+dJE),V&&n&&
(R.PB.J=!1));R.PB.isSeeking()||R.policy.J1&&!R.policy.aG||(R.currentTime=F);g.eI(R.Zp)}};
lHj=function(R,F){var n=zh(R.videoTrack).find(function(V){return V.startTime>=F&&sLk(R,V.startTime,!1)});
return n&&n.startTime<F+n.duration*1.5?n.startTime+.1:0};
sLk=function(R,F,n){if(!(R.videoTrack.A1.o9()&&R.audioTrack.A1.o9()&&R.IG&&R.IG.U&&R.IG.T))return!1;if(n&&R.X2.isManifestless&&(R.videoTrack.W===-1||R.audioTrack.W===-1))return!0;var V=p0(R.videoTrack,F,n);if(isNaN(V))return!1;R=p0(R.audioTrack,R.policy.KC?F:V,n);return isNaN(R)?!1:!0};
iB=function(R){R.L4();R.PB.isSeeking();R.V&&C4R(R.V,R.videoTrack.A1);jb(R);return dcW(R.PB)};
lf=function(R){return R.currentTime+R.timestampOffset};
Oz=function(R,F,n,V){(V===void 0?0:V)&&!F.Y5&&(SL()||(V=F.Sn)&&!V.H5(n.info)&&R.TH.Yc(),F.Y5=!0);F.A1!==n&&(F.A1=n)};
ii9=function(R){var F,n=(F=ol(R))==null?void 0:F.info;return!n||R.lE(Math.min(n.J+dJE,n.W))};
N$R=function(R,F){var n;if((n=ol(F))!=null&&n.isLocked&&ii9(F)){if(R.TH.D().CC()){var V;R.m2("eosl",{munlock:(V=ol(F))==null?void 0:V.info.KX()})}xJk(R,F===R.audioTrack)}};
xJk=function(R,F){if(R.policy.uS&&R.IG){var n,V,r=F?(n=R.IG)==null?void 0:n.T:(V=R.IG)==null?void 0:V.U;n=F?R.audioTrack:R.videoTrack;F=ol(n);if(F==null?0:F.isLocked){R.TH.D().CC()&&R.m2("eosl",{unlock:F.info.KX()});var v;(v=n.PG)==null||v.stop();F.isLocked=!1;n.pD(F);mrf(R.T,F.info);r=r==null?void 0:r.Xw();(r==null?void 0:r.KX())!==F.info.KX()&&R.m2("oue",{bls:r==null?void 0:r.KX(),tls:F.info.KX()})}}};
E1f=function(R,F){R.timestampOffset!==F&&(R.timestampOffset=F,R.policy.t0&&vp(R.X2),R.N.X=R.timestampOffset,R.TH.Ui(R.timestampOffset),R.X2.isManifestless&&(R.X2.timestampOffset=R.timestampOffset),R.videoTrack.I2(R.timestampOffset),R.audioTrack.I2(R.timestampOffset))};
mM=function(R){var F=(0,g.h1)();R.Ix=F};
$Jv=function(R){R.audioTrack.UZ=[];R.videoTrack.UZ=[]};
PFj=function(R,F,n,V){NC(R)&&R.WX&&V&&V===96&&(V=n?R.TH.Jp(F):F,R.lE(V)||R.WX.T||R.m2("prebuffer",{miss:1,t:F.toFixed(3),isUtc:n}))};
E_E=function(R){var F=R.n5().filter(function(V){return V.namespace==="ad"});
F=g.m(F);for(var n=F.next();!n.done;n=F.next())if(n=n.value,n.start/1E3>R.getCurrentTime())return n.start/1E3;return Infinity};
Rlv=function(R){if(R.TH.getVideoData().isLivePlayback)return!1;var F=R.TH.LX();if(!F)return!1;F=F.getDuration();if(R.IG&&R.IG.T&&R.IG.U){var n=R.getCurrentTime(),V=R.IG.T.TI();R=R.IG.U.TI();V=V?vz(V,n):n;n=R?vz(R,n):n;n=Math.min(V,n);F=isNaN(n)?!1:n>=F-.01}else F=!1;return F};
KF=function(R){return R.Ri<R.oC};
NC=function(R){return R.TH.getVideoData().Zt()||R.policy.ID};
Ep=function(){g.fG.apply(this,arguments)};
$r=function(R,F,n,V){Ep.call(this);var r=this;this.N=-1;this.T={};this.J=new g.ZK(this.W,0,this);g.d(this,this.J);this.U=new g.ZK(function(){r.Zo()||(r.J.start(Math.random()*n),r.U.start(F))},R,this);
g.d(this,this.U);V.subscribe("fairplay_next_need_key_info",this.Z,this)};
biE=function(R){if(!(R.length<=28))for(var F=(0,g.bZ)([60,0,75,0,73,0,68,0,62,0]),n=28;n<R.length;){a:if(R.length-n<F.length)var V=!1;else{for(V=0;V<F.length;++V)if(R[n+V]!==F[V]){V=!1;break a}V=!0}if(V){n+=F.length;if(R.length<=n+48)break;F=new Uint8Array(24);for(V=0;V<24;++V)F[V]=R[n+V*2];R=UE(F);R=l$(R);if(!R)break;n=R[0];R[0]=R[3];R[3]=n;n=R[1];R[1]=R[2];R[2]=n;n=R[4];R[4]=R[5];R[5]=n;n=R[6];R[6]=R[7];R[7]=n;return R}n++}};
P6=function(R,F){Ep.call(this);var n=this;this.N=R;this.T=[];this.U=new g.ZK(function(){n.publish("log_qoe",{wvagt:"timer",reqlen:n.T?n.T.length:-1});if(n.T){if(n.T.length>0){var V=n.T.shift();Zi9(n,V.info)}n.T.length>0&&(V=n.T[0].time-(0,g.h1)(),n.U.start(Math.max(0,V)))}},0);
g.d(this,this.U);F.subscribe("widevine_set_need_key_info",this.J,this)};
Zi9=function(R,F){a:{var n=F.cryptoPeriodIndex;if(isNaN(n)&&R.N.size>0)n=!0;else{for(var V=g.m(R.N.values()),r=V.next();!r.done;r=V.next())if(r.value.cryptoPeriodIndex===n){n=!0;break a}n=!1}}R.publish("log_qoe",{wvagt:"reqnews",canskip:n});n||R.publish("rotated_need_key_info_ready",F)};
eWR=function(){var R={};var F=R.url;var n=R.interval;R=R.retries;this.url=F;this.interval=n;this.retries=R};
Rw6=function(R,F){this.statusCode=R;this.message=F;this.N=this.heartbeatParams=this.errorMessage=null;this.U=[];this.T={};this.nextFairplayKeyId=null};
FTW=function(R){switch(R){case "DRM_TRACK_TYPE_AUDIO":return 1;case "DRM_TRACK_TYPE_SD":return 2;case "DRM_TRACK_TYPE_HD":return 3;case "DRM_TRACK_TYPE_UHD1":return 4;case "DRM_TRACK_TYPE_UHD2":return 5;default:return 0}};
nzk=function(R,F,n,V){n=n===void 0?"":n;V=V===void 0?!1:V;g.G.call(this);this.message=R;this.requestNumber=F;this.timer=n;this.U=V;this.onError=this.onSuccess=null;this.T=new g.NG(5E3,2E4,.2)};
VhE=function(R,F,n){R.onSuccess=F;R.onError=n};
vz9=function(R,F,n,V){var r={timeout:3E4,onSuccess:function(v){if(!R.Zo()){uj("drm_net_r",void 0,R.timer);var f=R.U;f=f===void 0?!1:f;var z=v.status==="LICENSE_STATUS_OK"?0:9999,q=null;if(v.license)try{q=l$(v.license)}catch(C){g.uX(C)}if(z!==0||q){q=new Rw6(z,q);z!==0&&v.reason&&(q.errorMessage=v.reason);if(v.authorizedFormats){z={};for(var Q=[],c={},w=g.m(v.authorizedFormats),L=w.next();!L.done;L=w.next())if(L=L.value,L.trackType&&L.keyId){f&&q.U.push({trackType:FTW(L.trackType),isHdr:!!L.isHdr});
var S=rf9[L.trackType];if(S){S==="HD"&&v.isHd720&&(S="HD720");L.isHdr&&(S+="HDR");z[S]||(Q.push(S),z[S]=!0);var p=null;try{p=l$(L.keyId)}catch(C){g.uX(C)}p&&(c[g.dQ(p,4)]=S)}}q.N=Q;q.T=c}v.nextFairplayKeyId&&(q.nextFairplayKeyId=v.nextFairplayKeyId);v.sabrLicenseConstraint&&(q.sabrLicenseConstraint=l$(v.sabrLicenseConstraint));v=q}else v=null;if(v)R.onSuccess(v,R.requestNumber);else R.onError(R,"drm.net","t.p;p.i")}},
onError:function(v){if(!R.Zo())if(v&&v.error)v=v.error,R.onError(R,"drm.net.badstatus","t.r;p.i;c."+v.code+";s."+v.status,v.code);else R.onError(R,"drm.net.badstatus","t.r;p.i;c.n")},
onTimeout:function(){R.onError(R,"drm.net","rt.req."+R.requestNumber)}};
V&&(r.Iv="Bearer "+V);g.Pq(n,"player/get_drm_license",F,r)};
f9v=function(R,F,n,V,r){g.fG.call(this);this.videoData=R;this.G=F;this.V=n;this.sessionId=V;this.rp=r;this.W={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.J1=this.jQ=!1;this.N=null;this.lS=[];this.J=[];this.authorizedFormats=[];this.UZ=[];this.X=!1;this.T={};this.status="";this.Z=NaN;this.U=R.W;this.cryptoPeriodIndex=n.cryptoPeriodIndex;R={};Object.assign(R,this.G.T);R.cpn=this.videoData.clientPlaybackNonce;this.videoData.J1&&(R.vvt=this.videoData.J1,this.videoData.mdxEnvironment&&
(R.mdx_environment=this.videoData.mdxEnvironment));this.G.lS&&(R.authuser=this.G.lS);this.G.pageId&&(R.pageid=this.G.pageId);isNaN(this.cryptoPeriodIndex)||(R.cpi=this.cryptoPeriodIndex.toString());r=(r=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.ft()))?r[1]:"";r==="ATV"&&(R.cdt=r);this.W=R;this.W.session_id=V;this.Nq=!0;this.U.flavor==="widevine"&&(this.W.hdr="1");this.U.flavor==="playready"&&(F=Number(mj(F.experiments,"playready_first_play_expiration")),!isNaN(F)&&F>=0&&(this.W.mfpe=""+F),this.Nq=!1);
F="";g.Tp(this.U)?Cp(this.U)?(V=n.U)&&(F="https://www.youtube.com/api/drm/fps?ek="+$Nf(V)):(F=n.initData.subarray(4),F=new Uint16Array(F.buffer,F.byteOffset,F.byteLength/2),F=String.fromCharCode.apply(null,F).replace("skd://","https://")):F=this.U.U;this.baseUrl=F;this.fairplayKeyId=Ym(this.baseUrl,"ek")||"";if(F=Ym(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(F);this.lS=n.UY?[g.dQ(n.initData,4)]:n.N;bf(this,{sessioninit:n.cryptoPeriodIndex});this.status="in"};
cfJ=function(R,F){bf(R,{createkeysession:1});R.status="gr";uj("drm_gk_s",void 0,R.videoData.UZ);R.url=thV(R);try{R.N=F.createSession(R.V,function(n){bf(R,{m:n})})}catch(n){F="t.g";
n instanceof DOMException&&(F+=";c."+n.code);R.publish("licenseerror","drm.unavailable",1,F,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}R.N&&(zwV(R.N,function(n,V){if(R.G.rg().T.pH(qnv)&&R.U.flavor==="widevine"){var r=!1;try{JT(n,M8R).type===4&&(r=!0)}catch(q){}if(r){var v;bf(R,{cert_cache_hit:!((v=R.rp)==null||!v.certificate)},!0);var f;if((f=R.rp)==null?0:f.certificate){var z;(z=R.N)==null||z.update(R.rp.certificate)}else QlR(R,n,V,!0)}else QlR(R,n,V)}else QlR(R,n,V)},function(n,V,r){if(!R.Zo()){V=
void 0;
var v=1;g.Tp(R.U)&&g.Vw(R.G)&&R.G.B("html5_enable_safari_fairplay")&&r===1212433232&&(V="ERROR_HDCP",v=R.G.B("html5_safari_fairplay_ignore_hdcp")?0:v);var f;if((f=R.rp)==null?0:f.certificate)R.rp.certificate=null;R.error("drm.keyerror",v,n,V)}},function(){R.Zo()||(bf(R,{onkyadd:1}),R.J1||(R.publish("sessionready"),R.J1=!0))},function(n){R.u0(n)}),g.d(R,R.N))};
thV=function(R){var F=R.baseUrl;peE(F)||R.error("drm.net",2,"t.x");if(!Ym(F,"fexp")){var n=["23898307","23914062","23916106","23883098"].filter(function(r){return R.G.experiments.experiments[r]});
n.length>0&&(R.W.fexp=n.join())}n=g.m(Object.keys(R.W));for(var V=n.next();!V.done;V=n.next())V=V.value,F=LQN(F,V,R.W[V]);return F};
QlR=function(R,F,n,V){V=V===void 0?!1:V;if(!R.Zo())if(F){bf(R,{onkmtyp:n});R.status="km";switch(n){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":w9f(R,F);return;default:R.publish("ctmp","message_type",{t:n,l:F.byteLength})}R.jQ||(uj("drm_gk_f",void 0,R.videoData.UZ),R.jQ=!0,R.publish("newsession",R));if(Xa(R.U)&&(F=Snf(F),!F))return;F=new nzk(F,++R.requestNumber,R.videoData.UZ,R.G.B("html5_enable_vp9_fairplay"));VhE(F,function(r){LTk(R,
r,V)},function(r,v,f){if(!R.Zo()){var z=0;
r.T.U>=3&&(z=1,v="drm.net.retryexhausted");bf(R,{onlcsrqerr:v,info:f});R.error(v,z,f);R.shouldRetry(qL(z),r)&&slN(R,r)}});
g.d(R,F);p99(R,F)}else R.error("drm.unavailable",1,"km.empty")};
w9f=function(R,F){bf(R,{sdpvrq:1});R.Z=Date.now();if(R.U.flavor!=="widevine")R.error("drm.provision",1,"e.flavor;f."+R.U.flavor+";l."+F.byteLength);else{var n={cpn:R.videoData.clientPlaybackNonce};Object.assign(n,R.G.T);n=g.DI("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",n);F={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,F)}),
responseType:"arraybuffer"};g.O2(n,F,3,500).then(pQ(function(V){V=V.xhr;if(!R.Zo()){V=new Uint8Array(V.response);var r=String.fromCharCode.apply(null,V);try{var v=JSON.parse(r)}catch(f){}v&&v.signedResponse?(R.publish("ctmp","drminfo",{provisioning:1}),v=(Date.now()-R.Z)/1E3,R.Z=NaN,R.publish("ctmp","provs",{et:v.toFixed(3)}),R.N&&R.N.update(V)):(v=v&&v.error&&v.error.message,V="e.parse",v&&(V+=";m."+v),R.error("drm.provision",1,V))}}),pQ(function(V){R.Zo()||R.error("drm.provision",1,"e."+V.errorCode+
";c."+(V.xhr&&V.xhr.status))}))}};
ZQ=function(R){var F;if(F=R.Nq&&R.N!=null)R=R.N,F=!(!R.T||!R.T.keyStatuses);return F};
p99=function(R,F){R.status="km";uj("drm_net_s",void 0,R.videoData.UZ);var n=new g.$S(R.G.dG),V={context:g.Sf(n.config_||g.wy())};V.drmSystem=X9E[R.U.flavor];V.videoId=R.videoData.videoId;V.cpn=R.videoData.clientPlaybackNonce;V.sessionId=R.sessionId;V.licenseRequest=g.dQ(F.message);V.drmParams=R.videoData.drmParams;isNaN(R.cryptoPeriodIndex)||(V.isKeyRotated=!0,V.cryptoPeriodIndex=R.cryptoPeriodIndex);var r,v,f=!!((r=R.videoData.U)==null?0:(v=r.video)==null?0:v.isHdr());V.drmVideoFeature=f?"DRM_VIDEO_FEATURE_PREFER_HDR":
"DRM_VIDEO_FEATURE_SDR";R.G.experiments.rg().T.pH(AfI)&&(V.context=g.U6(R.videoData));if(V.context&&V.context.client){if(r=R.G.T)V.context.client.deviceMake=r.cbrand,V.context.client.deviceModel=r.cmodel,V.context.client.browserName=r.cbr,V.context.client.browserVersion=r.cbrver,V.context.client.osName=r.cos,V.context.client.osVersion=r.cosver;R.G.experiments.rg().T.pH(AfI)||(V.context.user=V.context.user||{},R.videoData.J1&&(V.context.user.credentialTransferTokens=[{token:R.videoData.J1,scope:"VIDEO"}]),
R.videoData.h1&&(V.context.user.kidsParent={oauthToken:R.videoData.h1}));V.context.request=V.context.request||{};V.context.request.mdxEnvironment=R.videoData.mdxEnvironment||V.context.request.mdxEnvironment;g.Tp(R.U)&&(V.fairplayKeyId=g.dQ(PeV(R.fairplayKeyId)));g.HV(R.G,g.Ql(R.videoData)).then(function(z){vz9(F,V,n,z);R.status="rs"})}else R.error("drm.net",2,"t.r;ic.0")};
LTk=function(R,F,n){if(!R.Zo())if(bf(R,{onlcsrsp:1}),R.status="rr",F.statusCode!==0)R.error("drm.auth",1,"t.f;c."+F.statusCode,F.errorMessage||void 0);else{uj("drm_kr_s",void 0,R.videoData.UZ);if(F.heartbeatParams&&F.heartbeatParams.url&&R.videoData.B("outertube_streaming_data_always_use_staging_license_service")){var V=R.U.U.match(/(.*)youtube.com/g);V&&(F.heartbeatParams.url=V[0]+F.heartbeatParams.url)}F.heartbeatParams&&R.publish("newlicense",F.heartbeatParams);F.N&&(R.J=F.N,R.videoData.VO||R.publish("newlicense",
new eWR),R.videoData.VO=!0,R.X=t3(R.J,function(r){return r.includes("HDR")}));
F.U&&(R.UZ=F.U);F.T&&(R.G.B("html5_enable_vp9_fairplay")&&Cp(R.U)?(V=g.dQ(PeV(R.fairplayKeyId),4),R.T[V]={type:F.T[V],status:"unknown"}):R.T=yK(F.T,function(r){return{type:r,status:"unknown"}}));
ac(R.U)&&(F.message=Di9(g.dQ(F.message)));R.N&&(bf(R,{updtks:1}),R.status="ku",n&&R.rp&&(R.rp.certificate=F.message),R.N.update(F.message).then(function(){uj("drm_kr_f",void 0,R.videoData.UZ);ZQ(R)||(bf(R,{ksApiUnsup:1}),R.publish("keystatuseschange",R))},function(r){r="msuf.req."+R.requestNumber+";msg."+g.Mu(r.message,3);
R.error("drm.keyerror",1,r)}));
g.Tp(R.U)&&R.publish("fairplay_next_need_key_info",R.baseUrl,F.nextFairplayKeyId);R.G.B("html5_enable_vp9_fairplay")&&Cp(R.U)&&R.publish("qualitychange",a9e(R.J));F.sabrLicenseConstraint&&R.publish("sabrlicenseconstraint",F.sabrLicenseConstraint)}};
slN=function(R,F){var n=F.T.getValue();n=new g.ZK(function(){p99(R,F)},n);
g.d(R,n);n.start();g.EH(F.T);bf(R,{rtyrq:1})};
CZj=function(R,F){for(var n=[],V=g.m(Object.keys(R.T)),r=V.next();!r.done;r=V.next())r=r.value,n.push(r+"_"+R.T[r].type+"_"+R.T[r].status);return n.join(F)};
TAN=function(R){var F={};F[R.status]=ZQ(R)?CZj(R,"."):R.J.join(".");return F};
ozV=function(R,F,n){var V={};V.isHdr=F.includes("HDR");switch(F.replace("HDR","").replace("720","")){case "AUDIO":V.trackType=1;break;case "SD":V.trackType=2;break;case "HD":V.trackType=3;break;case "UHD1":V.trackType=4;break;case "UHD2":V.trackType=5;break;default:V.trackType=0}!V.trackType||n[F]||ZQ(R)&&!eb(R,F)||(R.authorizedFormats.push(V),n[F]=!0)};
eb=function(R,F){for(var n in R.T)if(R.T[n].status==="usable"&&R.T[n].type===F)return!0;return!1};
yfW=function(R,F){for(var n in R.T)if(R.T[n].type===F)return R.T[n].status};
bf=function(R,F,n){n=n===void 0?!1:n;tQ(F);(n||R.G.CC())&&R.publish("ctmp","drmlog",F)};
UHV=function(R){var F=R[0];R[0]=R[3];R[3]=F;F=R[1];R[1]=R[2];R[2]=F;F=R[4];R[4]=R[5];R[5]=F;F=R[6];R[6]=R[7];R[7]=F};
a9e=function(R){return g.Rz(R,"UHD2")||g.Rz(R,"UHD2HDR")?"highres":g.Rz(R,"UHD1")||g.Rz(R,"UHD1HDR")?"hd2160":g.Rz(R,"HD")||g.Rz(R,"HDHDR")?"hd1080":g.Rz(R,"HD720")||g.Rz(R,"HD720HDR")?"hd720":"large"};
Snf=function(R){for(var F="",n=0;n<R.length;n+=2)F+=String.fromCharCode(R[n]);R=lS(new DOMParser,go(F),"text/xml");if(!R)return null;(F=R.querySelector("Challenge"))&&F.childNodes&&F.childNodes.length!==0?(R=Uint8Array,F=FrV(F.childNodes[0].nodeValue),F=(0,g.bZ)(F).buffer,R=new R(F)):R=null;return R};
R3=function(R,F,n,V,r,v){v=v===void 0?!1:v;g.G.call(this);this.element=R;this.V=F;this.initData=n;this.T=V;this.U=r;this.UZ=v;this.sessionId="";this.X=this.Z=this.N=this.W=null;this.J=new g.AQ(this);g.d(this,this.J);jlW(this)};
jlW=function(R){R.T?(R.J.C(R.T,"message",R.JU),R.J.C(R.T,"keystatuseschange",R.u0),R.T.closed&&R.T.closed.then(pQ(function(){R.onClosed()}),null)):R.U&&(Ix(R.J,R.U,["mskeymessage",
"webkitkeymessage"],R.Wr),Ix(R.J,R.U,["mskeyerror","webkitkeyerror"],R.Qi),Ix(R.J,R.U,["mskeyadded","webkitkeyadded"],R.Aa))};
zwV=function(R,F,n,V,r){R.W=F;R.N=n;R.Z=V;R.X=r};
H0v=function(R,F,n){g.uX(n);R.N&&(n instanceof DOMException&&(F+=";n."+n.name+";m."+n.message),R.N(F))};
FH=function(R,F,n){n=n===void 0?!1:n;g.G.call(this);this.element=R;this.T=F;this.X=n;this.Z={};this.J=null;this.W=new g.AQ(this);this.N=this.U=null;g.d(this,this.W)};
WTj=function(R,F){F=F===void 0?null:F;if(R.T.keySystemAccess){var n,V;if(((n=F)==null?0:n.Z)&&((V=F.vG)==null?0:V.K5())){var r;R.U=(r=F)==null?void 0:r.Z;return Promise.resolve()}return R.T.keySystemAccess.createMediaKeys().then(function(f){if(!R.Zo()){R.U=f;var z;(z=R.element)==null||z.setMediaKeys(f);var q;F&&((q=F.vG)==null?0:q.K5())&&(F.Z=f)}})}if(pp(R.T))R.N=new (sV())(R.T.keySystem);
else if(AW(R.T)){R.N=new (sV())(R.T.keySystem);var v;(v=R.element)==null||v.webkitSetMediaKeys(R.N)}else hwR(R);return null};
hwR=function(R){Ix(R.W,R.element,["keymessage","webkitkeymessage"],R.sx);Ix(R.W,R.element,["keyerror","webkitkeyerror"],R.jW);Ix(R.W,R.element,["keyadded","webkitkeyadded"],R.cR)};
BAE=function(R,F){F=u9E(F,R.T.qT);F=R.N.createSession("video/mp4",F);return new R3(null,null,null,null,F,R.X)};
mHN=function(R,F){for(var n=new Uint8Array(270),V=0;V<135;V++)n[V*2]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(V);R=R.N.createSession("video/mp4",F,n);return new R3(null,null,null,null,R)};
gzV=function(R,F){var n=R.Z[F.sessionId];!n&&R.J&&(n=R.J,R.J=null,n.sessionId=F.sessionId,R.Z[F.sessionId]=n);return n};
u9E=function(R,F){var n=R.subarray(4);n=new Uint16Array(n.buffer,n.byteOffset,n.byteLength/2);n=String.fromCharCode.apply(null,n).match(/ek=([0-9a-f]+)/)[1];for(var V="",r=0;r<n.length;r+=2)V+=String.fromCharCode(parseInt(n.substring(r,r+2),16));n=V;V=new ArrayBuffer(n.length*2);r=new Uint16Array(V);for(var v=0;v<n.length;v++)r[v]=n.charCodeAt(v);n=new Uint8Array(V);V=0;v=new ArrayBuffer(R.byteLength+4+n.byteLength+4+F.byteLength);r=new Uint8Array(v);v=new DataView(v);r.set(R);V+=R.byteLength;v.setUint32(V,
n.length,!0);V+=4;r.set(n,V);V+=n.length;v.setUint32(V,F.byteLength,!0);r.set(F,V+4);return r};
nP=function(){this.keys=[];this.values=[]};
KT6=function(R,F,n,V,r){V=V===void 0?null:V;g.fG.call(this);this.element=R;this.videoData=F;this.G=n;this.mediaElement=V;this.rp=r;this.N=[];this.bS=2;this.Y5=this.PG=!1;this.heartbeatParams=null;this.lS=this.UZ=!1;this.W=null;this.Mq=!1;this.T=this.videoData.W;this.drmSessionId=this.videoData.drmSessionId||g.F3k();this.U=new Map;this.Z=new nP;this.X=new nP;this.J1=new g.AQ(this);this.jQ=this.G.B("html5_eme_ignore_teardown_errors");(R=this.element)&&(R.addKey||R.webkitAddKey)||sV()||yg(n.experiments);
this.G.B("html5_enable_vp9_fairplay")&&Cp(this.T)?n=O0v:(n=this.videoData.Ab,n=this.T.flavor==="fairplay"||n?LM:O0v);this.V=n;this.J=new FH(this.element,this.T,this.jQ);g.d(this,this.J);pp(this.T)&&(this.Nq=new FH(this.element,this.T,this.jQ),g.d(this,this.Nq));g.d(this,this.J1);n=this.element;this.T.keySystemAccess?this.J1.C(n,"encrypted",this.HX5):Ix(this.J1,n,pp(this.T)?["msneedkey"]:["needkey","webkitneedkey"],this.ww2);I9N(this);a:switch(n=this.T,R=this.G.experiments,F=this.U,n.flavor){case "fairplay":Nl()>
19.2999?(R=n.s9,n=n.jS,n>=R&&(n=R*.75),F=(R-n)*.5,n=new $r(F,R,R-F-n,this)):n=null;break a;case "widevine":n=new P6(F,this,R);break a;default:n=null}if(this.W=n)g.d(this,this.W),this.W.subscribe("rotated_need_key_info_ready",this.Mx,this),this.W.subscribe("log_qoe",this.PW,this);yg(this.G.experiments);this.PW({cks:this.T.getInfo()})};
I9N=function(R){var F=WTj(R.J,R.mediaElement);F?F.then(pQ(function(){DHW(R)}),pQ(function(n){if(!R.Zo()){g.uX(n);
var V="t.a";n instanceof DOMException&&(V+=";n."+n.name+";m."+n.message);R.publish("licenseerror","drm.unavailable",1,V,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(R.PW({mdkrdy:1}),R.UZ=!0);
R.Nq&&(F=WTj(R.Nq,R.mediaElement))};
xHV=function(R,F,n){R.Y5=!0;n=new lG(F,n);R.G.B("html5_eme_loader_sync")&&(R.Z.get(F)||R.Z.set(F,n));i0k(R,n)};
i0k=function(R,F){if(!R.Zo()){R.PW({onInitData:1});if(R.G.B("html5_eme_loader_sync")&&R.videoData.N&&R.videoData.N.T){var n=R.X.get(F.initData);F=R.Z.get(F.initData);if(!n||!F)return;F=n;n=F.initData;R.Z.remove(n);R.X.remove(n)}R.PW({initd:F.initData.length,ct:F.contentType});if(R.T.flavor==="widevine")if(R.PG&&!R.videoData.isLivePlayback)VE(R);else{if(!(R.G.B("vp9_drm_live")&&R.videoData.isLivePlayback&&F.UY)){R.PG=!0;n=F.cryptoPeriodIndex;var V=F.T;ZpW(F);F.UY||(V&&F.T!==V?R.publish("ctmp","cpsmm",
{emsg:V,pssh:F.T}):n&&F.cryptoPeriodIndex!==n&&R.publish("ctmp","cpimm",{emsg:n,pssh:F.cryptoPeriodIndex}));R.publish("widevine_set_need_key_info",F)}}else R.Mx(F)}};
DHW=function(R){if(!R.Zo())if(R.G.B("html5_drm_set_server_cert")||Cp(R.T)){var F=R.J.setServerCertificate();F?F.then(pQ(function(n){R.G.CC()&&R.publish("ctmp","ssc",{success:n})}),pQ(function(n){R.publish("ctmp","ssce",{n:n.name,
m:n.message})})).then(pQ(function(){kHe(R)})):kHe(R)}else kHe(R)};
kHe=function(R){R.Zo()||(R.UZ=!0,R.PW({onmdkrdy:1}),VE(R))};
YnV=function(R){return R.T.flavor==="widevine"&&R.videoData.B("html5_drm_cpi_license_key")};
VE=function(R){if(R.Y5&&R.UZ&&!R.lS){for(;R.N.length;){var F=R.N[0],n=YnV(R)?eR_(F):g.dQ(F.initData);if(Cp(R.T)&&!F.U)R.N.shift();else{if(R.U.get(n))if(R.T.flavor!=="fairplay"||Cp(R.T)){R.N.shift();continue}else R.U.delete(n);ZpW(F);break}}R.N.length&&R.createSession(R.N[0])}};
Jfk=function(R){var F,n;g.Y(function(V){if(V.T==1){var r;if(r=g.PC()){var v;r=!((v=R.J.U)==null||!v.getMetrics)}return r?g.k(V,R.J.getMetrics(),2):V.return()}F=V.U;if(!F)return V.return();Lk(F)||(F=g.Hu(F));n=/^[A-Za-z0-9_-]+={0,3}$/;n.test(F)||(F=g.Mu(F,void 0,!0));R.publish("ctmp","drm",{metrics:F});g.rq(V)})};
rw=function(){var R=w36();return!(!R||R==="visible")};
dHf=function(R){var F=GHW();F&&document.addEventListener(F,R,!1)};
MhJ=function(R){var F=GHW();F&&document.removeEventListener(F,R,!1)};
GHW=function(){if(document.visibilityState)var R="visibilitychange";else{if(!document[Cw+"VisibilityState"])return"";R=Cw+"visibilitychange"}return R};
NAN=function(R){l96=R};
$HW=function(R){Ezv=R};
PZj=function(R){g.G.call(this);var F=this;this.TH=R;this.pE=0;this.Z=this.U=this.W=!1;this.J=0;this.Qz=this.TH.D();this.videoData=this.TH.getVideoData();this.N=g.Vn(this.Qz.experiments,"html5_delayed_retry_count");this.T=new g.ZK(function(){F.TH.Yc()},g.Vn(this.Qz.experiments,"html5_delayed_retry_delay_ms"));
g.d(this,this.T)};
Fn_=function(R,F,n){var V=R.videoData.U,r=R.videoData.J,v=R.Qz.B("html5_disable_codec_fallback_for_drm")&&R.videoData.iX();hu(R.TH.getVideoData())&&R.Qz.B("html5_gapless_fallback_on_qoe_restart")&&DJR(R.TH,"pe");if((F==="progressive.net.retryexhausted"||F==="fmt.unplayable"||F==="fmt.decode")&&!R.TH.TY.W&&V&&V.itag==="22")return R.TH.TY.W=!0,R.Tk("qoe.restart",{reason:"fmt.unplayable.22"}),R.TH.hp(),!0;var f=!1;if(R.videoData.isExternallyHostedPodcast){if(f=R.videoData.qQ)n.mimeType=f.type,R.m2("3pp",
{url:f.url});n.ns="3pp";R.TH.Rr(F,1,"VIDEO_UNAVAILABLE",tQ((new g.z$(F,n,1)).details));return!0}var z=R.pE+3E4<(0,g.h1)()||R.T.isActive();if(R.Qz.B("html5_empty_src")&&R.videoData.isAd()&&F==="fmt.unplayable"&&/Empty src/.test(""+n.msg))return n.origin="emptysrc",R.Tk("auth",n),!0;z||b09(R.TH.y6())||(n.nonfg="paused",z=!0,R.TH.pauseVideo());(F==="fmt.decode"||F==="fmt.unplayable")&&(r==null?0:NL(r))&&(x5e(R.Qz.W,r.x5),n.acfallexp=r.x5,f=z=!0);!z&&R.N>0&&(R.T.start(),z=!0,n.delayed="1",--R.N);r=R.TH.loader;
z||!((V==null?0:lT(V))||(V==null?0:G$(V)))||v||(x5e(R.Qz.W,V.x5),f=z=!0,n.cfallexp=V.x5);if(!z)return Z0R(R,n);v=!1;R.W?R.pE=(0,g.h1)():v=R.W=!0;z=R.videoData;if(z.PG){z=z.PG.PZ();var q=Date.now()/1E3+1800;z=z<q}else z=!1;n.e=F;n.bkg=rw();z&&(n.staleprog="1");R.Tk("qoe.restart",n);if(z&&ewW(R))return Rrv(R),!0;if(!(!g.E2("philips")||F==="fmt.unplayable"&&r&&r.lS||R.Qz.T.cplatform==="GAME_CONSOLE"))try{window.close()}catch(Q){}V&&lT(V)&&!R.Qz.B("html5_allow_av1_retry_in_session")?(f=R.Qz.W,f.UZ=!0,
f=f.T=!0):r?v||(F=(F=rO(r.videoTrack)||r.videoTrack.T)?F.A1:r.videoTrack.A1,F.Z+=1,r.policy.T?os(r.W.T,F,!0):mn(r.T,F,!0)):R.videoData.PG&&R.videoData.PG.ZC();R.T.isActive()||R.TH.Yc(f);return!0};
Z0R=function(R,F){if(R.videoData.V)return!1;R.Qz.on+=1;if(R.Qz.on<=10)return!1;F.exiled=""+R.Qz.on;R.Tk("qoe.start15s",F);R.TH.publish("playbackstalledatstart");return!0};
ewW=function(R){if(R.U)return!0;if(R.Qz.Nq!=="yt")return!1;if(MA(R.videoData)){var F;return(F=R.TH.loader)==null?void 0:F.TH.getVideoData().V?(0,g.h1)()-F.schedule.Y5>3E5&&F.on>=3:!F.schedule.Y5}return R.videoData.V?R.videoData.dX<25:!R.videoData.dX};
Rrv=function(R){if(!R.U){R.U=!0;var F=R.TH.getPlayerState();F=F.isPaused()||F.isSuspended();R.TH.Md();F&&!SH(R.videoData)||R.TH.publish("signatureexpired")}};
ngj=function(R,F){if((R=R.TH.LX())&&(F.errorCode==="fmt.unplayable"||F.errorCode==="html5.invalidstate")){var n=R.T_();F.details.merr=n?n.toString():"0";F.details.mmsg=R.xk()}};
VFI=function(R){return R.errorCode==="net.badstatus"&&(R.severity===1||!!R.details.fmt_unav)};
rZj=function(R,F){return R.Qz.B("html5_use_network_error_code_enums")&&F.details.rc===403||F.details.rc==="403"?(R=F.errorCode,R==="net.badstatus"||R==="manifest.net.retryexhausted"):!1};
f59=function(R,F){if(!rZj(R,F)&&!R.U)return!1;F.details.sts="20467";if(ewW(R))return qL(F.severity)&&(F=Object.assign({e:F.errorCode},F.details),F=new g.z$("qoe.restart",F)),R.Tk(F.errorCode,F.details),Rrv(R),!0;(0,g.h1)()-R.Qz.H_>6048E5&&vgR(R,"signature");return!1};
vgR=function(R,F){try{F={detail:"pr."+F},(sP(R.Qz)||Wp(R.Qz)==="TVHTML5_FOR_KIDS")&&R.Qz.B("html5_reload_by_kabuki_app")?R.TH.Rr("qoe.restart",1,void 0,tQ(F),"7"):(R.Tk("qoe.restart",F),window.location.reload())}catch(n){}};
tF9=function(R,F){var n=R.Qz.W;n.Z=!1;n.T=!0;R.Tk("qoe.restart",{e:F===void 0?"fmt.noneavailable":F,detail:"hdr"});R.TH.Yc(!0)};
zrj=function(R,F,n,V,r){this.T=R;this.reason=F;this.U=n;this.source=V;this.token=r};
vY=function(R,F,n,V){this.G=R;this.Yz=F;this.TH=n;this.AJ=V;this.V=this.Z=this.T=this.J=this.X=this.U=0;this.W=!1;this.UZ=g.Vn(this.G.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.N=new Map};
qCe=function(R,F,n){!R.G.B("html5_tv_ignore_capable_constraint")&&g.ad(R.G)&&(n=n.compose(R.ZZ(F)));return n};
QsI=function(R){if(R.TH.y6().isInline())return LM;R=ET[OT()];return g.M4("auto",R,!1,"s")};
wsv=function(R,F){var n,V=cZI(R,(n=F.T)==null?void 0:n.videoInfos);n=R.TH.getPlaybackRate();return n>1&&V?(R=IDj(R.G.W,F.T.videoInfos,n),new dv(0,R,!0,"o")):new dv(0,0,!1,"o")};
cZI=function(R,F){return F&&g.ad(R.G)?F.some(function(n){return n.video.fps>32}):!1};
SCE=function(R,F){if(R.B("html5_disable_ustreamer_constraint_for_sabr")&&MA(F.videoData))return LM;var n=R.TH.tE();R.B("html5_use_video_quality_cap_for_ustreamer_constraint")&&n&&n.I7>0&&N4(F.videoData.d4)&&(R=n.I7,F.videoData.d4=new dv(0,R,!1,"u"));return F.videoData.d4};
Ln6=function(R,F){var n;a:if((n=F.T)&&n.videoInfos.length){for(var V=g.m(n.videoInfos),r=V.next();!r.done;r=V.next()){r=r.value;var v=void 0;if((v=r.U)==null?0:v.smooth){n=r.video.qualityOrdinal;break a}}n=n.videoInfos[0].video.qualityOrdinal}else n=0;(g.E2("armv7")||g.E2("aarch64")||g.E2("android"))&&!g.ad(R.G)&&G$(F.T.videoInfos[0])&&(n=Math.min(n,g.g8.large));V=g.Vn(R.G.experiments,"html5_chipset_soft_cap");V>0&&(n=Math.min(n,V));V=g.Vn(R.G.experiments,"html5_sabr_non_streaming_xhr_soft_cap");
!s6&&V>0&&(n=Math.min(n,V));if(V=g.Vn(R.G.experiments,"html5_max_vertical_resolution")){r=4320;for(v=0;v<F.T.videoInfos.length;v++){var f=F.T.videoInfos[v];f.video.height>V&&(r=Math.min(r,f.video.qualityOrdinal))}if(r<4320){for(f=v=0;f<F.T.videoInfos.length;f++){var z=F.T.videoInfos[f].video.qualityOrdinal;z<r&&(v=Math.max(v,z))}v&&(n=Math.min(v,n))}R.TH.m2("mvr",{h:V,cp:n})}return new dv(0,n,!1,"o")};
pse=function(R,F){var n=4320;!R.G.U||g.n9(R.G)||R.G.B("hls_for_vod")||R.G.B("mweb_remove_360p_cap")||(n=g.g8.medium);var V=g.Vn(R.G.experiments,"html5_default_quality_cap");V&&F.T.T&&(R.G.B("html5_always_apply_default_quality_cap")||!F.videoData.J5&&!F.videoData.lL)&&(n=Math.min(n,V));V=g.Vn(R.G.experiments,"html5_random_playback_cap");var r=/[a-h]$/;V&&r.test(F.videoData.clientPlaybackNonce)&&(n=Math.min(n,V));if(r=V=g.Vn(R.G.experiments,"html5_hfr_quality_cap"))a:{r=F.T;if(r.T){r=g.m(r.videoInfos);
for(var v=r.next();!v.done;v=r.next())if(v.value.video.fps>32){r=!0;break a}}r=!1}r&&(n=Math.min(n,V));(V=g.Vn(R.G.experiments,"html5_live_quality_cap"))&&F.videoData.isLivePlayback&&(n=Math.min(n,V));n=ssJ(R,F,n);R=g.Vn(R.G.experiments,"html5_byterate_soft_cap");return new dv(0,n===4320?0:n,!1,"d",R)};
Xs6=function(R){var F,n,V,r;return g.Y(function(v){switch(v.T){case 1:return R.T.T&&typeof((F=navigator.mediaCapabilities)==null?void 0:F.decodingInfo)==="function"?g.k(v,Promise.resolve(),2):v.return(Promise.resolve());case 2:n=g.m(R.T.videoInfos),V=n.next();case 3:if(V.done){v.wX(0);break}r=V.value;return g.k(v,mOW(r),4);case 4:V=n.next(),v.wX(3)}})};
CGk=function(R,F,n,V){if(!F||!n||!F.videoData.U)return!1;var r=g.Vn(R.G.experiments,"html5_df_downgrade_thresh"),v=R.B("html5_log_media_perf_info");if(!((0,g.h1)()-R.J<5E3?0:v||r>0))return!1;var f=((0,g.h1)()-R.J)/1E3;R.J=(0,g.h1)();n=n.getVideoPlaybackQuality();if(!n)return!1;var z=n.droppedVideoFrames-R.Z,q=n.totalVideoFrames-R.V;R.Z=n.droppedVideoFrames;R.V=n.totalVideoFrames;var Q=n.displayCompositedVideoFrames===0?0:n.displayCompositedVideoFrames||-1;v&&R.G.CC()&&R.TH.m2("ddf",{dr:n.droppedVideoFrames,
de:n.totalVideoFrames,comp:Q});if(V)return R.T=0,!1;if((q-z)/f>R.UZ||!r||g.ad(R.G))return!1;R.T=(q>60?z/q:0)>r?R.T+1:0;if(R.T!==3)return!1;AZ_(R,F.videoData.U);R.TH.m2("dfd",Object.assign({dr:n.droppedVideoFrames,de:n.totalVideoFrames},a5e()));return!0};
AZ_=function(R,F){var n=F.x5,V=F.video.fps,r=F.video.qualityOrdinal-1,v=R.N;F=""+n+(V>49?"p60":V>32?"p48":"");n=w3(n,V,v);r>0&&(n=Math.min(n,r));if(!fP.has(F)&&D6().includes(F)){var f=n;n=KQ();+n[F]>0&&(f=Math.min(+n[F],f));n[F]!==f&&(n[F]=f,g.i6("yt-player-performance-cap",n,2592E3))}else if(fP.has(F)||v==null){a:{f=f===void 0?!0:f;V=D6().slice();if(f){if(V.includes(F))break a;V.push(F)}else{if(!V.includes(F))break a;V.splice(V.indexOf(F),1)}g.i6("yt-player-performance-cap-active-set",V,2592E3)}cp.set(F,
n)}else fP.add(F),v==null||v.set(F,n);R.TH.HX()};
TjJ=function(R,F){if(!F.T.T)return R.W?new dv(0,360,!1,"b"):LM;for(var n=!1,V=!1,r=g.m(F.T.videoInfos),v=r.next();!v.done;v=r.next())lT(v.value)?n=!0:V=!0;n=n&&V;V=0;r=g.Vn(R.G.experiments,"html5_performance_cap_floor");r=R.G.U?240:r;F=g.m(F.T.videoInfos);for(v=F.next();!v.done;v=F.next()){var f=v.value;if(!n||!lT(f))if(v=w3(f.x5,f.video.fps,R.N),f=f.video.qualityOrdinal,Math.max(v,r)>=f){V=f;break}}return new dv(0,V,!1,"b")};
ogN=function(R,F){var n=R.TH.y6();return n.isInline()&&!F.zD?new dv(0,480,!1,"v"):MA(F)?LM:n.isBackground()&&aS()/1E3>60&&!g.ad(R.G)?new dv(0,360,!1,"v"):LM};
yZj=function(R,F,n){if(R.G.experiments.GH("html5_disable_client_autonav_cap_for_onesie")&&F.fetchType==="onesie"||g.ad(R.G)&&(OT(-1)>=1080||F.osid))return LM;var V=g.Vn(R.G.experiments,"html5_autonav_quality_cap"),r=g.Vn(R.G.experiments,"html5_autonav_cap_idle_secs");return V&&F.isAutonav&&aS()/1E3>r?(n&&(V=ssJ(R,n,V)),new dv(0,V,!1,"e")):LM};
ssJ=function(R,F,n){if(R.B("html5_optimality_defaults_chooses_next_higher")&&n)for(R=F.T.videoInfos,F=1;F<R.length;F++)if(R[F].video.qualityOrdinal<n)return R[F-1].video.qualityOrdinal;return n};
Uke=function(R,F){R.B("html5_log_media_perf_info")&&(R.TH.m2("perfdb",a5e()),R.TH.m2("sessionperfdb",Object.fromEntries(cp.entries())),R.TH.m2("playbackperfdb",Object.fromEntries(R.N.entries())),R.TH.m2("hwc",{nch:navigator.hardwareConcurrency},!0),F&&R.TH.m2("mcdb",{itags:F.T.videoInfos.filter(function(n){var V;return((V=n.U)==null?void 0:V.smooth)===!1}).map(function(n){return n.itag}).join("-")}))};
a5e=function(){return yK(KQ(),function(R){return""+R})};
t5=function(R){g.G.call(this);var F=this;this.provider=R;this.T=-1;this.W=!1;this.U=-1;this.playerState=new g.Wz;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.J=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.ZK(this.send,6E4,this);this.N=!1;this.jsErrorCount=0;this.hJ={S8:function(){F.S8()}};
this.S8=function(){F.jsErrorCount++};
g.d(this,this.delay);window.addEventListener("error",this.S8);window.addEventListener("unhandledrejection",this.S8)};
js_=function(R){R.T>=0||(R.provider.TH.getVisibilityState()===3?R.W=!0:(R.T=g.kr(R.provider),R.delay.start()))};
HmI=function(R){if(!(R.U<0)){var F=g.kr(R.provider),n=F-R.J;R.J=F;R.playerState.state===8?R.playTimeSecs+=n:R.playerState.isBuffering()&&!g.E(R.playerState,16)&&(R.rebufferTimeSecs+=n)}};
hrN=function(R){var F;switch((F=R.G.playerCanaryStage)==null?void 0:F.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";case "xlarge":return"HTML5_PLAYER_CANARY_STAGE_XLARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}};
WnR=function(R){var F=this;this.provider=R;this.V=!1;this.U=0;this.J=-1;this.qH=NaN;this.N=0;this.segments=[];this.X=this.Z=0;this.previouslyEnded=!1;this.W=0;this.serializedStitchedClipLoggingMetadata=this.serializedPlaybackPingContextLoggingData=void 0;this.hJ={EVH:function(){return F.serializedPlaybackPingContextLoggingData},
aw2:function(){return F.serializedStitchedClipLoggingMetadata}};
this.Nq=this.provider.TH.getVolume();this.UZ=this.provider.TH.isMuted()?1:0;this.T=zt(this.provider)};
q7=function(R){R.T.startTime=R.N;R.T.endTime=R.U;var F;if((F=R.serializedPlaybackPingContextLoggingData)==null?0:F.length)R.T.serializedPlaybackPingContextLoggingData=R.serializedPlaybackPingContextLoggingData;var n;if((n=R.serializedStitchedClipLoggingMetadata)==null?0:n.length)R.T.serializedStitchedClipLoggingMetadata=R.serializedStitchedClipLoggingMetadata;F=!1;R.segments.length&&g.Ns(R.segments).isEmpty()?(R.segments[R.segments.length-1].previouslyEnded&&(R.T.previouslyEnded=!0),R.segments[R.segments.length-
1]=R.T,F=!0):R.segments.length&&R.T.isEmpty()||(R.segments.push(R.T),F=!0);F?R.T.endTime===0&&(R.previouslyEnded=!1):R.T.previouslyEnded&&(R.previouslyEnded=!0);R.Z+=R.U-R.N;R.T=zt(R.provider);R.T.previouslyEnded=R.previouslyEnded;R.provider.G.rg().T.pH(uWe)&&(R.W+=JSON.stringify(R.T).length);R.previouslyEnded=!1;R.N=R.U};
mkj=function(R){BjE(R);R.X=g.C$(function(){R.update()},100);
R.qH=g.kr(R.provider);R.T=zt(R.provider)};
BjE=function(R){g.ok(R.X);R.X=NaN};
ggN=function(R,F,n){n-=R.qH;return F===R.U&&n>.5};
OmN=function(R,F,n,V){this.G=F;this.QZ=n;this.segments=[];this.experimentIds=[];this.SQ=this.HI=this.isFinal=this.delayThresholdMet=this.on=this.Yy=this.autoplay=this.autonav=!1;this.us="yt";this.Z=[];this.X=this.UZ=null;this.YF=this.sendVisitorIdHeader=this.uS=!1;this.V=this.pageId="";this.HT=!1;this.W=n==="watchtime";this.N=n==="playback";this.lS=n==="atr";this.Kk=n==="engage";this.sendVisitorIdHeader=!1;this.uri=this.lS?"/api/stats/"+n:"//"+F.Vn+"/api/stats/"+n;V&&(this.HI=V.fs,V.rtn&&(this.X=
V.rtn),this.W?(this.playerState=V.state,V.rti>0&&(this.UZ=V.rti)):(this.H_=V.mos,this.Ow=V.volume,V.at&&(this.adType=V.at)),V.autonav&&(this.autonav=V.autonav),V.inview!=null&&(this.oC=V.inview),V.size&&(this.pC=V.size),V.playerwidth&&(this.lX=V.playerwidth),V.playerheight&&(this.fl=V.playerheight));this.A0=g.Di(F.T);this.V=mj(F.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.V==="all"||this.V==="once")this.KC=g.Di(F.KC);this.FG=F.Kk;this.experimentIds=BlN(F.experiments);this.dX=F.HT;this.us=
F.Nq;this.region=F.region;this.userAge=F.userAge;this.k5=F.tD;this.fm=aS();this.sendVisitorIdHeader=F.sendVisitorIdHeader;this.PG=F.B("vss_pings_using_networkless")||F.B("kevlar_woffle");this.h7=F.B("vss_final_ping_send_and_write");this.Mq=F.B("vss_use_send_and_write");this.pageId=F.pageId;this.Ru=F.B("vss_playback_use_send_and_write");F.livingRoomAppMode&&(this.livingRoomAppMode=F.livingRoomAppMode);g.Pp(F)&&(this.Y5=F.PG);g.pw(g.vV(F))&&this.Z.push(1);this.accessToken=g.Ql(R);R.kT[this.QZ]?this.J=
R.kT[this.QZ]:R.kT.playback&&(this.J=R.kT.playback);this.adFormat=R.adFormat;this.adQueryId=R.adQueryId;this.autoplay=ZBf(R);this.N&&(this.Yy=R.jm&&fK(R)==="adunit"?!0:!1);this.autonav=R.isAutonav||this.autonav;this.contentVideoId=z9(R);this.clientPlaybackNonce=R.clientPlaybackNonce;this.on=R.On;R.Z&&(this.J1=R.Z,this.mQ=R.BA);R.mdxEnvironment&&(this.mdxEnvironment=R.mdxEnvironment);this.T=R.KC;this.l0=R.l0;R.U&&(this.uZ=R.U.itag,R.J&&R.J.itag!==this.uZ&&(this.aG=R.J.itag));R.T&&Z6(R.T)&&(this.offlineDownloadUserChoice=
"1");this.eventLabel=fK(R);this.SQ=R.us?!1:R.pC;this.t0=R.Tl;if(F=NF(R))this.NP=F;this.Ra=R.D1;this.partnerId=R.partnerId;this.eventId=R.eventId;this.playlistId=R.DI||R.playlistId;this.Fa=R.Fa;this.J5=R.J5;this.nW=R.nW;this.a4=R.a4;this.subscribed=R.subscribed;this.videoId=R.videoId;this.videoMetadata=R.videoMetadata;this.visitorData=R.visitorData;this.osid=R.osid;this.W9=R.W9;this.referrer=R.referrer;this.FQ=R.Y8||R.FQ;this.h1=R.Sm;this.Z9=R.Z9;this.userGenderAge=R.userGenderAge;this.Hf=R.Hf;this.embedsRct=
R.embedsRct;this.embedsRctn=R.embedsRctn;g.Pp(this.G)&&R.mutedAutoplay&&(R.mutedAutoplayDurationMode===2&&R.limitedPlaybackDurationInSeconds===0&&R.endSeconds===0?this.Z.push(7):this.Z.push(2));R.isEmbedsShortsMode(new g.QX(this.lX,this.fl),!!this.playlistId)&&this.Z.push(3);g.T9(R)&&this.Z.push(4);this.gX=R.Xq;R.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=R.compositeLiveIngestionOffsetToken);R=R.getPlayerResponse();var r,v;this.HT=this.G.B("html5_switch_vss_to_post")||
!!(R==null?0:(r=R.playerConfig)==null?0:(v=r.vssClientConfig)==null?0:v.vssUsePostRequest)};
I5N=function(R,F){var n=R.sendVisitorIdHeader?R.visitorData:void 0;return g.HV(R.G,R.accessToken).then(function(V){return mjW(R.uri,R.G,R.pageId,n,V,F)})};
ime=function(R,F){return function(){R.G.B("html5_simplify_pings")?(R.T=R.bS,R.eB=F(),R.fm=0,R.send()):I5N(R).then(function(n){var V=KnW(R);V.cmt=V.len;V.lact="0";var r=F().toFixed(3);V.rt=Number(r).toString();V=g.DI(R.uri,V);R.G.B("vss_through_gel_double")&&Dk_(V);R.PG?(n==null&&(n={}),R.Mq?Ni().sendAndWrite(V,n):Ni().sendThenWrite(V,n)):n?g.ux(V,n):g.ir(V)})}};
KnW=function(R){var F={ns:R.us,el:R.eventLabel,cpn:R.clientPlaybackNonce,ver:2,cmt:R.U(R.T),fmt:R.uZ,fs:R.HI?"1":"0",rt:R.U(R.eB),adformat:R.adFormat,content_v:R.contentVideoId,euri:R.FG,lact:R.fm,live:R.NP,cl:(856451506).toString(),mos:R.H_,state:R.playerState,volume:R.Ow};R.subscribed&&(F.subscribed="1");Object.assign(F,R.A0);R.V==="all"?Object.assign(F,R.KC):R.V==="once"&&R.N&&Object.assign(F,R.KC);R.autoplay&&(F.autoplay="1");R.Yy&&(F.sautoplay="1");R.on&&(F.dni="1");!R.W&&R.Y5&&(F.epm=xkW[R.Y5]);
R.isFinal&&(F["final"]="1");R.SQ&&(F.splay="1");R.l0&&(F.delay=R.l0);R.dX&&(F.hl=R.dX);R.region&&(F.cr=R.region);R.userGenderAge&&(F.uga=R.userGenderAge);R.userAge!==void 0&&R.k5&&(F.uga=R.k5+R.userAge);R.bS!==void 0&&(F.len=R.U(R.bS));(!R.W||R.YF)&&R.experimentIds.length>0&&(F.fexp=R.experimentIds.toString());R.X!==null&&(F.rtn=R.U(R.X));R.FQ&&(F.feature=R.FQ);R.J5&&(F.ctrl=R.J5);R.nW&&(F.ytr=R.nW);R.aG&&(F.afmt=R.aG);R.offlineDownloadUserChoice&&(F.ODUC=R.offlineDownloadUserChoice);R.Nq&&(F.lio=
R.U(R.Nq));R.W?(F.idpj=R.t0,F.ldpj=R.Ra,R.delayThresholdMet&&(F.dtm="1"),R.UZ!=null&&(F.rti=R.U(R.UZ)),R.Hf&&(F.ald=R.Hf),R.compositeLiveIngestionOffsetToken&&(F.clio=R.compositeLiveIngestionOffsetToken)):R.adType!==void 0&&(F.at=R.adType);R.pC&&(R.N||R.W)&&(F.size=R.pC);R.N&&R.Z.length&&(F.pbstyle=R.Z.join(","));R.oC!=null&&(R.N||R.W)&&(F.inview=R.U(R.oC));R.W&&(F.volume=QE(R,g.OM(R.segments,function(V){return V.volume})),F.st=QE(R,g.OM(R.segments,function(V){return V.startTime})),F.et=QE(R,g.OM(R.segments,
function(V){return V.endTime})),t3(R.segments,function(V){return V.playbackRate!==1})&&(F.rate=QE(R,g.OM(R.segments,function(V){return V.playbackRate}))),t3(R.segments,function(V){return V.T!=="-"})&&(F.als=g.OM(R.segments,function(V){return V.T}).join(",")),t3(R.segments,function(V){return V.previouslyEnded})&&(F.pe=g.OM(R.segments,function(V){return""+ +V.previouslyEnded}).join(",")));
F.muted=QE(R,g.OM(R.segments,function(V){return V.muted?1:0}));
t3(R.segments,function(V){return V.visibilityState!==0})&&(F.vis=QE(R,g.OM(R.segments,function(V){return V.visibilityState})));
t3(R.segments,function(V){return V.connectionType!==0})&&(F.conn=QE(R,g.OM(R.segments,function(V){return V.connectionType})));
t3(R.segments,function(V){return V.U!==0})&&(F.blo=QE(R,g.OM(R.segments,function(V){return V.U})));
t3(R.segments,function(V){return!!V.J})&&(F.blo=g.OM(R.segments,function(V){return V.J}).join(","));
t3(R.segments,function(V){return!!V.compositeLiveStatusToken})&&(F.cbs=g.OM(R.segments,function(V){return V.compositeLiveStatusToken}).join(","));
t3(R.segments,function(V){return!!V.heartbeatLoggingToken})&&(F.hb_data=g.OM(R.segments,function(V){return V.heartbeatLoggingToken}).join(","));
t3(R.segments,function(V){return V.N!=="-"})&&(F.cc=g.OM(R.segments,function(V){return V.N}).join(","));
t3(R.segments,function(V){return V.clipId!=="-"})&&(F.clipid=g.OM(R.segments,function(V){return V.clipId}).join(","));
if(t3(R.segments,function(V){return!!V.audioId})){var n="au";
R.N&&(n="au_d");F[n]=g.OM(R.segments,function(V){return V.audioId}).join(",")}wz()&&R.J1&&(F.ctt=R.J1,F.cttype=R.mQ,F.mdx_environment=R.mdxEnvironment);
R.Kk&&(F.etype=R.jQ!==void 0?R.jQ:0);R.h1&&(F.uoo=R.h1);R.livingRoomAppMode&&R.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(F.clram=kBj[R.livingRoomAppMode]||R.livingRoomAppMode);R.J?YCR(R,F):(F.docid=R.videoId,F.referrer=R.referrer,F.ei=R.eventId,F.of=R.W9,F.osid=R.osid,F.vm=R.videoMetadata,R.adQueryId&&(F.aqi=R.adQueryId),R.autonav&&(F.autonav="1"),R.playlistId&&(F.list=R.playlistId),R.a4&&(F.ssrt="1"),R.Z9&&(F.upt=R.Z9));R.N&&(R.embedsRct&&(F.rct=R.embedsRct),R.embedsRctn&&(F.rctn=
R.embedsRctn),R.compositeLiveIngestionOffsetToken&&(F.clio=R.compositeLiveIngestionOffsetToken));R.gX&&(F.host_cpn=R.gX);return F};
YCR=function(R,F){if(F&&R.J){var n=new Set(["q","feature","mos"]),V=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),r=new Set(["aqi","autonav","list","ssrt","upt"]);R.J.ns==="3pp"&&(F.ns="3pp");for(var v=g.m(Object.keys(R.J)),f=v.next();!f.done;f=v.next())f=f.value,V.has(f)||n.has(f)||r.has(f)&&!R.J[f]||(F[f]=R.J[f])}};
QE=function(R,F){return g.OM(F,R.U).join(",")};
Dk_=function(R){R.indexOf("watchtime")!==-1&&g.LJ("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:R}})};
JZe=function(R,F){R.attestationResponse&&I5N(R).then(function(n){n=n||{};n.method="POST";n.postParams={atr:R.attestationResponse};R.PG?R.Mq?Ni().sendAndWrite(F,n):Ni().sendThenWrite(F,n):g.ux(F,n)})};
GBk=function(R){var F={vssSegmentMetadata:[]};if(t3(R.segments,function(V){return!!V.serializedPlaybackPingContextLoggingData||!!V.serializedStitchedClipLoggingMetadata})){R=g.m(R.segments);
for(var n=R.next();!n.done;n=R.next())n=n.value,F.vssSegmentMetadata.push({serializedPlaybackPingContextLoggingData:n.serializedPlaybackPingContextLoggingData||[],serializedStitchedClipLoggingMetadata:n.serializedStitchedClipLoggingMetadata||[]});return F}};
cY=function(R){g.G.call(this);var F=this;this.provider=R;this.Z="paused";this.W=NaN;this.V=[10,10,10,40];this.UZ=this.X=0;this.J1=this.lS=this.jQ=this.Nq=this.J=!1;this.N=this.U=NaN;this.logger=new g.B1("vss");this.hJ={LtZ:function(){return F.T}};
this.T=new WnR(R)};
dkW=function(R){var F=R.provider.videoData.Tl,n=R.provider.videoData.D1,V=[10+F,10,10,40+n-F,40],r,v=(r=R.provider.videoData.getPlayerResponse())==null?void 0:r.playbackTracking,f=v==null?void 0:v.videostatsScheduledFlushWalltimeSeconds;r=v==null?void 0:v.videostatsDefaultFlushIntervalSeconds;if(!(f&&f.length>0&&r))return V;F=[f[0]+F].concat(g.I(f.slice(1).map(function(z,q){return z-f[q]})),[r+n-F,
r]);return F.some(function(z){return z<0})?(g.mW(R.logger,347111855,"Neg vss scheduled pings "+f+" "+r),V):F};
ww=function(R,F){F=F===void 0?NaN:F;var n=g.kr(R.provider);F=isNaN(F)?n:F;F=Math.ceil(F);var V=R.V[R.X];R.X+1<R.V.length&&R.X++;var r=F+V;R.W=g.ak(function(){if(!R.Zo()){R.W=NaN;var v=MF9(R),f=l5E(R,v);f.UZ=r;var z=R.UZ>1E3;!(v.length>1)&&v[0].isEmpty()||z||(f.X=ww(R,r));f.send();R.UZ++}},(r-n)*1E3);
return R.U=r};
SQ=function(R){g.Tg(R.W);R.W=NaN};
MF9=function(R){R.T.update();R=R.T;R.segments.length&&R.U===R.N||q7(R);var F=R.segments;R.segments=[];R.W=0;return F};
LP=function(R,F){var n=NjW(R.provider);Object.assign(n,{state:R.Z});F=new OmN(R.provider.videoData,R.provider.G,F,n);F.T=R.provider.TH.uX();n=R.provider.videoData.clientPlaybackNonce;F.T=R.provider.TH.Gg(n);R.provider.videoData.isLivePlayback||(F.bS=R.provider.TH.getDuration(n));R.provider.videoData.T&&(n=R.provider.videoData.T.wD(F.T))&&(F.Nq=n-F.T,Bh(R.provider.videoData)&&(F.T+=R.provider.TH.qC(),F.Nq-=R.provider.TH.qC()));F.eB=g.kr(R.provider);F.segments=[zt(R.provider)];return F};
l5E=function(R,F){var n=LP(R,"watchtime");Egk(R)&&(n.delayThresholdMet=!0,R.jQ=!0);if(R.N>0){for(var V=g.m(F),r=V.next();!r.done;r=V.next())r=r.value,r.startTime-=R.N,r.endTime-=R.N;n.T-=R.N}else n.T=R.T.U;n.segments=F;return n};
pP=function(R,F){var n=se(R,!isNaN(R.U));F&&(R.U=NaN);return n};
se=function(R,F,n){n=n===void 0?!1:n;var V=l5E(R,MF9(R));!isNaN(R.U)&&F&&(V.UZ=R.U);n&&(V.YF=!0);return V};
Egk=function(R){var F;if(F=R.provider.videoData.isLoaded()&&R.provider.videoData.l0&&R.J&&!R.jQ)F=R.T,F=F.Z+F.uX()-F.N>=R.provider.videoData.l0;return!!F};
PG9=function(R){R.provider.videoData.youtubeRemarketingUrl&&!R.lS&&($kk(R,R.provider.videoData.youtubeRemarketingUrl),R.lS=!0)};
bmj=function(R){R.provider.videoData.googleRemarketingUrl&&!R.J1&&($kk(R,R.provider.videoData.googleRemarketingUrl),R.J1=!0)};
Zmj=function(R){if(!R.Zo()&&R.J){R.Z="paused";var F=pP(R);F.isFinal=!0;F.send();R.dispose()}};
erN=function(R,F){if(!R.Zo())if(g.E(F.state,2)||g.E(F.state,512)){if(R.Z="paused",g.Sx(F,2)||g.Sx(F,512))g.Sx(F,2)&&(R.T.previouslyEnded=!0),R.J&&(SQ(R),pP(R).send(),R.U=NaN)}else if(g.E(F.state,8)){R.Z="playing";var n=R.J&&isNaN(R.W)?ww(R):NaN;if(!isNaN(n)&&(wr(F,64)<0||wr(F,512)<0)){var V=se(R,!1);V.X=n;V.send()}g.Sx(F,16)&&F.state.seekSource===58&&(R.T.previouslyEnded=!0)}else R.Z="paused"};
RSJ=function(R,F,n){if(!R.Nq){n||(n=LP(R,"atr"));n.attestationResponse=F;try{n.send()}catch(V){if(V.message!=="Unknown Error")throw V;}R.Nq=!0}};
$kk=function(R,F){var n=R.provider.G;g.HV(R.provider.G,g.Ql(R.provider.videoData)).then(function(V){var r=R.provider.G.pageId,v=R.provider.G.sendVisitorIdHeader?R.provider.videoData.visitorData:void 0,f=R.provider.G.B("vss_pings_using_networkless")||R.provider.G.B("kevlar_woffle"),z=R.provider.G.B("allow_skip_networkless");V=mjW(F,n,r,v,V);gM9(F,V,{token:R.provider.videoData.Z,AY:R.provider.videoData.BA,mdxEnvironment:R.provider.videoData.mdxEnvironment},n,void 0,f&&!z,!1,!0)})};
FMR=function(){this.endTime=this.startTime=-1;this.N="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.volume=this.connectionType=this.U=0;this.muted=!1;this.T=this.clipId="-";this.previouslyEnded=!1};
XH=function(R,F,n){this.videoData=R;this.G=F;this.TH=n;this.T=void 0};
g.kr=function(R){return nZj(R)()};
nZj=function(R){if(!R.T){var F=g.Y$(function(V){var r=(0,g.h1)();V&&r<=631152E6&&(R.TH.m2("ytnerror",{issue:28799967,value:""+r}),r=(new Date).getTime()+2);return r},R.G.B("html5_validate_yt_now")),n=F();
R.T=function(){return Math.round(F()-n)/1E3};
R.TH.k7()}return R.T};
NjW=function(R){var F=R.TH.NF()||{};F.fs=R.TH.dT();F.volume=R.TH.getVolume();F.muted=R.TH.isMuted()?1:0;F.mos=F.muted;F.clipid=R.TH.zO();var n;F.playerheight=((n=R.TH.getPlayerSize())==null?void 0:n.height)||0;var V;F.playerwidth=((V=R.TH.getPlayerSize())==null?void 0:V.width)||0;R=R.videoData;n={};R.U&&(n.fmt=R.U.itag,R.J&&(R.SQ?R.J.itag!==R.U.itag:R.J.itag!=R.U.itag)&&(n.afmt=R.J.itag));n.ei=R.eventId;n.list=R.playlistId;n.cpn=R.clientPlaybackNonce;R.videoId&&(n.v=R.videoId);R.GD&&(n.infringe=1);
(R.us?0:R.pC)&&(n.splay=1);(V=NF(R))&&(n.live=V);R.jm&&(n.sautoplay=1);R.Lm&&(n.autoplay=1);R.Fa&&(n.sdetail=R.Fa);R.partnerId&&(n.partnerid=R.partnerId);R.osid&&(n.osid=R.osid);R.M_&&(n.cc=g.bf9(R.M_));return Object.assign(F,n)};
elf=function(R){var F=p5R();if(F)return VzI[F]||VzI.other;if(g.ad(R.G)){R=navigator.userAgent;if(/[Ww]ireless[)]/.test(R))return 3;if(/[Ww]ired[)]/.test(R))return 30}return 0};
zt=function(R){var F=new FMR,n;F.N=((n=NjW(R).cc)==null?void 0:n.toString())||"-";F.playbackRate=R.TH.getPlaybackRate();n=R.TH.getVisibilityState();n!==0&&(F.visibilityState=n);R.G.h1&&(F.U=1);F.J=R.videoData.yJ;F.compositeLiveStatusToken=R.videoData.compositeLiveStatusToken;F.heartbeatLoggingToken=R.videoData.heartbeatLoggingToken;n=R.TH.getAudioTrack();n.z9&&n.z9.id&&n.z9.id!=="und"&&(F.audioId=n.z9.id);F.connectionType=elf(R);F.volume=R.TH.getVolume();F.muted=R.TH.isMuted();F.clipId=R.TH.zO()||
"-";F.T=R.videoData.YU||"-";return F};
g.A5=function(R,F){g.G.call(this);var n=this;this.provider=R;this.N=new Map;this.Ll=new g.Wz;this.hJ={hr5:function(){return n.qoe},
opQ:function(){return n.T},
t02:function(){return n.U}};
this.provider.videoData.XP()&&!this.provider.videoData.NP&&(this.T=new cY(this.provider),this.T.N=0,g.d(this,this.T),this.qoe=new g.DQ(this.provider,F),g.d(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.pm=this.provider.videoData.clientPlaybackNonce)&&this.N.set(this.pm,this.T));if(R.G.playerCanaryState==="canary"||R.G.playerCanaryState==="holdback")this.U=new t5(this.provider),g.d(this,this.U)};
r29=function(R){R.U&&js_(R.U);R.qoe&&wNN(R.qoe)};
vZV=function(R){R.U&&R.U.send();if(R.qoe){var F=R.qoe;if(F.J){F.Ll==="PL"&&(F.Ll="N");var n=g.kr(F.provider);g.Kh(F,n,"vps",[F.Ll]);F.X||(F.N>=0&&F.T.set("user_intent",[F.N.toString()]),F.X=!0);F.provider.G.CC()&&F.m2("finalized",{});F.PG=!0;F.reportStats(n)}}if(R.provider.videoData.enableServerStitchedDai)for(F=g.m(R.N.values()),n=F.next();!n.done;n=F.next())Zmj(n.value);else R.T&&Zmj(R.T);R.dispose()};
fwf=function(R,F){R.T&&RSJ(R.T,F)};
tzW=function(R){if(!R.T)return null;var F=LP(R.T,"atr");return function(n){R.T&&RSJ(R.T,n,F)}};
zSN=function(R,F,n,V){n.adFormat=n.aG;var r=F.TH;F=new cY(new XH(n,F.G,{getDuration:function(){return n.lengthSeconds},
getCurrentTime:function(){return r.getCurrentTime()},
uX:function(){return r.uX()},
Gg:function(){return r.Gg()},
lj:function(){return r.lj()},
getPlayerSize:function(){return r.getPlayerSize()},
getAudioTrack:function(){return n.getAudioTrack()},
getPlaybackRate:function(){return r.getPlaybackRate()},
bj:function(){return r.bj()},
getVisibilityState:function(){return r.getVisibilityState()},
Mc:function(){return r.Mc()},
NF:function(){return r.NF()},
getVolume:function(){return r.getVolume()},
isMuted:function(){return r.isMuted()},
dT:function(){return r.dT()},
zO:function(){return r.zO()},
getProximaLatencyPreference:function(){return r.getProximaLatencyPreference()},
k7:function(){r.k7()},
m2:function(v,f){r.m2(v,f)},
qt:function(){return r.qt()},
qC:function(){return r.qC()}}));
F.N=V;g.d(R,F);return F};
qzj=function(){this.h3=0;this.J=this.N=this.EK=this.A_=this.U=NaN;this.T={};this.bandwidthEstimate=NaN};
Q6I=function(){this.T=g.EQ;this.array=[]};
wfN=function(R,F,n){var V=[];for(F=c2E(R,F);F<R.array.length;++F){var r=R.array[F];(r.end<=n||r.contains(n))&&V.push(r);if(r.start>n)break}return V};
a3=function(R,F){var n=[];R=g.m(R.array);for(var V=R.next();!V.done&&!(V=V.value,V.contains(F)&&n.push(V),V.start>F);V=R.next());return n};
SzV=function(R){return R.array.slice(c2E(R,0x7ffffffffffff),R.array.length)};
c2E=function(R,F){R=sm(R.array,function(n){return F-n.start||1});
return R<0?-(R+1):R};
LMR=function(R,F){var n=NaN;R=g.m(R.array);for(var V=R.next();!V.done;V=R.next())if(V=V.value,V.contains(F)&&(isNaN(n)||V.end<n)&&(n=V.end),V.start>F&&(isNaN(n)||V.start<n)){n=V.start;break}return n};
s6N=function(R,F){R.array=R.array.filter(function(n){return!F.has(n)})};
g.CP=function(R,F){g.G.call(this);this.TH=R;this.X=F;this.N=NaN;this.W=this.Z=this.started=!1;this.U=[];this.V=new g.ZK(this.sync,250,this);g.d(this,this.V);this.J=new g.ZK(this.sync,0,this);g.d(this,this.J);this.T=new Q6I};
pfJ=function(R,F){var n=[];if(!F.length)return n;for(var V=0;V<F.length;V++){var r=F[V];r.active&&R.U.indexOf(r)===-1&&(R.U.push(r),n.push([1,r]))}return n};
XfI=function(R,F){var n=[];if(!F.length)return n;F.sort(g.EQ);F=g.m(F);for(var V=F.next();!V.done;V=F.next())V=V.value,R.U.splice(R.U.indexOf(V),1),n.push([2,V]);return n};
CBI=function(R){if(R.started&&!R.Zo()){R.J.stop();var F=R.TH.getPlayerState();g.E(F,32)&&R.V.start();for(var n=A2e(R),V=R.isEnded(F,n),r=[],v=[],f=g.m(R.U),z=f.next();!z.done;z=f.next())z=z.value,z.active&&(V?z.end<0x8000000000000:!z.contains(n))&&v.push(z);r=r.concat(XfI(R,v));f=v=null;V?(F=a3(R.T,0x7ffffffffffff),v=F.filter(function(q){return q.end<0x8000000000000}),f=SzV(R.T)):F=R.N<=n&&K6(F)?wfN(R.T,R.N,n):a3(R.T,n);
r=r.concat(pfJ(R,F));v&&(r=r.concat(XfI(R,v)));f&&(r=r.concat(pfJ(R,f)));R.N=n;awI(R,r)}};
awI=function(R,F){F=g.m(F);for(var n=F.next();!n.done;n=F.next()){n=n.value;var V=n[1];n[0]===1?R.X(g.$A(V.namespace),V):R.X(g.Pl(V.namespace),V)}};
A2e=function(R){return g.E(R.TH.getPlayerState(),2)?0x8000000000000:R.TH.getCurrentTime()*1E3};
TOR=function(R){this.G=R;this.N=this.U=this.mediaTime=NaN;this.J=this.T=!1;this.W=.001;g.ad(R)&&(this.W=.01)};
Tt=function(R,F){return F>R.mediaTime+R.W&&F<R.mediaTime+5};
lzk=function(R,F,n,V,r){if(V=V>1)R.J=!0;if((r===void 0?0:r)||isNaN(R.U))R.U=F;if(R.T)F!==R.mediaTime&&(R.T=!1);else if(F>0&&R.mediaTime===F){r=1500;if(R.G.B("html5_buffer_underrun_transition_fix")){r=g.Vn(R.G.experiments,"html5_min_playback_advance_for_steady_state_secs");var v=g.Vn(R.G.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");r=r>0&&v>0&&Math.abs(F-R.U)<r?v:1500}return n-R.N>(V||!R.J?r:400)}R.mediaTime=F;R.N=n;return!1};
oZj=function(R,F){this.videoData=R;this.T=F};
y2k=function(R,F,n){return F.oX(n).then(function(){return D_(new oZj(F,F.N))},function(V){V instanceof Error&&g.mq(V);
var r=w8('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),v=Lb('audio/mp4; codecs="mp4a.40.2"'),f=r||v,z=F.isLivePlayback&&!g.Ic(R.W,!0);V="fmt.noneavailable";z?V="html5.unsupportedlive":f||(V="html5.missingapi");f=z||!f?2:1;r={buildRej:"1",a:F.tb(),d:!!F.xo,drm:F.iX(),f18:F.jf.indexOf("itag=18")>=0,c18:r};F.T&&(F.iX()?(r.f142=!!F.T.T["142"],r.f149=!!F.T.T["149"],r.f279=!!F.T.T["279"]):(r.f133=!!F.T.T["133"],r.f140=!!F.T.T["140"],r.f242=!!F.T.T["242"]),r.cAAC=v,r.cAVC=Lb('video/mp4; codecs="avc1.42001E"'),
r.cVP9=Lb('video/webm; codecs="vp9"'));F.W&&(r.drmsys=F.W.keySystem,v=0,F.W.T&&(v=Object.keys(F.W.T).length),r.drmst=v);return new g.z$(V,r,f)})};
o3=function(R){this.data=window.Float32Array?new Float32Array(R):Array(R);this.U=this.T=R-1};
Unj=function(R){return R.data[R.T]||0};
j69=function(R){this.W=R;this.N=this.U=0;this.J=new o3(50)};
Ue=function(R,F,n){g.fG.call(this);this.videoData=R;this.experiments=F;this.W=n;this.U=[];this.OL=0;this.N=!0;this.J=!1;this.Z=0;n=new HF_;R.latencyClass==="ULTRALOW"&&(n.V=!1);R.Fi?n.N=3:g.Zh(R)&&(n.N=2);R.latencyClass==="NORMAL"&&(n.W=!0);n.Nq=MA(R);if(R.latencyClass==="LOW"||R.latencyClass==="ULTRALOW")n.W=!0;var V=g.Vn(F,"html5_liveness_drift_proxima_override");if(YG(R)!==0&&V){n.T=V;var r;((r=R.T)==null?0:dLv(r))&&n.T--}MA(R)&&F.GH("html5_sabr_parse_live_metadata_playback_boundaries")&&(n.J1=
!0);if(g.E2("trident/")||g.E2("edge/"))r=g.Vn(F,"html5_platform_minimum_readahead_seconds")||3,n.J=Math.max(n.J,r);g.Vn(F,"html5_minimum_readahead_seconds")&&(n.J=g.Vn(F,"html5_minimum_readahead_seconds"));g.Vn(F,"html5_maximum_readahead_seconds")&&(n.UZ=g.Vn(F,"html5_maximum_readahead_seconds"));if(F=g.Vn(F,"html5_liveness_drift_chunk_override"))n.T=F;kG(R)&&(n.T=(n.T+1)/5,R.latencyClass==="LOW"&&(n.T*=2));!MA(R)||R.latencyClass!=="ULTRALOW"&&R.latencyClass!=="LOW"||(n.X=3,n.Z=25);this.policy=n;
this.X=this.policy.N!==1;this.T=yE(this,hSN(this,isNaN(R.liveChunkReadahead)?3:R.liveChunkReadahead,R))};
WM_=function(R,F){if(F)return F=R.videoData,F=hSN(R,isNaN(F.liveChunkReadahead)?3:F.liveChunkReadahead,F),yE(R,F);if(R.U.length){if(Math.min.apply(null,R.U)>1)return yE(R,R.T-1);if(R.policy.V)return yE(R,R.T+1)}return R.T};
uM_=function(R,F){if(!R.U.length)return!1;var n=R.T;R.T=WM_(R,F===void 0?!1:F);if(F=n!==R.T)R.U=[],R.OL=0;return F};
HY=function(R,F){return F>=R.t5()-jQ(R)};
BOe=function(R,F,n){F=HY(R,F);n||F?F&&(R.N=!0):R.N=!1;R.X=R.policy.N===2||R.policy.N===3&&R.N};
mnj=function(R,F){F=HY(R,F);R.J!==F&&R.publish("livestatusshift",F);R.J=F};
jQ=function(R){var F=R.policy.T;R.J||(F=Math.max(F-1,0));return F*h5(R)};
hSN=function(R,F,n){n.Fi&&F--;kG(n)&&(F=1);if(YG(n)!==0&&(R=g.Vn(R.experiments,"html5_live_chunk_readahead_proxima_override"))){F=R;var V;((V=n.T)==null?0:dLv(V))&&F++}return F};
h5=function(R){return R.videoData.T?r3(R.videoData.T)||5:5};
yE=function(R,F){F=Math.max(Math.max(1,Math.ceil(R.policy.J/h5(R))),F);return Math.min(Math.min(8,Math.floor(R.policy.UZ/h5(R))),F)};
HF_=function(){this.J=0;this.UZ=Infinity;this.V=!0;this.U=this.T=2;this.N=1;this.W=!1;this.Z=10;this.J1=!1;this.X=1;this.Nq=!1};
BY=function(R){g.G.call(this);this.TH=R;this.T=0;this.U=null;this.Z=this.J=0;this.N={};this.G=this.TH.D();this.W=new g.ZK(this.pX,1E3,this);this.SQ=WY(this,"html5_seek_timeout_delay_ms");this.jQ=WY(this,"html5_long_rebuffer_threshold_ms");this.uS=WY(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.Mq=WY(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.Y5=WY(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.KC=WY(this,"html5_unreported_seek_reseek_delay_ms",
"html5_unreported_seek_reseek_cfl");this.Nq=WY(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.J1=new um(2E4);this.bS=WY(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.dX=WY(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.gX=WY(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.PG=WY(this,"html5_reseek_after_time_jump_delay_ms",
"html5_reseek_after_time_jump_cfl");this.V=WY(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.UZ=WY(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.h1=WY(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.k5=WY(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.X=WY(this,"html5_ads_preroll_lock_timeout_delay_ms",
"html5_ads_preroll_lock_timeout_cfl");this.aG=new um(g.Vn(this.G.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.G.B("html5_report_slow_ads_as_error"));this.mQ=new um(g.Vn(this.G.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.G.B("html5_skip_slow_buffering_ad"));this.on=WY(this,"html5_slow_start_timeout_delay_ms");this.lS=WY(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.d(this,this.W)};
WY=function(R,F,n){n=n===void 0?null:n;var V=V===void 0?0:V;return new um(g.Vn(R.G.experiments,F)||V,n?R.G.B(n):!1)};
gZe=function(R,F){R.T=F};
mN=function(R,F,n,V,r,v,f,z){F?F.test(n)?(R.Tk(r,F,f),F.Z||v()):(!F.U||F.J?n=!1:(n=(0,g.h1)(),V?F.T||(F.T=n):F.T=0,v=!V&&n-F.U>3E4,n=F.T&&n-F.T>1E3||v?F.J=!0:!1),n&&(z=Object.assign({},R.fC(F),z),z.wn=f,z.we=r,z.wsuc=V,R.TH.m2("workaroundReport",z),V&&(F.reset(),R.N[r]=!1))):R.TH.Rr("auth",2,"BROWSER_OR_EXTENSION_ERROR",tQ({source:"watchdog",name:f}))};
um=function(R,F){this.Z=F===void 0?!1:F;this.T=this.U=this.N=this.startTimestamp=0;this.J=!1;this.W=Math.ceil(R/1E3)};
DnV=function(R){g.G.call(this);var F=this;this.TH=R;this.V=this.T=this.loader=this.mediaElement=this.playbackData=null;this.N=0;this.W=this.jQ=this.J=null;this.PG=!1;this.KC=0;this.J1=!1;this.timestampOffset=0;this.UZ=!0;this.dX=0;this.uS=this.HI=!1;this.X=0;this.k5=!1;this.Y5=this.lS=0;this.G=this.TH.D();this.videoData=this.TH.getVideoData();this.policy=new OFJ;this.Nq=new BY(this.TH);this.mQ=this.gX=this.bS=this.Z=this.U=NaN;this.Mq=new g.ZK(function(){Iw9(F,!1)},2E3);
this.YF=new g.ZK(function(){gw(F)});
this.SQ=new g.ZK(function(){KMR(F,{})});
this.on=NaN;this.aG=new g.ZK(function(){var n=F.G.vA;n.T+=1E4/36E5;n.T-n.N>1/6&&(t9j(n),n.N=n.T);F.aG.start()},1E4);
g.d(this,this.Nq);g.d(this,this.Mq);g.d(this,this.SQ);g.d(this,this.YF);g.d(this,this.aG)};
khI=function(R,F){R.playbackData=F;R.videoData.isLivePlayback&&(R.V=new j69(function(){a:{if(R.playbackData&&R.playbackData.T.T){if(xG(R.videoData)&&R.loader){var V=R.loader.sO.Cm()||0;break a}if(R.videoData.T){V=R.videoData.T.PG;break a}}V=0}return V}),R.T=new Ue(R.videoData,R.G.experiments,function(){return R.fX(!0)}));
if(Oe(R.TH)){var n;(n=R.videoData.xw)!=null&&n.FI||(F=iFE(R),F.XO?(MA(R.videoData)&&R.xO(F.XO,F.startSeconds),R.N=F.startSeconds):F.startSeconds>0&&R.seekTo(F.startSeconds,{gW:"seektimeline_startPlayback",seekSource:15}));R.UZ=!1}else xnf(R)||(R.N=R.N||R.videoData.startSeconds||0,R.videoData.isLivePlayback||(F=R.TH.videoData.fX(),R.N>F&&(R.B("html5_sabr_log_invalid_sabr_current_time")&&R.TH.m2("invalidSabrCmtStart",{rt:R.N,mst:F}),R.B("html5_sabr_vod_invalid_start_time_fallback")&&(R.N=0))))};
J2R=function(R,F){(R.loader=F)?Yz6(R,!0):I3(R)};
dnI=function(R,F){var n=R.getCurrentTime(),V=R.isAtLiveHead(n);if(R.V&&V){var r=R.V;if(r.T&&!(n>=r.U&&n<r.N)){var v=r.T.kc(n);v!==-1&&(r.U=r.T.getStartTime(v),r.N=r.U+r.T.getDuration(v),v=(0,g.h1)()/1E3-r.T.wD(v),v-=r.W(),r.J.add(v))}}R.T&&(V&&(r=R.T,v=Gh6(R),r.OL++,r.OL<3||Date.now()-r.Z<3E3||(r.Z=Date.now(),r.U.push(v),r.U.length>50&&r.U.shift())),r=R.T,BOe(r,n,F===void 0?!0:F),mnj(r,n),F&&Iw9(R,!0));V!==R.HI&&(F=R.getCurrentTime()-R.mQ<=500,n=R.KC>=1E3,F||n||(F=R.TH.Dt,F.qoe&&(F=F.qoe,n=g.kr(F.provider),
g.Kh(F,n,"lh",[V?"1":"0"])),R.HI=V,R.KC++,R.mQ=R.getCurrentTime()))};
Iw9=function(R,F){if(R.T){var n=R.T;var V=R.getCurrentTime(),r=n.t5();var v=n.policy.U;n.J||(v=Math.max(v-1,0));v*=h5(n);V>=r-v||!n.S_()?n=V<n.videoData.RC()?Math.min(n.videoData.RC()+10,n.t5()):NaN:(n.policy.W&&(n.policy.Nq?(n.policy.U=Math.min(n.policy.U+n.policy.X,n.policy.Z),n.policy.T=Math.min(n.policy.T+1,10)):(n.policy.U=Math.max(n.policy.U+1,n.policy.Z),n.policy.T=Math.max(n.policy.T+1,10))),n=Infinity);if(!isNaN(n)){if(R.loader&&F&&(F=R.Mq.isActive(),V=R.T.t5(),(V=lHj(R.loader,V-R.qC()))&&
!F)){R.Mq.start();R.TH.m2("inBufferPtl",{cmt:R.getCurrentTime(),seekTo:V+R.qC()});R.seekTo(V+R.qC(),{gW:"seektimeline_inBufferSeek",seekSource:34});return}R.seekTo(n,{gW:"seektimeline_pegToLive",seekSource:34})}}};
Yz6=function(R,F){if(R.T&&R.loader){var n=!1;F?n=!0:R.videoData.isLowLatencyLiveStream||R.videoData.latencyClass==="LOW"||R.videoData.latencyClass==="ULTRALOW"?n=uM_(R.T):R.k5&&(R.k5=!1,n=uM_(R.T,!0));n&&(F=R.TH.Dt,n=R.T,n=h5(n)*n.T,F.qoe&&(F=F.qoe,g.Kh(F,g.kr(F.provider),"lra",[n]),F.m2("live-readahead-seconds",{v:n})));F=R.loader;n=R.T.T;R=R.T;R=(R.T-1+R.policy.T)*h5(R);var V=NaN,r=F.us;r===2||r===-1?kG(F.TH.getVideoData())&&(V=F.policy.zE):--n;n=Math.max(n,0);r=F.Z;r.m0=n;r.V=V;F.V&&(F.V.Nq=R)}};
Mzv=function(R,F){R.N=F};
KMR=function(R,F){R.PG=!0;R.B("html5_use_centralized_player_time")&&(R.U=R.Z,R.N=R.U,R.Z=NaN);lw_(R,F)};
lw_=function(R,F){NON(R,F).then(void 0,function(){I3(R)});
EZf(R,F).then(function(n){$nk(R,n)},function(){I3(R)});
R.TH.Lh(F);if(R.G.CC()||PBI(R))F=R.fC(),F["native"]=""+ +R.J1,F.tgt=""+R.U,F.otgt=""+(R.U+R.timestampOffset),F.maxst=""+R.fX(),R.T&&R.B("html5_high_res_seek_logging")&&(F.tht=""+R.T.W(),F.ht=""+R.T.t5(),F.adft=""+jQ(R.T)),R.B("html5_sabr_parse_live_metadata_playback_boundaries")&&R.videoData.T&&MA(R.videoData)&&(F.minst=""+R.videoData.T.dl,F.cminst=""+(R.videoData.T.RC()+R.timestampOffset),F.maxst=""+R.videoData.T.jV,F.hts=""+R.videoData.T.jQ,F.cmaxst=""+(R.videoData.T.fX()+R.timestampOffset)),R.TH.m2("startSeek",
F)};
NON=function(R,F){R.jQ||(R.loader?isFinite(R.U)?R.jQ=R.loader.seek(R.U-R.timestampOffset,F):(Io(R.videoData),R.B("html5_unified_live_latency_reporting")&&(R.TH.gj=0),R.jQ=iB(R.loader),pK(R.videoData)||(R.U=R.loader.getCurrentTime()+R.timestampOffset)):R.jQ=g.KT(R.U-R.timestampOffset));return R.jQ};
EZf=function(R,F){var n=R.J;n||(R.J=new oi,n=R.J,gw(R,F));return n};
KP=function(R,F,n){if(isNaN(F))return NaN;var V=R.RC();n=R.fX(n);return R.B("html5_clamp_invalid_seek_to_min_seekable_time")&&!R.videoData.isLivePlayback&&F>n+1&&F<Infinity?(R.G.CC()&&R.TH.m2("clampInvalidSeek",{tgt:""+F,maxst:""+n}),V):g.vI(F,V,n)};
gw=function(R,F){if(R.J)if(R.videoData.isLivePlayback&&R.videoData.N&&!R.videoData.N.T&&R.mediaElement&&R.mediaElement.Is()>0&&U8(R.mediaElement)>0&&(R.U=KP(R,R.U,!1)),F=R.B("html5_pseudogapless_shorts_seek_to_next_start")&&(F==null?void 0:F.seekSource)===60,!R.mediaElement||!bFf(R,F))R.YF.start(750);else if(!isNaN(R.U)&&isFinite(R.U)&&(F=R.gX-(R.U-R.timestampOffset),!(F===0||Math.abs(F)<.005)))if(F=R.mediaElement.getCurrentTime()-R.U,Math.abs(F)<=R.dX||Math.abs(F)<.005)ZFW(R);else{if(R.videoData.vU)R.videoData.vU=
!1;else if(!Io(R.videoData)&&R.U>=R.fX()-.1){R.U=R.fX();R.J.resolve(R.fX());R.G.CC()&&R.TH.m2("setEndedInSeek",{tgt:""+R.U,maxst:""+R.fX()});R.TH.q0();return}try{var n=R.U-R.timestampOffset;R.mediaElement.seekTo(n);R.Nq.T=n;R.gX=n;R.N=R.U;R.J1=!1}catch(V){}}};
bFf=function(R,F){F=F===void 0?!1:F;if(!R.mediaElement||R.mediaElement.Is()===0||R.mediaElement.hasError())return!1;var n=R.mediaElement.getCurrentTime()>0;return R.videoData.N&&R.videoData.N.T||R.videoData.isLivePlayback||!R.videoData.iX()?R.U>=0&&!F&&(F=R.mediaElement.Dr(),F.length||!n)?rl(F,R.U-R.timestampOffset):n:n};
ZFW=function(R){R.J&&(R.J.resolve(R.mediaElement.getCurrentTime()),R.Nq.U=null)};
$nk=function(R,F){R.W&&(R.W.resolve(F),R.TH.aO(),R.G.CC()||PBI(R))&&(F=R.fC(),F["native"]=""+ +R.J1,F.otgt=""+(R.U+R.timestampOffset),R.TH.m2("seekEnd",F));I3(R)};
I3=function(R){R.U=NaN;R.Z=NaN;R.gX=NaN;R.J=null;R.jQ=null;R.W=null;R.PG=!1;R.J1=!1;R.dX=0;R.Mq.stop();R.SQ.stop()};
Rk_=function(R,F){var n=R.mediaElement,V=F.type;switch(V){case "seeking":var r=n.getCurrentTime()+R.timestampOffset;if(!R.J||R.J1&&r!==R.U){R.J=new oi;R.J.then(function(f){$nk(R,f)},function(){I3(R)});
if(R.videoData.isAd()){var v;iwI({adCpn:R.videoData.clientPlaybackNonce,contentCpn:(v=R.videoData.Xq)!=null?v:""},F.T)}R.gX=r;gZe(R.Nq,n.getCurrentTime());R.seekTo(r,{seekSource:104,gW:"seektimeline_mediaElementEvent"});R.J1=!0}break;case "seeked":ZFW(R);break;case "loadedmetadata":Oe(R.TH)||eSf(R);gw(R);break;case "progress":gw(R);break;case "pause":R.X=R.getCurrentTime()}R.X&&((V==="play"||V==="playing"||V==="timeupdate"||V==="progress")&&R.getCurrentTime()-R.X>10&&(R.B("html5_sky_skip_pause_jump")?
R.TH.m2("skipPauseJump",{evt:V,cmt:R.getCurrentTime(),lpt:R.X}):R.seekTo(R.X,{gW:"pauseJump"})),V!=="pause"&&V!=="play"&&V!=="playing"&&V!=="progress"&&(R.X=0))};
Fd_=function(R){return(eZ(R.videoData)||!!R.videoData.liveUtcStartSeconds)&&(!!R.videoData.liveUtcStartSeconds||xnf(R))&&!!R.videoData.T};
xnf=function(R){return!!R.videoData.startSeconds&&isFinite(R.videoData.startSeconds)&&R.videoData.startSeconds>1E9};
iFE=function(R){var F=0,n=NaN,V="";if(!R.UZ)return{startSeconds:F,XO:n,source:V};R.videoData.Xb?F=R.videoData.sf:Io(R.videoData)&&(F=Infinity);if(g.Zh(R.videoData))return{startSeconds:F,XO:n,source:V};R.videoData.startSeconds?(V="ss",F=R.videoData.startSeconds):R.videoData.N_&&(V="stss",F=R.videoData.N_);R.videoData.liveUtcStartSeconds&&(n=R.videoData.liveUtcStartSeconds);if(isFinite(F)&&(F>R.fX()||F<R.RC())){var r={};r.minSeekableTime=R.RC();r.maxSeekableTime=R.fX();r.cmt=R.getCurrentTime();r.ss=
F;r.utc=n;r.src=V;R.TH.m2("startSecondsOutOfBounds",r);R.videoData.Zt()&&(F=KP(R,F,!1))}return{startSeconds:F,XO:n,source:V}};
eSf=function(R){if(R.UZ){var F;if((F=R.videoData.xw)==null?0:F.FI)R.UZ=!1;else if(g.Zh(R.videoData))R.UZ=!1;else{F="ss";var n=0,V;((V=R.videoData.T)==null?0:V.isManifestless)&&R.videoData.gX&&!xnf(R)&&(F="mss",n=R.videoData.gX);(R.videoData.Xb?R.B("html5_prioritize_windowed_st_start_seconds"):R.B("html5_prioritize_st_start_seconds"))&&!n&&R.videoData.N_&&(F="stss",n=R.videoData.N_);!n&&Fd_(R)&&(n=R.videoData.liveUtcStartSeconds||R.videoData.gX,F="utc",n=R.fX()-R.wD(R.fX())+n);!n&&R.videoData.Zt()&&
R.videoData.N_&&(F="stss",n=R.videoData.N_);V={};if(n){if(n>R.fX()||n<R.RC())V.minSeekableTime=R.RC(),V.maxSeekableTime=R.fX(),V.cmt=R.getCurrentTime(),V.it=R.wD(R.getCurrentTime()),V.ss=n,V.utc=Fd_(R)?R.videoData.liveUtcStartSeconds||R.videoData.gX:0,R.TH.m2("startSecondsOutOfBounds",V),R.videoData.Zt()&&(n=KP(R,n,!1));R.seekTo(n,{gW:"seektimeline_startSeconds"});V[F]=n;R.TH.m2("startSeconds",V);R.UZ=!1}else R.videoData.gX&&(V[F]=R.videoData.gX+R.qC(),R.TH.m2("startSeconds",V))}}};
nrJ=function(R,F){R.TH.m2("sdai",{adj4t:F.toFixed(3)});R.bS=F;F+=1;R.U=F;R.N=F;EZf(R).then(function(n){$nk(R,n)},function(){I3(R)})};
Gh6=function(R){return R.mediaElement?jL(R.mediaElement):0};
PBI=function(R){return R.videoData.X7()&&R.B("html5_enable_shorts_seek_details_logging")};
OFJ=function(){};
DM=function(R){g.G.call(this);this.N=R;this.T=new Map;this.U=new g.ZK(this.sample,250,this);g.d(this,this.U);this.start()};
im=function(R,F){if((R=R.T.get(F))==null)R=void 0;else{R=R.buffer;for(F=[];R.U!==R.T;)R.U=(R.U+1)%R.data.length,F.push(R.data[R.U]);R=F}return R||[]};
x5=function(R,F){var n;return((n=R.T.get(F))==null?void 0:Unj(n.buffer))||0};
Vbj=function(R){this.U=R;this.T=NaN;this.buffer=new o3(100)};
k5=function(){this.finished=this.started=!1};
QO9=function(R,F){function n(v){return V.Nq!=="yt"&&(r.partnerId===38&&V.playerStyle==="books"||r.partnerId===30&&V.playerStyle==="docs"||r.partnerId===33&&V.playerStyle==="google-live")?rKe(R,r,v):vrI(R,r).then(function(){V.B("embeds_enable_shorts")&&R.D().Xn&&r.isEmbedsShortsMode(new g.QX(0,0),!!r.playlistId)?fQj(R,r):Y5(R,r)},function(f){Y5(R,r,!0);
throw f;})}
var V=R.D(),r=R.getVideoData();r.Zo();r.loading=!0;return tb_(R)?zkE(R,r,F).then(function(){Y5(R,r)},function(v){v=QB(v);
if(qL(v.severity))return Y5(R,r,!0),Promise.reject(v);v.errorCode==="onesie.response.badproxystatus"&&""+v.details.st==="3"&&(qpJ=!0);R.handleError(v);return n("onesie")}):n("gvi")};
tb_=function(R){var F=R.D();if(F.B("html5_disable_onesie")||!F.B("html5_onesie")||!F.B("html5_onesie_inline")&&R.getVisibilityState()===5||F.Nq!=="yt")return!1;var n=F.pC;if(!n||!n.T)return R.handleError(new g.z$("onesie.unavailable.hotconfig",{key:"0"})),!1;if(n.T.Z<(0,g.h1)()&&(R.m2("okexp","1"),(n=R.C3())&&F.B("html5_prefer_trusted_host_on_key_expiration"))){n.U=!0;var V;(F=(V=n.T.get(0))==null?void 0:pW(13,V.location))&&!Yz(F)&&n.T.delete(0)}if(qpJ)return R.m2("ost3","1"),!1;V={};return Object.keys(V).length>
0?(V.onesie="0",R.handleError(new g.z$("html5.missingapi",V)),!1):!0};
cKV=function(R,F){var n=r$();vN(n,F);return g.nV(n,a7W(),{b0:R.b0(),clientInterface:Wp(R)})};
zkE=function(R,F,n){var V,r,v,f,z,q,Q,c,w,L,S,p,C,y,u,B,O,K,M,J,b,RJ,Fj,fW,SE,nW;return g.Y(function(CW){if(CW.T==1)return F.fetchType="onesie",V=A0f(F,R.getPlayerSize(),R.getVisibilityState()),r=new AK(R,V,n),g.k(CW,r.fetch(),2);v=CW.U;f={player_response:v};F.loading=!1;z=R.CX.T2;if(r.au){q=g.m(r.au.entries());for(Q=q.next();!Q.done;Q=q.next())c=Q.value,w=g.m(c),L=w.next().value,S=w.next().value,p=L,C=S,z.T.set(p,C,180),p===F.videoId&&(y=C.j0(),F.WU=y);z.W5=r}u=g.m(r.cZ.entries());for(B=u.next();!B.done;B=
u.next())O=B.value,K=g.m(O),M=K.next().value,J=K.next().value,b=M,RJ=J,z.U.set(b,RJ,180);g.Au(F,f,!0);if(F.loading||pM(F))return CW.return(Promise.resolve());z.T.removeAll();z.U.removeAll();F.WU=[];Fj={};fW="onesie.response";SE=0;F.errorCode?(fW="auth",Fj.ec=F.errorCode,Fj.ed=F.errorDetail,Fj.es=F.kK||"",SE=2):(Fj.successButUnplayable="1",Fj.disposed=""+ +F.Zo(),Fj.afmts=""+ +/adaptiveFormats/.test(v),Fj.cpn=F.clientPlaybackNonce);nW=new g.z$(fW,Fj,SE);return CW.return(Promise.reject(nW))})};
vrI=function(R,F){var n,V,r,v,f,z,q,Q,c,w,L;return g.Y(function(S){switch(S.T){case 1:n=F.isAd(),V=!n,r=n?1:3,v=0;case 2:if(!(v<r)){S.wX(4);break}if(!(v>0)){S.wX(5);break}return g.k(S,GC(5E3),6);case 6:f=new g.UR("Retrying OnePlatform request",{attempt:v}),g.mq(f);case 5:return g.zv(S,7),g.k(S,w6W(R,F),9);case 9:return S.return();case 7:z=g.cM(S);q=QB(z);Q=q.errorCode;c=R.D();w=c.B("html5_use_network_error_code_enums")?401:"401";V&&Q==="manifest.net.badstatus"&&q.details.rc===w&&(V=!1,v===r-1&&(r+=
1));if(v===r-1)return L=Spf(n,q.details),L.details.backend="op",L.details.originec=Q,S.return(Promise.reject(L));if(Q==="auth"||Q==="manifest.net.retryexhausted")return S.return(Promise.reject(q));R.handleError(q);if(qL(q.severity)){S.wX(4);break}case 3:v++;S.wX(2);break;case 4:return S.return(Promise.reject(Spf(n,{backend:"op"})))}})};
w6W=function(R,F){function n(Fj){Fj.readyState===2&&R.N5("ps_c")}
var V,r,v,f,z,q,Q,c,w,L,S,p,C,y,u,B,O,K,M,J,b,RJ;return g.Y(function(Fj){switch(Fj.T){case 1:F.fetchType="gp";V=R.D();r=g.HV(V,g.Ql(F));if(!r.T){v=r.getValue();Fj.wX(2);break}return g.k(Fj,r.T,3);case 3:v=Fj.U;case 2:return f=v,z=cKV(V,f),q=A0f(F,R.getPlayerSize(),R.getVisibilityState()),Q=g.Fy(Ld9),c=g.Ql(F),w=(0,g.h1)(),L=!1,S="empty",p=0,R.N5("psns"),C={r0:n},V.b0()&&(C.o3={Ny:Ml("player",{videoId:String(F.videoId)})}),g.k(Fj,g.ij(z,q,Q,void 0,C),4);case 4:y=Fj.U;R.N5("psnr");if(F.Zo())return Fj.return();
y?"error"in y&&y.error?(L=!0,S="esf:"+y.error.message,p=y.error.code):y.errorMetadata&&(L=!0,S="its",p=y.errorMetadata.status):L=!0;if(L)return u=0,B=((0,g.h1)()-w).toFixed(),O={},O=V.B("html5_use_network_error_code_enums")?{backend:"op",rc:p,rt:B,reason:S,has_kpt:F.h1?"1":"0",has_mdx_env:F.mdxEnvironment?"1":"0",has_omit_key_flag:g.ew("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:V.pageId?"1":"0",has_token:c?"1":"0",has_vvt:F.J1?"1":"0",is_mdx:F.isMdxPlayback?"1":"0",
mdx_ctrl:F.J5||"",token_eq:c===g.Ql(F)?"1":"0"}:{backend:"op",rc:""+p,rt:B,reason:S,has_kpt:F.h1?"1":"0",has_mdx_env:F.mdxEnvironment?"1":"0",has_omit_key_flag:g.ew("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:V.pageId?"1":"0",has_token:c?"1":"0",has_vvt:F.J1?"1":"0",is_mdx:F.isMdxPlayback?"1":"0",mdx_ctrl:F.J5||"",token_eq:c===g.Ql(F)?"1":"0"},K="manifest.net.connect",p===429?(K="auth",u=2):p>200&&(K="manifest.net.badstatus",p===400&&(u=2)),Fj.return(Promise.reject(new g.z$(K,
O,u)));F.loading=!1;g.Au(F,{raw_player_response:y},!0);M=y;g.n9(F.D())&&M&&M.trackingParams&&UT(M.trackingParams);if(F.errorCode)return J={ec:F.errorCode,ed:F.errorDetail,es:F.kK||""},Fj.return(Promise.reject(new g.z$("auth",J,2)));if(!F.loading&&!pM(F))return b=F.isAd()?"auth":"manifest.net.retryexhausted",RJ=F.isAd()?2:1,Fj.return(Promise.reject(new g.z$(b,{successButUnplayable:"1",hasMedia:g.$G(F)?"1":"0"},RJ)));g.rq(Fj)}})};
rKe=function(R,F,n){function V(p){p=QB(p);if(qL(p.severity))return Promise.reject(p);R.handleError(p);return!1}
function r(){return!0}
var v,f,z,q,Q,c,w,L,S;return g.Y(function(p){switch(p.T){case 1:var C=R.D();R.getPlayerSize();R.getVisibilityState();R.isFullscreen();if(F.partnerId===38&&C.playerStyle==="books")C=F.videoId.indexOf(":"),C=g.DI("//play.google.com/books/volumes/"+F.videoId.slice(0,C)+"/content/media",{aid:F.videoId.slice(C+1),sig:F.G1});else if(F.partnerId===30&&C.playerStyle==="docs")C=g.DI("https://docs.google.com/get_video_info",{docid:F.videoId,authuser:F.Vy,authkey:F.hC,eurl:C.Kk});else if(F.partnerId===33&&C.playerStyle===
"google-live")C=g.DI("//google-liveplayer.appspot.com/get_video_info",{key:F.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+C.Nq);v=C;z=(f=F.isAd())?1:3;q=0;case 2:if(!(q<z)){p.wX(4);break}Q=v;if(!(q>0)){p.wX(5);break}return g.k(p,GC(5E3),6);case 6:c={playerretry:q,playerretrysrc:n},f||(c.recover="embedded"),Q=Qb(v,c);case 5:return g.k(p,sOV(F,Q).then(r,V),7);case 7:if(w=p.U)return p.return();q++;p.wX(2);break;case 4:L=f?"auth":"manifest.net.retryexhausted";S=f?2:1;if(!f&&Math.random()<
1E-4)try{g.mq(new g.UR("b/152131571",btoa(v)))}catch(y){}return p.return(Promise.reject(new g.z$(L,{backend:"gvi"},S)))}})};
sOV=function(R,F){function n(y){return V(y.xhr)}
function V(y){if(!R.Zo()){y=y?y.status:-1;var u=0,B=((0,g.h1)()-c).toFixed();B=r.B("html5_use_network_error_code_enums")?{backend:"gvi",rc:y,rt:B}:{backend:"gvi",rc:""+y,rt:B};var O="manifest.net.connect";y===429?(O="auth",u=2):y>200&&(O="manifest.net.badstatus",y===400&&(u=2));return Promise.reject(new g.z$(O,B,u))}}
var r,v,f,z,q,Q,c,w,L,S,p,C;return g.Y(function(y){if(y.T==1){R.fetchType="gvi";r=R.D();var u={};R.lP&&(u.ytrext=R.lP);(z=g.g7(u)?void 0:u)?(v={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:z},f=Qb(F,{action_display_post:1})):(v={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},f=F);q={};r.sendVisitorIdHeader&&R.visitorData&&(q["X-Goog-Visitor-Id"]=R.visitorData);(Q=mj(r.experiments,"debug_sherlog_username"))&&(q["X-Youtube-Sherlog-Username"]=Q);Object.keys(q).length>
0&&(v.headers=q);c=(0,g.h1)();return g.k(y,Md(gz,f,v).then(void 0,n),2)}w=y.U;if(!w||!w.responseText)return y.return(V(w));R.loading=!1;L=Xj(w.responseText);g.Au(R,L,!0);if(R.errorCode)return S={ec:R.errorCode,ed:R.errorDetail,es:R.kK||""},y.return(Promise.reject(new g.z$("auth",S,2)));if(!R.loading&&!pM(R))return p=R.isAd()?"auth":"manifest.net.retryexhausted",C=R.isAd()?2:1,y.return(Promise.reject(new g.z$(p,{successButUnplayable:"1"},C)));g.rq(y)})};
Spf=function(R,F){return new g.z$(R?"auth":"manifest.net.retryexhausted",F,R?2:1)};
Y5=function(R,F,n){n=n===void 0?!1:n;var V,r,v,f;g.Y(function(z){if(z.T==1){V=R.D();if(n&&(!g.C9(V)||fK(F)!=="embedded")||F.fZ||fK(F)!=="adunit"&&(g.ad(V)||qA(V)||g.Dz(V)||g.a$(V)||g.Vw(V)||Wp(V)==="WEB_CREATOR"))return z.return();r=g.HV(V,g.Ql(F));return r.T?g.k(z,r.T,3):(v=r.getValue(),z.wX(2))}z.T!=2&&(v=z.U);f=v;return z.return(p6V(R,F,f))})};
p6V=function(R,F,n){var V,r,v,f,z,q,Q;return g.Y(function(c){if(c.T==1){g.zv(c,2);V=R.D();r=cKV(V,n);var w=F.D(),L=g.M8(),S={context:g.U6(F),videoId:F.videoId,racyCheckOk:F.racyCheckOk,contentCheckOk:F.contentCheckOk,autonavState:"STATE_NONE"};fK(F)==="adunit"&&(S.isAdPlayback=!0);w.embedConfig&&(S.serializedThirdPartyEmbedConfig=w.embedConfig);w.WU&&(S.showContentOwnerOnly=!0);F.Cg&&(S.showShortsOnly=!0);L.pH(141)&&(S.autonavState=L.pH(140)?"STATE_OFF":"STATE_ON");if(g.Xk(w)){L=L.pH(65);L=L!=null?
!L:!1;var p=!!g.xh("yt-player-sticky-caption");S.captionsRequested=L&&p}var C;if(w=(C=w.getWebPlayerContextConfig())==null?void 0:C.encryptedHostFlags)S.playbackContext={encryptedHostFlags:w};v=S;f=g.Fy(X6V);R.N5("wn_s");z={};V.b0()&&(z.o3={Ny:Ml("next",{videoId:String(F.videoId)})});return g.k(c,g.ij(r,v,f,void 0,z),4)}if(c.T!=2)return q=c.U,R.N5("wn_r"),!q||"error"in q&&q.error||(Q=q,g.n9(F.D())&&Q.trackingParams&&UT(Q.trackingParams),g.Au(F,{raw_watch_next_response:q},!1)),g.Qz(c,0);g.cM(c);g.rq(c)})};
fQj=function(R,F){var n,V,r,v;g.Y(function(f){if(f.T==1)return n=R.D(),V=g.HV(n,g.Ql(F)),V.T?g.k(f,V.T,3):(r=V.getValue(),f.wX(2));f.T!=2&&(r=f.U);v=r;return f.return(AKe(R,F,v))})};
AKe=function(R,F,n){var V,r,v,f,z,q;return g.Y(function(Q){if(Q.T==1)return V=R.D(),g.zv(Q,2),r=cKV(V,n),v={context:g.U6(F),playerRequest:{videoId:F.videoId},disablePlayerResponse:!0},f=g.Fy(aQI),z={},V.b0()&&(z.o3={Ny:Ml("reel_item_watch",{videoId:String(F.videoId)})}),g.k(Q,g.ij(r,v,f,void 0,z),4);if(Q.T!=2)return q=Q.U,!q||"error"in q&&q.error||g.Au(F,{raw_reel_item_watch_response:q}),g.Qz(Q,0);g.cM(Q);g.rq(Q)})};
CfN=function(R,F){R.N5("vir");R.N5("ps_s");IV("vir",void 0,"video_to_ad");F=QO9(R,F);F.then(function(){R.N5("virc");IV("virc",void 0,"video_to_ad");R.N5("ps_r");IV("ps_r",void 0,"video_to_ad")},function(){R.N5("virc");
IV("virc",void 0,"video_to_ad")});
return F};
TxW=function(R){return oN6[t[22]](this,4,R)};
g.dw=function(R,F,n,V,r,v,f,z,q,Q,c,w){Q=Q===void 0?new g.sr(R):Q;c=c===void 0?!0:c;g.fG.call(this);var L=this;this.G=R;this.playerType=F;this.Qc=n;this.Yz=V;this.getVisibilityState=v;this.visibility=f;this.CX=z;this.AJ=q;this.videoData=Q;this.h2=c;this.rp=w;this.logger=new g.B1("VideoPlayer");this.uL=null;this.hP=new nP;this.OJ=null;this.E6=!0;this.IG=this.loader=null;this.rY=[];this.Vu=new k5;this.J7=this.fh=null;this.LD=new k5;this.hq=null;this.JF=this.S0=!1;this.Rb=NaN;this.uh=!1;this.playerState=
new g.Wz;this.xj=[];this.dN=new g.AQ;this.mediaElement=null;this.KV=this.yC=!1;this.qO=NaN;this.T5=!1;this.Jz=0;this.oT=!1;this.Bn=NaN;this.pE=0;this.loop=!1;this.playbackRate=1;this.gj=0;this.VW=!1;this.Gm=[];this.X8=this.x4=0;this.AR=this.Ad=!1;this.EK=this.A_=0;this.Pg=!1;this.Oo=this.Iz=this.Uv=this.vI=null;this.QG=function(){var S=L.Dt;S.provider.G.lX||S.provider.TH.getVisibilityState()===3||(S.provider.G.lX=!0);S.oN();if(S.U){var p=S.U;p.W&&p.T<0&&p.provider.TH.getVisibilityState()!==3&&js_(p)}S.qoe&&
(S=S.qoe,S.SQ&&S.N<0&&S.provider.G.lX&&wNN(S),S.J&&Yr(S));L.loader&&J5(L);Gt(L)};
this.hJ={u0:function(S){L.u0(S)},
Z$1:function(S){L.uL=S},
CiH:function(){return L.Dt},
Hy:function(){return L.IG},
EIZ:function(){return L.oE},
aJZ:function(){return L.jd},
uDS:function(){},
D:function(){return L.G},
LX:function(){return L.mediaElement},
x0G:function(S){L.CT(S)},
yQo:function(){return L.Yz}};
this.V5=new PZj(this);this.kH=new g.ZK(this.TDo,15E3,this);this.pV=new DM(new Map([["bufferhealth",function(){return Gh6(L.BT)}],
["bandwidth",function(){return L.rf()}],
["networkactivity",function(){return L.AJ.jQ}],
["livelatency",function(){return L.isAtLiveHead()&&L.isPlaying()?ore(L):NaN}],
["rawlivelatency",function(){return ore(L)}]]));
this.BT=new DnV(this);this.OG=new g.ZK(this.A1o,0,this);this.TW5=[this.dN,this.OG,this.kH,this.pV];this.yV=new TOR(this.G);this.TY=new vY(this.G,this.Yz,this,this.AJ);this.a9=new g.CP(this,function(S,p){S!==g.$A("endcr")||g.E(L.playerState,32)||L.q0();r(S,p,L.playerType)});
g.d(this,this.a9);g.d(this,this.BT);yKJ(this,Q);this.videoData.subscribe("dataupdated",this.s9G,this);this.videoData.subscribe("dataloaded",this.XM,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.m2,this);this.videoData.subscribe("ctmpstr",this.R1,this);!this.Dt||this.Dt.Zo();this.Dt=new g.A5(new XH(this.videoData,this.G,this));dHf(this.QG);this.visibility.subscribe("visibilitystatechange",this.QG);this.oE=new g.ZK(this.qR,g.Vn(this.G.experiments,
"html5_player_att_initial_delay_ms")||4500,this);this.jd=new g.ZK(this.qR,g.Vn(this.G.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.KT=new g.nO(this.ju2,350,this);g.d(this,this.KT)};
yKJ=function(R,F){if(R.playerType===2||R.G.LS)F.Nr=!0;var n=Fe9(F.aG,F.Si,R.G.J,R.G.V);n&&(F.adFormat=n);R.playerType===2&&(F.Lm=!0);if(R.isFullscreen()||R.G.J)n=g.xh("yt-player-autonavstate"),F.autonavState=n||(R.G.J?2:R.videoData.autonavState);F.endSeconds&&F.endSeconds>F.startSeconds&&M7(R,F.endSeconds)};
UCW=function(R){return g.ad(R.G)&&R.videoData.isLivePlayback&&(!R.G.B("html5_allow_multiview_tile_preload")||!R.videoData.HT)};
jOv=function(R){var F=R.videoData;CfN(R,R.AJ).then(void 0,function(n){R.videoData!==F||F.Zo()||(n=QB(n),n.errorCode==="auth"&&R.videoData.errorDetail&&R.videoData.errorDetail!=="7"?R.Rr(n.errorCode,2,unescape(R.videoData.errorReason),tQ(n.details),R.videoData.errorDetail,R.videoData.kK||void 0):R.handleError(n))})};
Wdv=function(R){if(!g.E(R.playerState,128))if(R.videoData.isLoaded(),R.rY=g.f4(R.videoData.D0),g.$G(R.videoData)){R.Qc.tick("bpd_s");lm(R).then(function(){R.Qc.tick("bpd_c");if(!R.Zo()){R.S0&&(R.md(mZ(mZ(R.playerState,512),1)),N7(R));var V=R.videoData;V.endSeconds&&V.endSeconds>V.startSeconds&&M7(R,V.endSeconds);R.Vu.finished=!0;Ee(R,"dataloaded");R.LD.rZ()&&HhR(R);Uke(R.TY,R.J7)}});
R.B("html5_log_media_perf_info")&&R.m2("loudness",{v:R.videoData.Rm.toFixed(3)},!0);var F,n=(F=R.mediaElement)==null?void 0:F.Fs();if(n&&"disablePictureInPicture"in n&&R.G.yJ)try{n.disablePictureInPicture=R.G.nf&&!R.videoData.backgroundable}catch(V){g.mq(V)}hkN(R);R.Oo=new OY(R.videoData)}else Ee(R,"dataloaded")};
lm=function(R){$5(R);R.J7=null;var F=y2k(R.G,R.videoData,R.oa());R.fh=F;R.fh.then(function(n){ubv(R,n)},function(n){R.Zo()||(n=QB(n),R.visibility.isBackground()?(PY(R,"vp_none_avail"),R.fh=null,R.Vu.reset()):(R.Vu.finished=!0,R.Rr(n.errorCode,n.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",tQ(n.details))))});
return F};
ubv=function(R,F){if(!R.Zo()&&!F.videoData.Zo()){R.J7=F;khI(R.BT,R.J7);if(R.videoData.isLivePlayback){var n=BxE(R.CX.T2,R.videoData.videoId)||R.loader&&!isNaN(R.loader.lS);n=R.B("html5_onesie_live")&&n;Oe(R)||R.videoData.gX>0&&!xG(R.videoData)||n||R.seekTo(R.fX(),{gW:"videoplayer_playbackData",seekSource:18})}if(R.videoData.N.T){if(r0N(R.videoData)){R.Rr("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",tQ({missabrurl:1}));return}R.loader?g.mq(Error("Duplicated Loader")):(n=g.Vn(R.G.experiments,"html5_onesie_defer_content_loader_ms"))&&
R.PX()&&BxE(R.CX.T2,R.videoData.ZG)?g.ak(function(){R.Zo()||R.loader||mC6(R)},n):mC6(R)}else!R.videoData.N.T&&SH(R.videoData)&&R.t6(new Nk(R.videoData.videoId||"",4));
R.Z1();Xs6(F).then(function(){var V={};R.HX(V);R.G.CC()&&R.B("html5_log_media_perf_info")&&R.m2("av1Info",V);J5(R)})}};
HhR=function(R){R.Zo();if(!R.LD.finished&&R.Vu.finished&&!g.E(R.playerState,128)&&!R.rY.length){if(!R.a9.started){var F=R.a9;F.started=!0;F.sync()}if(!R.xb()){if(R.loader){if(R.rg().T.pH(o6)){F=R.loader;var n=!0;n=n===void 0?!1:n;F=Math.min(Sz(F.audioTrack,n),Sz(F.videoTrack,n))>0}else F=R.loader.timing,F=!!F.U&&!!F.N;R.JF=F}R.LD.finished||(R.LD.finished=!0);F=R.B("html5_onesie_live")&&R.loader&&!isNaN(R.loader.lS);!R.videoData.isLivePlayback||R.videoData.gX>0&&!xG(R.videoData)||F||Oe(R)||(R.seekTo(Infinity,
{gW:"videoplayer_readying",seekSource:18}),R.isBackground()&&(R.KV=!0));F=R.Dt;if(F.qoe){F=F.qoe;var V=F.provider.videoData;n=F.provider.G;for(var r=g.m(n.HO),v=r.next();!v.done;v=r.next())JK(F,v.value);if(F.provider.B("html5_enable_qoe_cat_list"))for(r=g.m(V.Ji),v=r.next();!v.done;v=r.next())JK(F,v.value);else V.HO&&JK(F,F.provider.videoData.HO);V.Zt()&&(r=V.T,xG(V)&&JK(F,"manifestless"),r&&r3(r)&&JK(F,"live-segment-"+r3(r).toFixed(1)));MA(V)?JK(F,"sabr"):F.Hv(YG(V));if(cK(V)||V.iZ())V.iZ()&&JK(F,
"ssa"),JK(F,"lifa");Bh(V)&&JK(F,"cdm");V.gatewayExperimentGroup&&(r=V.gatewayExperimentGroup,r==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?r="spkadtrt":r==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(r="spkadctrl"),JK(F,r));n.Nq!=="yt"&&F.T.set("len",[V.lengthSeconds.toFixed(2)]);V.cotn&&!SH(V)&&F.Qf(!0);n.CC()&&(V=P4V())&&F.m2("cblt",{m:V});if(n.B("html5_log_screen_diagonal")){n=F.m2;var f;V=((f=window.H5vccScreen)==null?0:f.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;n.call(F,"cbltdiag",
{v:V})}}R.publish("playbackready");gV("pl_c",R.Qc.timerName)||(R.Qc.tick("pl_c"),IV("pl_c",void 0,"video_to_ad"));gV("pbr",R.Qc.timerName)||(R.Qc.tick("pbr"),IV("pbr",void 0,"video_to_ad"))}}};
M7=function(R,F){R.OJ&&grJ(R);R.OJ=new g.NQ(F*1E3,0x7ffffffffffff);R.OJ.namespace="endcr";R.addCueRange(R.OJ)};
grJ=function(R){R.removeCueRange(R.OJ);R.OJ=null};
Ohe=function(R,F,n,V,r){var v=R.Dt,f=R.videoData;f.U=n;var z=g.bm(R);n=new zrj(n,F,z?z.itag:"",V,r);R.G.experiments.GH("html5_refactor_sabr_video_format_selection_logging")?R.Iz=n:v.qoe&&ciE(v.qoe,n);v=R.TY;v.U=0;v.T=0;R.publish("internalvideoformatchange",f,F==="m")};
g.bm=function(R){var F=ZM(R);return N4(F)||!R.J7?null:g.$$(R.J7.T.videoInfos,function(n){return F.J(n)})};
ZM=function(R){if(R.J7){var F=R.TY;var n=R.J7;R=R.F0();var V=QsI(F);if(N4(V)){if(V=F.ZZ(n).compose(Ln6(F,n)).compose(pse(F,n)).compose(ogN(F,n.videoData)).compose(yZj(F,n.videoData,n)).compose(TjJ(F,n)).compose(wsv(F,n)),N4(R)||F.B("html5_apply_pbr_cap_for_drm"))V=V.compose(SCE(F,n))}else F.B("html5_perf_cap_override_sticky")&&(V=V.compose(TjJ(F,n))),F.B("html5_ustreamer_cap_override_sticky")&&(V=V.compose(SCE(F,n)));V=V.compose(wsv(F,n));F=n.videoData.Dl.compose(V).compose(n.videoData.dR).compose(R)}else F=
LM;return F};
dFf=function(R){var F=R.TY;R=R.videoData;var n=ogN(F,R);F.B("html5_disable_client_autonav_cap_for_onesie")||n.compose(yZj(F,R));return n};
J5=function(R){if(R.videoData.N&&R.videoData.N.T){var F=ZM(R);if(R.loader&&(R=R.loader,!R.Zo()))if(R.policy.T){var n=R.W;if(F.isLocked()&&n.T.U||n.U===void 0||!F.equals(n.U)){n=R.W.U;FJR(R.W,F);var V,r;if(r=F.isLocked()&&F.reason==="m"){r=R.W;var v=(V=r.J)==null?void 0:V.info.video.qualityOrdinal;r=r.lS?!0:r.J?F.T!==v?!0:!r.T.U||r.gD.w4&&r.T.T===r.J.info.itag?!1:!0:!1}V=r;r=R.policy.u_&&F.reason==="l";n=n.T>F.T&&F.reason==="b";V||r||n?(R.TH.vX({reattachOnConstraint:V?"u":r?"drm":"perf",lo:F.U,up:F.T}),
R.policy.w4||(R.W.T.U=!1)):(R.policy.w4&&(R.W.T.U=!1),jb(R))}}else!Wj_(R.T,F)&&R.videoTrack&&(r=R.T.T,upN(R,uaE(R.T,F)),o1f(R),n=F.isLocked()&&F.reason==="m"&&R.T.J1,V=R.policy.u_&&F.reason==="l"&&A2(R.videoTrack),F=r.T>F.T&&F.reason==="b",r=R.T.SQ&&!SL(),n||V||F||r?R.TH.vX({reattachOnConstraint:n?"u":V?"drm":r?"codec":"perf"}):jb(R))}};
IQN=function(R){var F;return!!(R.B("html5_native_audio_track_switching")&&g.A1&&((F=R.videoData.U)==null?0:$Q(F)))};
KdN=function(R){if(!IQN(R))return!1;var F;R=(F=R.mediaElement)==null?void 0:F.audioTracks();return!!(R&&R.length>1)};
xC9=function(R){var F=DCj(R);if(F){var n=ihJ[F]||F;return R.videoData.getAvailableAudioTracks().find(function(V){return V.z9.getName()===n})}};
kdE=function(R){var F,n=(F=R.mediaElement)==null?void 0:F.audioTracks();if(n){F=[];for(var V=0;V<n.length;++V){var r=n[V];r=new g.G4(r.label,new g.di(ihJ[r.label]||r.label,r.label,!1));F.push(r)}R.videoData.xV=F}};
DCj=function(R){var F;if(R=(F=R.mediaElement)==null?void 0:F.audioTracks())for(F=0;F<R.length;++F){var n=R[F];if(n.enabled)return n.label}};
JKf=function(R){var F,n=R.videoData.getAvailableAudioTracks(),V=R.G.uS;V&&(F=n.find(function(f){return f.getLanguageInfo().id===V}));
if(R.G.experiments.GH("enable_audio_description_setting")&&g.M8().pH(198))for(var r=g.m(n),v=r.next();!v.done;v=r.next())if(v=v.value,v.W){F=v;break}R.rg().T.pH(YpR)&&R.videoData.cotn&&(F=n.find(function(f){return!!f.Z}));
F||(R=R.getAudioTrack(),F=R.z9.isDefault?void 0:R);return F};
mC6=function(R){for(var F=R.videoData.T,n=g.m(Object.entries({cpn:R.videoData.clientPlaybackNonce,c:R.G.T.c,cver:R.G.T.cver})),V=n.next();!V.done;V=n.next()){var r=g.m(V.value);V=r.next().value;r=r.next().value;for(var v=g.m(Object.values(F.T)),f=v.next();!f.done;f=v.next())lXe(f.value.jn,V,r);v=void 0;(v=F.UZ)==null||lXe(v,V,r)}V=R.G;n=R.videoData;v=R.AJ;F=new g.kVj(V);r=DAN({hasSubfragmentedFmp4:n.hasSubfragmentedFmp4,Xu:n.Xu});F.V=r;F.bS=n.maxReadAheadMediaTimeMs/1E3||F.bS;v.N.Cm()===v.policy.N?
F.YF=10:F.YF=n.minReadAheadMediaTimeMs/1E3||F.YF;F.GZ=n.readAheadGrowthRateMs/1E3||F.GZ;n.eV&&(F.W=!0,F.Tl=!0,V.experiments.rg().T.pH(Gd_)&&zKk(n)===3&&(F.RV=!0));F.Xn=!Tr();g.ad(V)||!Tr()?(F.dX=8388608,F.mQ=524288,F.L7=5,F.SQ=1048576,F.e1=1.5,F.yz=4587520,Z_()&&(F.yz=786432),F.UZ*=1.1,F.jQ*=1.1,F.G_=!0):V.U&&(F.UZ*=1.3,F.jQ*=1.3);g.Sl&&g.E2("crkey")&&(r=V.T.cmodel==="CHROMECAST/ANCHOVY",F.dX=20971520,F.mQ=1572864,r&&(F.yz=812500,F.Kk=1E3,F.NS=5,F.SQ=2097152));g.oc&&(F.G_=!0);V.supportsGaplessAudio()||
(F.ZE=!1);Nr&&(F.fm=!0);F.FG=V.B("html5_peak_shave");n.fetchType==="onesie"&&V.B("html5_disable_peak_shave_for_onesie")&&(F.FG=!1);var z;r=(z=n.T)==null?void 0:Fx(z);if(xG(n)){F.Ru=!0;F.vA||(F.Zl=!0);F.us=!0;F.eU=!0;F.zT=!0;if(n.latencyClass==="ULTRALOW"||n.latencyClass==="LOW"&&!V.B("html5_disable_low_pipeline"))F.Bq=2,F.tT=4;F.aI=n.defraggedFromSubfragments;g.Zh(n)&&(F.on=!1);F.M_=g.Xi(V)}n.isAd()&&(F.zy=0,F.Kf=0);F.mz=V.B("html5_ultra_low_latency_subsegment_readahead")&&n.latencyClass==="ULTRALOW";
F.N=V.CC();z=0;V.B("html5_live_use_alternate_bandwidth_window_sizes")&&(z=v.policy.T,n.isLivePlayback&&(z=g.Vn(V.experiments,n.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":n.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||z));f=z;v.U.J=xG(n)?.5:0;if(!v.policy.U&&f&&(z=v.N,v=Math.round(f*z.resolution),v!==z.T)){f=Array(v);var q=Math.min(v,z.N?z.T:z.U),Q=z.U-q;Q<0&&(Q+=z.T);for(var c=0;c<q;++c)f[c]=z.values[(Q+
c)%z.T];for(;c<v;++c)f[c]=Infinity;z.T=v;z.values=f;z.U=q%v;z.N=q===v;z.Fk=!0;z.W=dCJ(z)}n.isLivePlayback&&(F.MD=g.Vn(V.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||.25,F.uS=!1);n.iX()&&(F.uS=!1);z=!V.B("html5_sabr_keep_all_quality_constraints")&&!n.iX();v=V.B("html5_sabr_remove_all_quality_constraints_for_drm_traffic")&&n.iX();F.S9=z||v;F.xw=G7(n);kG(n)&&(F.mz=!0,n.latencyClass==="LOW"?F.eB=g.Vn(V.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):n.latencyClass===
"ULTRALOW"&&(F.eB=g.Vn(V.experiments,"html5_jumbo_ull_subsegment_readahead_target")),F.qV=!0);n.Zt()&&(F.z3=1.3);F.fm=F.fm||n.d8;F.lS=(F.lS||n.lS)&&V.V;F.A0=n.X;V.CC()&&(F.QZ=!0);n.X&&!r&&(F.xX=!0);n.X&&n.isAd()&&(F.UZ*=1.6,F.jQ*=1.6);SH(n)&&(F.J=n.videoId,F.qE=!0,F.yH=100,n.dG&&n.dG.length>0&&(F.NP=n.dG));F.u_=n.Ab;F.Fb=SU(V,{},n.N||void 0,ut(n));F.k5=Wh(n)&&(g.Dz(V)||g.a$(V));MA(n)&&(F.Z=!0,F.Bk=V.B("html5_estimate_live_partial_slice_duration"),g.ad(V)&&!g.PC()&&V.B("html5_force_audio_to_cover_video_keyframe")?
F.KC=!1:F.KC=!0,F.R2||n.isLivePlayback||!V.B("html5_sabr_non_streaming_xhr_vod_client_request_cancellation")||(F.yJ=!0,F.nZ=g.Vn(V.experiments,"html5_sabr_non_streaming_xhr_vod_request_cancellation_timeout_ms")),V.B("html5_sabr_report_partial_segment_estimated_duration")&&(F.LY=!0),F.T=!0,F.k_=V.B("html5_trigger_loader_when_idle_network"),F.e9=V.B("html5_sabr_parse_live_metadata_playback_boundaries"),F.vU=V.B("html5_consume_onesie_next_request_policy_for_sabr"),F.aD=V.B("html5_sabr_report_next_ad_break_time"),
F.Kt=V.B("html5_log_high_res_buffer_timeline")&&V.CC(),F.VV=V.B("html5_remove_stuck_slices_beyond_max_buffer_limits"),F.E8=V.B("html5_gapless_sabr_btl_last_slice")&&hu(n),F.fE=V.B("html5_reset_last_appended_slice_on_seek")&&hu(n),xG(n)?(F.rR=!0,F.XA=V.B("html5_disable_variability_tracker_for_live"),F.h1=!0,V.B("html5_simplified_backup_timeout_sabr_live")&&(F.H_=!0,F.Kk=F.lP)):F.oC=V.B("html5_probe_request_on_sabr_request_progress"),F.Dm=V.B("html5_serve_start_seconds_seek_for_post_live_sabr"),F.t0=
V.B("html5_flush_index_on_updated_timestamp_offset"),F.Nq=MA(n),F.tG=V.B("html5_ignore_partial_segment_from_live_readahead"),V.B("html5_include_partial_segment_for_jumbo_ll")&&kG(n)&&(F.tG=!1),F.Uo=V.B("html5_use_non_active_broadcast_for_post_live"),F.J1=V.B("html5_use_centralized_player_time"),F.aG=V.B("html5_log_centralized_player_time"),F.Tn=V.B("html5_use_loader_cmt_for_buffer_health"),F.tD=V.B("html5_consume_onesie_sabr_seek"),F.PG=V.B("html5_enable_sabr_seek_loader_refactor"),n.enableServerStitchedDai&&
(F.U=!0,F.lH=V.B("html5_reset_server_stitch_state_for_non_sabr_seek"),F.qS=V.B("html5_remove_ssdai_append_pause")&&!n.iZ(),F.fl=V.B("html5_ssdai_log_ssevt_in_loader_timers")),F.K$=V.CC(),F.latencyClass=n.latencyClass,F.ID=!n.Zt()&&V.B("html5_prebuffer_instream_media_vod"));F.uZ=g.n2R(n);fn(V.W,tI.BITRATE)&&(F.yz=NaN);if(z=g.Vn(V.experiments,"html5_request_size_max_kb"))F.SQ=z*1024;V.W.U?F.dG="; "+tI.EXPERIMENTAL.name+"=allowed":V.B("html5_enable_cobalt_tunnel_mode")&&g.PC()&&(V=tI.TUNNELMODE,F.dG=
"; "+V.name+"="+V.valid);n=n.serverPlaybackStartConfig;(n==null?0:n.enable)&&(n==null?0:n.playbackStartPolicy)&&(F.iI=!0,Uz(F,n.playbackStartPolicy,2));n=JKf(R);R.hP.removeAll();a:{V=R.CX.T2;if(z=R.videoData.videoId)if(r=V.T.get(z)){V.T.remove(z);V=r;break a}V=void 0}R.loader=new XNv(R,R.AJ,F,R.videoData.T,R.videoData.N,ZM(R),n,R.videoData.enableServerStitchedDai,V,R.videoData.UZ);F=R.videoData.B("html5_disable_preload_for_ssdai_with_preroll")&&R.videoData.isLivePlayback&&R.PX()?!0:R.S0&&UCW(R);R.loader.initialize(R.getCurrentTime(),
ZM(R),F);R.videoData.probeUrl&&(R.loader.uS=R.videoData.probeUrl);if(R.rY.length||R.S0)R.videoData.cotn||eQ(R,!1);J2R(R.BT,R.loader);R.vI&&(G6N(R.loader,R.vI),R.m2("sdai",{sdl:1}));g.XY(R.videoData)&&(R=R.loader,R.policy.o8=R.policy.FF)};
Gt=function(R,F){F=F===void 0?!0:F;R.G.XA&&!R.videoData.backgroundable&&R.mediaElement&&!R.oa()&&(R.isBackground()&&R.mediaElement.Kg()?(R.m2("bgmobile",{suspend:1}),R.Md(!0,!0)):!R.isBackground()&&F&&N7(R)&&R.m2("bgmobile",{resume:1}))};
$5=function(R){R.loader&&(R.loader.dispose(),R.loader=null,J2R(R.BT,null));R.K5()?MbE(R):R.Tv()};
MbE=function(R){if(R.IG)if(R.Aj(),R.IG.W)try{R.G.CC()&&R.m2("rms",{l:"vprms",sr:R.K5(),rs:C6(R.IG)});R.IG.clear();var F;(F=R.mediaElement)!=null&&(F.U=R.IG);R.IG=null}catch(n){F=new g.UR("Error while clearing Media Source in VideoPlayer: "+n.name+", "+n.message),F=QB(F),R.handleError(F),R.Tv()}else R.Tv()};
lQj=function(R,F){if(R.IG)return R.IG.N;a:{F=F===void 0?!1:F;F=F===void 0?!1:F;try{g.PC()&&R.videoData.Jf()&&Yqf(R.mediaElement);var n=R.mediaElement.Hy(R.nQ(),R.RP())}catch(r){if(Fn_(R.V5,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",r);R.Rr("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}R.WM(n,!1,!1,F)}var V;return((V=R.Hy())==null?void 0:V.N)||null};
Nx9=function(R,F){F=F===void 0?!1:F;if(R.loader){R.videoData.enableServerStitchedDai&&$Jv(R.loader);var n=R.getCurrentTime()-R.qC();R.loader.seek(n,{Ho:F}).h5(function(){})}else mC6(R)};
Erv=function(R,F){if(R.IG){R.IG.sU(F);var n;(n=R.loader)!=null&&n.policy.J1&&(n.X=F)}};
WSJ=function(R,F){Ohe(R,F.reason,F.T.info,F.source,F.token)};
Ee=function(R,F){R.publish("internalvideodatachange",F===void 0?"dataupdated":F,R.videoData)};
$Cv=function(R){for(var F=g.m("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),n=F.next();!n.done;n=F.next())R.dN.C(R.mediaElement,n.value,R.CT,R);R.G.D1&&R.mediaElement.Ik()&&(R.dN.C(R.mediaElement,"webkitplaybacktargetavailabilitychanged",R.cXG,R),R.dN.C(R.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",R.oy2,R))};
bhN=function(R){g.ok(R.Rb);PfN(R)||(R.Rb=g.C$(function(){return PfN(R)},100))};
PfN=function(R){var F=R.mediaElement;F&&R.yC&&!R.videoData.V&&!gV("vfp",R.Qc.timerName)&&F.Is()>=2&&!F.isEnded()&&tz(F.vB())&&R.Qc.tick("vfp");return(F=R.mediaElement)&&!R.videoData.V&&F.getDuration()>0&&(F.isPaused()&&F.Is()>=2&&tz(F.vB())&&(gV("pbp",R.Qc.timerName)||R.Qc.tick("pbp"),!R.videoData.H_||R.uh||F.isSeeking()||(R.uh=!0,R.publish("onPlaybackPauseAtStart"))),F=F.getCurrentTime(),Tt(R.yV,F))?(R.MJ(),!0):!1};
ekW=function(R){R.Dt.onProgress();if(Io(R.videoData)&&Date.now()>R.gj+6283){if(R.B("html5_unified_live_latency_reporting")){var F=R.Dt;F.qoe&&FSN(F.qoe)}else!R.isAtLiveHead()||R.videoData.T&&Fa(R.videoData.T)||(F=R.Dt,F.qoe&&FSN(F.qoe));F=g.Xi(R.G);var n=R.B("html5_always_log_rawlat");(F||n)&&R.m2("rawlat",{l:x5(R.pV,"rawlivelatency").toFixed(3)});R.gj=Date.now()}R.videoData.U&&$Q(R.videoData.U)&&(F=R.Zw())&&F.videoHeight!==R.X8&&(R.X8=F.videoHeight,Ohe(R,"a",ZhW(R,R.videoData.PG)))};
ZhW=function(R,F){if(F.T.video.quality==="auto"&&$Q(F.getInfo())&&R.videoData.k5)for(var n=g.m(R.videoData.k5),V=n.next();!V.done;V=n.next())if(V=V.value,V.getHeight()===R.X8&&V.T.video.quality!=="auto")return V.getInfo();return F.getInfo()};
ore=function(R){if(!Io(R.videoData))return NaN;var F=0;R.loader&&R.videoData.T&&(F=xG(R.videoData)?R.loader.sO.Cm()||0:R.videoData.T.PG);return(0,g.h1)()/1E3-R.wD()-F};
FN9=function(R){R.mediaElement&&R.mediaElement.oa()&&(R.Bn=(0,g.h1)());R.G.Bk?g.ak(function(){R$J(R)},0):R$J(R)};
R$J=function(R){var F;if((F=R.IG)==null||!F.i4()){if(R.mediaElement)try{R.hq=R.mediaElement.playVideo()}catch(V){PY(R,"err."+V)}if(R.hq){var n=R.hq;n.then(void 0,function(V){if(!(g.E(R.playerState,4)||g.E(R.playerState,256)||R.hq!==n||V&&V.name==="AbortError"&&V.message&&V.message.includes("load"))){var r="promise";V&&V.name&&(r+=";m."+V.name);PY(R,r);R.VW=!0;R.videoData.us=!0}})}}};
PY=function(R,F){g.E(R.playerState,128)||(R.md(O8(R.playerState,1028,9)),R.m2("dompaused",{r:F}),R.publish("onAutoplayBlocked"))};
N7=function(R,F){F=F===void 0?!1:F;if(!R.mediaElement||!R.videoData.N)return!1;var n=F;n=n===void 0?!1:n;var V=null;var r;if((r=R.videoData.N)==null?0:r.T){V=lQj(R,n);var v;(v=R.loader)==null||v.resume()}else $5(R),R.videoData.PG&&(V=R.videoData.PG.MS());r=R.mediaElement.Kg();n=!1;r&&r.equals(V)||(n5f(R,V),n=!0);g.E(R.playerState,2)||(V=R.BT,F=F===void 0?!1:F,V.W||!(V.N>0)||V.mediaElement&&V.mediaElement.getCurrentTime()>0||(F={gW:"seektimeline_resumeTime",Ho:F},V.videoData.V||(F.seekSource=15),V.seekTo(V.N,
F)));a:{F=n;if(MA(R.videoData)){if(!R.videoData.iX())break a}else if(!g.MF(R.videoData))break a;if(R.mediaElement)if((V=R.videoData.W)&&R.mediaElement.Ik()){r=R.mediaElement.Fs();if(R.uL)if(r!==R.uL.element)RG(R);else if(F&&V.flavor==="fairplay"&&!bx())RG(R);else break a;if(R.B("html5_report_error_for_unsupported_tvos_widevine")&&bx()&&V.flavor==="widevine")R.Rr("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{R.uL=new KT6(r,R.videoData,R.G,R.mediaElement,R.rp);
R.uL.subscribe("licenseerror",R.lm,R);R.uL.subscribe("qualitychange",R.yXG,R);R.uL.subscribe("heartbeatparams",R.gh,R);R.uL.subscribe("keystatuseschange",R.u0,R);R.uL.subscribe("ctmp",R.m2,R);F=g.m(R.hP.keys);for(V=F.next();!V.done;V=F.next())V=R.hP.get(V.value),R.uL.Ws(V);R.B("html5_eme_loader_sync")||R.hP.removeAll()}}else R.Rr("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return n};
n5f=function(R,F){R.Qc.tick("vta");IV("vta",void 0,"video_to_ad");R.getCurrentTime()>0&&Mzv(R.BT,R.getCurrentTime());R.mediaElement.activate(F);R.IG&&rS(4);!R.videoData.V&&R.playerState.isOrWillBePlaying()&&R.kH.start();if(IQN(R)){var n;if(F=(n=R.mediaElement)==null?void 0:n.audioTracks())F.onaddtrack=function(){kdE(R)},F.onremovetrack=function(){kdE(R)},F.onchange=function(){R.publish("internalaudioformatchange",R.videoData,!0)}}};
RG=function(R){R.uL&&(R.uL.dispose(),R.uL=null)};
VQ_=function(R){var F=F===void 0?!1:F;R.mediaElement&&(R.IG?(RG(R),R.Tv(),lQj(R,F)):(R.videoData.PG&&R.videoData.PG.ZC(),R.mediaElement.stopVideo()),R.playVideo())};
r59=function(R,F){R.G.B("html5_log_rebuffer_reason")&&(F={r:F,lact:aS()},R.mediaElement&&(F.bh=jL(R.mediaElement)),R.m2("bufreason",F))};
v56=function(R,F){if(R.G.CC()&&R.mediaElement){var n=R.mediaElement.fC();n.omt=(R.mediaElement.getCurrentTime()+R.qC()).toFixed(3);n.ps=R.playerState.state.toString(16);n.rt=(g.kr(R.Dt.provider)*1E3).toFixed();n.e=F;R.Gm[R.x4++%5]=n}};
fMN=function(R){if(R.G.CC()){R.Gm.sort(function(V,r){return+V.rt-+r.rt});
for(var F=g.m(R.Gm),n=F.next();!n.done;n=F.next())n=n.value,R.m2("vpe",Object.assign({t:n.rt},n));R.Gm=[];R.x4=0}};
tQv=function(R){if(g.E2("cobalt")&&g.E2("nintendo switch")){var F=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;R.m2("nxdock",{d:F})}};
eQ=function(R,F){var n;(n=R.loader)==null||yiW(n,F)};
hkN=function(R){aq(R.videoData,"html5_set_debugging_opt_in")&&(R=g.M8(),R.pH(183)||(N8(183,!0),R.save()))};
DJR=function(R,F){R.CX.UF()||(R.m2("sgap",{f:F}),R.CX.clearQueue(!1,F==="pe"))};
Oe=function(R){return R.B("html5_disable_video_player_initiated_seeks")&&MA(R.videoData)};
z$I=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);HK(this.api,"isLifaAdPlaying",function(){return F.api.isLifaAdPlaying()});
this.events.C(R,R.D().rg().T.pH(F7)?"playbackChange":"serverstitchedvideochange",function(){var n;(n=F.api.getVideoData())!=null&&n.iZ()&&(F.api.isLifaAdPlaying()?(F.playbackRate=F.api.getPlaybackRate(),F.api.setPlaybackRate(1)):F.api.setPlaybackRate(F.playbackRate))});
this.playbackRate=1};
nN=function(R){yk.call(this,"Loop",g.BN.YD);this.K=R;var F=R.B("delhi_modern_web_player_icons")?{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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"}}]}:wcJ();this.setIcon(F);this.subscribe("select",this.U,this);R.createClientVe(this.element,this,28661);this.C(R,"settingsMenuVisibilityChanged",this.T);this.listen("click",this.logClick);this.C(R,"onLoopChange",this.onLoopChange);UY(this,R.getLoopVideo());R.MX().xF(this)};
qe6=function(R){pi.call(this,R);var F=this;R.addEventListener("settingsMenuInitialized",function(){F.menuItem||(F.menuItem=new nN(F.api),g.d(F,F.menuItem))});
R.addEventListener("videodatachange",function(n,V){n=F.api.getPresentingPlayerType()===2;var r;(r=F.menuItem)==null||r.dg(!V.isLivePlayback&&!n)})};
Q3N=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);HK(this.api,"seekToChapterWithAnimation",function(n){F.seekToChapterWithAnimation(n)});
HK(this.api,"seekToTimeWithAnimation",function(n,V){F.seekToTimeWithAnimation(n,V)});
HK(this.api,"renderChapterSeekingAnimation",function(n,V,r){F.api.renderChapterSeekingAnimation(n,V,r)});
HK(this.api,"setMacroMarkers",function(n){F.setMacroMarkers(R,n)});
HK(this.api,"changeMarkerVisibility",function(n,V,r){F.changeMarkerVisibility(n,V,r)});
HK(this.api,"isSameMarkerTypeVisible",function(n){return F.isSameMarkerTypeVisible(n)})};
c5_=function(R,F,n){var V=R.api.getCurrentTime()*1E3<F?1:-1;R.api.renderChapterSeekingAnimation(V,n);R.api.seekTo(F/1E3,void 0,void 0,void 0,3)};
wY_=function(R,F){var n,V;return(n=RK(R,"macroMarkersListEntity",F))==null?void 0:(V=n.markersList)==null?void 0:V.markerType};
SeN=function(R,F){var n=g.jZ.getState().entities;R=wY_(n,R);F=g.m(F.Mq);for(var V=F.next();!V.done;V=F.next())if(R===wY_(n,V.value))return!0;return!1};
V3=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);this.events.C(R,"videodatachange",function(){F.updateMetadata()});
this.events.C(R,"presentingplayerstatechange",function(){LNJ(F)});
this.events.C(R,"SEEK_COMPLETE",function(){s3W(F)})};
rK=function(R,F){try{navigator.mediaSession.setActionHandler(R,F)}catch(n){}};
pY_=function(R){rK("play",function(){R.api.playVideo();vB(R)});
rK("pause",function(){R.api.pauseVideo();vB(R)});
rK("seekbackward",function(){R.api.seekBy(-5*R.api.getPlaybackRate());vB(R)});
rK("seekforward",function(){R.api.seekBy(5*R.api.getPlaybackRate());vB(R)});
rK("seekto",function(F){F=F.seekTime;F!=null&&R.api.seekTo(F);vB(R)})};
vB=function(R){R.api.B("web_reset_lact_on_media_actions")&&R.api.updateLastActiveTime()};
XYj=function(R){var F,n,V,r;return(F=R.api.getVideoData().getWatchNextResponse())==null?void 0:(n=F.playerOverlays)==null?void 0:(V=n.playerOverlayRenderer)==null?void 0:(r=V.browserMediaSession)==null?void 0:r.browserMediaSessionRenderer};
A59=function(R){var F=[];if(!R||!R.thumbnails)return F;R=g.m(R.thumbnails);for(var n=R.next();!n.done;n=R.next())n=n.value,n.url&&(!n.width||n.width<=0||!n.height||n.height<=0||g.dn(n.url)&&F.push({src:n.url||"",sizes:n.width+"x"+n.height,type:"image/jpeg"}));return F};
LNJ=function(R){R=R.api.getPlayerStateObject();R=R.isCued()||R.isError()?"none":R.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=R};
s3W=function(R){if(navigator.mediaSession.setPositionState)if(R.api.B("web_player_media_session_infinity")&&R.api.getVideoData().isLivePlayback)try{navigator.mediaSession.setPositionState({duration:Infinity})}catch(V){}else{var F=R.api.getProgressState().seekableEnd,n=Math.min(R.api.getCurrentTime(),F);F&&Number.isFinite(n)&&navigator.mediaSession.setPositionState({duration:F,playbackRate:R.api.getPlaybackRate(),position:n})}};
fN=function(R){pi.call(this,R);var F=this;this.U=new Map;this.J=this.T=void 0;this.compositeVideoState=null;this.N=void 0;this.events=new g.AQ(R);g.d(this,this.events);this.events.C(R,"modulecreated",function(n){var V;a:{var r,v,f,z=(r=F.api.getVideoData())==null?void 0:(v=r.getPlayerResponse())==null?void 0:(f=v.overlay)==null?void 0:f.playerControlsOverlayRenderer;if(z&&(r=g.A(z.compositeVideoOverlay,aME),r==null?0:(V=r.sources)==null?0:V.length))for(V=g.m(r==null?void 0:r.sources),r=V.next();!r.done;r=
V.next())if(r=r.value,r.isActive){V=r;break a}V=void 0}n==="captions"&&(V==null?void 0:V.topLeftCornerX)!==void 0&&(V==null?void 0:V.topLeftCornerY)!==void 0&&(V==null?void 0:V.width)!==void 0&&(V==null?void 0:V.height)!==void 0&&F.api.z6({top:V.topLeftCornerY,right:1-V.topLeftCornerX-V.width,bottom:1-V.topLeftCornerY-V.height,left:V.topLeftCornerX})});
this.events.C(R,"videodatachange",function(n){var V=F.api.getVideoData();F.T=void 0;F.U.clear();F.api.Bw("compositeembargo",1);var r=V==null?void 0:V.vA.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(r==null?0:r.length)?Cm6(F,r.filter(function(v){return Tw6(F,v)})):(V==null?0:V.cueRanges)&&Cm6(F,V.cueRanges.filter(function(v){return Tw6(F,v)}));
n==="dataupdated"&&(V==null?void 0:V.compositeLiveStatusToken)!==F.J&&(F.J=V==null?void 0:V.compositeLiveStatusToken,F.api.Qw())});
this.events.C(R,g.$A("compositeembargo"),function(n){var V;if(((V=F.T)==null?void 0:V.id)!==n.id&&(F.api.S7(!0),F.U.has(n.id))){var r=F.U.get(n.id);V=F.api.getVideoData();r=g.m(r);for(var v=r.next();!v.done;v=r.next()){var f=void 0;v=(f=v.value.compositeEmbargo)==null?void 0:f.embargoStatusToken;V.yJ!==v&&(V.yJ=v,F.api.Qw());o5R(F,n)}}});
this.events.C(R,g.Pl("compositeembargo"),function(n){var V;if(((V=F.T)==null?void 0:V.id)===n.id&&(F.api.S7(!1),F.U.has(n.id))){if(n=F.api.getVideoData())n.yJ=void 0;F.api.Qw();o5R(F)}});
this.events.C(R,"heartbeatRequest",function(n){F.compositeVideoState!==null&&(n.playbackState||(n.playbackState={}),n.playbackState.compositeVideoState=F.compositeVideoState)});
this.events.C(R,"internalaudioformatchange",function(n,V){var r=F.api.getVideoData({AV:!1});r==null||r.m2("atrkchg",{id:n,m:V});if(r&&wZ(r))for(V=F.api.getAvailableAudioTracks(),V=g.m(V),r=V.next();!r.done;r=V.next())if(r.value.getLanguageInfo().getId()===n){F.api.D().uS=n;break}});
this.events.C(R,"onPlaybackAudioChange",function(){F.api.Qw();var n;((n=R.getVideoData())==null?0:n.D().B("html5_preload_on_mosaic_audio_track_change"))&&(n=F.api.getSourceConfigForActiveAudioTrack())&&R.preloadVideoByPlayerVars({videoId:n.videoId,live_preload:!0},1)});
HK(R,"setCompositeParam",function(n){F.compositeVideoState=n});
this.api.B("web_watch_enable_multiview_manager")&&HK(R,"setCompositeVideoOverlayRendererComponent",function(n){F.setCompositeVideoOverlayRendererComponent(n)})};
o5R=function(R,F){var n;((n=R.T)==null?void 0:n.id)!==(F==null?void 0:F.id)&&(R.T&&(R.U.delete(R.T.id),R.api.rG([R.T],1)),R.T=F)};
Cm6=function(R,F){F=g.m(F);for(var n=F.next();!n.done;n=F.next()){var V=n.value,r=void 0;n=Number((r=V.playbackRelativePosition)==null?void 0:r.utcTimeMs)/1E3;var v=void 0;r=n+Number((v=V.duration)==null?void 0:v.seconds);v="composite_embargo_"+n;V.onEnter&&(V=V.onEnter.filter(R.W),V.length&&(R.U.set(v,V),R.api.addUtcCueRange(v,n,r,"compositeembargo",!1)))}};
Tw6=function(R,F){var n;return(n=F.onEnter)==null?void 0:n.some(R.W)};
y5W=function(R){pi.call(this,R);this.events=new g.AQ;g.d(this,this.events);this.events.C(R,"applicationInitialized",function(){var F={};for(qx=new WQ(F.handleError===void 0?Be:F.handleError,F.logEvent===void 0?g.LJ:F.logEvent);QM.length>0;)switch(F=QM.shift(),F.type){case "ERROR":qx.f4(F.payload);break;case "EVENT":qx.logEvent(F.eventType,F.payload)}});
HK(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));HK(this.api,"updateDownloadState",this.updateDownloadState.bind(this));HK(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));HK(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));HK(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));HK(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));HK(this.api,"setUpPositionSyncInterval",this.setUpPositionSyncInterval.bind(this))};
U7I=function(R){pi.call(this,R);var F=this;this.loaded=!1;this.overlay=null;this.events=new g.AQ(R);g.d(this,this.events);this.T=new g.AQ(R);g.d(this,this.T);this.events.C(R,"modulesCreated",function(){F.Wy()&&F.load()});
this.events.C(R,"modulesDestroyed",function(n){var V=!0;switch(n){case 2:case 3:V=!1;break;case 4:V=F.api.getPresentingPlayerType()===1}V&&F.unload()})};
tX=function(R){pi.call(this,R);var F=this;HK(R,"getAvailableQualityData",function(){return F.getAvailableQualityData()});
HK(R,"getAvailableQualityDataAndMessaging",function(){return F.getAvailableQualityDataAndMessaging()})};
j3e=function(R,F,n){var V=[],r=F?156595:151874;R=g.m(R);for(var v=R.next();!v.done;v=R.next()){var f=v.value;v=f.video;f={formatId:f.id,qualityLabel:v.qualityLabel,quality:v.quality,isPlayable:F};if(v=n.get(v.qualityLabel))f.paygatedQualityDetails={paygatedIndicatorText:v.paygatedIndicatorText,endpoint:v.endpoint,veType:r,trackingParams:v.trackingParams};V.push(f)}return V};
HPk=function(R){for(var F=0,n=0;n<R.length;n++)if(R[n].paygatedQualityDetails){var V=R[n];R.splice(n,1);R.splice(F,0,V);F++}};
h$I=function(R){var F=new Set,n=new Map,V={};R=g.m(R);for(var r=R.next();!r.done;r=R.next()){r=r.value;var v=r.quality,f=r.isPlayable,z=r.qualityLabel;z&&v&&(f&&n.has(v)&&n.get(v)!==z?F.add(v):f&&n.set(v,z),V[z]||(V[z]=r))}n=[];V=g.m(Object.values(V));for(R=V.next();!R.done;R=V.next())r=R.value,(R=r.quality)&&!F.has(R)&&(r.formatId=void 0),n.push(r);return n};
zO=function(R){pi.call(this,R);var F=this;this.N=1;this.Qc=null;this.hJ={V0Q:function(){return F.N}};
this.events=new g.AQ(R);g.d(this,this.events);this.events.C(R,"d6de4videobindingchange",function(n){F.Y_(n)});
this.events.C(R,"csiinitialized",function(){WNE(F)})};
WNE=function(R){uHV()&&(R.Qc=R.api.Mc(),R.T=new oi,R.N=2,R.Qc.R9("pt_pish"),window.requestIdleCallback?window.requestIdleCallback(function(){BwJ(R)}):BwJ(R))};
BwJ=function(R){if(uHV()){R.Qc=R.api.Mc();R.Qc.R9("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:868618676952}).then(function(n){R.U=n;var V;(V=R.T)==null||V.resolve();R.Qc.R9("pt_pif")}).catch(function(n){qf(n,"player_start");
R.Qc.R9("pt_pie");var V;(V=R.T)==null||V.reject(n)})}catch(n){qf(n,"player_start_catch");
R.api.m2("pfes",{});var F;(F=R.T)==null||F.reject(n)}}};
m7J=function(R,F){if(R.U){var n=F.videoId;R.N=3;R.Qc.R9("pt_ms");try{R.U.requestToken(n).then(function(V){R.Qc.R9("pt_mf");if(V=Mr(V))F.z3={Ywq:V}}).catch(function(V){R.Qc.R9("pt_me");
qf(V,"player_generate");R.handleError(V,F)})}catch(V){qf(V,"player_generate_catch"),R.handleError(V,F)}}};
qf=function(R,F){R.message&&g.mq(Error(F+"_"+R.message))};
uHV=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider};
Q3=function(R){g.N.call(this,{j:"button",BG:["ytp-pip-button","ytp-button"],S:{title:R.B("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},L:[j8()]});var F=this;this.api=R;this.listen("click",this.onClick);var n=this.api.y6(),V=n.subscribe("visibilitystatechange",function(){F.CH(n.Yw())});
this.addOnDisposeCallback(function(){n.V6(V)});
dZ(R,this.element,this);this.CH(n.Yw())};
cB=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);this.events.C(R,"standardControlsInitialized",function(){F.createButton()});
g.Xk(this.api.D())&&(this.B("web_watch_pip")||this.B("web_shorts_pip"))&&HK(this.api,"setDocumentPictureInPicture",function(n){F.setDocumentPictureInPicture(n)})};
g5j=function(R){var F=R.api.getVideoData();R.button.dg(F.IS)};
OPN=function(R){pi.call(this,R);var F=this;this.loaded=!1;this.V=0;this.T=!1;this.X={};this.N=[];this.J=0;this.Z=!1;this.events=new g.AQ(R);g.d(this,this.events);this.U=new g.AQ(R);g.d(this,this.U);this.events.C(R,"modulesCreated",function(){F.Wy()&&F.load()});
this.events.C(R,"modulesDestroyed",function(n){var V=F.api.getPresentingPlayerType();switch(n){case 2:case 3:n=V!==1&&!(V===5||V===6||V===7);break;case 4:n=!F.T;break;default:n=!0}n&&F.unload()})};
IMN=function(R,F){sP(R.api.D())&&(F?R.W.show():R.W.hide())};
KNW=function(R){var F=R.api.getVideoData().interstitials,n=[];F=g.m(F);for(var V=F.next();!V.done;V=F.next()){V=V.value;var r=n,v=r.push,f=R,z=V.playerVars,q=V.uG,Q=V.time,c="yto-"+f.V++;Q=new g.NQ(Q,Q,{id:c,priority:7,namespace:"yto"});f.X[c]={playerVars:z,playerType:q};v.call(r,Q);r=R.api.getVideoData({playerType:1});r=Object.assign({oauth_token:r.oauthToken},V.playerVars);R.api.preloadVideoByPlayerVars(r,V.uG)}R.api.iL(n,1)};
D76=function(R){var F=R.N[R.J];if(F){var n=R.X[F];F=n.playerVars;n=n.playerType;R.T=!0;R.J++;var V=R.api.getVideoData({playerType:1});F=Object.assign({oauth_token:V.oauthToken},F);R.api.loadVideoByPlayerVars(F,!0,n,!0);R.T=!1}};
iPI=function(R){R.J<R.N.length?D76(R):(g.E(R.api.getPlayerStateObject(1),2)&&(R.Z=!0),R.T=!0,R.J=0,R.N.length=0,R.api.uy(),R.T=!1)};
x7W=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);HK(this.api,"musicDisableUi",function(){g.z0(F.api.getRootNode(),"ytp-player-in-bar-disable-ui")});
HK(this.api,"musicEnableUi",function(){g.Qj(F.api.getRootNode(),"ytp-player-in-bar-disable-ui")})};
LN=function(R,F,n){F=F===void 0?!0:F;n=n===void 0?!1:n;g.N.call(this,{j:"div",Y:"ytp-suggested-action"});var V=this;this.K=R;this.KC=this.J1=this.jQ=this.Nq=this.U=this.X=this.expanded=this.enabled=this.SQ=!1;this.aG=new g.ZK(function(){V.badge.element.style.width=""},200,this);
this.Y5=new g.ZK(function(){wK(V);S6(V)},200,this);
this.gX=this.K.B("delhi_modern_web_player")?40:34;this.dismissButton=new g.N({j:"button",BG:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.d(this,this.dismissButton);this.J=new g.N({j:"div",Y:"ytp-suggested-action-badge-expanded-content-container",L:[{j:"label",Y:"ytp-suggested-action-badge-title",cG:"{{badgeLabel}}"},this.dismissButton]});g.d(this,this.J);this.Mq=new g.N({j:"div",Y:"ytp-suggested-action-badge-icon-container",L:[F?{j:"div",Y:"ytp-suggested-action-badge-icon"}:
""]});g.d(this,this.Mq);this.badge=new g.N({j:n?"div":"button",BG:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],L:[this.Mq,this.J]});g.d(this,this.badge);this.badge.KH(this.element);this.V=new g.n5(this.badge,250,!1,100,function(){V.K.B("web_player_overlay_positioned_layout")&&V.hide()});
g.d(this,this.V);R.B("web_player_overlay_positioned_layout")&&this.hide();this.k5=new g.n5(this.J,250,!1,100);g.d(this,this.k5);this.mQ=new g.bM(this.azG,null,this);g.d(this,this.mQ);this.h1=new g.bM(this.G4,null,this);g.d(this,this.h1);g.d(this,this.aG);g.d(this,this.Y5);this.K.createServerVe(this.badge.element,this.badge,!0);this.K.createServerVe(this.dismissButton.element,this.dismissButton,!0);this.C(this.K,"onHideControls",function(){V.Aq(!1)});
this.C(this.K,"onShowControls",function(){V.Aq(!0)});
this.C(this.badge.element,"click",this.X3);this.C(this.dismissButton.element,"click",this.An);this.C(this.K,"pageTransition",this.Uc);this.C(this.K,"appresize",this.RI);this.C(this.K,"fullscreentoggled",this.fO5);this.C(this.K,"cardstatechange",this.ZX2);this.C(this.K,"annotationvisibility",this.SFo,this);this.C(this.K,"offlineslatestatechange",this.qFq,this)};
wK=function(R){g.ws(R.badge.element,"ytp-suggested-action-badge-with-controls",R.jQ||!R.X)};
S6=function(R,F){var n=R.i6();R.expanded!==n&&(R.expanded=n,F===void 0||F?(R.mQ.stop(),R.h1.stop(),R.aG.stop(),R.mQ.start()):(R.J.dg(R.expanded),g.ws(R.badge.element,"ytp-suggested-action-badge-expanded",R.expanded)),R.rL())};
ktE=function(R){var F=R.text||"",n=g.HI("ytp-suggested-action-badge-title",R.element);n&&g.kW(n,F);R.badge.element.setAttribute("aria-label",F);R.dismissButton.element.setAttribute("aria-label",R.dX?R.dX:"")};
sb=function(R,F,n,V,r,v){var f={j:"div",Y:"ytp-panel"};if(n){var z="ytp-panel-back-button";var q="ytp-panel-title";var Q={j:"div",Y:"ytp-panel-header",L:[{j:"div",BG:["ytp-panel-back-button-container"],L:[{S:{"aria-label":"Back to previous menu"},j:"button",BG:["ytp-button",z]}]},{j:"span",BG:[q],S:{role:"heading","aria-level":"2"},L:[n]}]};if(r){var c="ytp-panel-options";Q.L.push({j:"button",BG:["ytp-button",c],L:[V]})}f.L=[Q]}V=!1;v&&(v={j:"div",Y:"ytp-panel-footer",L:[v]},V=!0,f.L?f.L.push(v):
f.L=[v]);g.c5.call(this,f);this.content=F;V&&f.L?F.KH(this.element,f.L.length-1):F.KH(this.element);this.T8=!1;this.y0=V;n&&(this.backButton=this.sZ(z),n=this.sZ(q),this.C(this.backButton,"click",this.xL),this.C(n,"click",this.xL),this.T8=!0,r&&this.C(this.sZ(c),"click",r));F.subscribe("size-change",this.Er,this);this.C(R,"fullscreentoggled",this.Er);this.K=R};
Yev=function(R){return R.backButton?(R.backButton.focus(),!0):!1};
g.pN=function(R,F,n,V,r,v){F=F===void 0?null:F;var f={role:"menu"};F&&(f.id=F);F=new g.c5({j:"div",Y:"ytp-panel-menu",S:f});sb.call(this,R,F,n,V,r,v);this.menuItems=F;this.items=[];g.d(this,this.menuItems)};
g.X7=function(R){for(var F=g.m(R.items),n=F.next();!n.done;n=F.next())n.value.unsubscribe("size-change",R.Vp,R);R.items=[];try{g.Ko(R.menuItems.element)}catch(v){var V,r;g.mq(new g.UR("Failed to remove menu items from panel menu.",{error:v.message,originalStack:v.stack,childToBeRemoved:(r=(V=R.menuItems.element.firstChild)==null?void 0:V.textContent)!=null?r:"child element not found"}))}R.menuItems.publish("size-change")};
J5k=function(R,F){return F.priority-R.priority};
g.AX=function(R,F){ti.call(this,R,{j:"div",BG:["ytp-popup",F||""],L:[{j:"div",Y:"ytp-focus-trap-before",S:{tabindex:"0"}},{j:"div",Y:"ytp-popup-content"},{j:"div",Y:"ytp-focus-trap-after",S:{tabindex:"0"}}]},100,!0);this.T=[];this.J=this.N=null;this.maxHeight=this.maxWidth=0;this.size=new g.QX(0,0);this.content=this.sZ("ytp-popup-content");this.listen("keydown",this.gK);this.C(this.sZ("ytp-focus-trap-before"),"focus",this.x5X);this.C(this.sZ("ytp-focus-trap-after"),"focus",this.uh2)};
Gt6=function(R){var F=R.T[R.T.length-1];if(F){g.X6(R.element,R.maxWidth||"100%",R.maxHeight||"100%");g.fY(F.element,"width","");g.fY(F.element,"height","");g.fY(F.element,"maxWidth","100%");g.fY(F.element,"maxHeight","100%");g.fY(F.content.element,"height","");var n=g.A_(F.element);n.width+=1;n.height+=1;g.fY(F.element,"width",n.width+"px");g.fY(F.element,"height",n.height+"px");g.fY(F.element,"maxWidth","");g.fY(F.element,"maxHeight","");var V=0;F.T8&&(V=g.A_(F.sZ("ytp-panel-header")).height);var r=
0;F.y0&&(r=F.sZ("ytp-panel-footer"),g.fY(r,"width",n.width+"px"),r=g.A_(r).height);g.fY(F.content.element,"height",n.height-V-r+"px");F.element instanceof HTMLElement&&(V=F.element,r=V.scrollWidth-V.clientWidth,V.offsetWidth-V.clientWidth>0&&r>0&&(n.width+=r,g.fY(F.element,"width",n.width+"px")));R.size=n}};
g.aG=function(R,F){var n=R.T[R.T.length-1];n!==F&&(R.T.push(F),d79(R,n,F))};
g.CN=function(R){if(!(R.T.length<=1)){var F=R.T.pop(),n=R.T[0];R.T=[n];d79(R,F,n,!0)}};
d79=function(R,F,n,V){MQR(R);F&&(F.unsubscribe("size-change",R.hN,R),F.unsubscribe("back",R.UD,R));n.subscribe("size-change",R.hN,R);n.subscribe("back",R.UD,R);if(R.JJ){g.z0(n.element,V?"ytp-panel-animate-back":"ytp-panel-animate-forward");n.KH(R.content);n.focus();R.element.scrollLeft=0;R.element.scrollTop=0;var r=R.size;Gt6(R);g.X6(R.element,r);R.N=new g.ZK(function(){lME(R,F,n,V)},20,R);
R.N.start()}else n.KH(R.content),F&&F.detach()};
lME=function(R,F,n,V){R.N.dispose();R.N=null;g.z0(R.element,"ytp-popup-animating");V?(g.z0(F.element,"ytp-panel-animate-forward"),g.Qj(n.element,"ytp-panel-animate-back")):(g.z0(F.element,"ytp-panel-animate-back"),g.Qj(n.element,"ytp-panel-animate-forward"));g.X6(R.element,R.size);R.J=new g.ZK(function(){g.Qj(R.element,"ytp-popup-animating");F.detach();g.ct(F.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);R.J.dispose();R.J=null},250,R);
R.J.start()};
MQR=function(R){R.N&&g.Rp(R.N);R.J&&g.Rp(R.J)};
TO=function(R){g.AX.call(this,R,"ytp-shopping-product-menu");this.kq=new g.pN(this.K);g.d(this,this.kq);this.hide();g.aG(this,this.kq);g.RL(this.K,this.element,4)};
E5E=function(R,F,n){var V,r=F==null?void 0:(V=F.text)==null?void 0:V.simpleText;r&&(n=Nwf(R,n,r,F==null?void 0:F.icon,F==null?void 0:F.secondaryIcon),F.navigationEndpoint&&n.listen("click",function(){R.K.HG("innertubeCommand",F.navigationEndpoint);R.hide()},R))};
$76=function(R,F,n){var V,r=F==null?void 0:(V=F.text)==null?void 0:V.simpleText;r&&Nwf(R,n,r,F==null?void 0:F.icon).listen("click",function(){var v;(F==null?void 0:(v=F.icon)==null?void 0:v.iconType)==="HIDE"?R.K.publish("featuredproductdismissed"):F.serviceEndpoint&&R.K.HG("innertubeCommand",F.serviceEndpoint);R.hide()},R)};
Nwf=function(R,F,n,V,r){F=new g.w$(g.SK({},[],!1,!!r),F,n);r&&F.updateValue("secondaryIcon",PmE(r));F.setIcon(PmE(V));g.d(R,F);R.kq.xF(F,!0);return F};
PmE=function(R){if(!R)return null;switch(R.iconType){case "ACCOUNT_CIRCLE":return{j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z",
fill:"#fff"}}]};case "FLAG":return{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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 Te();case "HIDE":return{j:"svg",S:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"g",L:[{j:"path",S:{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 Ua()}};
oG=function(R){LN.call(this,R,!1,!0);this.isCounterfactual=this.N=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.X=!0;this.overflowButton=new g.N({j:"button",BG:["ytp-featured-product-overflow-icon","ytp-button"],S:{"aria-haspopup":"true"}});this.overflowButton.hide();g.d(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.N({j:"img",Y:"ytp-suggested-action-badge-img",S:{src:"{{url}}"}});
this.thumbnailImage.hide();g.d(this,this.thumbnailImage);this.thumbnailIcon=new g.N({j:"div",Y:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.d(this,this.thumbnailIcon);this.banner=new g.N({j:"a",Y:"ytp-suggested-action-container",L:[this.thumbnailImage,this.thumbnailIcon,{j:"div",Y:"ytp-suggested-action-details",L:[{j:"text",Y:"ytp-suggested-action-title",cG:"{{title}}"},{j:"text",Y:"ytp-suggested-action-subtitle",cG:"{{subtitle}}"},{j:"text",Y:"ytp-suggested-action-metadata-text",
cG:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.d(this,this.banner);this.banner.KH(this.J.element);this.C(this.K,"videodatachange",this.onVideoDataChange);this.C(this.K,g.$A("suggested_action_view_model"),this.heG);this.C(this.K,g.Pl("suggested_action_view_model"),this.GuG);this.C(this.overflowButton.element,"click",this.AU);this.C(R,"featuredproductdismissed",this.An);this.K.createServerVe(this.banner.element,this.banner,!0)};
bPI=function(R){R.isInitialized&&(R.enabled=R.isVisible,R.J1=R.isVisible,S6(R),R.RI(),R.thumbnailImage.dg(R.isVisible),R.shouldHideDismissButton||R.dismissButton.dg(R.isVisible),R.shouldShowOverflowButton&&R.overflowButton.dg(R.isVisible))};
y3=function(){oG.apply(this,arguments)};
ZPf=function(R){pi.call(this,R);this.T=new y3(this.api);g.d(this,this.T);g.RL(this.api,this.T.element,4)};
Ub=function(R){pi.call(this,R);var F=this;this.T=!0;var n=new g.AQ(R);g.d(this,n);n.C(R,"internalaudioformatchange",function(V,r){e$9(F,V,r)});
n.C(R,"annotationvisibility",function(V){F.api.B("web_fix_annotations")&&Rxf(F,(294).toString(),{boolValue:V})});
n.C(R,"videoplayerreset",function(){Fbk(F)});
n.C(R,"videodatachange",function(V,r){F.onVideoDataChange(V,r)})};
e$9=function(R,F,n){if(n){var V="";n3N(R,F)&&(V=F,R.api.D().uS=F);if(V&&V6e(R,V)){iQN(R.api,V);var r;z4(hP(R.api.D(),(r=R.api.getVideoData())==null?void 0:g.Ql(r)),function(v){var f=V;rXJ(v)!==f&&Rxf(R,v3v(v),{stringValue:f})})}}};
Fbk=function(R){var F;if((F=x2())==null?0:F.size){var n;z4(hP(R.api.D(),(n=R.api.getVideoData())==null?void 0:g.Ql(n)),function(V){(V=rXJ(V))&&V6e(R,V)&&(R.api.D().uS=V)})}};
t6J=function(R,F){q4(z4(z4(R.i_(),function(n){return cw_(n,[v3v(F)])}),function(n){if(n){n=g.m(n);
for(var V=n.next();!V.done;V=n.next()){var r=V.value;V=r.key;r=r.value;V&&r&&(fVV([{settingItemId:V,settingOptionValue:r}]),Fbk(R))}}}),function(){R.T=!0})};
n3N=function(R,F){R=R.api.getAvailableAudioTracks();R=g.m(R);for(var n=R.next();!n.done;n=R.next())if(n=n.value,n.getLanguageInfo().getId()===F)return n;return null};
rXJ=function(R){R=v3v(R);var F=x2();R=F?F.get(R):void 0;return R&&R.stringValue?R.stringValue:""};
v3v=function(R){var F=(484).toString();R&&(F=(483).toString());return F};
V6e=function(R,F){var n;return F.split(".")[0]!==""&&((n=R.api.getVideoData())==null?void 0:!wZ(n))&&!0};
Rxf=function(R,F,n){fVV([{settingItemId:F,settingOptionValue:n}]);z4(R.i_(),function(V){S$j(V,F,n)})};
fVV=function(R){var F=x2();F||(F=new Map);R=g.m(R);for(var n=R.next();!n.done;n=R.next())n=n.value,F.set(n.settingItemId,n.settingOptionValue);F=JSON.stringify(Object.fromEntries(F));g.i6("yt-player-user-settings",F,2592E3)};
zxI=function(){this.label="Auto-dubbed"};
g.j6=function(R,F,n,V,r,v,f){g.w$.call(this,g.SK({"aria-haspopup":"true"}),F,R);this.T9=V;this.V=!1;this.N=null;this.options={};this.Xh=new g.pN(n,void 0,R,r,v,f);g.d(this,this.Xh);this.listen("keydown",this.gK);this.listen("click",this.open)};
qbJ=function(R){if(R.N){var F=R.options[R.N];F.element.getAttribute("aria-checked");F.element.setAttribute("aria-checked","false");R.N=null}};
QG_=function(R,F){g.X7(R.Xh);for(var n={},V=!1,r=0;r<F.length;r++){var v=F[r];if(v instanceof zxI)v=new g.w$({j:"div",BG:["ytp-menuitem","ytp-menuitem-section-header"],S:{"aria-disabled":"true"},L:[{j:"div",BG:["ytp-menuitem-label"],cG:"{{label}}"}]},-r,v.label),R.Xh.xF(v,!0);else{var f=R.options[v],z=v===R.N;z&&(V=!0);f&&f.priority===-r?(g.cN(R.options[v],R.lq(v,!0)),delete R.options[v]):f=R.Rk(v,-r,z);n[v]=f;R.Xh.xF(f,!0)}}V||(R.N=null);F=g.m(Object.keys(R.options));for(V=F.next();!V.done;V=F.next())R.options[V.value].dispose();
R.options=n};
cXJ=function(R,F){g.j6.call(this,"Sleep timer",g.BN.SLEEP_TIMER,R,F);this.K=R;this.Z={};this.J=this.ek("Off");this.W=this.T="";R.B("web_settings_menu_icons")&&(F=R.B("delhi_modern_web_player_icons")?{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z",
fill:"white"}}]}:{j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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(F));
this.U=new g.N({j:"div",BG:["ytp-menuitem-label-wrapper"],L:[{j:"div",cG:"End of video"},{j:"div",BG:["ytp-menuitem-sublabel"],cG:"{{content}}"}]});g.d(this,this.U);this.listen("click",this.onClick);this.C(R,"videodatachange",this.onVideoDataChange);this.C(R,"presentingplayerstatechange",this.CH);this.C(R,"settingsMenuVisibilityChanged",this.QI);R.createClientVe(this.element,this,218889);this.CH();this.K.HG("onSleepTimerFeatureAvailable")};
wB9=function(R){var F="Off 10 15 20 30 45 60".split(" "),n;((n=R.K.getVideoData())==null?0:n.isLivePlayback)||F.push("End of video");n=R.K.getPlaylist();var V;n&&((V=n.listId)==null?void 0:V.type)!=="RD"&&F.push("End of playlist");R.n2(g.OM(F,R.ek));R.Z=g.C4(F,R.ek,R);F=R.ek("End of video");R.options[F]&&g.cN(R.options[F],R.U)};
SbN=function(R,F){var n=R.Z[F],V=n==="End of video"||n==="End of playlist";n==="Off"&&(R.T="");R.K.getPlayerState()!==0&&R.K.getPlayerState()!==5||!V?(R.J=F,g.j6.prototype.xS.call(R,F),R.hO(F),R.K.HG("onSleepTimerSettingsChanged",n)):R.K.HG("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})};
HB=function(R){pi.call(this,R);var F=this;R.addEventListener("settingsMenuInitialized",function(){F.menuItem||(F.menuItem=new cXJ(F.api,F.api.MX()),g.d(F,F.menuItem))});
R.addEventListener("openSettingsMenuItem",function(n){if(n==="menu_item_sleep_timer"){if(!F.menuItem){var V;(V=F.api.MX())==null||V.rW()}F.menuItem.open()}});
HK(R,"resetSleepTimerMenuSettings",function(){F.resetSleepTimerMenuSettings()});
HK(R,"setSleepTimerTimeLeft",function(n){F.setSleepTimerTimeLeft(n)});
HK(R,"setVideoTimeLeft",function(n){F.setVideoTimeLeft(n)})};
LbR=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);this.events.C(R,"onSnackbarMessage",function(n){switch(n){case 1:F.api.getPlayerStateObject().isBuffering()&&F.api.HG("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Experiencing interruptions?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Find out why"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",
webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},durationHintMs:5E3,popupType:"TOAST"}})}})};
g.WB=function(R,F,n,V,r){F=F===void 0?!1:F;V=V===void 0?!1:V;r=r===void 0?!1:r;g.fG.call(this);this.UZ=r;this.X=!1;this.J=new Ow(this);this.W=this.Z=null;this.N=this.U=!1;g.d(this,this.J);this.target=R;this.T=F;this.V=n||R;this.X=V;F&&(g.WI&&this.target.setAttribute("draggable","true"),r||(this.target.style.touchAction="none"));hX(this)};
uq=function(R){g.Kw(R.J,!R.T)};
hX=function(R){R.W=null;R.Z=null;R.C(BB("over"),R.NO);R.C("touchstart",R.IU);R.T&&R.C(BB("down"),R.ftG)};
sGv=function(R,F){for(var n=0;n<F.changedTouches.length;n++){var V=F.changedTouches[n];if(V.identifier===R.Z)return V}return null};
BB=function(R){return window.navigator.msPointerEnabled?"MSPointer"+R.charAt(0).toUpperCase()+R.substring(1):"mouse"+R};
gK=function(R){return R&&pB9?aE(R)||document:document};
XBR=function(R){pB9=R};
AX9=function(R,F){g.N.call(this,{j:"div",BG:["ytp-overlay","ytp-speedmaster-overlay"],L:[{j:"div",Y:"ytp-speedmaster-user-edu",L:[{j:"div",Y:"ytp-speedmaster-label",cG:F},{j:"div",Y:"ytp-speedmaster-icon",cG:"{{icon}}"}]}]});this.K=R;this.T=this.sZ("ytp-speedmaster-user-edu");this.updateValue("icon",b$J());g.z0(this.T,"ytp-speedmaster-has-icon");this.K.createClientVe(this.T,this,173040,!0);this.TZ()};
IG=function(R){pi.call(this,R);var F=this;this.J=this.N=!1;this.U=new g.AQ(R);g.d(this,this.U);this.UZ="2x";this.speedmasterUserEdu=new AX9(R,this.UZ);g.d(this,this.speedmasterUserEdu);g.RL(this.api,this.speedmasterUserEdu.element,4);this.T=new g.WB(this.api.fH().Ut,!0,null,!1,!0);g.d(this,this.T);this.delay=new g.ZK(this.lS,500,this);g.d(this,this.delay);this.U.C(R,"videodatachange",function(){Ob(F)},this);
this.U.C(R,"presentingplayerstatechange",function(){Ob(F)},this);
this.U.C(R,"autonavvisibility",function(){Ob(F)},this);
this.api.y6().subscribe("visibilitystatechange",function(){Ob(F)});
this.U.C(R,"rootnodemousedown",function(n){F.X=n});
this.B("web_speedmaster_spacebar_control")&&(this.U.C(R,"keyboardserviceglobalkeydown",function(n,V){F.Nq=V;aVV(F,n,V.Mm,!0)},this),this.U.C(R,"keyboardserviceglobalkeyup",function(n){aVV(F,n,!1,!1)},this))};
KN=function(R){R.delay.stop();R.T.unsubscribe("dragmove",R.Z,R);R.T.unsubscribe("dragend",R.W,R);R.N&&(R.N=!1,R.speedmasterUserEdu.TZ(),R.api.setPlaybackRate(R.jQ),R.api.showControls(),R.PG&&R.api.pauseVideo(),R.B("enable_smart_skip_speedmaster_on_web")&&R.api.publish("speedmasterchanged",!1))};
aVV=function(R,F,n,V){n||(V?F.keyCode!==32||F.repeat||R.N||!R.J||g.eI(R.delay):KN(R))};
Ob=function(R){var F,n;var V=!!R.UZ&&!((F=R.api.getVideoData())==null?0:F.isLivePlayback)&&!R.api.sY()&&R.api.getPresentingPlayerType()!==2&&!g.E(R.api.getPlayerStateObject(),2)&&!((n=g.KK(R.api))==null?0:n.SE())&&!R.api.isEmbedsShortsMode()&&b09(R.api.y6());R.J!==V&&(R.J=V,R.J?R.T.subscribe("dragstart",R.J1,R):(R.T.unsubscribe("dragstart",R.J1,R),R.T.unsubscribe("dragmove",R.Z,R),R.T.unsubscribe("dragend",R.W,R),KN(R)))};
TKR=function(R){pi.call(this,R);var F=this;this.U=new Set;this.T={};this.events=new g.AQ(R);g.d(this,this.events);this.events.C(R,"videodatachange",function(n){n==="newdata"&&(F.api.Bw("stationsEmbargo"),F.api.Bw("stationsMetadataUpdate"),F.T={},F.U.clear());n=F.api.getVideoData().vA;var V=n.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_AIRING_EMBARGO");V&&Cqj(F,V,"stationsEmbargo");(n=n.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_METADATA_UPDATE"))&&Cqj(F,n,"stationsMetadataUpdate")});
this.events.C(R,g.$A("stationsEmbargo"),function(n){F.api.S7(!0);var V,r=(V=F.T[n.id])!=null?V:[];V=g.m(r);for(r=V.next();!r.done;r=V.next())if(r=r.value.embargo)F.api.hideControls(),F.api.Rr("auth",2,sT(r.errorRenderer.reason),tQ({embargoed:1,id:n.id,idx:n.U,start:n.start})),(r=r.onTrigger)&&F.api.HG("innertubeCommand",r)});
this.events.C(R,g.$A("stationsMetadataUpdate"),function(n){var V;n=(V=F.T[n.id])!=null?V:[];V=g.m(n);for(n=V.next();!n.done;n=V.next())(n=n.value.command)&&F.api.HG("innertubeCommand",n)})};
Cqj=function(R,F,n){F=g.m(F);for(var V=F.next();!V.done;V=F.next()){V=V.value;var r=void 0,v=Number((r=V.playbackRelativePosition)==null?void 0:r.utcTimeMs)/1E3,f=void 0;r=v+Number((f=V.duration)==null?void 0:f.seconds);f="stations:"+n+":"+v;R.U.has(f)||(R.U.add(f),V.onEnter&&(R.T[f]=V.onEnter),R.api.addUtcCueRange(f,v,r,n,!1))}};
DV=function(R,F,n){g.v2.call(this,F,R);this.T=n};
g.iq=function(R){y4.call(this);var F=this;this.T=R;this.W={};this.listener=function(n){F.dispatchEvent(new DV(F,n.type,n))}};
yXV=function(R){var F=R.getVideoData(),n=R.LX(),V=n.Fs(),r=R.D(),v=R.Sk(),f=v.fz*8/1024,z=v.pz/1024,q=v.O4,Q=v.vp,c=v.O$,w=n.getCurrentTime().toFixed(2),L=n6(n.vB(),",",3),S="";if(F.isDaiEnabled()){F.enableServerStitchedDai&&(S+=F.jO?"DS":"SS");S=F.iZ()?S+"LIFA, ":S+"DAI, ";var p=v.Dx;p&&(S+=p)}cK(F)&&!F.iZ()&&(S+="LIFAE, ");MA(F)&&(S+="SABR, ");if(F.fetchType){switch(F.fetchType){case "onesie":p="o";break;case "gp":p="gp";break;default:p="gvi"}S+="vd:"+p+", "}(r=r.k5)&&(S=r.T?S+"wa, ":S+"w, ");S+=
"s:"+c+" t:"+w+" b:"+L+" ";n.isSeeking()&&(S+="S");n.isPaused()&&(S+="P");n.isEnded()&&(S+="E");R.isOrchestrationLeader()&&(S+=" L");(n=v.PC)&&(S+=" l:"+n.toFixed());n=v.currentTime;c=F.qE;n&&n>c.start&&n<c.end&&(S+=" as");n=S;S=g.Vb(UI)("_start",void 0);c=[];w=g.m(["pl_i","vir","or_p","orfb","pbs"]);for(L=w.next();!L.done;L=w.next())L=L.value,(r=g.Vb(UI)(L,void 0))&&S&&(r-=S,c.push(L+":"+Math.round(r)));S=c.join(" ");c=g.p9();w=g.eH(R).xq1;L=F.N&&!F.N.T?"display:none":"";if((r=F.clientPlaybackNonce)&&
r.length==16){r+="AAAA";p=0;for(var C="",y=0;y<20;y++)if(p=(p<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(r.charAt(y)),y%5==4){for(var u="",B=0;B<6;B++)u="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(p&31)+u,p>>=5;C+=u}r=C.substr(0,4)+" "+C.substr(4,4)+" "+C.substr(8,4)+" "+(C.substr(12,4)+" "+C.substr(16,4))}else r="";f={video_id_and_cpn:String(F.videoId)+" / "+r,codecs:"",dims_and_frames:"",bandwidth_kbps:f.toFixed(0)+" Kbps",buffer_health_seconds:q.toFixed(2)+" s",
date:""+(new Date).toString(),drm_style:Q?"":"display:none",drm:Q,debug_info:n,extra_debug_info:"",bandwidth_style:L,network_activity_style:L,network_activity_bytes:z.toFixed(0)+" KB",shader_info:w,shader_info_style:w?"":"display:none",playback_categories:""};z=V.clientWidth+"x"+V.clientHeight+(c>1?"*"+c.toFixed(2):"");q="-";v.totalVideoFrames&&(q=(v.droppedVideoFrames||0)+" dropped of "+v.totalVideoFrames);f.dims_and_frames=z+" / "+q;R=R.getVolume();z=RKR(F);var O;if((O=F.J)==null?0:O.audio.U)O=
"VB";else{var K;O=((K=F.J)==null?0:K.audio.T)?"DRC":Math.round(R*z)+"%"}K=Math.round(R)+"% / "+O;O=F.Rm.toFixed(1);isFinite(Number(O))&&(K+=" (content loudness "+O+"dB)");f.volume=K;f.resolution=V.videoWidth+"x"+V.videoHeight;if(V=F.U){if(K=V.video)O=K.fps,O>1&&(f.resolution+="@"+O),(O=v.SR)&&O.video&&(f.resolution+=" / "+O.video.width+"x"+O.video.height,O.video.fps>1&&(f.resolution+="@"+O.video.fps)),f.codecs=o3k(V),!F.J||V.audio&&V.video?V.E2&&(f.codecs+=" / "+V.E2+"A"):f.codecs+=" / "+o3k(F.J),
K.T||K.primaries?(O=K.T||"unknown",O==="smpte2084"?O+=" (PQ)":O==="arib-std-b67"&&(O+=" (HLG)"),f.color=O+" / "+(K.primaries||"unknown"),f.color_style=""):f.color_style="display:none";if(V.debugInfo)for(f.fmt_debug_info="",V=g.m(V.debugInfo),K=V.next();!K.done;K=V.next())K=K.value,f.fmt_debug_info+=K.label+":"+K.text+" ";f.fmt_debug_info_style=f.fmt_debug_info&&f.fmt_debug_info.length>0?"":"display:none"}V=F.isLivePlayback;K=F.Kl;f.live_mode_style=V||K?"":"display:none";f.live_latency_style=V?"":
"display:none";if(K)f.live_mode="Post-Live"+(xG(F)?" Manifestless":"");else if(V){K=v.E4;f.live_latency_secs=K.toFixed(2)+"s";V=xG(F)?"Manifestless, ":"";F.Xb&&(V+="Windowed, ");O="Uncertain";if(K>=0&&K<120)if(F.latencyClass&&F.latencyClass!=="UNKNOWN")switch(F.latencyClass){case "NORMAL":O="Optimized for Normal Latency";break;case "LOW":O="Optimized for Low Latency";break;case "ULTRALOW":O="Optimized for Ultra Low Latency";break;default:O="Unknown Latency Setting"}else O=F.isLowLatencyLiveStream?
"Optimized for Low Latency":"Optimized for Smooth Streaming";V+=O;(K=v.E$)&&(V+=", seq "+K.sequence);f.live_mode=V}!v.isGapless||hu(F)&&v.UF||(f.playback_categories+="Gapless ");f.playback_categories_style=f.playback_categories?"":"display:none";f.bandwidth_samples=v.Rv;f.network_activity_samples=v.rq;f.live_latency_samples=v.Nl;f.buffer_health_samples=v.OL;v=g.XY(F);if(F.cotn||v)f.cotn_and_local_media=(F.cotn?F.cotn:"null")+" / "+v;f.cotn_and_local_media_style=f.cotn_and_local_media?"":"display:none";
aq(F,"web_player_release_debug")?(f.release_name=t[29],f.release_style=""):f.release_style="display:none";f.debug_info&&S.length>0&&f.debug_info.length+S.length<=60?f.debug_info+=" "+S:f.extra_debug_info=S;f.extra_debug_info_style=f.extra_debug_info&&f.extra_debug_info.length>0?"":"display:none";return f};
o3k=function(R){var F=/codecs="([^"]*)"/.exec(R.mimeType);return F&&F[1]?F[1]+" ("+R.itag+")":R.itag};
x3=function(R,F,n,V,r){g.N.call(this,{j:"div",Y:"ytp-horizonchart"});this.Z=F;this.sampleCount=n;this.J=V;this.W=r;this.index=0;this.heightPx=-1;this.N=this.U=null;this.T=Math.round(R/n);this.element.style.width=this.T*this.sampleCount+"px";this.element.style.height=this.Z+"em"};
k3=function(R,F){if(R.heightPx===-1){var n=null;try{n=g.gu("CANVAS"),R.U=n.getContext("2d")}catch(z){}if(R.U){var V=R.T*R.sampleCount;R.N=n;R.N.width=V;R.N.style.width=V+"px";R.element.appendChild(R.N)}else for(R.sampleCount=Math.floor(R.sampleCount/4),R.T*=4,n=0;n<R.sampleCount;n++)V=g.gu("SPAN"),V.style.width=R.T+"px",V.style.left=R.T*n+"px",R.element.appendChild(V)}n=R.element.clientHeight||24;n!==R.heightPx&&(R.heightPx=n,R.U&&(n=(window.devicePixelRatio||1)>1?2:1,R.N.height=R.heightPx*n,R.N.style.height=
R.heightPx+"px",R.U.scale(1,n)));F=g.m(F);for(V=F.next();!V.done;V=F.next()){n=R;var r=R.index,v=V.value;for(V=0;V+2<n.J.length&&n.J[V+1]<v;)V++;v=Math.min(1,(v-n.J[V])/(n.J[V+1]-n.J[V]));if(n.U)n.U.fillStyle=n.W[V],n.U.fillRect(r*n.T,0,n.T,n.heightPx),n.U.fillStyle=n.W[V+1],n.U.fillRect(r*n.T,n.heightPx*(1-v),n.T,n.heightPx);else{r=n.element.children[r];var f=window.devicePixelRatio||1;v=Math.min(n.heightPx,Math.round(n.heightPx*v*f)/f)||0;r.style.height=v+"px";r.style.backgroundColor=n.W[V+1];r.style.borderTop=
"solid "+(n.heightPx-v)+"px "+n.W[V]}R.index=(R.index+1)%R.sampleCount}F=R.index;R.U?R.U.clearRect(F*R.T,0,R.T,R.heightPx):(R=R.element.children[F],R.style.height="0px",R.style.borderTop="")};
Y3=function(R){var F=null;F={j:"button",BG:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],S:{title:"close"},cG:"[X]"};g.N.call(this,{j:"div",BG:["html5-video-info-panel","ytp-sfn"],L:[F,{j:"div",BG:["html5-video-info-panel-content","ytp-sfn-content"],L:[{j:"div",L:[{j:"div",cG:"Video ID / sCPN"},{j:"span",cG:"{{video_id_and_cpn}}",Y:"ytp-sfn-cpn"}]},{j:"div",L:[{j:"div",cG:"Viewport / Frames"},{j:"span",cG:"{{dims_and_frames}}"}]},{j:"div",L:[{j:"div",cG:"Current / Optimal Res"},{j:"span",
cG:"{{resolution}}"}]},{j:"div",L:[{j:"div",cG:"Volume / Normalized"},{j:"span",cG:"{{volume}}"}]},{j:"div",L:[{j:"div",cG:"Codecs"},{j:"span",cG:"{{codecs}}"}]},{j:"div",S:{style:"{{shader_info_style}}"},L:[{j:"div",cG:"Shader Info"},{j:"span",cG:"{{shader_info}}"}]},{j:"div",S:{style:"{{color_style}}"},L:[{j:"div",cG:"Color"},{j:"span",cG:"{{color}}"}]},{j:"div",S:{style:"{{drm_style}}"},L:[{j:"div",cG:"Protected"},{j:"span",cG:"{{drm}}"}]},{j:"div",S:{style:"{{bandwidth_style}}"},L:[{j:"div",cG:"Connection Speed"},
{j:"span",L:[{j:"span",cG:"{{bandwidth_chart}}"},{j:"span",cG:"{{bandwidth_kbps}}"}]}]},{j:"div",S:{style:"{{network_activity_style}}"},L:[{j:"div",cG:"Network Activity"},{j:"span",L:[{j:"span",cG:"{{network_activity_chart}}"},{j:"span",cG:"{{network_activity_bytes}}"}]}]},{j:"div",L:[{j:"div",cG:"Buffer Health"},{j:"span",L:[{j:"span",cG:"{{buffer_health_chart}}"},{j:"span",cG:"{{buffer_health_seconds}}"}]}]},{j:"div",S:{style:"{{live_latency_style}}"},L:[{j:"div",cG:"Live Latency"},{j:"span",L:[{j:"span",
cG:"{{live_latency_chart}}"},{j:"span",cG:"{{live_latency_secs}}"}]}]},{j:"div",S:{style:"{{live_mode_style}}"},L:[{j:"div",cG:"Live Mode"},{j:"span",cG:"{{live_mode}}"}]},{j:"div",S:{style:"{{playback_categories_style}}"},L:[{j:"div",cG:"Playback Categories"},{j:"span",cG:"{{playback_categories}}"}]},{j:"div",S:{style:"{{fmt_debug_info_style}}"},L:[{j:"div",cG:"Format Debug Info"},{j:"span",cG:"{{fmt_debug_info}}"}]},{j:"div",L:[{j:"div",cG:"Mystery Text"},{j:"span",cG:"{{debug_info}}"}]},{j:"div",
S:{style:"{{extra_debug_info_style}}"},L:[{j:"div",cG:""},{j:"span",L:[{j:"span",cG:"{{extra_debug_info}}"}]}]},{j:"div",L:[{j:"div",cG:"Date"},{j:"span",cG:"{{date}}"}]},{j:"div",S:{style:"{{cotn_and_local_media_style}}"},L:[{j:"div",cG:"COTN / Local Media"},{j:"span",cG:"{{cotn_and_local_media}}"}]},{j:"div",S:{style:"{{release_style}}"},L:[{j:"div",cG:"Player Release"},{j:"span",cG:"{{release_name}}"}]}]}]});this.eQ=R;this.position=0;this.W=!0;F?this.C(this.sZ("ytp-sfn-close"),"click",this.hide):
this.C(this.element,"click",this.hide);R=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];F="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var n=R.map(function(V){return V/4});
this.X={};this.T=new x3(300,1,150,R,F);g.d(this,this.T);this.updateValue("bandwidth_chart",this.T);this.N=new x3(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.d(this,this.N);this.updateValue("live_latency_chart",this.N);this.U=new x3(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.d(this,this.U);this.updateValue("buffer_health_chart",this.U);this.Z=new x3(300,1,150,n,F);g.d(this,this.Z);this.updateValue("network_activity_chart",
this.Z);this.delay=new g.ZK(this.CH,500,this);g.d(this,this.delay);this.J=new g.ZK(this.V,2E4,this);g.d(this,this.J)};
HN_=function(R){pi.call(this,R);var F=this;HK(R,"getStatsForNerds",function(){return yXV(F.api)});
hg(R,"showVideoInfo",function(){Uf_(F,!0)});
hg(R,"hideVideoInfo",function(){Uf_(F,!1)});
hg(R,"isVideoInfoVisible",function(){return jG_(F)})};
Uf_=function(R,F){var n=jG_(R);R.Xh||(R.Xh=new Y3(R.api),g.d(R,R.Xh),g.RL(R.api,R.Xh.element,4));R.Xh.dg(F);var V=$M(R.api.WI());V&&V.loaded&&n!==F&&V.jG();F&&R.api.m2("sfn",{},!0)};
jG_=function(R){var F;return!((F=R.Xh)==null||!F.JJ)};
JX=function(){g.G.call(this);this.U=null;this.startTime=this.duration=0;this.delay=new g.bM(this.T,null,this);g.d(this,this.delay)};
hxR=function(R,F){if(F.j==="path")return F.S.d;if(F.L)for(var n=0;n<F.L.length;n++){var V=F.L[n];if(V&&typeof V!=="string"&&(V=hxR(R,V)))return V}};
mfI=function(R,F,n){n=hxR(R,n);var V=F.getElementsByTagName("path")[0],r=V.getAttribute("d");if(V.getAttribute("id")){var v=tn();F=F.getElementsByTagName("use");for(var f=0;f<F.length;f++)F[f].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+v);V.setAttribute("id",v)}var z=WbV(r),q=WbV(n);u7W(R,function(Q){V.setAttribute("d",BKJ(z,q,Q))},200)};
u7W=function(R,F,n){R.U=F;R.startTime=(0,g.h1)();R.duration=n;R.T()};
WbV=function(R){var F=[];R=R.match(g3E);for(var n=0;n<R.length;n++){var V=R[n]===" "?NaN:Number(R[n]);F.push(isNaN(V)?R[n]:V)}return F};
BKJ=function(R,F,n){for(var V="",r=0;r<R.length;r++){var v=R[r];V=typeof v==="number"?V+(v+(F[r]-v)*n):V+v}return V};
GO=function(R){g.N.call(this,{j:"button",BG:["ytp-size-button","ytp-button"],S:{title:R.B("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"t","data-priority":"9","data-title-no-tooltip":"{{data-title-no-tooltip}}"},cG:"{{icon}}"});this.api=R;this.ey=null;this.transition=new JX;g.d(this,this.transition);this.C(R,"sizestylechange",this.CH);this.C(R,"fullscreentoggled",this.CH);this.C(R,"presentingplayerstatechange",this.CH);R.createClientVe(this.element,
this,139116);this.CH();this.listen("click",this.onClick);dZ(R,this.element,this)};
ONE=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);this.events.C(R,"standardControlsInitialized",function(){F.button=new GO(R);g.d(F,F.button);R.hT(F.button,"RIGHT_CONTROLS_RIGHT")})};
iN9=function(R){pi.call(this,R);var F=this,n={};this.lS=(n.TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED=function(){return!1},n.TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK=function(V){return IVR(F,V)},n.TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK=function(V){return IVR(F,V)},n.TIMELY_ACTION_TRIGGER_TYPE_PLAYER_CONTROLS_SHOWN=function(){return F.api.D().experiments.GH("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")?F.W&&F.V:F.W&&F.X},n.TIMELY_ACTION_TRIGGER_TYPE_SPEEDMASTER=
function(){return F.jQ},n);
this.jQ=this.V=this.X=this.W=!1;this.J={};this.events=new g.AQ(R);g.d(this,this.events);this.Z=new g.WB(this.api.fH().Ut);g.d(this,this.Z);this.api.B("enable_smart_skip_web_player_bar_hover_length_threshold")&&g.Vn(this.api.D().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds")&&(n=g.Vn(this.api.D().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds"),this.Nq=new g.ZK(this.Ta,n,this),g.d(this,this.Nq));this.events.C(R,"videodatachange",function(V,r){if(V!=="dataupdated"||
r.videoId!==F.videoId||!vj(F.timelyActions,KbR(r)))F.onVideoDataChange(r)});
this.events.C(R,"presentingplayerstatechange",function(V){F.yB(V)});
R.B("enable_smart_skip_player_controls_shown_on_web")&&(this.events.C(R,"onShowControls",function(){F.W=!0;F.Ta()}),this.events.C(R,"onHideControls",function(){F.W=!1}),this.Z.subscribe("hoverstart",function(){F.X=!0;
F.Ta()},this),this.Z.subscribe("hoverend",function(){F.X=!1},this),R.B("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&(this.events.C(R,"progressBarHoverStart",function(){F.V=!0;
if(F.api.B("enable_smart_skip_web_player_bar_hover_length_threshold")){var V;(V=F.Nq)==null||g.eI(V)}else F.Ta()}),this.events.C(R,"progressBarHoverEnd",function(){F.V=!1;
if(F.api.B("enable_smart_skip_web_player_bar_hover_length_threshold")){var V;(V=F.Nq)==null||V.stop()}})));
R.B("enable_smart_skip_speedmaster_on_web")&&this.events.C(R,"speedmasterchanged",function(V){(F.jQ=V)&&F.Ta()});
this.events.C(R,g.$A("timelyAction"),function(V){F.onCueRangeEnter(V.getId())});
this.events.C(R,g.Pl("timelyAction"),function(V){F.onCueRangeExit(V.getId())});
R.B("web_enable_keyboard_shortcut_for_timely_actions")&&this.events.C(R,"keyboardserviceglobalkeydown",function(V,r){if((gj?V.altKey:V.ctrlKey)&&V.keyCode===39&&F.UZ&&F.T){var v;V=g.A((v=dK(F,F.T))==null?void 0:v.rendererContext,DfI);if(v=Dt(V==null?void 0:V.onTap))F.api.HG("innertubeCommand",v),r&&(r.CE=!0),r=T4(),(v=sdv(r))&&pl6(r,v)}},this);
this.U=new g.N({j:"div",BG:["ytp-player-content","ytp-timely-actions-content"]});this.U.hide();HK(R,"insertTimelyActionUi",function(V){F.U.element.children.length>0&&g.Ko(F.U.element);V.classList.add("ytp-timely-actions-overlay");F.U.element.appendChild(V)});
g.d(this,this.U);this.B("web_player_overlay_positioned_layout")?this.events.C(R,"basechromeinitialized",function(){F.api.B6(F.U.element,4,!0);F.U.element.setAttribute("data-overlay-order","10")}):g.RL(this.api,this.U.element,4)};
xfI=function(R){R.timelyActions&&(R.J=R.timelyActions.reduce(function(F,n){if(n.cueRangeId===void 0)return F;F[n.cueRangeId]=0;return F},{}))};
dK=function(R,F){if(R.timelyActions){R=g.m(R.timelyActions);for(var n=R.next();!n.done;n=R.next())if(n=n.value,n.cueRangeId===F)return n}};
kO6=function(R,F){if((R=dK(R,F))&&R.onCueRangeExit)return Dt(R.onCueRangeExit)};
IVR=function(R,F){return R.N===void 0?!1:F.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(F.seekLengthMilliseconds)===5E3?R.N===72:F.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(F.seekLengthMilliseconds)===1E4?R.N===74:F.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(F.seekLengthMilliseconds)===5E3?R.N===71:F.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(F.seekLengthMilliseconds)===1E4?R.N===73:!1};
YbN=function(R,F){var n=Number(F==null?void 0:F.maxVisibleDurationMilliseconds);n&&(Mf(R),R.J1=setTimeout(function(){if(R.T!==void 0&&(F==null?void 0:F.cueRangeId)===R.T){R.UZ=!1;var V=kO6(R,R.T);V&&R.api.HG("innertubeCommand",V)}},n))};
Mf=function(R){R.J1&&clearTimeout(R.J1);R.J1=void 0;R.UZ=!1};
KbR=function(R){if(R=R.getWatchNextResponse()){var F,n;R=(F=R.playerOverlays)==null?void 0:(n=F.playerOverlayRenderer)==null?void 0:n.timelyActionsOverlayViewModel;F=g.A(R,JXI);if(F!=null&&F.timelyActions)return F==null?void 0:F.timelyActions.map(function(V){return g.A(V,GOk)}).filter(function(V){return!!V})}};
dfN=function(R){pi.call(this,R);var F=this;hg(this.api,"getPlaybackRate",function(){return F.api.getPlaybackRate()});
hg(this.api,"setPlaybackRate",function(n){typeof n==="number"&&F.api.setPlaybackRate(n)})};
lq=function(R,F,n,V){yk.call(this,"Voice boost",g.BN.wz);this.K=R;this.N=F;this.U=n;this.getVoiceBoostState=V;this.T=!1;this.T9=this.K.B("html5_enable_new_audio_settings_menu")?R.MX().m_:R.MX();this.C(R,"onFilterAudioFeatures",this.v_);this.setIcon({j:"svg",S:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M11.48 2.14 3.91 6.68A6 6 0 0 0 1 11.83v.33a6 6 0 0 0 2.91 5.14l7.57 4.54A1 1 0 0 0 13 21V3a1.00 1.00 0 0 0-1.51-.85Zm6.88 2.07a1 1 0 0 0-.00 1.41 9 9 0 0 1 0 12.72 1 1 0 0 0 1.41 1.41 11 11 0 0 0 0-15.55 1 1 0 0 0-1.41 0ZM4.94 8.40l.00-.00L11 4.76v14.46l-6.05-3.63A4 4 0 0 1 3 12.16v-.33a4 4 0 0 1 1.94-3.42ZM15.53 7.05a1 1 0 0 0 0 1.41 5 5 0 0 1 0 7.07 1 1 0 0 0 1.41 1.41 6.99 6.99 0 0 0 0-9.9 1 1 0 0 0-1.41 0Z"}}]});
this.subscribe("select",this.J,this);this.v_()};
Nf=function(R){pi.call(this,R);var F=this;this.events=new g.AQ(R);g.d(this,this.events);var n=this.api.B("html5_enable_voice_boost");n&&this.events.C(R,"settingsMenuInitialized",function(){M6E(F)});
HK(this.api,"getVoiceBoostUserPreference",function(){return n?F.getVoiceBoostUserPreference():0});
HK(this.api,"setVoiceBoostUserPreference",function(r){n&&F.setVoiceBoostUserPreference(r)});
HK(this.api,"getVoiceBoostState",function(){return n?F.getVoiceBoostState():1});
var V;this.T=(V=YQf())!=null?V:0;this.updateEnvironmentData()};
M6E=function(R){R.menuItem||(R.menuItem=new lq(R.api,function(F){R.setVoiceBoostUserPreference(F)},function(){return R.getVoiceBoostUserPreference()},function(){return R.getVoiceBoostState()}),g.d(R,R.menuItem))};
lVR=function(R){R=R.rD();if(!R)return!1;R=g.zg(R).exp||"";return R.includes("xpv")||R.includes("xpe")};
NK9=function(R){R=g.m(g.Eb(R,!0));for(var F=R.next();!F.done;F=R.next())if(lVR(F.value))return!0;return!1};
E3W=function(R,F){R=g.m(g.Eb(R,!0));for(var n=R.next();!n.done;n=R.next())if(n=n.value,lVR(n)){var V={potc:"1",pot:F};n.url&&(n.url=ql(n.url,V))}};
$fv=function(R){return g.Y(function(F){if(F.T==1)return g.zv(F,2),g.k(F,R,4);if(F.T!=2)return g.Qz(F,0);g.cM(F);g.rq(F)})};
$3=function(R){pi.call(this,R);var F=this;this.useLivingRoomPoToken=!1;this.W=new g.pa;this.T=!1;this.Qc=null;this.X=!1;this.J=null;this.Z=!1;var n=R.D().getWebPlayerContextConfig();this.events=new g.AQ(R);g.d(this,this.events);this.events.C(R,"spsumpreject",function(r,v,f){F.Z=v;r&&F.X&&!F.J&&(F.B("html5_generate_content_po_token")&&f?F.Wq(f):F.B("html5_generate_session_po_token")&&Pqj(F));F.J||F.api.m2("stp",{s:+F.X,b:+F.Z})});
this.events.C(R,"poTokenVideoBindingChange",function(r){F.Wq(r)});
if(this.B("html5_web_po_on_demand_init"))var V=this.events.C(R,"videodatachange",function(r,v){v.qA&&!F.X&&(bNE(F),F.events.ZO(V))});
this.useLivingRoomPoToken=!(n==null||!n.useLivingRoomPoToken);R.addEventListener("csiinitialized",function(){F.Qc=R.Mc();F.B("html5_web_po_on_demand_init")?F.N=EnN():bNE(F)});
R.addEventListener("trackListLoaded",this.jy.bind(this));R.vP(this)};
bNE=function(R){var F=(R.B("html5_generate_session_po_token")||R.B("html5_generate_content_po_token"))&&!R.useLivingRoomPoToken;try{if(R.B("html5_use_shared_owl_instance"))ZNE(R);else if(F){R.Qc.R9("pot_isc");var n=g.Vn(R.api.D().experiments,"html5_webpo_kaios_defer_timeout_ms");n?(ex9(R),g.ak(function(){PB(R)},n)):R.B("html5_webpo_idle_priority_job")?(ex9(R),g.R8(g.n3(),function(){PB(R)})):PB(R)}}catch(V){V instanceof Error&&g.mq(V)}};
RhV=function(R){var F=mj(R.experiments,"html5_web_po_request_key");return F?F:g.ad(R)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"};
Fo9=function(R){var F=new W8e,n={},V=(n["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",n);return new oF(F,R,function(){return V})};
nYJ=function(R){return new y_(R)};
bq=function(R,F){R.B("html5_webpo_bge_ctmp")&&R.api.m2(F,{hwpo:!!R.U,hwpor:R.T})};
ZNE=function(R){var F,n;g.Y(function(V){if(V.T==1)return bq(R,"swpo_i"),ex9(R),ZV(R),g.k(V,wD(),2);if(V.T!=3)return F=V.U,bq(R,"swpo_co"),g.k(V,rN9(F),3);n=V.U;R.B("html5_web_po_token_disable_caching")||n.OR(150);R.U=n;bq(R,"swpo_cc");$fv(n.nL()).then(function(){R.T=!0;R.W.resolve();bq(R,"swpo_re")});
g.ak(function(){PB(R);bq(R,"swpo_si")},0);
g.rq(V)})};
rr_=function(R){var F=R.api.D(),n=RhV(F);n=Fo9(n);var V=n.zg.bind(n);n.zg=function(z){var q;return g.Y(function(Q){if(Q.T==1)return g.k(Q,V(z),2);q=Q.U;R.api.m2("itr",{});return Q.return(q)})};
try{var r=nYJ({W5:n,ZU:{maxAttempts:5},XR:{OF:"CLEn",disable:F.experiments.GH("html5_web_po_disable_remote_logging"),Je:unE(F.experiments),If:function(z){var q=VkR.get(z);q||(q=new $89(z),q=new dT(q),VkR.set(z,q));return q},
G9Z:R.B("wpo_dis_lfdms")?0:1E3},Re2:g.mq});var v=new Gj({c_:r,W5:n,onError:g.mq});$fv(v.nL()).then(function(){R.T=!0;R.W.resolve()});
R.B("html5_web_po_token_disable_caching")||v.OR(150);g.d(R,r);g.d(R,v);R.U=v}catch(z){g.mq(z);var f;(f=r)==null||f.dispose()}};
PB=function(R){var F=R.api.D();R.Qc.R9("pot_ist");R.U||rr_(R);R.B("html5_bandaid_attach_content_po_token")||(R.B("html5_generate_session_po_token")&&(ZV(R),Pqj(R)),F=g.Vn(F.experiments,"html5_session_po_token_interval_time_ms")||0,F>0&&(R.V=g.C$(function(){ZV(R)},F)),R.X=!0)};
ZV=function(R){var F,n,V,r;g.Y(function(v){if(!R.B("html5_generate_session_po_token")||R.useLivingRoomPoToken)return v.return();F=R.api.D();n=g.ew("EOM_VISITOR_DATA")||g.ew("VISITOR_DATA");V=F.o8?F.datasyncId:n;r=mj(F.experiments,"html5_mock_content_binding_for_session_token")||F.livingRoomPoTokenId||V;F.Ru=e6(R,r);g.rq(v)})};
e6=function(R,F){if(!R.U){if(R.N)try{return R.N(F)}catch(v){g.mq(v)}return""}try{R.Qc.R9(R.T?"pot_cms":"pot_csms");var n={IF:!0,Di:!0,wT:F};R.B("html5_web_po_token_disable_caching")||(n.Vw={Pl:F,gz:!0,Bg:!0});var V=R.U.Bd(n);R.Qc.R9(R.T?"pot_cmf":"pot_csmf");if(R.T){var r;(r=R.J)==null||r.resolve();R.J=null;R.Z&&(R.Z=!1,R.api.app.rX().yM(!1))}return V}catch(v){return g.mq(v),""}};
Pqj=function(R){R.U&&(R.J=new oi,R.W.promise.then(function(){R.Qc.R9("pot_if");ZV(R)}))};
ex9=function(R){R.N||(R.N=EnN())};
Ra=function(R){g.N.call(this,{j:"div",BG:["ytp-more-videos-button","ytp-button"],S:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},L:[{j:"div",Y:"ytp-more-videos-button-thumbnail"},{j:"span",Y:"ytp-more-videos-button-title",cG:"{{title}}"}]});this.K=R;this.U=this.sZ("ytp-more-videos-button-thumbnail");this.N=this.sZ("ytp-more-videos-button-title");this.T=new g.AQ(this);g.d(this,this.T);this.T.C(this.K,"videodatachange",this.Dq);this.Dq();this.listen("click",this.onClick);vYf(this,
0);this.hide()};
vYf=function(R,F){switch(F){case 2:F="Hide videos";var n="Hide recommendations grid";break;default:F="More videos",n="Show recommendations grid"}R.updateValue("title",F);R.element.ariaLabel=n;R.N.textContent=F};
g.FP=function(R,F,n){g.ws(R.element,"ytp-suggestion-set",!!F.videoId);var V=F.playlistId;n=F.BB(n?n:"mqdefault.jpg");var r=null,v=null;F instanceof PV&&(F.lengthText?(r=F.lengthText||null,v=F.xH||null):F.lengthSeconds&&(r=g.ot(F.lengthSeconds),v=g.ot(F.lengthSeconds,!0)));var f=!!V;V=f&&EP(V).type==="RD";var z=F instanceof PV?F.isLivePlayback:null,q=F instanceof PV?F.isUpcoming:null,Q=F.author,c=F.shortViewCount,w=F.publishedTimeText,L=[],S=[];Q&&L.push(Q);c&&(L.push(c),S.push(c));w&&S.push(w);n=
{title:F.title,author:Q,author_and_views:L.join(" \u2022 "),aria_label:F.ariaLabel||g.fy("Watch $TITLE",{TITLE:F.title}),duration:r,timestamp:v,url:F.n6(),is_live:z,is_upcoming:q,is_list:f,is_mix:V,background:n?"background-image: url("+n+")":"",views_and_publish_time:S.join(" \u2022 "),autoplayAlternativeHeader:F.q_};F instanceof $_&&(n.playlist_length=F.playlistLength);R.update(n)};
g.nz=function(R){var F=R.D(),n=g.Sl||g.EV?{style:"will-change: opacity"}:void 0,V=F.J,r=["ytp-modern-videowall-still"];F.U&&r.push("ytp-videowall-show-text");g.N.call(this,{j:"a",BG:r,S:{href:"{{url}}",target:V?F.UZ:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},L:[{j:"div",Y:"ytp-modern-videowall-still-image",S:{style:"{{background}}"},L:[{j:"span",Y:"ytp-modern-videowall-still-info-duration",cG:"{{duration}}"}]},{j:"span",Y:"ytp-modern-videowall-still-info",
S:{"aria-hidden":"true"},L:[{j:"span",Y:"ytp-modern-videowall-still-info-bg",L:[{j:"span",Y:"ytp-modern-videowall-still-info-content",S:n,L:[{j:"span",Y:"ytp-modern-videowall-still-info-title",cG:"{{title}}"},{j:"span",Y:"ytp-modern-videowall-still-info-author",cG:"{{author}}"},{j:"span",Y:"ytp-modern-videowall-still-view-count-and-date-info",cG:"{{views_and_publish_time}}"},{j:"span",Y:"ytp-modern-videowall-still-info-live",cG:"Live"}]}]}]},{j:"span",BG:["ytp-modern-videowall-still-listlabel-regular",
"ytp-modern-videowall-still-listlabel"],S:{"aria-hidden":"true"},L:[{j:"span",Y:"ytp-modern-videowall-still-listlabel-icon"},"Playlist",{j:"span",Y:"ytp-modern-videowall-still-listlabel-length",L:[" (",{j:"span",cG:"{{playlist_length}}"},")"]}]},{j:"span",BG:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],S:{"aria-hidden":"true"},L:[{j:"span",Y:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{j:"span",Y:"ytp-modern-videowall-still-listlabel-length",cG:" (50+)"}]}]});
this.suggestion=null;this.U=V;this.api=R;this.T=new g.AQ(this);g.d(this,this.T);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.T.C(R,"videodatachange",this.onVideoDataChange);R.createServerVe(this.element,this);this.onVideoDataChange()};
g.fRN=function(R,F){if(R.suggestion!==F){R.suggestion=F;var n=R.api.D(),V="hqdefault.jpg";F.BB("sddefault.jpg")&&(V="sddefault.jpg");g.FP(R,F,V);g.Pp(n)&&!R.api.B("web_player_log_click_before_generating_ve_conversion_params")&&(n=F.n6(),V={},g.u4(R.api,"addEmbedsConversionTrackingParams",[V]),n=g.DI(n,V),R.updateValue("url",n));(F=(F=F.sessionData)&&F.itct)&&R.api.setTrackingParams(R.element,F)}};
tkN=function(R,F){var n=R.B("web_player_use_more_videos_button");g.N.call(this,{j:"div",BG:["ytp-fullscreen-grid"],L:[{j:"div",Y:"ytp-fullscreen-grid-hover-overlay",S:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-70"}},{j:"div",Y:"ytp-fullscreen-grid-buttons-container",L:n?[]:[{j:"button",BG:["ytp-fullscreen-grid-expand-button","ytp-button"],S:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}",
"data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-10"},L:["{{icon}}"]}]},{j:"div",Y:"ytp-fullscreen-grid-main-content",L:[{j:"div",Y:"ytp-fullscreen-grid-stills-container"}]}]});this.player=R;this.stills=[];this.videoData=null;this.currentState=0;this.Z=n;this.J1=this.player.B("web_player_use_external_grid_component");(this.lS=this.player.B("web_player_enable_horizontal_endscreen_shelf"))&&g.z0(this.player.getRootNode(),"ytp-enable-horizontal-endscreen-shelf");
this.J=this.sZ("ytp-fullscreen-grid-main-content");this.Nq=this.sZ("ytp-fullscreen-grid-stills-container");this.V=this.sZ("ytp-fullscreen-grid-buttons-container");this.Z&&(this.W=new Ra(this.player),this.V.appendChild(this.W.element),g.d(this,this.W),this.C(this.W.element,"click",this.g5));this.J1&&(this.Nq.style.display="none");this.X=new g.AQ(this);g.d(this,this.X);this.jQ=F;if(this.J&&this.Nq){if(R=this.sZ("ytp-fullscreen-grid-hover-overlay"))this.C(R,"click",this.g5),dZ(this.player,R,this);!this.Z&&
(R=this.sZ("ytp-fullscreen-grid-expand-button"))&&(this.C(R,"click",this.g5),dZ(this.player,R,this));if(R=this.player.getVideoData({playerType:1}))this.videoData=R;this.player.createClientVe(this.J,this,223051);this.X.C(this.player,"videodatachange",this.onVideoDataChange)}};
zhv=function(R,F){var n="",V=g.Mj(R.player,"More videos","v");F===2?n="Hide videos":F===1&&(n="More videos");R.element.setAttribute("title",V);R.element.setAttribute("data-title-no-tooltip",n);R.element.setAttribute("aria-label",n);if(F=R.sZ("ytp-fullscreen-grid-hover-overlay"))F.setAttribute("title",V),F.setAttribute("data-title-no-tooltip",n),F.setAttribute("aria-label",n);!R.Z&&(F=R.sZ("ytp-fullscreen-grid-expand-button"))&&(F.setAttribute("title",V),F.setAttribute("data-title-no-tooltip",n),F.setAttribute("aria-label",
n));R.player.Ew()};
Qa9=function(R){pi.call(this,R);var F=this;this.Z=this.T=this.N=0;this.V=null;this.X=this.W=0;this.isEnded=!1;this.Nq=null;var n=new g.AQ(R);g.d(this,n);this.jQ=g.Vn(this.api.D().experiments,"web_player_default_peeking_px");this.Mq=this.api.B("delhi_modern_player_enable_pause_peeking");this.bS=g.Vn(this.api.D().experiments,"delhi_modern_player_pause_thumbnail_percentage");this.Y5=this.api.B("web_player_imax_theater_mode");this.J=this.api.B("web_player_enable_fullscreen_grid_components");this.PG=this.api.B("web_player_enable_more_videos_button");
this.lS=this.api.B("web_player_use_external_grid_component");g.z0(this.api.getRootNode(),"ytp-grid-scrollable");n.C(R,"fullscreentoggled",function(){VT(F)});
n.C(R,"videodatachange",function(){if(F.J){var V=F.api.getVideoData({playerType:1});F.videoData!==V&&F.N===2&&(g.Qj(F.api.getRootNode(),"ytp-grid-scrolling"),r9(F,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));F.videoData=V}},this);
n.C(R,"sizestylechange",function(){F.J&&VT(F)});
HK(this.api,"setFullscreenQuickActions",function(V){F.setFullscreenQuickActions(V)});
HK(this.api,"setPlayerOverlayVideoDetailsRenderer",function(V){F.setPlayerOverlayVideoDetailsRenderer(V)});
this.lS&&HK(this.api,"setFullscreenGrid",function(V){F.setFullscreenGrid(V)});
HK(this.api,"setCommentsButton",function(V){F.setCommentsButton(V)});
HK(this.api,"setDescriptionButton",function(V){F.setDescriptionButton(V)});
this.J&&q0k(this,n,R)};
q0k=function(R,F,n){F.C(n,"keyboardserviceglobalkeydown",function(V,r){R.J&&V.keyCode===86&&!V.repeat&&R.N!==0&&(r&&(r.WK=!0),R.O9("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))});
F.C(R.api.getRootNode(),"wheel",function(V){if(!R.Nq){var r;if(R.J&&(r=R.U)!=null&&r.element&&!g.E(R.api.getPlayerStateObject(),2)&&R.N!==0&&vR(R))if(g.z0(R.api.getRootNode(),"ytp-grid-scrolling"),R.W===0&&(R.W=window.innerHeight),R.N===1)R.W!==0&&(R.T+=V.deltaY/R.W,R.T=g.vI(R.T,0,.7),fz(R),crj(R,R.X/R.W+R.T>=.7,2));else if(R.N===2){r=V.deltaY<0;var v,f,z=((f=(v=R.U)==null?void 0:v.J)==null?void 0:f.scrollTop)===0;v=R.T!==0;r&&z||v&&!r?R.W!==0&&(R.T=Math.max(0,R.T-V.deltaY/R.W),fz(R),crj(R,R.X/R.W+
Math.abs(R.T)>=.7,1)):R.T!==0&&(R.T=0,fz(R))}}},R,!0);
F.C(n,"standardControlsInitialized",function(){if(!R.U){R.U=new tkN(R.api,R.F2G.bind(R));R.PG&&(R.UZ=new Ra(R.api),g.d(R,R.UZ),R.UZ.element.setAttribute("data-overlay-order","12"),R.api.B6(R.UZ.element,4),R.UZ.listen("click",R.O9,R));g.d(R,R.U);var V=R.api.getRootNode().querySelector(".ytp-chrome-bottom");V&&V.parentNode&&V.parentNode.insertBefore(R.U.element,V.nextSibling);wRV(R)}});
F.C(n,"presentingplayerstatechange",function(){tr(R)});
F.C(n,"autonavvisibility",function(){tr(R)});
R.api.y6().subscribe("visibilitystatechange",function(){tr(R)});
S0R(R,R.N)};
crj=function(R,F,n){R.V&&clearTimeout(R.V);R.T===0&&g.Qj(R.api.getRootNode(),"ytp-grid-scrolling");F?LoI(R,n):R.T<.1&&(R.V=window.setTimeout(function(){LoI(R)},1E3))};
LoI=function(R,F){R.V&&(clearTimeout(R.V),R.V=null);R.W=0;R.J&&R.N!==0&&(F?r9(R,F):Math.abs(R.T)>=.15&&R.O9("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),R.T=0,fz(R),g.Qj(R.api.getRootNode(),"ytp-grid-scrolling"))};
vR=function(R){return R.api.isFullscreen()||R.Y5&&R.api.ey()};
VT=function(R){var F=vR(R);g.ws(R.api.getRootNode(),"ytp-full-bleed-player",F);R.J1&&g.av(R.J1,F);R.playerOverlayVideoDetailsRenderer&&g.av(R.playerOverlayVideoDetailsRenderer,F);R.J&&tr(R)};
tr=function(R){if(R.J)if(g.Qj(R.api.getRootNode(),"ytp-grid-scrolling"),R.api.getPresentingPlayerType()===2||R.api.sY()||R.api.isMinimized())r9(R,0);else{var F=g.E(R.api.getPlayerStateObject(),2);if(F)r9(R,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(R.isEnded&&!F){var n=vR(R)?1:0;R.isEnded=F;r9(R,n)}else vR(R)?R.N!==2&&r9(R,1):r9(R,0);R.isEnded=F}};
r9=function(R,F,n){R.N=F;var V;(V=R.U)==null||V.nX(F,n);var r;(r=R.UZ)==null||r.nX(F);R.T=0;fz(R);S0R(R,F)};
S0R=function(R,F){var n=R.api.getRootNode();g.ws(n,"ytp-fullscreen-grid-peeking",F===1);g.ws(n,"ytp-fullscreen-grid-active",F===2);F===1&&wRV(R)};
wRV=function(R){var F=R.api.getRootNode();if(g.E(R.api.getPlayerStateObject(),256)||g.E(R.api.getPlayerStateObject(),32)||g.E(R.api.getPlayerStateObject(),16))var n=R.X;else if(R.Mq&&R.api.getPlayerStateObject().isPaused()){var V;n=(((V=R.U)==null?void 0:V.element.clientWidth)||0)*.5625/3*R.bS||R.jQ}else n=R.jQ;R.X=n;F.style.setProperty("--ytp-grid-peek-height",R.X+"px");g.ws(F,"ytp-disable-bottom-gradient",R.X<=12&&R.Z===0)};
fz=function(R){R.T===0&&R.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0");requestAnimationFrame(function(){var F=R.T-R.Z,n=F;R.T!==0&&(n=g.vI(F,-.01,.01));R.Z+=n;R.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+R.Z.toString());R.Z!==R.T&&fz(R)})};
sav=function(R){pi.call(this,R);var F=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.AQ(R);g.d(this,this.events);this.events.C(R,"heartbeatRequest",function(n){if(F.freePreviewUsageDetails.length||F.freePreviewWatchedDuration!==null)n.heartbeatRequestParams||(n.heartbeatRequestParams={}),n.heartbeatRequestParams.unpluggedParams||(n.heartbeatRequestParams.unpluggedParams={}),F.freePreviewUsageDetails.length>0?n.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails=
F.freePreviewUsageDetails:n.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+F.freePreviewWatchedDuration}});
HK(R,"setFreePreviewWatchedDuration",function(n){F.freePreviewWatchedDuration=n});
HK(R,"setFreePreviewUsageDetails",function(n){F.freePreviewUsageDetails=n})};
zs=function(R){g.G.call(this);this.features=[];var F=this.T,n=new n0(R),V=new Xp(R),r=new tX(R),v=new $3(R);var f=g.Xi(R.D())?void 0:new EY(R);var z=new fN(R),q=new HN_(R),Q=new dfN(R),c=new F9(R);var w=g.Xi(R.D())?new sav(R):void 0;var L;var S=(L=R.D().getWebPlayerContextConfig())!=null&&L.cinematicSettingsAvailable?new d$(R):void 0;L=new Rl(R);var p=R.B("enable_courses_player_overlay_purchase")?new uxJ(R):void 0;var C=g.Xk(R.D())?new j09(R):void 0;var y=new $1(R);var u=R.D().J?new aWe(R):void 0;
var B=g.Pp(R.D())?new AIV(R):void 0;var O=R.B("web_player_move_autonav_toggle")&&R.D().uZ?new Q0I(R):void 0;var K=g.Xk(R.D())?new Q3N(R):void 0;var M=R.B("web_enable_speedmaster")&&g.Xk(R.D())?new IG(R):void 0;var J=R.D().mz?void 0:new ONE(R);var b=R.B("report_pml_debug_signal")?new NvN(R):void 0;var RJ=new y5W(R),Fj=new cB(R);var fW=g.Dz(R.D())?new x7W(R):void 0;var SE=navigator.mediaSession&&window.MediaMetadata&&R.D().YI?new V3(R):void 0;var nW=R.B("html5_enable_drc")&&!R.D().Z?new NJ(R):void 0;
var CW=new Ci(R);var b9=g.Xk(R.D())?new ZPf(R):void 0;var fq=new zO(R);var vM=g.Xk(R.D())&&R.B("web_sleep_timer")?new HB(R):void 0;var l9=g.Pp(R.D())?new Tme(R):void 0;R.B("mweb_debug_sticky_settings");var ge=new Ub(R);var bU=new wWf(R),Ov=new z$I(R);var W=R.B("enable_sabr_snackbar_message")?new LbR(R):void 0;var P_=R.B("web_enable_timely_actions")?new iN9(R):void 0;var tx=new MJ(R);var Zr,v_;var uU=((Zr=R.D())==null?0:(v_=Zr.getWebPlayerContextConfig())==null?0:v_.enableFullscreenComponentsFeature)?
new Qa9(R):void 0;Zr=new Nf(R);v_=R.B("web_player_loop_settings_menu")&&R.D().tG?new qe6(R):void 0;var U=g.Xi(R.D())?void 0:new Ai(R);var Vf=new OPN(R),w7=new k1(R),K4=new U7I(R),Q1=new tiI(R);var Uv=g.Xk(R.D())&&R.D().B("delhi_modern_web_player")?new LVj(R):void 0;var OR=R.D().N?void 0:new bQ6(R);F.call(this,n,V,r,v,f,z,q,Q,c,w,S,L,p,C,y,u,B,O,K,M,J,b,RJ,Fj,fW,void 0,SE,nW,CW,void 0,b9,fq,vM,l9,void 0,ge,bU,Ov,void 0,W,P_,tx,uU,Zr,void 0,v_,void 0,U,Vf,w7,K4,Q1,Uv,OR,new TKR(R),new bF(R))};
pRW=function(){this.U=this.T=NaN};
XRI=function(R,F){this.G=R;this.timerName="";this.N=!1;this.U=NaN;this.J=new pRW;this.T=F||null;this.N=!1};
Ark=function(R,F,n){var V=g.n9(F.Qz)&&!F.Qz.Z;if(F.Qz.Zl&&(Z0(F.Qz)||F.Qz.jQ==="shortspage"||yw(F.Qz)||V)&&!R.N){R.N=!0;R.Z=F.clientPlaybackNonce;g.ew("TIMING_ACTION")||ZJ("TIMING_ACTION",R.G.csiPageType);R.G.csiServiceName&&ZJ("CSI_SERVICE_NAME",R.G.csiServiceName);if(R.T){V=R.T.Mc();for(var r=g.m(Object.keys(V)),v=r.next();!v.done;v=r.next())v=v.value,uj(v,V[v],R.timerName);V=g.Vb(h8V)(R.T.IX);g.B8(V,R.timerName);V=R.T;V.T={};V.IX={}}g.B8({playerInfo:{visibilityState:g.Vb(H3J)()},playerType:"LATENCY_PLAYER_HTML5"},
R.timerName);R.W!==F.clientPlaybackNonce||Number.isNaN(R.U)||(gV("_start",R.timerName)?n=g.Vb(UI)("_start",R.timerName)+R.U:g.mq(new g.UR("attempted to log gapless pbs before CSI timeline started",{cpn:F.clientPlaybackNonce})));!n||gV("pbs",R.timerName)||F.rR||qE(R,n)}};
qE=function(R,F,n){uj("pbs",F!=null?F:(0,g.h1)(),n!=null?n:R.timerName)};
QT=function(R){i3_();DxI();R.timerName=""};
aRI=function(R){if(R.T){var F=R.T;F.T={};F.IX={}}R.N=!1;R.W=void 0;R.U=NaN};
CKE=function(R,F){g.fG.call(this);this.Qz=R;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.Su={};this.U=0;if(R=F.session_data)this.sessionData=vC(R,"&");this.index=Math.max(0,Number(F.index)||0);this.loop=!!F.loop;this.startSeconds=Number(F.startSeconds)||0;this.title=F.playlist_title||"";this.description=F.playlist_description||"";this.author=
F.author||F.playlist_author||"";F.video_id&&(this.items[this.index]=F);if(R=F.api)typeof R==="string"&&R.length===16?F.list="PL"+R:F.playlist=R;if(R=F.list)switch(F.listType){case "user_uploads":this.listId=new NA("UU","PLAYER_"+R);break;default:var n=F.playlist_length;n&&(this.length=Number(n)||0);this.listId=EP(R);if(R=F.video)this.items=R.slice(0),this.loaded=!0}else if(F.playlist){R=F.playlist.toString().split(",");this.index>0&&(this.items=[]);R=g.m(R);for(n=R.next();!n.done;n=R.next())(n=n.value)&&
this.items.push({video_id:n});this.length=this.items.length;if(R=F.video)this.items=R.slice(0),this.loaded=!0}this.setShuffle(!!F.shuffle);if(R=F.suggestedQuality)this.quality=R;this.Su=k_(F,"playlist_");this.N=(F=F.thumbnail_ids)?F.split(","):[]};
T9R=function(R){return!!(R.playlist||R.list||R.api)};
oYV=function(R){var F=R.index+1;return F>=R.length?0:F};
yrj=function(R){var F=R.index-1;return F<0?R.length-1:F};
g.cR=function(R,F,n,V){F=F!==void 0?F:R.index;F=R.items&&F in R.items?R.items[R.order[F]]:null;var r=null;F&&(n&&(F.autoplay="1"),V&&(F.autonav="1"),r=new g.sr(R.Qz,F),g.d(R,r),r.Ow=!0,r.startSeconds=R.startSeconds||r.clipStart||0,R.listId&&(r.playlistId=R.listId.toString()));return r};
UER=function(R,F){R.index=g.vI(F,0,R.length-1);R.startSeconds=0};
jaN=function(R,F){if(F.video&&F.video.length){R.title=F.title||"";R.description=F.description;R.views=F.views;R.likes=F.likes;R.dislikes=F.dislikes;R.author=F.author||"";var n=F.loop;n&&(R.loop=n);n=g.cR(R);R.items=[];for(var V=g.m(F.video),r=V.next();!r.done;r=V.next())if(r=r.value)r.video_id=r.encrypted_id,R.items.push(r);R.length=R.items.length;(F=F.index)?R.index=F:R.findIndex(n);R.setShuffle(!1);R.loaded=!0;R.U++;R.T&&R.T()}};
Woj=function(R,F){var n,V,r,v,f,z,q;return g.Y(function(Q){if(Q.T==1){n=g.nV();var c=R.D(),w={context:g.U6(R),playbackContext:{contentPlaybackContext:{ancestorOrigins:c.ancestorOrigins}}},L=c.getWebPlayerContextConfig();if(L==null?0:L.encryptedHostFlags)w.playbackContext.contentPlaybackContext.encryptedHostFlags=L.encryptedHostFlags;if(L==null?0:L.hideInfo)w.playerParams={showinfo:!1};L=c.embedConfig;var S=R.MD;var p=F.docid||F.video_id||F.videoId||F.id;if(!p){p=F.raw_embedded_player_response;if(!p){var C=
F.embedded_player_response;C&&(p=JSON.parse(C))}if(p){var y,u,B,O,K,M;p=((M=g.A((y=p)==null?void 0:(u=y.embedPreview)==null?void 0:(B=u.thumbnailPreviewRenderer)==null?void 0:(O=B.playButton)==null?void 0:(K=O.buttonRenderer)==null?void 0:K.navigationEndpoint,g.oo))==null?void 0:M.videoId)||null}else p=null}y=(y=p)?y:void 0;u=R.playlistId?R.playlistId:F.list;B=F.listType;if(u){var J;B==="user_uploads"?J={username:u}:J={playlistId:u};Hzv(L,S,y,F,J,c.experiments);w.playlistRequest=J}else F.playlist?
(J={templistVideoIds:F.playlist.toString().split(",")},Hzv(L,S,y,F,J,c.experiments),w.playlistRequest=J):y&&(J={videoId:y},S&&c.B("embeds_enable_per_video_embed_config")?J.serializedThirdPartyEmbedConfig=S:L&&(J.serializedThirdPartyEmbedConfig=L),w.singleVideoRequest=J);V=w;r=g.Fy(hhk);g.zv(Q,2);return g.k(Q,g.ij(n,V,r),4)}if(Q.T!=2)return v=Q.U,f=R.D(),F.raw_embedded_player_response=v,f.PG=Lw(F,g.Pp(f)),f.N=f.PG==="EMBEDDED_PLAYER_MODE_PFL",v&&(z=v,z.trackingParams&&UT(z.trackingParams)),Q.return(new g.sr(f,
F));q=g.cM(Q);q instanceof Error||(q=Error("b259802748"));g.uX(q);return Q.return(R)})};
Hzv=function(R,F,n,V,r,v){V.index&&(r.playlistIndex=String(Number(V.index)+1));r.videoId=n?n:"";F&&v.GH("embeds_enable_per_video_embed_config")?r.serializedThirdPartyEmbedConfig=F:R&&(r.serializedThirdPartyEmbedConfig=R)};
g.Sk=function(R,F){w9.get(R);w9.set(R,F)};
g.Lz=function(R){g.fG.call(this);this.loaded=!1;this.player=R};
uPe=function(){this.U=[];this.T=[]};
g.Eb=function(R,F){return F?R.T.concat(R.U):R.T};
g.s0=function(R,F){switch(F.kind){case "asr":B9k(F,R.U);break;default:B9k(F,R.T)}};
B9k=function(R,F){g.$$(F,function(n){return R.equals(n)})||F.push(R)};
g.pz=function(R){g.G.call(this);this.eQ=R;this.T=new uPe;this.N=null;this.W=[];this.V=[]};
g.mER=function(R,F){var n;return F.D().B("html5_use_hls_native_captions")&&g.A1&&R.Zt()&&!((n=R.U)==null||!$Q(n))};
g.XP=function(R,F,n){g.pz.call(this,R);this.videoData=F;this.audioTrack=n;this.U=null;this.J=!1;this.W=F.b2;this.V=F.zV;this.J=g.tg(F)};
g.gY_=function(R,F){var n;return R.D().B("safari_live_drm_captions_fix")&&((n=R.getVideoData())==null?0:n.iX())?!1:g.Xi(R.D())&&!F.isManifestless};
g.Ar=function(R,F){return el(R.info.mimeType)?F?R.info.itag===F:!0:!1};
g.Ozv=function(R,F){if(R.T!=null&&g.gY_(F,R.T)&&R.T.T.rawcc!=null)return!0;if(!R.Zt())return!1;F=!!R.T&&R.T.isManifestless&&Object.values(R.T.T).some(function(n){return g.Ar(n,"386")});
R=!!R.T&&!R.T.isManifestless&&g.Mlj(R.T);return F||R};
g.aa=function(R,F,n,V,r,v){g.pz.call(this,R);this.videoId=n;this.Kz=r;this.eventId=v;this.Z={};this.U=null;R=V||g.zg(F).hl||"";R=R.split("_").join("-");this.J=ql(F,{hl:R})};
IRN=function(R,F,n){n=n===void 0?"":n;g.G.call(this);var V=this;this.K=R;this.W=F;this.N=n;this.IX={};this.T={};this.U=null;this.J=new Set;this.Z=new g.AQ(this);this.hJ={iS1:function(){return V.W},
UfG:function(){return V.N}};
this.X=this.K.B("web_player_defer_modules");this.A7=new Map;g.d(this,this.Z);this.Z.C(R,"videodatachange",this.onVideoDataChange)};
KoE=function(R,F){R.U=F};
g.Cz=function(R){return R.A7.get("captions")};
JrR=function(R,F){switch(F){case "ad":return DE9(R);case "annotations_module":return R.K.isEmbedsShortsMode()?R=!1:(F=R.K,R=F.D(),F=F.getVideoData(),R=R.N||F.ll||R.controlsType==="3"?!1:R.bS.isEmpty()&&R.playerStyle!=="annotation-editor"&&R.playerStyle!=="live-dashboard"?!!F.Sa||!!g.rZ(F)||!!g.vK(F):!0),R;case "asmjs":return Ts(R);case "creatorendscreen":return izI(R);case "embed":return g.Pp(R.K.D());case "endscreen":return g.xER(R);case "heartbeat":return R.Vk();case "kids":return qA(R.K.D());case "remote":return R.K.D().xw;
case "miniplayer":return R.K.D().showMiniplayerUiWhenMinimized;case "offline":return R.K.D().hD;case "captions":return ks6(R);case "unplugged":return g.Vw(R.K.D());case "ux":return R.K.D().SQ;case "webgl":return Y0E(R);case "ypc":return R.EH();default:return g.uX(Error("Module descriptor "+F+" does not match")),!1}};
oa=function(R,F,n,V,r){var v;n=n===void 0?!1:n;V=V===void 0?!1:V;var f=R.A7.get(F);if(!f||V)if(r||(r=function(){oa(R,F,n,V)}),v||(v=function(){yT(R,F)}),f=f||GsE(R,F,JrR(R,F),r,v))R.A7.set(F,f),f.create(),R.K.publish("modulecreated",F),n&&R.K.t7("onApiChange")};
MkV=function(R){var F=F===void 0?!1:F;var n,V,r,v,f;return g.Y(function(z){if(z.T==1)return(n=R.A7.get("asmjs"))&&!F?z.return(n):(V=w9.get("asmjs"))!=null?(r=V,z.wX(2)):g.k(z,new Promise(function(q,Q){dEN(R,"asmjs",function(){var c=w9.get("asmjs");c?q(c):Q("cannot load module asmjs")},Q)}),3);
z.T!=2&&(r=z.U);v=r;if(!v)return z.return(Promise.reject("cannot load module asmjs"));f=new v(R.K);R.A7.set("asmjs",f);f.create();return z.return(f)})};
EYN=function(R){lRJ(R)&&R.fI();N9J(R)&&(oa(R,"captions",!0),oa(R,"endscreen"),R.CK(),oa(R,"creatorendscreen",!0))};
yT=function(R,F){F=g.m($EW[F]);for(var n=F.next();!n.done;n=F.next())R.K.wK(n.value)};
N9J=function(R){var F=R.K.getVideoData(),n=R.X&&!F.isInlinePlaybackNoAd;R.K.B("html5_defer_modules_on_ads_only")&&!F.isAd()&&(n=!1);return n};
lRJ=function(R){R=R.K.getVideoData();var F;if(F=R.B("web_player_defer_ad")){if(g.Rz(R.D0,"ad")||k_v(R)||R.enableServerStitchedDai)R=!1;else{F=R.playerResponse;R=R.startSeconds;var n=F==null?void 0:F.adPlacements;if(F=n){F=Number.MAX_VALUE;n=g.m(n);for(var V=n.next();!V.done;V=n.next())if(V=V.value.adPlacementRenderer){var r=void 0,v=(r=V.config)==null?void 0:r.adPlacementConfig;r=void 0;if(((r=v)==null?void 0:r.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var f=r=void 0;v=Number((r=v)==null?void 0:(f=
r.adTimeOffset)==null?void 0:f.offsetStartMilliseconds)||0;f=r=void 0;V=Number(((r=V.renderer)==null?void 0:(f=r.adBreakServiceRenderer)==null?void 0:f.prefetchMilliseconds)||0);V=v-V;V<F&&(F=V)}}F=F-5E3<=R*1E3}R=F?!1:!0}F=R}return F};
ks6=function(R){var F=R.K.getVideoData();return g.mER(F,R.K)||!!F.YF||!!F.captionTracks.length||g.Ozv(F,R.K)};
g.xER=function(R){var F=R.K.D();if(F.N||yw(F)||F.Z||!F.Yy&&!F.NP)return!1;var n=R.K.getPresentingPlayerType();if(n===2||n===3)return!1;R=R.K.getVideoData();if(!R)return!1;n=!R.isLiveDefaultBroadcast||F.B("allow_poltergust_autoplay");n=R.isLivePlayback&&(!F.B("allow_live_autoplay")||!n);F=R.isLivePlayback&&F.B("allow_live_autoplay_on_mweb");return!n||F};
g.ZU=function(R){return R.A7.get("webgl")};
Y0E=function(R){var F=R.K.getVideoData();R=R.K.D();var n=g.Phf(),V=R.B("enable_spherical_kabuki"),r=g.o$(R);if(g.nK(F))return n||V||r;if(g.Rq(F))return r||n||V;if(g.FY(F))return r||n||!1;if(g.Ju(F))return r||!1;n=F.U&&F.U.video&&F.U.video.isHdr();return r&&!g.MF(F)&&!n&&R.B("enable_webgl_noop")};
DE9=function(R){if(R.K.D().N)return!1;if(R=R.K.getVideoData({playerType:1}).getPlayerResponse()){var F=R.adPlacements;if(F)for(var n=0;n<F.length;n++)if(F[n].adPlacementRenderer)return!0;if(R.adSlots)return!0}return!1};
izI=function(R){if(R.K.isEmbedsShortsMode())return!1;R=R.K;var F=R.D();if(F.N)return!1;var n;if(((n=F.getWebPlayerContextConfig())==null?0:n.embedsEnableEmc3ds)||F.controlsType==="3")return!1;if(F.playerStyle==="creator-endscreen-editor")return!0;n=R.getVideoData();return!!n&&(!!g.PD6(n)||!!g.bB9(n))};
GsE=function(R,F,n,V,r){try{if(n){var v=w9.get(F);if(v)return new v(R.K);dEN(R,F,V,r)}else yT(R,F)}catch(f){yT(R,F),g.uX(f)}return null};
U0=function(R,F,n){for(var V=g.m(PKN),r=V.next();!r.done;r=V.next()){r=r.value;var v=R.A7.get(r);v&&(n||v.yu(F))&&(g.Cv(v),R.A7.delete(r))}R.K.publish("modulesDestroyed",F)};
jk=function(R){return R.A7.get("ad")};
bzW=function(R){if(qA(R.K.D()))return R.A7.get("kids")};
$M=function(R){if(R.K.D().xw)return R.A7.get("remote")};
g.HR=function(R){if(g.Vw(R.K.D()))return R.A7.get("unplugged")};
hKe=function(R){if(R.K.D().SQ)return R.A7.get("ux")};
Zz6=function(R){if(R.K.D().showMiniplayerUiWhenMinimized)return R.A7.get("miniplayer")};
hr=function(R){if(R.K.D().hD)return R.A7.get("offline")};
g.WR=function(R){return R.A7.get("annotations_module")};
uK=function(R){return R.A7.get("creatorendscreen")};
eh6=function(R){var F,n;return g.Y(function(V){if(V.T==1)return g.k(V,MkV(R),2);n=F=V.U;return V.return(n)})};
RGE=function(R){return fQ(function(){var F;return(F=R.A7.get("asmjs"))!=null?F:eh6(R)})};
Ts=function(R){return R.K.D().B("html5_allow_asmjs")||R.K.D().rg().T.pH(FUf)};
dEN=function(R,F,n,V){if(R.W){var r=ndV[F];F=R.W+r;R.N&&(F+="?cb="+R.N);VyE(R,F,function(){R.J.add(r);n.call(R)},V)}};
VyE=function(R,F,n,V){function r(){R.Zo()||V.call(R)}
function v(){R.Zo()||n.call(R)}
for(var f=g.oE("SCRIPT"),z=!1,q,Q=0;Q<f.length;Q++){var c=f[Q];if(c.src===F||c.getAttribute("data-original-src")===F)q=c}q||(q=g.gu("SCRIPT"),q.setAttribute("data-original-src",F),z=!0);var w=q.onload;q.onload=function(C){H2(v);w&&w.apply(window,[C])};
var L=q.onerror;q.onerror=function(C){if(Math.random()<.01){var y=new g.UR("Unable to load player module",F,document.location&&document.location.origin);g.uX(y)}H2(r);L&&L(C)};
var S=q,p=S.onreadystatechange;S.onreadystatechange=function(C){switch(S.readyState){case "loaded":case "complete":H2(v)}p&&p(C)};
z&&((f=R.K.D().cspNonce)&&q.setAttribute("nonce",f),g.k6(q,g.m3(F)),f=g.oE("HEAD")[0]||document.body,f.insertBefore(q,f.firstChild),R.addOnDisposeCallback(function(){q.parentNode&&q.parentNode.removeChild(q)}))};
rGN=function(R,F,n,V,r,v){g.fG.call(this);var f=this;this.target=R;this.api=F;this.KK=n;this.U=0;this.Z=!1;this.J=new g.z5(NaN,NaN);this.T=new g.AQ(this);this.lS=this.N=this.X=null;g.d(this,this.T);F=r||v?g.Vn(this.api.D().experiments,"web_player_touch_idle_wait_time_ms",4E3):g.Vn(this.api.D().experiments,"web_player_mouse_idle_wait_time_ms",3E3);this.UZ=new g.ZK(function(){BR(f,1,!1)},F,this);
g.d(this,this.UZ);this.Nq=new g.ZK(function(){BR(f,2,!1)},F,this);
g.d(this,this.Nq);this.J1=new g.ZK(function(){BR(f,2048,!1)},F,this);
g.d(this,this.J1);this.jQ=new g.ZK(function(){BR(f,512,!1)},F,this);
g.d(this,this.jQ);this.PG=3E3;r||(this.N=this.T.C(R,"mouseover",this.NO),this.T.C(R,"mousemove",this.wv),this.T.C(R,"mouseleave",this.OCG));this.api.B("web_player_enable_fullscreen_grid_components")&&this.T.C(R,"wheel",this.TG2,this,!0);t_?this.T.C(R,"keypress",this.snG):this.T.C(R,"focusin",this.le);this.W=this.T.C(R,"mousedown",this.cj);this.V=this.T.C(R,"touchstart",this.ov,void 0,!0);BR(this,640,!0)};
vdk=function(R){BR(R,4,!1);R.X&&(R.T.ZO(R.X),R.X=null,R.N=R.T.C(R.target,"mouseover",R.NO));R.N&&(R.T.ZO(R.N),R.N=R.T.C(R.target,"mouseover",R.NO))};
mo=function(R){return R.api.B("allow_autohide_on_paused_videos")?!(R.U&-129):!R.U};
BR=function(R,F,n){R.Zo();var V=mo(R);n?(R.U|=F,F&1&&R.UZ.start(),F&2&&R.Nq.start(),F&2048&&R.J1.start()):(R.U&=~F,F&1&&R.UZ.stop(),F&2&&R.Nq.stop(),F&2048&&R.J1.stop(),F&512&&R.jQ.stop());R.U&512&&!(R.U&128)&&g.eI(R.jQ,R.PG);F=mo(R);V!==F&&R.publish("autohideupdate",F)};
g.O0=function(R){g.N.call(this,{j:"button",BG:["ytp-large-play-button","ytp-button"],S:{"aria-label":"Play",title:"Play"},L:["{{largePlayButtonChildren}}"]});this.api=R;this.C(R,"videodatachange",this.CH);this.C(R,"basechromeinitialized",this.dXG);R=this.api.D();R.X&&g9&&(this.listen("click",this.QGG,this),this.listen("touchstart",this.Hm2,this));g.n9(R)&&g.z0(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.CH()};
g.Ia=function(R){var F=["ytp-cued-thumbnail-overlay"];R.D().Z&&F.push("ytp-exp-contain-thumbnail");g.N.call(this,{j:"div",BG:F,L:[{j:"div",Y:"ytp-cued-thumbnail-overlay-image"}]});F=this.sZ("ytp-cued-thumbnail-overlay");var n=new g.O0(R);g.d(this,n);n.KH(F);this.U=new g.AQ(this);g.d(this,this.U);this.api=R;this.J=this.sZ("ytp-cued-thumbnail-overlay-image");this.N=n;this.fade=new g.n5(this,250);g.d(this,this.fade);this.T=new g.ZK(this.CH,0,this);g.d(this,this.T);this.CH();this.C(R,"appresize",this.G9);
this.C(R,"presentingplayerstatechange",this.onStateChange);this.C(R,"ypcStateChanged",this.l7X);Z0(R.D())&&this.C(R,"videoplayerreset",this.onReset)};
g.Kz=function(R){g.N.call(this,{j:"div",BG:["ytp-error"],S:{role:"alert"},L:[{j:"div",Y:"ytp-error-content",L:[{j:"div",Y:"ytp-error-icon-container",L:[{j:"svg",S:{fill:"#fff",viewBox:"0 0 48 48"},L:[{j:"path",S:{d:"M0 0h48v48H0V0z",fill:"none"}},{j:"path",S:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{j:"div",Y:"ytp-error-content-wrap",
L:[{j:"div",Y:"ytp-error-content-wrap-reason",cG:"{{content}}"},{j:"div",Y:"ytp-error-content-wrap-subreason",cG:"{{subreason}}"}]}]}]});this.api=R;this.keys=[];this.N=!1;R.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.JJ)};
g.DR=function(R){R=R.split(fdk);for(var F=[],n=0;n<R.length;n+=3){var V=R[n++].split("\n");F.push(V[0]);for(var r=1;r<V.length;r++)F.push({j:"br"}),F.push(V[r]);n<R.length&&F.push({j:"a",S:{href:R[n],target:R[n+1]},cG:R[n+2]})}return{j:"span",L:F}};
xY=function(R,F,n,V,r,v,f){V=V===void 0?!1:V;r=r===void 0?!1:r;f=f===void 0?!0:f;r||(r=R.api.D().J);var z=R.api.getVideoData();F=g.fy(g.iK[F]||"",V?{CPN:z.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);V=[];v&&V.push({j:"h2",cG:v});V.push(F[0]);f&&V.push({j:"br"});V.push({j:"a",S:{href:n,target:r?"_blank":null},Y:"ytp-error-link",cG:F[2]});R.N=!0;V.push(F[4]);return{j:"span",L:V}};
tyN=function(R,F){for(var n=R.element.getElementsByTagName("a"),V=0;V<n.length;V++){var r=R.C(n[V],"click",F);R.keys.push(r)}};
zG_=function(R){for(var F=0;F<R.keys.length;F++)R.ZO(R.keys[F]);R.keys=[]};
qcE=function(R){g.N.call(this,{j:"div",BG:["ytp-overlays-container"],L:[{j:"div",Y:"ytp-overlay-top-left"},{j:"div",Y:"ytp-overlay-top-right"},{j:"div",Y:"ytp-overlay-bottom-left"},{j:"div",Y:"ytp-overlay-bottom-right"}]});this.N=this.sZ("ytp-overlay-top-left");this.J=this.sZ("ytp-overlay-top-right");this.T=this.sZ("ytp-overlay-bottom-left");this.U=this.sZ("ytp-overlay-bottom-right");g.RL(R,this.element,4)};
kY=function(R,F,n,V){for(var r=Number(F.getAttribute("data-overlay-order"))||0,v=0,f=null,z=g.m(n.children),q=z.next();!q.done;q=z.next()){q=q.value;if(V&&q.classList.contains("ytp-overlay-inline-container")){f=q;break}if(r<(Number(q.getAttribute("data-overlay-order"))||0))break;v++}f?kY(R,F,f,!1):V?(R=document.createElement("div"),R.classList.add("ytp-overlay-inline-container"),R.setAttribute("data-overlay-order",""+r),f=R,f.appendChild(F),DT(n,f,v)):DT(n,F,v)};
Qnj=function(R){var F={};g.N.call(this,{j:"div",Y:"ytp-paid-content-overlay",S:(F["aria-live"]="assertive",F["aria-atomic"]="true",F["data-overlay-order"]="5",F)});this.K=R;this.videoId=null;this.N=!1;this.innertubeCommand=this.Ll=this.T=null;F=R.D();R.B("enable_new_paid_product_placement")&&!g.C9(F)?(this.U=new g.N({j:"a",Y:"ytp-paid-content-overlay-link",S:{href:"{{href}}",target:"_blank"},L:[{j:"div",Y:"ytp-paid-content-overlay-indicator"},{j:"div",Y:"ytp-paid-content-overlay-icon",cG:"{{icon}}"},
{j:"div",Y:"ytp-paid-content-overlay-text",cG:"{{text}}"},{j:"div",Y:"ytp-paid-content-overlay-chevron",cG:"{{chevron}}"}]}),this.C(this.U.element,"click",this.onClick)):this.U=new g.N({j:"div",BG:["ytp-button","ytp-paid-content-overlay-text"],cG:"{{text}}"});this.fade=new g.n5(this.U,250,!1,100);g.d(this,this.U);this.U.KH(this.element);g.d(this,this.fade);this.K.createServerVe(this.element,this);this.C(R,"videodatachange",this.onVideoDataChange);this.C(R,"presentingplayerstatechange",this.Fj)};
wyj=function(R,F){var n=K1E(F),V=DV6(F);if(!F.Zn||!R.K.xb())if(R.T||R.K.B("enable_paid_content_overlay_bugfix")){if(F.videoId&&F.videoId!==R.videoId){var r;(r=R.T)==null||g.FK(r);!R.K.B("enable_paid_content_overlay_bugfix")||n&&V?(R.videoId=F.videoId,R.N=!!V,R.N&&n&&cGV(R,V,n,F)):R.N=!1}}else n&&V&&!R.K.B("enable_paid_content_overlay_bugfix")&&cGV(R,V,n,F)};
cGV=function(R,F,n,V){R.T&&R.T.dispose();R.T=new g.ZK(R.nC,F,R);g.d(R,R.T);V=lt(V);F=V==null?void 0:V.navigationEndpoint;var r;V=V==null?void 0:(r=V.icon)==null?void 0:r.iconType;var v;r=(v=g.A(F,g.is))==null?void 0:v.url;R.K.setTrackingParams(R.element,(F==null?void 0:F.clickTrackingParams)||null);F&&!r?(R.innertubeCommand=F,r="#!"):R.innertubeCommand=null;var f;R.U.update({href:(f=r)!=null?f:"#",text:n,icon:V==="MONEY_HAND"?{j:"svg",S:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},
L:[{j:"path",S:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
fill:"white"}}]}:null,chevron:r||R.innertubeCommand?g.An():null})};
ScW=function(R,F){R.T&&(g.E(F,8)&&R.N?(R.N=!1,R.rW(),R.T.start()):(g.E(F,2)||g.E(F,64))&&R.videoId&&(R.videoId=null))};
YY=function(R){g.N.call(this,{j:"div",Y:"ytp-spinner",L:[WN(),{j:"div",Y:"ytp-spinner-message",cG:"If playback doesn't begin shortly, try restarting your device."}]});this.api=R;this.message=this.sZ("ytp-spinner-message");this.T=new g.ZK(this.show,500,this);g.d(this,this.T);this.C(R,"presentingplayerstatechange",this.onStateChange);this.C(R,"playbackstalledatstart",this.U);this.nX(R.getPlayerStateObject())};
Jr=function(R){var F=[{j:"div",BG:["ytp-unmute-icon"],L:[{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{j:"div",BG:["ytp-unmute-text"],cG:"Tap to unmute"}];F.push({j:"div",BG:["ytp-unmute-box"],L:[]});ti.call(this,R,{j:"button",BG:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],L:[{j:"div",Y:"ytp-unmute-inner",L:F}]},100);this.T=this.clicked=!1;this.api=R;this.api.createClientVe(this.element,this,51663);this.C(R,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.C(R,"presentingplayerstatechange",this.yB);this.listen("click",this.onClick,this);R=R.isMutedByMutedAutoplay()&&
!g.Pp(this.api.D());this.dg(R);R&&LUe(this);this.U=R};
LUe=function(R){R.T||(R.T=!0,R.api.logVisibility(R.element,!0))};
g.Gs=function(R){g.AQ.call(this);var F=this;this.api=R;this.xm=!1;this.w$=null;this.uT=!1;this.Km=null;this.xM=this.P3=!1;this.Fr=this.Kd=null;this.G8=NaN;this.l$=this.gi=!1;this.nh=0;this.fO=[];this.Qs=!1;this.Nn={height:0,width:0};this.Nj=480;this.U6G=["ytp-player-content","html5-endscreen","ytp-overlay"];this.fb={Oy:!1};this.II=null;var n=R.D(),V=R.fH();this.Nn=R.getPlayerSize();this.qx=new g.ZK(this.wh,0,this);g.d(this,this.qx);n.disableOrganicUi||(this.Gy=new g.Ia(R),g.d(this,this.Gy),g.RL(R,
this.Gy.element,4));this.api.B("web_player_overlay_positioned_layout")&&(this.II=new qcE(this.api),g.d(this,this.II));if(snJ(this)){var r=new YY(R);g.d(this,r);r=r.element;g.RL(R,r,4)}var v=R.getVideoData();this.Ck=new rGN(V,R,function(z){return F.KK(z)},v,n.zy,!1);
g.d(this,this.Ck);this.Ck.subscribe("autohideupdate",this.d0,this);mo(this.Ck);if(!n.disablePaidContentOverlay){var f=new Qnj(R);g.d(this,f);this.II?this.II.B6(f.element,g.C9(n)?3:1):g.RL(R,f.element,4)}this.tY=new Jr(R);g.d(this,this.tY);g.RL(this.api,this.tY.element,2);this.LU=this.api.isMutedByMutedAutoplay();this.C(R,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.Q$=new g.ZK(this.sC,200,this);g.d(this,this.Q$);this.Es=v.videoId;this.eg=new g.ZK(function(){F.nh=0},350);
g.d(this,this.eg);this.RX=new g.ZK(function(){F.l$||pyW(F)},350,this);
g.d(this,this.RX);v=R.getRootNode();v.setAttribute("aria-label","YouTube Video Player");switch(n.color){case "white":g.z0(v,"ytp-color-white")}this.C(R,"appresize",this.G9);this.C(R,"presentingplayerstatechange",this.yB);this.C(R,"videodatachange",this.onVideoDataChange);this.C(R,"videoplayerreset",this.z6Z);this.C(R,"autonavvisibility",function(){F.zv()});
this.C(R,"sizestylechange",function(){F.zv()});
this.C(V,"click",this.MJq,this);this.C(V,"dblclick",this.nkX,this);this.C(V,"mousedown",this.eqo,this);n.aG&&(this.C(V,"gesturechange",this.YYX,this),this.C(V,"gestureend",this.X_2,this));this.zX=[V.Ut];this.Gy&&this.zX.push(this.Gy.element);r&&this.zX.push(r);this.api.B("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(V.element,this,247482),this.api.logVisibility(V.element,!0))};
XyE=function(R,F){if(!F)return!1;var n=R.api.LX();if(n.Ik()&&(n=n.Fs())&&g.xW(n,F))return n.controls;for(n=0;n<R.zX.length;n++)if(g.xW(R.zX[n],F))return!1;n=g.m(R.U6G);for(var V=n.next();!V.done;V=n.next())if(g.t$(F,V.value))return!1;return F===R.api.getRootNode()?!1:!0};
AGj=function(R){var F=R.api.getPresentingPlayerType()===2&&(R.api.fH().pJ||R.api.D().disableOrganicUi)&&R.api.D().U&&g9&&lk>=11;R=R.api.D().X&&g9;return!(!F&&!R)};
d9=function(R,F){return!R.api.isInline()&&!XyE(R,ml(F))&&g.y2(F)};
pyW=function(R){R.Ck.K7();if(R.P3&&R.xM)R.xM=!1;else if(!R.api.D().Y5&&!R.EJ()){var F=R.api.getPlayerStateObject();g.E(F,2)&&g.Nj(R.api)||R.yf(F);!R.api.D().aG||F.isCued()||g.E(F,1024)?R.sC():R.Q$.isActive()?(R.hk(),R.Q$.stop()):R.Q$.start()}};
adN=function(R,F){var n;if((n=R.api.getVideoData())==null?0:n.mutedAutoplay){var V,r;if((V=F.target)==null?0:(r=V.className)==null?0:r.includes("ytp-info-panel"))return!1}return g.y2(F)&&R.api.isMutedByMutedAutoplay()?(R.api.unMute(),R.api.getPresentingPlayerType()===2&&R.api.playVideo(),F=R.api.getPlayerStateObject(),!g.E(F,4)||g.E(F,8)||g.E(F,2)||R.sC(),!0):!1};
Cv9=function(R,F,n){R.api.isFullscreen()?n<1-F&&R.api.toggleFullscreen():n>1+F&&R.api.toggleFullscreen()};
snJ=function(R){var F=$i()&&lx()>=67&&!R.api.D().X;R=R.api.D().disableOrganicUi;return!g.E2("tizen")&&!Nr&&!F&&!R};
g.ME=function(R){g.N.call(this,{j:"div",L:[{j:"div",Y:"ytp-bezel-text-wrapper",L:[{j:"div",Y:"ytp-bezel-text",cG:"{{title}}"}]},{j:"div",Y:"ytp-bezel",S:{role:"status","aria-label":"{{label}}"},L:[{j:"div",Y:"ytp-bezel-icon",cG:"{{icon}}"}]}]});this.K=R;this.U=new g.ZK(this.show,10,this);R=this.K.B("delhi_modern_web_player")?1E3:500;this.T=new g.ZK(this.hide,R,this);g.d(this,this.U);g.d(this,this.T);this.hide()};
NE=function(R,F,n){if(F<=0){n=ma();F="muted";var V=0}else n=n?{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,S:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,S:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
fill:"#fff"}}]},V=Math.floor(F),F=V+"volume";lK(R,n,F,V+"%")};
TUE=function(R,F){F=F?{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{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"}}]}:b$J();var n=R.K.getPlaybackRate(),V=g.fy("Speed is $RATE",{RATE:String(n)});lK(R,F,V,n+"x")};
od_=function(R,F){F=F?"Subtitles/closed captions on":"Subtitles/closed captions off";lK(R,$46(R.K),F)};
lK=function(R,F,n,V){V=V===void 0?"":V;R.updateValue("label",n===void 0?"":n);R.updateValue("icon",F);g.FK(R.T);R.U.start();R.updateValue("title",V);g.ws(R.element,"ytp-bezel-text-hide",!V)};
yGJ=function(R,F){g.N.call(this,{j:"button",BG:["ytp-button","ytp-cards-button"],S:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.Pp(R.D()))},L:[{j:"span",Y:"ytp-cards-button-icon-default",L:[{j:"div",Y:"ytp-cards-button-icon",L:[R.D().B("player_new_info_card_format")?eqN():{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{j:"div",Y:"ytp-cards-button-title",cG:"Info"}]},{j:"span",Y:"ytp-cards-button-icon-shopping",L:[{j:"div",Y:"ytp-cards-button-icon",L:[{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",Y:"ytp-svg-shadow",S:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{j:"path",Y:"ytp-svg-fill",S:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{j:"path",Y:"ytp-svg-shadow-fill",S:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{j:"div",
Y:"ytp-cards-button-title",cG:"Shopping"}]}]});this.K=R;this.U=F;this.T=null;this.fade=new g.n5(this,250,!0,100);g.d(this,this.fade);g.ws(this.U,"ytp-show-cards-title",g.Pp(R.D()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.ud(!0)};
U_9=function(R,F){g.N.call(this,{j:"div",Y:"ytp-cards-teaser",L:[{j:"div",Y:"ytp-cards-teaser-box"},{j:"div",Y:"ytp-cards-teaser-text",L:R.D().B("player_new_info_card_format")?[{j:"button",Y:"ytp-cards-teaser-info-icon",S:{"aria-label":"Show cards","aria-haspopup":"true"},L:[eqN()]},{j:"img",Y:"ytp-cards-teaser-channel-avatar",S:{alt:"","aria-hidden":"true"}},{j:"span",Y:"ytp-cards-teaser-label",cG:"{{text}}"},{j:"button",Y:"ytp-cards-teaser-close-button",S:{"aria-label":"Close"},L:[g.ah()]}]:[{j:"span",
Y:"ytp-cards-teaser-label",cG:"{{text}}"}]}]});var n=this;this.K=R;this.gV=F;this.fade=new g.n5(this,250,!1,250);this.T=null;this.Z=new g.ZK(this.Qr2,300,this);this.W=new g.ZK(this.A0z,2E3,this);this.J=[];this.N=null;this.X=new g.ZK(function(){n.element.style.margin="0"},250);
this.onClickCommand=this.U=null;g.d(this,this.fade);g.d(this,this.Z);g.d(this,this.W);g.d(this,this.X);R.D().B("player_new_info_card_format")?(g.z0(R.getRootNode(),"ytp-cards-teaser-dismissible"),this.C(this.sZ("ytp-cards-teaser-close-button"),"click",this.K1),this.C(this.sZ("ytp-cards-teaser-info-icon"),"click",this.JY),this.C(this.sZ("ytp-cards-teaser-label"),"click",this.JY)):this.listen("click",this.JY);this.C(F.element,"mouseover",this.QW);this.C(F.element,"mouseout",this.AB);this.C(R,"cardsteasershow",
this.ajG);this.C(R,"cardsteaserhide",this.nC);this.C(R,"cardstatechange",this.oB);this.C(R,"presentingplayerstatechange",this.oB);this.C(R,"appresize",this.SC);this.C(R,"onShowControls",this.SC);this.C(R,"onHideControls",this.aR);this.listen("mouseenter",this.BR)};
jne=function(R){g.N.call(this,{j:"button",BG:[E0.BUTTON,E0.TITLE_NOTIFICATIONS],S:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},L:[{j:"div",Y:E0.TITLE_NOTIFICATIONS_ON,S:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},L:[g.rLR()]},{j:"div",Y:E0.TITLE_NOTIFICATIONS_OFF,S:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},L:[{j:"svg",S:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},L:[{j:"path",S:{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=R;this.T=!1;R.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")};
HUv=function(R,F){R.T=F;R.element.classList.toggle(E0.NOTIFICATIONS_ENABLED,R.T);var n=R.api.getVideoData();n?(F=F?n.tT:n.ZS)?(R=R.api.i_())?Da(R,F):g.uX(Error("No innertube service available when updating notification preferences.")):g.uX(Error("No update preferences command available.")):g.uX(Error("No video data when updating notification preferences."))};
WU_=function(R,F,n){var V=V===void 0?800:V;var r=r===void 0?600:r;var v=document.location.protocol;R=wEV(v+"//"+R+"/signin?context=popup","feature",F,"next",v+"//"+location.hostname+"/post_login");hGR(R,n,V,r)};
hGR=function(R,F,n,V){n=n===void 0?800:n;V=V===void 0?600:V;if(R=g.Ie(window,R,"loginPopup","width="+n+",height="+V+",resizable=yes,scrollbars=yes"))lAW(function(){F()}),R.moveTo((screen.width-n)/2,(screen.height-V)/2)};
g.$Y=function(R,F,n,V,r,v,f,z,q,Q,c,w){R=R.charAt(0)+R.substring(1).toLowerCase();n=n.charAt(0)+n.substring(1).toLowerCase();if(F==="0"||F==="-1")F=null;if(V==="0"||V==="-1")V=null;var L=c.D(),S=L.userDisplayName&&g.n9(L);g.N.call(this,{j:"div",BG:["ytp-button","ytp-sb"],L:[{j:"div",Y:"ytp-sb-subscribe",S:S?{title:c.D().B("player_tooltip_data_title_killswitch")?g.fy("Subscribe as $USER_NAME",{USER_NAME:L.userDisplayName}):"","data-tooltip-title":g.fy("Subscribe as $USER_NAME",{USER_NAME:L.userDisplayName}),
"aria-label":"Subscribe to channel","data-tooltip-image":UP(L),"data-tooltip-opaque":String(g.Pp(L)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},L:[{j:"div",Y:"ytp-sb-text",L:[{j:"div",Y:"ytp-sb-icon"},R]},F?{j:"div",Y:"ytp-sb-count",cG:F}:""]},{j:"div",Y:"ytp-sb-unsubscribe",S:S?{title:c.B("player_tooltip_data_title_killswitch")?g.fy("Subscribed as $USER_NAME",{USER_NAME:L.userDisplayName}):"","data-tooltip-title":g.fy("Subscribed as $USER_NAME",{USER_NAME:L.userDisplayName}),
"aria-label":"Unsubscribe to channel","data-tooltip-image":UP(L),"data-tooltip-opaque":String(g.Pp(L)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},L:[{j:"div",Y:"ytp-sb-text",L:[{j:"div",Y:"ytp-sb-icon"},n]},V?{j:"div",Y:"ytp-sb-count",cG:V}:""]}],S:{"aria-live":"polite"}});var p=this;this.channelId=f;this.K=c;this.N=w;var C=this.sZ("ytp-sb-subscribe"),y=this.sZ("ytp-sb-unsubscribe");v&&g.z0(this.element,"ytp-sb-classic");if(r){z?this.T():this.U();var u=function(){if(L.lS){var O=
p.channelId;if(q||Q){var K={c:O};var M;g.uW.isInitialized()&&(M=WOV(K));K=M||"";if(M=c.getVideoData())if(M=M.subscribeCommand){var J=c.i_();J?(Da(J,M,{botguardResponse:K,feature:q}),c.HG("SUBSCRIBE",O)):g.uX(Error("No innertube service available when updating subscriptions."))}else g.uX(Error("No subscribe command in videoData."));else g.uX(Error("No video data available when updating subscription."))}y.focus();y.removeAttribute("aria-hidden");C.setAttribute("aria-hidden","true")}else WU_(g.wg(p.K.D()),
"sb_button",p.J)},B=function(){var O=p.channelId;
if(q||Q){var K=c.getVideoData();Da(c.i_(),K.unsubscribeCommand,{feature:q});c.HG("UNSUBSCRIBE",O)}C.focus();C.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")};
this.C(C,"click",u);this.C(y,"click",B);this.C(C,"keypress",function(O){O.keyCode===13&&u(O)});
this.C(y,"keypress",function(O){O.keyCode===13&&B(O)});
this.C(c,"SUBSCRIBE",this.T);this.C(c,"UNSUBSCRIBE",this.U);this.N&&S&&(K$f(c),dZ(c,C,this),dZ(c,y,this))}else g.z0(C,"ytp-sb-disabled"),g.z0(y,"ytp-sb-disabled")};
m_v=function(R){g.N.call(this,{j:"div",Y:"ytp-title-channel",L:[{j:"div",Y:"ytp-title-beacon"},{j:"a",Y:"ytp-title-channel-logo",S:{href:"{{channelLink}}",target:R.D().UZ,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{j:"div",Y:"ytp-title-expanded-overlay",S:{"aria-hidden":"{{flyoutUnfocusable}}"},L:[{j:"div",Y:"ytp-title-expanded-heading",L:[{j:"div",Y:"ytp-title-expanded-title",L:[{j:"a",cG:"{{expandedTitle}}",S:{href:"{{channelTitleLink}}",target:R.D().UZ,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{j:"div",Y:"ytp-title-expanded-subtitle",cG:"{{expandedSubtitle}}",S:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var F=this;this.api=R;this.channel=this.sZ("ytp-title-channel");this.U=this.sZ("ytp-title-channel-logo");this.channelName=this.sZ("ytp-title-expanded-title");this.W=this.sZ("ytp-title-expanded-overlay");this.N=this.T=this.subscribeButton=null;this.J=!1;R.createClientVe(this.U,this,36925);R.createClientVe(this.channelName,this,
37220);g.Pp(this.api.D())&&uwV(this);this.C(R,"videodatachange",this.CH);this.C(R,"videoplayerreset",this.CH);this.C(this.channelName,"click",function(n){F.api.logClick(F.channelName);g.Ie(window,BUe(F));n.preventDefault()});
this.C(this.U,"click",this.nyZ);this.CH()};
gdW=function(R){if(!R.api.D().YF){var F=R.api.getVideoData(),n=new g.$Y("Subscribe",null,"Subscribed",null,!0,!1,F.By,F.subscribed,"channel_avatar",null,R.api,!0);R.api.createServerVe(n.element,R);var V;R.api.setTrackingParams(n.element,((V=F.subscribeButtonRenderer)==null?void 0:V.trackingParams)||null);R.C(n.element,"click",function(){R.api.logClick(n.element)});
R.subscribeButton=n;g.d(R,R.subscribeButton);R.subscribeButton.KH(R.W);R.subscribeButton.hide();var r=new jne(R.api);R.T=r;g.d(R,r);r.KH(R.W);r.hide();R.C(R.api,"SUBSCRIBE",function(){F.Ru&&(r.show(),R.api.logVisibility(r.element,!0))});
R.C(R.api,"UNSUBSCRIBE",function(){F.Ru&&(r.hide(),R.api.logVisibility(r.element,!1),HUv(r,!1))})}};
uwV=function(R){var F=R.api.D();gdW(R);R.updateValue("flyoutUnfocusable","true");R.updateValue("channelTitleFocusable","-1");R.updateValue("shouldHideExpandedTitleForA11y","true");R.updateValue("shouldHideExpandedSubtitleForA11y","true");F.U||F.gX||(R.C(R.channel,"mouseenter",R.b8),R.C(R.channel,"mouseleave",R.dH),R.C(R.channel,"focusin",R.b8),R.C(R.channel,"focusout",function(n){R.channel.contains(n.relatedTarget)||R.dH()}));
R.N=new g.ZK(function(){R.isExpanded()&&(R.api.logVisibility(R.channelName,!1),R.subscribeButton&&(R.subscribeButton.hide(),R.api.logVisibility(R.subscribeButton.element,!1)),R.T&&(R.T.hide(),R.api.logVisibility(R.T.element,!1)),R.channel.classList.remove("ytp-title-expanded"),R.channel.classList.add("ytp-title-show-collapsed"))},500);
g.d(R,R.N);R.C(R.channel,OUj,function(){IdN(R)});
R.C(R.api,"onHideControls",R.mM);R.C(R.api,"appresize",R.mM);R.C(R.api,"fullscreentoggled",R.mM)};
IdN=function(R){R.channel.classList.remove("ytp-title-show-collapsed");R.channel.classList.remove("ytp-title-show-expanded")};
KUJ=function(R){var F=R.api.getPlayerSize();return g.Pp(R.api.D())&&F.width>=524};
BUe=function(R){var F=R.api.D(),n=R.api.getVideoData(),V=g.jT(F)+n.Y5;g.T9(n)&&(V="https://music.youtube.com"+n.Y5);if(!g.Pp(F))return V;F={};g.u4(R.api,"addEmbedsConversionTrackingParams",[F]);return g.DI(V,F)};
PR=function(R){var F=g.SK({"aria-haspopup":"true"});g.w$.call(this,F,R);this.listen("keydown",this.gK)};
bK=function(R,F){R.element.setAttribute("aria-haspopup",String(F))};
D_R=function(R,F){g.N.call(this,{j:"div",Y:"ytp-user-info-panel",S:{"aria-label":"User info"},L:R.D().lS?[{j:"div",Y:"ytp-user-info-panel-icon",cG:"{{icon}}"},{j:"div",Y:"ytp-user-info-panel-content",L:[{j:"div",Y:"ytp-user-info-panel-info",S:{tabIndex:"{{userInfoFocusable}}",role:"text"},cG:"{{watchingAsUsername}}"},{j:"div",Y:"ytp-user-info-panel-info",S:{tabIndex:"{{userInfoFocusable2}}",role:"text"},cG:"{{watchingAsEmail}}"}]}]:[{j:"div",Y:"ytp-user-info-panel-icon",cG:"{{icon}}"},{j:"div",Y:"ytp-user-info-panel-content",
L:[{j:"div",L:[{j:"text",S:{tabIndex:"{{userInfoFocusable}}"},cG:"Signed out"}]},{j:"div",Y:"ytp-user-info-panel-login",L:[{j:"a",S:{tabIndex:"{{userInfoFocusable2}}",role:"button"},cG:R.D().YF?"":"Sign in on YouTube"}]}]}]});this.eQ=R;this.sourceElement=F;R.D().lS||R.D().YF||this.C(this.sZ("ytp-user-info-panel-login"),"click",this.ZW);this.closeButton=new g.N({j:"button",BG:["ytp-collapse","ytp-button"],S:{title:"Close"},L:[g.B5()]});this.closeButton.KH(this.element);g.d(this,this.closeButton);this.C(window,
"blur",this.hide);this.C(document,"click",this.bC);this.CH()};
JG9=function(R,F,n){g.pN.call(this,R);var V=this;this.T9=F;this.zk=n;this.getVideoUrl=new PR(6);this.jh=new PR(5);this.U8=new PR(4);this.fC=new PR(3);this.Mr=new g.w$(g.SK({href:"{{href}}",target:this.K.D().UZ},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.w$(g.SK(),1,"Stats for nerds");this.ot=new g.c5({j:"div",BG:["ytp-copytext","ytp-no-contextmenu"],S:{draggable:"false",tabindex:"1"},cG:"{{text}}"});this.B0=new sb(this.K,this.ot);this.Co=this.gZ=null;g.Pp(this.K.D())&&(this.closeButton=
new g.N({j:"button",BG:["ytp-collapse","ytp-button"],S:{title:"Close"},L:[g.B5()]}),g.d(this,this.closeButton),this.closeButton.KH(this.element),this.closeButton.listen("click",this.UW,this));g.Pp(this.K.D())&&(this.wr=new g.w$(g.SK(),10,"Account"),g.d(this,this.wr),this.xF(this.wr,!0),this.wr.listen("click",this.HkG,this),R.createClientVe(this.wr.element,this.wr,137682));this.K.D().tG&&(this.Ef=new yk("Loop",9),g.d(this,this.Ef),this.xF(this.Ef,!0),this.Ef.listen("click",this.m8H,this),R.createClientVe(this.Ef.element,
this.Ef,28661));this.K.B("web_player_miniplayer_in_context_menu")&&(this.ew=new g.w$(g.SK(),8,"Miniplayer"),g.d(this,this.ew),this.xF(this.ew,!0),this.ew.listen("click",this.sr5,this),R.createClientVe(this.ew.element,this.ew,62946));this.K.B("web_watch_pip_context_menu_button")&&this.K.D().showMiniplayerButton&&(this.vv=new g.w$(g.SK(),7,"Picture-in-picture"),g.d(this,this.vv),this.xF(this.vv,!0),this.vv.listen("click",this.Zl1,this),R.createClientVe(this.vv.element,this.vv,194442));g.d(this,this.getVideoUrl);
this.xF(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.kuS,this);R.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.d(this,this.jh);this.xF(this.jh,!0);this.jh.listen("click",this.Ey5,this);R.createClientVe(this.jh.element,this.jh,28660);g.d(this,this.U8);this.xF(this.U8,!0);this.U8.listen("click",this.iX2,this);R.createClientVe(this.U8.element,this.U8,28658);g.d(this,this.fC);this.xF(this.fC,!0);this.fC.listen("click",this.OX5,this);g.d(this,this.Mr);this.xF(this.Mr,!0);
this.Mr.listen("click",this.bk1,this);g.d(this,this.showVideoInfo);this.xF(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.hq2,this);g.d(this,this.ot);this.ot.listen("click",this.vyG,this);g.d(this,this.B0);iUW()&&(this.gZ=new g.N({j:"textarea",Y:"ytp-html5-clipboard",S:{readonly:"",tabindex:"-1"}}),g.d(this,this.gZ),this.gZ.KH(this.element));var r;(r=this.wr)==null||r.setIcon(zXj());var v;(v=this.Ef)==null||v.setIcon(wcJ());var f;(f=this.ew)==null||f.setIcon(this.K.B("delhi_modern_web_player_icons")?
nhE():j8());var z;(z=this.vv)==null||z.setIcon(j8());this.fC.setIcon({j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{"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.Mr.setIcon(Te());this.showVideoInfo.setIcon(Z$v());this.C(R,"onLoopChange",this.onLoopChange);this.C(R,"videodatachange",this.onVideoDataChange);this.C(R,"fullscreentoggled",function(){x_J(V)});
this.C(R,"minimized",function(){x_J(V);var q;(q=V.vv)==null||q.dg(!V.K.isMinimized()&&V.K.D().showMiniplayerButton)});
koe(this);YcN(this,this.K.getVideoData())};
ZR=function(R,F){var n=!1;if(R.gZ){var V=R.gZ.element;V.value=F;V.select();try{n=document.execCommand("copy")}catch(r){}}n?R.T9.nC():(R.ot.setContent(F,"text"),g.aG(R.T9,R.B0),uF(R.ot.element),R.gZ&&(R.gZ=null,koe(R)));return n};
iUW=function(){var R=document.queryCommandSupported&&document.queryCommandSupported("copy");CUN("Chromium")>=43&&(R=!0);CUN("Firefox")<=40&&(R=!1);return R};
x_J=function(R){var F;(F=R.ew)==null||F.dg(!R.K.isFullscreen()&&!R.K.isMinimized()&&R.K.getPresentingPlayerType()!==2&&R.K.D().showMiniplayerButton)};
YcN=function(R,F){var n=R.K.D(),V=R.K.getPresentingPlayerType()===2,r=!V||F.isListed;r=!n.J1&&!!F.videoId&&r;n.playerStyle!=="play"?n="https://support.google.com/youtube/?p=report_playback":(n={contact_type:"playbackissue",html5:1,ei:F.eventId,v:F.videoId,p:"movies_playback"},F.U&&(n.fmt=F.U.itag),F.clientPlaybackNonce&&(n.cpn=F.clientPlaybackNonce),F.partnerId&&(n.partnerid=F.partnerId),n=g.DI("//support.google.com/googleplay/",n));R.U8.dg(r&&F.allowEmbed);R.getVideoUrl.dg(r);R.jh.dg(r&&!F.isLivePlayback);
R.Mr.setContent(n,"href");var v;(v=R.Ef)==null||v.dg(!F.isLivePlayback&&!V);x_J(R);var f;(f=R.wr)==null||f.dg(!V)};
koe=function(R){var F=!!R.gZ;g.cN(R.fC,F?"Copy debug info":"Get debug info");bK(R.fC,!F);g.cN(R.U8,F?"Copy embed code":"Get embed code");bK(R.U8,!F);g.cN(R.getVideoUrl,F?"Copy video URL":"Get video URL");bK(R.getVideoUrl,!F);g.cN(R.jh,F?"Copy video URL at current time":"Get video URL at current time");bK(R.jh,!F);R.U8.setIcon(F?$lf():null);R.getVideoUrl.setIcon(F?oh():null);R.jh.setIcon(F?oh():null)};
GoV=function(R){return g.Pp(R.K.D())?R.wr:R.Ef};
My9=function(R,F){g.AX.call(this,R);this.zk=F;this.U=new g.AQ(this);this.X=new g.ZK(this.NVo,1E3,this);this.V=this.Xh=null;g.d(this,this.U);g.d(this,this.X);F=this.K.D();R.createClientVe(this.element,this,28656);g.z0(this.element,"ytp-contextmenu");this.K.D().experiments.GH("delhi_modern_web_player")&&g.Xk(F)&&g.z0(this.element,"ytp-delhi-modern-contextmenu");d_V(this);this.hide()};
d_V=function(R){g.Kw(R.U);var F=R.K.D();F.playerStyle==="gvn"||F.U||F.gX||(F=R.K.fH(),R.U.C(F,"contextmenu",R.eeG),R.U.C(F,"touchstart",R.onTouchStart,null,!0),R.U.C(F,"touchmove",R.g9,null,!0),R.U.C(F,"touchend",R.g9,null,!0))};
ldk=function(R){R.K.isFullscreen()?g.RL(R.K,R.element,10):R.KH(z6(R).body)};
ek=function(R,F,n){n=n===void 0?240:n;g.N.call(this,{j:"button",BG:["ytp-button","ytp-copylink-button"],S:{title:R.B("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.Pp(R.D()))},L:[{j:"div",Y:"ytp-copylink-icon",cG:"{{icon}}"},{j:"div",Y:"ytp-copylink-title",cG:"Copy link",S:{"aria-hidden":"true"}}]});this.api=R;this.T=F;this.U=n;this.visible=!1;this.tooltip=this.T.q8();F=R.D();this.tooltip.element.setAttribute("aria-live",
"polite");g.ws(this.element,"ytp-show-copylink-title",g.Pp(F));R.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.C(R,"videodatachange",this.CH);this.C(R,"videoplayerreset",this.CH);this.C(R,"appresize",this.CH);this.CH();this.addOnDisposeCallback(g.G9(this.tooltip,this.element))};
NUE=function(R){var F=R.api.D(),n=R.api.getVideoData(),V=R.api.fH().getPlayerSize().width;F=F.N;return!!n.videoId&&V>=R.U&&n.mz&&!n.On&&!R.api.isEmbedsShortsMode()&&!F};
Edv=function(R){R.updateValue("icon",pG());if(R.api.D().U)R.tooltip.TT(R.element,"Link copied to clipboard");else{R.updateValue("title-attr","Link copied to clipboard");R.updateValue("tooltip-title","Link copied to clipboard");R.tooltip.Ew();R.tooltip.TT(R.element);var F=R.listen("mouseleave",function(){R.ZO(F);R.CH();R.tooltip.I$()})}};
$_V=function(R,F){return g.Y(function(n){if(n.T==1)return g.zv(n,2),g.k(n,navigator.clipboard.writeText(F),4);if(n.T!=2)return n.return(!0);g.cM(n);var V=n.return,r=!1,v=g.gu("TEXTAREA");v.value=F;v.setAttribute("readonly","");var f=R.api.getRootNode();f.appendChild(v);if(lV){var z=window.getSelection();z.removeAllRanges();var q=document.createRange();q.selectNodeContents(v);z.addRange(q);v.setSelectionRange(0,F.length)}else v.select();try{r=document.execCommand("copy")}catch(Q){}f.removeChild(v);
return V.call(n,r)})};
PvV=function(R){g.N.call(this,{j:"div",Y:"ytp-doubletap-ui-legacy",L:[{j:"div",Y:"ytp-doubletap-fast-forward-ve"},{j:"div",Y:"ytp-doubletap-rewind-ve"},{j:"div",Y:"ytp-doubletap-static-circle",L:[{j:"div",Y:"ytp-doubletap-ripple"}]},{j:"div",Y:"ytp-doubletap-overlay-a11y"},{j:"div",Y:"ytp-doubletap-seek-info-container",L:[{j:"div",Y:"ytp-doubletap-arrows-container",L:[{j:"span",Y:"ytp-doubletap-base-arrow"},{j:"span",Y:"ytp-doubletap-base-arrow"},{j:"span",Y:"ytp-doubletap-base-arrow"}]},{j:"div",
Y:"ytp-doubletap-tooltip",L:[{j:"div",Y:"ytp-seek-icon-text-container",L:[{j:"div",Y:"ytp-seek-icon",cG:"{{seekIcon}}"},{j:"div",Y:"ytp-chapter-seek-text-legacy",cG:"{{seekText}}"}]},{j:"div",Y:"ytp-doubletap-tooltip-label",cG:"{{seekTime}}"}]}]}]});this.K=R;this.J=new g.ZK(this.show,10,this);this.U=new g.ZK(this.hide,700,this);this.Z=this.N=0;this.Nq=this.W=!1;this.T=this.sZ("ytp-doubletap-static-circle");g.d(this,this.J);g.d(this,this.U);this.hide();this.X=this.sZ("ytp-doubletap-fast-forward-ve");
this.V=this.sZ("ytp-doubletap-rewind-ve");this.K.createClientVe(this.X,this,28240);this.K.createClientVe(this.V,this,28239);this.K.logVisibility(this.X,!0);this.K.logVisibility(this.V,!0);this.W=R.B("web_show_cumulative_seek_time");this.Nq=R.B("web_center_static_circles")};
bUE=function(R,F){F=g.fy("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:F.toString()});R.updateValue("seekTime",F)};
eG9=function(R){LN.call(this,R,!1,!0);this.lS=[];this.uS=[];this.element.setAttribute("data-overlay-order","9");ZUe(this,this.K.getVideoData());this.X=!0;this.badge.element.classList.add("ytp-featured-product");this.PG=new g.N({j:"div",Y:"ytp-featured-product-open-in-new"});g.d(this,this.PG);this.countdownTimer=new g.N({j:"text",Y:"ytp-featured-product-countdown",cG:"{{content}}"});this.countdownTimer.hide();g.d(this,this.countdownTimer);this.N=new g.N({j:"div",Y:"ytp-featured-product-trending",L:[{j:"div",
Y:"ytp-featured-product-trending-icon"},{j:"text",Y:"ytp-featured-product-trending-text",cG:"{{trendingOffer}}"}]});this.N.hide();g.d(this,this.N);this.overflowButton=new g.N({j:"button",BG:["ytp-featured-product-overflow-icon","ytp-button"],S:{"aria-haspopup":"true"}});this.overflowButton.hide();g.d(this,this.overflowButton);this.Z=new g.N({j:"text",Y:"ytp-featured-product-exclusive-countdown",cG:"{{content}}",S:{id:"exclusiveCountdown","aria-hidden":"true"}});this.Z.hide();g.d(this,this.Z);this.W=
new g.N({j:"div",Y:"ytp-featured-product-exclusive-container",S:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},L:[{j:"div",Y:"ytp-featured-product-exclusive-badge-container",L:[{j:"div",Y:"ytp-featured-product-exclusive-badge",L:[{j:"text",Y:"ytp-featured-product-exclusive-badge-text",cG:"{{exclusive}}",S:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.Z]});this.W.hide();g.d(this,this.W);this.banner=new g.N({j:"a",Y:"ytp-featured-product-container",L:[{j:"div",Y:"ytp-featured-product-thumbnail",
L:[{j:"img",S:{src:"{{thumbnail}}"}},this.PG]},{j:"div",Y:"ytp-featured-product-details",L:[{j:"text",Y:"ytp-featured-product-title",cG:"{{title}}"},this.K.B("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{j:"div",Y:"ytp-featured-product-price-container",S:{"aria-label":"{{priceA11yText}}"},L:[{j:"text",Y:"ytp-featured-product-price-when-promotion-text-enabled",cG:"{{price}}",S:{"aria-hidden":"true"}},{j:"text",Y:"ytp-featured-product-promotion-text",cG:"{{promotionText}}",
S:{"aria-hidden":"true"}}]}:{j:"div",S:{"aria-label":"{{priceA11yText}}"},L:[{j:"text",Y:"ytp-featured-product-price",cG:"{{price}}",S:{"aria-hidden":"true"}},{j:"text",Y:"ytp-featured-product-sales-original-price",cG:"{{salesOriginalPrice}}",S:{"aria-hidden":"true"}},{j:"text",Y:"ytp-featured-product-price-drop-reference-price",cG:"{{priceDropReferencePrice}}",S:{"aria-hidden":"true"}}]},this.K.B("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{j:"div",Y:"ytp-featured-product-when-promotion-text-enabled",
L:[{j:"text",Y:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",cG:"{{affiliateDisclaimer}}"},this.N,{j:"text",Y:"ytp-featured-product-vendor-when-promotion-text-enabled",cG:"{{vendor}}"}]}:{j:"div",L:[{j:"text",Y:"ytp-featured-product-affiliate-disclaimer",cG:"{{affiliateDisclaimer}}"},this.K.B("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.W:null,this.N,{j:"text",Y:"ytp-featured-product-vendor",cG:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});
g.d(this,this.banner);this.banner.KH(this.J.element);this.C(this.K,g.$A("featured_product"),this.IzH);this.C(this.K,g.Pl("featured_product"),this.BV);this.C(this.K,"videodatachange",this.onVideoDataChange);this.C(this.overflowButton.element,"click",this.zW);this.C(R,"featuredproductdismissed",this.An)};
RZj=function(R){var F,n;R=(F=R.T)==null?void 0:(n=F.bannerData)==null?void 0:n.itemData;var V,r,v;return(R==null||!R.affiliateDisclaimer)&&(R==null?0:(V=R.exclusivesData)==null?0:V.exclusiveOfferLabelText)&&(R==null?0:(r=R.exclusivesData)==null?0:r.expirationTimestampMs)&&(R==null?0:(v=R.exclusivesData)==null?0:v.exclusiveOfferCountdownText)?!0:!1};
nJv=function(R){var F,n,V,r,v=(F=R.T)==null?void 0:(n=F.bannerData)==null?void 0:(V=n.itemData)==null?void 0:(r=V.exclusivesData)==null?void 0:r.expirationTimestampMs;F=(Number(v)-Date.now())/1E3;if(F>0){if(F<604800){var f,z,q,Q;n=(f=R.T)==null?void 0:(z=f.bannerData)==null?void 0:(q=z.itemData)==null?void 0:(Q=q.exclusivesData)==null?void 0:Q.exclusiveOfferCountdownText;if(n!==void 0)for(f=Date.now(),z=g.m(n),q=z.next();!q.done;q=z.next())if(q=q.value,q!==void 0&&q.text!==void 0&&(Q=Number(q.textDisplayStartTimestampMs),
!isNaN(Q)&&f>=Q)){q.insertCountdown?(F=q.text.replace(/\$0/,String(LQ({seconds:F}))),R.Z.setContent(F)):R.Z.setContent(q.text);R.Z.show();break}}var c,w,L,S;R.W.update({exclusive:(c=R.T)==null?void 0:(w=c.bannerData)==null?void 0:(L=w.itemData)==null?void 0:(S=L.exclusivesData)==null?void 0:S.exclusiveOfferLabelText});R.W.show();Rn(R);var p;(p=R.QZ)==null||p.start()}else F_E(R)};
F_E=function(R){var F;(F=R.QZ)==null||F.stop();R.Z.hide();R.W.hide();Fw(R)};
VvW=function(R){var F,n,V=(F=R.T)==null?void 0:(n=F.bannerData)==null?void 0:n.itemData;return R.K.B("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(V==null||!V.priceReplacementText)&&(V==null?0:V.promotionText)?V==null?void 0:V.promotionText.content:null};
rU9=function(R){var F,n,V=(F=R.T)==null?void 0:(n=F.bannerData)==null?void 0:n.itemData,r,v;if(!(V!=null&&V.priceReplacementText||R.K.B("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(V==null?0:(r=V.dealsData)==null?0:(v=r.sales)==null?0:v.originalPrice)){var f,z;return V==null?void 0:(f=V.dealsData)==null?void 0:(z=f.sales)==null?void 0:z.originalPrice}return null};
vJJ=function(R){var F,n,V=(F=R.T)==null?void 0:(n=F.bannerData)==null?void 0:n.itemData,r,v,f,z;if(!((V==null?0:V.priceReplacementText)||R.K.B("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(V==null?0:(r=V.dealsData)==null?0:(v=r.sales)==null?0:v.originalPrice))&&(V==null?0:(f=V.dealsData)==null?0:(z=f.priceDrop)==null?0:z.referencePrice)){var q,Q;return V==null?void 0:(q=V.dealsData)==null?void 0:(Q=q.priceDrop)==null?void 0:Q.referencePrice}return null};
fSN=function(R){var F,n,V=(F=R.T)==null?void 0:(n=F.bannerData)==null?void 0:n.itemData;if(V==null?0:V.priceReplacementText)return V==null?void 0:V.priceReplacementText;if((V==null?0:V.promotionText)&&R.K.B("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var r;return(V==null?void 0:V.price)+" "+(V==null?void 0:(r=V.promotionText)==null?void 0:r.content)}var v,f;if(V==null?0:(v=V.dealsData)==null?0:(f=v.sales)==null?0:f.originalPrice){var z,q;return V==null?void 0:(z=V.dealsData)==
null?void 0:(q=z.sales)==null?void 0:q.salesPriceAccessibilityLabel}var Q,c;if(V==null?0:(Q=V.dealsData)==null?0:(c=Q.priceDrop)==null?0:c.referencePrice){var w,L;return(V==null?void 0:V.price)+" "+(V==null?void 0:(w=V.dealsData)==null?void 0:(L=w.priceDrop)==null?void 0:L.referencePrice)}return V==null?void 0:V.price};
tvv=function(R){if(R.K.B("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var F,n,V;return R.N.JJ?null:(F=R.T)==null?void 0:(n=F.bannerData)==null?void 0:(V=n.itemData)==null?void 0:V.vendorName}var r,v,f,z,q,Q;return R.N.JJ||R.W.JJ||((r=R.T)==null?0:(v=r.bannerData)==null?0:(f=v.itemData)==null?0:f.affiliateDisclaimer)?null:(z=R.T)==null?void 0:(q=z.bannerData)==null?void 0:(Q=q.itemData)==null?void 0:Q.vendorName};
qLR=function(R,F){nU(R);if(F){var n=g.jZ.getState().entities;n=RK(n,"featuredProductsEntity",F);if(n!=null&&n.productsData){F=[];n=g.m(n.productsData);for(var V=n.next();!V.done;V=n.next()){V=V.value;var r=void 0;if((r=V)!=null&&r.identifier&&V.featuredSegments){R.lS.push(V);var v=void 0;r=g.m((v=V)==null?void 0:v.featuredSegments);for(v=r.next();!v.done;v=r.next()){var f=v.value;v=zZf(f.startTimeSec);v!==void 0&&(f=zZf(f.endTimeSec),F.push(new g.NQ(v*1E3,f===void 0?0x7ffffffffffff:f*1E3,{id:V.identifier,
namespace:"featured_product"})))}}}R.K.iL(F)}}};
Fw=function(R){if(R.trendingOfferEntityKey){var F=g.jZ.getState().entities;if(F=RK(F,"trendingOfferEntity",R.trendingOfferEntityKey)){var n,V,r;F.encodedSkuId!==((n=R.T)==null?void 0:(V=n.bannerData)==null?void 0:(r=V.itemData)==null?void 0:r.encodedOfferSkuId)?Rn(R):(R.N.update({trendingOffer:F.shortLabel+" \u2022 "+F.countLabel}),R.N.show(),R.banner.update({vendor:tvv(R)}))}else Rn(R)}else Rn(R)};
Rn=function(R){R.N.hide();R.banner.update({vendor:tvv(R)})};
ZUe=function(R,F){!R.K.B("web_enable_shopping_timely_shelf_client")||R.K.B("web_force_featured_product_banner_with_timely_shelf")||!F||F.isLivePlayback||F.isPremiere?R.badge.element.classList.remove("ytp-timely-shelf-present"):R.badge.element.classList.add("ytp-timely-shelf-present")};
nU=function(R){R.lS=[];R.BV();R.K.Bw("featured_product")};
Qg6=function(R){var F,n,V,r,v=(F=R.T)==null?void 0:(n=F.bannerData)==null?void 0:(V=n.itemData)==null?void 0:(r=V.hiddenProductOptions)==null?void 0:r.dropTimestampMs;F=(Number(v)-Date.now())/1E3;R.countdownTimer.setContent(LQ({seconds:F}));if(F>0){var f;(f=R.YF)==null||f.start()}};
cUk=function(R){var F;(F=R.YF)==null||F.stop();R.countdownTimer.hide()};
zZf=function(R){if(R!==void 0&&R.trim()!==""&&(R=Math.trunc(Number(R.trim())),!(isNaN(R)||R<0)))return R};
AUN=function(R,F,n){g.N.call(this,{j:"div",BG:["ytp-info-panel-action-item"],L:[{j:"div",Y:"ytp-info-panel-action-item-disclaimer",cG:"{{disclaimer}}"},{j:"a",BG:["ytp-info-panel-action-item-button","ytp-button"],S:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},L:[{j:"div",Y:"ytp-info-panel-action-item-icon",cG:"{{icon}}"},{j:"div",Y:"ytp-info-panel-action-item-label",cG:"{{label}}"}]}]});this.K=R;this.U=n;this.disclaimer=this.sZ("ytp-info-panel-action-item-disclaimer");this.button=
this.sZ("ytp-info-panel-action-item-button");this.XP=!1;this.K.createServerVe(this.element,this,!0);this.listen("click",this.onClick);R="";n=g.A(F==null?void 0:F.onTap,IQ);var V=g.A(n,g.is);this.XP=!1;V?(R=V.url||"",R.startsWith("//")&&(R="https:"+R),this.XP=!0,g.uS(this.button,g.h8(R))):(V=g.A(n,wLE))&&!this.U?((R=V.phoneNumbers)&&R.length>0?(R="sms:"+R[0],V.messageText&&(R+="?&body="+encodeURI(V.messageText))):R="",this.XP=!0,g.uS(this.button,g.h8(R,[SLf]))):(n=g.A(n,L_6))&&!this.U&&(R=n.phoneNumber?
"tel:"+n.phoneNumber:"",this.XP=!0,g.uS(this.button,g.h8(R,[sgR])));!R&&(n=g.A(F==null?void 0:F.onTap,IQ),V=g.A(n,pLf))&&(this.XP=!0,this.T=n,this.feedbackToken=V.feedbackToken);var r;if(n=(r=F.disclaimerText)==null?void 0:r.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var v,f;this.update({label:(v=F.bodyText)==null?void 0:v.content,icon:XLI((f=F.icon)==null?void 0:f.iconType),disclaimer:n})}else{this.disclaimer.style.display="none";var z,q;this.update({label:(z=
F.bodyText)==null?void 0:z.content,icon:XLI((q=F.icon)==null?void 0:q.iconType)})}this.K.setTrackingParams(this.element,F.trackingParams||null);this.XP&&(this.N={externalLinkData:{url:R}})};
XLI=function(R){switch(R){case "OPEN_IN_NEW":return Ua();case "NOT_INTERESTED":return{j:"svg",S:{fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M18.71,6C20.13,7.59,21,9.69,21,12c0,4.97-4.03,9-9,9c-2.31,0-4.41-0.87-6-2.29L18.71,6z M3,12 c0-4.97,4.03-9,9-9c2.31,0,4.41,.87,6,2.29L5.29,18C3.87,16.41,3,14.31,3,12z M12,2c5.52,0,10,4.48,10,10c0,5.52-4.48,10-10,10 C6.48,22,2,17.52,2,12C2,6.48,6.48,2,12,2z","fill-rule":"evenodd"}}]};case "HELP_OUTLINE":return Te();default:return Ua()}};
aSV=function(R,F){var n=tn();ti.call(this,R,{j:"div",Y:"ytp-info-panel-detail-skrim",L:[{j:"div",Y:"ytp-info-panel-detail",S:{role:"dialog",id:n},L:[{j:"div",Y:"ytp-info-panel-detail-header",L:[{j:"div",Y:"ytp-info-panel-detail-title",cG:"{{title}}"},{j:"button",BG:["ytp-info-panel-detail-close","ytp-button"],S:{"aria-label":"Close"},L:[g.ah()]}]},{j:"div",Y:"ytp-info-panel-detail-body",cG:"{{body}}"},{j:"div",Y:"ytp-info-panel-detail-items"}]}]},250);var V=this;this.T=F;this.items=this.sZ("ytp-info-panel-detail-items");
this.U=new g.AQ(this);this.itemData=[];this.N=n;this.C(this.sZ("ytp-info-panel-detail-close"),"click",this.nC);this.C(this.sZ("ytp-info-panel-detail-skrim"),"click",this.nC);this.C(this.sZ("ytp-info-panel-detail"),"click",function(r){r.stopPropagation()});
this.C(this.K,"infopaneldetaildismissed",function(){V.nC()});
g.d(this,this.U);this.K.createServerVe(this.element,this,!0);this.C(R,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",R.getVideoData());this.hide()};
CPR=function(R,F){R=g.m(R.itemData);for(var n=R.next();!n.done;n=R.next())n=n.value,n.K.logVisibility(n.element,F)};
yUk=function(R,F){g.N.call(this,{j:"button",Y:"ytp-info-panel-preview",S:{"aria-live":"assertive","aria-atomic":"true","aria-owns":F.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.Pp(R.D()))},L:[{j:"div",Y:"ytp-info-panel-preview-text",cG:"{{text}}"},{j:"div",Y:"ytp-info-panel-preview-chevron",cG:"{{chevron}}"}]});var n=this;this.K=R;this.Ll=this.T=this.videoId=null;this.isDismissed=this.N=this.showControls=this.U=!1;this.C(this.element,"click",function(){R.logClick(n.element);R.EJ();
qJ(F)});
this.fade=new g.n5(this,250,!1,100);g.d(this,this.fade);this.K.createServerVe(this.element,this,!0);this.C(R,"videodatachange",this.onVideoDataChange);this.C(R,"presentingplayerstatechange",this.ZV);this.C(this.K,"paidcontentoverlayvisibilitychange",this.aF);this.C(this.K,"infopaneldetailvisibilitychange",this.aF);var V=R.getVideoData()||{};TXV(V)&&oJE(this,V);this.C(R,"onShowControls",this.Bc);this.C(R,"onHideControls",this.Kj);this.C(this.K,"infopaneldetaildismissed",function(){n.isDismissed=!0;
n.hide()})};
oJE=function(R,F){if(!F.Zn||!R.K.xb()){var n=F.ZE||1E4,V=TXV(F);R.T?F.videoId&&F.videoId!==R.videoId&&(g.FK(R.T),R.videoId=F.videoId,V?(UYj(R,n,F),R.rW()):(R.nC(),R.T.dispose(),R.T=null)):V&&(F.videoId&&(R.videoId=F.videoId),UYj(R,n,F),R.rW())}};
TXV=function(R){var F,n,V,r;return!!((F=R.HI)==null?0:(n=F.title)==null?0:n.content)||!!((V=R.HI)==null?0:(r=V.bodyText)==null?0:r.content)};
UYj=function(R,F,n){R.T&&R.T.dispose();R.T=new g.ZK(R.VuH,F,R);g.d(R,R.T);var V;F=((V=n.HI)==null?void 0:V.trackingParams)||null;R.K.setTrackingParams(R.element,F);var r;var v,f;if(n==null?0:(v=n.HI)==null?0:(f=v.title)==null?0:f.content){var z;V=(r=n.HI)==null?void 0:(z=r.title)==null?void 0:z.content;var q,Q;if((q=n.HI)==null?0:(Q=q.bodyText)==null?0:Q.content)V+=" \u2022 ";r=V}else r="";var c,w;n=((c=n.HI)==null?void 0:(w=c.bodyText)==null?void 0:w.content)||"";R.update({text:r+n,chevron:g.An()})};
jgj=function(R,F){R.T&&(g.E(F,8)?(R.U=!0,R.rW(),R.T.start()):(g.E(F,2)||g.E(F,64))&&R.videoId&&(R.videoId=null))};
VJ=function(R){var F=null;try{F=R.toLocaleString("en",{style:"percent"})}catch(n){F=R.toLocaleString(void 0,{style:"percent"})}return F};
rU=function(R,F){var n=0;R=g.m(R);for(var V=R.next();!(V.done||V.value.startTime>F);V=R.next())n++;return n===0?n:n-1};
H7f=function(R,F){for(var n=0,V=g.m(R),r=V.next();!r.done;r=V.next()){r=r.value;if(F<r.timeRangeStartMillis)return null;if(F>=r.timeRangeStartMillis&&F<r.timeRangeStartMillis+r.T)break;n++}n+1<R.length&&R[n+1].timeRangeStartMillis<=F&&n++;return n<R.length?n:null};
hZe=function(R,F){F=rU(R,F)+1;return F<R.length?F:-1};
W_J=function(R,F){return rU(R,F)-1};
uJe=function(R,F){return new g.NQ(R,F,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+R})};
mYR=function(R,F,n,V,r,v,f,z){g.AQ.call(this);var q=this;this.api=R;this.W=F;this.contextMenu=n;this.Ck=V;this.zk=r;this.T=v;this.X=f;this.progressBar=z;this.J=new g.ZK(function(){BXW(q,!1)},1E3);
this.U="";this.N={CE:!1,Mm:!1,WK:!1};g.d(this,this.J);this.C(F,"mousedown",function(){vy(q,!1)});
this.C(n.element,"mousedown",function(){vy(q,!1)});
this.C(F,"keydown",this.uA);this.C(n.element,"keydown",this.uA);this.C(F,"keyup",this.fA);this.C(n.element,"keyup",this.fA)};
gJN=function(R,F){if(F<0)return"0";R=Math.floor(Math.min(F,R.api.getDuration())*1E3);return R>2147483647?"0":String(R)};
fU=function(R,F,n){var V=R.api.getCurrentTime(),r=gJN(R,V);R=gJN(R,V+F);return{startMediaTimeMs:r,endMediaTimeMs:R,seekSource:n}};
O7N=function(R){var F,n=(F=R.api.getVideoData())==null?void 0:F.iZ();return R.api.getPresentingPlayerType(n)!==2};
vy=function(R,F){R.N.Mm=F;g.ws(R.api.getRootNode(),"ytp-probably-keyboard-focus",F);g.ws(R.contextMenu.element,"ytp-probably-keyboard-focus",F)};
zo=function(R,F,n,V){var r=g.Cz(R.api.WI());if(r&&r.loaded){var v=R.api.getSubtitlesUserSettings();r=void 0;for(var f=0;f<g.tG.length;f++){var z=g.tG[f];if(z.option===F){r=z.options;break}}f=void 0;for(z=0;z<r.length;z++)r[z].option===v[F]&&(f=z);if(V)if(n){if(f===0)return}else if(f===r.length-1)return;V={};V[F]=r[(f+(n?r.length-1:1))%r.length].option;R.api.updateSubtitlesUserSettings(V);BXW(R,!0);R.J.start()}};
BXW=function(R,F){g.Cz(R.api.WI())&&R.api.setOption("captions","sampleSubtitles",F)};
q_=function(R,F){g.N.call(this,{j:"button",BG:["ytp-button","ytp-overflow-button"],S:{title:R.B("player_tooltip_data_title_killswitch")?"More":"","data-tooltip-title":"More","aria-haspopup":"true","aria-owns":F.element.id},L:[{j:"div",Y:"ytp-overflow-icon",L:[{j:"svg",S:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},L:[{j:"path",S:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});
var n=this;this.K=R;this.sF=F;this.visible=!1;R.createClientVe(this.element,this,16499);this.C(R,"videoplayerreset",this.CH);this.C(R,"appresize",this.CH);this.C(R,"fullscreentoggled",this.CH);this.C(R,"presentingplayerstatechange",this.CH);this.CH();dZ(R,this.element,this);this.listen("click",function(){R.logClick(n.element);qJ(F,n.element,!1)});
this.C(F.closeButton,"click",function(){n.focus()})};
ISN=function(R){ti.call(this,R,{j:"div",Y:"ytp-overflow-panel",S:{id:tn(),role:"dialog"},L:[{j:"div",Y:"ytp-overflow-panel-content",L:[{j:"div",Y:"ytp-overflow-panel-action-buttons",cG:"{{buttons}}"}]},{j:"button",BG:["ytp-overflow-panel-close","ytp-button"],S:{"data-tooltip-title":"Close",title:R.D().B("player_tooltip_data_title_killswitch")?"Close":""},L:[g.ah()]}]},250);this.actionButtons=[];this.T=this.sZ("ytp-overflow-panel-content");this.closeButton=this.sZ("ytp-overflow-panel-close");this.C(this.closeButton,
"click",this.nC);dZ(R,this.closeButton,this);this.listen("click",this.tZ);this.C(R,"videoplayerreset",this.hide);this.C(R,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
K_N=function(R,F){R.actionButtons.includes(F)||(R.actionButtons.push(F),R.updateValue("buttons",R.actionButtons))};
DYe=function(R,F){R=g.m(R.actionButtons);for(var n=R.next();!n.done;n=R.next())n.value.Un(F)};
i7J=function(R,F,n){var V=g.cR(F,n),r=V.BB("default.jpg");g.N.call(this,{j:"a",BG:["ytp-video-menu-item","ytp-button"],S:{role:"menuitemradio","aria-label":V.title,href:R.D().getVideoUrl(V.videoId,F.listId?F.listId.toString():null)},L:[{j:"div",Y:"ytp-video-menu-item-index",cG:String(n+1)},{j:"div",Y:"ytp-video-menu-item-now-playing",cG:"\u25b6"},{j:"div",Y:"ytp-video-menu-item-thumbnail",S:{style:r?"background-image: url("+r+");":void 0}},{j:"div",Y:"ytp-video-menu-item-title",cG:V.title},{j:"div",
Y:"ytp-video-menu-item-author",cG:V.author}]});this.api=R;this.index=n;this.listen("click",this.onClick)};
xYk=function(R){ti.call(this,R,{j:"div",Y:"ytp-playlist-menu",S:{role:"dialog",id:tn()},L:[{j:"div",Y:"ytp-playlist-menu-header",L:[{j:"div",Y:"ytp-playlist-menu-title",L:[R.D().N?{j:"span",Y:"ytp-playlist-menu-title-name",cG:"{{title}}"}:{j:"a",Y:"ytp-playlist-menu-title-name",S:{href:"{{playlisturl}}"},cG:"{{title}}"},{j:"button",BG:["ytp-playlist-menu-close","ytp-button"],S:{"aria-label":"Close"},L:[g.ah()]}]},{j:"div",Y:"ytp-playlist-menu-subtitle",cG:"{{subtitle}}"}]},{j:"div",Y:"ytp-playlist-menu-items",
S:{role:"menu"}}]},250);this.api=R;this.U=this.selected=this.N=this.playlist=null;this.items=this.sZ("ytp-playlist-menu-items");this.T=new g.AQ(this);this.playlistData=[];this.C(this.sZ("ytp-playlist-menu-close"),"click",this.nC);var F=this.sZ("ytp-playlist-menu-title-name");R.D().N||(this.U=this.C(F,"click",this.UPG));g.d(this,this.T);this.hide()};
QJ=function(R,F){var n={};g.N.call(this,{j:"button",BG:["ytp-playlist-menu-button","ytp-button"],S:(n.title=R.B("player_tooltip_data_title_killswitch")?"{{title}}":"",n["data-tooltip-title"]="{{tooltip-title}}",n["aria-owns"]=String(F.element.id),n["aria-haspopup"]="true",n["aria-label"]="Playlist",n["data-overlay-order"]="3",n),L:[{j:"div",Y:"ytp-playlist-menu-button-icon",L:[{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,S:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{j:"div",Y:"ytp-playlist-menu-button-title",cG:"{{playlistTitle}}"},{j:"div",Y:"ytp-playlist-menu-button-text",cG:"{{text}}"}]});var V=this;this.api=R;this.playlist=null;this.visible=!1;R.createClientVe(this.element,this,70344);this.C(R,"videodatachange",this.T);this.C(R,"videoplayerreset",this.T);this.C(R,"onPlaylistUpdate",this.T);this.C(R,"presentingplayerstatechange",this.CH);this.C(R,"appresize",this.CH);this.hide();this.T();dZ(R,this.element,this);this.listen("click",function(){R.logClick(V.element);
R.B("delhi_web_player_use_external_playlist_panel")?R.HG("onToggleExternalPlaylistPanel"):qJ(F,V.element,!1)})};
kEv=function(R,F){g.N.call(this,{j:"div",Y:"ytp-promotooltip-wrapper",L:[{j:"div",Y:"ytp-promotooltip-container",L:[{j:"div",Y:"ytp-promotooltip-content",L:[{j:"div",Y:"ytp-promotooltip-title",cG:"{{title}}"},{j:"div",Y:"ytp-promotooltip-details",cG:"{{details}}"}]},{j:"div",Y:"ytp-promotooltip-buttons",L:[{j:"div",Y:"ytp-promotooltip-dismiss-button",cG:"{{dismissButtonText}}",S:{tabindex:"0"}},{j:"div",Y:"ytp-promotooltip-accept-button",cG:"{{acceptButtonText}}",S:{tabindex:"0","aria-haspopup":"true"}}]}]},
{j:"div",Y:"ytp-promotooltip-pointer"}]});var n=this;this.tooltipRenderer=R;this.K=F;this.T=this.sourceElement=null;this.title=this.sZ("ytp-promotooltip-title");this.details=this.sZ("ytp-promotooltip-details");this.acceptButton=this.sZ("ytp-promotooltip-accept-button");this.dismissButton=this.sZ("ytp-promotooltip-dismiss-button");this.U=this.J=!1;this.N=!0;this.V=this.W=this.X=this.Z=!1;this.hJ={La:function(V){n.La(V)}};
this.dg(!1);R=this.tooltipRenderer.trackingParams||null;if(this.U=!!R)this.K.createServerVe(this.element,this,!0),this.K.setTrackingParams(this.element,R);this.C(F,"onShowControls",this.nj);this.C(F,"onHideControls",this.Mv);this.C(F,"resize",this.G9);this.C(this.acceptButton,"click",this.U5G);this.C(this.dismissButton,"click",this.Snz);this.C(document,"click",this.YZ)};
YLf=function(R){var F=document.querySelectorAll('[data-tooltip-target-id="'+R.tooltipRenderer.targetId+'"]');F=F.length>0?F[0]:null;var n=g.HI("ytp-chrome-bottom"),V=g.HI("ytp-ad-module");R.N=!(n==null||!n.contains(F));R.Z=!(V==null||!V.contains(F));R.X=!(F==null||!F.hasAttribute("data-tooltip-target-fixed"));return F};
dYV=function(R,F,n){if(!R.J){if(F){R.tooltipRenderer=F;F=R.tooltipRenderer.text;var V=!1,r;(F==null?0:(r=F.runs)==null?0:r.length)&&F.runs[0].text&&(R.update({title:F.runs[0].text.toString()}),V=!0);g.av(R.title,V);F=R.tooltipRenderer.detailsText;r=!1;var v;if((F==null?0:(v=F.runs)==null?0:v.length)&&F.runs[0].text){V=F.runs[0].text.toString();v=V.indexOf("$TARGET_ICON");if(v>-1)if(R.tooltipRenderer.targetId){F=[];V=V.split("$TARGET_ICON");var f=new g.ze({j:"span",Y:"ytp-promotooltip-details-icon",
L:[JUV[R.tooltipRenderer.targetId]]});g.d(R,f);for(var z=[],q=g.m(V),Q=q.next();!Q.done;Q=q.next())Q=new g.ze({j:"span",Y:"ytp-promotooltip-details-component",cG:Q.value}),g.d(R,Q),z.push(Q);V.length===2?(F.push(z[0].element),F.push(f.element),F.push(z[1].element)):V.length===1&&(v===0?(F.push(f.element),F.push(z[0].element)):(F.push(z[0].element),F.push(f.element)));v=F.length?F:null}else v=null;else v=V;if(v){if(typeof v!=="string")for(g.Ko(R.details),r=g.m(v),v=r.next();!v.done;v=r.next())R.details.appendChild(v.value);
else R.update({details:v});r=!0}}g.av(R.details,r);r=R.tooltipRenderer.acceptButton;v=!1;var c,w,L;((c=g.A(r,Iw))==null?0:(w=c.text)==null?0:(L=w.runs)==null?0:L.length)&&g.A(r,Iw).text.runs[0].text&&(R.update({acceptButtonText:g.A(r,Iw).text.runs[0].text.toString()}),v=!0);g.av(R.acceptButton,v);c=R.tooltipRenderer.dismissButton;w=!1;var S,p,C;((S=g.A(c,Iw))==null?0:(p=S.text)==null?0:(C=p.runs)==null?0:C.length)&&g.A(c,Iw).text.runs[0].text&&(R.update({dismissButtonText:g.A(c,Iw).text.runs[0].text.toString()}),
w=!0);g.av(R.dismissButton,w)}n&&(R.sourceElement=n);R.T=YLf(R);R.W=!1;R.K.D().B("web_player_hide_nitrate_promo_tooltip")||R.dg(!0);GEN(R);R.JJ&&!R.V&&(R.V=!0,R.hJ.La(0));R.U&&R.K.logVisibility(R.element,R.JJ)}};
cy=function(R){R.dg(!1);R.U&&R.K.logVisibility(R.element,R.JJ)};
MvI=function(R){var F,n,V,r=((F=g.A(R.acceptButton,Iw))==null?void 0:(n=F.text)==null?void 0:(V=n.runs)==null?void 0:V.length)&&!!g.A(R.acceptButton,Iw).text.runs[0].text,v,f,z;F=((v=g.A(R.dismissButton,Iw))==null?void 0:(f=v.text)==null?void 0:(z=f.runs)==null?void 0:z.length)&&!!g.A(R.dismissButton,Iw).text.runs[0].text;return r||F};
GEN=function(R){var F;if(!(F=!R.T)){F=R.T;var n=window.getComputedStyle(F);F=n.display==="none"||n.visibility==="hidden"||F.getAttribute("aria-hidden")==="true"}if(F||R.K.isMinimized())R.dg(!1);else if(F=g.A_(R.T),F.width&&F.height){R.K.Du(R.element,R.T);var V=R.K.fH().getPlayerSize().height;n=g.A_(R.sZ("ytp-promotooltip-container")).height;R.N?R.element.style.top=V-n-F.height-12+"px":R.X||(V=R.K.Rs().height-n-F.height-12,R.element.style.top=V+"px");V=R.sZ("ytp-promotooltip-pointer");var r=g.pY(R.T,
R.K.getRootNode()),v=Number(R.element.style.left.replace(/[^\d\.]/g,""));R=R.K.isFullscreen()?18:12;V.style.left=r.x-v+F.width/2-R+"px";V.style.top=n+"px"}else R.dg(!1)};
wU=function(R){g.N.call(this,{j:"button",BG:["ytp-replay-button","ytp-button"],S:{title:R.B("player_tooltip_data_title_killswitch")?"Replay":"","data-tooltip-title":"Replay"},L:[g.W5()]});this.K=R;this.C(R,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.nX(R.getPlayerStateObject());dZ(this.K,this.element,this)};
Sy=function(R,F){F=F===void 0?240:F;g.N.call(this,{j:"button",BG:["ytp-button","ytp-search-button"],S:{title:R.B("player_tooltip_data_title_killswitch")?"Search":"","data-tooltip-title":"Search","data-tooltip-opaque":String(g.Pp(R.D()))},L:[{j:"div",Y:"ytp-search-icon",cG:"{{icon}}"},{j:"div",Y:"ytp-search-title",cG:"Search"}]});this.api=R;this.U=F;this.visible=!1;this.updateValue("icon",{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",Y:"ytp-svg-fill",S:{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"}}]});
R.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.T();this.C(R,"appresize",this.T);this.C(R,"videodatachange",this.T);dZ(R,this.element,this)};
LU=function(R){g.N.call(this,{j:"div",Y:"ytp-seek-overlay",L:[{j:"div",BG:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],L:[{j:"div",BG:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],L:[{j:"svg",S:{viewBox:"0 0 22 32",width:"22",height:"24"},L:[{j:"path",S:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{j:"div",Y:"ytp-seek-overlay-duration",cG:"{{durationBack}}"}]},{j:"div",BG:["ytp-seek-overlay-animation",
"ytp-seek-overlay-animation-forward"],L:[{j:"div",Y:"ytp-seek-overlay-duration",cG:"{{durationForward}}"},{j:"div",BG:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],L:[{j:"svg",S:{viewBox:"0 0 22 32",width:"22",height:"24"},L:[{j:"path",S:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{j:"div",Y:"ytp-seek-overlay-message",L:[{j:"div",Y:"ytp-seek-overlay-message-icon",cG:"{{icon}}"},{j:"div",Y:"ytp-seek-overlay-message-text",
cG:"{{text}}"}]}]});var F=this;this.K=R;this.W=0;this.T="hidden";this.X=this.sZ("ytp-seek-overlay-animation-back");this.V=this.sZ("ytp-seek-overlay-animation-forward");this.Nq=this.sZ("ytp-seek-overlay-message");this.Z=new g.ZK(function(){lSv(F)},g.Vn(this.K.D().experiments,"web_player_seek_overlay_linger_duration")||1E3);
g.d(this,this.Z);this.K.createClientVe(this.V,this,28240);this.K.createClientVe(this.X,this,28239);this.K.logVisibility(this.V,!0);this.K.logVisibility(this.X,!0);this.hide()};
NXj=function(R,F){R.N=R.J.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:F},{offset:1,opacity:1}],{duration:200,fill:"forwards"});R.N.addEventListener("finish",function(){R.N=void 0;R.Z.start();R.T="lingering"})};
EJV=function(R,F,n,V){n=n===void 0?!1:n;V=V===void 0?!1:V;var r=[];r.push({offset:0,transform:"translateX("+(R.U===-1?20:-20)+"px)",opacity:n?"0":"1"});n&&r.push({offset:.5,opacity:"1"});r.push({offset:1,transform:"translateX(0)",opacity:"1"});n=F.animate(r,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});F=F.querySelector("path");r=[];var v={offset:0,d:R.U===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};V&&(v.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");r.push(v);
V&&r.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});R={offset:1,d:R.U===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};V&&(R.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");r.push(R);F.animate(r,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return n};
$Yf=function(R){var F=R.J.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);F.classList.add("ytp-seek-overlay-arrow-additional");F.classList.remove("ytp-seek-overlay-arrow-persistent");R.J.appendChild(F);EJV(R,F,!0,!0).addEventListener("finish",function(){F.remove()})};
lSv=function(R,F,n){n=n===void 0?!0:n;R.N=R.J.animate([{offset:0,opacity:F===void 0?1:F},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});n&&(R.N.addEventListener("finish",function(){R.N=void 0;PPN(R);R.hide()}),R.T="fading-out")};
b76=function(R){var F=Number(getComputedStyle(R.J).opacity),n;(n=R.N)==null||n.cancel();R.N=void 0;return F};
PPN=function(R){R.W=0;R.T="hidden";R.U=void 0;R.J=void 0;R.Z.stop();R.N=void 0};
Z7E=function(R,F,n){R.updateValue("text",F);if(n){a:{switch(n){case "PREMIUM_STANDALONE":F=qwW();break a;case "PREMIUM_STANDALONE_CAIRO":F=QxV();break a}F=void 0}R.updateValue("icon",F)}F=g.m(R.Nq.getAnimations());for(n=F.next();!n.done;n=F.next())n.value.cancel();R.Nq.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){R.updateValue("text","");R.updateValue("icon","")})};
sc=function(R,F,n,V){V=V===void 0?240:V;g.N.call(this,{j:"button",BG:["ytp-button","ytp-share-button"],S:{title:R.B("player_tooltip_data_title_killswitch")?"Share":"","data-tooltip-title":"Share","aria-haspopup":"true","aria-owns":n.element.id,"data-tooltip-opaque":String(g.Pp(R.D()))},L:[{j:"div",Y:"ytp-share-icon",cG:"{{icon}}"},{j:"div",Y:"ytp-share-title",cG:"Share"}]});this.api=R;this.T=F;this.U=n;this.N=V;this.visible=!1;this.tooltip=this.T.q8();R.createClientVe(this.element,this,28664);this.listen("click",
this.onClick);this.C(R,"videodatachange",this.CH);this.C(R,"videoplayerreset",this.CH);this.C(R,"appresize",this.CH);this.C(R,"presentingplayerstatechange",this.CH);this.CH();this.addOnDisposeCallback(g.G9(this.tooltip,this.element))};
eZW=function(R){var F=R.api.D(),n=R.api.getVideoData(),V=g.Pp(F)&&g.PK(R.api)&&g.E(R.api.getPlayerStateObject(),128);F=F.N||F.disableSharing&&R.api.getPresentingPlayerType()!==2||!n.showShareButton||n.mz||V||n.On||!1;V=R.api.fH().getPlayerSize().width;return!!n.videoId&&V>=R.N&&!F};
RfJ=function(R,F){F.name!=="InvalidStateError"&&F.name!=="AbortError"&&(F.name==="NotAllowedError"?(R.T.EJ(),qJ(R.U,R.element,!1)):g.uX(F))};
nOV=function(R,F){var n=tn(),V=R.D();n={j:"div",Y:"ytp-share-panel",S:{id:tn(),role:"dialog","aria-labelledby":n},L:[{j:"div",Y:"ytp-share-panel-inner-content",L:[{j:"div",Y:"ytp-share-panel-title",S:{id:n},cG:"Share"},{j:"a",BG:["ytp-share-panel-link","ytp-no-contextmenu"],S:{href:"{{link}}",target:V.UZ,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},cG:"{{linkText}}"},{j:"label",Y:"ytp-share-panel-include-playlist",L:[{j:"input",Y:"ytp-share-panel-include-playlist-checkbox",S:{type:"checkbox",
checked:"true"}},"Include playlist"]},{j:"div",Y:"ytp-share-panel-loading-spinner",L:[WN()]},{j:"div",Y:"ytp-share-panel-service-buttons",cG:"{{buttons}}"},{j:"div",Y:"ytp-share-panel-error",cG:"An error occurred while retrieving sharing information. Please try again later."}]},{j:"button",BG:["ytp-share-panel-close","ytp-button"],S:{title:"Close"},L:[g.ah()]}]};ti.call(this,R,n,250);var r=this;this.moreButton=null;this.api=R;this.tooltip=F.q8();this.U=[];this.J=this.sZ("ytp-share-panel-inner-content");
this.closeButton=this.sZ("ytp-share-panel-close");this.C(this.closeButton,"click",this.nC);this.addOnDisposeCallback(g.G9(this.tooltip,this.closeButton));this.N=this.sZ("ytp-share-panel-include-playlist-checkbox");this.C(this.N,"click",this.CH);this.T=this.sZ("ytp-share-panel-link");this.addOnDisposeCallback(g.G9(this.tooltip,this.T));this.api.createClientVe(this.T,this,164503);this.C(this.T,"click",function(v){v.preventDefault();r.api.logClick(r.T);var f=r.api.getVideoUrl(!0,!0,!1,!1);f=Fif(r,f);
g.HN(f,r.api,v)&&r.api.HG("SHARE_CLICKED")});
this.listen("click",this.XF);this.C(R,"videoplayerreset",this.hide);this.C(R,"fullscreentoggled",this.onFullscreenToggled);this.C(R,"onLoopRangeChange",this.epG);this.hide()};
vON=function(R,F){VOe(R);for(var n=F.links||F.shareTargets,V=0,r={},v=0;v<n.length&&V<2;r={Ot:void 0,jU:void 0},v++){r.Ot=n[v];a:switch(r.Ot.img||r.Ot.iconId){case "facebook":var f={j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},L:[{j:"rect",S:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{j:"path",S:{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 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":f={j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},L:[{j:"rect",S:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{j:"path",S:{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 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:f=null}if(f){var z=r.Ot.sname||r.Ot.serviceName;r.jU=new g.N({j:"a",BG:["ytp-share-panel-service-button","ytp-button"],S:{href:r.Ot.url,target:"_blank",title:z},L:[f]});r.jU.listen("click",function(c){return function(w){var L=c.Ot.url;if(g.y2(w)){var S=S===void 0?{}:S;S.target=S.target||"YouTube";S.width=S.width||"600";S.height=S.height||"600";var p=S;p||(p={});S=window;var C=L instanceof y1?L:g.h8(typeof L.href!="undefined"?L.href:String(L));var y=self.crossOriginIsolated!==
void 0,u="strict-origin-when-cross-origin";window.Request&&(u=(new Request("/")).referrerPolicy);var B=p.noreferrer;if(y&&B&&u==="unsafe-url")throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");u=B&&!y;L=p.target||L.target;B=[];var O=[],K=!1;for(J in p){var M=p[J];switch(J){case "width":case "height":case "top":case "left":B.push(J+"="+M);break;case "target":break;case "noopener":case "noreferrer":M?O.push(J):(K=!0,O.push(J+"=false"));
break;case "attributionsrc":B.push(J+(M?"="+M:""));break;default:B.push(J+"="+(M?1:0))}}var J=L!==void 0&&!["_blank","_self","_top","_parent",""].includes(L);J=sj()&&J;rYe&&y&&B.length===0&&O.length>0&&!J&&!K?(O.length===2&&(O=["noreferrer"]),g.Ie(S,C,L,O[0]),S=Oe6()):(y=B.join(","),Fr()&&S.navigator&&S.navigator.standalone&&L&&L!="_self"?(y=g.gu("A"),g.uS(y,C),y.target=L,u&&(y.rel="noreferrer"),((p=p.attributionsrc)||p==="")&&y.setAttribute("attributionsrc",p),p=document.createEvent("MouseEvent"),
p.initMouseEvent("click",!0,!0,S,1),y.dispatchEvent(p),S=Oe6()):u?(S=g.Ie(S,"",L,y),p=g.Uj(C),S&&(S.opener=null,p===""&&(p="javascript:''"),p='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+$6(p)+'">',p=go(p),(C=S.document)&&C.write&&(C.write(Oj(p)),C.close()))):((S=g.Ie(S,C,L,y))&&p.noopener&&(S.opener=null),S&&p.noreferrer&&(S.opener=null)));S&&(S.opener||(S.opener=window),S.focus());w.preventDefault()}}}(r));
r.jU.addOnDisposeCallback(g.G9(R.tooltip,r.jU.element));z==="Facebook"?R.api.createClientVe(r.jU.element,r.jU,164504):z==="Twitter"&&R.api.createClientVe(r.jU.element,r.jU,164505);R.C(r.jU.element,"click",function(c){return function(){R.api.logClick(c.jU.element)}}(r));
R.api.logVisibility(r.jU.element,!0);R.U.push(r.jU);V++}}var q=F.more||F.moreLink,Q=new g.N({j:"a",BG:["ytp-share-panel-service-button","ytp-button"],L:[{j:"span",Y:"ytp-share-panel-service-button-more",L:[{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},L:[{j:"rect",S:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{j:"path",S:{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"}}]}]}],S:{href:q,target:"_blank",title:"More"}});Q.listen("click",function(c){var w=q;R.api.logClick(R.moreButton.element);w=Fif(R,w);g.HN(w,R.api,c)&&R.api.HG("SHARE_CLICKED")});
Q.addOnDisposeCallback(g.G9(R.tooltip,Q.element));R.api.createClientVe(Q.element,Q,164506);R.C(Q.element,"click",function(){R.api.logClick(Q.element)});
R.api.logVisibility(Q.element,!0);R.U.push(Q);R.moreButton=Q;R.updateValue("buttons",R.U)};
Fif=function(R,F){var n={};g.Pp(R.api.D())&&(g.u4(R.api,"addEmbedsConversionTrackingParams",[n]),F=g.DI(F,n));return F};
VOe=function(R){for(var F=g.m(R.U),n=F.next();!n.done;n=F.next())n=n.value,n.detach(),g.Cv(n);R.U=[]};
pU=function(R){return R===void 0||R.startSec===void 0||R.endSec===void 0?!1:!0};
flf=function(R,F){R.startSec+=F;R.endSec+=F};
zfv=function(R){LN.call(this,R);this.N=this.T=this.isContentForward=this.Z=!1;this.element.setAttribute("data-overlay-order","8");tO_(this);this.C(this.K,"changeProductsInVideoVisibility",this.y02);this.C(this.K,"videodatachange",this.onVideoDataChange)};
qtk=function(R){R.W&&R.Mq.element.removeChild(R.W.element);R.W=void 0};
cY6=function(R,F){return F.map(function(n){var V,r;if((n=(V=g.A(n,QPI))==null?void 0:(r=V.thumbnail)==null?void 0:r.thumbnails)&&n.length!==0)return n[0].url}).filter(function(n){return n!==void 0}).map(function(n){n=new g.N({j:"img",
Y:"ytp-suggested-action-product-thumbnail",S:{alt:"",src:n}});g.d(R,n);return n})};
wiN=function(R,F){R.isContentForward=F;g.ws(R.badge.element,"ytp-suggested-action-badge-content-forward",F)};
Xw=function(R){var F=R.isContentForward&&!R.i6();g.ws(R.badge.element,"ytp-suggested-action-badge-preview-collapsed",F&&R.T);g.ws(R.badge.element,"ytp-suggested-action-badge-preview-expanded",F&&R.N)};
AG=function(R,F,n){return new g.NQ(R*1E3,F*1E3,{priority:9,namespace:n})};
StV=function(R){R.K.Bw("shopping_overlay_visible");R.K.Bw("shopping_overlay_preview_collapsed");R.K.Bw("shopping_overlay_preview_expanded");R.K.Bw("shopping_overlay_expanded")};
tO_=function(R){R.C(R.K,g.$A("shopping_overlay_visible"),function(){R.QG(!0)});
R.C(R.K,g.Pl("shopping_overlay_visible"),function(){R.QG(!1)});
R.C(R.K,g.$A("shopping_overlay_expanded"),function(){R.J1=!0;S6(R)});
R.C(R.K,g.Pl("shopping_overlay_expanded"),function(){R.J1=!1;S6(R)});
R.C(R.K,g.$A("shopping_overlay_preview_collapsed"),function(){R.T=!0;Xw(R)});
R.C(R.K,g.Pl("shopping_overlay_preview_collapsed"),function(){R.T=!1;Xw(R)});
R.C(R.K,g.$A("shopping_overlay_preview_expanded"),function(){R.N=!0;Xw(R)});
R.C(R.K,g.Pl("shopping_overlay_preview_expanded"),function(){R.N=!1;Xw(R)})};
pi_=function(R){g.N.call(this,{j:"div",Y:"ytp-shorts-title-channel",L:[{j:"a",Y:"ytp-shorts-title-channel-logo",S:{href:"{{channelLink}}",target:R.D().UZ,"aria-label":"{{channelLogoLabel}}"}},{j:"div",Y:"ytp-shorts-title-expanded-heading",L:[{j:"div",Y:"ytp-shorts-title-expanded-title",L:[{j:"a",cG:"{{expandedTitle}}",S:{href:"{{channelTitleLink}}",target:R.D().UZ,tabIndex:"0"}}]}]}]});var F=this;this.api=R;this.T=this.sZ("ytp-shorts-title-channel-logo");this.channelName=this.sZ("ytp-shorts-title-expanded-title");
this.subscribeButton=null;R.createClientVe(this.T,this,36925);this.C(this.T,"click",function(n){F.api.logClick(F.T);g.Ie(window,LiE(F));n.preventDefault()});
R.createClientVe(this.channelName,this,37220);this.C(this.channelName,"click",function(n){F.api.logClick(F.channelName);g.Ie(window,LiE(F));n.preventDefault()});
sPN(this);this.C(R,"videodatachange",this.CH);this.C(R,"videoplayerreset",this.CH);this.CH()};
sPN=function(R){if(!R.api.D().YF){var F=R.api.getVideoData(),n=new g.$Y("Subscribe",null,"Subscribed",null,!0,!1,F.By,F.subscribed,"channel_avatar",null,R.api,!0);R.api.createServerVe(n.element,R);var V;R.api.setTrackingParams(n.element,((V=F.subscribeButtonRenderer)==null?void 0:V.trackingParams)||null);R.C(n.element,"click",function(){R.api.logClick(n.element)});
R.subscribeButton=n;g.d(R,R.subscribeButton);R.subscribeButton.KH(R.element)}};
LiE=function(R){var F=R.api.D(),n=R.api.getVideoData();n=g.jT(F)+n.Y5;if(!g.Pp(F))return n;F={};g.u4(R.api,"addEmbedsConversionTrackingParams",[F]);return g.DI(n,F)};
an=function(R){ti.call(this,R,{j:"button",BG:["ytp-skip-intro-button","ytp-popup","ytp-button"],L:[{j:"div",Y:"ytp-skip-intro-button-text",cG:"Skip Intro"}]},100);var F=this;this.U=!1;this.T=new g.ZK(function(){F.hide()},5E3);
this.Iq=this.v5=NaN;g.d(this,this.T);this.X=function(){F.show()};
this.J=function(){F.hide()};
this.N=function(){var n=F.K.getCurrentTime();n>F.v5/1E3&&n<F.Iq/1E3&&F.show()};
this.C(this.K,"videodatachange",function(n,V){F.GP(n,V)});
this.C(this.element,"click",function(){F.K.seekTo(F.Iq/1E3)});
this.hide()};
CU=function(R){g.N.call(this,{j:"button",BG:["ytp-airplay-button","ytp-button"],S:{title:R.B("player_tooltip_data_title_killswitch")?"AirPlay":"","data-tooltip-title":"AirPlay","data-priority":"11"},cG:"{{icon}}"});this.K=R;this.listen("click",this.onClick);this.C(R,"airplayactivechange",this.CH);this.C(R,"airplayavailabilitychange",this.CH);this.CH();dZ(R,this.element,this)};
AY9=function(R){g.N.call(this,{j:"div",Y:"ytp-gradient-bottom"});this.U=g.gu("CANVAS");this.T=this.U.getContext("2d",{willReadFrequently:!0});this.N=NaN;this.U.width=1;Xiv(this,R.fH().getPlayerSize().height)};
Xiv=function(R,F){if(R.T){F=Math.floor(F*.4);F=Math.max(F,47);var n=F+2;if(R.N!==n){R.N=n;R.U.height=n;R.T.clearRect(0,0,1,n);var V=R.T.createLinearGradient(0,2,0,2+F),r=F-42;V.addColorStop(0,"rgba(0, 0, 0, 0)");V.addColorStop(r/F,"rgba(0, 0, 0, 0.3)");V.addColorStop(1,"rgba(0, 0, 0, 0.68)");R.T.fillStyle=V;R.T.fillRect(0,2,1,F);R.element.style.height=n+"px";try{R.element.style.backgroundImage="url("+R.U.toDataURL()+")"}catch(v){}}}};
To=function(R,F,n,V){g.N.call(this,{j:"div",Y:"ytp-chapter-container",L:[{j:"button",BG:["ytp-chapter-title","ytp-button"],L:[{j:"span",S:{"aria-hidden":"true"},Y:"ytp-chapter-title-prefix",cG:"\u2022"},{j:"div",Y:"ytp-chapter-title-content",cG:"{{chapterTitle}}",S:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:R.B("player_tooltip_data_title_killswitch")?V:"","data-tooltip-title":V}},{j:"div",Y:"ytp-chapter-title-chevron",L:[{j:"svg",S:{height:"100%",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",
S:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});this.K=R;this.J=F;this.Z="";this.currentIndex=0;this.U=void 0;this.N=!0;this.jQ=this.sZ("ytp-chapter-container");this.T=this.sZ("ytp-chapter-title");this.W=this.sZ("ytp-chapter-title-content");this.V();this.updateVideoData("newdata",this.K.getVideoData());this.C(R,"videodatachange",this.updateVideoData);this.C(R,"resize",this.V);this.C(this.jQ,"click",this.onClick);this.C(R,g.$A(n),this.M5);this.C(R,"onLoopRangeChange",
this.M5);this.C(R,"innertubeCommand",this.onClickCommand);(R=g.rg(this.K.D()))&&g.ws(this.T,"ytp-profile-page",!0);g.Pp(this.K.D())||R||dZ(this.K,this.W,this)};
on=function(R,F){To.call(this,R,F,"chapterCueRange","View chapter");this.X=""};
yJ=function(R){g.c5.call(this,{j:"button",BG:["ytp-expand-right-bottom-section-button","ytp-button"],S:{title:"{{title}}","aria-pressed":"{{pressed}}","data-priority":"1","data-title-no-tooltip":"{{data-title-no-tooltip}}"},L:[g.An()]});this.T=!1;this.listen("click",this.U);R.createClientVe(this.element,this,276954)};
al9=function(R,F,n,V,r){var v=F.m$/F.rows,f=Math.min(n/(F.bl/F.columns),V/v),z=F.bl*f,q=F.m$*f;z=Math.floor(z/F.columns)*F.columns;q=Math.floor(q/F.rows)*F.rows;var Q=z/F.columns,c=q/F.rows,w=-F.column*Q,L=-F.row*c;r&&v<=45&&(c-=1/f);Q-=2/f;R=R.style;R.width=Q+"px";R.height=c+"px";r||(V=(V-c)/2,n=(n-Q)/2,R.marginTop=Math.floor(V)+"px",R.marginBottom=Math.ceil(V)+"px",R.marginLeft=Math.floor(n)+"px",R.marginRight=Math.ceil(n)+"px");R.background="url("+F.url+") "+w+"px "+L+"px/"+z+"px "+q+"px"};
Uc=function(R,F){g.N.call(this,{j:"div",Y:"ytp-storyboard-framepreview",L:[{j:"div",Y:"ytp-storyboard-framepreview-timestamp",cG:"{{timestamp}}"},{j:"div",Y:"ytp-storyboard-framepreview-img"}]});this.api=R;this.U=this.sZ("ytp-storyboard-framepreview-img");this.T=null;this.frameIndex=NaN;this.events=new g.AQ(this);this.fade=new g.n5(this,100);g.d(this,this.events);g.d(this,this.fade);this.C(this.api,"presentingplayerstatechange",this.N);F&&this.C(this.element,"click",function(){F.w6()})};
C1_=function(R,F){var n=!!R.T;R.T=F;R.T?(n||(R.events.C(R.api,"videodatachange",function(){C1_(R,R.api.n4())}),R.events.C(R.api,"progresssync",R.onProgress),R.events.C(R.api,"appresize",R.J)),R.frameIndex=NaN,Thv(R),R.fade.show(200)):(n&&g.Kw(R.events),R.fade.hide(),R.fade.stop())};
Thv=function(R){var F=R.T,n=R.api.getCurrentTime(),V=R.api.fH().getPlayerSize(),r=tu(F,V.width);r=Rcv(F,r,n);R.update({timestamp:g.ot(n)});r!==R.frameIndex&&(R.frameIndex=r,Zjj(F,r,V.width),F=P8R(F,r,V.width),al9(R.U,F,V.width,V.height))};
oO9=function(R,F){g.N.call(this,{j:"button",BG:["ytp-fullscreen-button","ytp-button"],S:{title:R.B("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-label":"{{aria-label}}","aria-keyshortcuts":"f","data-priority":"12","data-title-no-tooltip":"{{data-title-no-tooltip}}"},cG:"{{icon}}"});this.K=R;this.U=F;this.message=null;this.T=g.G9(this.U.q8(),this.element);this.N=new g.ZK(this.xn,2E3,this);g.d(this,this.N);this.C(R,"fullscreentoggled",this.Ax);
this.C(R,"presentingplayerstatechange",this.CH);this.C(R,"resize",this.CH);this.listen("click",this.onClick);g.yu()&&(F=this.K.fH(),this.C(F,LEe(),this.XN),this.C(F,Sij(document),this.by));R.D().aG||R.D().X||this.disable();R.createClientVe(this.element,this,139117);this.CH();this.Ax(R.isFullscreen())};
yYN=function(R,F){return R.K.B("delhi_modern_web_player_icons")?F?{j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M3.29 3.29C3.11 3.46 3.01 3.70 3.00 3.94C2.98 4.19 3.06 4.43 3.22 4.63L3.29 4.70L7.58 8.99H5C4.73 8.99 4.48 9.10 4.29 9.29C4.10 9.47 4 9.73 4 9.99C4 10.26 4.10 10.51 4.29 10.70C4.48 10.89 4.73 10.99 5 10.99H11V4.99C11 4.73 10.89 4.47 10.70 4.29C10.51 4.10 10.26 3.99 10 3.99C9.73 3.99 9.48 4.10 9.29 4.29C9.10 4.47 9 4.73 9 4.99V7.58L4.70 3.29L4.63 3.22C4.43 3.06 4.19 2.98 3.94 3.00C3.70 3.01 3.46 3.11 3.29 3.29ZM19 13H13V19C13 19.26 13.10 19.51 13.29 19.70C13.48 19.89 13.73 20 14 20C14.26 20 14.51 19.89 14.70 19.70C14.89 19.51 15 19.26 15 19V16.41L19.29 20.70L19.36 20.77C19.56 20.92 19.80 21.00 20.04 20.99C20.29 20.98 20.52 20.87 20.70 20.70C20.87 20.52 20.98 20.29 20.99 20.04C21.00 19.80 20.92 19.56 20.77 19.36L20.70 19.29L16.41 15H19C19.26 15 19.51 14.89 19.70 14.70C19.89 14.51 20 14.26 20 14C20 13.73 19.89 13.48 19.70 13.29C19.51 13.10 19.26 13 19 13Z",
fill:"white"}}]}:{j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M10 3H3V10C3 10.26 3.10 10.51 3.29 10.70C3.48 10.89 3.73 11 4 11C4.26 11 4.51 10.89 4.70 10.70C4.89 10.51 5 10.26 5 10V6.41L9.29 10.70L9.36 10.77C9.56 10.92 9.80 11.00 10.04 10.99C10.29 10.98 10.52 10.87 10.70 10.70C10.87 10.52 10.98 10.29 10.99 10.04C11.00 9.80 10.92 9.56 10.77 9.36L10.70 9.29L6.41 5H10C10.26 5 10.51 4.89 10.70 4.70C10.89 4.51 11 4.26 11 4C11 3.73 10.89 3.48 10.70 3.29C10.51 3.10 10.26 3 10 3ZM20 13C19.73 13 19.48 13.10 19.29 13.29C19.10 13.48 19 13.73 19 14V17.58L14.70 13.29L14.63 13.22C14.43 13.07 14.19 12.99 13.95 13.00C13.70 13.01 13.47 13.12 13.29 13.29C13.12 13.47 13.01 13.70 13.00 13.95C12.99 14.19 13.07 14.43 13.22 14.63L13.29 14.70L17.58 19H14C13.73 19 13.48 19.10 13.29 19.29C13.10 19.48 13 19.73 13 20C13 20.26 13.10 20.51 13.29 20.70C13.48 20.89 13.73 21 14 21H21V14C21 13.73 20.89 13.48 20.70 13.29C20.51 13.10 20.26 13 20 13Z",
fill:"white"}}]}:F?{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"g",Y:"ytp-fullscreen-button-corner-2",L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{j:"g",Y:"ytp-fullscreen-button-corner-3",L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{j:"g",Y:"ytp-fullscreen-button-corner-0",L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{j:"g",Y:"ytp-fullscreen-button-corner-1",
L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]}:{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"g",Y:"ytp-fullscreen-button-corner-0",L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{j:"g",Y:"ytp-fullscreen-button-corner-1",L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{j:"g",Y:"ytp-fullscreen-button-corner-2",L:[{j:"path",AX:!0,Y:"ytp-svg-fill",
S:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{j:"g",Y:"ytp-fullscreen-button-corner-3",L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]}};
jy=function(R,F){g.N.call(this,{j:"button",BG:["ytp-button","ytp-jump-button"],S:{title:R.B("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},L:[F>0?{j:"svg",S:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",BG:["ytp-circle-arrow","ytp-svg-fill"],S:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}},
{j:"text",BG:["ytp-jump-button-text","ytp-svg-fill"],S:{x:"7.05",y:"15.05"}}]}:{j:"svg",S:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",BG:["ytp-circle-arrow","ytp-svg-fill"],S:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}},
{j:"text",BG:["ytp-jump-button-text","ytp-svg-fill"],S:{x:"6.5",y:"15"}}]}]});var n=this;this.K=R;this.T=F;this.U=new g.ZK(function(){n.N?(n.N=!1,n.U.start()):n.element.classList.remove("ytp-jump-spin","backwards")},250);
this.N=!1;(F=F>0)?this.K.createClientVe(this.element,this,36843):this.K.createClientVe(this.element,this,36844);var V=g.fy(F?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.T).toString()});this.K.B("player_tooltip_data_title_killswitch")?this.update({title:V,"data-title-no-tooltip":V,"aria-keyshortcuts":F?"\u2192":"\u2190"}):this.update({"tooltip-title":V,"data-title-no-tooltip":V,"aria-keyshortcuts":F?"\u2192":"\u2190"});this.J=this.element.querySelector(".ytp-jump-button-text");
this.J.textContent=Math.abs(this.T).toString();this.listen("click",this.onClick,this);dZ(R,this.element,this)};
Up_=function(R,F){F?R.element.classList.add("ytp-jump-button-enabled"):R.element.classList.remove("ytp-jump-button-enabled");R.K.logVisibility(R.element,F);R.K.Ew()};
Hy=function(R,F){To.call(this,R,F,"timedMarkerCueRange","View key moments");this.C(R,g.Pl("timedMarkerCueRange"),this.M5);this.C(R,"updatemarkervisibility",this.updateVideoData)};
jPJ=function(R){var F,n=(F=R.K.getVideoData())==null?void 0:F.Mq;if(n)for(R=R.J.SQ,n=g.m(n),F=n.next();!F.done;F=n.next())if(F=R[F.value]){var V=void 0,r=void 0,v=void 0;if(((V=F.onTap)==null?void 0:(r=V.innertubeCommand)==null?void 0:(v=r.changeEngagementPanelVisibilityAction)==null?void 0:v.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return F}};
hG=function(R){g.N.call(this,{j:"button",BG:["ytp-miniplayer-button","ytp-button"],S:{title:R.B("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"},L:["{{icon}}"]});this.K=R;this.visible=!1;this.listen("click",this.onClick);this.C(R,"fullscreentoggled",this.CH);this.K.B("player_tooltip_data_title_killswitch")?
this.update({title:g.Mj(R,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:HcW(this)}):this.update({"tooltip-title":g.Mj(R,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:HcW(this)});dZ(R,this.element,this);R.createClientVe(this.element,this,62946);this.CH()};
HcW=function(R){return R.K.B("delhi_modern_web_player_icons")?nhE():j8()};
Wy=function(R,F,n,V,r,v){v=v===void 0?!1:v;var f={j:"div",BG:["ytp-input-slider-section"],L:[{j:"input",Y:"ytp-input-slider",S:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}","aria-valuemin":"{{ariaMinValue}}","aria-valuemax":"{{ariaMaxValue}}","aria-valuenow":"{{ariaValueNow}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};r&&f.L.unshift(r);v&&f.BG.push("ytp-vertical-slider");g.N.call(this,f);this.N=R;this.W=F;this.Z=n;this.initialValue=V;this.header=r;this.J=0;
this.U=this.sZ("ytp-input-slider");this.T=V?V:R;this.init();this.C(this.U,"input",this.Ch);this.C(this.U,"keydown",this.Ez)};
uv=function(R,F,n){n=n===void 0?!1:n;R.J&&(cancelAnimationFrame(R.J),R.J=0);n?hfJ(R,R.T,F):Wi_(R,F)};
Wi_=function(R,F){R.T=F;R.update({slidervalue:R.T,ariaValueNow:R.T});R.U.valueAsNumber=R.T;uLN(R,F)};
hfJ=function(R,F,n){var V=performance.now(),r=n-F;if(r!==0){var v=function(f){f=(f-V)/400;f>1&&(f=1);Wi_(R,F+r*yHe(Bhj,UGJ(Bhj,f)));R.J=f<1?requestAnimationFrame(v):0};
R.J=requestAnimationFrame(v)}};
uLN=function(R,F){R.U.style.setProperty("--yt-slider-shape-gradient-percent",(F-R.N)/(R.W-R.N)*100+"%")};
By=function(R){var F=R.isMuted()?0:R.getVolume();Wy.call(this,0,100,1,F,void 0,!0);this.K=R;this.V=ZT(this.J1,10,this);this.X=!1;this.C(R,"onVolumeChange",this.onVolumeChange);this.C(this.element,"wheel",this.Nq)};
mpf=function(R,F){g.N.call(this,{j:"div",S:{tabindex:"0",title:R.B("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume","data-tooltip-offset-y":"-120"},BG:["ytp-volume-popover"]});var n=this;this.isVisible=!1;this.tooltip=F.q8();this.U=new By(R);g.d(this,this.U);this.U.KH(this.element);this.T=new g.ZK(function(){mU(n,!1)},300);
this.listen("mouseenter",function(){n.T.stop()});
this.listen("mouseleave",function(){n.T.start()});
this.listen("focus",function(){n.T.stop()});
this.C(this.U.U,"focus",function(){n.T.stop()});
this.listen("focusout",function(){n.T.start();n.element.dispatchEvent(new Event("blur"))});
this.addOnDisposeCallback(g.G9(F.q8(),this.element));g.d(this,this.T)};
mU=function(R,F){R.element.classList.toggle("ytp-volume-popover-hovering",F);R.isVisible=F;(R=R.element.closest(".ytp-chrome-bottom"))&&R.classList.toggle("ytp-volume-popover-showing",F)};
gU=function(R,F,n){n=n===void 0?!1:n;var V=R.D().Mq?{"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:R.B("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};V=R.B("delhi_modern_web_player")?{j:"div",Y:"ytp-mute-button",L:[{j:"button",S:V,BG:["ytp-volume-icon",
"ytp-button"],cG:"{{icon}}"}]}:{j:"button",BG:["ytp-mute-button","ytp-button"],S:V,L:[{j:"div",Y:"ytp-volume-icon",cG:"{{icon}}"}]};g.N.call(this,V);this.K=R;this.bS=n;this.U=null;this.Z=this.jQ=this.V=this.X=NaN;this.PG=this.Nq=null;this.W=[];this.J=[];this.visible=!1;this.N=this.T=this.J1=null;R.B("delhi_modern_web_player")&&this.update({"data-priority":4});n=this.K.D();this.updateValue("icon",ma());this.tooltip=F.q8();this.updateValue("dataTooltipOffsetY",0);this.N=g.HI("ytp-volume-icon",this.element);
V=this.K.B("delhi_modern_web_player_icons")?{j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",BG:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],S:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z",
fill:"#fff"}},{j:"path",Y:"ytp-svg-volume-animation-small-ripple",S:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05",
fill:"#fff"}},{j:"path",Y:"ytp-svg-volume-animation-big-ripple",S:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z",
fill:"#fff"}}]}:{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"defs",L:[{j:"clipPath",S:{id:"ytp-svg-volume-animation-mask"},L:[{j:"path",S:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{j:"path",S:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{j:"path",Y:"ytp-svg-volume-animation-mover",S:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{j:"clipPath",S:{id:"ytp-svg-volume-animation-slash-mask"},L:[{j:"path",Y:"ytp-svg-volume-animation-mover",
S:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{j:"path",AX:!0,BG:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],S:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{j:"path",AX:!0,BG:["ytp-svg-fill","ytp-svg-volume-animation-hider"],S:{"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.U=new g.ze(V);g.d(this,this.U);this.Nq=this.U.sZ("ytp-svg-volume-animation-speaker");this.PG=this.Nq.getAttribute("d");this.W=g.yX("ytp-svg-volume-animation-mover",this.U.element);this.K.B("delhi_modern_web_player_icons");this.J=g.yX("ytp-svg-volume-animation-hider",this.U.element);this.K.B("delhi_modern_web_player_icons");this.Mq=new JX;g.d(this,this.Mq);this.lS=new JX;g.d(this,this.lS);this.C(R,"appresize",this.HK);this.C(R,"onVolumeChange",this.onVolumeChange);R.B("delhi_modern_web_player")?
this.listen("click",this.AmH):this.listen("click",this.HS);n.Mq?(R.B("delhi_modern_web_player")&&!R.B("delhi_modern_web_player_horizontal_volume_controls")&&(this.T=new mpf(R,F),this.T.KH(this.element),g.d(this,this.T),this.C(this.N,"mouseover",this.Ld),this.C(this.N,"focus",this.Ld),this.C(this.N,"mouseout",this.Wb),this.C(this.N,"blur",this.Wb)),n=R.B("delhi_modern_web_player")?this.N:this.element,this.addOnDisposeCallback(g.G9(F.q8(),n))):gOJ(this);this.message=null;R.createClientVe(this.element,
this,28662);this.HK(R.fH().getPlayerSize());this.setVolume(R.getVolume(),R.isMuted())};
Ock=function(R,F){if(R.K.D().Mq){var n=g.Mj(R.K,"Mute","m"),V=g.Mj(R.K,"Unmute","m");n=F?V:n;R.K.D().B("player_tooltip_data_title_killswitch")?R.updateValue("title",n):R.update({"tooltip-title":n,"aria-label":n});R.update({"data-title-no-tooltip":F?"Unmute":"Mute"});R.tooltip.Ew()}};
Dpk=function(R,F){R.X=F;var n=R.PG;R.K.B("delhi_modern_web_player_icons")?R.U.sZ("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(F+") translate(-22,-12)")):F&&(n+=BKJ(Ilf,Kif,F));R.Nq.setAttribute("d",n)};
ice=function(R,F){var n;F===1?n=R.K.B("delhi_modern_web_player_icons")?{j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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"}}]}:ma():n=R.U;R.jQ=F;if(R.K.B("delhi_modern_web_player_icons"))R.U.sZ("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-F+") translate(-18,-12)")),R.U.sZ("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(R.X-F+") translate(-22, -12)"));else{for(var V=20*F,r=0;r<R.W.length;r++)R.W[r].setAttribute("transform","translate("+V+", "+V+")");for(V=0;V<R.J.length;V++){r=R.J[V];var v=void 0;if((v=r)==null?
0:v.style)r.style.display=F===0?"none":""}}n!==R.J1&&(R.updateValue("icon",n),R.J1=n)};
gOJ=function(R){var F=null,n="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/);F=new ti(R.K,{j:"span",BG:["ytp-popup","ytp-generic-popup"],S:{tabindex:"0"},L:[n[0],{j:"a",S:{href:"https://support.google.com/youtube/?p=noaudio",target:R.K.D().UZ},cG:n[2]},n[4]]},100,!0);g.d(R,F);F.hide();F.subscribe("show",function(V){R.K.Da(F,V)});
g.RL(R.K,F.element,4)};
g.Oc=function(R,F){g.N.call(this,{j:"button",BG:["ytp-play-button","ytp-button"],S:{title:R.B("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},cG:"{{icon}}"});this.K=R;this.T=null;this.transition=new JX;this.tooltip=F.q8();g.d(this,this.transition);R.createClientVe(this.element,this,36842);R.logVisibility(this.element,!0);this.C(R,"fullscreentoggled",this.onVideoDataChange);
this.C(R,"presentingplayerstatechange",this.onStateChange);this.C(R,"videodatachange",this.onVideoDataChange);this.nX(R.getPlayerStateObject());this.listen("click",this.sC,this);this.addOnDisposeCallback(g.G9(F.q8(),this.element))};
xpR=function(R,F){R=R.K.B("delhi_modern_web_player_icons");switch(F){case 1:return R?hn():H5();case 2:return R?t3J():fg_();case 3:return R?{j:"svg",S:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},L:[{j:"path",S:{d:"M11.29 2.92C14.85 1.33 18.87 1.06 22.61 2.15L22.96 2.26C26.56 3.40 29.67 5.74 31.75 8.89L31.95 9.19C33.90 12.28 34.77 15.93 34.42 19.56L34.38 19.93C34.04 22.79 32.96 25.51 31.25 27.83C29.53 30.14 27.23 31.97 24.59 33.12C21.95 34.27 19.05 34.71 16.18 34.40C13.32 34.08 10.59 33.02 8.26 31.32L7.97 31.10C4.87 28.73 2.71 25.33 1.88 21.52L3.34 21.20L4.81 20.88C5.49 24.00 7.25 26.77 9.79 28.72L10.27 29.07C12.19 30.40 14.41 31.22 16.74 31.44C19.06 31.65 21.40 31.27 23.53 30.31C25.66 29.35 27.50 27.86 28.88 25.98C30.26 24.10 31.13 21.89 31.40 19.58L31.46 18.98C31.68 16.00 30.90 13.03 29.25 10.54C27.60 8.05 25.17 6.18 22.34 5.22L21.77 5.04C19.02 4.23 16.08 4.33 13.38 5.31C10.68 6.29 8.37 8.11 6.77 10.5H10.5L10.65 10.50C11.03 10.54 11.38 10.73 11.63 11.02C11.88 11.31 12.01 11.69 11.99 12.07C11.97 12.46 11.81 12.82 11.53 13.08C11.25 13.35 10.88 13.49 10.5 13.5H1.5V4.5L1.50 4.34C1.54 3.97 1.71 3.63 1.99 3.38C2.27 3.13 2.62 3.00 3 3.00C3.37 3.00 3.72 3.13 4.00 3.38C4.28 3.63 4.45 3.97 4.49 4.34L4.5 4.5V8.51C6.21 6.07 8.56 4.13 11.29 2.92ZM24 18L15 12.75V23.25L24 18ZM3.02 19.73C2.63 19.82 2.29 20.05 2.08 20.39C1.86 20.72 1.79 21.13 1.88 21.52L4.81 20.88C4.77 20.69 4.69 20.50 4.57 20.34C4.46 20.18 4.32 20.04 4.15 19.94C3.99 19.83 3.80 19.76 3.61 19.72C3.41 19.69 3.21 19.69 3.02 19.73Z",
fill:"white"}}]}:g.W5();case 4:return R?LlN():Swj();default:return null}};
g.In=function(R,F,n){g.N.call(this,{j:"a",BG:[n?"ytp-next-button":"ytp-prev-button","ytp-button"],S:{role:"button",title:"{{title}}","data-tooltip-title":"{{tooltip-title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}",tabindex:"0"},L:[kJ6(n,R.B("delhi_modern_web_player_icons"))]});
var V=this;this.K=R;this.T=n;this.playlist=this.videoData=null;this.Z=!1;this.J=this.W=this.U=null;this.N=!1;this.tooltip=F.q8();n?R.createClientVe(this.element,this,6193):R.createClientVe(this.element,this,6194);this.C(R,"fullscreentoggled",this.onVideoDataChange);this.C(R,"videodatachange",this.onVideoDataChange);this.C(R,"onPlaylistUpdate",this.onVideoDataChange);this.C(R,"onLoopRangeChange",this.onVideoDataChange);this.T||this.C(R,"appresize",this.pu);this.C(R,"mdxpreviousnextchange",function(){Yte(V);
V.pu()});
this.onVideoDataChange()};
JYk=function(R){R.playlist&&R.playlist.unsubscribe("shuffle",R.onVideoDataChange,R)};
GJ6=function(R){return!!R.playlist&&!R.T&&!!R.videoData&&!R.videoData.isLivePlayback&&R.K.getCurrentTime()>=3&&R.K.getPresentingPlayerType()!==2};
dpf=function(R){var F=$M(R.K.WI());return F?R.T?F.hasNext():F.hasPrevious():!1};
Yte=function(R){var F={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},n=R.playlist!=null&&R.playlist.hasNext();n=g.PK(R.K)&&(!R.T||n);var V=R.T&&g.Fp(R.K),r=dpf(R),v=R.T&&R.K.getPresentingPlayerType()===5,f=g.Mj(R.K,"Next","SHIFT+n"),z=g.Mj(R.K,"Previous","SHIFT+p");if(v)F.title="Start video",F["tooltip-title"]="Start video";else if(R.N)F.title="Replay",F["tooltip-title"]="Replay";else if(n){var q=null;R.playlist&&
(q=g.cR(R.playlist,R.T?oYV(R.playlist):yrj(R.playlist)));if(q){if(q.videoId){var Q=R.playlist.listId;F.url=R.K.D().getVideoUrl(q.videoId,Q?Q.toString():void 0)}F.text=q.title;F.duration=q.lengthText?q.lengthText:q.lengthSeconds?g.ot(q.lengthSeconds):null;F.preview=q.BB("mqdefault.jpg")}R.T?(F.title=f,F["tooltip-title"]=f,F["data-title-no-tooltip"]="Next",F["aria-keyshortcuts"]="SHIFT+n"):(F.title=z,F["tooltip-title"]=z,F["data-title-no-tooltip"]="Previous",F["aria-keyshortcuts"]="SHIFT+p")}else if(V){if(z=
(q=R.videoData)==null?void 0:g.yq(q))F.url=z.n6(),F.text=z.title,F.duration=z.lengthText?z.lengthText:z.lengthSeconds?g.ot(z.lengthSeconds):null,F.preview=z.BB("mqdefault.jpg");F.title=f;F["tooltip-title"]=f;F["data-title-no-tooltip"]="Next";F["aria-keyshortcuts"]="SHIFT+n"}F.disabled=!V&&!n&&!r&&!v;R.update(F);R.Z=!!F.url;V||n||R.N||r||v?R.U||(R.U=g.G9(R.tooltip,R.element),R.W=R.listen("click",R.onClick,R)):R.U&&(R.U(),R.U=null,R.ZO(R.W),R.W=null);R.tooltip.Ew();g.ws(R.element,"ytp-playlist-ui",
R.T&&(n||R.K.B("web_hide_next_button")))};
kJ6=function(R,F){return R?F?V3f():yH():F?{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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"}}]}:cL6()};
lle=function(R,F){g.N.call(this,{j:"div",Y:"ytp-fine-scrubbing",L:[{j:"div",Y:"ytp-fine-scrubbing-draggable",L:[{j:"div",Y:"ytp-fine-scrubbing-thumbnails",S:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{j:"div",S:{"aria-hidden":"true"},Y:"ytp-fine-scrubbing-cursor"},{j:"div",Y:"ytp-fine-scrubbing-seek-time",S:{"aria-hidden":"true"},
cG:"{{seekTime}}"},{j:"div",Y:"ytp-fine-scrubbing-play",L:[R.B("delhi_modern_web_player_icons")?hn():H5()],S:{title:"Play from this position",role:"button"}},{j:"div",Y:"ytp-fine-scrubbing-dismiss",L:[g.ah()],S:{title:"Exit precise seeking",role:"button"}}]});var n=this;this.api=R;this.W=this.sZ("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.sZ("ytp-fine-scrubbing-dismiss");this.jQ=this.sZ("ytp-fine-scrubbing-draggable");this.playButton=this.sZ("ytp-fine-scrubbing-play");this.thumbnails=
[];this.U=[];this.bS=this.T=0;this.Mq=void 0;this.Nq=NaN;this.Y5=this.V=this.N=this.X=0;this.J=[];this.interval=this.frameCount=0;this.Z=160;this.scale=1;this.gX=0;this.isEnabled=this.PG=!1;MO6(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.G9(F,this.dismissButton));this.addOnDisposeCallback(g.G9(F,this.playButton));this.lS=new g.WB(this.jQ,!0);this.lS.subscribe("dragstart",this.T1,this);this.lS.subscribe("dragmove",this.y$,this);this.lS.subscribe("dragend",this.gO,this);this.C(R,"SEEK_COMPLETE",
this.Cj);R.B("web_fix_fine_scrubbing_false_play")&&this.C(R,"rootnodemousedown",function(V){n.J1=V});
this.W.addEventListener("keydown",function(){});
g.d(this,this.lS);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.W,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)};
MO6=function(R,F){var n=g.ot(F),V=g.fy("Seek to $PROGRESS",{PROGRESS:g.ot(F,!0)});R.update({ariamin:0,ariamax:Math.floor(R.api.getDuration()),arianow:Math.floor(F),arianowtext:V,seekTime:n})};
NhN=function(R){R.Nq=NaN;R.V=0;R.X=R.N};
P19=function(R){var F=R.api.n4();if(F){var n=90*R.scale,V=tu(F,160*R.scale);if(F=F.levels[V]){R.Z=F.width;if(!R.J.length){V=[];for(var r=z7(F,F.DS()),v=F.columns*F.rows,f=F.frameCount,z=0;z<=r;z++)for(var q=f<v?Math.ceil(f/F.columns):F.rows,Q=0;Q<F.rows;Q++){var c=f<F.columns?f:F.columns,w={url:F.rD(z),column:0,columns:c,row:Q,rows:q,bl:F.width*c,m$:F.height*q};V.push(w);f-=c;if(f<=1)break}R.J=V;R.frameCount=F.zN();R.interval=F.T/1E3||R.api.getDuration()/R.frameCount}for(;R.thumbnails.length>R.J.length;)V=
void 0,(V=R.thumbnails.pop())==null||V.dispose();for(;R.thumbnails.length<R.J.length;)V=new EOj,R.thumbnails.push(V),V.KH(R.W),g.d(R,V);for(V=0;V<R.J.length;V++)r=R.thumbnails[V].element,v=R.J[V],f=R.Z*R.scale,z=v.m$/v.rows,q=n/z,r.style.background="url("+v.url+") 0 "+-v.row*v.m$/v.rows*q+"px/"+f*F.columns+"px "+z*v.rows*q+"px",r.style.width=f*v.columns+"px",r.style.height=n+"px";KU(R,R.api.getCurrentTime());for(n=R.api.getVideoData().oC;R.U.length>n.length;)V=void 0,(V=R.U.pop())==null||V.dispose();
for(;R.U.length<n.length;)V=new $p9,R.U.push(new $p9),g.d(R,V);for(V=0;V<n.length;V++)r=n[V],R.U[V].update({chapterTitle:r.title}),r=Math.round(r.startTime/F.T),v=Math.floor(r/F.rows),g.fY(R.U[V].element,"transform","translateX("+r%F.rows*R.Z*R.scale+"px)"),v<R.thumbnails.length&&R.thumbnails[v]&&R.U[V].KH(R.thumbnails[v].element);R.PG=!0}}};
KU=function(R,F){R.J1&&(R.J1.Oy=!0);R.update({seekTime:g.ot(F)});var n=R.Z*R.scale;F=F<R.interval/2?-F*n/R.interval*2+R.T/2:-F*n/R.interval-n/2+R.T/2;F=g.vI(F,bcI(R),R.T/2);R.X=F;R.N=R.X;g.fY(R.jQ,"transform","translateX("+(R.X-R.T/2)+"px)");g.fY(R.jQ,"padding","0px "+R.T/2+"px");g.fY(R.W,"position","relative")};
Zce=function(R,F){var n=R.Z*R.scale;F-=R.T/2;return F>-n?-F/n*R.interval*.5:-(F+n/2)/n*R.interval};
bcI=function(R){return-((R.W.offsetWidth||(R.frameCount-1)*R.Z*R.scale)-R.T/2)};
EOj=function(){g.N.call(this,{j:"div",Y:"ytp-fine-scrubbing-thumbnail"})};
$p9=function(){g.N.call(this,{j:"div",Y:"ytp-fine-scrubbing-chapter-title",L:[{j:"div",Y:"ytp-fine-scrubbing-chapter-title-content",cG:"{{chapterTitle}}"}]})};
efv=function(R){g.N.call(this,{j:"div",Y:"ytp-heat-map-chapter",L:[{j:"svg",Y:"ytp-heat-map-svg",S:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},L:[{j:"defs",L:[{j:"clipPath",S:{id:"{{id}}"},L:[{j:"path",Y:"ytp-heat-map-path",S:{d:"",fill:"white"}}]},{j:"linearGradient",S:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},L:[{j:"stop",S:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{j:"stop",S:{offset:"100%",
"stop-color":"white","stop-opacity":"0"}}]}]},{j:"rect",Y:"ytp-heat-map-graph",S:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{j:"rect",Y:"ytp-heat-map-hover",S:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{j:"rect",Y:"ytp-heat-map-play",S:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{j:"path",Y:"ytp-modern-heat-map",S:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%",
stroke:"white","stroke-opacity":"1","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=R;this.X=this.sZ("ytp-heat-map-svg");this.W=this.sZ("ytp-heat-map-path");this.J=this.sZ("ytp-heat-map-graph");this.Z=this.sZ("ytp-heat-map-play");this.T=this.sZ("ytp-heat-map-hover");this.N=this.sZ("ytp-modern-heat-map");this.XP=!1;this.U=60;R=""+g.x$(this);this.update({id:R});R="url(#"+R+")";this.J.setAttribute("clip-path",R);this.Z.setAttribute("clip-path",R);this.T.setAttribute("clip-path",R)};
RIV=function(R,F){F>0&&(R.U=F,R.X.style.height=R.U+"px")};
Dd=function(){g.N.call(this,{j:"div",Y:"ytp-chapter-hover-container",L:[{j:"div",Y:"ytp-progress-bar-padding"},{j:"div",Y:"ytp-progress-list",L:[{j:"div",BG:["ytp-play-progress","ytp-swatch-background-color"]},{j:"div",Y:"ytp-progress-linear-live-buffer"},{j:"div",Y:"ytp-load-progress"},{j:"div",Y:"ytp-hover-progress"},{j:"div",Y:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.U=this.sZ("ytp-progress-list");this.W=this.sZ("ytp-progress-linear-live-buffer");
this.J=this.sZ("ytp-ad-progress-list");this.Z=this.sZ("ytp-load-progress");this.X=this.sZ("ytp-play-progress");this.N=this.sZ("ytp-hover-progress");this.T=this.sZ("ytp-chapter-hover-container")};
iv=function(R,F){g.fY(R.T,"width",F)};
FBE=function(R,F){g.fY(R.T,"margin-right",F+"px")};
nke=function(){this.U=this.position=this.N=this.T=this.J=this.width=NaN};
VJ6=function(){g.N.call(this,{j:"div",Y:"ytp-timed-marker"});this.T=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.kd=function(R,F){g.c5.call(this,{j:"div",Y:"ytp-progress-bar-container",S:{"aria-disabled":"true"},L:[{j:"div",BG:["ytp-heat-map-container"],L:[{j:"div",Y:"ytp-heat-map-edu"}]},{j:"div",BG:["ytp-progress-bar"],S:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},L:[{j:"div",Y:"ytp-chapters-container"},{j:"div",Y:"ytp-timed-markers-container"},{j:"div",Y:"ytp-clip-start-exclude"},
{j:"div",Y:"ytp-clip-end-exclude"},{j:"div",Y:"ytp-scrubber-container",L:[{j:"div",BG:["ytp-scrubber-button","ytp-swatch-background-color"],L:[{j:"div",Y:"ytp-scrubber-pull-indicator"},{j:"img",BG:["ytp-decorated-scrubber-button"]}]}]}]},{j:"div",BG:["ytp-fine-scrubbing-container"],L:[{j:"div",Y:"ytp-fine-scrubbing-edu"}]},{j:"div",Y:"ytp-bound-time-left",cG:"{{boundTimeLeft}}"},{j:"div",Y:"ytp-bound-time-right",cG:"{{boundTimeRight}}"},{j:"div",Y:"ytp-clip-start",S:{title:"{{clipstarttitle}}"},cG:"{{clipstarticon}}"},
{j:"div",Y:"ytp-clip-end",S:{title:"{{clipendtitle}}"},cG:"{{clipendicon}}"}]});this.api=R;this.tD=!1;this.h7=this.mz=this.h1=this.jQ=this.Z=this.iI=0;this.Ru=null;this.H_=!1;this.dX={};this.pC={};this.clipEnd=Infinity;this.QZ=this.sZ("ytp-clip-end");this.uZ=new g.WB(this.QZ,!0);this.HT=this.sZ("ytp-clip-end-exclude");this.A0=this.sZ("ytp-clip-start-exclude");this.clipStart=0;this.us=this.sZ("ytp-clip-start");this.t0=new g.WB(this.us,!0);this.Nq=this.on=0;this.progressBar=this.sZ("ytp-progress-bar");
this.YF={};this.SQ={};this.k5=this.sZ("ytp-chapters-container");this.xw=this.sZ("ytp-timed-markers-container");this.T=[];this.X=[];this.G_={};this.hD=null;this.Mq=-1;this.KC=this.bS=0;this.FG=this.V=null;this.NP=this.sZ("ytp-scrubber-button");this.lS=this.sZ("ytp-decorated-scrubber-button");this.dG=this.sZ("ytp-scrubber-container");this.mQ=new g.z5;this.eB=0;this.RV=new nke;this.N=new mz(0,0);this.wg=null;this.W=this.u_=!1;this.GZ=null;this.J1=this.sZ("ytp-heat-map-container");this.lX=this.sZ("ytp-heat-map-edu");
this.J=[];this.heatMarkersDecorations=[];this.aG=this.sZ("ytp-fine-scrubbing-container");this.fl=this.sZ("ytp-fine-scrubbing-edu");this.U=void 0;this.Y5=this.Kk=this.gX=!1;this.tooltip=F.q8();this.addOnDisposeCallback(g.G9(this.tooltip,this.QZ));g.d(this,this.uZ);this.uZ.subscribe("hoverstart",this.iM,this);this.uZ.subscribe("hoverend",this.Or,this);this.C(this.QZ,"click",this.Bh);this.addOnDisposeCallback(g.G9(this.tooltip,this.us));g.d(this,this.t0);this.t0.subscribe("hoverstart",this.iM,this);
this.t0.subscribe("hoverend",this.Or,this);this.C(this.us,"click",this.Bh);rVR(this);this.C(R,"resize",this.G9);this.C(R,"presentingplayerstatechange",this.vz);this.C(R,"videodatachange",this.GP);this.C(R,"videoplayerreset",this.tQ1);this.C(R,"cuerangesadded",this.VyQ);this.C(R,"cuerangesremoved",this.JOZ);this.C(R,"onLoopRangeChange",this.hY);this.C(R,"innertubeCommand",this.onClickCommand);this.C(R,"onRetroModeChanged",this.zqZ);this.C(R,g.$A("timedMarkerCueRange"),this.TV2);this.C(R,"updatemarkervisibility",
this.sV);this.C(R,R.D().rg().T.pH(F7)?"playbackChange":"serverstitchedvideochange",this.L85);this.updateVideoData(R.getVideoData(),!0);this.hY(R.getLoopRange());xd(this)&&!this.U&&(this.U=new lle(this.api,this.tooltip),R=g.sM(this.element).x||0,this.U.G9(R,this.Z),this.U.KH(this.aG),g.d(this,this.U),this.C(this.U.dismissButton,"click",this.w6),this.C(this.U.playButton,"click",this.Mt),this.C(this.U.element,"dblclick",this.Mt));this.api.createClientVe(this.J1,this,139609,!0);this.api.createClientVe(this.lX,
this,140127,!0);this.api.createClientVe(this.fl,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)};
rVR=function(R){if(R.T.length===0){var F=new Dd;R.T.push(F);g.d(R,F);F.KH(R.k5,0)}for(;R.T.length>1;)R.T.pop().dispose();iv(R.T[0],"100%");R.T[0].startTime=0;R.T[0].title=""};
vkR=function(R){var F=F===void 0?NaN:F;var n=new efv(R.api);R.J.push(n);g.d(R,n);n.KH(R.J1);F>=0&&(n.element.style.width=F+"px")};
fuN=function(R){for(;R.X.length;)R.X.pop().dispose()};
zI6=function(R){var F,n,V,r,v;return(v=g.A((r=g.A((F=R.getWatchNextResponse())==null?void 0:(n=F.playerOverlays)==null?void 0:(V=n.playerOverlayRenderer)==null?void 0:V.decoratedPlayerBarRenderer,bk))==null?void 0:r.playerBar,tJI))==null?void 0:v.chapters};
qSR=function(R){for(var F=R.T,n=[],V=0;V<F.length;V++)if(!isNaN(F[V].startTime)){var r=F[V].startTime;r=new g.NQ(r,V===F.length-1?Infinity:F[V+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+r});n.push(r)}R.api.Bw("chapterCueRange");R.api.iL(n)};
XwE=function(R,F){var n,V=(n=R.YF[F])==null?void 0:n.chapters;V&&(QbR(R,V),R.api.getVideoData().oC=R.T,qSR(R));var r;if((n=(r=R.YF[F])==null?void 0:r.markers)&&F!=="HEATSEEKER"){fuN(R);r=g.m(n);for(n=r.next();!n.done;n=r.next())if(V=n.value,n=new VJ6,V=g.A(V,g.cVe)){var v=void 0;n.title=((v=V.title)==null?void 0:v.simpleText)||"";v=void 0;n.timeRangeStartMillis=(v=V.timeRangeStartMillis)!=null?v:NaN;var f=v=void 0;n.onActiveCommand=(f=(v=V)==null?void 0:v.onActiveCommand)!=null?f:void 0;wwI(R,n)}SSj(R,
R.X);r=R.X;n=R.G_;V=[];for(v=0;v<r.length;v++)!isNaN(r[v].timeRangeStartMillis)&&r[v].onActiveCommand&&(f=uJe(r[v].timeRangeStartMillis,v===r.length-1?Infinity:r[v+1].timeRangeStartMillis),V.push(f),n[f.id]=r[v].onActiveCommand);R.api.iL(V)}var z;if(F=g.A((z=R.YF[F])==null?void 0:z.heatmap,LBE)){z=F.heatMarkers||[];var q;r=(q=F.minHeightDp)!=null?q:0;var Q;q=(Q=F.maxHeightDp)!=null?Q:60;Q=R.T.length;n=null;for(V=0;V<Q;V++){f=R.T[V].startTime;var c=V===Q-1?Infinity:R.T[V+1].startTime;V===R.J.length&&
vkR(R);v=[];n&&v.push(n);for(var w=g.m(z),L=w.next();!L.done;L=w.next()){L=L.value;var S=void 0,p=void 0,C=(p=(S=g.A(L,sbe))==null?void 0:S.timeRangeStartMillis)!=null?p:-1;C>=f&&C<=c&&v.push(L)}q>0&&(R.J1.style.height=q+"px");f=R.J[V];c=v;L=r;p=q;C=V===0;C=C===void 0?!1:C;RIV(f,p);w=c;S=f.U;C=C===void 0?!1:C;var y=1E3/w.length,u=[];u.push({x:0,y:100});for(var B=0;B<w.length;B++){var O=void 0,K=((O=g.A(w[B],sbe))==null?void 0:O.heatMarkerIntensityScoreNormalized)||0;O=(B+.5)*y;K=100-g.vI(K*100,L/
S*100,p/S*100);B!==0||C||u.push({x:0,y:K});u.push({x:O,y:K});B===w.length-1&&u.push({x:1E3,y:K})}u.push({x:1E3,y:100});w=u;c=c.length===0?"":trJ(w);f.api.B("delhi_modern_web_player")?f.N.setAttribute("d",c):f.W.setAttribute("d",c);f.XP=c!=="";g.ws(f.api.getRootNode(),"ytp-heat-map",f.XP);g.ws(f.api.getRootNode(),"ytp-heat-map-played_bar",f.api.B("web_player_heat_map_played_bar")&&c!=="");f.api.B("delhi_modern_web_player")?(f.J.style.display="none",f.T.style.display="none"):f.N.style.display="none";
v.length>0&&(n=v[v.length-1])}g.Yd(R);z=[];F=g.m(F.heatMarkersDecorations||[]);for(r=F.next();!r.done;r=F.next())if(r=g.A(r.value,pwJ))q=r.label,V=n=Q=void 0,z.push({visibleTimeRangeStartMillis:(Q=r.visibleTimeRangeStartMillis)!=null?Q:-1,visibleTimeRangeEndMillis:(n=r.visibleTimeRangeEndMillis)!=null?n:-1,decorationTimeMillis:(V=r.decorationTimeMillis)!=null?V:NaN,label:q?g.LG(q):""});R.heatMarkersDecorations=z}};
wwI=function(R,F){R.X.push(F);g.d(R,F);F.KH(R.xw,R.xw.children.length)};
SSj=function(R,F){F=g.m(F);for(var n=F.next();!n.done;n=F.next()){n=n.value;var V=JG(R,n.timeRangeStartMillis/(R.N.T*1E3),Go(R)),r=R.api.B("delhi_modern_web_player")?.667:.6;g.fY(n.element,"transform","translateX("+V+"px) scaleX("+r+")")}};
QbR=function(R,F){var n=0,V=!1;F=g.m(F);for(var r=F.next();!r.done;r=F.next()){r=r.value;if(g.A(r,AVk)){r=g.A(r,AVk);var v={startTime:NaN,title:null,onActiveCommand:void 0},f=r.title;v.title=f?g.LG(f):"";f=r.timeRangeStartMillis;f!=null&&(v.startTime=f);v.onActiveCommand=r.onActiveCommand;r=v;n===0&&r.startTime!==0&&(R.T[n].startTime=0,R.T[n].title="",R.T[n].onActiveCommand=r.onActiveCommand,n++,V=!0);R.T.length<=n&&(v=new Dd,R.T.push(v),g.d(R,v),v.KH(R.k5,R.k5.children.length));R.T[n].startTime=
r.startTime;R.T[n].title=r.title?r.title:"";R.T[n].onActiveCommand=r.onActiveCommand;R.T[n].index=V?n-1:n}n++}for(;n<R.T.length;)R.T.pop().dispose();g.Yd(R);dU(R)};
g.Yd=function(R){R.bS=R.T.length-1;R.KC=0;auE(R,!0)&&auE(R,!1);for(var F=0,n=0;n<R.T.length;n++)if(R.T[n].width===0){if(n===R.T.length-1)for(var V=R.T.length-1;V>=0;V--)if(R.T[V].width>0){FBE(R.T[V],0);var r=Math.floor(R.T[V].width);R.T[V].width=r;iv(R.T[V],r+"px");break}R.T[n].width=0;iv(R.T[n],"0")}else n===R.T.length-1?(V=Math.floor(R.T[n].width+F),R.T[n].width=V,iv(R.T[n],V+"px")):(F=R.T[n].width+F,V=Math.round(F),F-=V,R.T[n].width=V,iv(R.T[n],V+"px"));n=0;if(R.J.length===R.T.length)for(F=0;F<
R.J.length;F++)V=R.T[F].width,R.J[F].element.style.width=V+"px",R.J[F].element.style.left=n+"px",n+=V+M_(R);R.api.B("delhi_modern_web_player")&&(R.T.length===1?R.T[0].U.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(R.T[0].U.classList.remove("ytp-progress-bar-end"),R.T[0].U.classList.add("ytp-progress-bar-start"),R.T[R.T.length-1].U.classList.add("ytp-progress-bar-end")))};
auE=function(R,F){var n=0,V=!1,r=R.T.length,v=R.N.T*1E3;v===0&&(v=R.api.getProgressState().seekableEnd*1E3);if(v>0&&R.Z>0){for(var f=R.Z-M_(R)*R.bS,z=R.KC===0?3:f*R.KC,q=g.m(R.T),Q=q.next();!Q.done;Q=q.next())Q.value.width=0;for(;n<r;){q=v-R.T[n].startTime;n<r-1&&(q=R.T[n+1].startTime-R.T[n].startTime,FBE(R.T[n],M_(R)));g.ws(R.T[n].T,"ytp-exp-chapter-hover-container",R.T.length>1);Q=(v===0?0:q/v*f)+R.T[n].width;if(Q>z)R.T[n].width=Q;else{R.T[n].width=0;var c=R,w=n,L=c.T[w-1];L!==void 0&&L.width>0?
L.width+=Q:w<c.T.length-1&&(c.T[w+1].width+=Q);FBE(c.T[w],0);F&&(R.bS--,q/v>R.KC&&(R.KC=q/v),V=!0)}n++}}return V};
dU=function(R){if(R.Z){var F=R.api.getProgressState(),n=R.api.getVideoData();if(!(n&&n.enableServerStitchedDai&&n.fK)||isFinite(F.current)){var V;if(((V=R.api.getVideoData())==null?0:CK(V))&&F.airingStart&&F.airingEnd)var r=lv(R,F.airingStart,F.airingEnd);else if(R.api.getPresentingPlayerType()===2){var v,f,z;r=(n=(r=R.api.getVideoData())==null?void 0:(v=r.getPlayerResponse())==null?void 0:(f=v.playerConfig)==null?void 0:(z=f.webPlayerConfig)==null?void 0:z.skippableAdProgressBarDuration)?lv(R,F.seekableStart,
n/1E3):lv(R,F.seekableStart,F.seekableEnd)}else r=lv(R,F.seekableStart,F.seekableEnd);v=Oq(r,F.loaded,0);F=Oq(r,F.current,0);f=R.N.U!==r.U||R.N.T!==r.T;R.N=r;N_(R,F,v);f&&Cz_(R);Tcv(R);F=48;r=R.api.D();v=g.Vn(R.api.D().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold");v=R.api.B("delhi_modern_web_player_compact_controls")||v>0&&R.api.getPlayerSize().width<=v;R.api.B("delhi_modern_web_player")?F=R.api.getPlayerSize().width<=528?v?56:64:R.W?v?72:96:v?56:72:R.W?F=54:g.Pp(r)&&
!r.U&&(F=40);R.jQ=F}}};
lv=function(R,F,n){return okN(R)?new mz(Math.max(F,R.wg.startTimeMs/1E3),Math.min(n,R.wg.endTimeMs/1E3)):new mz(F,n)};
Uef=function(R,F){var n,V,r;F=g.A((n=F.getWatchNextResponse())==null?void 0:(V=n.playerOverlays)==null?void 0:(r=V.playerOverlayRenderer)==null?void 0:r.decoratedPlayerBarRenderer,bk);if(F==null?0:F.progressColor)for(n=0;n<R.T.length;n++)R.T[n].Fs("PLAY_PROGRESS").style.background=g.iN(F.progressColor);n=g.A(F==null?void 0:F.playhead,yVW);var v,f;R.PG=(n==null?void 0:(v=n.playheadImage)==null?void 0:v.thumbnails)&&(n==null?void 0:(f=n.playheadImage)==null?void 0:f.thumbnails[0].url);var z,q;R.oC=
(n==null?void 0:(z=n.playheadFastForwardImage)==null?void 0:z.thumbnails)&&(n==null?void 0:(q=n.playheadFastForwardImage)==null?void 0:q.thumbnails[0].url);var Q,c;R.Yy=(n==null?void 0:(Q=n.playheadRewindImage)==null?void 0:Q.thumbnails)&&(n==null?void 0:(c=n.playheadRewindImage)==null?void 0:c.thumbnails[0].url);g.ws(R.dG,"ytp-decorated-scrubber-container",!!R.PG&&!R.api.fH().Cx);var w;if(n==null?0:(w=n.loggingDirectives)==null?0:w.trackingParams){var L;R.api.setTrackingParams(R.lS,n==null?void 0:
(L=n.loggingDirectives)==null?void 0:L.trackingParams);R.api.createServerVe(R.lS,R)}R.PG&&!R.api.fH().Cx&&(R.lS.src=R.PG);R.oC&&fetch(R.oC,{cache:"force-cache"});R.Yy&&fetch(R.Yy,{cache:"force-cache"})};
jbN=function(R,F){var n;if(((n=R.wg)==null?void 0:n.type)==="repeatChapter"||(F==null?void 0:F.type)==="repeatChapter")F&&(F=R.T[rU(R.T,F.startTimeMs)],g.ws(F.T,"ytp-repeating-chapter",!1)),R.wg&&(F=R.T[rU(R.T,R.wg.startTimeMs)],g.ws(F.T,"ytp-repeating-chapter",!0)),R.T.forEach(function(V){g.ws(V.T,"ytp-exp-chapter-hover-container",!R.wg)})};
$d=function(R,F){var n=M39(R.N,F.U);if(R.T.length>1){n=Ec(R,F.N,!0);for(var V=0,r=0;r<n;r++)R.T[r].width>0&&(V+=R.T[r].width,V+=M_(R));n=(R.T[n].startTime+(F.N-V)/R.T[n].width*((n===R.T.length-1?R.N.T*1E3:R.T[n+1].startTime)-R.T[n].startTime))/1E3||0}return n};
HEf=function(R,F){if(F<0)return"0";R=Math.floor(Math.min(F,R.api.getDuration())*1E3);return R>2147483647?"0":String(R)};
Py=function(R,F,n,V,r){F=HEf(R,F);n=HEf(R,n);R=R.progressBar.visualElement;V={seekData:{startMediaTimeMs:F,endMediaTimeMs:n,seekSource:V}};(F=g.CJ())&&VH(F,R,r,V)};
hI9=function(R,F,n){if(n>=R.T.length)return!1;var V=R.Z-M_(R)*R.bS;return Math.abs(F-R.T[n].startTime/1E3)/R.N.T*V<4};
Cz_=function(R){R.NP.style.removeProperty("height");for(var F=g.m(Object.keys(R.dX)),n=F.next();!n.done;n=F.next())WBf(R,n.value);bv(R);N_(R,R.Nq,R.on)};
Go=function(R){var F=R.mQ.x;F=g.vI(F,0,R.Z);R.RV.update(F,R.Z);return R.RV};
N_=function(R,F,n){R.Nq=F;R.on=n;var V=Go(R),r=R.N.T,v=M39(R.N,R.Nq),f=g.fy("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.ot(v,!0),DURATION:g.ot(r,!0)}),z=rU(R.T,v*1E3);z=R.T[z].title;R.update({ariamin:Math.floor(R.N.U),ariamax:Math.floor(r),arianow:Math.floor(v),arianowtext:z?z+" "+f:f});r=R.clipStart;v=R.clipEnd;R.wg&&R.api.getPresentingPlayerType()!==2&&(r=R.wg.startTimeMs/1E3,v=R.wg.endTimeMs/1E3);r=Oq(R.N,r,0);z=Oq(R.N,v,1);f=R.api.getVideoData();v=g.vI(F,r,z);n=(f==null?0:g.XY(f))?1:g.vI(n,
r,z);F=JG(R,F,V);g.fY(R.dG,"transform","translateX("+F+"px)");R.api.B("delhi_modern_web_player")&&R.api.B("delhi_modern_web_player_cutout")&&uZk(R,F);Zd(R,V,r,v,"PLAY_PROGRESS");(f==null?0:CK(f))?(F=R.api.getProgressState().seekableEnd)&&Zd(R,V,v,Oq(R.N,F),"LIVE_BUFFER"):Zd(R,V,r,n,"LOAD_PROGRESS");if(R.api.B("web_player_heat_map_played_bar")){var q;(q=R.J[0])!=null&&q.Z.setAttribute("width",(v*100).toFixed(2)+"%")}};
uZk=function(R,F){R.api.getPresentingPlayerType()!==1?R.k5.style.removeProperty("clip-path"):(F||(F=JG(R,R.Nq,Go(R))),R.k5.style.clipPath='path("'+(R.H_?BcN(R,8,F,R.W?50:36,0,6):BcN(R,4,F,R.W?34:24,2,3))+'")')};
BcN=function(R,F,n,V,r,v){var f=n-V/2;n+=V/2;F+=r;return"M 0 "+r+" L 0 "+(F+" L ")+(f+" "+F+" C ")+(f+v+" "+F+" "+(f+v)+" "+r+" "+f+" "+r+" L 0 ")+(r+" M ")+(n+" "+r+" L ")+(R.Z+" "+r+" L ")+(R.Z+" "+F+" L ")+(n+" "+F+" C ")+(n-v+" "+F+" "+(n-v)+" "+r+" "+n+" "+r)};
Zd=function(R,F,n,V,r){var v=R.T.length,f=F.T-R.bS*M_(R),z=n*f;n=Ec(R,z);var q=V*f;f=Ec(R,q);r==="HOVER_PROGRESS"&&(f=Ec(R,F.T*V,!0),q=F.T*V-meE(R,F.T*V)*M_(R));V=Math.max(z-gkV(R,n),0);for(z=n;z<v;z++)R.T[z].Fs(r).style.left=n===z?V+"px":"0";F=JG(R,R.Nq,F);for(v=n;v<f;v++){z=R.T[v].Fs(r);var Q=R.T[v].width,c=v===n?Q-V:Q;ey(R,z,c,Q);OEe(R,z,c,Q,v,F,r)}v=R.T[f].width;q=g.vI(q-gkV(R,f),0,v);n===f&&(q-=V);V=R.T[f].Fs(r);ey(R,V,q,v);OEe(R,V,q,v,f,F,r);q=R.T.length;for(f+=1;f<q;f++)IuJ(R,f,r);for(f=0;f<
n;f++)IuJ(R,f,r)};
gkV=function(R,F){if(F>=R.T.length)return R.Z;for(var n=0,V=0;V<F;)n+=R.T[V].width,V++;return n};
IuJ=function(R,F,n){n=R.T[F].Fs(n);ey(R,n,0,R.T[F].width)};
OEe=function(R,F,n,V,r,v,f){f==="PLAY_PROGRESS"&&(n=!V||R.api.D().U?1:n/V,R.A0.clientWidth>0||R.HT.clientWidth>0?(v=F.clientWidth/n,R=-1*R.A0.clientWidth/n):(v/=n,R=-1*R.T[r].element.offsetLeft/n),g.fY(F,"background-size",v+"px"),g.fY(F,"background-position-x",R+"px"))};
ey=function(R,F,n,V,r){r||R.api.D().U?F.style.width=n+"px":g.fY(F,"transform","scalex("+(V?n/V:0)+")")};
Ec=function(R,F,n){var V=0;(n===void 0?0:n)&&(F-=meE(R,F)*M_(R));n=g.m(R.T);for(var r=n.next();!r.done;r=n.next()){r=r.value;if(F>r.width)F-=r.width;else break;V++}return V===R.T.length?V-1:V};
JG=function(R,F,n){var V=F*R.N.T*1E3;for(var r=-1,v=g.m(R.T),f=v.next();!f.done;f=v.next())f=f.value,V>f.startTime&&f.width>0&&r++;V=r<0?0:r;r=n.T-M_(R)*R.bS;return F*r+M_(R)*V+n.J};
meE=function(R,F){for(var n=R.T.length,V=0,r=g.m(R.T),v=r.next();!v.done;v=r.next())if(v=v.value,v.width!==0)if(F>v.width)F-=v.width,F-=M_(R),V++;else break;return V===n?n-1:V};
g.KBV=function(R,F,n,V){var r=R.Z!==n,v=R.W!==V;R.iI=F;R.Z=n;R.W=V;xd(R)&&(F=R.U)!=null&&(F.scale=V?1.5:1);Cz_(R);R.T.length===1&&(R.T[0].width=n||0);r&&g.Yd(R);R.U&&v&&xd(R)&&(R.U.isEnabled&&(n=R.W?135:90,V=n-R.jQ,R.aG.style.height=n+"px",g.fY(R.J1,"transform","translateY("+-V+"px)"),g.fY(R.progressBar,"transform","translateY("+-V+"px)")),P19(R.U))};
bv=function(R){var F=!!R.wg&&R.api.getPresentingPlayerType()!==2,n=R.clipStart,V=R.clipEnd,r=!0,v=!0;F&&R.wg?(n=R.wg.startTimeMs/1E3,V=R.wg.endTimeMs/1E3):(r=n>R.N.U,v=R.N.T>0&&V<R.N.T);var f,z;if(((f=R.wg)==null?0:f.postId)||((z=R.wg)==null?void 0:z.type)==="repeatChapter")v=r=!1;g.ws(R.element,"ytp-loop-range-enabled",F);g.ws(R.element,"ytp-clip-start-enabled",r);g.ws(R.element,"ytp-clip-end-enabled",v);F=r?Oq(R.N,n,0):0;V=v?Oq(R.N,V,1):1;R.us.style.left=Math.round(F*1E3)/10+"%";R.QZ.style.left=
Math.round(V*1E3)/10+"%";R.A0.style.width=Math.round(F*1E3)/10+"%";R.HT.style.left=Math.round(V*1E3)/10+"%";R.HT.style.width=Math.round((1-V)*1E3)/10+"%"};
Tcv=function(R){var F;if((F=R.api.getVideoData())==null||!CK(F)){F=Go(R);Zd(R,F,R.Nq,Math.max(F.U,R.Nq),"HOVER_PROGRESS");for(var n=Ec(R,F.T*R.Nq,!0),V=Ec(R,F.N,!0),r=n;r<=V;r++)g.ws(R.T[r].N,"ytp-hover-progress-light",F.U>R.Nq);g.ws(R.NP,"ytp-scrubber-button-hover",n===V&&R.T.length>1);if(R.api.B("web_player_heat_map_played_bar")){var v;(v=R.J[0])!=null&&v.T.setAttribute("width",(F.U*100).toFixed(2)+"%")}}};
WBf=function(R,F){var n=R.dX[F];F=R.pC[F];var V=Go(R),r=Oq(R.N,n.start/1E3,0),v=TCe(n,R.W)/V.width;var f=Oq(R.N,n.end/1E3,1);v!==Number.POSITIVE_INFINITY&&(r=g.vI(r,0,f-v));f=Math.min(f,r+v);n.color&&(F.style.background=n.color);n=r;F.style.left=Math.max(n*V.T+V.J,0)+"px";ey(R,F,g.vI((f-n)*V.T+V.J,0,V.width),V.width,!0)};
Dek=function(R,F){var n=F.getId();R.dX[n]===F&&(g.iY(R.pC[n]),delete R.dX[n],delete R.pC[n])};
xd=function(R){var F=g.Xk(R.api.D())&&(R.api.B("web_shorts_pip")||R.api.B("web_watch_pip")),n;return!((n=R.api.getVideoData())==null?0:n.isLivePlayback)&&!R.api.isMinimized()&&!R.api.isInline()&&(!R.api.Yw()||!F)};
Rg=function(R){R.U&&(R.U.disable(),R.h1=0,R.J1.style.removeProperty("transform"),R.progressBar.style.removeProperty("transform"),R.aG.style.removeProperty("height"),R.element.parentElement&&R.element.parentElement.style.removeProperty("height"))};
iEJ=function(R,F){var n=F/((R.W?135:90)-R.jQ)*R.jQ;g.fY(R.progressBar,"transform","translateY("+-F+"px)");g.fY(R.J1,"transform","translateY("+-F+"px)");g.fY(R.aG,"transform","translateY("+n+"px)");R.aG.style.height=F+n+"px";R.element.parentElement&&(R.element.parentElement.style.height=R.jQ-n+"px")};
xee=function(R,F){F?R.V||(R.element.removeAttribute("aria-disabled"),R.V=new g.WB(R.progressBar,!0),R.api.B("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&R.V.subscribe("hoverstart",R.UL5,R),R.V.subscribe("hovermove",R.NuG,R),R.V.subscribe("hoverend",R.mL5,R),R.V.subscribe("dragstart",R.Tuo,R),R.V.subscribe("dragmove",R.c7X,R),R.V.subscribe("dragend",R.J7q,R),R.api&&R.api.B("delhi_modern_web_player")&&R.api.B("delhi_modern_web_player_cutout")&&(R.FG=new g.WB(R.progressBar,
!0),R.FG.subscribe("hoverstart",function(){R.H_=!0;uZk(R)},R),R.FG.subscribe("hoverend",function(){R.H_=!1;
uZk(R)},R)),R.GZ=R.listen("keydown",R.gK)):R.V&&(R.element.setAttribute("aria-disabled","true"),R.ZO(R.GZ),R.V.cancel(),R.V.dispose(),R.V=null)};
M_=function(R){return R.api.B("delhi_modern_web_player")?4:R.W?3:2};
okN=function(R){var F;return!((F=R.wg)==null||!F.postId)&&R.api.getPresentingPlayerType()!==2};
FJ=function(R,F){g.N.call(this,{j:"button",BG:["ytp-remote-button","ytp-button"],S:{title:R.B("player_tooltip_data_title_killswitch")?"Play on TV":"","data-tooltip-title":"Play on TV","aria-haspopup":"true","data-priority":"10"},cG:"{{icon}}"});this.K=R;this.T9=F;this.T=null;this.C(R,"onMdxReceiversChange",this.CH);this.C(R,"presentingplayerstatechange",this.CH);this.C(R,"appresize",this.CH);R.createClientVe(this.element,this,139118);this.CH();this.listen("click",this.U,this);dZ(R,this.element,this)};
n7=function(R,F){g.N.call(this,{j:"button",BG:["ytp-button","ytp-settings-button"],S:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":tn(),title:R.B("player_tooltip_data_title_killswitch")?"Settings":"","data-tooltip-title":"Settings","data-tooltip-target-id":"ytp-settings-button"},L:[R.B("delhi_modern_web_player_icons")?{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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.us()]});this.K=R;this.T9=F;this.U=!0;this.listen("click",this.N);this.C(R,"onPlaybackQualityChange",this.updateBadge);this.C(R,"videodatachange",this.updateBadge);this.C(R,"webglsettingschanged",this.updateBadge);this.C(R,"appresize",this.T);dZ(R,this.element,this);this.K.createClientVe(this.element,this,28663);this.updateBadge();this.T(R.fH().getPlayerSize())};
kcj=function(R,F){R.U=!!F;R.T(R.K.fH().getPlayerSize())};
Vx=function(R,F,n){if(R.B("web_add_footer_template_to_audio_track")){var V="Edit your $BEGIN_LINKpreferred languages$END_LINK in settings".split(/\$(BEGIN|END)_LINK/);V={j:"div",Y:"ytp-panel-footer-content",L:[V[0],{j:"a",Y:"ytp-panel-footer-content-link",S:{href:"/account_playback"},cG:V[2]},V[4]]}}g.j6.call(this,"Audio track",g.BN.AUDIO,R,F,void 0,void 0,V);this.K=R;this.T=n;this.tracks={};g.z0(this.element,"ytp-audio-menu-item");this.countLabel=new g.N({j:"div",L:[{j:"span",cG:"Audio track"},{j:"span",
Y:"ytp-menuitem-label-count",cG:"{{content}}"}]});R.B("web_settings_menu_icons")&&!this.K.B("html5_enable_new_audio_settings_menu")&&(F=R.B("delhi_modern_web_player_icons")?{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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"}}]}:{j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z            M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z            M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z            M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z            M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z",
fill:"white"}}]},this.setIcon(F));g.d(this,this.countLabel);g.cN(this,this.countLabel);R.createClientVe(this.element,this,273318);this.listen("click",this.onClick);this.C(R,"videodatachange",this.CH);this.C(R,"onPlaybackAudioChange",this.CH);this.CH()};
YSk=function(R,F){g.w$.call(this,g.SK({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.BN.hd);this.K=R;this.T9=F;g.z0(this.element,"ytp-audio-settings-menu-item");this.Xh=new g.pN(R,void 0,"Audio");this.countLabel=new g.N({j:"div",L:[{j:"span",cG:"Audio"},{j:"span",Y:"ytp-menuitem-label-count",cG:"{{content}}"}]});R.B("web_settings_menu_icons")&&this.setIcon({j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M17.5,12c0,2.14-1.5,3.92-3.5,4.38v-1.04c1.44-0.43,2.5-1.76,2.5-3.34c0-1.58-1.06-2.9-2.5-3.34V7.62 C16,8.08,17.5,9.86,17.5,12z M12,4.07v15.86L6.16,15H3V9h3.16L12,4.07z M11,6.22L6.52,10H4v4h2.52L11,17.78V6.22z M21,12 c0,4.08-3.05,7.44-7,7.93v-1.01c3.39-0.49,6-3.4,6-6.92s-2.61-6.43-6-6.92V4.07C17.95,4.56,21,7.92,21,12z",
fill:"white"}}]});this.IR=new Vx(R,this.T9,this);g.d(this,this.IR);this.C(R,"settingsMenuInitialized",this.v_.bind(this));this.C(R,"videodatachange",this.v_.bind(this));g.d(this,this.countLabel);g.cN(this,this.countLabel);this.T9.xF(this);this.C(R,"onPlaybackAudioChange",this.y7);this.listen("keydown",this.gK);this.listen("click",this.open)};
rX=function(R,F){yk.call(this,"Autoplay",g.BN.RB);this.K=R;this.T9=F;this.T=!1;this.U=[];this.C(R,"presentingplayerstatechange",this.v_);this.subscribe("select",this.onSelect,this);R.createClientVe(this.element,this,113682);this.v_()};
JVR=function(R,F){g.w$.call(this,g.SK({"aria-haspopup":"false"}),0,"More options");this.K=R;this.T9=F;this.C(this.element,"click",this.onClick);this.T9.xF(this)};
GcJ=function(R,F){var n;g.Xk(R.D())&&(n={j:"div",Y:"ytp-panel-footer-content",L:[{j:"span",cG:"Adjust download quality from your "},{j:"a",Y:"ytp-panel-footer-content-link",cG:"Settings",S:{href:"/account_downloads"}}]});g.j6.call(this,"Quality",g.BN.uC,R,F,void 0,void 0,n);this.K=R;this.J1={};this.Z={};this.U={};this.jQ=new Set;this.T=this.J=!1;this.W="unknown";this.X="";this.Nq=new g.dy;g.d(this,this.Nq);this.J=this.K.B("web_player_use_new_api_for_quality_pullback");this.T=this.K.B("web_player_enable_premium_hbr_playback_cap");
R.B("web_settings_menu_icons")&&(F=R.B("delhi_modern_web_player_icons")?{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z",
fill:"white"}}]}:{j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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(F));g.z0(this.Xh.element,"ytp-quality-menu");this.C(R,"videodatachange",this.v_);this.C(R,"videoplayerreset",this.v_);this.C(R,"onPlaybackQualityChange",this.R7);this.v_();R.createClientVe(this.element,this,137721)};
MJ6=function(R,F,n){var V=R.J1[F],r=g.g8[F];return de9(R,V?V.qualityLabel:r?r+"p":"Auto",F,n)};
luN=function(R,F,n,V,r){var v=(F=R.T?R.U[F]:R.Z[F])&&F.quality,f=F&&F.qualityLabel;f=f?f:"Auto";V&&(f="("+f);R=de9(R,f,v||"",r);V&&R.L.push(")");(V=(V=F&&F.paygatedQualityDetails)&&V.paygatedIndicatorText)&&n&&R.L.push({j:"div",Y:"ytp-premium-label",cG:V});return R};
de9=function(R,F,n,V){F={j:"span",BG:V,L:[F]};var r;V="ytp-swatch-color";if(R.J||R.T)V="ytp-swatch-color-white";n==="highres"?r="8K":n==="hd2880"?r="5K":n==="hd2160"?r="4K":n.indexOf("hd")===0&&n!=="hd720"&&(r="HD");r&&(F.L.push(" "),F.L.push({j:"sup",Y:V,cG:r}));return F};
vL=function(R){Wy.call(this,R.getAvailablePlaybackRates()[0],R.getAvailablePlaybackRates()[R.getAvailablePlaybackRates().length-1],.05,R.getPlaybackRate(),{j:"div",Y:"ytp-speedslider-indicator-container",L:[{j:"div",Y:"ytp-speedslider-badge"},{j:"p",Y:"ytp-speedslider-text"}]});this.K=R;this.V=ZT(this.I5,50,this);g.z0(this.U,"ytp-speedslider");this.X=this.sZ("ytp-speedslider-text");this.Nq=this.sZ("ytp-speedslider-badge");this.ME();this.C(this.U,"change",this.MBZ)};
f7=function(R,F,n,V,r,v,f){g.N.call(this,{j:"div",Y:"ytp-slider-section",S:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},L:[{j:"div",Y:"ytp-slider",L:[{j:"div",Y:"ytp-slider-handle"}]}]});this.X=R;this.V=F;this.U=n;this.N=V;this.Nq=r;this.PG=v;this.range=this.N-this.U;this.Mq=this.sZ("ytp-slider-section");this.J=this.sZ("ytp-slider");this.J1=this.sZ("ytp-slider-handle");this.Z=new g.WB(this.J,
!0);this.T=f?f:n;g.d(this,this.Z);this.Z.subscribe("dragmove",this.SF,this);this.C(this.element,"keydown",this.qv);this.C(this.element,"wheel",this.dO);this.init()};
tU=function(R){f7.call(this,.05,.05,R.getAvailablePlaybackRates()[0],R.getAvailablePlaybackRates()[R.getAvailablePlaybackRates().length-1],150,20,R.getPlaybackRate());this.K=R;this.W=g.gu("P");this.lS=ZT(this.jQ,50,this);g.z0(this.J,"ytp-speedslider");g.z0(this.W,"ytp-speedslider-text");R=this.W;var F=this.J;F.parentNode&&F.parentNode.insertBefore(R,F.nextSibling);this.ME();this.C(this.K,"onPlaybackRateChange",this.updateValues)};
NcV=function(R,F){R=Number(g.vI(F,R.U,R.N).toFixed(2));F=Math.floor((R+.001)*100%5+2E-15);var n=R;F!==0&&(n=R-F*.01);return Number(n.toFixed(2))};
EkW=function(R){g.c5.call(this,{j:"div",Y:"ytp-speedslider-component"});R.B("web_settings_use_input_slider")?this.T=new vL(R):this.T=new tU(R);g.d(this,this.T);this.element.appendChild(this.T.element)};
$eE=function(R){var F=new EkW(R);sb.call(this,R,F,"Custom");g.d(this,F)};
bEN=function(R,F){var n=new $eE(R);g.j6.call(this,"Playback speed",g.BN.Wj,R,F,zE(R)?void 0:"Custom",zE(R)?void 0:function(){g.aG(F,n)});
var V=this;this.X=new g.N({j:"div",Y:"ytp-menuitem-premium-badge",S:{"aria-label":"Premium"}});this.W=!1;this.hJ={NIz:function(){return V.J}};
g.d(this,n);this.Q3=new vL(R);g.d(this,this.Q3);if(R.B("web_settings_menu_icons")){var r=R.B("delhi_modern_web_player_icons")?vhk():{j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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(r)}this.K=R;this.W=!1;this.Nq=null;zE(R)?(this.T=g.fy("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.K.getPlaybackRate().toString()}),this.Z=this.K.getPlaybackRate()):this.Z=this.T=null;g.d(this,this.X);var v,f,z,q;this.J1=(v=this.K.getVideoData())==null?void 0:(f=v.getWatchNextResponse())==null?void 0:(z=f.playerOverlays)==null?void 0:(q=z.playerOverlayRenderer)==null?void 0:q.showPlaybackRateUpsellPanelCommand;PzI(R,this.J1)?(this.U=qY(4),this.K.createClientVe(this.X.element,
this,273508)):this.U=null;this.K.B("enable_web_premium_varispeed_upsell")&&this.K.createClientVe(this.element,this,278479);this.J=this.K.getAvailablePlaybackRates();this.C(R,"presentingplayerstatechange",this.CH);var Q;((Q=this.K.getVideoData())==null?0:Q.iZ())&&this.C(R,R.D().rg().T.pH(F7)?"playbackChange":"serverstitchedvideochange",this.CH);this.C(R,"videodatachange",this.onVideoDataChange);this.C(this.Q3.U,"change",function(){V.W=!0;V.CH()});
this.CH()};
ZEN=function(R,F){var n=qY(F);R.T&&(R.W||F===R.Z)?(R.hO(R.T),R.setContent(F.toString())):R.hO(n)};
RFV=function(R){var F=R.J.map(qY);R.U&&F.push(R.U);R.n2(F);R.T=null;R.Z=null;F=R.K.getPlaybackRate();zE(R.K)&&eIW(R,F);!R.J.includes(F)||R.W?R.hO(R.T):R.hO(qY(F))};
eIW=function(R,F){R.Z=F;R.T=g.fy("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:F.toString()});F=R.J.map(qY);F.unshift(R.T);R.U&&F.push(R.U);R.n2(F)};
FAR=function(R,F,n,V){n=new g.w$({j:"div",BG:["ytp-menuitem"],S:{tabindex:"0",role:"menuitemradio","aria-checked":V?"true":"false"},L:[{j:"div",BG:["ytp-menuitem-label"],L:[{j:"div",BG:["ytp-menuitem-container-with-badge"],L:[{j:"div",cG:"{{label}}"},R.X]}]}]},n,R.lq(F));n.listen("click",function(){R.zB(F)});
return n};
qY=function(R){return R.toString()};
zE=function(R){return R.B("web_settings_menu_surface_custom_playback")};
PzI=function(R,F){return!!F&&R.getAvailablePlaybackRates()[R.getAvailablePlaybackRates().length-1]<=2};
nf9=function(R){return R.B("web_settings_menu_surface_custom_playback")&&R.B("web_settings_use_input_slider")};
rOj=function(R,F,n,V){var r=new g.pN(F,void 0,"Video Override");g.j6.call(this,V.text||"",R,F,n,"Video Override",function(){g.aG(n,r)});
var v=this;g.z0(this.element,"ytp-subtitles-options-menu-item");this.setting=V.option.toString();R=V.options;this.settings=g.C4(R,this.Gr,this);this.J=r;g.d(this,this.J);F=new g.w$({j:"div",Y:"ytp-menuitemtitle",cG:"Allow for a different caption style if specified by the video."},0);g.d(this,F);this.J.xF(F,!0);this.U=new g.w$({j:"div",Y:"ytp-menuitem",S:{role:"menuitemradio",tabindex:"0"},L:[{j:"div",Y:"ytp-menuitem-label",cG:"On"}]},-1);g.d(this,this.U);this.J.xF(this.U,!0);this.C(this.U.element,
"click",function(){VVj(v,!0)});
this.T=new g.w$({j:"div",Y:"ytp-menuitem",S:{role:"menuitemradio",tabindex:"0"},L:[{j:"div",Y:"ytp-menuitem-label",cG:"Off"}]},-2);g.d(this,this.T);this.J.xF(this.T,!0);this.C(this.T.element,"click",function(){VVj(v,!1)});
this.n2(g.OM(R,this.Gr))};
VVj=function(R,F){R.publish("settingChange",R.setting+"Override",!F);R.T9.UD()};
Qx=function(R,F){g.pN.call(this,R,void 0,"Options");var n=this;this.UK={};for(var V=0;V<g.tG.length;V++){var r=g.tG[V],v=new rOj(-V,R,F,r);g.d(this,v);v.subscribe("settingChange",this.lW,this);this.UK[r.option.toString()]=v;this.xF(v,!0)}R=new g.w$(g.SK(),-g.tG.length,"Reset");g.d(this,R);R.listen("click",function(){n.lW("reset",!0)});
this.xF(R,!0)};
cL=function(R,F){g.j6.call(this,"Auto-translate",0,R,F);this.K=R;this.languages={};R.createClientVe(this.element,this,127301);R.logVisibility(this.element,!0)};
vfW=function(R,F){R.languages=g.C4(F,R.T,R);R.n2(g.OM(F,R.T))};
tVV=function(R,F){var n=new Qx(R,F),V=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],r;g.Xk(R.D())&&(r={j:"div",Y:"ytp-panel-footer-content",L:[{j:"span",cG:V[0]},{j:"a",Y:"ytp-panel-footer-content-link",cG:"Settings",S:{href:"/account_playback"}},{j:"span",cG:V[1]}]});g.j6.call(this,"Subtitles/CC",g.BN.SUBTITLES,R,F,"Options",function(){g.aG(F,n)},r);
var v=this;this.K=R;this.T9=F;this.tracks={};this.W=new g.ZK(function(){fON(v,!1)},3E3);
g.d(this,this.W);this.countLabel=new g.N({j:"div",L:[{j:"span",cG:"Subtitles/CC"},{j:"span",Y:"ytp-menuitem-label-count",cG:"{{content}}"}]});g.d(this,this.countLabel);g.cN(this,this.countLabel);R.B("web_settings_menu_icons")&&this.setIcon(PWN(R.B("delhi_modern_web_player_icons")));this.T=new cL(R,F);g.d(this,this.T);this.T.subscribe("select",this.rO,this);this.J=n;g.d(this,this.J);this.J.subscribe("settingChange",this.lW,this);F.subscribe("show",this.LgZ,this);this.C(R,"videodatachange",this.CH);
this.C(R,"onApiChange",this.CH);this.C(R,"onCaptionsTrackListChanged",this.CH);this.C(R,"captionschanged",this.CH);R.createClientVe(this.element,this,127300);this.CH()};
zFv=function(R){return Object.values(R.tracks).find(function(F){return F.languageCode==="en"&&F.kind==="asr"})};
wX=function(R,F){R.K.setOption("captions","track",F)};
fON=function(R,F){R.K.setOption("captions","sampleSubtitles",F)};
Sv=function(R){var F=new vL(R),n=new g.N({j:"div",Y:"ytp-variable-speed-panel-chips"}),V=new g.N({j:"button",BG:["ytp-button","ytp-variable-speed-panel-button","ytp-variable-speed-panel-increment-button"],S:{"aria-label":"Decrease playback speed"},L:[{j:"span",cG:"-"}]});V.listen("click",function(){w.K.setPlaybackRate(Number((w.K.getPlaybackRate()-.05).toFixed(2)));R.logClick(V.element)});
var r=new g.N({j:"button",BG:["ytp-button","ytp-variable-speed-panel-button","ytp-variable-speed-panel-increment-button"],S:{"aria-label":"Increase playback speed"},L:[{j:"span",cG:"+"}]});r.listen("click",function(){w.K.setPlaybackRate(Number((w.K.getPlaybackRate()+.05).toFixed(2)));R.logClick(r.element)});
var v=new g.N({j:"div",Y:"ytp-variable-speed-panel-slider-container",L:[V,F,r]}),f=new g.N({j:"div",Y:"ytp-variable-speed-panel-premium-badge",S:{tabindex:"-1"},L:[{j:"div",Y:"ytp-variable-speed-panel-badge"}]}),z=new g.N({j:"span"}),q=new g.N({j:"div",Y:"ytp-variable-speed-panel-display",L:[f,z]}),Q=new g.N({j:"div",Y:"ytp-speed-display-container",L:[q]}),c=new g.c5({j:"div",Y:"ytp-variable-speed-panel-content",S:{tabindex:"0"},L:[Q,v,n]});sb.call(this,R,c,"Playback speed");var w=this;F.listen("click",
function(){R.logClick(F.U)});
this.K.createClientVe(V.element,this,258237);this.K.logVisibility(V.element,!0);this.K.createClientVe(r.element,this,258236);this.K.logVisibility(r.element,!0);this.K.createClientVe(c.element,this,225845);this.K.logVisibility(c.element,!0);this.K.createClientVe(F.U,this,258235);this.K.logVisibility(F.U,!0);this.K.createClientVe(n.element,this,258234);this.K.logVisibility(n.element,!0);g.d(this,q);this.sE=z;g.d(this,this.sE);this.NN=f;g.d(this,this.NN);this.Q3=F;g.d(this,this.Q3);g.d(this,V);g.d(this,
r);g.d(this,n);g.d(this,v);g.d(this,Q);g.d(this,c);v=ZT(this.Qt,50,this);f=R.getVideoData();var L,S,p,C=f==null?void 0:(L=f.getWatchNextResponse())==null?void 0:(S=L.playerOverlays)==null?void 0:(p=S.playerOverlayRenderer)==null?void 0:p.showPlaybackRateUpsellPanelCommand,y,u,B;if((L=f==null?void 0:(y=f.getPlayerResponse())==null?void 0:(u=y.playerConfig)==null?void 0:(B=u.granularVariableSpeedConfig)==null?void 0:B.defaultPlaybackRateOptions)&&L.length>0)for(y=g.m(L),B=y.next(),u={};!B.done;u={yL:void 0,
HU:void 0,Ke:void 0},B=y.next())u.Ke=B.value,u.yL=C&&u.Ke.isPremiumUpsell,u.HU=new g.N({j:"button",BG:["ytp-button","ytp-variable-speed-panel-preset-button","ytp-variable-speed-panel-button"],L:u.yL?[{j:"div",Y:"ytp-variable-speed-panel-premium-upsell-icon"},{j:"span",cG:""+u.Ke.label}]:[{j:"span",cG:""+u.Ke.label}]}),u.yL&&(this.K.createClientVe(u.HU.element,this,273508),this.K.logVisibility(u.HU.element,!0)),g.d(this,u.HU),n.element.appendChild(u.HU.element),u.HU.listen("click",function(O){return function(){O.yL?
(w.K.HG("innertubeCommand",C),R.logClick(O.HU.element)):O.Ke.value&&w.K.setPlaybackRate(O.Ke.value/100);R.logClick(n.element)}}(u)),L=void 0,B=new g.N({j:"div",
Y:"ytp-variable-speed-panel-preset-button-wrapper",S:{"data-priority":""+((L=u.Ke.priority)!=null?L:0)},L:[u.HU]}),g.d(this,B),u.Ke.value===100&&(u=new g.N({j:"div",Y:"ytp-variable-speed-panel-preset-button-label-text",cG:"Normal"}),g.d(this,u),B.element.appendChild(u.element)),n.element.appendChild(B.element);this.C(this.Q3.U,"input",function(){w.ME(w.Q3.T)});
this.C(R,"onPlaybackRateChange",this.onPlaybackRateChange);this.C(R,"resize",v);this.onPlaybackRateChange(R.getPlaybackRate());this.Qt()};
L7=function(R,F){g.j6.call(this,"Playback speed",g.BN.Wj,R,F);this.K=R;R.B("web_settings_menu_icons")&&this.setIcon(vhk());this.U(R.getPlaybackRate());this.C(R,"onPlaybackRateChange",this.U);this.C(R,"presentingplayerstatechange",this.T);var n;((n=this.K.getVideoData())==null?0:n.iZ())&&this.C(R,R.D().rg().T.pH(F7)?"playbackChange":"serverstitchedvideochange",this.T);this.T()};
qxj=function(R){g.AX.call(this,R,"ytp-settings-menu");var F=this;this.kq=new g.pN(this.K);this.m_=this.Vs=this.settingsButton=null;this.isInitialized=this.d_=!1;g.d(this,this.kq);this.hide();g.aG(this,this.kq);R.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(r){F.QG(r)});
this.C(R,"highlightSettingsMenu",function(){F.d_=!0;F.rW()});
this.C(R,"openSettingsMenuItem",function(r){if(r&&(F.d_=!0,F.rW(),r==="menu_item_video_quality_advanced")){var v;(v=F.Vs)==null||v.open()}});
R.B("html5_enable_voice_boost")&&(this.C(R,"onPlaybackAudioChange",this.y7),this.C(R,"videodatachange",this.y7));var n,V;((n=this.K.D())==null?0:(V=n.getWebPlayerContextConfig())==null?0:V.enableFullscreenComponentsFeature)&&this.C(this.element,"wheel",function(r){r.stopPropagation()})};
Q1R=function(R,F){R.settingsButton=F;R.element.id=F.element.getAttribute("aria-controls")};
wnN=function(R,F){g.N.call(this,{j:"button",BG:["ytp-subtitles-button","ytp-button"],S:{"aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"5","data-tooltip-title":"{{tooltip-title}}",title:R.B("player_tooltip_data_title_killswitch")?"{{title}}":"","data-title-no-tooltip":"{{data-title-no-tooltip}}"},L:[R.B("delhi_modern_web_player_icons")?{j:"div",Y:"ytp-subtitles-button-icon",cG:"{{icon}}"}:$46(R)]});this.K=R;this.tooltip=F.q8();R.B("delhi_modern_web_player_icons")&&this.updateValue("icon",
cOR(this));this.C(R,"videodatachange",this.CH);this.C(R,"appresize",this.CH);this.C(R,"promotooltipacceptbuttonclicked",this.mP5);this.C(R,"onApiChange",this.CH);this.C(R,"onCaptionsTrackListChanged",this.CH);this.C(R,"captionschanged",this.CH);this.K.createClientVe(this.element,this,127299);this.CH();this.listen("click",this.onClick);this.addOnDisposeCallback(g.G9(F.q8(),this.element))};
sL=function(R){return g.Cz(R.K.WI())!=null?g.Cz(R.K.WI()).HP()?!!R.K.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1};
cOR=function(R){if(R.K.B("delhi_modern_web_player_icons"))return R=hi.includes("en")?sL(R)&&R.isEnabled()?{j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 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 3ZM9.03 8.08L9.29 8.16C9.79 8.35 10.24 8.65 10.60 9.05L10.77 9.26L10.83 9.34C10.96 9.55 11.01 9.80 10.96 10.05C10.92 10.29 10.79 10.51 10.59 10.66C10.40 10.81 10.15 10.89 9.91 10.87C9.66 10.85 9.43 10.74 9.26 10.57L9.19 10.49L9.11 10.39C8.98 10.24 8.81 10.12 8.62 10.05L8.54 10.02C8.32 9.97 8.10 10.00 7.91 10.11C7.67 10.24 7.48 10.43 7.35 10.67L7.28 10.79C7.09 11.16 6.99 11.58 7 12L7.00 12.16C7.02 12.52 7.11 12.88 7.28 13.20L7.35 13.32C7.48 13.56 7.67 13.75 7.91 13.88L7.99 13.92C8.16 14.00 8.35 14.02 8.54 13.97L8.62 13.94C8.85 13.85 9.05 13.70 9.19 13.50L9.26 13.43C9.44 13.24 9.68 13.13 9.93 13.12C10.19 13.11 10.44 13.20 10.63 13.37C10.82 13.53 10.94 13.77 10.97 14.02C11.00 14.27 10.93 14.53 10.77 14.73C10.39 15.23 9.88 15.61 9.29 15.83L9.03 15.91C8.43 16.06 7.79 16.01 7.21 15.77L6.97 15.65C6.42 15.35 5.95 14.90 5.64 14.36L5.50 14.12C5.21 13.55 5.04 12.92 5.00 12.27L5 12C4.99 11.26 5.17 10.53 5.50 9.87L5.64 9.63C5.96 9.09 6.42 8.64 6.97 8.34C7.60 8.00 8.34 7.91 9.03 8.08ZM17.03 8.08L17.29 8.16C17.79 8.35 18.24 8.65 18.60 9.05L18.77 9.26L18.83 9.34C18.96 9.55 19.01 9.80 18.96 10.05C18.92 10.29 18.79 10.51 18.59 10.66C18.40 10.81 18.15 10.89 17.91 10.87C17.66 10.85 17.43 10.74 17.26 10.57L17.19 10.49L17.11 10.39C16.98 10.24 16.81 10.12 16.62 10.05L16.54 10.02C16.32 9.97 16.10 10.00 15.91 10.11C15.67 10.24 15.48 10.43 15.35 10.67L15.28 10.79C15.09 11.16 14.99 11.58 15 12L15.00 12.16C15.02 12.52 15.11 12.88 15.28 13.20L15.35 13.32C15.48 13.56 15.67 13.75 15.91 13.88L15.99 13.92C16.16 14.00 16.35 14.02 16.54 13.97L16.62 13.94C16.85 13.85 17.05 13.70 17.19 13.50L17.26 13.43C17.44 13.24 17.68 13.13 17.93 13.12C18.19 13.11 18.44 13.20 18.63 13.37C18.82 13.53 18.94 13.77 18.97 14.02C19.00 14.27 18.93 14.53 18.77 14.73C18.39 15.23 17.88 15.61 17.29 15.83L17.03 15.91C16.43 16.06 15.79 16.01 15.21 15.77L14.97 15.65C14.42 15.35 13.95 14.90 13.64 14.36L13.50 14.12C13.21 13.55 13.04 12.92 13.00 12.27L13 12C12.99 11.26 13.17 10.53 13.50 9.87L13.64 9.63C13.96 9.09 14.42 8.64 14.97 8.34C15.60 8.00 16.34 7.91 17.03 8.08Z",
fill:"white"}}]}:CG():sL(R)&&R.isEnabled()?{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 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 3ZM6 11H8C8.26 11 8.51 11.10 8.70 11.29C8.89 11.48 9 11.73 9 12C9 12.26 8.89 12.51 8.70 12.70C8.51 12.89 8.26 13 8 13H6C5.73 13 5.48 12.89 5.29 12.70C5.10 12.51 5 12.26 5 12C5 11.73 5.10 11.48 5.29 11.29C5.48 11.10 5.73 11 6 11ZM12 11H18C18.26 11 18.51 11.10 18.70 11.29C18.89 11.48 19 11.73 19 12C19 12.26 18.89 12.51 18.70 12.70C18.51 12.89 18.26 13 18 13H12C11.73 13 11.48 12.89 11.29 12.70C11.10 12.51 11 12.26 11 12C11 11.73 11.10 11.48 11.29 11.29C11.48 11.10 11.73 11 12 11ZM16 15H18C18.26 15 18.51 15.10 18.70 15.29C18.89 15.48 19 15.73 19 16C19 16.26 18.89 16.51 18.70 16.70C18.51 16.89 18.26 17 18 17H16C15.73 17 15.48 16.89 15.29 16.70C15.10 16.51 15 16.26 15 16C15 15.73 15.10 15.48 15.29 15.29C15.48 15.10 15.73 15 16 15ZM6 15H12C12.26 15 12.51 15.10 12.70 15.29C12.89 15.48 13 15.73 13 16C13 16.26 12.89 16.51 12.70 16.70C12.51 16.89 12.26 17 12 17H6C5.73 17 5.48 16.89 5.29 16.70C5.10 16.51 5 16.26 5 16C5 15.73 5.10 15.48 5.29 15.29C5.48 15.10 5.73 15 6 15Z",
fill:"white"}}]}:sxe()};
g.p7=function(R,F,n){n=n===void 0?350:n;g.N.call(this,{j:"div",BG:["ytp-time-display","notranslate"],L:[{j:"div",Y:"ytp-time-wrapper",L:[{j:"div",Y:"ytp-time-contents",S:R.B("delhi_modern_web_player")?{"aria-label":"{{timeDisplayAriaLabel}}",role:"button",tabindex:"0"}:{"aria-label":"{{timeDisplayAriaLabel}}"},L:[{j:"span",Y:"ytp-time-clip-icon",cG:"{{clipicon}}",S:{"aria-label":"Clip"}},{j:"span",Y:"ytp-time-current",cG:"{{currenttime}}"},{j:"span",Y:"ytp-time-separator",cG:" / "},{j:"span",Y:"ytp-time-duration",
cG:"{{duration}}"}]}]},{j:"span",Y:"ytp-clip-watch-full-video-button-separator",cG:"\u2022"},{j:"span",Y:"ytp-clip-watch-full-video-button",cG:"{{watchfullvideo}}"}]});var V=this;this.api=R;this.Nq=n;this.liveBadge=new g.N({j:"button",BG:["ytp-live-badge","ytp-button"],S:{disabled:"true"},cG:"{{content}}"});this.T=null;this.hM=this.U=!1;this.V=this.X=this.Z=null;this.isPremiere=!1;this.W=this.J=null;this.N=!1;this.wg=this.liveIndicatorText=null;this.J1=this.sZ("ytp-clip-watch-full-video-button");
this.liveBadge.setContent("Live");g.d(this,this.liveBadge);this.api.B("web_player_updated_entrypoint")||this.api.B("delhi_modern_web_player")?this.liveBadge.KH(this.sZ("ytp-time-wrapper")):this.liveBadge.KH(this.element);this.tooltip=F.q8();this.liveBadge.listen("click",this.onClick.bind(this));this.api.B("delhi_modern_web_player")&&(F=this.sZ("ytp-time-wrapper"),this.C(F,"click",this.CZ2),F.classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown()));this.C(this.J1,"click",this.Q9H);this.C(this.api,
this.api.D().rg().T.pH(F7)?"playbackChange":"serverstitchedvideochange",function(){Sx6(V,V.api.getProgressState().isAtLiveHead)});
this.C(R,"presentingplayerstatechange",this.M5);this.C(R,"appresize",this.M5);this.C(R,"onLoopRangeChange",this.onLoopRangeChange);this.C(R,"videodatachange",this.onVideoDataChange);(F=R.getVideoData())&&this.updateVideoData(F);this.M5();LA_(this,R.getLoopRange())};
Sx6=function(R,F){var n=R.liveBadge.element,V=R.api.isLifaAdPlaying();n.disabled=V||F;!XJ(R)||R.V===F&&R.X===R.liveIndicatorText&&R.Z===R.isPremiere||(R.V=F,R.X=R.liveIndicatorText,R.Z=R.isPremiere,R.M5(),F?n.classList.add("ytp-live-badge-is-livehead"):n.classList.remove("ytp-live-badge-is-livehead"),R.liveIndicatorText?R.liveBadge.setContent(R.liveIndicatorText):R.liveBadge.setContent(R.isPremiere?"Premiere":"Live"),F?R.T&&(R.T(),R.T=null,n.removeAttribute("data-tooltip-title")):(n.setAttribute("data-tooltip-title",
"Skip ahead to live broadcast."),R.T=g.G9(R.tooltip,R.liveBadge.element)))};
LA_=function(R,F){var n=R.wg!==F;R.wg=F;n&&s1e(R)};
s1e=function(R){R.updateValue("clipicon",{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",S:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]});
R.hM&&!R.U?R.updateValue("watchfullvideo","Watch live stream"):R.updateValue("watchfullvideo","Watch full video");g.ws(R.element,"ytp-clip",AU(R));g.ws(R.element,"ytp-live",XJ(R))};
XJ=function(R){var F=R.api.D().B("enable_linear_program_progress"),n=R.api.getPresentingPlayerType()===2;return R.hM&&!AU(R)&&(!F||!R.U)&&!n};
AU=function(R){return!!R.wg&&!!R.wg.postId&&R.api.getPresentingPlayerType()!==2&&(!R.wg.type||R.wg.type==="clips")};
AOV=function(R,F){g.N.call(this,{j:"div",Y:"ytp-volume-panel",S:{title:R.B("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},L:[{j:"div",Y:"ytp-volume-slider",L:[{j:"div",Y:"ytp-volume-slider-handle"}]}]});var n=this;this.api=R;this.Z=F;this.J8=!1;this.Nq=this.volume=0;this.W=null;this.U=this.T=this.isDragging=!1;this.Z=F;this.N=R.ju();
this.V=R.B("web_player_use_screen_width_for_big_mode");this.X=this.sZ("ytp-volume-slider");this.J1=this.sZ("ytp-volume-slider-handle");this.J=new g.WB(this.X,!0);g.d(this,this.J);this.J.subscribe("dragstart",this.GIG,this);this.J.subscribe("dragmove",this.Lj,this);this.J.subscribe("dragend",this.Rq5,this);this.C(R,"onVolumeChange",this.onVolumeChange);this.C(R,"appresize",this.PZ2);this.C(R,"fullscreentoggled",this.by);this.C(R,"onShowControls",this.Ne);this.C(R,"onHideControls",this.Ne);this.C(this.element,
"keydown",this.Hc);this.C(this.element,"focus",function(){ag(n,n.T,n.isDragging,!0,n.api.J8())});
this.C(this.element,"blur",function(){ag(n,n.T,n.isDragging,!1,n.api.J8())});
pn9(this,R.fH().getPlayerSize());XnJ(this,R.getVolume(),R.isMuted());dZ(R,this.element,this)};
aON=function(R){var F=R.api.ju();R.N!==F&&(R.N=F,XnJ(R,R.api.getVolume(),R.api.isMuted()))};
pn9=function(R,F){R.dg(F.width>=350)};
XnJ=function(R,F,n){var V=Math.floor(F),r=V+"% volume"+(n?" muted":"");n=n?0:F/100;R.updateValue("valuenow",V);R.updateValue("valuetext",r);V=R.N?78:52;r=!R.api.B("delhi_modern_web_player")&&R.N?18:12;R.J1.style.left=(V-r)*n+"px";R.volume=F};
CRv=function(R,F){g.ws(R.element,"ytp-volume-control-hover",F);ag(R,F,R.isDragging,R.U,R.api.J8())};
ag=function(R,F,n,V,r){var v=R.T||R.isDragging||R.U||R.J8;R.T=F;R.isDragging=n;R.U=V;R.J8=r;F=R.T||R.isDragging||R.U||R.J8;v!==F&&(F?R.W=R.C(R.element,"wheel",R.Vg):(R.ZO(R.W),R.W=null),g.ws(R.Z,"ytp-volume-slider-active",F))};
C7=function(R,F){var n=R.D(),V=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];n.N&&V.push("no-link");var r={title:R.B("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}",target:n.UZ,"data-priority":"6","data-sessionlink":"feature=player-button"};n.N||(r.href="{{url}}");g.N.call(this,{j:"a",BG:V,S:r,cG:"{{logoSvg}}"});this.T=null;this.api=R;this.visible=!1;n.N||(this.T=this.listen("click",this.onClick));this.C(R,"videodatachange",this.onVideoDataChange);
this.C(R,"videoplayerreset",this.onVideoDataChange);this.C(R,"onLoopRangeChange",this.onVideoDataChange);this.C(R,"appresize",this.G9);this.onVideoDataChange();n.N||this.addOnDisposeCallback(g.G9(F.q8(),this.element));this.G9()};
ofI=function(R,F,n){g.AQ.call(this);var V=this;this.K=R;this.jQ=F;this.Ck=n;this.h1=NaN;this.J1=this.gX=this.playButton=this.J=this.W=this.Y5=this.Mq=this.Nq=this.UZ=this.muteButton=this.X=this.dX=this.yr=this.uS=null;this.U=new qxj(this.K);this.progressBar=new g.kd(this.K,this.jQ);this.J_=new g.p7(this.K,this.jQ);this.SQ=new oO9(this.K,this.jQ);this.V=new g.bM(this.hZ,null,this);n=R.D();this.Ck.subscribe("autohideupdate",this.d0,this);var r=!R.getPlayerStateObject().isCued(),v;(this.aG=!R.B("delhi_modern_web_player")&&
R.D().B("html5_player_dynamic_bottom_gradient"))?this.dX=v=new AY9(R):v=new g.N({j:"div",Y:"ytp-gradient-bottom"});g.d(this,v);g.RL(R,v.element,9);this.PG=new g.n5(v,250,r,100);g.d(this,this.PG);this.T=new g.N({j:"div",Y:"ytp-chrome-bottom",L:[{j:"div",Y:"ytp-chrome-controls"}]});g.d(this,this.T);g.RL(R,this.T.element,9);R.B("frosted_glass_controls_opacity_animation")&&this.T.element.classList.add("ytp-frosted-glass-opacity-animation");this.lS=new g.n5(this.T,250,r,100);g.d(this,this.lS);this.bS=
this.T.element.children[0];g.d(this,this.U);g.RL(R,this.U.element,6);this.U.subscribe("show",function(Q){V.K.ud(!Q);R.eM(V.U,Q)});
g.d(this,this.progressBar);TE(this,this.progressBar,this.T.element,void 0,0);r=new Uc(R,F);g.d(this,r);g.RL(R,r.element,4);r=new g.ze({j:"div",Y:"ytp-left-controls"});g.d(this,r);r.KH(this.bS);R.B("delhi_modern_web_player")||(v=new g.In(R,F,!1),g.d(this,v),TE(this,v,r.element));R.B("web_render_jump_buttons")&&(this.UZ=new jy(R,-10),g.d(this,this.UZ),TE(this,this.UZ,r.element));n.Y5||(this.playButton=new g.Oc(R,F),g.d(this,this.playButton),TE(this,this.playButton,r.element));R.B("web_render_jump_buttons")&&
(this.Nq=new jy(R,10),g.d(this,this.Nq),TE(this,this.Nq,r.element));R.B("delhi_modern_web_player")&&(v=new g.In(R,F,!1),g.d(this,v),TE(this,v,r.element));v=new g.In(R,F,!0);g.d(this,v);TE(this,v,r.element);if(!R.B("delhi_modern_web_player")||R.B("delhi_modern_web_player_horizontal_volume_controls"))if(v=new g.N({j:"span",Y:"ytp-volume-area"}),g.d(this,v),TE(this,v,r.element),!n.oC&&(this.muteButton=new gU(R,F),g.d(this,this.muteButton),this.muteButton.KH(v.element),n.Mq&&!n.X)){var f=new AOV(R,this.T.element);
this.gX=f;g.d(this,f);f.KH(v.element);v=new g.WB(v.element);g.d(this,v);v.subscribe("hoverstart",function(){var Q;(Q=V.gX)==null||CRv(Q,!0)});
v=new g.WB(r.element);g.d(this,v);v.subscribe("hoverend",function(){var Q;(Q=V.gX)==null||CRv(Q,!1)})}R.B("delhi_modern_web_player_lhs_volume_controls")&&!R.B("delhi_modern_web_player_horizontal_volume_controls")&&(r.element.classList.add("ytp-left-controls-with-volume"),this.muteButton=new gU(R,F),g.d(this,this.muteButton),this.muteButton.KH(r.element),this.muteButton.element.classList.add("ytp-standalone-mute-button"));
g.d(this,this.J_);TE(this,this.J_,r.element,"ytp-time-wrapper");this.Mq=new on(R,this.progressBar);g.d(this,this.Mq);TE(this,this.Mq,r.element,"ytp-chapter-title");n.B("web_key_moments_markers")&&(this.Y5=new Hy(R,this.progressBar),g.d(this,this.Y5),TE(this,this.Y5,r.element,"ytp-chapter-title"));R.B("delhi_modern_web_player")?this.N=new g.ze({j:"div",Y:"ytp-right-controls",L:[{j:"div",Y:og.RIGHT_CONTROLS_LEFT},{j:"div",Y:og.RIGHT_CONTROLS_RIGHT}]}):this.N=new g.ze({j:"div",Y:"ytp-right-controls"});
g.d(this,this.N);TE(this,this.N,this.bS);R.B("delhi_modern_web_player")&&(this.X=new yJ(R),g.d(this,this.X),this.X.KH(this.N.sZ(og.RIGHT_CONTROLS_LEFT)),R.B("delhi_modern_web_player_lhs_volume_controls")||R.B("delhi_modern_web_player_horizontal_volume_controls")||(this.muteButton=new gU(R,F),g.d(this,this.muteButton),this.muteButton.KH(this.N.sZ(og.RIGHT_CONTROLS_LEFT))));this.k5=new wnN(R,F);g.d(this,this.k5);yx(this,this.k5,"RIGHT_CONTROLS_LEFT");this.settingsButton=new n7(R,this.U);g.d(this,this.settingsButton);
Q1R(this.U,this.settingsButton);yx(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");r=R.getVideoData();if(n.Sm||r.On&&n.controlsType==="1")this.W=new C7(R,F),g.d(this,this.W),this.W.KH(this.N.element);n.showMiniplayerButton&&!R.B("web_player_miniplayer_in_context_menu")&&(this.J=new hG(R),g.d(this,this.J),yx(this,this.J,"RIGHT_CONTROLS_RIGHT"));n.showMiniplayerButton&&this.C(R,"minimized",function(){V.U.hide()});
n.xw&&(F=new FJ(R,this.U),g.d(this,F),yx(this,F,"RIGHT_CONTROLS_RIGHT"));n.D1&&(F=new CU(R),g.d(this,F),yx(this,F,"RIGHT_CONTROLS_RIGHT"));g.d(this,this.SQ);yx(this,this.SQ,"RIGHT_CONTROLS_RIGHT");g.d(this,this.V);this.C(R,"appresize",this.G9);this.C(R,"fullscreentoggled",this.G9);var z;(z=this.X)==null||z.subscribe("small-mode-expand-right-bottom-controls",function(){TRW(V)});
var q;(q=this.X)==null||q.subscribe("small-mode-collapse-right-bottom-controls",function(){TRW(V)});
this.C(R,"presentingplayerstatechange",this.g1);this.C(R,"videodatachange",this.onVideoDataChange);this.G9()};
TRW=function(R){R.T.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",R.X.isExpanded())};
yO_=function(R,F){R.K.getPlayerStateObject().isCued()||F?F&&(R.lS.hide(),R.PG.hide(),R.muteButton&&R.muteButton.Un(!1),R.W&&R.W.Un(!1),R.J&&R.J.Un(!1),R.K.I$(R.Fs())):F||(R.lS.show(),R.PG.show(),R.muteButton&&R.muteButton.Un(!0),R.W&&R.W.Un(!0),R.J&&R.J.Un(!0),R.d0())};
j1v=function(R){var F=R.K.fH().getPlayerSize().width;return Math.max(F-U$E(R)*2,100)};
U$E=function(R){if(R.K.B("web_player_rtr_ctrls")&&R.K.fH().Cx)return 0;var F=R.K.ju(),n=R.K.getVideoData().On,V=0;R.K.ju()&&R.K.isEmbedsShortsMode()&&(V=(R.K.fH().getPlayerSize().width-R.K.getVideoContentRect().width)/2);return 12*(n?0:F?2:1)+V};
HCN=function(R){var F=R.K.ju()?72:50,n=R.K.D();g.Xk(n)&&(n.B("delhi_modern_web_player")?(F=g.Vn(n.experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),F=R.K.B("delhi_modern_web_player_compact_controls")||F>0&&R.K.getPlayerSize().width<=F,F=R.K.ju()?n.B("delhi_modern_web_player_big_mode_consistent_pill_height")?100:112:F?70:78,R.K.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(R=getComputedStyle(R.K.getRootNode()).getPropertyValue("--ytp-grid-peek-height")||
"36px",F+=Number(R.replace("px","")))):F=62,g.n9(n)&&(F=54));return F};
yx=function(R,F,n){R.K.B("delhi_modern_web_player")?F.KH(R.N.sZ(og[n])):F.KH(R.N.element)};
TE=function(R,F,n,V,r){F.KH(n,r);R.K.B("frosted_glass_controls_opacity_animation")&&(R=F.element,V&&(R=F.sZ(V)),R.classList.add("ytp-autohide-fade-transition"))};
WAk=function(R){LN.call(this,R,!1);var F=this;this.suggestedActions={};this.T=null;this.element.setAttribute("data-overlay-order","7");this.C(this.K,"videodatachange",this.onVideoDataChange);this.C(this.K,g.$A("suggested_action_button_visible"),function(n){hFf(F,n.id);F.enabled=!0;F.QG()});
this.C(this.K,g.Pl("suggested_action_button_visible"),function(n){F.enabled=!1;F.QG();F.K.removeCueRange(n.id)});
this.C(R,"presentingplayerstatechange",this.onStateChange)};
hFf=function(R,F){R.text=F;ktE(R);var n;R.onClickCommand=(n=R.suggestedActions[F])==null?void 0:n.tapCommand};
uz9=function(R){R.suggestedActions={};R.K.Bw("suggested_action_button_visible");R.T=null;R.K.setTrackingParams(R.badge.element,null);R.U=!1};
jv=function(R){g.N.call(this,{j:"div",Y:UL.TITLE,L:[{j:"div",BG:[UL.TEXT,R.B("enable_larger_title_line_height")?"ytp-title-text-larger-line-height":""],L:[{j:"a",BG:[UL.LINK,UL.SESSIONLINK],S:{target:R.D().UZ,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},cG:"{{title}}"},{j:"div",Y:UL.SUBTEXT,L:["{{subtextElement}}"]}]}]});this.api=R;this.T=null;this.link=this.sZ(UL.LINK);R.createClientVe(this.element,this,23851);this.C(R,"videodatachange",this.CH);
this.C(R,"videoplayerreset",this.CH);this.CH()};
BR6=function(R){R.updateValue("channelLink","");R.updateValue("channelName","");g.n9(R.api.D())||R.api.B("enable_channel_title_always_focusable")?R.updateValue("channelTitleFocusable","0"):R.updateValue("channelTitleFocusable","-1")};
g.HL=function(R,F){g.N.call(this,{j:"div",L:[{j:"div",Y:"ytp-tooltip-text-wrapper",S:{"aria-hidden":"{{ariaHidden}}"},L:[{j:"div",Y:"ytp-tooltip-edu",L:[{j:"svg",S:{height:"100%",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",S:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{j:"span",cG:"{{eduText}}"}]},{j:"div",Y:"ytp-tooltip-image"},{j:"div",Y:"ytp-tooltip-title",L:[{j:"span",cG:"{{title}}"},{j:"div",Y:"ytp-tooltip-keyboard-shortcut",
cG:"{{keyBoardShortcutTitle}}"}]},{j:"div",Y:"ytp-tooltip-bottom-text",L:[{j:"span",Y:"ytp-tooltip-text",cG:"{{text}}"},{j:"div",Y:"ytp-tooltip-keyboard-shortcut",cG:"{{keyBoardShortcut}}"}]},{j:"div",Y:"ytp-tooltip-progress-bar-pill",L:[{j:"div",Y:"ytp-tooltip-progress-bar-pill-time-stamp",cG:"{{pillTimeStamp}}"},{j:"div",Y:"ytp-tooltip-progress-bar-pill-title",cG:"{{pillTitle}}"}]}]},{j:"div",Y:"ytp-tooltip-bg",L:[{j:"div",Y:"ytp-tooltip-duration",cG:"{{duration}}"}]}]});var n=this;this.api=R;this.Mq=
F;this.V=function(V){(V=V.relatedTarget)&&g.xW(n.T,V)||n.TZ()};
this.W=function(V){n.type===3&&n.TZ();(V=V.currentTarget)&&V.nodeType===1&&!n.type&&(V.removeEventListener("mouseover",n.W),V.addEventListener("mouseout",n.V),V.removeEventListener("focus",n.W),V.addEventListener("blur",n.V),m$I(n,V,2))};
this.Nq=function(){n.TZ()};
this.type=this.T=null;this.X=!1;this.U=null;this.N="";this.Z=!0;this.scale=1;this.env=this.api.D();this.lS=this.env.U;this.wrapper=this.sZ("ytp-tooltip-text-wrapper");this.bg=this.sZ("ytp-tooltip-bg");this.PG=this.sZ("ytp-tooltip-edu");this.image=this.sZ("ytp-tooltip-image");this.text=this.sZ("ytp-tooltip-text");this.bottomText=this.sZ("ytp-tooltip-bottom-text");this.title=this.sZ("ytp-tooltip-title");this.fade=new g.n5(this,100);this.J=NaN;this.u$=this.api.fH().getPlayerSize().width;this.J1=new g.ZK(this.KQ5,
250,this);this.jQ=new g.ZK(this.TZ,5E3,this);g.d(this,this.fade);g.d(this,this.J1);g.d(this,this.jQ);li&&(R=this.sZ("ytp-tooltip-text"),R.setAttribute("role","text"),R.setAttribute("aria-live","polite"))};
gf_=function(R,F){R.env.B("delhi_modern_web_player")&&R.scale!==.6&&(R.scale=F?.8:1)};
g.G9=function(R,F){if(R.lS)return function(){};
F.addEventListener("mouseover",R.W);F.addEventListener("focus",R.W);var n=R.env.B("player_tooltip_data_title_killswitch")?F.getAttribute("title"):F.getAttribute("data-tooltip-title");n&&!F.hasAttribute("aria-label")&&F.setAttribute("aria-label",n);return function(){R.T===F&&R.TZ();F.removeEventListener("mouseover",R.W);F.removeEventListener("focus",R.W)}};
m$I=function(R,F,n,V){if(F&&!F.hasAttribute)R=new g.UR("showElementTooltip called with non-element.",F.toString()),g.uX(R);else{isNaN(R.J)||(R.J=NaN,R.bg.style.background="");g.Qj(R.element,"ytp-tooltip-progress-bar-style");R.T=F;R.X=!!V;V?R.N=V:(R.env.B("player_tooltip_data_title_killswitch")?R.N=F.getAttribute("title"):R.N=F.getAttribute("data-tooltip-title"),R.env.B("player_tooltip_data_title_killswitch")?F.removeAttribute("title"):F.removeAttribute("data-tooltip-title"));g.fO(R.element,"ytp-tooltip");
var r=F.getAttribute("data-tooltip-image");r&&(R.image.style.backgroundImage="url("+r+")");V?R.update({ariaHidden:"false"}):R.update({ariaHidden:"true"});g.ws(R.element,"ytp-tooltip-image-enabled",!!r);F=F.getAttribute("data-tooltip-opaque");g.ws(R.element,"ytp-tooltip-opaque",!!F);R.type=n;R.api.addEventListener("appresize",R.Nq);R.Z&&(hU(R),R.fade.show(0))}};
hU=function(R){if(R.T){var F=R.T.getAttribute("data-tooltip-text");if(R.N&&R.T.getAttribute("aria-label")!==R.N)var n=R.N;var V=R.T.getAttribute("aria-keyshortcuts"),r=R.T.getAttribute("data-title-no-tooltip");V&&r&&(n=g.fy("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:r,SHORTCUT_KEY:V}));n&&R.T.setAttribute("aria-label",n);if(F&&!R.X){gf_(R,!0);var v=R.T;R.updateValue("text",F);n=v.getAttribute("data-duration");R.update({title:R.N,duration:n});v=v.getAttribute("data-preview");R.env.B("delhi_modern_web_player")?
(R.updateValue("title",r),R.updateValue("keyBoardShortcutTitle",V.toUpperCase())):gf_(R,!1);V=243*R.scale;r=141*R.scale;R.bg.style.width=V+"px";R.bg.style.height=r+"px";R.bg.style.backgroundImage=v?"url("+v+")":"";R.bg.style.backgroundSize=V+"px "+r+"px";R.wrapper.style.width=V+"px";g.qX(R.element,["ytp-text-detail","ytp-preview"]);g.ws(R.element,"ytp-has-duration",!!n)}else r&&V&&R.env.B("delhi_modern_web_player")?(R.updateValue("text",r),R.updateValue("keyBoardShortcut",V.toUpperCase())):R.updateValue("text",
R.N),g.ct(R.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);n=R.T;n.hasAttribute("data-tooltip-offset-y")?(n=Number(n.getAttribute("data-tooltip-offset-y")),n=isNaN(n)?0:n):n=0;OCV(R,!!F,void 0,n)}};
OCV=function(R,F,n,V){var r=Math.min(R.u$,300*R.scale);R.element.style.maxWidth=F?"":r+"px";R.Mq.Du(R.element,R.T,n,R.type===1,V);R.element.style.top?g.z0(R.element,"ytp-bottom"):R.element.style.bottom&&g.z0(R.element,"ytp-top");R.type===3&&R.jQ.start()};
IOR=function(R,F){g.ws(R.element,"ytp-preview",F>=0);if(!(F<0||F===R.J)){R.J=F;F=243*R.scale;var n=141*R.scale,V=P8R(R.U,R.J,F);al9(R.bg,V,F,n,!0);R.J1.start()}};
KA6=function(R){var F=R.T;R.type===3&&R.jQ.stop();R.api.removeEventListener("appresize",R.Nq);R.X||(R.env.B("player_tooltip_data_title_killswitch")?F.setAttribute("title",R.N):F.setAttribute("data-tooltip-title",R.N));R.N="";R.T=null;R.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});R.wrapper.style.width=""};
iCe=function(R){g.N.call(this,{j:"button",BG:["ytp-watch-later-button","ytp-button"],S:{title:R.B("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.Pp(R.D()))},L:[{j:"div",Y:"ytp-watch-later-icon",cG:"{{icon}}"},{j:"div",Y:"ytp-watch-later-title",cG:"Watch later"}]});this.K=R;this.icon=null;this.visible=this.isRequestPending=this.T=!1;K$f(R);R.createClientVe(this.element,this,28665);this.listen("click",
this.onClick,this);this.C(R,"videoplayerreset",this.onReset);this.C(R,"appresize",this.cF);this.C(R,"videodatachange",this.cF);this.C(R,"presentingplayerstatechange",this.cF);this.cF();R=this.K.D();var F=g.xh("yt-player-watch-later-pending");R.J&&F?(xQR(),D$e(this)):this.CH(2);g.ws(this.element,"ytp-show-watch-later-title",g.Pp(R));dZ(this.K,this.element,this)};
x$_=function(R){var F=R.K.getPlayerSize(),n=R.K.D(),V=R.K.getVideoData(),r=g.Pp(n)&&g.PK(R.K)&&g.E(R.K.getPlayerStateObject(),128),v=n.N;return n.QZ&&F.width>=240&&!V.isAd()&&V.QZ&&!r&&!V.On&&!R.K.isEmbedsShortsMode()&&!v};
kIW=function(R,F){WU_(g.wg(R.K.D()),"wl_button",function(){xQR({videoId:F});window.location.reload()})};
D$e=function(R){if(!R.isRequestPending){R.isRequestPending=!0;R.CH(3);var F=R.K.getVideoData();F=R.T?F.removeFromWatchLaterCommand:F.addToWatchLaterCommand;var n=R.K.i_(),V=R.T?function(){R.T=!1;R.isRequestPending=!1;R.CH(2);R.K.D().V&&R.K.HG("WATCH_LATER_VIDEO_REMOVED")}:function(){R.T=!0;
R.isRequestPending=!1;R.CH(1);R.K.D().U&&R.K.TT(R.element);R.K.D().V&&R.K.HG("WATCH_LATER_VIDEO_ADDED")};
Da(n,F).then(V,function(){R.isRequestPending=!1;R.CH(4,"An error occurred. Please try again later.");R.K.D().V&&R.K.HG("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}};
Yxe=function(R,F){if(F!==R.icon){switch(F){case 3:var n=WN();break;case 1:n=pG();break;case 2:n={j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{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:n={j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",
AX:!0,S:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}R.updateValue("icon",n);R.icon=F}};
JOR=function(){g.Gs.apply(this,arguments);this.s2=(this.PO=g.Pp(this.api.D()))&&(this.api.D().U||vc()||Vu());this.gH=48;this.vl=69;this.Bp=this.zZ=null;this.oi=[];this.W3=this.F7=this.wS=this.iP=this.zk=null;this.tL=[];this.contextMenu=this.nm=this.overflowButton=this.sF=this.gV=this.searchButton=this.copyLinkButton=this.shareButton=this.O8=this.wV=this.title=this.channelAvatar=this.Im=this.tooltip=null;this.sR=!1;this.Tq=this.Go=this.hA=this.RK=null;this.Fhq=this.xm=this.uT=!1};
GIJ=function(R){var F=R.api.D(),n=g.E(R.api.getPlayerStateObject(),128);return F.J&&n&&!R.api.isFullscreen()};
d$I=function(R){if(R.SE()&&!R.api.isEmbedsShortsMode()&&R.sF){var F=R.api.B("web_player_hide_overflow_button_if_empty_menu");!R.O8||F&&!x$_(R.O8)||K_N(R.sF,R.O8);!R.shareButton||F&&!eZW(R.shareButton)||K_N(R.sF,R.shareButton);!R.copyLinkButton||F&&!NUE(R.copyLinkButton)||K_N(R.sF,R.copyLinkButton)}else{F=R.api.D().getWebPlayerContextConfig();if(R.sF){for(var n=R.sF,V=g.m(n.actionButtons),r=V.next();!r.done;r=V.next())r.value.detach();n.actionButtons=[]}R.searchButton&&!g.xW(R.wV.element,R.searchButton.element)&&
R.searchButton.KH(R.wV.element);!R.O8||(F==null?0:F.hideTopWatchNextButton)||g.xW(R.wV.element,R.O8.element)||R.O8.KH(R.wV.element);!R.shareButton||(F==null?0:F.hideTopShareButton)||g.xW(R.wV.element,R.shareButton.element)||R.shareButton.KH(R.wV.element);R.copyLinkButton&&!g.xW(R.wV.element,R.copyLinkButton.element)&&R.copyLinkButton.KH(R.wV.element)}};
MVj=function(R,F,n){F=n?F.lastElementChild:F.firstElementChild;for(var V=null;F;){if(QO(F,"display")!=="none"&&F.getAttribute("aria-hidden")!=="true"){var r=void 0;F.tabIndex>=0?r=F:r=MVj(R,F,n);r&&(V?n?r.tabIndex>V.tabIndex&&(V=r):r.tabIndex<V.tabIndex&&(V=r):V=r)}F=n?F.previousElementSibling:F.nextElementSibling}return V};
lOV=function(R,F,n){if(R.api.B("web_player_nitrate_promo_tooltip")&&R.api.getPresentingPlayerType(!0)!==2){var V=R.api.getVideoData({playerType:1});if(V==null?0:V.tooltipRenderer){V=V.tooltipRenderer;var r;if(r=!R.Tq){if(!(F=!F)){var v,f,z;F=((v=V.tooltipDisplayStrategy)==null?void 0:v.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((f=V.promoConfig)==null?void 0:f.promoId)!=="dtip-edu-player-iseecaptions"&&((z=V.promoConfig)==null?void 0:z.promoId)!=="dtip-edu-player-tc-m2"}r=F}r&&(R.Tq=
new kEv(V,R.api),g.d(R,R.Tq),g.RL(R.api,R.Tq.element,9));var q;(q=R.Tq)==null||dYV(q,V,n)}}};
g.WL=function(R){g.Lz.call(this,R);this.chrome=null;this.load()};
EfR=function(){NRN||(window.addEventListener(li?"touchstart":"click",function(){for(var R=uP.length;R<4;R++){var F=g.gu("VIDEO");F.load();uP.push(new g.iq(F))}},{capture:!0,
passive:!0}),NRN=!0)};
$$N=function(R,F,n,V){var r=n.getVideoData(),v=F.getVideoData();if(n.getPlayerState().isError())return{msg:"player-error"};var f=v.N;if(F.uX()>V/1E3+1)return{msg:"in-the-past"};if(v.isLivePlayback&&!isFinite(V))return{msg:"live-infinite"};V=F.LX();var z=null;V&&(z=V.isView()?V.mediaElement.Wo():V.Wo());if(z&&z.length>12&&g.MF(r))return{msg:"played-ranges"};if(!r.N)return null;if(!f)return{msg:"no-pvd-formats"};if(!r.N.T||!f.T)return{msg:"non-dash"};V=f.videoInfos[0];z=r.N.videoInfos[0];R.Nq&&hu(v)&&
(V=F.nQ(),z=n.nQ());if(!V||!z)return{msg:"no-video-info"};if(R.Z&&(lT(V)||lT(z)))return{msg:"av1"};F=R.J&&v.X7()&&SL();if(z.containerType!==V.containerType)if(F)v.m2("sgap",{ierr:"container"});else return{msg:"container"};if(R.W&&!F&&(z.x5!==V.x5||z.x5===""||V.x5===""))return{msg:"codec"};if(R.X&&z.video&&V.video&&Math.abs(z.video.width/z.video.height-V.video.width/V.video.height)>.01)return{msg:"ratio"};if(g.MF(v)&&g.MF(r))return{msg:"content-protection"};f=f.T[0];r=r.N.T[0];n=f.audio;var q=r.audio;
if(n.sampleRate!==q.sampleRate&&!g.Sl)if(F)v.m2("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:f.itag,cr:n.sampleRate,ni:r.itag,nr:q.sampleRate};return(n.numChannels||2)!==(q.numChannels||2)?{msg:"channel-count"}:R.V&&v.X7()&&V.video.fps!==z.video.fps?{msg:"fps"}:null};
PRk=function(R,F,n){var V=R.getVideoData(),r=F.getVideoData();if(!V.D().supportsGaplessShorts())return{nq:"env"};if((!n.UZ||V.Lm&&!V.isAd()||r.Lm&&!r.isAd())&&(!n.U||V.Lm&&!V.isAd()||r.Lm)&&(!n.N||r.Lm&&!r.isAd()||V.Lm)&&(V.Lm||r.Lm))return{nq:"autoplay"};if(V.endSeconds>0)return{nq:"endcr"};if(!V.X)return{nq:"client"};if(!R.UF())return{nq:"no-empty"};R=$$N(n,R,F,Infinity);return R!=null?{nq:R.msg}:null};
BL=function(R){g.G.call(this);this.app=R;this.W=this.J=this.U=this.T=null;this.N=1;this.events=new g.AQ(this);this.events.C(this.app.eQ,g.Pl("gaplessshortslooprange"),this.V);g.d(this,this.events)};
bC6=function(){this.T=this.X=this.N=this.U=this.UZ=this.Z=this.Nq=this.V=this.W=this.J=!1};
ZCR=function(R){var F=new bC6;F.J=R.B("h5_gapless_support_types_diff");F.V=!1;F.Nq=R.B("html5_gapless_use_format_info_fix");F.Z=R.B("html5_gapless_disable_on_av1")&&!R.B("html5_gapless_enable_on_av1");F.W=R.B("html5_gapless_check_codec_diff_strictly");F.UZ=R.B("html5_gapless_on_ad_autoplay");F.X=R.B("html5_gapless_disable_diff_aspect_radio");F.U=R.B("html5_gapless_ad_autoplay_on_ad_to_video_only")&&!R.B("html5_disable_loop_range_for_shorts_ads");F.T=R.B("html5_pseudogapless_shorts_seek_to_next_start");
F.N=R.B("html5_gapless_ad_autoplay_on_video_to_ad_only");return F};
g.m_=function(R,F,n,V){V=V===void 0?!1:V;y4.call(this);this.mediaElement=R;this.start=F;this.end=n;this.T=V};
eFE=function(R,F,n,V,r,v){v=v===void 0?0:v;g.G.call(this);var f=this;this.policy=R;this.T=F;this.U=n;this.CX=r;this.W=v;this.J=this.N=null;this.currentVideoDuration=this.Z=-1;this.X=!1;this.F9=new oi;this.PA=V-F.qC()*1E3;this.F9.then(void 0,function(){});
this.timeout=new g.ZK(function(){f.HB("timeout")},1E4);
g.d(this,this.timeout);this.V=isFinite(V)||this.CX.D().experiments.GH("html5_pseudogapless_shorts")&&hu(F.getVideoData());this.status={status:0,error:null}};
Fyj=function(R){var F,n,V,r,v,f,z,q,Q;return g.Y(function(c){if(c.T==1){if(R.Zo())return c.return(Promise.reject(Error(R.status.error||"disposed")));R.timeout.start();return g.k(c,R.F9,2)}F=R.T.LX();if(F.isEnded())return R.HB("ended_in_finishTransition"),c.return(Promise.reject(Error(R.status.error||"")));if(!R.J||!p6(R.J))return R.HB("next_mse_closed"),c.return(Promise.reject(Error(R.status.error||"")));if(R.U.Hy()!==R.J)return R.HB("next_mse_mismatch"),c.return(Promise.reject(Error(R.status.error||
"")));n=gX(R);V=n.aT;r=n.Y0;v=n.VU;R.T.AD(!1,!0);f=R9W(F,V,v,!R.U.getVideoData().isAd());R.U.setMediaElement(f);(z=R.T.Po())&&R.U.V_(z.Od,z.iQ);R.V&&(R.policy.T||R.U.seekTo(R.U.getCurrentTime()+.001,{eP:!0,Qv:3,gW:"gapless_pseudo"}),f.play());q=F.fC();q.cpn=R.T.getVideoData().clientPlaybackNonce;q.st=""+V;q.et=""+v;R.U.m2("gapless",q);R.T.m2("gaplessTo",{cpn:R.U.getVideoData().clientPlaybackNonce});Q=R.T.getPlayerType()===R.U.getPlayerType();R.T.Ai(r,!0,!1,Q,R.U.getVideoData().clientPlaybackNonce);
R.U.Ai(R.U.getCurrentTime(),!0,!0,Q,R.T.getVideoData().clientPlaybackNonce);R.U.MY();g.mt(function(){!R.U.getVideoData().V&&R.U.getPlayerState().isOrWillBePlaying()&&R.U.MJ()});
OL(R,6);R.dispose();return c.return(Promise.resolve())})};
vIk=function(R){if(R.U.getVideoData().N){var F=R.CX.D().B("html5_gapless_suspend_next_loader")&&R.W===1;R.U.WM(R.J,F,nIE(R));OL(R,3);V_N(R);var n=rhV(R);F=n.SM;n=n.aA;F.subscribe("updateend",R.MV,R);n.subscribe("updateend",R.MV,R);R.MV(F);R.MV(n)}};
V_N=function(R){R.T.unsubscribe("internalvideodatachange",R.Lf,R);R.U.unsubscribe("internalvideodatachange",R.Lf,R);R.CX.D().B("html5_gapless_use_format_info_fix")&&(R.T.unsubscribe("internalvideoformatchange",R.Lf,R),R.U.unsubscribe("internalvideoformatchange",R.Lf,R));R.T.unsubscribe("mediasourceattached",R.Lf,R);R.U.unsubscribe("statechange",R.xB,R)};
R9W=function(R,F,n,V){R=R.isView()?R.mediaElement:R;return new g.m_(R,F,n,V)};
OL=function(R,F){F<=R.status.status||(R.status={status:F,error:null},F===5&&R.F9.resolve())};
nIE=function(R){return R.CX.D().B("html5_gapless_no_clear_buffer_timeline")&&R.W===1&&MA(R.T.getVideoData())};
gX=function(R){var F=R.T.LX();F=F.isView()?F.start:0;var n=R.T.getVideoData().isLivePlayback?Infinity:R.T.Uf(!0);n=Math.min(R.PA/1E3,n)+F;var V=R.V?100:0;R=n-R.U.uX()+V;return{Xv:F,aT:R,Y0:n,VU:Infinity}};
rhV=function(R){return{SM:R.N.T.En,aA:R.N.U.En}};
Ig=function(R){g.G.call(this);var F=this;this.app=R;this.X=this.U=this.T=null;this.Nq=!1;this.UZ=this.Z=this.N=this.J=null;this.W=ZCR(this.app.D());this.V=function(){g.mt(function(){fov(F)})}};
t_j=function(R,F,n,V,r){V=V===void 0?0:V;r=r===void 0?0:r;R.UF()||(K7(R),DS(R));R.J=new oi;R.T=F;var v=n,f=r===0;f=f===void 0?!0:f;var z=R.app.rX(),q=z.getVideoData().isLivePlayback?Infinity:z.Uf(!0)*1E3;v>q&&(v=q-200,R.Nq=!0);f&&z.getCurrentTime()>=v/1E3?R.V():(R.U=z,f&&(f=v,v=R.U,R.app.eQ.addEventListener(g.$A("vqueued"),R.V),f=isFinite(f)||f/1E3>v.getDuration()?f:0x8000000000000,R.X=new g.NQ(f,0x8000000000000,{namespace:"vqueued"}),v.addCueRange(R.X)));f=V/=1E3;v=F.getVideoData().T;V&&v&&R.U&&
(z=V,q=0,F.getVideoData().isLivePlayback&&(f=Math.min(n/1E3,R.U.Uf(!0)),q=Math.max(0,f-R.U.getCurrentTime()),z=Math.min(V,F.Uf()+q)),f=cz9(v,z)||V,f!==V&&R.T.m2("qvaln",{st:V,at:f,rm:q,ct:z}));F=f;V=R.T;V.getVideoData().uZ=!0;V.getVideoData().X=!0;V.mx(!0);v={};R.U&&(v=R.U.HE(),f=R.U.getVideoData().clientPlaybackNonce,v={crt:(v*1E3).toFixed(),cpn:f});V.m2("queued",v);F!==0&&V.seekTo(F+.01,{eP:!0,Qv:3,gW:"videoqueuer_queued"});R.N=new eFE(R.W,R.app.rX(),R.T,n,R.app,r);n=R.N;n.status.status!==Infinity&&
(OL(n,1),n.T.subscribe("internalvideodatachange",n.Lf,n),n.U.subscribe("internalvideodatachange",n.Lf,n),n.CX.D().B("html5_gapless_use_format_info_fix")&&(n.T.subscribe("internalvideoformatchange",n.Lf,n),n.U.subscribe("internalvideoformatchange",n.Lf,n)),n.T.subscribe("mediasourceattached",n.Lf,n),n.U.subscribe("statechange",n.xB,n),n.T.subscribe("newelementrequired",n.NK,n),n.Lf());return R.J};
fov=function(R){var F,n,V,r,v,f,z;g.Y(function(q){switch(q.T){case 1:if(R.Zo()||!R.J||!R.T)return q.return();R.Nq&&R.app.rX().q0(!0,!1);F=null;if(!R.N){q.wX(2);break}g.zv(q,3);return g.k(q,Fyj(R.N),5);case 5:g.Qz(q,2);break;case 3:F=n=g.cM(q);case 2:if(!R.T)return q.return();z9j.H9("vqsp",function(){R.app.ao(R.T)});
if(!R.T)return q.return();V=R.T.LX();R.app.D().B("html5_gapless_seek_on_negative_time")&&V&&V.getCurrentTime()<-.01&&R.T.seekTo(0);z9j.H9("vqpv",function(){R.app.playVideo()});
F&&(R.T?(r=F?F.message:"forced",(v=R.U)==null||v.m2("gapfulfbk",{r:r}),R.T.xW(r)):(f=R.U)==null||f.m2("gapsp",{}));z=R.J;DS(R);z&&z.resolve();return q.return(Promise.resolve())}})};
DS=function(R,F){F=F===void 0?!1:F;if(R.U){if(R.X){var n=R.U;R.app.eQ.removeEventListener(g.$A("vqueued"),R.V);n.removeCueRange(R.X)}R.U=null;R.X=null}R.N&&(R.N.status.status!==6&&(n=R.N,n.status.status!==Infinity&&n.W!==1&&n.HB("Canceled")),R.N=null);R.J=null;R.T&&!F&&R.T!==R.app.UN()&&R.T!==R.app.rX()&&R.T.dispose();R.T&&F&&R.T.Tv();R.T=null;R.Nq=!1};
K7=function(R){R.UZ&&R.Z&&R.UZ.removeEventListener("timeupdate",R.Z);R.Z=null;R.UZ=null};
chv=function(R,F){if(R.app.D().rg().T.pH(qWE)){var n=R.app.D().rg().T.pH(Q9k);if(!(n<=0)){K7(R);var V,r=(V=R.app.rX())==null?void 0:V.LX();r&&R.T&&(R.T.getVideoData().rR=!0,R.Z=function(){var v=r.getCurrentTime();v>=F+n/1E3&&(v=Date.now()-(v-F)*1E3,R.app.Mc().tick("pbs",v),K7(R))},R.UZ=r,r.addEventListener("timeupdate",R.Z))}}};
wXV=function(R){var F;return((F=R.N)==null?void 0:F.currentVideoDuration)||-1};
SWj=function(R,F,n){if(R.UF())return"qie";if(R.T==null||R.T.Zo()||R.T.getVideoData()==null)return"qpd";if(F.videoId!==R.T.B_())return"vinm";if(wXV(R)<=0)return"ivd";if(n!==1)return"upt";if((n=R.N)==null)R=void 0;else if(n.getStatus().status!==5)R="niss";else if($$N(n.policy,n.T,n.U,n.PA)!=null)R="pge";else{F=rhV(n);R=F.SM;var V=F.aA;F=g.Vn(n.CX.D().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var r=n.Z+F;n.CX.D().experiments.GH("html5_pseudogapless_shorts")&&(r=gX(n).aT+F);n=rl(V.TI(),
r);R=rl(R.TI(),r);R=!(F>0)||n&&R?null:"neb"}return R!=null?R:null};
Lyv=function(){g.fG.call(this);var R=this;this.fullscreen=0;this.J=this.N=this.pictureInPicture=this.T=this.U=this.inline=!1;this.W=function(){R.QG()};
dHf(this.W);this.Z=this.getVisibilityState(this.oa(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Yw(),this.No(),this.w0(),this.ey())};
b09=function(R){return!(R.isMinimized()||R.isInline()||R.isBackground()||R.Yw()||R.No()||R.w0()||R.ey())};
g.iP=function(R){g.G.call(this);this.G=R;this.videoData=this.playerState=null};
XXj=function(R,F,n){return(n===void 0?0:n)?new s9J(R,F):new pXe(R,F)};
pXe=function(R,F){g.G.call(this);var n=this;this.data=[];this.N=R||NaN;this.U=F||null;this.T=new g.ZK(function(){xJ(n);kJ(n)});
g.d(this,this.T)};
xJ=function(R){var F=(0,g.h1)();R.data.forEach(function(n){n.expire<F&&YJ(R,n,!0)});
R.data=g.dk(R.data,function(n){return!(n.expire<F)})};
YJ=function(R,F,n){n&&R.U&&R.U(F.value)};
kJ=function(R){R.T.stop();var F=Infinity;for(var n=g.m(R.data),V=n.next();!V.done;V=n.next())V=V.value,V.expire<F&&(F=V.expire);F&&isFinite(F)&&(F=Math.max(F-Date.now(),100),R.T.start(F))};
s9J=function(R,F){R=R===void 0?NaN:R;F=F===void 0?null:F;g.G.call(this);var n=this;this.J=R;this.U=F;this.N=new g.ZK(function(){for(var V=(0,g.h1)();!n.T.isEmpty();){var r=J$(n.T);if(r===void 0||r>V)break;var v=n.T.remove(),f=n.map.get(v);f&&f.F_===r&&JU(n,v,!0)}GE(n)});
this.map=new Map;this.T=new G0;Number.isNaN(R);g.d(this,this.N)};
JU=function(R,F,n){var V=R.map.get(F);if(!V)return!1;R.map.delete(F);n&&R.U&&R.U(V.value);if(R.T.T.length>R.map.size*2)for(R.T.clear(),F=g.m(R.map.entries()),n=F.next();!n.done;n=F.next())V=g.m(n.value),n=V.next().value,V=V.next().value,isFinite(V.F_)&&R.T.enqueue(V.F_,n);return!0};
GE=function(R){R.N.stop();for(var F;!R.T.isEmpty();){var n=J$(R.T);var V=R.T.T;V=V.length!=0?V[0].getValue():void 0;if(n===void 0||V===void 0)break;if((V=R.map.get(V))&&V.F_===n){F=n;break}else R.T.remove()}F!==void 0&&(n=(0,g.h1)(),R.N.start(Math.max(F-n,100)))};
g.dX=function(R,F){g.G.call(this);var n=this;this.api=R;this.N={};this.c6=null;this.J={};this.T=null;this.V=new Map;this.X=null;F=XXj(F,function(V){V!==n.Jm({playerType:V.getPlayerType()})&&V.dispose()},R.D().rg().T.pH(Ahf));
g.d(this,F);this.U=this.UZ=this.Z=new g.iP(R.D());this.W=F};
MY=function(R,F,n){var V=[R.U];R.T&&V.push(R.T);R.api.publish("playbackChange",{active:V.filter(function(r){return r.getPlayerType()!==0}).map(function(r){return{cpn:r.du()}}),
started:F.filter(function(r){return r.getPlayerType()!==0}).map(function(r){return{cpn:r.du()}}),
ended:n.filter(function(r){return r.getPlayerType()!==0}).map(function(r){return{cpn:r.du()}})})};
aoE=function(R){for(var F=R.T?[R.T]:[],n=g.m(Object.values(R.J)),V=n.next();!V.done;V=n.next())V.value.dispose();R.J={};R.T=null;R.X=null;R.V.clear();MY(R,[],F)};
lP=function(R,F,n){var V=V===void 0?"":V;var r=[F],v=R.T?[R.T]:[];R.J[F.du()]=F;R.T=F;n&&(R.X=F);R.V.set(V,F);MY(R,r,v)};
UWj=function(R){var F=R.experiments,n=F.GH.bind(F);Cn6=n("html5_use_async_stopVideo");TJk=n("html5_pause_for_async_stopVideo");oI9=n("html5_not_reset_media_source")||n("html5_not_reset_media_source_non_drm_vod");n("html5_listen_for_audio_output_changed")&&(MxI=!0);Xn=n("html5_not_reset_media_source")||n("html5_not_reset_media_source_non_drm_vod");yhv=n("html5_not_reset_media_source")||n("html5_not_reset_media_source_non_drm_vod");cz=n("html5_retain_source_buffer_appends_for_debugging");XBR(n("web_watch_pip")||
n("web_shorts_pip"));NAN(n("log_foreground_not_focused_as_background"));$HW(n("web_player_pip_logging_fix"));n("html5_mediastream_applies_timestamp_offset")&&(R6=!0);R.CC()&&$j_();Error.stackTraceLimit=50;var V=g.Vn(F,"html5_idle_rate_limit_ms");V&&Object.defineProperty(window,"requestIdleCallback",{value:function(r){return window.setTimeout(r,V)}});
D5E(R.W);RRe(n("html5_use_ump_request_slicer"));n("html5_disable_streaming_xhr")&&(s6=!1);n("html5_byterate_constraints")&&(lW=!0);n("html5_use_non_active_broadcast_for_post_live")&&(jo=!0);n("html5_enable_encrypted_av1")&&(ML=!0);ORE(g.Vn(R.experiments,"html5_sticky_duration_mos"))};
Kye=function(R){function F(v,f,z){V.push(z4(f(z),function(q){n[v]=q}))}
var n={};R=R.experiments.Qr();var V=[],r=R.T.pH(j9J);r&&F("MediaSource.EnableUsingMediaSourceBufferedRange",iKE,r===1);(r=R.T.pH(HHk))&&F("HTTP3",xjf,r===1);(r=R.T.pH(h9N))&&F("MediaSource.EnableUsingMediaSourceAttachmentMethods",k9v,r===1);(r=R.T.pH(Wyf))&&F("QUIC",Y6N,r===1);(r=R.T.pH(uTv))&&F("Media.PlayerConfiguration.DecodeToTexturePreferred",G9R,r===1);(r=R.T.pH(BJW))&&F("Media.AudioWriteDurationLocal",JgR,Number(r));(r=R.T.pH(mWf))&&F("Media.DisableAllocator",dje,Number(r)===1);(r=R.T.pH(gIN))&&
F("Media.VideoBufferSizeClampMb",MH_,r);(r=R.T.pH(OHR))&&F("Media.EnableAllocateOnDemand",lUe,Number(r)===1);(R=R.T.pH(Iok))&&F("Media.NotifyMemoryPressureBeforePlayback",NZv,Number(R)===1);return z4(vAf(V),function(){return n})};
DWk=function(R){this.U=R===void 0?15:R;this.values=new Float64Array(176);this.T=new Float64Array(11);this.N=new Float64Array(16)};
NY=function(R,F,n,V){n=n===void 0?.5:n;V=V===void 0?0:V;this.resolution=F;this.U=0;this.N=!1;this.Fk=!0;this.T=Math.round(R*this.resolution);this.values=Array(this.T);for(R=0;R<this.T;R++)this.values[R]=Infinity;this.W=dCJ(this);this.J=n;this.Z=V};
dCJ=function(R){for(var F=Array(R.T),n=0;n<R.T;n++)F[n]=n;return F};
iHv=function(R,F,n){g.G.call(this);this.policy=R;this.U=F;this.uS=n;this.jQ=this.dX=0;this.J1=-1;this.lS=this.W=0;this.Nq=!1;this.interruptions=[];this.J=[{stamp:0,net:0,max:0}];this.Y5=0;this.bS=this.Z=(0,g.h1)();this.V=new NY(4,1,.6,.4);this.PG=new NY(4,1,.6,.4);this.X=new NY(20,1,.5,.4);R.J1?this.N=new DWk(R.T):R.U?this.N=new jF(R.T):this.N=new NY(R.T,20,.5,.4);this.Mq=new NY(5,1,.25);this.UZ=new NY(30,1,.5);R=g.xh("yt-player-bandwidth")||{};F=this.policy.N;if(R.byterate>0)F=R.byterate,this.Nq=
!0;else{var V;n=(((V=navigator.connection)==null?void 0:V.downlink)||0)*64*1024;n>0&&(F=n,this.Nq=!0)}this.N.Sy(this.policy.Z,F);R.delay>0&&this.V.Sy(1,Math.min(R.delay,2));R.stall>0&&this.X.Sy(1,R.stall);R.init>0&&(this.bS=Math.min(R.init,this.bS));R.interruptions&&(this.J=this.J.concat(R.interruptions),this.J.length>16&&this.J.pop());this.J1=(0,g.h1)();this.policy.X>0&&(this.gX=new g.ZK(this.SQ,this.policy.X,this),g.d(this,this.gX),this.gX.start())};
uZ=function(R,F,n,V){R.N.Sy(V===void 0?F:V,n/F);R.Z=(0,g.h1)()};
bnN=function(R){R.W||(R.W=(0,g.h1)());R.policy.UZ&&(R.Z=(0,g.h1)())};
eP6=function(R,F){if(R.W){var n=F-R.W;if(n<6E4){if(n>1E3){var V=R.interruptions;V.push(Math.ceil(n));V.sort(function(r,v){return v-r});
V.length>16&&V.pop()}R.lS+=n}}R.W=F};
EL=function(R,F,n,V,r,v){v=v===void 0?!1:v;R.Mq.Sy(F,n/F);R.Z=(0,g.h1)();r||R.UZ.Sy(1,F-V);v||(R.W=0);R.J1>-1&&(0,g.h1)()-R.J1>3E4&&(I7N(jh(R)),R.J1=(0,g.h1)(),R.Nq=!0)};
$J=function(R,F,n){F=Math.max(F,R.U.T);R.X.Sy(1,n/F)};
v9=function(R){R=R.V.Cm()+R.PG.Cm()||0;R=isNaN(R)?.5:R;return R=Math.min(R,5)};
xW6=function(R,F,n){isNaN(n)||(R.jQ+=n);isNaN(F)||(R.dX+=F)};
k1v=function(R){R=R.N.Cm();return R>0?R:1};
tf=function(R,F,n){F=F===void 0?!1:F;n=n===void 0?1048576:n;var V=k1v(R);V=1/((R.X.Cm()||0)*R.policy.Nq+1/V);var r=R.Mq.Cm();r=r>0?r:1;var v=Math.max(V,r);R.policy.W>0&&r<V&&(v=Math.min(R.policy.W,1),v=(1-v)*V+v*r);if(!F)return v;F=1E-9+v9(R);n=v*Math.min(1,n/(v*F));R.policy.J||(R=((R.UZ.percentile(.98)||0)-1)/2,R=Math.max(0,Math.min(1,R)),n*=1-.5*R);return n};
jh=function(R){var F={delay:v9(R),stall:R.X.Cm()||0,byterate:k1v(R),init:R.bS},n=R.J[0];n.stamp=Math.round(R.Z/36E5)*36E5;n.net=Math.ceil(R.lS);n.max=R.interruptions[0]||0;F.interruptions=R.J;return F};
Bf=function(R){return(0,g.h1)()-R.Z>=4E3};
YWJ=function(R){this.experiments=R;this.T=17;this.N=13E4;this.Z=.5;this.J=this.U=!1;this.J1=this.B("html5_use_histogram_for_bandwidth");this.W=g.Vn(this.experiments,"html5_auxiliary_estimate_weight");this.Nq=g.Vn(this.experiments,"html5_stall_factor")||1;this.X=g.Vn(this.experiments,"html5_check_for_idle_network_interval_ms");this.V=this.experiments.GH("html5_trigger_loader_when_idle_network");this.UZ=this.experiments.GH("html5_sabr_fetch_on_idle_network_preloaded_players")};
Jhe=function(R,F,n){var V=new YWJ(n);R&&(V.U=!0,V.Z=.1);n.GH("html5_media_time_weight")&&(V.U=!1);F&&(V.N=F/8);V.J=OT()>=480;return V};
G1I=function(R,F,n){n=n===void 0?0:n;g.fi.call(this,F.KU());this.videoData=R;this.duration=n;this.T=this.startTimeSecs=0;this.U=this.N=!0};
dWV=function(R){this.end=this.start=R};
g.PL=function(){this.T=new Map;this.N=new Map;this.U=new Map};
M_R=function(R){var F=this;this.G=R;this.U=[];this.N=new Map;this.J=new Map;this.T=new Map;this.hJ={s6:function(){return F.N},
OZz:function(){return F.J},
jq:function(){return F.U}}};
lof=function(R,F,n){R=R.U;var V=g.L4(R,{PT:F},function(f,z){return f.PT-z.PT});
V=V<0?(V+2)*-1:V;if(V>=0)for(var r=V;r<=V+1&&r<R.length;r++){var v=R[r];if(F>=v.PT-n&&F<=v.Pw+n)return v}};
EIR=function(R,F){g.Ax(R.U,F,function(n,V){return n.PT===V.PT?n.durationMs-V.durationMs:n.PT-V.PT});
R.N.set(F.cpn,F);F.uq&&NJv(R,F.uq,F)};
$WN=function(R,F){for(var n=[],V=g.m(R.U),r=V.next();!r.done;r=V.next())r=r.value,F(r)||n.push(r);if(R.G.B("html5_sstm_fixes"))for(V=g.m(R.U),r=V.next();!r.done;r=V.next())r=r.value,F(r)&&R.N.delete(r.cpn);R.U=n};
PnN=function(R,F){F=g.L4(R.U,{Pw:F},function(n,V){return n.Pw-V.Pw});
return F>=0?R.U[F]:null};
bHv=function(R,F){var n=R.U.indexOf(F);n>=0&&R.U.splice(n,1);R.N.delete(F.cpn)};
NJv=function(R,F,n){var V=R.T.get(F);V?(V.push(n),g.p4(V,function(r,v){return r.PT-v.PT})):R.T.set(F,[n])};
g.bP=function(R,F,n,V){g.G.call(this);var r=this;this.api=R;this.G=F;this.playback=n;this.app=V;this.Nq=new g.PL;this.U=new Map;this.HI=new Map;this.jQ=new Map;this.Mq=null;this.KC=NaN;this.aG=this.on=null;this.mQ=new g.ZK(function(){ZHk(r,r.KC,r.on||void 0)});
this.events=new g.AQ(this);this.h1=15E3;this.Z=new g.ZK(function(){r.X=!0;r.playback.wE(r.h1);e9W(r);if(r.playback.getVideoData().iZ()){var v;r.BI({togab:(v=r.W)==null?void 0:v.identifier})}r.tQ(!1)},this.h1);
this.X=!1;this.uu=new Map;this.SQ=[];this.W=null;this.t0=new Set;this.V=[];this.Y5=[];this.HT=[];this.Yy=[];this.gX=new Set;this.lS=0;this.UZ=!1;this.eB=new Set;this.A0=new Set;this.uZ=new Set;this.k5=new Set;this.oC=this.Jb=0;this.xK=this.pC=!1;this.Oq=this.N="";this.J1=null;this.logger=new g.B1("dai");this.FG="";this.dX=!0;this.bS=new Map;this.YF=new Map;this.hJ={G3G:function(){return r.U},
s6:function(){return r.T.hJ.s6()},
U0G:function(){return r.N},
vIH:function(v){r.onCueRangeEnter(r.U.get(v))},
qCX:function(v){r.onCueRangeExit(r.U.get(v))},
lnH:function(v,f){r.U.set(v,f)},
KqX:function(v){r.Oq=v},
Td:function(){return r.Td()},
fJQ:function(v){return r.T.T.get(v)},
TI2:function(){return r.J1},
jq:function(){return r.T.hJ.jq()},
OM:function(v,f){r.OM(v,f)},
jqG:function(){return r.HI},
yP:function(v){r.yP(v)}};
this.playback.getPlayerType();this.T=new M_R(this.G);this.playback.u6(this);this.uS=this.G.CC();g.d(this,this.mQ);g.d(this,this.events);g.d(this,this.Z);this.Kk=this.G.B("html5_use_new_ssdai_transition_detector");this.us=this.G.rg().T.pH(uWe);this.QZ=this.G.rg().T.pH(REv);this.lX=this.playback.getVideoData().eV;this.Kk?this.playback.subscribe("playbackstarted",this.OM,this):(this.events.C(this.api,g.$A("serverstitchedcuerange"),this.onCueRangeEnter),this.events.C(this.api,g.Pl("serverstitchedcuerange"),
this.onCueRangeExit));this.fl=this.G.B("html5_ssdai_report_stitch_error_after_skip_ad");lP(this.app.I9(),this.playback,!1)};
rMN=function(R,F,n,V,r,v,f,z,q){var Q=FXN(R,v,v+r);R.X&&R.BI({adaftto:1});n||R.BI({missadcon:1,enter:v,len:r,aid:z});R.J&&!R.J.hc&&(R.J.hc=z);R.xK&&R.BI({adfbk:1,enter:v,len:r,aid:z});var c=R.playback;v>f&&ZS(R,{reason:"enterTime_greater_than_return",PT:v,Pw:f});var w=c.RC()*1E3;v<w&&ZS(R,{reason:"enterTime_less_than_minSeekableTime",enterMs:v,minSkMs:w},!1);c=c.getDuration()*1E3;f>c&&ZS(R,{reason:"parent_return_greater_than_content_duration",Pw:f,k2Z:c});(c=PnN(R.T,v))&&c.Pw>v&&noe(R,F.video_id||
"",v,f,c);if(Q&&c)for(w=0;w<R.V.length;w++){if(R.V[w].identifier===Q.identifier){R.V.splice(w,1);break}}else if(Q){R.BI({rejectAttl:1});z&&!t3(R.Yy,function(p){return p===z})&&(R.BI({rejectAdBreakAttl:z},!0),R.Yy.push(z));
ev(R);return}F.cpn||(F.cpn=g.s$(16));Q=F.cpn;F=new g.sr(R.G,F);F.fE=!0;F.Zh=F.clientPlaybackNonce;c=z?z:c?c.uq:Q;n={playerType:V,durationMs:r,PT:v,Pw:f,cpn:Q,videoData:F,errorCount:0,ssdaiAdsConfig:n,uq:c};var L;V=(L=F.getPlayerResponse())==null?void 0:L.playbackTracking;R.QZ&&(n.serializedQoeContextData=V==null?void 0:V.serializedQoeContextData);if(R.us){var S;L=uA((S=V==null?void 0:V.serializedPlaybackPingContextData)!=null?S:"");n.serializedPlaybackPingContextLoggingData=g.dQ(g.Pu({clientPlaybackNonce:Q,
serializedPlaybackPingContextData:L},lCE),4)}EIR(R.T,n);q&&R.lX&&R.HI.set(c,q);VDV(R,F,r);R.BI({attlDone:f-v,acpn:Q,et:v,prt:f});R.Z.isActive()&&(R.X=!1,R.Z.stop(),e9W(R),R.tQ(!0));z&&R.Kk&&(R.bS.has(z)?R.bS.get(z).add(Q):R.bS.set(z,new Set([Q])),R.YF.set(Q,z));return F};
vof=function(R,F,n){return{ssvc:F,cpn:(n==null?void 0:n.cpn)||"",vid:(n==null?void 0:n.videoData.videoId)||"",ct:(R.playback.getCurrentTime()||0).toFixed(3),cmt:(R.playback.uX()||0).toFixed(3)}};
fsR=function(R,F,n){return new g.NQ(R,F,{id:n,namespace:"serverstitchedcuerange",priority:9})};
VDV=function(R,F,n){var V;(V=R.app.I9().J[F.clientPlaybackNonce]||null)==null||V.dispose();F=new G1I(F,R.playback,n/1E3);R.jQ.set(F.du(),F);R.app.I9().J[F.du()]=F};
tDV=function(R,F){var n=R.app;LK(n.aC())&&n.IC.N[2]&&g.mW(R.logger,360717806,"SSTM lingering playback");R.api.MM();R.api.publish("serverstitchedvideochange",F.cpn,F.Xo)};
zEk=function(R){if(R.xK)return!1;var F=void 0;R.Oq&&(F=R.T.Jm(R.Oq));return R.playback.getVideoData().iZ()?!!F&&!F.SX:!!F};
RP=function(R,F,n){return{Al:lof(R.T,F*1E3,(n===void 0?0:n)*1E3),Dp:F}};
ZHk=function(R,F,n){var V=R.aG||R.app.rX().getPlayerState();FL(R,!0);R.playback.seekTo(F,n);R=R.app.rX();F=R.getPlayerState();V.isOrWillBePlaying()&&!F.isOrWillBePlaying()?R.playVideo():V.isPaused()&&!F.isPaused()&&R.pauseVideo()};
FL=function(R,F){R.KC=NaN;R.on=null;R.mQ.stop();R.Mq&&F&&R.Mq.bF();R.aG=null;R.Mq=null};
cMN=function(R){var F=F===void 0?-1:F;var n=n===void 0?Infinity:n;qGE(R,F,n);for(var V=g.m(R.U.values()),r=V.next();!r.done;r=V.next())r=r.value,r.start>=F&&r.end<=n&&(R.playback.removeCueRange(r),R.U.delete(r.getId()),R.BI({rmAdCR:1}));V=RP(R,F/1E3);F=V.Al;V=V.Dp;F&&(V=V*1E3-F.PT,QII(R,F,V,F.PT+V),V=R.U.get(F.cpn))&&(V.start=F.PT,V.end=F.PT+F.durationMs);if(F=RP(R,n/1E3).Al){var v;V="playback_cpn_"+F.cpn+"_video_id_"+((v=F.videoData)==null?void 0:v.videoId)+"_durationMs_"+F.durationMs+"_enterTimeMs_"+
F.PT+"_parentReturnTimeMs_"+F.Pw;R.f4("Invalid_clearEndTimeMs_"+n+"_that_falls_during_"+V+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
wkW=function(R){R.Nq.clearAll();R.U.clear();R.T.clear();R.uu.clear();R.SQ=[];R.W=null;R.t0.clear();R.gX.clear();R.V=[];R.Y5=[];R.HT=[];R.Yy=[];R.eB.clear();R.A0.clear();R.uZ.clear();R.k5.clear();R.X=!1;R.lS=0;R.UZ=!1;R.dX=!1;R.Jb=0;R.oC=0;R.pC=!1;R.xK=!1;R.N="";aoE(R.app.I9());lP(R.app.I9(),R.playback,!1);R.jQ.clear();R.Z.isActive()&&ev(R)};
QII=function(R,F,n,V){F.durationMs=n;F.Pw=V;(V=R.jQ.get(F.cpn))?V.sU(n/1E3):R.BI({nop_d:F.cpn})};
qGE=function(R,F,n){$WN(R.T,function(V){return V.PT>=F&&V.Pw<=n})};
sIV=function(R,F,n,V,r,v){if(!R.xK)if(g.SGN(R,n))R.BI({gdu:"undec",seg:n,itag:r});else if(F=LXe(R,F,n,V,v),!(R.playback.getVideoData().iZ()&&(F==null?0:F.SX)))return F};
LXe=function(R,F,n,V,r){var v=R.uu.get(n);if(!v){if(v=Lm(R,F))return v;F=R.dC(n-1,V!=null?V:2);if(r)return R.BI({misscue:r,sq:n,type:V,prevsstate:F==null?void 0:F.RD,prevrecord:R.uu.has(n-1)}),R.uu.get(n-1);if((F==null?void 0:F.RD)===2)return R.BI({adnf:1,sq:n,type:V,prevrecord:R.uu.has(n-1)}),R.uu.get(n-1)}return v};
Lm=function(R,F){F+=R.e_();var n;if(R.playback.getVideoData().iZ()){a:{var V=F*1E3;R=g.m(R.T.U);for(n=R.next();!n.done;n=R.next()){n=n.value;var r=n.Xo?n.Xo*1E3:n.PT;if(V>=n.PT-1E3&&V<=r+n.durationMs+1E3){V=n;break a}}V=void 0}n={Al:V,Dp:F}}else n=RP(R,F),((V=n)==null?0:V.Al)||(n=RP(R,F,1));var v;return(v=n)==null?void 0:v.Al};
g.MT9=function(R,F,n,V,r,v,f){var z=r===3,q=sIV(R,F,n,r,V,f);if(!q){nc(R,n,z);var Q=g.SGN(R,n)?"undec":"ncp";R.BI({gvprp:Q,mt:F,seg:n,tt:r,itag:V,ce:f});return null}z||R.uu.set(n,q);f=q.uq;var c;r=((c=R.dC(n-1,r,v))==null?void 0:c.jP)||"";r===""&&R.BI({eds:1});c=pkj(R,q.ssdaiAdsConfig);v=R.playback.getVideoData();var w;z=((w=v.U)==null?void 0:w.containerType)||0;w=v.L7[z];q=q.d$&&n>=q.d$?q.d$:void 0;w={UM:f?Xkk(R,f):[],adsConfig:c,jP:r,Xt:q,bD:Z$(w.split(";")[0]),ZY:w.split(";")[1]||""};q={Xd:w};
R.uS&&(F={gvprpro:"v",sq:n,mt:F.toFixed(3),itag:V,acpns:((Q=w.UM)==null?void 0:Q.join("_"))||"none",abid:f},R.BI(F));return q};
pkj=function(R,F){F=F===void 0?"":F;var n=Mr(F)||void 0;if(!F||!n){var V;R.BI({adcfg:(V=F)==null?void 0:V.length,dcfg:n==null?void 0:n.length})}return n};
AM9=function(R){for(var F=g.m(R.U.values()),n=F.next();!n.done;n=F.next())R.playback.removeCueRange(n.value);R.U.clear();R.Nq.clearAll()};
CHj=function(R,F,n,V,r,v,f){if(F&&n){R.Oq=n.cpn;R.Mf(n.cpn,n.startTimeSecs||r);tDV(R,n);var z=vof(R,"a2a",n);R.BI(z);R.Jb++;z=as_(R);R.playback.PV(F,n,V||0,r||0,!!v,!!f,void 0,z)}else R.BI({misspbkonadtrans:1,enter:(n==null?void 0:n.cpn)||"",exit:(F==null?void 0:F.cpn)||"",seek:v,skip:f})};
nc=function(R,F,n){if(n===void 0||!n){n=g.m(R.SQ);for(var V=n.next();!V.done;V=n.next()){V=V.value;if(F>=V.start&&F<=V.end)return;if(F===V.end+1){V.end+=1;return}}R.SQ.push(new dWV(F))}};
g.SGN=function(R,F){R=g.m(R.SQ);for(var n=R.next();!n.done;n=R.next())if(n=n.value,F>=n.start&&F<=n.end)return!0;return!1};
Ta9=function(R,F,n){var V;if(V=R.playback.getVideoData().iZ())V=(V=R.T.Jm(F))&&V.uq?(R=R.T.T.get(V==null?void 0:V.uq))&&R.slice(-1)[0].cpn===F:!1;return V&&n===2?1E3:0};
noe=function(R,F,n,V,r){var v;F={reason:"overlapping_playbacks",G2o:F,PT:n,Pw:V,CPZ:r.cpn,SCQ:((v=r.videoData)==null?void 0:v.videoId)||"",IJQ:r.durationMs,D_Z:r.PT,d_G:r.Pw};ZS(R,F)};
ZS=function(R,F,n){R.playback.Ph(F,n)};
Xkk=function(R,F){var n=[];R=R.T.T.get(F);if(!R)return[];R=g.m(R);for(F=R.next();!F.done;F=R.next())F=F.value,F.cpn&&n.push(F.cpn);return n};
oo9=function(R,F,n){var V=0;R=R.T.T.get(n);if(!R)return-1;R=g.m(R);for(n=R.next();!n.done;n=R.next()){if(n.value.cpn===F)return V;V++}return-1};
yMI=function(R,F){var n=0;R=R.T.T.get(F);if(!R)return 0;R=g.m(R);for(F=R.next();!F.done;F=R.next())F=F.value,F.durationMs!==0&&F.Pw!==F.PT&&n++;return n};
UR_=function(R,F,n){var V=!1;if(n=R.T.T.get(n)){n=g.m(n);for(var r=n.next();!r.done;r=n.next())r=r.value,r.durationMs!==0&&r.Pw!==r.PT&&(r=r.cpn,F===r&&(V=!0),V&&!R.A0.has(r)&&(R.BI({decoratedAd:r}),R.A0.add(r)))}};
e9W=function(R){R.uS&&R.BI({adf:"0_"+((new Date).getTime()/1E3-R.oC)+"_isTimeout_"+R.X})};
FXN=function(R,F,n){if(R.V.length)for(var V=g.m(R.V),r=V.next(),v={};!r.done;v={jk:void 0},r=V.next()){v.jk=r.value;r=v.jk.startSecs*1E3;var f=v.jk.FP*1E3+r;if(F>r&&F<f||n>r&&n<f)return t3(R.HT,function(z){return function(q){return q.identifier===z.jk.identifier}}(v))||(R.BI({adskip:F}),R.HT.push(v.jk)),v.jk}};
SVN=function(R,F){if(R.xK||F.identifier&&R.t0.has(F.identifier))R.BI({startnoad:F.identifier}),ev(R);else if(t3(R.V,function(V){return V.identifier===F.identifier}))R.BI({timedoutcp:1}),R.Z.start(0);
else if(t3(R.Y5,function(V){return V.identifier===F.identifier}))R.BI({fetchedcp:1}),ev(R);
else if(R.Z.isActive()){var n;R.BI({racingcp:((n=R.W)==null?void 0:n.identifier)+"_"+F.identifier})}else R.oC=(new Date).getTime()/1E3,R.BI({adf:1}),(n=5E3,F.event==="predictStart")&&(n-=F.T),R.h1=Math.max(n,15E3),R.X=!1,R.Z.start(R.h1),R.W=F,R.Nq.clearAll(),R.SQ=[]};
Dw=function(R,F,n,V,r){V=V||{reason:"disablessdai"};if(F&&n){if(!LXe(R,F,n))return!1;V.sq=n}if(R.xK)return!1;R.xK=!0;R.Jb>0&&(R.Jb=0,R.Oq="",R.Mf(R.playback.du(),0),R.api.publish("serverstitchedvideochange"));R.playback.HL(V,r);return!0};
ev=function(R){R.X=!1;R.Z.isActive()&&e9W(R);R.Z.stop();R.tQ(!1)};
jIf=function(R,F){var n="";F?F.event==="unknown"?n="unknown":R.gX.has(F.identifier)?R.J&&R.J.pI===F.identifier?R.J.pI===F.identifier?n=t3(R.Y5,function(V){return V.identifier===F.identifier})?"shortad":"pending":t3(R.Y5,function(V){return V.identifier===F.identifier})||(n="noAdsAdded"):n="wrongAdBreakInfo":n="unscheduled":n="noCuepoint";
return n};
rh=function(R,F){R.N||R.UZ||VV(R,R.Oq);var n=F.JE,V=F.TN;if(V.cpn===R.Oq)R.BI({igtranssame:1,enter:V.cpn,exit:n.cpn});else{var r=R.UZ,v=!!R.N;R.N="";var f=F.U9,z=n.playerType===2?n.PT/1E3+n.videoData.KC:R.Td().videoData.KC;R.api.B("html5_ssdai_enable_media_end_cue_range")&&(v||r||n.playerType!==2?(r||v)&&R.BI({mecr:0,seek:r,skip:v}):R.api.ai(n.cpn));if(n.playerType===2&&V.playerType===2)v?R.BI({igtransskip:1,enter:V.cpn,exit:n.cpn,seek:r,skip:R.N}):CHj(R,n,V,z,f,r,v);else{R.Oq=V.cpn;R.Mf(V.cpn,V.startTimeSecs||
f);F=F.fzG;if(n.playerType===1&&V.playerType===2){R.lS=0;tDV(R,V);var q=vof(R,"c2a",V);R.BI(q);R.Jb++}else if(n.playerType===2&&V.playerType===1){R.api.publish("serverstitchedvideochange");q=vof(R,"a2c");R.BI(q);R.Jb=0;R.lS=z;q=n.cpn;var Q=R.lS;if(q!==R.playback.du()){var c=R.jQ.get(q);c?c.T=Q:R.BI({nop_e:q})}R.yP(n.uq)}q=as_(R);R.playback.PV(n,V,z,f,r,v,F,q)}Hxe(R)}};
hEI=function(R,F,n,V){R.G.B("html5_ssdai_log_ssevt_in_loader_timers")&&(V=R.UZ?0:Math.round((V-n)*1E3),R.playback.m2("ssevt",{tag:"sstme",ad:F!==R.playback.du(),cpn:F,st:(n-R.playback.e_()).toFixed(3),late:V}))};
WXj=function(R,F,n){R.playback.Yc();R.playback.seekTo(F,n);R.playback.playVideo()};
u0W=function(R,F,n,V){F={JE:F,TN:n,U9:R.playback.getCurrentTime(),fzG:V};rh(R,F)};
VV=function(R,F){var n=F||R.Oq,V=R.T.Jm(n);if(V){F=V.videoData;var r,v;n=V.Xo||((v=(r=R.U.get(n))==null?void 0:r.start)!=null?v:0)/1E3;R=R.playback.getCurrentTime()-n;F.KC=R>0?R:0}else R.Td().videoData.KC=R.playback.getCurrentTime()};
Hxe=function(R){R.k5.add(R.N);R.N="";R.UZ=!1};
as_=function(R){if(R.us||R.QZ){var F=Array.from(R.app.I9().V.values()),n=[],V=[],r=[],v=[],f=[],z=[];F=g.m(F);for(var q=F.next();!q.done;q=F.next())if(q=R.T.Jm(q.value.du()))q.serializedPlaybackPingContextLoggingData&&n.push(q.serializedPlaybackPingContextLoggingData),q.Lc&&V.push(q.Lc),q.Vl&&V.push(q.Vl),v.push(q.cpn),f.push(q.videoData.videoId||""),z.push(q.videoData.adFormat||q.videoData.aG),q.serializedQoeContextData&&r.push(q.serializedQoeContextData);q=F=void 0;R.us&&(q={serializedPlaybackPingContextLoggingData:n,
serializedStitchedClipLoggingMetadata:V});R.QZ&&(F={UM:v,b9:f,adFormats:z,serializedQoeContextData:r});return{Yd:q,Ql:F}}};
mRe=function(R,F,n,V){g.G.call(this);var r=this;this.api=R;this.G=F;this.T=n;this.app=V;this.W=new Map;this.U=[];this.N=this.X=null;this.Nq=NaN;this.Z=this.J=this.UZ=null;this.V=new g.ZK(function(){Ba6(r,r.Nq,r.UZ||void 0)});
this.J1=[];this.jQ=new g.ZK(function(){var v=r.J1.pop();if(v){var f=v.Zh,z=v.playerVars;v=v.playerType;z&&(z.prefer_gapless=!0,r.api.preloadVideoByPlayerVars(z,v,NaN,"",f),r.J1.length&&g.eI(r.jQ,4500))}});
this.events=new g.AQ(this);this.hJ={NZ1:function(){return r.U}};
this.T.getPlayerType();g.d(this,this.V);g.d(this,this.jQ);g.d(this,this.events);this.events.C(this.api,g.$A("childplayback"),this.onCueRangeEnter);this.events.C(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.C(this.api,"presentingplayerstatechange",this.yB)};
KX_=function(R,F,n,V,r,v){var f=F.cpn,z=F.docid||F.video_id||F.videoId||F.id,q=R.T;v=v===void 0?r+V:v;if(r>v)return vi(R,"enterAfterReturn enterTimeMs="+r+" is greater than parentReturnTimeMs="+v.toFixed(3),f,z),"";var Q=q.RC()*1E3;if(r<Q)return vi(R,"enterBeforeMinSeekable enterTimeMs="+r+" is less than parentMinSeekableTimeMs="+Q,f,z),"";Q=q.getDuration()*1E3;if(v>Q)return q="returnAfterDuration parentReturnTimeMs="+v.toFixed(3)+" is greater than parentDurationMs="+Q+". And timestampOffset in seconds is "+
q.qC(),vi(R,q,f,z),"";Q=null;for(var c=g.m(R.U),w=c.next();!w.done;w=c.next()){w=w.value;if(r>=w.PT&&r<w.Pw)return vi(R,"overlappingEnter",f,z),"";if(v<=w.Pw&&v>w.PT)return vi(R,"overlappingReturn",f,z),"";if(v===w.PT)return vi(R,"outOfOrder",f,z),"";r===w.Pw&&(Q=w)}f="cs_childplayback_"+goj++;z={tO:fc(V,!0),PA:Infinity,target:null};var L={Zh:f,playerVars:F,playerType:n,durationMs:V,PT:r,Pw:v,pZ:z};R.U=R.U.concat(L).sort(function(C,y){return C.PT-y.PT});
Q?Oxk(R,Q,{tO:fc(Q.durationMs,!0),PA:Q.pZ.PA,target:L}):(F={tO:fc(r,!1),PA:r,target:L},R.W.set(F.tO,F),q.addCueRange(F.tO));F=!0;if(R.T===R.app.rX()&&(q=q.getCurrentTime()*1E3,q>=L.PT&&q<L.Pw)){var S=R.app.rX().getPlayerState(),p=q-L.PT;H2(function(){Ise(R,L,p/1E3,{},S)});
F=!1}F&&(R.J1.unshift(L),g.eI(R.jQ,0));return f};
fc=function(R,F){return new g.NQ(Math.max(0,R-5E3),F?0x8000000000000:R-1,{namespace:"childplayback",priority:9})};
DR_=function(R,F,n,V){R.N=V;R.api.pK(R.T,n,F)};
ixe=function(R,F,n,V){R.N=V;V=F.Zh;var r=F.playerVars,v=F.playerType;R.X=F;r&&R.api.enqueueVideoByPlayerVars(r,v,n,V)};
Oxk=function(R,F,n){var V=F.pZ;F.pZ=n;tY(R,F)&&(n=R.app.rX(),V.tO===R.N&&zJ(R),n.removeCueRange(V.tO),n.addCueRange(F.pZ.tO))};
zJ=function(R){R.X=null;R.N=null;R.api.UF()||R.api.clearQueue()};
xRI=function(R,F){tY(R,F)||vi(R,"childPlaybackIsNotPresenting");return F.Pw===F.PT+F.durationMs?F.PT+R.app.rX().getCurrentTime()*1E3:F.Pw};
kiR=function(R,F){var n=0;R=g.m(R.U);for(var V=R.next();!V.done;V=R.next()){V=V.value;var r=V.PT/1E3+n,v=r+V.durationMs/1E3;if(r>F)break;if(v>F)return{Al:V,Dp:F-r};n=v-V.Pw/1E3}return{Al:null,Dp:F-n}};
Ba6=function(R,F,n){n=n===void 0?{}:n;var V=R.Z||R.app.rX().getPlayerState();qp(R,!0);F=isFinite(F)?F:R.T.t5();var r=kiR(R,F);F=r.Dp;var v=(r=r.Al)&&!tY(R,r)||!r&&R.T!==R.app.rX(),f=F*1E3;f=R.N&&R.N.start<=f&&f<=R.N.end;!v&&f||zJ(R);r?Ise(R,r,F,n,V):YGN(R,F,n,V,"_execute")};
YGN=function(R,F,n,V,r){var v=R.T;v!==R.app.rX()&&R.app.uy();R.G.B("html5_sabr_csdai_seek_log")||(r="");var f;v.seekTo(F,Object.assign({},{gW:"application_timelinemanager"+((f=r)!=null?f:"")},n));JMN(R,V)};
Ise=function(R,F,n,V,r){var v=tY(R,F);if(!v){F.playerVars.prefer_gapless=!0;var f=new g.sr(R.G,F.playerVars);f.Zh=F.Zh;R.api.OX(f,F.playerType)}f=R.app.rX();v||f.addCueRange(F.pZ.tO);f.seekTo(n,Object.assign({},{gW:"application_timelinemanager"},V));JMN(R,r)};
JMN=function(R,F){R=R.app.rX();var n=R.getPlayerState();F.isOrWillBePlaying()&&!n.isOrWillBePlaying()?R.playVideo():F.isPaused()&&!n.isPaused()&&R.pauseVideo()};
qp=function(R,F){R.Nq=NaN;R.UZ=null;R.V.stop();R.J&&F&&R.J.bF();R.Z=null;R.J=null};
tY=function(R,F){R=R.app.rX();return!!R&&R.getVideoData().Zh===F.Zh};
GiV=function(R){var F=R.U.find(function(r){return tY(R,r)});
if(F){var n=R.app.rX();zJ(R);var V=new g.Wz(8);F=xRI(R,F)/1E3;YGN(R,F,{},V,"_force");n.m2("forceParentTransition",{childPlayback:1});R.T.m2("forceParentTransition",{parentPlayback:1})}};
MDf=function(R,F,n){F=F===void 0?-1:F;n=n===void 0?Infinity:n;for(var V=F,r=n,v=g.m(R.W),f=v.next();!f.done;f=v.next()){var z=g.m(f.value);f=z.next().value;z=z.next().value;z.PA>=V&&z.target&&z.target.Pw<=r&&(R.T.removeCueRange(f),R.W.delete(f))}V=F;r=n;v=[];f=g.m(R.U);for(z=f.next();!z.done;z=f.next())if(z=z.value,z.PT>=V&&z.Pw<=r){var q=R;q.X===z&&zJ(q);tY(q,z)&&q.app.uy()}else v.push(z);R.U=v;V=kiR(R,F/1E3);F=V.Al;V=V.Dp;F&&(V*=1E3,dRf(R,F,V,F.Pw===F.PT+F.durationMs?F.PT+V:F.Pw));(F=kiR(R,n/1E3).Al)&&
vi(R,"Invalid clearEndTimeMs="+n+" that falls during playback={timelinePlaybackId="+(F.Zh+" video_id="+F.playerVars.video_id+" durationMs="+F.durationMs+" enterTimeMs="+F.PT+" parentReturnTimeMs="+F.Pw+"}.Child playbacks can only have duration updated not their start."))};
dRf=function(R,F,n,V){F.durationMs=n;F.Pw=V;V={tO:fc(n,!0),PA:n,target:null};Oxk(R,F,V);tY(R,F)&&R.app.rX().getCurrentTime()*1E3>n&&(F=xRI(R,F)/1E3,n=R.app.rX().getPlayerState(),YGN(R,F,{},n,"_update"))};
vi=function(R,F,n,V){R.T.m2("timelineerror",{e:F,cpn:n?n:void 0,videoId:V?V:void 0})};
Nak=function(R){R&&R!=="web"&&lsW.includes(R)};
QV=function(R){R=R===void 0?!1:R;g.G.call(this);this.T=XXj(5,null,R);g.d(this,this.T);this.U=XXj(15,null,R);g.d(this,this.U)};
BxE=function(R,F){return F?!!R.T.get(F):!1};
Eo6=function(R,F){R.dataset.version=F};
bxI=function(R){g.N.call(this,{j:"div",BG:["html5-video-player"],S:{tabindex:R.D().disableOrganicUi?"":"-1",id:R.webPlayerContextConfig.rootElementId},L:[{j:"div",Y:g.k2.VIDEO_CONTAINER,S:{"data-layer":"0"}}]});var F=this;this.app=R;this.Ut=this.sZ(g.k2.VIDEO_CONTAINER);this.fR=new g.VO(0,0,0,0);this.yc=null;this.UI=new g.VO(0,0,0,0);this.Zg=this.iY=this.OA=NaN;this.pJ=this.Oe=this.Ys=this.UQ=!1;this.RE=NaN;this.Be=!1;this.Wd=null;this.X5=new g.ZK(function(){F.app.D().B("web_enable_smart_zoom")&&
F.app.eQ.getInternalApi().isAutocropEnabled()||F.resize()},100);
this.nw=function(){F.element.focus({preventScroll:!0})};
this.Yj=function(){F.app.eQ.publish("playerUnderlayVisibilityChange","visible");F.yc.classList.remove(g.k2.VIDEO_CONTAINER_TRANSITIONING);F.yc.removeEventListener(Ji,F.Yj);F.yc.removeEventListener("transitioncancel",F.Yj)};
this.oh=this.Cx=!1;var n=this.element.addEventListener,V=this.element.removeEventListener;this.addEventListener=function(v,f,z){n.apply(F.element,[v,f,z])};
this.removeEventListener=function(v,f,z){V.apply(F.element,[v,f,z])};
var r=R.D();r.transparentBackground&&this.Ig("ytp-transparent");r.controlsType==="0"&&this.Ig("ytp-hide-controls");g.z0(this.element,"ytp-exp-bottom-control-flexbox");g.z0(this.element,"ytp-modern-caption");r.B("enable_new_paid_product_placement")&&!g.C9(r)&&g.z0(this.element,"ytp-exp-ppp-update");g.z0(this.element,"ytp-livebadge-color");Eo6(this.element,$Rv(R));this.yl=!1;this.Hp=new g.QX(NaN,NaN);PHf(this);this.C(R.eQ,"onMutedAutoplayChange",this.onMutedAutoplayChange);g.d(this,this.X5)};
PHf=function(R){function F(f){R.yc&&ci(R);wh(R)!==R.Be&&R.resize();R.app.D().B("web_enable_smart_zoom")&&R.Tg&&(f.state.isPaused()?R.Tg.pause():g.Sx(f,8)&&R.Tg.playState==="paused"&&R.Tg.play())}
function n(f,z){R.GP(f,z)}
function V(f){f.getVideoData()&&R.updateVideoData(f.getVideoData())}
function r(){R.UI=new g.VO(0,0,0,0);R.fR=new g.VO(0,0,0,0)}
var v=R.app.eQ;v.addEventListener("initializingmode",r);v.addEventListener("videoplayerreset",V);v.addEventListener("videodatachange",n);v.addEventListener("presentingplayerstatechange",F);R.addOnDisposeCallback(function(){v.removeEventListener("initializingmode",r);v.removeEventListener("videoplayerreset",V);v.removeEventListener("videodatachange",n);v.removeEventListener("presentingplayerstatechange",F)})};
eE6=function(R){var F=R.app.rX();if(F=F?F.getVideoData():null){if(g.Rq(F)||g.FY(F)||g.nK(F))return 16/9;if(Hh(F)&&F.N.T)return R=F.N.videoInfos[0].video,Zxf(R.width,R.height)}return(R=R.yc)?Zxf(R.videoWidth,R.videoHeight):16/9};
Rej=function(R,F,n,V){var r=n,v=Zxf(F.width,F.height);R.UQ?r=n<v?Infinity:0:isNaN(R.Zg)?isNaN(R.iY)||(r=R.iY):r=R.Zg;isFinite(r)||(r=Math.max(n,v));R=r>v?{width:F.width,height:F.width/r,aspectRatio:r}:r<v?{width:F.height*r,height:F.height,aspectRatio:r}:{width:F.width,height:F.height,aspectRatio:v};V||isNaN(n)||(n>r?R.width=R.height*n:n<r&&(R.height=R.width/n),R.aspectRatio=n);return R};
Zxf=function(R,F){return Math.abs(FKJ*F-R)<1||Math.abs(FKJ/R-F)<1?FKJ:R/F};
wh=function(R){if(R.app.getAppState()===1)return!1;if(R.app.getAppState()===6)return!0;var F=R.app.rX();if(!F||F.xb())return!1;R=R.app.eQ.getPlayerStateObject();F=!g.E(R,2)||F&&F.getVideoData().X;var n=g.E(R,1024);return R&&F&&!n&&!R.isCued()};
ci=function(R){var F=R.app.D().controlsType==="3"&&!R.pJ&&wh(R)&&!R.app.vC||!1;R.yc.controls=F;R.yc.tabIndex=F?0:-1;R.app.D().J&&(R.yc.ariaHidden="true");F?R.yc.removeEventListener("focus",R.nw):R.yc.addEventListener("focus",R.nw)};
n4W=function(R){var F=R.p5(),n=1,V=!1,r=Rej(R,F,R.getVideoAspectRatio()),v=R.app.D(),f=v.B("enable_desktop_player_underlay"),z=bTR(),q=g.Vn(v.experiments,"player_underlay_min_player_width");q=f&&R.Ys&&R.getPlayerSize().width>q;if(wh(R)){var Q=eE6(R);var c=isNaN(Q)||g.Nx||gj&&g.A1||q;lV&&!g.ru(601)?Q=r.aspectRatio:c=c||v.controlsType==="3";c?q?(c=v.B("place_shrunken_video_on_left_of_player")?16:R.getPlayerSize().width-F.width-16,Q=Math.max((R.getPlayerSize().height-F.height)/2,0),c=new g.VO(c,Q,F.width,
F.height),R.yc.style.setProperty("border-radius","12px")):c=new g.VO(0,0,F.width,F.height):(n=r.aspectRatio/Q,c=new g.VO((F.width-r.width/n)/2,(F.height-r.height)/2,r.width/n,r.height),n===1&&g.A1&&(Q=c.width-F.height*Q,Q>0&&(c.width+=Q,c.height+=Q)));g.ws(R.element,"ytp-fit-cover-video",Math.max(c.width-r.width,c.height-r.height)<1);if(z||R.yl)R.yc.style.display="";R.Be=!0}else{c=-F.height;lV?c*=window.devicePixelRatio:g.TV&&(c-=window.screen.height);c=new g.VO(0,c,F.width,F.height);if(z||R.yl)R.yc.style.display=
"none";R.Be=!1}rQ(R.UI,c)||(R.UI=c,g.Vw(v)?(R.yc.style.setProperty("width",c.width+"px","important"),R.yc.style.setProperty("height",c.height+"px","important")):g.X6(R.yc,c.getSize()),V=new g.z5(c.left,c.top),g.Sm(R.yc,Math.round(V.x),Math.round(V.y)),V=!0);F=new g.VO((F.width-r.width)/2,(F.height-r.height)/2,r.width,r.height);rQ(R.fR,F)||(R.fR=F,V=!0);g.fY(R.yc,"transform",n===1?"":"scaleX("+n+")");f&&q!==R.Oe&&(q&&(R.yc.addEventListener(Ji,R.Yj),R.yc.addEventListener("transitioncancel",R.Yj),R.yc.classList.add(g.k2.VIDEO_CONTAINER_TRANSITIONING)),
R.Oe=q,R.app.eQ.publish("playerUnderlayVisibilityChange",R.Oe?"transitioning":"hidden"));return V};
VsJ=function(R){R.Cx=!R.Cx;R.oh=!0;R.element.classList.toggle("ytp-retro-player",R.Cx);R.resize();R.oh=!1;R.app.eQ.HG("onRetroModeChanged",R.Cx)};
rJk=function(){this.csn=g.CJ();this.clientPlaybackNonce=null;this.elements=new Set;this.N=new Set;this.T=new Set;this.U=new Set};
v49=function(R){if(R.csn!==g.CJ())if(R.csn==="UNDEFINED_CSN")R.csn=g.CJ();else{var F=g.CJ(),n=g.aQ();if(F&&n){R.csn=F;for(var V=g.m(R.elements),r=V.next();!r.done;r=V.next())(r=r.value.visualElement)&&r.isClientVe()&&F&&n&&(g.U2("combine_ve_grafts")?yW(T4(),r,n):g.Vb(g.Mz)(void 0,F,n,r))}if(F)for(R=g.m(R.T),n=R.next();!n.done;n=R.next())(n=n.value.visualElement)&&n.isClientVe()&&g.eg(F,n)}};
SO=function(R,F,n,V,r,v){g.G.call(this);this.V=R;this.m2=F;this.Z=n;this.X=V;this.W=r;this.intervalMs=v;this.J=0;this.N=!1};
fEI=function(R){var F,n,V,r;return g.Y(function(v){if(v.T==1){if(R.Gt)return v.return();R.Gt=new Worker(oe(R.V),void 0);g.zv(v,2);n=Promise.withResolvers();F=setTimeout(function(){n.reject("timeout")},1E4);
R.Gt.onerror=function(){n.reject("error")};
R.Gt.onmessage=function(){n.resolve();clearTimeout(F)};
return g.k(v,n.promise,4)}if(v.T!=2)return R.Gt.onmessage=null,R.Gt.onerror=null,R.Gt.addEventListener("message",function(f){return void R.receive(f)}),R.m2("workerCtor",{}),g.Qz(v,0);
V=g.cM(v);clearTimeout(F);(r=R.Gt)==null||r.terminate();R.Gt.onmessage=null;R.Gt.onerror=null;R.Gt=void 0;R.m2("workerErr",{e:""+V});g.rq(v)})};
tsV=function(R,F){if(R.Gt){if(R.T&&R.T.byteLength===F)var n=R.T;else{n=new Uint8Array(F);for(var V=0;F>0;){var r=new Uint8Array(Math.min(F,65536));crypto.getRandomValues(r);n.set(r,V);F-=r.length;V+=r.length}R.T=n}n.length>0&&n[0]++;V={};n=(V[0]=0,V[1]=performance.now(),V[2]=n,V);R.request(n)}};
ze9=function(R){if(R.Gt){var F={};F=(F[0]=1,F[1]=performance.now(),F);R.request(F)}};
quf=function(R,F){if(R.Gt){var n={};F=(n[0]=2,n[1]=performance.now(),n[3]=F,n);R.request(F)}};
Quf=function(R){if(R.Gt){var F={};F=(F[0]=3,F[1]=performance.now(),F);R.request(F)}};
cJ_=function(R){g.Y(function(F){if(F.T==1){if(R.U!==void 0||R.N)return F.return();R.N=!0;return g.k(F,fEI(R),2)}R.N=!1;if(!R.Gt)return F.return();tsV(R,R.Z);R.U=setInterval(function(){R.sendRequest()},R.intervalMs);
g.rq(F)})};
g.Lc=function(R,F,n,V){g.G.call(this);var r=this;this.logger=new g.B1("App");this.vC=this.bq=!1;this.Jw={};this.JN=[];this.Zf=!1;this.TE=null;this.intentionalPlayback=!1;this.VM=!0;this.LV=!1;this.yr=this.uR=this.C0=null;this.QU=!0;this.mediaElement=this.wg=null;this.JS=NaN;this.xT=!1;this.dD=this.fG=this.h0=this.screenLayer=this.playlist=null;this.tR=[];this.He=0;this.rp={certificate:null};this.Hb=[];this.hJ={I9:function(){return r.IC},
q$:function(){return r.h0}};
if(!n)throw Error("b/179532961");this.Jg=(F==null?void 0:F.args)||{};this.webPlayerContextConfig=n;F=this.Jg;this.G=new Qw(F,n,n.canaryState,V);g.d(this,this.G);UWj(this.G);V=Kye(this.G);this.G.CC()&&z4(V,function(f){r.G0("h5vcc",f)});
this.G.experiments.GH("jspb_serialize_with_worker")&&AtV();this.G.experiments.GH("gzip_gel_with_worker")&&zoE();this.G.U&&EfR();this.B("html5_onesie")&&(this.eI=new Ez(this.G),g.d(this,this.eI));this.AJ=new iHv(Jhe(g.ad(this.G),this.G.AK,this.G.experiments),new x4f(this.G.experiments),function(){return void r.jj()});
g.d(this,this.AJ);this.mK=zQ(Z0(this.G)&&!0,F.enablesizebutton);this.F8=zQ(!1,F.player_wide);this.visibility=new Lyv;g.d(this,this.visibility);this.B("web_log_theater_mode_visibility")&&this.tN(zQ(!1,F.player_wide));this.bq=zQ(!1,F.external_list);this.events=new g.AQ(this);g.d(this,this.events);this.B("start_client_gcf")&&(y9(hw(),{Xi:Q8,vD:m1E()}),this.JV=hw().resolve(Q8),IKN(this.JV));this.ucG=new BK;g.d(this,this.ucG);this.WO=new rJk;V=new mx;this.eQ=new g.l4(this,V);g.d(this,this.eQ);this.template=
new bxI(this);g.d(this,this.template);this.appState=1;this.C4=w0k(this);g.d(this,V);V={};this.Np=(V.internalvideodatachange=this.WS,V.playbackready=this.QCq,V.playbackstarted=this.Wd1,V.statechange=this.wTS,V);this.Ae=new zs(this.eQ);this.Hw=Su9(this);V=this.G.Z;!1!==V&&this.G0("badps",{hbp:V,hostname:window.location.hostname,ps:this.G.playerStyle});this.Qc=new XRI(this.G,this.Hw);this.eQ.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||Ts(this.Hw))&&LKE(this);V=10;g.ad(this.G)&&
(V=3);AP(this.G)&&(V=g.Vn(this.G.experiments,"tvhtml5_unplugged_preload_cache_size"));this.IC=new g.dX(this.eQ,V);V=suJ(this);this.IC.VL(V);p0k(this);V={};this.JI=(V.airplayactivechange=this.nqG,V.airplayavailabilitychange=this.YlZ,V.beginseeking=this.gqG,V.sabrCaptionsDataLoaded=this.Gkq,V.endseeking=this.CLq,V.internalAbandon=this.D85,V.internalaudioformatchange=this.XwQ,V.internalvideodatachange=this.kkZ,V.internalvideoformatchange=this.ah5,V.liveviewshift=this.d81,V.playbackstalledatstart=this.il1,
V.progresssync=this.h6S,V.onAbnormalityDetected=this.Ml2,V.onSnackbarMessage=this.OlG,V.onLoadProgress=this.SlG,V.SEEK_COMPLETE=this.uPX,V.SEEK_TO=this.x8z,V.onVideoProgress=this.pwG,V.onLoadedMetadata=this.ql2,V.onAutoplayBlocked=this.e6q,V.onPlaybackPauseAtStart=this.VlQ,V.playbackready=this.LvG,V.statechange=this.Pr,V.newelementrequired=this.w9,V.heartbeatparams=this.Ih2,V.videoelementevent=this.Eq2,V.drmoutputrestricted=this.vqH,V.signatureexpired=this.fhG,V.nonfatalerror=this.r05,V.reloadplayer=
this.R6S,V);this.yO=new g.AQ(this);g.d(this,this.yO);this.T2=new QV(this.G.rg().T.pH(Ahf));g.d(this,this.T2);this.Zb=this.ol=-1;this.Xa=new g.ZK(this.template.resize,16,this.template);g.d(this,this.Xa);this.vI=new mRe(this.eQ,this.G,this.UN(),this);this.QN=new Ig(this);g.d(this,this.QN);this.D9=new BL(this);g.d(this,this.D9);Nak(this.G.T.c);this.events.C(this.eQ,g.$A("appapi"),this.jC2);this.events.C(this.eQ,g.Pl("appapi"),this.sC2);this.events.C(this.eQ,g.$A("appprogressboundary"),this.ok5);this.events.C(this.eQ,
g.Pl("applooprange"),this.dE);this.events.C(this.eQ,"presentingplayerstatechange",this.yB);this.events.C(this.eQ,"resize",this.ZkH);this.template.KH(T5(document,R));this.events.C(this.eQ,"offlineslatestatechange",this.lhX);this.events.C(this.eQ,"sabrCaptionsTrackChanged",this.Ij1);this.events.C(this.eQ,"sabrCaptionsBufferedRangesUpdated",this.CX2);this.Hw.K.D().hD&&oa(this.Hw,"offline");this.G.SQ&&g.Sk("ux",g.WL);R=g.Vn(this.G.experiments,"html5_defer_fetch_att_ms");this.vj=new g.ZK(this.ESz,R,this);
g.d(this,this.vj);this.aC().XP()&&(g.Yh()&&this.aC().D0.push("mdx"),X0W(this));this.Qc.tick("fs");AJv(this);this.G.SQ&&oa(this.Hw,"ux",!0);g.Pp(this.Hw.K.D())&&oa(this.Hw,"embed");this.B("web_player_sentinel_is_uniplayer")||g.mq(new g.UR("Player experiment flags missing","web_player_sentinel_is_uniplayer"));R=this.B("web_player_sentinel_yt_experiments_sync");V=g.U2("web_player_sentinel_yt_experiments_sync");R!==V&&g.mq(new g.UR("b/195699950",{yt:R,player:V}));this.UV=aER(this);if(R=g.Vn(this.G.experiments,
"html5_block_pip_safari_delay"))this.IP=new g.ZK(this.kA,R,this),g.d(this,this.IP);var v;n=BU((v=n==null?void 0:n.trustedEchoWorkerUrl)!=null?v:null);v=this.G.rg().T.pH(Cdf);R=this.G.rg().T.pH(TLR);V=this.G.rg().T.pH(o4I);F=this.G.rg().T.pH(yJI);n&&v>0&&R>0&&V>0&&F>0&&(this.rU=new SO(n,function(f,z){r.UN().m2(f,z)},V,R,F,v),g.d(this,this.rU),cJ_(this.rU));
ix=this.G.us;this.eQ.publish("applicationInitialized")};
aER=function(R){function F(n){n.stack&&n.stack.indexOf("player")!==-1&&R.rX().Q2(n)}
gC.subscribe("handleError",F);Fl.push(F);return function(){gC.unsubscribe("handleError",F);var n=Fl.indexOf(F);n!==-1&&Fl.splice(n,1)}};
suJ=function(R){var F=new g.sr(R.G,R.Jg);R.eQ.publish("initialvideodatacreated",F);return pc(R,1,F,!1)};
p0k=function(R){var F=R.UN();F.setPlaybackRate(R.G.J?1:UUk(R,Number(g.xh("yt-player-playback-rate"))||1));F.WA(R.Np,R);F.zj()};
Su9=function(R){var F="",n="",V=$Rv(R),r=Ym(V,"cb");r&&/^[\w-]+$/.test(r)&&(n=r);V.indexOf("//")===0&&(V=R.G.protocol+":"+V);r=V.lastIndexOf("/base.js");r!==-1&&(F=V.substring(0,r+1));if(V=Error().stack)if(V=V.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))V=V[1],V.includes(F)||g.mq(Error("Player module URL mismatch: "+(V+" vs "+F+".")));F=new IRN(R.eQ,F,n);n={};KoE(F,(n.destroyed=function(){R.onApiChange()},n));
return F};
w0k=function(R){if(R.G.storeUserVolume){R=g.xh("yt-player-volume")||{};var F=R.volume;R={volume:isNaN(F)?100:g.vI(Math.floor(F),0,100),muted:!!R.muted}}else R={volume:100,muted:R.G.mute};return R};
XL=function(R){R.mediaElement=R.G.deviceIsAudioOnly?new g.iq(g.gu("AUDIO")):uP.pop()||new g.iq(g.gu("VIDEO"));g.d(R,R.mediaElement);R.rX().setMediaElement(R.mediaElement);try{R.G.oC?(R.fG&&R.events.ZO(R.fG),R.fG=R.events.C(R.mediaElement,"volumechange",R.jr5)):(R.mediaElement.wA(R.C4.muted),R.mediaElement.setVolume(R.C4.volume/100))}catch(r){R.HB("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(r&&typeof r==="object"&&"message"in r&&typeof r.message==="string"&&r.message.replace(/[;:,]/g,
"_")));return}g.Kw(R.yO);juI(R);var F=R.template,n=R.mediaElement.Fs();F.yc=n;F.pJ=!1;F.yc.parentNode||DT(F.Ut,F.yc,0);F.UI=new g.VO(0,0,0,0);n4W(F);ci(F);n=F.yc;g.z0(n,"video-stream");g.z0(n,g.k2.MAIN_VIDEO);var V=F.app.D();V.iI&&n.setAttribute("data-no-fullscreen","true");V.B("html5_local_playsinline")?"playsInline"in cH()&&(n.playsInline=!0):V.Tl&&(n.setAttribute("webkit-playsinline",""),n.setAttribute("playsinline",""));V.K$&&F.yc&&F.C(n,"click",n.play,n);try{R.mediaElement.activate()}catch(r){R.HB("html5.missingapi",
2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(r&&typeof r==="object"&&"message"in r&&typeof r.message==="string"&&r.message.replace(/[;:,]/g,"_")))}};
heJ=function(R){if(!Hsj(R)){var F=R.UN().LX();F&&(F=F.qs(),F instanceof Promise&&F.catch(function(){}));
AY(R,DD(R.getPlayerStateObject()))}};
juI=function(R){var F=R.mediaElement;sy()?R.yO.C(F,"webkitpresentationmodechanged",R.dL1):window.document.pictureInPictureEnabled&&(R.yO.C(F,"enterpictureinpicture",function(){R.rI(!0)}),R.yO.C(F,"leavepictureinpicture",function(){R.rI(!1)}));
FA&&(R.yO.C(F,"webkitbeginfullscreen",function(){R.Ax(3)}),R.yO.C(F,"webkitendfullscreen",function(){R.Ax(0)}))};
g.aP=function(R,F){return R.IC.Jm(F)||R.IC.Z};
xM=function(R,F){return R.B("web_player_misc_bugfix_b")?R.IC.Jm(F)||R.IC.Z:R.IC.Jm(F)};
g.WKR=function(R,F,n,V){var r=R.Qc;F===2&&(r=new XRI(R.G));return new g.dw(R.G,F,r,R.template,function(v,f,z){R.eQ.publish(v,f,z)},function(){return R.eQ.getVisibilityState()},R.visibility,R,R.AJ,n,V,R.rp)};
pc=function(R,F,n,V,r){R=g.WKR(R,F,n,r);R=new g.fi(R);V&&R.zj();return R};
Cc=function(R,F){return R.OY(F)?R.UN():F};
TJ=function(R,F){var n=R.rX();return F===R.UN()&&R.OY(F)&&R.OY(n)?n:F};
uIj=function(R){if(!oP(R)){var F=jk(R.Hw);F&&!F.created&&DE9(R.Hw)&&F.create()}};
BL_=function(R){var F=R.getVideoData(),n=R.Hw;lRJ(n)||n.fI();!JW&&Ts(n)&&eh6(n);oa(n,"embed");oa(n,"kids");oa(n,"remote");oa(n,"miniplayer");oa(n,"offline");oa(n,"unplugged");oa(n,"ypc",!1,!0);oa(n,"webgl",!1,!0);N9J(n)||(oa(n,"captions",!0),oa(n,"endscreen"),n.CK(),oa(n,"creatorendscreen",!0));n.bk();n.K.publish("modulesCreated");R.eQ.publish("videoready",F)};
yV=function(R){R=R.aC();R.XP();return qj(R)};
AJv=function(R){R.JW();var F=R.Jg;XL(R);R.events.C(window,"resize",R.tJ2);var n=R.aC();R.eQ.t7("onVolumeChange",R.C4);if(F&&T9R(F)){var V=L9(R.G);V&&!R.bq&&(F.fetch=0);var r=g.Pp(R.G);r&&!R.bq&&(F.fetch=0);Ut(R,F);g.Pp(R.G)&&R.Qc.tick("ep_pr_s");if(!V||R.bq)if(r&&!R.bq)mUR(R);else if(!n.XP())R.playlist.onReady(function(){jO(R)})}R.ao(R.UN(),!1,!0);
g.E(R.UN().getPlayerState(),128)||(F=sh_(!R.G.deviceIsAudioOnly),F==="fmt.noneavailable"?R.HB("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):F==="html5.missingapi"?R.HB(F,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):n&&n.XP()&&yV(R)&&(R.G.Ow||R.G.G_)?Hi(R):n.Kt?R.eQ.mutedAutoplay({durationMode:n.mutedAutoplayDurationMode}):g.xh("yt-player-playback-on-reload")?(g.LJ("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!R.G.lS}),g.i6("yt-player-playback-on-reload",!1),Hi(R)):
yw(R.G)||g4f(R),g.Xk(R.G)||Wp(R.G)==="MWEB"?(g.R8(g.n3(),function(){hY(R)}),g.R8(g.n3(),function(){Ac_()})):(hY(R),Ac_()))};
hY=function(R){if(!R.B("use_rta_for_player"))if(R.B("fetch_att_independently"))g.eI(R.vj);else{var F=R.getVideoData().botguardData;F&&g.gv(F,R.G,R.getVideoData().HY||"")}};
g4f=function(R){R.eQ.publish("initializingmode");R.sJ(2);oa(R.Hw,"remote");oa(R.Hw,"miniplayer")};
Hi=function(R){var F=R.UN();if(g.E(F.getPlayerState(),128))return!1;F=F.getVideoData();yV(R)&&R.G.G_&&(uP.length&&R.vC?(Wi(R,{muted:!1,volume:R.C4.volume},!1),u1(R,!1)):uP.length||R.C4.muted||(Wi(R,{muted:!0,volume:R.C4.volume},!1),u1(R,!0)));yV(R)&&g.Pp(R.G)&&F.mutedAutoplay&&(Wi(R,{muted:!0,volume:R.C4.volume},!1),u1(R,!0));F.C9&&Wi(R,{muted:!0,volume:R.C4.volume},!1);Osv(R,1,F,!1);var n=R.UN();R.eQ.publish("initializingmode");R.ao(n);R.sJ(3);var V;if(!(V=!R.G.qE)){if(V=R.dD){V=R.dD;var r=R.mediaElement;
V=!!r&&r===V.mediaElement}V=V&&R.Zf}V&&(R.AD(),XL(R),n.setMediaElement(R.mediaElement));n.gA();if(g.E(n.getPlayerState(),128))return!1;F.H_||AY(R,3);return R.Zf=!0};
oP=function(R){R=$M(R.Hw);return!!R&&R.loaded};
IEV=function(R,F){if(!R.wg)return!1;var n=R.wg.startTimeMs*.001-1,V=R.wg.endTimeMs*.001;R.wg.type==="repeatChapter"&&V--;return Math.abs(F-n)<=1E-6||Math.abs(F-V)<=1E-6||F>=n&&F<=V};
KKW=function(R){var F=R.rX();if(R.B("html5_disable_loop_range_for_shorts_ads")&&F.getVideoData().isAd()?0:hu(F.getVideoData())&&!F.D3())F=Bi(R)*1E3-R.getVideoData().ge,R.B("html5_gapless_new_slr")?(R=R.D9,mi(R.app,"gaplessshortslooprange"),F=new g.NQ(0,F,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(R=R.app.rX())&&R.addCueRange(F)):R.setLoopRange({startTimeMs:0,endTimeMs:F,type:"shortsLoop"})};
DUv=function(R){var F=R.UN();if(!(g.E(F.getPlayerState(),64)&&R.aC().isLivePlayback&&R.wg.startTimeMs<5E3)){if(R.wg.type==="repeatChapter"){var n,V=(n=hKe(R.WI()))==null?void 0:n.Z0(),r;n=(r=R.getVideoData())==null?void 0:r.oC;V instanceof g.Gs&&n&&(r=n[rU(n,R.wg.startTimeMs)],V.renderChapterSeekingAnimation(0,r.title));isNaN(Number(R.wg.loopCount))?R.wg.loopCount=0:R.wg.loopCount++;R.wg.loopCount===1&&R.eQ.HG("innertubeCommand",R.getVideoData().zE)}V={gW:"application_loopRangeStart"};if(R.wg.type===
"clips"||R.wg.type==="shortsLoop")V.seekSource=58;F.seekTo(R.wg.startTimeMs*.001,V)}};
UUk=function(R,F){var n=R.eQ.getAvailablePlaybackRates();F=Number(F.toFixed(2));R=n[0];n=n[n.length-1];F<=R?F=R:F>=n?F=n:(R=Math.floor(F*100+.001)%5,F=R===0?F:Math.floor((F-R*.01)*100+.001)/100);return F};
Bi=function(R,F){F=g.aP(R,{playerType:F});F=Cc(R,F);return gh(R,F.Uf(),F)};
gh=function(R,F,n){if(R.OY(n)&&(n=n.getVideoData(),!Ot(R))){R=R.vI;for(var V=g.m(R.U),r=V.next();!r.done;r=V.next())if(r=r.value,n.Zh===r.Zh){F+=r.PT/1E3;break}V=F;R=g.m(R.U);for(r=R.next();!r.done;r=R.next()){r=r.value;if(n.Zh===r.Zh)break;var v=r.PT/1E3;if(v<F)V+=r.durationMs/1E3+v-r.Pw/1E3;else break}return V}return F};
xUf=function(R,F){var n=R.IC.c6;if(n)return DD(n.getPlayerState());if(R.getVideoData().enableServerStitchedDai&&F===2){var V,r,v;return(R.G.rg().T.pH(is_)?(v=(V=R.IC.T)==null?void 0:V.isAd())!=null&&v:(r=R.h0)==null?0:zEk(r,R.getCurrentTime()))?R.ol:-1}return F!==2||R.OY()?R.ol:R.Zb};
X0W=function(R){IP(R);R.setLoopVideo(!1);R.setLoopRange(null);R.eQ.publish("legacyadtrackingpingreset");R.Jw={};R.JN=[];aRI(R.Qc);if(R.h0){var F=R.h0,n=R.UN();n.getPlayerType();FL(F,!1);cMN(F);wkW(F);F.playback=n}F=R.vI;R=R.UN();R.getPlayerType()!==1&&vi(F,"invalidParentVideoPlayerType");qp(F,!1);MDf(F);F.T=R};
mUR=function(R,F){var n=(F?F:R.aC()).VV;R.Qc.tick("ep_pr_r");if(n!=null&&(jaN(R.playlist,n),R.LV))R.playlist.onReady(function(){jO(R,F)})};
Ut=function(R,F){R.playlist&&(g.Cv(R.playlist),R.playlist=null);F&&(R.bq&&(F.fetch=0),R.playlist=new CKE(R.G,F))};
AY=function(R,F){var n=R.rX(),V=n.getPlayerType();if(V!==2||R.OY()){if(V===2&&R.OY()||V===5||V===6||V===7)if(F===-1||F===0||F===5)return;if(F===0){if(R.wg)return;if(n.N7()&&g.ad(R.G)){R.playVideo();return}}R.ol!==F&&(R.ol=F,R.eQ.t7("onStateChange",F))}else R.Zb!==F&&(R.Zb=F,R.eQ.t7("onAdStateChange",F))};
kSf=function(R,F,n,V,r){V=V===void 0?Infinity:V;r=r===void 0?0:r;var v=R.rX();n=n||v.getPlayerType();(v=Osv(R,n,F,!0))||(v=pc(R,n,F,!0));F=R.UN();n===2&&F&&(n=v.getVideoData(),F.Gf(n.clientPlaybackNonce,n.aG||"",n.breakType||0,n.Rm,n.videoId||""));R.pK(v,V,0,r)};
Kc=function(R,F){return R+"_"+F.videoId+"_"+F.Zh+"_"+ +F.isAutonav+ +F.jm};
Osv=function(R,F,n,V){var r=Kc(F,n),v=R.IC.W.get(r)||null;if(!v)return null;R.IC.W.remove(r);v.getVideoData().k_=!1;if(v.Zo())return null;if(g.E(v.getPlayerState(),128))return v.dispose(),null;if(v===R.Jm({playerType:F}))return R.Qc.infoGel({isCacheHit:!0}),v;if((v.getVideoData().oauthToken||n.oauthToken)&&v.getVideoData().oauthToken!==n.oauthToken)return null;F===1&&(F=R.rX().getVideoData(),hu(F)&&F.isAd()&&V||IP(R));V||R.ao(v,!0);R.Qc.infoGel({isCacheHit:!0});return v};
Yuj=function(R,F){var n;return F&&R.G.nf&&!((n=R.getVideoData())==null?0:n.backgroundable)};
JJN=function(R,F){return Yuj(R,F)?(R.IP?R.IP.start():R.kA(),!0):!1};
Dl=function(R,F,n){F&&(F=g.aP(R,{playerType:n}),F===R.UN()&&(F.getVideoData().pC=!0))};
i1=function(R,F,n){n=n===void 0?1:n;if(F.XP()){var V=pc(R,n,F,!1);R.cancelPlayback(4,n);R.ao(V);V.zj();n===1&&(R.sJ(1),g.Pp(R.G)&&!Ag(F)?(F.dispose(),R.UN().dispose()):g4f(R))}else F.dispose(),(F=R.Jm({playerType:n}))&&F.dispose(),LK(R.aC())&&n===2&&R.MM()};
GSR=function(R,F,n,V,r){F=U49(F,n,V,r);(n=g.Pp(R.G)&&!R.G.J1)&&!R.bq&&(F.fetch=0);Ut(R,F);g.Pp(R.G)&&R.Qc.tick("ep_a_pr_s");if(n&&!R.bq)n=R.aC(),Woj(n,F).then(function(v){R.LV=!0;mUR(R,v)});
else R.playlist.onReady(function(){jO(R)});
g.Pp(R.G)&&R.Qc.tick("ep_a_pr_r")};
jO=function(R,F){var n=g.Pp(R.G)&&!R.G.J1,V=n&&F?F:g.cR(R.playlist);F=n&&F?F:R.getVideoData();V&&(F.Lm&&(R.G.Ow||R.G.G_)||!R.VM?(F=F.pC,V=R.OX(V,1),F&&Dl(R,V)):i1(R,V,1));g.Pp(R.G)&&R.Qc.tick("ep_p_l");R.LV=!1;R.eQ.yZ("onPlaylistUpdate")};
Hsj=function(R){if(R.playlist&&(g.n9(R.G)||R.G.jQ==="background_audio_playback")&&R.xx()){var F=R.G.B("html5_player_autonav_logging");R.nextVideo(!1,F);return!0}return!1};
dUe=function(R,F,n,V,r,v,f){F={id:F,namespace:f!=null?f:"appapi"};v==="chapter"?(F.style=lO.CHAPTER_MARKER,F.visible=!0):isNaN(r)||(v==="ad"?F.style=lO.AD_MARKER:(F.style=lO.TIME_MARKER,F.color=r),F.visible=!0);R.DJ([new g.NQ(n*1E3,V*1E3,F)],1);return!0};
MsJ=function(R,F,n,V,r,v){v=v===void 0?!0:v;var f=R.wD();if(!f)return v&&R.getVideoData().isLivePlayback&&R.JN.push({id:F,O4G:n,fN5:V}),!1;v=f-R.getCurrentTime();return dUe(R,F,n-v,V-v,void 0,void 0,r)};
mi=function(R,F,n){F=g.aP(R,{playerType:n}).Bw(F);n&&R.getPresentingPlayerType()!==n||xO(R,"cuerangesremoved",F)};
lEk=function(R){var F=(0,g.h1)(),n=R.getCurrentTime();R=R.getVideoData();n=1E3*(n-R.startSeconds);R.isLivePlayback&&(n=0);return F-Math.max(n,0)};
Wi=function(R,F,n){R.G.Mq&&(R.C4=F,F.muted||u1(R,!1),n&&R.G.storeUserVolume&&!R.G.oC&&(n={volume:Math.floor(F.volume),muted:F.muted},n.unstorable||(g.i6("yt-player-volume",n),g.i6("yt-player-volume",n,2592E3))),NLW(R),n=g.Sl&&R.mediaElement&&!R.mediaElement.Eq(),R.G.oC&&!n||R.eQ.t7("onVolumeChange",{muted:F.muted,volume:F.volume,unstorable:!R.G.storeUserVolume}))};
NLW=function(R){var F=R.getVideoData();if(!F.GD){F=R.G.oC?1:RKR(F);var n=R.mediaElement;n.wA(R.C4.muted);try{n.setVolume(R.C4.volume*F/100)}catch(V){g.mq(new g.UR("b183742307","multiplier: "+F+", volume: "+R.C4.volume))}}};
u1=function(R,F){F!==R.vC&&(R.vC=F,R.eQ.yZ("onMutedAutoplayChange",F))};
DU=function(R){return R.vC&&R.getVideoData().mutedAutoplay};
E4k=function(R){var F=Uw(!0);return F&&(F===R.template.element||R.mediaElement&&F===R.mediaElement.Fs())?F:null};
Pd_=function(R,F){var n,V=(n=window.screen)==null?void 0:n.orientation;if(R.G.X&&V&&V.lock&&(!g.Sl||!$UV))if(F){F=V.type.indexOf("portrait")===0;n=R.template.getVideoAspectRatio();var r=F;n<1?r=!0:n>1&&(r=!1);R.xT&&r===F||(V=V.lock(r?"portrait":"landscape"),V!=null&&V.catch(function(){}),R.xT=!0)}else R.xT&&(R.xT=!1,V.unlock())};
xO=function(R,F,n){R.eQ.publish(F,n);var V=g.ad(R.G)||g.Vw(R.G)||g.Dz(R.G);if(n&&V){switch(F){case "cuerangemarkersupdated":var r="onCueRangeMarkersUpdated";break;case "cuerangesadded":r="onCueRangesAdded";break;case "cuerangesremoved":r="onCueRangesRemoved"}r&&R.eQ.HG(r,n.map(function(v){return{getId:function(){return this.id},
end:v.end,id:v.getId(),namespace:v.namespace==="ad"?"ad":"",start:v.start,style:v.style,visible:v.visible,markerPositionMs:v.markerPositionMs}}))}};
kO=function(R,F,n,V,r,v){n=n===void 0?!0:n;var f=g.aP(R,{playerType:r});if((f.getPlayerType()!==2||R.OY(f))&&!g.Zh(f.getVideoData())){var z=R.IC.c6;z?z.seekTo(F,{VH:!n,Zy:V,gW:"application",seekSource:v}):(f&&f===R.UN()&&R.wg&&!IEV(R,F)&&R.setLoopRange(null),R.seekTo(F,n,V,r,v,"_request"))}};
bsW=function(R,F,n,V){n&&(R.AD(),XL(R));n=R.rX();n.l6(F);var r=R.getVideoData(),v={};v.video_id=r.videoId;v.adformat=r.adFormat;r.isLivePlayback||(v.start=n.getCurrentTime(),v.resume="1");r.isLivePlayback&&xG(r)&&g.Xi(R.G)&&(v.live_utc_start=n.wD(),v.resume="1");r.J1&&(v.vvt=r.J1);r.Z&&(v.vss_credentials_token=r.Z,v.vss_credentials_token_type=r.BA);r.oauthToken&&(v.oauth_token=r.oauthToken);v.autoplay=1;v.reload_count=r.dX+1;v.reload_reason=F;r.Sm&&(v.unplugged_partner_opt_out=r.Sm);r.fl&&(v.ypc_is_premiere_trailer=
r.fl);r.playerParams&&(v.player_params=r.playerParams);r.Nq&&(v.itct=r.Nq);R.loadVideoByPlayerVars(v,void 0,!0,void 0,void 0,V);F==="signature"&&R.h0&&uIj(R)};
Zse=function(R,F){R.aC().autonavState=F;g.i6("yt-player-autonavstate",F);R.eQ.publish("autonavchange",F)};
eeJ=function(R){var F=R.getVideoData().GD,n=R.G.h1,V=R.isInline()&&!R.getVideoData().LN,r=R.mediaElement;F||n||V?r.jZ():(r.wf(),Wi(R,R.C4))};
IP=function(R){(R=jk(R.WI()))&&R.created&&R.destroy()};
Ot=function(R){return R.getVideoData().enableServerStitchedDai&&!!R.h0};
RBk=function(R,F){F.bounds=R.getBoundingClientRect();for(var n=g.m(["display","opacity","visibility","zIndex"]),V=n.next();!V.done;V=n.next())V=V.value,F[V]=QO(R,V);F.hidden=!!R.hidden};
$Rv=function(R){var F=R.webPlayerContextConfig.trustedJsUrl;return F?BU(F).toString():R.webPlayerContextConfig.jsUrl};
FDk=function(R,F){var n=R.Jm({playerType:1});if(n){if(n.getVideoData().clientPlaybackNonce===F)return n;if((R=R.QN.T)&&R.getVideoData().clientPlaybackNonce===F)return R}return null};
LKE=function(R){QW(R,function(){var F=this;return function V(){var r,v,f,z;return A7(V,function(q){switch(q.T){case 1:return g.qs(q,2),F.Qc.tick("wasm_s"),r=Ts(F.Hw)?function(Q){return z4(RGE(F.Hw),function(c){return c.OHZ(Q)})}:void 0,g.zv(q,4),v=npN(F.webPlayerContextConfig.wasmModuleUrl,r,F.G0.bind(F)),f=Tv,Vz(q,cQ(v),6);
case 6:z=f(q.U);F.Qc.tick(z.T?"wasm_fa":"wasm_fw");jUE(F.G,z);g.Qz(q,2);break;case 4:g.cM(q),F.Qc.tick("wasm_ferr");case 2:g.wq(q),g.S7(q,0)}})}()})};
n9R=function(R){return R.name==="TypeError"&&R.stack.includes("/s/player/")&&lx()<=105};
V$f=function(R){return R.isTimeout?"NO_BID":"ERR_BID"};
r4N=function(){var R=null;tcv().then(function(F){return R=F},function(F){return R=V$f(F)});
return R};
v9N=function(){var R=GC(1E3,"NO_BID");return g.xv(Lw_([tcv(),R]).h5(V$f),function(){R.cancel()})};
YO=function(R){return R.uZ?g.M8().pH(140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
JY=function(R){this.player=R;this.N=this.T=1};
zBW=function(R,F,n,V,r,v){F.client||(F.client={});R.player.D().B("h5_remove_url_for_get_ad_break")||(F.client.originalUrl=n);var f=cC(n),z=g.u5(n)?!1:!0;(f||z)&&typeof Intl!=="undefined"&&(F.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);z=g.u5(n)?!1:!0;if(f||z||V!==""){var q={};n=f$(p$(V)).split("&");var Q=new Map;n.forEach(function(c){c=c.split("=");c.length>1&&Q.set(c[0].toString(),decodeURIComponent(c[1].toString()))});
Q.has("bid")&&(q.bid=Q.get("bid"));q.params=[];fnf.forEach(function(c){Q.has(c)&&(c={key:c,value:Q.get(c)},q.params.push(c))});
t$k(R,q);F.adSignalsInfo=q}F.client.unpluggedAppInfo||(F.client.unpluggedAppInfo={});F.client.unpluggedAppInfo.enableFilterMode=!1;n=r.T.cosver;n!=null&&n!=="cosver"&&(F.client.osVersion=n);n=r.T.cplatform;n!=null&&n!=="cplatform"&&n!==""&&(F.client.platform=n);n=r.T.cmodel;n!=null&&n!=="cmodel"&&(F.client.deviceModel=n);n=r.T.cplayer;n!=null&&n!=="cplayer"&&(F.client.playerType=n);n=r.T.cbrand;n!=null&&n!=="cbrand"&&(F.client.deviceMake=n);F.user||(F.user={});F.user.lockedSafetyMode=!1;g.n9(r)&&
M4I(F,v,R.player.getPlayerState(1));if(R=r.livingRoomPoTokenId)F.client.tvAppInfo=Object.assign({},F.client.tvAppInfo,{livingRoomPoTokenId:R})};
c4E=function(R,F){var n=!1;if(F==="")return n;F.split(",").forEach(function(V){var r={},v={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},f="ACTIVE";V[0]==="!"&&(V=V.substring(1),f="INACTIVE");V=V.split("-");V.length<3||(V[0]in q4e&&(v.clientName=q4e[V[0]]),V[1]in QyE&&(v.platform=QyE[V[1]]),v.applicationState=f,v.clientVersion=V.length>2?V[2]:"",r.remoteClient=v,R.remoteContexts?R.remoteContexts.push(r):R.remoteContexts=[r],n=!0)});
return n};
S4J=function(R){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in wJ9))return!1;R=R.split(RegExp("[:&]"));var F=wJ9.FLAG_AUTO_CAPTIONS_DEFAULT_ON,n="f"+(1+Math.floor(F/31)).toString();F=1<<Math.floor(F%31);for(var V=0,r=R.length;V<r;V++){var v=R[V].split("=");if(v[0]===n&&parseInt("0x"+v[1],16)&F)return!0}return!1};
t$k=function(R,F){R=R.player.D();if(sP(R)||AP(R)){R=g.ew("INNERTUBE_CONTEXT");var n,V;(R==null?0:(n=R.adSignalsInfo)==null?0:n.advertisingId)&&typeof(R==null?void 0:(V=R.adSignalsInfo)==null?void 0:V.limitAdTracking)!=="undefined"&&(F.advertisingId=R.adSignalsInfo.advertisingId,F.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",F.limitAdTracking=R.adSignalsInfo.limitAdTracking)}};
T1_=function(R,F,n,V,r){var v=n.DRIFT_FROM_HEAD_MS&&!Number.isNaN(n.DRIFT_FROM_HEAD_MS)?Math.trunc(n.DRIFT_FROM_HEAD_MS):0,f=LD_.exec(F);f=f!=null&&f.length>=2?f[1]:"";var z=sye.test(F),q=pJk.exec(F);q=q!=null&&q.length>=2?q[1]:"";var Q=XJv.exec(F);Q=Q!=null&&Q.length>=2&&!Number.isNaN(Number(Q[1]))?Number(Q[1]):1;var c=A49.exec(F);c=c!=null&&c.length>=2?c[1]:"0";var w=tP(R.player.D().rK),L=R.player.getVideoData({playerType:1}),S=g.Zz(L.Nq,!0),p="BISCOTTI_ID"in n?n.BISCOTTI_ID:"";zBW(R,S,F,p.toString(),
R.player.D(),L);L={splay:!1,lactMilliseconds:n.LACT.toString(),playerHeightPixels:Math.trunc(n.P_H),playerWidthPixels:Math.trunc(n.P_W),vis:Math.trunc(n.VIS),signatureTimestamp:20467,autonavState:YO(R.player.D())};V&&(V={},c4E(V,n.YT_REMOTE)&&(L.mdxContext=V));if(V=an6.includes(w)?void 0:g.Yi("PREF")){for(var C=V.split(RegExp("[:&]")),y=0,u=C.length;y<u;y++){var B=C[y].split("=");if((B[0].toUpperCase()==="SML"||B[0].toUpperCase()==="GSML")&&B.length>1&&B[1].toUpperCase()==="TRUE"){S.user.lockedSafetyMode=
!0;break}}L.autoCaptionsDefaultOn=S4J(V)}F=ClN.exec(F);(F=F!=null&&F.length>=2?F[1]:"")&&q&&(S.user.credentialTransferTokens=[{token:F,scope:"VIDEO"}]);F={contentPlaybackContext:L};f={adBlock:Math.trunc(n.AD_BLOCK),params:f,breakIndex:Q,breakPositionMs:c,clientPlaybackNonce:n.CPN,topLevelDomain:w,isProxyAdTagRequest:z,context:S,adSignalsInfoString:f$(p$(p.toString())),overridePlaybackContext:F};r!==void 0&&(f.cueProcessedMs=Math.round(r).toString());q&&(f.videoId=q);n.LIVE_TARGETING_CONTEXT&&(f.liveTargetingParams=
n.LIVE_TARGETING_CONTEXT);n.AD_BREAK_LENGTH&&(f.breakLengthMs=Math.trunc(n.AD_BREAK_LENGTH*1E3).toString());v&&(f.driftFromHeadMs=v.toString());f.currentMediaTimeMs=Math.round(R.player.getCurrentTime(1)*1E3);(R=R.player.getGetAdBreakContext())&&(f.getAdBreakContext=R);return f};
o9f=function(){JY.apply(this,arguments)};
y4N=function(R,F,n,V,r){var v=n.NI;var f=n.tO;var z=R.player.D().GZ,q=0;n.cueProcessedMs&&f&&!v&&(n=f.end-f.start,n>0&&(q=Math.floor(n/1E3)));var Q={AD_BLOCK:r,AD_BREAK_LENGTH:v?v.FP:q,AUTONAV_STATE:YO(R.player.D()),CA_TYPE:"image",CPN:GJ(R).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:R.player.L2()*1E3,LACT:aS(),LIVE_INDEX:v?R.N++:1,LIVE_TARGETING_CONTEXT:v&&v.context?v.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:R.player.getVisibilityState(),P_H:R.player.fH().p5().height,
P_W:R.player.fH().p5().width,YT_REMOTE:z?z.join(","):""},c=s2(L$);Object.keys(c).forEach(function(w){c[w]!=null&&(Q[w.toUpperCase()]=c[w].toString())});
V!==""&&(Q.BISCOTTI_ID=V);V={};SP(F)&&(V.sts="20467",(R=R.player.D().forcedExperiments)&&(V.forced_experiments=R));return Qb(g.OB(F,Q),V)};
GJ=function(R){return R.player.getVideoData({playerType:1})};
UbI=function(R,F){var n=R.player.D(),V,r=(V=GJ(R))==null?void 0:V.oauthToken;return g.HV(n,r).then(function(v){if(v&&wz()){var f=r$();vN(f,v)}return g.ij(R.player.i_(f),F,"/youtubei/v1/player/ad_break").then(function(z){return z})})};
jyk=function(R){this.zH=R};
HZj=function(R){this.K=R};
hBI=function(R){this.zH=R};
uXk=function(R){g.G.call(this);this.T=R;this.R5=WDJ(this)};
WDJ=function(R){var F=new ywI(R.T.hX);g.d(R,F);R=[new jyk(R.T.zH),new HZj(R.T.K),new hBI(R.T.zH),new Tm(R.T.iW,R.T.zd),new yL,new HF(R.T.NT,R.T.H6,R.T.zH),new oK,new CL(R.T.H6)];R=g.m(R);for(var n=R.next();!n.done;n=R.next())UMR(F,n.value);R=g.m(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(n=R.next();!n.done;n=R.next())UX(F,n.value,function(){});
return F};
B1N=function(R,F){this.NT=R;this.WG=F};
dh=function(R){var F=R.Do,n=R.WG;R=R.Ol;var V={wUG:new B1N(F.get(),n),WG:n};return{In:new Zy(n,R,F),context:V}};
Mp=function(R,F,n,V,r){g.G.call(this);this.U=F;this.F2=n;this.Do=V;this.Sl=r;this.listeners=[];var v=new Ow(this);g.d(this,v);v.C(R,"internalAbandon",this.aOo);this.addOnDisposeCallback(function(){g.Kw(v)})};
l1=function(R){this.K=R;this.adVideoId=this.T=this.videoId=this.adCpn=this.contentCpn=null;this.W=!0;this.U=this.N=!1;this.adFormat=null;this.J="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
mbV=function(R){R.contentCpn=null;R.adCpn=null;R.videoId=null;R.adVideoId=null;R.adFormat=null;R.J="AD_PLACEMENT_KIND_UNKNOWN";R.actionType="unknown_type";R.N=!1;R.U=!1};
g9v=function(R,F){R=g.m(F);for(F=R.next();!F.done;F=R.next())if((F=F.value.renderer)&&(F.instreamVideoAdRenderer||F.linearAdSequenceRenderer||F.sandwichedLinearAdRenderer||F.instreamSurveyAdRenderer)){uj("ad_i");g.B8({isMonetized:!0});break}};
OZf=function(R){var F;(F=R.K.getVideoData({playerType:1}))!=null&&F.V&&(R.U=!1,F={},R.T&&R.videoId&&(F.cttAuthInfo={token:R.T,videoId:R.videoId}),mc("video_to_ad",F))};
RU=function(R){R.U=!1;var F={};R.T&&R.videoId&&(F.cttAuthInfo={token:R.T,videoId:R.videoId});mc("ad_to_video",F);InJ(R)};
InJ=function(R){if(R.N)if(R.J==="AD_PLACEMENT_KIND_START"&&R.actionType==="video_to_ad")H8("video_to_ad");else{var F={adBreakType:ku(R.J),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:R.videoStreamType};R.actionType==="ad_to_video"?(R.contentCpn&&(F.targetCpn=R.contentCpn),R.videoId&&(F.targetVideoId=R.videoId)):(R.adCpn&&(F.targetCpn=R.adCpn),R.adVideoId&&(F.targetVideoId=R.adVideoId));R.adFormat&&(F.adType=R.adFormat);R.contentCpn&&
(F.clientPlaybackNonce=R.contentCpn);R.videoId&&(F.videoId=R.videoId);R.adCpn&&(F.adClientPlaybackNonce=R.adCpn);R.adVideoId&&(F.adVideoId=R.adVideoId);g.B8(F,R.actionType);R.K.D().experiments.GH("html5_ads_csi_qoes")&&(F=R.K.HE(R.actionType==="ad_to_video"?1:2),F=(0,g.h1)()-1E3*F,OI("qoes",F,R.actionType))}};
Np=function(R){g.G.call(this);this.K=R;this.T=new Map;this.U=new Ow(this);g.d(this,this.U);this.U.C(this.K,g.$A("ad"),this.onCueRangeEnter,this);this.U.C(this.K,g.Pl("ad"),this.onCueRangeExit,this)};
KDN=function(R,F,n,V,r,v,f){g.NQ.call(this,F,n,{id:R,namespace:"ad",priority:r,visible:V,associatedClipId:v,markerPositionMs:f})};
Et=function(R){this.K=R};
Dbf=function(R,F){R.K.cueVideoByPlayerVars(F,2)};
$O=function(R){this.K=R};
Pi=function(R){this.K=R};
kA=function(R,F){return R.K.D().B(F)};
iZ9=function(R){return R.K.D().B("substitute_ad_cpn_macro_in_ssdai")};
so=function(R){var F,n,V;return((F=R.K.getVideoData({playerType:1}).getPlayerResponse())==null?void 0:(n=F.playerConfig)==null?void 0:(V=n.daiConfig)==null?void 0:V.enableServerStitchedDai)||!1};
XAV=function(R){return R.K.D().B("html5_enable_vod_slar_with_notify_pacf")};
xbf=function(R){return R.K.D().B("html5_recognize_predict_start_cue_point")};
Zq=function(R){return R.K.D().experiments.GH("enable_desktop_player_underlay")};
kZf=function(R){return R.K.D().experiments.GH("html5_load_empty_player_in_media_break_sub_lra")};
M5=function(R,F){return R.K.D().B("html5_cue_video_for_preroll")&&(F==null?void 0:F.kind)==="AD_PLACEMENT_KIND_START"?!1:R.K.D().experiments.GH("html5_load_ads_instead_of_cue")};
l_=function(R){return R.K.D().experiments.GH("html5_preload_ads")};
Y4J=function(R){return R.K.D().experiments.GH("should_ignore_cuepoints_during_lifa_preroll")};
lD=function(R){return R.K.D().experiments.GH("enable_ads_control_flow_deterministic_id_generation")};
J4e=function(R){return R.K.D().experiments.GH("enable_desktop_discovery_video_abandon_pings")||sP(R.K.D())};
GZ9=function(R){return R.K.D().experiments.GH("enable_progres_commands_lr_feeds")};
dbI=function(R){return R.K.D().experiments.GH("enable_progress_commands_lr_shorts")};
pB=function(R){return R.K.D().experiments.GH("html5_cuepoint_identifier_logging")};
U0_=function(R){R=R.K.getVideoData({playerType:1});return!!R&&R.B("html5_preload_first_vod_video_ad")&&!R.isDaiEnabled()&&!R.isLivePlayback};
M$_=function(R){return R.K.D().experiments.GH("html5_ssdai_enable_media_end_cue_range")};
lnW=function(R){switch(R){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}};
N1k=function(){g.fG.call(this);var R=this;this.T={};this.addOnDisposeCallback(function(){for(var F=g.m(Object.keys(R.T)),n=F.next();!n.done;n=F.next())delete R.T[n.value]})};
b1=function(){if(E9k===null){E9k=new N1k;i$(tH).U="b";var R=i$(tH),F=RN(R)=="h"||RN(R)=="b",n=!(yA(),!1);F&&n&&(R.W=!0,R.Z=new KL_)}return E9k};
$b_=function(R,F,n){R.T[F]=n};
Plk=function(R){switch(R){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}};
Zl=function(R,F,n){this.F2=R;this.K=F;this.WG=n;this.U=new Set;this.T=new Map;b1().subscribe("adactiveviewmeasurable",this.FY,this);b1().subscribe("adfullyviewableaudiblehalfdurationimpression",this.ly,this);b1().subscribe("adviewableimpression",this.Kv,this);b1().subscribe("adaudioaudible",this.Wv,this);b1().subscribe("adaudiomeasurable",this.Pv,this)};
Rb=function(R,F,n){var V=n.CZ,r=n.Sr,v=n.listener;n=n.wc;if(R.T.has(F))Q2("Unexpected registration of layout in LidarApi");else{if(n){if(R.U.has(n))return;R.U.add(n)}R.T.set(F,v);le(yA().Fh,"fmd",1);lFf(i$(tH),V);$b_(b1(),F,{Ob:function(){if(!r)return{};var f=R.K.getPresentingPlayerType(!0),z;return(z=R.K.getVideoData({playerType:f}))!=null&&z.isAd()?{currentTime:R.F2.get().getCurrentTimeSec(f,!1,void 0),duration:r,isPlaying:eO(R.F2.get(),f).isPlaying(),isVpaid:!1,isYouTube:!0,volume:R.F2.get().isMuted()?
0:R.F2.get().getVolume()/100}:{}}})}};
FZ=function(R,F){R.T.has(F)?(R.T.delete(F),delete b1().T[F]):Q2("Unexpected unregistration of layout in LidarApi")};
bZR=function(R,F){if(R.K.isLifaAdPlaying()){var n=R.K.Rs(!0,!0);R.J3(F,n.width*.5*1.1,n.height*.25*1.1,n.width*.5*.9,n.height*.5*.9)}};
Rmf=function(R,F){var n={};ZZe(R,n,F);eBW(n);n.LACT=nE(function(){return aS().toString()});
n.VIS=nE(function(){return R.getVisibilityState().toString()});
n.SDKV="h.3.0";n.VOL=nE(function(){return R.isMuted()?"0":Math.round(R.getVolume()).toString()});
n.VED="";return n};
Fsj=function(R,F){var n={};if(F||!R||!R.kind)return n;if(R.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||R.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!R.adTimeOffset||!R.adTimeOffset.offsetStartMilliseconds)return g.uX(Error("malformed AdPlacementConfig")),n;n.MIDROLL_POS=nE(Es(Math.round(Z$(R.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else n.MIDROLL_POS=nE(Es("0"));return n};
nE=function(R){return{toString:function(){return R()}}};
nPE=function(R,F,n){function V(z,q){(q=n[q])&&(v[z]=q)}
function r(z,q){(q=n[q])&&(v[z]=f(q))}
if(!n||g.g7(n))return R;var v=Object.assign({},R),f=F?encodeURIComponent:function(z){return z};
r("DV_VIEWABILITY","doubleVerifyViewability");r("IAS_VIEWABILITY","integralAdsViewability");r("MOAT_INIT","moatInit");r("MOAT_VIEWABILITY","moatViewability");V("GOOGLE_VIEWABILITY","googleViewability");V("VIEWABILITY","viewability");return v};
ZZe=function(R,F,n){F.CPN=nE(function(){var V;(V=R.getVideoData({playerType:1}))?V=V.clientPlaybackNonce:(g.mq(Error("Video data is null.")),V=null);return V});
F.AD_MT=nE(function(){if(n!=null)var V=n;else if(R.D().B("enable_h5_shorts_ad_fill_ad_mt_macro")||R.D().B("enable_desktop_discovery_pings_ad_mt_macro")||sP(R.D())){var r=R.getPresentingPlayerType(!0),v;V=((v=R.getVideoData({playerType:r}))==null?0:v.isAd())?R.getCurrentTime(r,!1):0}else V=R.getCurrentTime(2,!1);return VdW(V)});
F.MT=nE(function(){return VdW(R.getCurrentTime(1,!1))});
F.P_H=nE(function(){return R.fH().p5().height.toString()});
F.P_W=nE(function(){return R.fH().p5().width.toString()});
F.PV_H=nE(function(){return R.fH().getVideoContentRect().height.toString()});
F.PV_W=nE(function(){return R.fH().getVideoContentRect().width.toString()})};
VdW=function(R){return Math.round(Math.max(0,R*1E3)).toString()};
eBW=function(R){R.CONN=nE(Es("0"));R.WT=nE(function(){return Date.now().toString()})};
rkf=function(){};
vPf=function(R,F,n,V,r){var v,f,z,q,Q,c,w,L,S,p,C,y,u;g.Y(function(B){switch(B.T){case 1:v=!!F.scrubReferrer;f=g.OB(F.baseUrl,nPE(n,v,V));z={};if(!F.headers){B.wX(2);break}q=R.J();if(!q.T){Q=q.getValue();B.wX(3);break}return g.k(B,q.T,4);case 4:Q=B.U;case 3:c=Q;w=g.m(F.headers);for(L=w.next();!L.done;L=w.next())switch(S=L.value,S.headerType){case "VISITOR_ID":g.ew("VISITOR_DATA")&&(z["X-Goog-Visitor-Id"]=g.ew("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.ew("EOM_VISITOR_DATA")&&(z["X-Goog-EOM-Visitor-Id"]=
g.ew("EOM_VISITOR_DATA"));break;case "USER_AUTH":c&&(z.Authorization="Bearer "+c);break;case "PLUS_PAGE_ID":(p=R.W())&&(z["X-Goog-PageId"]=p);break;case "AUTH_USER":C=R.T();!c&&C&&(z["X-Goog-AuthUser"]=C);break;case "DATASYNC_ID":if(y=void 0,(y=R.N())==null?0:y.GH("enable_datasync_id_header_in_web_vss_pings"))u=R.U(),cC(f)&&g.ew("LOGGED_IN")&&u&&(z["X-YouTube-DataSync-Id"]=u)}"X-Goog-EOM-Visitor-Id"in z&&"X-Goog-Visitor-Id"in z&&delete z["X-Goog-Visitor-Id"];case 2:g.ir(f,void 0,v,Object.keys(z).length!==
0?z:void 0,"",!0,r),g.rq(B)}})};
fcW=function(R,F,n,V,r){this.J=R;this.W=F;this.T=n;this.U=V;this.N=r};
tdf=function(R,F){this.T=R;this.WG=F};
VC=function(R,F,n,V,r,v){var f=f===void 0?new fcW(function(){var z=R.D(),q=R.getVideoData({playerType:1});return g.HV(z,q?g.Ql(q):"")},function(){return R.D().pageId},function(){return R.D().lS},function(){var z;
return(z=R.D().datasyncId)!=null?z:""},function(){return R.D().experiments}):f;
this.K=R;this.U=F;this.cI=n;this.Do=V;this.In=r;this.WG=v;this.J=f;this.oz=null;this.T=new Map;this.N=new tdf(f,this.WG)};
q9N=function(R,F,n,V,r){var v=j2(R.U.get(),n);v?(n=Aa(R,zme(v),v,void 0,void 0,V),F.hasOwnProperty("baseUrl")?R.J.send(F,n):R.N.send(F,n,{},r)):Q2("Trying to ping from an unknown layout",void 0,void 0,{layoutId:n})};
gCv=function(R,F,n,V,r,v){V=V===void 0?[]:V;var f=j2(R.U.get(),F);if(f){var z=R.cI.get().qc(F,n),q=Aa(R,zme(f),f,r,v);V.forEach(function(Q,c){Q.baseUrl&&(R.N.send(Q.baseUrl,q,z,Q.attributionSrcMode),Q.serializedAdPingMetadata&&R.In.T("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,f,new NVN(Q,c),void 0,void 0,f.adLayoutLoggingData))})}else Q2("Trying to track from an unknown layout.",void 0,void 0,{layoutId:F,
trackingType:n})};
cT=function(R,F){R.K.sendVideoStatsEngageEvent(F,void 0,2)};
rI=function(R,F){g.LJ("adsClientStateChange",F)};
Q_N=function(R,F){R.T.has(F.Nu())?Q2("Trying to register an existing AdErrorInfoSupplier."):R.T.set(F.Nu(),F)};
ckf=function(R,F){R.T.delete(F.Nu())||Q2("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
tA=function(R,F,n){typeof n==="string"?R.K.getVideoData({playerType:1}).R1(F,n):R.K.getVideoData({playerType:1}).m2(F,n)};
zme=function(R){var F=PA(R.clientMetadata,"metadata_type_ad_placement_config");R=PA(R.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:F,tv:R}};
Aa=function(R,F,n,V,r,v){var f=n?wO_(R):{},z=n?S9k(R,n.layoutId):{},q=Lsj(R),Q,c=r!=null?r:(Q=fb(R.Do.get(),2))==null?void 0:Q.clientPlaybackNonce;r={};R=Object.assign({},Rmf(R.K,V),Fsj(F.adPlacementConfig,(n==null?void 0:n.renderingContent)!==void 0),z,f,q,(r.FINAL=nE(function(){return"1"}),r.AD_CPN=nE(function(){return c||""}),r));
(n==null?void 0:n.renderingContent)!==void 0||(R.SLOT_POS=nE(function(){return(F.tv||0).toString()}));
n={};v=Object.assign({},R,v);R=g.m(Object.values(s_N));for(V=R.next();!V.done;V=R.next())V=V.value,f=v[V],f!=null&&f.toString()!=null&&(n[V]=f.toString());return n};
wO_=function(R){var F={},n,V=(n=R.oz)==null?void 0:n.j7/1E3;V!=null&&(F.SURVEY_ELAPSED_MS=nE(function(){return Math.round(V*1E3).toString()}));
F.SURVEY_LOCAL_TIME_EPOCH_S=nE(function(){return Math.round(Date.now()/1E3).toString()});
return F};
S9k=function(R,F){R=R.T.get(F);if(!R)return{};R=R.df();if(!R)return{};F={};return F.YT_ERROR_CODE=R.uJ.toString(),F.ERRORCODE=R.DU.toString(),F.ERROR_MSG=R.errorMessage,F};
Lsj=function(R){var F={},n=R.K.getVideoData({playerType:1});F.ASR=nE(function(){var V;return(V=n==null?void 0:n.x8)!=null?V:null});
F.EI=nE(function(){var V;return(V=n==null?void 0:n.eventId)!=null?V:null});
return F};
rc=function(R,F,n){g.G.call(this);this.K=R;this.r$=F;this.WG=n;this.listeners=[];this.Y6=null;this.fg=new Map;F=new g.AQ(this);g.d(this,F);F.C(R,"videodatachange",this.j9G);R.D().rg().T.pH(F7)?F.C(R,"playbackChange",this.tlo):F.C(R,"serverstitchedvideochange",this.r72);this.c5=fb(this)};
fb=function(R,F){var n=R.K.getVideoData({playerType:F});return n?R.oX(n,F||R.K.getPresentingPlayerType(!0)):null};
pO6=function(R,F,n){var V=R.oX(F,n);R.c5=V;R.listeners.forEach(function(r){r.uv(V)})};
vw=function(R,F){g.G.call(this);this.K=R;this.Do=F;this.listeners=[];this.Pp=[];this.Xy=function(){Q2("Called 'doUnlockPreroll' before it's initialized.")};
F=new Ow(this);var n=new g.AQ(this);g.d(this,n);g.d(this,F);F.C(R,"progresssync",this.suG);F.C(R,"presentingplayerstatechange",this.HlG);F.C(R,"fullscreentoggled",this.onFullscreenToggled);F.C(R,"onVolumeChange",this.onVolumeChange);F.C(R,"minimized",this.oV);F.C(R,"overlayvisibilitychange",this.PE);F.C(R,"shortsadswipe",this.Fd);F.C(R,"resize",this.G9);n.C(R,g.$A("appad"),this.WE)};
XOk=function(R,F){R.Pp=R.Pp.filter(function(n){return n!==F})};
fE=function(R,F,n){return R.getCurrentTimeSec(F,n)};
tV=function(R,F){var n;F=(n=R.Do.get().fg.get(F))!=null?n:null;if(F===null)return Q2("Expected ad video start time on playback timeline"),0;R=R.K.getCurrentTime(2,!0);return R<F?0:R-F};
eO=function(R,F){return R.K.getPlayerStateObject(F)};
AkV=function(R){var F=R.K.fH().p5();R=R.K.Rs(!0,!0);return F.height-(R.height+R.top)};
acJ=function(R){R.K.cueVideoByPlayerVars({videoId:"empty_video"},2)};
CuR=function(R,F){var n=R.K.D();g.Fk(n)||n.controlsType!=="3"||R.K.fH().Ln(F)};
zc=function(R,F){g.z0(R.K.getRootNode(),F)};
qe=function(R,F){g.Qj(R.K.getRootNode(),F)};
T0E=function(R,F,n,V,r){g.G.call(this);var v=this,f=gn(function(){return new MV(v.WG)});
g.d(this,f);var z=gn(function(){return new NV(f)});
g.d(this,z);var q=gn(function(){return new y5});
g.d(this,q);V=gn(function(){return new T_(R)});
g.d(this,V);var Q=gn(function(){return new Eo(f,z,v.WG)});
g.d(this,Q);var c=gn(function(){return new e2});
g.d(this,c);this.tJ=gn(function(){return new Id(r)});
g.d(this,this.tJ);this.tX=gn(function(){return new l1(F)});
g.d(this,this.tX);this.wW=gn(function(){return new Np(F)});
g.d(this,this.wW);this.DO=gn(function(){return new Et(F)});
g.d(this,this.DO);this.hX=gn(function(){return new $O(F)});
g.d(this,this.hX);this.WG=gn(function(){return new Pi(F)});
g.d(this,this.WG);var w=gn(function(){return new rn(v.WG)});
g.d(this,w);var L=gn(function(){return new cG(f,Q,z,v.WG,w,null,null,null,null)});
g.d(this,L);this.Do=gn(function(){return new rc(F,c,v.WG)});
g.d(this,this.Do);var S=dh({Do:this.Do,WG:this.WG,Ol:w}),p=S.context;this.In=S.In;this.F2=gn(function(){return new vw(F,v.Do)});
g.d(this,this.F2);this.cI=gn(function(){return new Zl(v.F2,F,v.WG)});
g.d(this,this.cI);this.zH=gn(function(){return new VC(F,q,v.cI,v.Do,v.In,v.WG)});
g.d(this,this.zH);this.jl=new CB(V,L,n,R,this.Do,this.F2,this.tX);g.d(this,this.jl);var C=new Mp(F,this.jl,this.F2,this.Do);this.Fc=gn(function(){return C});
this.Bv=C;this.YS=new oY(V,Q,this.wW,this.Fc,p);g.d(this,this.YS);this.QS=new Dq(this.WG,V,Q,L,this.Do,this.YS,n,this.DO);g.d(this,this.QS);this.l_={LR:new Map,Nf:new Map,FW:new Map,hn:new Map,Gi:new Map};this.listeners=[];this.BC={QS:this.QS,H6:this.WG.get(),Vz:this.tJ.get(),uQ:this.F2.get(),jl:this.jl,X0:f.get(),U1:null,zd:{eT:function(){}},
iW:q.get(),NT:this.Do.get()}};
QC=function(R,F){g.G.call(this);this.ZB=F;this.ZB.get().addListener(this)};
cw=function(R){this.T=R};
oPf=function(R,F){if(!R)return{Sf:[],adSlots:[],De:!0,ssdaiAdsConfig:void 0};R.trackingParams&&UT(R.trackingParams);if(R.adThrottled)return{Sf:[],adSlots:[],De:!0,ssdaiAdsConfig:void 0};var n,V=(n=R.adSlots)!=null?n:[],r;n=(r=R.playerAds)!=null?r:[];if(!(n&&n.length||V.length))return{Sf:[],adSlots:V,De:!1,ssdaiAdsConfig:void 0};r=n.map(function(f){return f.adPlacementRenderer}).filter(function(f){return!(!f||!f.renderer)});
if(!r.length&&!V.length)return{Sf:[],adSlots:V,De:!1,ssdaiAdsConfig:void 0};if(F.end>0){var v=F.end.toString();r.forEach(function(f){(f=f.config&&f.config.adPlacementConfig)&&f.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&f.adTimeOffset&&f.adTimeOffset.offsetEndMilliseconds==="-1"&&f.adTimeOffset.offsetEndMilliseconds!==v&&(f.adTimeOffset.offsetEndMilliseconds=v)});
V.map(function(f){return g.A(f,WS)}).forEach(function(f){var z;
(f=f==null?void 0:(z=f.slotEntryTrigger)==null?void 0:z.mediaTimeRangeTrigger)&&f.offsetEndMilliseconds==="-1"&&(f.offsetEndMilliseconds=v)})}return{Sf:r,
adSlots:V,De:!1,ssdaiAdsConfig:R.ssdaiAdsConfig}};
wc=function(R){g.G.call(this);this.K=R;this.listeners=[];this.T=new Ow(this);g.d(this,this.T);this.T.C(this.K,"aduxclicked",this.onAdUxClicked);this.T.C(this.K,"aduxmouseover",this.Qp);this.T.C(this.K,"aduxmouseout",this.AS);this.T.C(this.K,"muteadaccepted",this.JX2)};
yke=function(R,F,n){F=g.OM(F,function(V){return new ohk(V,n,V.id)});
R.K.HG("onAdUxUpdate",F)};
SJ=function(R,F){R=g.m(R.listeners);for(var n=R.next();!n.done;n=R.next())F(n.value)};
LE=function(R,F){this.U=R;this.N=F===void 0?!1:F;this.T={}};
Uo6=function(R,F){var n=R.startSecs+R.FP;n=n<=0?null:n;if(n===null)return null;switch(R.event){case "start":case "continue":case "stop":break;case "predictStart":if(F)break;return null;default:return null}F=Math.max(R.startSecs,0);return{Fl:new jC(F,n),E5Q:new AI(F,n-F,R.context,R.identifier,R.event,R.T)}};
j_E=function(){this.T=[]};
cse=function(R,F,n){var V=g.L4(R.T,F);if(V>=0)return F;F=-V-1;return F>=R.T.length||R.T[F]>n?null:R.T[F]};
sS=function(R,F,n){g.G.call(this);this.K=R;this.WG=F;this.zH=n;this.listeners=[];this.J=!1;this.rA=[];this.T=null;this.W=new LE(this,xbf(F.get()));this.N=new j_E;this.U=null};
H8e=function(R,F){R.rA.push(F);for(var n=!1,V=g.m(R.listeners),r=V.next();!r.done;r=V.next())n=r.value.RO(F)||n;R.J=n;pB(R.WG.get())&&tA(R.zH.get(),"onci","cpi."+F.identifier+";cpe."+F.event+";cps."+F.startSecs+";cbi."+n)};
WsI=function(R,F){rI(R.zH.get(),{cuepointTrigger:{event:hmI(F.event),cuepointId:F.identifier,totalCueDurationMs:F.FP*1E3,playheadTimeMs:F.T,cueStartTimeMs:F.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:R.K.getVideoData({playerType:1}).clientPlaybackNonce}})};
hmI=function(R){switch(R){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 B$(R,"Unexpected cuepoint event")}};
pE=function(R){this.K=R};
XZ=function(R){this.K=R};
uhj=function(R){switch(R){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:B$(R,"unknown transitionReason")}};
AV=function(){g.G.apply(this,arguments);this.vSH=new Map};
B0f=function(R){this.K=R};
moJ=function(R,F,n,V,r){g.G.call(this);var v=this,f=gn(function(){return new MV(v.WG)});
g.d(this,f);var z=gn(function(){return new NV(f)});
g.d(this,z);var q=gn(function(){return new y5});
g.d(this,q);var Q=gn(function(){return new T_(R)});
g.d(this,Q);var c=gn(function(){return new Eo(f,z,v.WG)});
g.d(this,c);var w=gn(function(){return new e2});
g.d(this,w);this.JX=gn(function(){return new wc(F)});
g.d(this,this.JX);this.tJ=gn(function(){return new Id(r)});
g.d(this,this.tJ);this.tX=gn(function(){return new l1(F)});
g.d(this,this.tX);this.wW=gn(function(){return new Np(F)});
g.d(this,this.wW);this.DO=gn(function(){return new Et(F)});
g.d(this,this.DO);this.hX=gn(function(){return new $O(F)});
g.d(this,this.hX);this.WG=gn(function(){return new Pi(F)});
g.d(this,this.WG);var L=gn(function(){return new cw(V)});
g.d(this,L);var S=gn(function(){return new rn(v.WG)});
g.d(this,S);this.MP=gn(function(){return new pE(F)});
g.d(this,this.MP);this.ZB=gn(function(){return new iO});
g.d(this,this.ZB);this.Do=gn(function(){return new rc(F,w,v.WG)});
g.d(this,this.Do);var p=dh({Do:this.Do,WG:this.WG,Ol:S}),C=p.context;this.In=p.In;this.Sl=gn(function(){return new sS(F,v.WG,v.zH)});
g.d(this,this.Sl);this.SB=gn(function(){return new XZ(F)});
g.d(this,this.SB);this.F2=gn(function(){return new vw(F,v.Do)});
g.d(this,this.F2);this.Q7=gn(function(){return new AV});
g.d(this,this.Q7);p=gn(function(){return new cG(f,c,z,v.WG,S,"SLOT_TYPE_ABOVE_FEED",v.F2,v.Zz,v.Yk)});
g.d(this,p);this.eJ=gn(function(){return new xA(v.WG)});
this.cI=gn(function(){return new Zl(v.F2,F,v.WG)});
g.d(this,this.cI);this.zH=gn(function(){return new VC(F,q,v.cI,v.Do,v.In,v.WG)});
g.d(this,this.zH);this.bW=new aY(Aq,ab,function(u,B,O,K){return b8(z.get(),u,B,O,K)},Q,c,z,S,this.WG,this.Do);
g.d(this,this.bW);this.jl=new CB(Q,p,n,R,this.Do,this.F2,this.tX);g.d(this,this.jl);var y=new Mp(F,this.jl,this.F2,this.Do,this.Sl);this.Fc=gn(function(){return y});
this.Bv=y;this.Zz=new LB(Q,c,this.Fc,this.Sl,this.F2,this.WG,this.zH,this.SB);g.d(this,this.Zz);this.YS=new oY(Q,c,this.wW,this.Fc,C);g.d(this,this.YS);this.QS=new Dq(this.WG,Q,c,p,this.Do,this.YS,n,this.DO);g.d(this,this.QS);this.f6=gn(function(){return new ny(L,z,S,v.WG,v.zH,v.F2,v.SB)});
g.d(this,this.f6);this.ou=gn(function(){return new Vd});
g.d(this,this.ou);this.kS=new BG(R,this.JX,this.WG);g.d(this,this.kS);this.LC=new m1(R);g.d(this,this.LC);this.To=new gM(R);g.d(this,this.To);this.b_=new IY(R,this.Fc,C);g.d(this,this.b_);this.Iu=new KB(R,this.wW,this.F2,this.Do);g.d(this,this.Iu);this.iK=new Dy(R,this.Do);g.d(this,this.iK);this.Yk=new kE(R,this.Sl,this.F2,this.zH,this.Fc,this.Zz);g.d(this,this.Yk);this.pk=new iD(R);g.d(this,this.pk);this.P_=new dM(R);g.d(this,this.P_);this.KW=new xE(R);g.d(this,this.KW);this.sL=new G_(R);g.d(this,
this.sL);this.P_=new dM(R);g.d(this,this.P_);this.yS=gn(function(){return new HG});
g.d(this,this.yS);this.Zs=gn(function(){return new hq(v.F2)});
g.d(this,this.Zs);this.F5=gn(function(){return new ZJ6(v.JX,v.zH,R,q,v.cI)});
g.d(this,this.F5);this.xY=gn(function(){return new Ja(v.QS,Q,f)});
g.d(this,this.xY);this.yN=gn(function(){return new My(v.WG,v.zH,v.pk,v.cI)});
g.d(this,this.yN);this.BE=gn(function(){return new Lf(R,v.P_,v.pk,v.Do,v.SB,v.F2,v.Q7,v.zH,w,v.Sl,v.cI,v.eJ,v.DO,v.wW,v.tX,v.hX,v.tJ,v.MP,v.WG,q,C)});
g.d(this,this.BE);this.ZR=gn(function(){return new SaV(v.F2,v.zH,v.tJ,v.WG,v.cI,v.Do)});
g.d(this,this.ZR);this.CS=gn(function(){return new Kcj(v.JX,v.F2,v.zH,q,v.cI,v.To,v.sL,v.tJ,v.WG,n)});
g.d(this,this.CS);this.mU=gn(function(){return new ebe(v.JX,v.zH,q)});
g.d(this,this.mU);this.kR=new QC(R,this.ZB,f);g.d(this,this.kR);this.l_={LR:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.QS],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Zz],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.bW],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.jl],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.YS]]),Nf:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.f6],["SLOT_TYPE_ABOVE_FEED",this.ou],["SLOT_TYPE_FORECASTING",this.ou],
["SLOT_TYPE_IN_PLAYER",this.ou],["SLOT_TYPE_PLAYER_BYTES",this.ou],["SLOT_TYPE_PLAYER_UNDERLAY",this.ou],["SLOT_TYPE_PLAYBACK_TRACKING",this.ou],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.ou]]),FW:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.kS],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.kS],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.LC],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.LC],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.LC],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.LC],["TRIGGER_TYPE_SLOT_ID_ENTERED",
this.LC],["TRIGGER_TYPE_SLOT_ID_EXITED",this.LC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.LC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.LC],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.LC],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.LC],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.LC],["TRIGGER_TYPE_CLOSE_REQUESTED",this.To],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.b_],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Iu],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.Iu],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Iu],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Iu],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Iu],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Iu],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Iu],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.iK],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.iK],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.pk],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.b_],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.KW],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.sL],["TRIGGER_TYPE_AD_BREAK_STARTED",this.P_],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Yk],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Yk],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Yk],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Yk],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Yk]]),hn:new Map([["SLOT_TYPE_ABOVE_FEED",this.yS],
["SLOT_TYPE_AD_BREAK_REQUEST",this.yS],["SLOT_TYPE_FORECASTING",this.yS],["SLOT_TYPE_IN_PLAYER",this.yS],["SLOT_TYPE_PLAYER_BYTES",this.Zs],["SLOT_TYPE_PLAYER_UNDERLAY",this.yS],["SLOT_TYPE_PLAYBACK_TRACKING",this.yS],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.yS]]),Gi:new Map([["SLOT_TYPE_ABOVE_FEED",this.F5],["SLOT_TYPE_AD_BREAK_REQUEST",this.xY],["SLOT_TYPE_FORECASTING",this.yN],["SLOT_TYPE_PLAYER_BYTES",this.BE],["SLOT_TYPE_PLAYBACK_TRACKING",this.ZR],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",
this.ZR],["SLOT_TYPE_IN_PLAYER",this.CS],["SLOT_TYPE_PLAYER_UNDERLAY",this.mU]])};this.listeners=[q.get()];this.BC={QS:this.QS,H6:this.WG.get(),Vz:this.tJ.get(),uQ:this.F2.get(),jl:this.jl,X0:f.get(),U1:this.ZB.get(),zd:this.kS,iW:q.get(),NT:this.Do.get()}};
gP9=function(R,F,n,V,r){g.G.call(this);var v=this,f=gn(function(){return new MV(v.WG)});
g.d(this,f);var z=gn(function(){return new NV(f)});
g.d(this,z);var q=gn(function(){return new y5});
g.d(this,q);var Q=gn(function(){return new T_(R)});
g.d(this,Q);var c=gn(function(){return new Eo(f,z,v.WG)});
g.d(this,c);var w=gn(function(){return new e2});
g.d(this,w);this.JX=gn(function(){return new wc(F)});
g.d(this,this.JX);this.tJ=gn(function(){return new Id(r)});
g.d(this,this.tJ);this.tX=gn(function(){return new l1(F)});
g.d(this,this.tX);this.wW=gn(function(){return new Np(F)});
g.d(this,this.wW);this.DO=gn(function(){return new Et(F)});
g.d(this,this.DO);this.hX=gn(function(){return new $O(F)});
g.d(this,this.hX);this.WG=gn(function(){return new Pi(F)});
g.d(this,this.WG);var L=gn(function(){return new cw(V)});
g.d(this,L);var S=gn(function(){return new rn(v.WG)});
g.d(this,S);var p=gn(function(){return new cG(f,c,z,v.WG,S,null,null,v.Zz,v.Yk)});
g.d(this,p);this.MP=gn(function(){return new pE(F)});
g.d(this,this.MP);this.ZB=gn(function(){return new iO});
g.d(this,this.ZB);this.Do=gn(function(){return new rc(F,w,v.WG)});
g.d(this,this.Do);var C=dh({Do:this.Do,WG:this.WG,Ol:S}),y=C.context;this.In=C.In;this.Sl=gn(function(){return new sS(F,v.WG,v.zH)});
this.F2=gn(function(){return new vw(F,v.Do)});
g.d(this,this.F2);this.Q7=gn(function(){return new AV});
g.d(this,this.Q7);this.cI=gn(function(){return new Zl(v.F2,F,v.WG)});
g.d(this,this.cI);this.zH=gn(function(){return new VC(F,q,v.cI,v.Do,v.In,v.WG)});
g.d(this,this.zH);this.eJ=gn(function(){return new xA(v.WG)});
g.d(this,this.eJ);this.bW=new aY(Aq,ab,function(B,O,K,M){return b8(z.get(),B,O,K,M)},Q,c,z,S,this.WG,this.Do);
g.d(this,this.bW);this.jl=new CB(Q,p,n,R,this.Do,this.F2,this.tX);g.d(this,this.jl);var u=new Mp(F,this.jl,this.F2,this.Do,this.Sl);this.Fc=gn(function(){return u});
this.Bv=u;this.Zz=new LB(Q,c,this.Fc,this.Sl,this.F2,this.WG,this.zH);g.d(this,this.Zz);this.YS=new oY(Q,c,this.wW,this.Fc,y);g.d(this,this.YS);this.QS=new Dq(this.WG,Q,c,p,this.Do,this.YS,n,this.DO);g.d(this,this.QS);this.f6=gn(function(){return new ny(L,z,S,v.WG,v.zH,v.F2)});
g.d(this,this.f6);this.ou=gn(function(){return new Vd});
g.d(this,this.ou);this.kS=new BG(R,this.JX,this.WG);g.d(this,this.kS);this.LC=new m1(R);g.d(this,this.LC);this.To=new gM(R);g.d(this,this.To);this.b_=new IY(R,this.Fc,y);g.d(this,this.b_);this.Iu=new KB(R,this.wW,this.F2,this.Do);g.d(this,this.Iu);this.pk=new iD(R);g.d(this,this.pk);this.KW=new xE(R);g.d(this,this.KW);this.sL=new G_(R);g.d(this,this.sL);this.SB=gn(function(){return new XZ(F)});
g.d(this,this.SB);this.P_=new dM(R);g.d(this,this.P_);this.Yk=new kE(R,this.Sl,this.F2,this.zH,this.Fc,this.Zz);g.d(this,this.Yk);this.yS=gn(function(){return new HG});
g.d(this,this.yS);this.Zs=gn(function(){return new hq(v.F2)});
g.d(this,this.Zs);this.xY=gn(function(){return new Ja(v.QS,Q,f)});
g.d(this,this.xY);this.yN=gn(function(){return new My(v.WG,v.zH,v.pk,v.cI)});
g.d(this,this.yN);this.CS=gn(function(){return new DTN(v.JX,v.F2,v.zH,q,v.cI,v.To,v.sL,v.tJ,v.WG,n)});
g.d(this,this.CS);this.BE=gn(function(){return new sk(R,v.P_,v.pk,v.zH,v.cI,v.eJ,v.DO,v.Do,v.F2,v.Q7,v.wW,v.tX,v.hX,v.tJ,v.MP,v.WG,v.SB,y)});
g.d(this,this.BE);this.kR=new QC(R,this.ZB,f);g.d(this,this.kR);this.l_={LR:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.QS],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Zz],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.bW],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.jl],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.YS]]),Nf:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.f6],["SLOT_TYPE_FORECASTING",this.ou],["SLOT_TYPE_IN_PLAYER",this.ou],
["SLOT_TYPE_PLAYER_BYTES",this.ou]]),FW:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.kS],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.LC],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.LC],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.LC],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.LC],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.LC],["TRIGGER_TYPE_SLOT_ID_EXITED",this.LC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.LC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.LC],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.LC],
["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.LC],["TRIGGER_TYPE_CLOSE_REQUESTED",this.To],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.b_],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Iu],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Iu],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Iu],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.pk],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.b_],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.KW],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",
this.sL],["TRIGGER_TYPE_AD_BREAK_STARTED",this.P_],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Yk],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Yk],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Yk],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Yk],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Yk]]),hn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.yS],["SLOT_TYPE_FORECASTING",this.yS],["SLOT_TYPE_IN_PLAYER",this.yS],["SLOT_TYPE_PLAYER_BYTES",this.Zs]]),
Gi:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xY],["SLOT_TYPE_FORECASTING",this.yN],["SLOT_TYPE_IN_PLAYER",this.CS],["SLOT_TYPE_PLAYER_BYTES",this.BE]])};this.listeners=[q.get()];this.BC={QS:this.QS,H6:this.WG.get(),Vz:this.tJ.get(),uQ:this.F2.get(),jl:this.jl,X0:f.get(),U1:this.ZB.get(),zd:this.kS,iW:q.get(),NT:this.Do.get()}};
O8V=function(R,F,n,V,r){g.G.call(this);var v=this,f=gn(function(){return new MV(v.WG)});
g.d(this,f);var z=gn(function(){return new NV(f)});
g.d(this,z);var q=gn(function(){return new y5});
g.d(this,q);var Q=gn(function(){return new T_(R)});
g.d(this,Q);var c=gn(function(){return new Eo(f,z,v.WG)});
g.d(this,c);var w=gn(function(){return new e2});
g.d(this,w);this.JX=gn(function(){return new wc(F)});
g.d(this,this.JX);this.tJ=gn(function(){return new Id(r)});
g.d(this,this.tJ);this.tX=gn(function(){return new l1(F)});
g.d(this,this.tX);this.wW=gn(function(){return new Np(F)});
g.d(this,this.wW);this.DO=gn(function(){return new Et(F)});
g.d(this,this.DO);this.hX=gn(function(){return new $O(F)});
g.d(this,this.hX);this.WG=gn(function(){return new Pi(F)});
g.d(this,this.WG);var L=gn(function(){return new cw(V)});
g.d(this,L);var S=gn(function(){return new rn(v.WG)});
g.d(this,S);var p=gn(function(){return new cG(f,c,z,v.WG,S,null,null,null,null)});
g.d(this,p);this.MP=gn(function(){return new pE(F)});
g.d(this,this.MP);this.Do=gn(function(){return new rc(F,w,v.WG)});
g.d(this,this.Do);var C=dh({Do:this.Do,WG:this.WG,Ol:S}),y=C.context;this.In=C.In;this.F2=gn(function(){return new vw(F,v.Do)});
g.d(this,this.F2);this.Q7=gn(function(){return new AV});
g.d(this,this.Q7);this.cI=gn(function(){return new Zl(v.F2,F,v.WG)});
g.d(this,this.cI);this.zH=gn(function(){return new VC(F,q,v.cI,v.Do,v.In,v.WG)});
g.d(this,this.zH);this.eJ=gn(function(){return new xA(v.WG)});
g.d(this,this.eJ);this.bW=new aY(Aq,ab,function(B,O,K,M){return b8(z.get(),B,O,K,M)},Q,c,z,S,this.WG,this.Do);
g.d(this,this.bW);this.jl=new CB(Q,p,n,R,this.Do,this.F2,this.tX);g.d(this,this.jl);var u=new Mp(F,this.jl,this.F2,this.Do);this.Fc=gn(function(){return u});
this.Bv=u;this.YS=new oY(Q,c,this.wW,this.Fc,y);g.d(this,this.YS);this.QS=new Dq(this.WG,Q,c,p,this.Do,this.YS,n,this.DO);g.d(this,this.QS);this.f6=gn(function(){return new ny(L,z,S,v.WG,v.zH,v.F2)});
g.d(this,this.f6);this.ou=gn(function(){return new Vd});
g.d(this,this.ou);this.kS=new BG(R,this.JX,this.WG);g.d(this,this.kS);this.LC=new m1(R);g.d(this,this.LC);this.b_=new IY(R,this.Fc,y);g.d(this,this.b_);this.Iu=new KB(R,this.wW,this.F2,this.Do);g.d(this,this.Iu);this.pk=new iD(R);g.d(this,this.pk);this.KW=new xE(R);g.d(this,this.KW);this.SB=gn(function(){return new XZ(F)});
g.d(this,this.SB);this.P_=new dM(R);g.d(this,this.P_);this.yS=gn(function(){return new HG});
g.d(this,this.yS);this.Zs=gn(function(){return new hq(v.F2)});
g.d(this,this.Zs);this.xY=gn(function(){return new Ja(v.QS,Q,f)});
g.d(this,this.xY);this.yN=gn(function(){return new My(v.WG,v.zH,v.pk,v.cI)});
g.d(this,this.yN);this.r9=gn(function(){return new cnN(v.JX,v.F2,v.zH,q,n,v.WG)});
g.d(this,this.r9);this.BE=gn(function(){return new sk(R,v.P_,v.pk,v.zH,v.cI,v.eJ,v.DO,v.Do,v.F2,v.Q7,v.wW,v.tX,v.hX,v.tJ,v.MP,v.WG,v.SB,y)});
g.d(this,this.BE);this.l_={LR:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.QS],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.bW],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.jl],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.YS]]),Nf:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.f6],["SLOT_TYPE_FORECASTING",this.ou],["SLOT_TYPE_IN_PLAYER",this.ou],["SLOT_TYPE_PLAYER_BYTES",this.ou]]),FW:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.kS],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.LC],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.LC],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.LC],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.LC],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.LC],["TRIGGER_TYPE_SLOT_ID_EXITED",this.LC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.LC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.LC],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.LC],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.b_],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Iu],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Iu],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.pk],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.b_],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.KW],["TRIGGER_TYPE_AD_BREAK_STARTED",this.P_]]),hn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.yS],["SLOT_TYPE_ABOVE_FEED",this.yS],["SLOT_TYPE_FORECASTING",this.yS],["SLOT_TYPE_IN_PLAYER",this.yS],["SLOT_TYPE_PLAYER_BYTES",this.Zs]]),Gi:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xY],["SLOT_TYPE_FORECASTING",this.yN],["SLOT_TYPE_IN_PLAYER",
this.r9],["SLOT_TYPE_PLAYER_BYTES",this.BE]])};this.listeners=[q.get()];this.BC={QS:this.QS,H6:this.WG.get(),Vz:this.tJ.get(),uQ:this.F2.get(),jl:this.jl,X0:f.get(),U1:null,zd:this.kS,iW:q.get(),NT:this.Do.get()}};
Icv=function(R,F,n,V,r){g.G.call(this);var v=this,f=gn(function(){return new MV(v.WG)});
g.d(this,f);var z=gn(function(){return new NV(f)});
g.d(this,z);var q=gn(function(){return new y5});
g.d(this,q);var Q=gn(function(){return new T_(R)});
g.d(this,Q);var c=gn(function(){return new Eo(f,z,v.WG)});
g.d(this,c);var w=gn(function(){return new e2});
g.d(this,w);this.SU=gn(function(){return new B0f(F)});
g.d(this,this.SU);this.JX=gn(function(){return new wc(F)});
g.d(this,this.JX);this.tJ=gn(function(){return new Id(r)});
g.d(this,this.tJ);this.tX=gn(function(){return new l1(F)});
g.d(this,this.tX);this.wW=gn(function(){return new Np(F)});
g.d(this,this.wW);this.DO=gn(function(){return new Et(F)});
g.d(this,this.DO);this.hX=gn(function(){return new $O(F)});
g.d(this,this.hX);this.WG=gn(function(){return new Pi(F)});
g.d(this,this.WG);var L=gn(function(){return new cw(V)});
g.d(this,L);var S=gn(function(){return new rn(v.WG)});
g.d(this,S);var p=gn(function(){return new cG(f,c,z,v.WG,S,null,null,null,null)});
g.d(this,p);this.MP=gn(function(){return new pE(F)});
g.d(this,this.MP);this.Do=gn(function(){return new rc(F,w,v.WG)});
g.d(this,this.Do);var C=dh({Do:this.Do,WG:this.WG,Ol:S}),y=C.context;this.In=C.In;this.F2=gn(function(){return new vw(F,v.Do)});
g.d(this,this.F2);this.Q7=gn(function(){return new AV});
g.d(this,this.Q7);this.cI=gn(function(){return new Zl(v.F2,F,v.WG)});
g.d(this,this.cI);this.zH=gn(function(){return new VC(F,q,v.cI,v.Do,v.In,v.WG)});
g.d(this,this.zH);this.eJ=gn(function(){return new xA(v.WG)});
g.d(this,this.eJ);this.bW=new aY(TWN,ab,function(B,O,K,M){return dI9(z.get(),B,O,K,M)},Q,c,z,S,this.WG,this.Do);
g.d(this,this.bW);this.jl=new CB(Q,p,n,R,this.Do,this.F2,this.tX);g.d(this,this.jl);var u=new Mp(F,this.jl,this.F2,this.Do);this.Fc=gn(function(){return u});
this.Bv=u;this.YS=new oY(Q,c,this.wW,this.Fc,y);g.d(this,this.YS);this.QS=new Dq(this.WG,Q,c,p,this.Do,this.YS,n,this.DO);g.d(this,this.QS);this.f6=gn(function(){return new ny(L,z,S,v.WG,v.zH,v.F2)});
g.d(this,this.f6);this.ou=gn(function(){return new Vd});
g.d(this,this.ou);this.kS=new BG(R,this.JX,this.WG);g.d(this,this.kS);this.LC=new m1(R);g.d(this,this.LC);this.b_=new IY(R,this.Fc,y);g.d(this,this.b_);this.Iu=new KB(R,this.wW,this.F2,this.Do);g.d(this,this.Iu);this.pk=new iD(R);g.d(this,this.pk);this.KW=new xE(R);g.d(this,this.KW);this.SB=gn(function(){return new XZ(F)});
g.d(this,this.SB);this.P_=new dM(R);g.d(this,this.P_);this.yS=gn(function(){return new HG});
g.d(this,this.yS);this.Zs=gn(function(){return new hq(v.F2)});
g.d(this,this.Zs);this.xY=gn(function(){return new Ja(v.QS,Q,f)});
g.d(this,this.xY);this.yN=gn(function(){return new My(v.WG,v.zH,v.pk,v.cI)});
g.d(this,this.yN);this.BE=gn(function(){return new sk(R,v.P_,v.pk,v.zH,v.cI,v.eJ,v.DO,v.Do,v.F2,v.Q7,v.wW,v.tX,v.hX,v.tJ,v.MP,v.WG,v.SB,y)});
g.d(this,this.BE);this.g7=gn(function(){return new xTe(v.JX,v.F2,v.zH,q,v.SU,n,v.Do)});
g.d(this,this.g7);this.l_={LR:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.QS],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.bW],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.jl],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.YS]]),Nf:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.f6],["SLOT_TYPE_FORECASTING",this.ou],["SLOT_TYPE_IN_PLAYER",this.ou],["SLOT_TYPE_PLAYER_BYTES",this.ou]]),FW:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.kS],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.LC],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.LC],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.LC],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.LC],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.LC],["TRIGGER_TYPE_SLOT_ID_EXITED",this.LC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.LC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.LC],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.LC],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.b_],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Iu],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Iu],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.pk],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.b_],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.KW],["TRIGGER_TYPE_AD_BREAK_STARTED",this.P_]]),hn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.yS],["SLOT_TYPE_FORECASTING",this.yS],["SLOT_TYPE_IN_PLAYER",this.yS],["SLOT_TYPE_PLAYER_BYTES",this.Zs]]),Gi:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xY],["SLOT_TYPE_FORECASTING",this.yN],["SLOT_TYPE_IN_PLAYER",this.g7],["SLOT_TYPE_PLAYER_BYTES",
this.BE]])};this.listeners=[q.get()];this.BC={QS:this.QS,H6:this.WG.get(),Vz:this.tJ.get(),uQ:this.F2.get(),jl:this.jl,X0:f.get(),U1:null,zd:this.kS,iW:q.get(),NT:this.Do.get()}};
Ksk=function(R,F,n,V,r){g.G.call(this);var v=this,f=gn(function(){return new MV(v.WG)});
g.d(this,f);var z=gn(function(){return new NV(f)});
g.d(this,z);var q=gn(function(){return new y5});
g.d(this,q);var Q=gn(function(){return new T_(R)});
g.d(this,Q);var c=gn(function(){return new Eo(f,z,v.WG)});
g.d(this,c);var w=gn(function(){return new e2});
g.d(this,w);this.SU=gn(function(){return new B0f(F)});
g.d(this,this.SU);this.JX=gn(function(){return new wc(F)});
g.d(this,this.JX);this.tJ=gn(function(){return new Id(r)});
g.d(this,this.tJ);this.tX=gn(function(){return new l1(F)});
g.d(this,this.tX);this.wW=gn(function(){return new Np(F)});
g.d(this,this.wW);this.DO=gn(function(){return new Et(F)});
g.d(this,this.DO);this.hX=gn(function(){return new $O(F)});
g.d(this,this.hX);this.WG=gn(function(){return new Pi(F)});
g.d(this,this.WG);var L=gn(function(){return new cw(V)});
g.d(this,L);var S=gn(function(){return new rn(v.WG)});
g.d(this,S);this.MP=gn(function(){return new pE(F)});
g.d(this,this.MP);this.Do=gn(function(){return new rc(F,w,v.WG)});
g.d(this,this.Do);var p=dh({Do:this.Do,WG:this.WG,Ol:S}),C=p.context;this.In=p.In;this.Sl=gn(function(){return new sS(F,v.WG,v.zH)});
g.d(this,this.Sl);this.SB=gn(function(){return new XZ(F)});
g.d(this,this.SB);this.F2=gn(function(){return new vw(F,v.Do)});
g.d(this,this.F2);this.Q7=gn(function(){return new AV});
g.d(this,this.Q7);p=gn(function(){return new cG(f,c,z,v.WG,S,null,v.F2,v.Zz,v.Yk,3)});
g.d(this,p);this.eJ=gn(function(){return new xA(v.WG)});
this.cI=gn(function(){return new Zl(v.F2,F,v.WG)});
g.d(this,this.cI);this.zH=gn(function(){return new VC(F,q,v.cI,v.Do,v.In,v.WG)});
g.d(this,this.zH);this.jl=new CB(Q,p,n,R,this.Do,this.F2,this.tX);g.d(this,this.jl);var y=new Mp(F,this.jl,this.F2,this.Do,this.Sl);this.Fc=gn(function(){return y});
this.Bv=y;this.bW=new aY(o89,ab,function(u,B,O,K){return dI9(z.get(),u,B,O,K)},Q,c,z,S,this.WG,this.Do);
g.d(this,this.bW);this.Zz=new LB(Q,c,this.Fc,this.Sl,this.F2,this.WG,this.zH,this.SB);g.d(this,this.Zz);this.YS=new oY(Q,c,this.wW,this.Fc,C);g.d(this,this.YS);this.QS=new Dq(this.WG,Q,c,p,this.Do,this.YS,n,this.DO);g.d(this,this.QS);this.f6=gn(function(){return new ny(L,z,S,v.WG,v.zH,v.F2,v.SB)});
g.d(this,this.f6);this.ou=gn(function(){return new Vd});
g.d(this,this.ou);this.kS=new BG(R,this.JX,this.WG);g.d(this,this.kS);this.LC=new m1(R);g.d(this,this.LC);this.b_=new IY(R,this.Fc,C);g.d(this,this.b_);this.Iu=new KB(R,this.wW,this.F2,this.Do);g.d(this,this.Iu);this.iK=new Dy(R,this.Do);g.d(this,this.iK);this.Yk=new kE(R,this.Sl,this.F2,this.zH,this.Fc,this.Zz);g.d(this,this.Yk);this.pk=new iD(R);g.d(this,this.pk);this.KW=new xE(R);g.d(this,this.KW);this.P_=new dM(R);g.d(this,this.P_);this.yS=gn(function(){return new HG});
g.d(this,this.yS);this.Zs=gn(function(){return new hq(v.F2)});
g.d(this,this.Zs);this.xY=gn(function(){return new Ja(v.QS,Q,f)});
g.d(this,this.xY);this.yN=gn(function(){return new My(v.WG,v.zH,v.pk,v.cI)});
g.d(this,this.yN);this.BE=gn(function(){return new Lf(R,v.P_,v.pk,v.Do,v.SB,v.F2,v.Q7,v.zH,w,v.Sl,v.cI,v.eJ,v.DO,v.wW,v.tX,v.hX,v.tJ,v.MP,v.WG,q,C)});
g.d(this,this.BE);this.CS=gn(function(){return new kfR(v.JX,v.F2,v.zH,q,v.SU,n,v.WG,v.Do)});
g.d(this,this.CS);this.l_={LR:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.QS],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Zz],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.bW],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.jl],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.YS]]),Nf:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.f6],["SLOT_TYPE_FORECASTING",this.ou],["SLOT_TYPE_IN_PLAYER",this.ou],["SLOT_TYPE_PLAYER_BYTES",this.ou]]),FW:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
this.kS],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.LC],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.LC],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.LC],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.LC],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.LC],["TRIGGER_TYPE_SLOT_ID_EXITED",this.LC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.LC],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.LC],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.LC],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.b_],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
this.Iu],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Iu],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.iK],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.iK],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.pk],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.b_],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.KW],["TRIGGER_TYPE_AD_BREAK_STARTED",this.P_],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Yk],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",
this.Yk],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Yk],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Yk],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Yk]]),hn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.yS],["SLOT_TYPE_FORECASTING",this.yS],["SLOT_TYPE_IN_PLAYER",this.yS],["SLOT_TYPE_PLAYER_BYTES",this.Zs]]),Gi:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xY],["SLOT_TYPE_FORECASTING",this.yN],["SLOT_TYPE_PLAYER_BYTES",this.BE],["SLOT_TYPE_IN_PLAYER",this.CS]])};this.listeners=[q.get()];
this.BC={QS:this.QS,H6:this.WG.get(),Vz:this.tJ.get(),uQ:this.F2.get(),jl:this.jl,X0:f.get(),U1:null,zd:this.kS,iW:q.get(),NT:this.Do.get()}};
i8E=function(R,F,n,V){function r(){return v.U}
g.G.call(this);var v=this;R.D().experiments.GH("html5_dispose_of_manager_before_dependency")?(this.T=DoN(r,R,F,n,V),this.U=(new OQ(this.T)).N(),g.d(this,this.U),g.d(this,this.T)):(this.T=DoN(r,R,F,n,V),g.d(this,this.T),this.U=(new OQ(this.T)).N(),g.d(this,this.U))};
CE=function(R){return R.T.BC};
DoN=function(R,F,n,V,r){try{var v=F.D();if(g.Xk(v))var f=new moJ(R,F,n,V,r);else if(g.C9(v))f=new gP9(R,F,n,V,r);else if(qA(v))f=new O8V(R,F,n,V,r);else if(g.Dz(v))f=new Icv(R,F,n,V,r);else if(g.Vw(v))f=new Ksk(R,F,n,V,r);else throw new TypeError("Unknown web interface");return f}catch(z){return f=F.D(),Q2("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:f.T.cplatform,interface:f.T.c,KE2:f.T.cver,FEG:f.T.ctheme,lEH:f.T.cplayer,ynX:f.playerStyle}),new T0E(R,F,n,V,r)}};
xoI=function(R){MB.call(this,R)};
kD6=function(R,F,n,V,r){e8.call(this,R,{j:"div",Y:"ytp-ad-timed-pie-countdown-container",L:[{j:"svg",Y:"ytp-ad-timed-pie-countdown",S:{viewBox:"0 0 20 20"},L:[{j:"circle",Y:"ytp-ad-timed-pie-countdown-background",S:{r:"10",cx:"10",cy:"10"}},{j:"circle",Y:"ytp-ad-timed-pie-countdown-inner",S:{r:"5",cx:"10",cy:"10"}},{j:"circle",Y:"ytp-ad-timed-pie-countdown-outer",S:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",F,n,V,r);this.J=this.sZ("ytp-ad-timed-pie-countdown-container");this.N=this.sZ("ytp-ad-timed-pie-countdown-inner");
this.W=this.sZ("ytp-ad-timed-pie-countdown-outer");this.U=Math.ceil(2*Math.PI*5);this.hide()};
Y9I=function(R,F,n,V,r,v){w_.call(this,R,{j:"div",Y:"ytp-ad-action-interstitial",S:{tabindex:"0"},L:[{j:"div",Y:"ytp-ad-action-interstitial-background-container"},{j:"div",Y:"ytp-ad-action-interstitial-slot",L:[{j:"div",Y:"ytp-ad-action-interstitial-instream-info"},{j:"div",Y:"ytp-ad-action-interstitial-card",L:[{j:"div",Y:"ytp-ad-action-interstitial-image-container"},{j:"div",Y:"ytp-ad-action-interstitial-headline-container"},{j:"div",Y:"ytp-ad-action-interstitial-description-container"},{j:"div",
Y:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",F,n,V);this.hR=r;this.OI=v;this.navigationEndpoint=this.T=this.skipButton=this.U=this.actionButton=null;this.Y5=this.sZ("ytp-ad-action-interstitial-instream-info");this.bS=this.sZ("ytp-ad-action-interstitial-image-container");this.V=new Yt(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,"ytp-ad-action-interstitial-image");g.d(this,this.V);this.V.KH(this.bS);this.PG=this.sZ("ytp-ad-action-interstitial-headline-container");
this.W=new bs(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,"ytp-ad-action-interstitial-headline");g.d(this,this.W);this.W.KH(this.PG);this.J1=this.sZ("ytp-ad-action-interstitial-description-container");this.N=new bs(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,"ytp-ad-action-interstitial-description");g.d(this,this.N);this.N.KH(this.J1);this.h1=this.sZ("ytp-ad-action-interstitial-background-container");this.gX=new Yt(this.api,this.layoutId,this.interactionLoggingClientData,
this.Vz,"ytp-ad-action-interstitial-background",!0);g.d(this,this.gX);this.gX.KH(this.h1);this.SQ=this.sZ("ytp-ad-action-interstitial-action-button-container");this.slot=this.sZ("ytp-ad-action-interstitial-slot");this.zI=this.sZ("ytp-ad-action-interstitial-card");this.J=new Ow;g.d(this,this.J);this.hide()};
JkJ=function(R){var F=g.HI("html5-video-player");F&&g.ws(F,"ytp-ad-display-override",R)};
lce=function(R,F,n,V){w_.call(this,R,{j:"div",Y:"ytp-ad-overlay-slot",L:[{j:"div",Y:"ytp-ad-overlay-container"}]},"invideo-overlay",F,n,V);this.V=[];this.h1=this.PG=this.J=this.SQ=this.Y5=null;this.gX=!1;this.W=null;this.J1=0;R=this.sZ("ytp-ad-overlay-container");this.bS=new te(R,45E3,6E3,.3,.4);g.d(this,this.bS);this.N=GDk(this);g.d(this,this.N);this.N.KH(R);this.U=dok(this);g.d(this,this.U);this.U.KH(R);this.T=Mdf(this);g.d(this,this.T);this.T.KH(R);this.hide()};
GDk=function(R){var F=new g.c5({j:"div",Y:"ytp-ad-text-overlay",L:[{j:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{j:"div",Y:"ytp-ad-overlay-close-container",L:[{j:"button",Y:"ytp-ad-overlay-close-button",L:[g_(N0I)]}]},{j:"div",Y:"ytp-ad-overlay-title",cG:"{{title}}"},{j:"div",Y:"ytp-ad-overlay-desc",cG:"{{description}}"},{j:"div",BG:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],cG:"{{displayUrl}}"}]});R.C(F.sZ("ytp-ad-overlay-title"),"click",function(n){Tc(R,F.element,n)});
R.C(F.sZ("ytp-ad-overlay-link"),"click",function(n){Tc(R,F.element,n)});
R.C(F.sZ("ytp-ad-overlay-close-container"),"click",R.UG);F.hide();return F};
dok=function(R){var F=new g.c5({j:"div",BG:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],L:[{j:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{j:"div",Y:"ytp-ad-overlay-close-container",L:[{j:"button",Y:"ytp-ad-overlay-close-button",L:[g_(N0I)]}]},{j:"div",Y:"ytp-ad-overlay-text-image",L:[{j:"img",S:{src:"{{imageUrl}}"}}]},{j:"div",Y:"ytp-ad-overlay-title",cG:"{{title}}"},{j:"div",Y:"ytp-ad-overlay-desc",cG:"{{description}}"},{j:"div",BG:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
cG:"{{displayUrl}}"}]});R.C(F.sZ("ytp-ad-overlay-title"),"click",function(n){Tc(R,F.element,n)});
R.C(F.sZ("ytp-ad-overlay-link"),"click",function(n){Tc(R,F.element,n)});
R.C(F.sZ("ytp-ad-overlay-close-container"),"click",R.UG);R.C(F.sZ("ytp-ad-overlay-text-image"),"click",R.p_X);F.hide();return F};
Mdf=function(R){var F=new g.c5({j:"div",Y:"ytp-ad-image-overlay",L:[{j:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{j:"div",Y:"ytp-ad-overlay-close-container",L:[{j:"button",Y:"ytp-ad-overlay-close-button",L:[g_(N0I)]}]},{j:"div",Y:"ytp-ad-overlay-image",L:[{j:"img",S:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});R.C(F.sZ("ytp-ad-overlay-image"),"click",function(n){Tc(R,F.element,n)});
R.C(F.sZ("ytp-ad-overlay-close-container"),"click",R.UG);F.hide();return F};
EPJ=function(R,F){if(F){var n=g.A(F,g6)||null;n==null?g.uX(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(F=g.HI("video-ads ytp-ad-module")||null,F==null?g.uX(Error("Could not locate the root ads container element to attach the ad info dialog.")):(R.PG=new g.c5({j:"div",Y:"ytp-ad-overlay-ad-info-dialog-container"}),g.d(R,R.PG),R.PG.KH(F),F=new P5(R.api,R.layoutId,R.interactionLoggingClientData,R.Vz,R.PG.element,!1),g.d(R,F),F.init(r_("ad-info-hover-text-button"),n,R.macros),
R.W?(F.KH(R.W,0),F.subscribe("f",R.m5z,R),F.subscribe("e",R.Lw,R),R.C(R.W,"click",R.NW2),R.C(g.HI("ytp-ad-button",F.element),"click",function(){var V;if(g.A((V=g.A(n.button,Iw))==null?void 0:V.serviceEndpoint,gh_))R.gX=R.api.getPlayerState(1)===2,R.api.pauseVideo();else R.api.onAdUxClicked("ad-info-hover-text-button",R.layoutId)}),R.h1=F):g.uX(Error("Ad info button container within overlay ad was not present."))))}else g.mq(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
PuJ=function(R,F){if($oW(R,ob)||R.api.isMinimized())return!1;var n=S8(F.title),V=S8(F.description);if(g.Re(n)||g.Re(V))return!1;R.createServerVe(R.N.element,F.trackingParams||null);R.N.updateValue("title",S8(F.title));R.N.updateValue("description",S8(F.description));R.N.updateValue("displayUrl",S8(F.displayUrl));F.navigationEndpoint&&g.qN(R.V,F.navigationEndpoint);R.N.show();R.bS.start();R.logVisibility(R.N.element,!0);R.C(R.N.element,"mouseover",function(){R.J1++});
return!0};
b8k=function(R,F){if($oW(R,ob)||R.api.isMinimized())return!1;var n=S8(F.title),V=S8(F.description);if(g.Re(n)||g.Re(V))return!1;R.createServerVe(R.U.element,F.trackingParams||null);R.U.updateValue("title",S8(F.title));R.U.updateValue("description",S8(F.description));R.U.updateValue("displayUrl",S8(F.displayUrl));R.U.updateValue("imageUrl",JjN(F.image));F.navigationEndpoint&&g.qN(R.V,F.navigationEndpoint);R.SQ=F.imageNavigationEndpoint||null;R.U.show();R.bS.start();R.logVisibility(R.U.element,!0);
R.C(R.U.element,"mouseover",function(){R.J1++});
return!0};
Z8N=function(R,F){if(R.api.isMinimized())return!1;var n=GgV(F.image),V=n;n.width<ob.width&&(V=ob);if(n.width===0||n.height===0||$oW(R,V))return!1;R.createServerVe(R.T.element,F.trackingParams||null);R.T.updateValue("imageUrl",JjN(F.image));R.T.updateValue("width",n.width);R.T.updateValue("height",n.height);F.navigationEndpoint&&g.qN(R.V,F.navigationEndpoint);g.fY(R.T.sZ("ytp-ad-image-overlay"),"max-width",n.width+"px");R.T.show();R.logVisibility(R.T.element,!0);R.C(R.T.element,"mouseover",function(){R.J1++;
R.api.Qp("invideo-overlay",R.layoutId)});
R.C(R.T.element,"mouseout",function(){R.api.AS("invideo-overlay",R.layoutId)});
return!0};
$oW=function(R,F){var n=R.api.fH().p5(),V=R.api.Rs(!0,!1);return(F=aU(n,n.height-(V.height+V.top),F))?(R.Y5&&F&&(n=g.Di(R.macros),n.ERRORCODE=F.DU.toString(),n.ERROR_MSG=F.errorMessage,R.layoutId?D7(R.Vz,R.Y5,R.layoutId,n):g.uX(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
Tc=function(R,F,n){var V=g.Di(R.macros),r=g.A_(F);V.AW={toString:function(){return r.width.toString()}};
V.AH={toString:function(){return r.height.toString()}};
var v=g.pY(n,F).floor();V.I_X={toString:function(){return v.x.toString()}};
V.NX={toString:function(){return v.x.toString()}};
V.I_Y={toString:function(){return v.y.toString()}};
V.NY={toString:function(){return v.y.toString()}};
V.NM={toString:function(){return R.J1.toString()}};
F=g.m(R.V);for(n=F.next();!n.done;n=F.next())n=n.value,R.layoutId?D7(R.Vz,n,R.layoutId,V):g.uX(Error("Missing layoutId for invideo_overlay_ad."));R.api.pauseVideo()};
emI=function(R,F){R=R.api.getRootNode();g.ws(R,"ytp-ad-overlay-open",F);g.ws(R,"ytp-ad-overlay-closed",!F)};
R69=function(R,F,n,V,r){e8.call(this,R,{j:"div",Y:"ytp-ad-message-overlay",L:[{j:"div",Y:"ytp-ad-message-slot"}]},"ad-message",F,n,V,r);var v=this;this.W=-1;this.N=0;this.J1=!1;this.PG=this.sZ("ytp-ad-message-slot");this.U=new g.c5({j:"span",Y:"ytp-ad-message-container"});this.U.KH(this.PG);g.d(this,this.U);this.messageText=new bs(this.api,this.layoutId,this.interactionLoggingClientData,V,"ytp-ad-message-text");g.d(this,this.messageText);this.messageText.KH(this.U.element);this.J=new g.n5(this.U,
400,!1,100,function(){v.hide()});
g.d(this,this.J);this.hide()};
Fv9=function(R,F){R=R.api.getRootNode();g.ws(R,"ytp-ad-overlay-open",F);g.ws(R,"ytp-ad-overlay-closed",!F)};
nXJ=function(R,F,n,V){w_.call(this,R,{j:"div",Y:"ytp-ad-underlay-companion",L:[{j:"div",Y:"ytp-ad-underlay-side-container",L:[{j:"div",Y:"ytp-ad-underlay-image-container"},{j:"div",Y:"ytp-ad-underlay-description-container"},{j:"div",Y:"ytp-ad-underlay-headline-container"},{j:"div",Y:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",F,n,V);this.actionButton=null;this.PG=this.sZ("ytp-ad-underlay-image-container");this.N=new Yt(this.api,this.layoutId,this.interactionLoggingClientData,
this.Vz,"ytp-ad-underlay-image");g.d(this,this.N);this.N.KH(this.PG);this.J1=this.sZ("ytp-ad-underlay-headline-container");this.U=new bs(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,"ytp-ad-underlay-headline");g.d(this,this.U);this.U.KH(this.J1);this.V=this.sZ("ytp-ad-underlay-description-container");this.J=new bs(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,"ytp-ad-underlay-description");g.d(this,this.J);this.J.KH(this.V);this.W=this.sZ("ytp-ad-underlay-action-button-container");
this.T=this.sZ("ytp-ad-underlay-side-container");this.hide()};
VY9=function(R){var F=g.HI("html5-video-player");F&&g.ws(F,"ytp-ad-display-override",R)};
yC=function(R,F,n,V,r,v){v=v===void 0?function(){}:v;
w_.call(this,R,{j:"div",Y:"ytp-ad-survey-answer"},"survey-answer",F,n,V);this.index=r;this.onSelected=v;this.T=null;this.toggledLoggingParams="";this.answer=this.sZ("ytp-ad-survey-answer");this.hide()};
rlN=function(R,F,n,V){w_.call(this,R,{j:"div",Y:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",F,n,V);this.button=null;this.T=this.sZ("ytp-ad-survey-none-of-the-above");this.hide()};
US=function(R,F,n,V){var r=["ytp-ad-survey-submit-button"];r.push("ytp-ad-survey-submit-button-rounded");Oa.call(this,R,F,n,V,r,"survey-submit")};
jJ=function(R,F,n,V,r){w_.call(this,R,{j:"div",Y:"ytp-ad-survey-player-overlay",L:[{j:"div",Y:"ytp-ad-survey-player-overlay-instream-info"},{j:"div",Y:"ytp-ad-survey-player-overlay-skip-preview-submit",L:[{j:"div",Y:"ytp-ad-survey-player-overlay-skip-or-preview"},{j:"div",Y:"ytp-ad-survey-player-overlay-submit"}]},{j:"div",Y:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",F,n,V);this.J=r;this.U=this.T=null;this.N=this.sZ("ytp-ad-survey-player-overlay-instream-info");
this.skipOrPreview=this.sZ("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.sZ("ytp-ad-survey-player-overlay-submit");g.d(this,this.J);this.hide()};
Hw=function(R,F,n,V,r,v){v=v===void 0?function(){}:v;
w_.call(this,R,{j:"div",Y:"ytp-ad-survey-question",L:[{j:"div",BG:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{j:"div",BG:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{j:"div",BG:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{j:"div",Y:"ytp-ad-survey-question-background"}]},r,F,n,V);this.PG=v;this.J=null;this.U=[];this.T=null;this.V=this.api.D().experiments.GH("a11y_h5_associate_survey_question");this.question=this.sZ("ytp-ad-survey-question");
this.bS=this.sZ("ytp-ad-survey-question-background");this.questionText=this.sZ("ytp-ad-survey-question-text");this.answers=this.sZ("ytp-ad-survey-answers");this.playerOverlay=this.sZ("ytp-ad-survey-question-player-overlay");this.N=Date.now()};
vXf=function(R,F){F=g.LG(F);g.kW(R.questionText,F);R.V&&R.questionText.setAttribute("id",r_("survey-question-text"))};
fpv=function(R,F,n,V){V=new yC(R.api,R.layoutId,R.interactionLoggingClientData,R.Vz,V,R.PG);V.KH(R.answers);V.init(r_("survey-answer"),F,n);R.V&&(F=R.questionText.getAttribute("id"),F!=null&&(V.T!==null?V.T.U.setAttribute("aria-describedby",F):V.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",F)));R.U.push(V)};
z6R=function(R,F){if(F){var n=F.background;n&&g.A(n,tYv)&&(n=(n=g.A(n,tYv).image)&&kt(n)||"",g.Re(n)?g.mq(Error("Found ThumbnailDetails without valid image URL")):g.fY(R.bS,"backgroundImage","url("+n+")"));if(F.durationMilliseconds==null||F.durationMilliseconds===void 0||F.durationMilliseconds===0)R=Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(F)),g.uX(R);else{R.N=g.J7();R.T=new C5(R.api,F.durationMilliseconds);g.d(R,R.T);if(R.T&&F.instreamAdPlayerOverlay&&g.A(F.instreamAdPlayerOverlay,
me))try{var V=new jJ(R.api,R.layoutId,R.interactionLoggingClientData,R.Vz,R.T);V.KH(R.playerOverlay);V.init(r_("survey-player-overlay"),g.A(F.instreamAdPlayerOverlay,me),R.macros);R.J=V;g.d(R,V);R.Kc()}catch(r){V=Error("ISAPOR had an error when initializing. Error: "+(r+" SurveyAdQuestionCommon: "+JSON.stringify(F))),g.uX(V)}else V=Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(F)),g.uX(V);R.T&&F.durationMilliseconds&&F.durationMilliseconds>0?(F=new It(R.api,R.T),
F.KH(R.playerOverlay),g.d(R,F)):(R=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(F)),g.uX(R))}}else g.uX(Error("addCommonComponents() needs to be called before starting countdown."))};
qN_=function(R){function F(n){return{toString:function(){return n()}}}
R.macros.SURVEY_LOCAL_TIME_EPOCH_S=F(function(){var n=new Date;return(Math.round(n.valueOf()/1E3)+-1*n.getTimezoneOffset()*60).toString()});
R.macros.SURVEY_ELAPSED_MS=F(function(){return(Date.now()-R.N).toString()})};
Qj_=function(R,F,n,V,r){Hw.call(this,R,F,n,V,"survey-question-multi-select");this.J1=r;this.noneOfTheAbove=null;this.submitEndpoints=[];this.W=null;this.hide()};
clf=function(R,F,n){R.noneOfTheAbove=new rlN(R.api,R.layoutId,R.interactionLoggingClientData,R.Vz);R.noneOfTheAbove.KH(R.answers);R.noneOfTheAbove.init(r_("survey-none-of-the-above"),F,n)};
SN9=function(R){R.U.forEach(function(F){F.T.toggleButton(!1)});
wZJ(R,!0)};
wZJ=function(R,F){var n=R.J;R=LvV(R);F=F===void 0?!1:F;n.T&&(R?n.T.hide():n.T.show(),F&&n.T instanceof p5&&!n.T.J&&JLR(n.T,!1));n.U&&(R?n.U.show():n.U.hide())};
LvV=function(R){return R.U.some(function(F){return F.T.isToggled()})||R.noneOfTheAbove.button.isToggled()};
hV=function(R,F,n,V,r){Hw.call(this,R,F,n,V,"survey-question-single-select",function(f){v.api.D().B("supports_multi_step_on_desktop")&&r([f])});
var v=this;this.hide()};
Ww=function(R,F,n,V){w_.call(this,R,{j:"div",Y:"ytp-ad-survey",L:[{j:"div",Y:"ytp-ad-survey-questions"}]},"survey",F,n,V);this.questions=[];this.U=[];this.conditioningRules=[];this.T=0;this.W=this.sZ("ytp-ad-survey-questions");this.api.D().B("fix_survey_color_contrast_on_destop")&&this.sZ("ytp-ad-survey").classList.add("color-contrast-fix");this.api.D().B("web_enable_speedmaster")&&this.sZ("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()};
XZ9=function(R,F){var n=R.U[F],V;(V=R.N)==null||V.dispose();g.A(n,BS)?sjI(R,g.A(n,BS),R.macros):g.A(n,u8)&&pZR(R,g.A(n,u8),R.macros);R.T=F};
sjI=function(R,F,n){var V=new hV(R.api,R.layoutId,R.interactionLoggingClientData,R.Vz,R.J.bind(R));V.KH(R.W);V.init(r_("survey-question-single-select"),F,n);R.api.D().B("supports_multi_step_on_desktop")?R.N=V:R.questions.push(V);g.d(R,V)};
pZR=function(R,F,n){var V=new Qj_(R.api,R.layoutId,R.interactionLoggingClientData,R.Vz,R.J.bind(R));V.KH(R.W);V.init(r_("survey-question-multi-select"),F,n);R.api.D().B("supports_multi_step_on_desktop")?R.N=V:R.questions.push(V);g.d(R,V)};
uz=function(R,F,n,V){w_.call(this,R,{j:"div",Y:"ytp-ad-survey-interstitial",L:[{j:"div",Y:"ytp-ad-survey-interstitial-contents",L:[{j:"div",Y:"ytp-ad-survey-interstitial-logo",L:[{j:"div",Y:"ytp-ad-survey-interstitial-logo-image"}]},{j:"div",Y:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",F,n,V);this.T=this.actionButton=null;this.interstitial=this.sZ("ytp-ad-survey-interstitial");this.U=this.sZ("ytp-ad-survey-interstitial-contents");this.text=this.sZ("ytp-ad-survey-interstitial-text");
this.logoImage=this.sZ("ytp-ad-survey-interstitial-logo-image");this.transition=new g.n5(this,500,!1,300);g.d(this,this.transition)};
Al_=function(R,F){F=F&&kt(F)||"";if(g.Re(F))g.mq(Error("Found ThumbnailDetails without valid image URL"));else{var n=R.style;R=R.style.cssText;var V=document.implementation.createHTMLDocument("").createElement("DIV");V.style.cssText=R;R=AHI(V.style);n.cssText=[R,'background-image:url("'+F+'");'].join("")}};
ap9=function(R){var F=g.HI("html5-video-player");F&&g.ws(F,"ytp-ad-display-override",R)};
Bw=function(R,F,n,V,r,v){v=v===void 0?0:v;e8.call(this,R,{j:"div",Y:"ytp-preview-ad",L:[{j:"div",Y:"ytp-preview-ad__text"}]},"preview-ad",F,n,V,r);var f=this;this.J1=v;this.U=0;this.J=-1;this.N=this.sZ("ytp-preview-ad__text");switch(this.J1){case 1:this.N.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.n5(this,400,!1,100,function(){f.hide()});
g.d(this,this.transition);this.hide()};
mB=function(R,F,n,V){w_.call(this,R,{j:"img",Y:"ytp-ad-avatar"},"ad-avatar",F,n,V);this.hide()};
Ccj=function(R){switch(R.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}};
OS=function(R,F,n,V,r,v){r=r===void 0?!1:r;v=v===void 0?!1:v;w_.call(this,R,{j:"button",Y:"ytp-ad-button-vm"},"ad-button",F,n,V);this.buttonText=this.buttonIcon=null;this.hide();this.T=r;this.U=v};
T4N=function(R,F,n,V,r){e8.call(this,R,{j:"div",BG:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],L:[{j:"div",Y:"ytp-ad-avatar-lockup-card__avatar_and_text_container",L:[{j:"div",Y:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",F,n,V,r);this.startMilliseconds=0;this.adAvatar=new mB(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz);g.d(this,this.adAvatar);DT(this.element,this.adAvatar.element,0);this.headline=new he(this.api,this.layoutId,
this.interactionLoggingClientData,this.Vz);g.d(this,this.headline);this.headline.KH(this.sZ("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new he(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz);g.d(this,this.description);this.description.KH(this.sZ("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new OS(this.api,
this.layoutId,this.interactionLoggingClientData,this.Vz);g.d(this,this.adButton);this.adButton.KH(this.element);this.hide()};
Ib=function(R,F,n,V){w_.call(this,R,{j:"button",Y:"ytp-skip-ad-button",L:[{j:"div",Y:"ytp-skip-ad-button__text"}]},"skip-button",F,n,V);var r=this;this.U=!1;this.J=this.sZ("ytp-skip-ad-button__text");this.transition=new g.n5(this,500,!1,100,function(){r.hide()});
g.d(this,this.transition);this.T=new te(this.element,15E3,5E3,.5,.5,!0);g.d(this,this.T);this.hide()};
oXj=function(R,F,n,V,r){e8.call(this,R,{j:"div",Y:"ytp-skip-ad"},"skip-ad",F,n,V,r);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.N=new Ib(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz);g.d(this,this.N);this.N.KH(this.element);this.hide()};
KE=function(R,F,n,V){w_.call(this,R,{j:"div",Y:"ytp-visit-advertiser-link"},"visit-advertiser-link",F,n,V);this.hide()};
Du=function(R,F,n,V,r){w_.call(this,R,{j:"div",Y:"ytp-ad-player-overlay-layout",L:[{j:"div",Y:"ytp-ad-player-overlay-layout__player-card-container"},{j:"div",Y:"ytp-ad-player-overlay-layout__ad-info-container"},{j:"div",Y:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{j:"div",Y:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",F,n,V);this.U=r;this.PG=this.sZ("ytp-ad-player-overlay-layout__player-card-container");this.T=this.sZ("ytp-ad-player-overlay-layout__ad-info-container");
this.V=this.sZ("ytp-ad-player-overlay-layout__skip-or-preview-container");this.J1=this.sZ("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()};
ylv=function(R,F,n,V){w_.call(this,R,{j:"div",Y:"ytp-ad-grid-card-text",L:[{j:"div",Y:"ytp-ad-grid-card-text__metadata",L:[{j:"div",Y:"ytp-ad-grid-card-text__metadata__headline"},{j:"div",Y:"ytp-ad-grid-card-text__metadata__description",L:[{j:"div",Y:"ytp-ad-grid-card-text__metadata__description__line"},{j:"div",Y:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{j:"div",Y:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",F,n,V);this.headline=new he(this.api,this.layoutId,this.interactionLoggingClientData,
this.Vz);g.d(this,this.headline);this.headline.KH(this.sZ("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new OS(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,!0);g.d(this,this.moreInfoButton);this.moreInfoButton.KH(this.sZ("ytp-ad-grid-card-text__button"))};
iz=function(R,F,n,V){w_.call(this,R,{j:"div",Y:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",F,n,V);this.T=[]};
xk=function(R,F,n,V,r,v,f){e8.call(this,R,v,f,F,n,V,r);this.playerProgressOffsetMs=0;this.U=!1};
Uhf=function(R){var F=g.HI("html5-video-player");F&&g.ws(F,"ytp-ad-display-override",R)};
jj9=function(R,F,n,V,r){xk.call(this,R,F,n,V,r,{j:"div",Y:"ytp-display-underlay-text-grid-cards",L:[{j:"div",Y:"ytp-display-underlay-text-grid-cards__content_container",L:[{j:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header",L:[{j:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{j:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{j:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"},
{j:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new iz(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz);g.d(this,this.adGridCardCollection);this.adGridCardCollection.KH(this.sZ("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new OS(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz);g.d(this,this.adButton);this.adButton.KH(this.sZ("ytp-display-underlay-text-grid-cards__content_container__ad_button"));
this.N=this.sZ("ytp-display-underlay-text-grid-cards__content_container");this.J=this.sZ("ytp-display-underlay-text-grid-cards__content_container__header")};
kk=function(R,F,n,V){w_.call(this,R,{j:"div",Y:"ytp-ad-details-line"},"ad-details-line",F,n,V);this.T=[];this.hide()};
Yk=function(R,F,n,V){w_.call(this,R,{j:"div",Y:"ytp-image-background",L:[{j:"img",Y:"ytp-image-background-image"}]},"image-background",F,n,V);this.hide()};
HXN=function(R,F,n,V,r){e8.call(this,R,{j:"svg",Y:"ytp-timed-pie-countdown",S:{viewBox:"0 0 20 20"},L:[{j:"circle",Y:"ytp-timed-pie-countdown__background",S:{r:"10",cx:"10",cy:"10"}},{j:"circle",Y:"ytp-timed-pie-countdown__inner",S:{r:"5",cx:"10",cy:"10"}},{j:"circle",Y:"ytp-timed-pie-countdown__outer",S:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",F,n,V,r);this.N=this.sZ("ytp-timed-pie-countdown__inner");this.U=Math.ceil(2*Math.PI*5);this.hide()};
JV=function(R,F,n,V){w_.call(this,R,{j:"div",Y:"ytp-video-interstitial-buttoned-centered-layout",S:{tabindex:"0"},L:[{j:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content",L:[{j:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{j:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",L:[{j:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{j:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"},
{j:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{j:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{j:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",F,n,V);this.U=null;this.J=this.sZ("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.N=new Ow;g.d(this,this.N);this.hide()};
h69=function(R){var F=g.HI("html5-video-player");F&&g.ws(F,"ytp-ad-display-override",R)};
Wve=function(R){if(!R.adAvatar||!g.A(R.adAvatar,Gc))return g.uX(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!R.headline)return g.uX(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!R.adBadge||!g.A(R.adBadge,dc))return g.uX(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!R.adButton||!g.A(R.adButton,Me))return g.uX(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!R.adInfoRenderer||
!g.A(R.adInfoRenderer,g6))return g.uX(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;R=R.durationMilliseconds||0;return typeof R!=="number"||R<=0?(g.uX(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+R)),!1):!0};
lz=function(R,F){F=F===void 0?2:F;g.fG.call(this);this.api=R;this.T=null;this.handler=new Ow(this);g.d(this,this.handler);this.U=GQk;this.handler.C(this.api,"presentingplayerstatechange",this.Gb);this.T=this.handler.C(this.api,"progresssync",this.M5);this.uG=F;this.uG===1&&this.M5()};
Ne=function(R,F,n){MB.call(this,R);this.api=R;this.Vz=F;this.components={};R=new g.N({j:"div",BG:["video-ads","ytp-ad-module"]});g.d(this,R);Nr&&g.z0(R.element,"ytp-ads-tiny-mode");this.J=new cj(R.element);g.d(this,this.J);g.RL(this.api,R.element,4);Zq(n)&&(n=new g.N({j:"div",BG:["ytp-ad-underlay"]}),g.d(this,n),this.U=new cj(n.element),g.d(this,this.U),g.RL(this.api,n.element,0));g.d(this,XcV())};
u2_=function(R,F){R=g.Om(R.components,F.id,null);R==null&&g.mq(Error("Component not found for element id: "+F.id));return R||null};
B4E=function(R){g.Lz.call(this,R);var F=this;this.U=null;this.created=!1;this.N=R.D().B("h5_use_refactored_get_ad_break")?new o9f(this.player):new JY(this.player);this.J=function(){if(F.U!=null)return F.U;var V=new uXk({zd:CE(F.T).zd,NT:CE(F.T).NT,K:F.player,H6:CE(F.T).H6,zH:F.T.T.zH,iW:CE(F.T).iW,hX:F.T.T.hX});F.U=V.R5;return F.U};
this.T=new i8E(this.player,this,this.N,this.J);g.d(this,this.T);var n=R.D();!AE(n)||g.Vw(n)||qA(n)||(g.d(this,new Ne(R,CE(this.T).Vz,CE(this.T).H6)),g.d(this,new xoI(R)))};
mhR=function(R){R.created!==R.loaded&&Q2("Created and loaded are out of sync")};
IpJ=function(R){g.Lz.prototype.load.call(R);var F=CE(R.T).H6;try{R.player.getRootNode().classList.add("ad-created")}catch(z){Q2(z instanceof Error?z:String(z))}var n=R.player.getVideoData({playerType:1}),V=n&&n.videoId||"",r=n&&n.getPlayerResponse()||{},v=(r&&r.adPlacements||[]).map(function(z){return z.adPlacementRenderer}),f=((r==null?void 0:r.adSlots)||[]).map(function(z){return g.A(z,WS)});
r=r.playerConfig&&r.playerConfig.daiConfig&&r.playerConfig.daiConfig.enableDai||!1;n&&n.Zt();F=gXE(v,f,F,CE(R.T).X0);v=n&&n.clientPlaybackNonce||"";n=n&&n.xa||!1;f=1E3*R.player.getDuration(1);OXN(R);R.T.T.Bv.vW(v,f,n,F.So,F.zJ,F.So,r,V)};
OXN=function(R){var F,n;if(n=(F=R.player.getVideoData({playerType:1}))==null||!F.xa)F=R.player.D(),n=AE(F)&&!g.Xi(F)&&F.playerStyle==="desktop-polymer";n&&(R=R.player.getInternalApi(),R.addEventListener("updateKevlarOrC3Companion",eX_),R.addEventListener("updateEngagementPanelAction",R8J),R.addEventListener("changeEngagementPanelVisibility",F2_),window.addEventListener("yt-navigate-start",Va9))};
ES=function(R,F){F===R.ea&&(R.ea=void 0)};
Kv9=function(R){var F=CE(R.T).jl,n=F.J().Ak("SLOT_TYPE_PLAYER_BYTES",1);F=fb(F.Do.get(),1).clientPlaybackNonce;var V=!1;n=g.m(n);for(var r=n.next();!r.done;r=n.next()){r=r.value;var v=r.slotType==="SLOT_TYPE_PLAYER_BYTES"&&r.slotEntryTrigger instanceof Wg?r.slotEntryTrigger.TR:void 0;v&&v===F&&(V&&Q2("More than 1 preroll playerBytes slot detected",r),V=!0)}V||CE(R.T).uQ.Xy()};
Dh9=function(R){var F="";R=g.m(CE(R.T).iW.cW.keys());for(var n=R.next();!n.done;n=R.next()){n=n.value;if(n.slotType==="SLOT_TYPE_PLAYER_BYTES"&&n.qq==="core")return!0;F+=n.slotType+" "}Math.random()<.01&&Q2("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:F});return!1};
iXI=function(R){R=g.m(CE(R.T).iW.cW.values());for(var F=R.next();!F.done;F=R.next())if(F.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1};
TNJ=function(R,F,n,V,r,v,f){n=n===void 0?[]:n;V=V===void 0?"":V;r=r===void 0?"":r;var z=CE(R.T).H6,q=R.player.getVideoData({playerType:1});q&&q.getPlayerResponse();q&&q.Zt();n=gXE(F,n,z,CE(R.T).X0);HV9(CE(R.T).QS,V,n.So,n.zJ,F,r,v,f)};
gXE=function(R,F,n,V){F={So:[],zJ:F};R=g.m(R);for(var r=R.next();!r.done;r=R.next())if((r=r.value)&&r.renderer!=null){var v=r.renderer;if(!n.K.D().B("html5_enable_vod_lasr_with_notify_pacf")){var f=void 0,z=void 0,q=void 0,Q=void 0,c=V;g.A((Q=v.sandwichedLinearAdRenderer)==null?void 0:Q.adVideoStart,Q5)?(f=g.A((q=v.sandwichedLinearAdRenderer)==null?void 0:q.adVideoStart,Q5),f=kav(f,c),g.iX(v.sandwichedLinearAdRenderer.adVideoStart,Q5,f)):g.A((z=v.linearAdSequenceRenderer)==null?void 0:z.adStart,Q5)&&
(q=g.A((f=v.linearAdSequenceRenderer)==null?void 0:f.adStart,Q5),f=kav(q,c),g.iX(v.linearAdSequenceRenderer.adStart,Q5,f))}F.So.push(r)}return F};
g.$k=function(R){if(typeof DOMParser!="undefined")return lS(new DOMParser,LtR(R),"application/xml");throw Error("Your browser does not support loading xml documents");};
g.Pw=function(R){g.G.call(this);this.callback=R;this.T=new yj(0,0,.4,0,.2,1,1,1);this.delay=new g.bM(this.next,window,this);g.d(this,this.delay)};
g.xhk=function(R){var F=R.D();return F.Yy&&!F.N&&g.Pp(F)?R.isEmbedsShortsMode()?(R=R.Rs(),Math.min(R.width,R.height)>=315):!R.SE():!1};
g.bz=function(R){g.N.call(this,{j:"div",Y:"ytp-more-videos-view",S:{tabIndex:"-1"}});var F=this;this.api=R;this.U=!0;this.N=new g.AQ(this);this.T=[];this.suggestionData=[];this.columns=this.containerWidth=this.X=this.J=this.scrollPosition=0;this.title=new g.N({j:"h2",Y:"ytp-related-title",cG:"{{title}}"});this.previous=new g.N({j:"button",BG:["ytp-button","ytp-previous"],S:{"aria-label":"Show previous suggested videos"},L:[g.Xs()]});this.Z=new g.Pw(function(n){F.suggestions.element.scrollLeft=-n});
this.next=new g.N({j:"button",BG:["ytp-button","ytp-next"],S:{"aria-label":"Show more suggested videos"},L:[g.An()]});g.d(this,this.N);this.W=R.D().J;g.d(this,this.title);this.title.KH(this.element);this.suggestions=new g.N({j:"div",Y:"ytp-suggestions"});g.d(this,this.suggestions);this.suggestions.KH(this.element);g.d(this,this.previous);this.previous.KH(this.element);this.previous.listen("click",this.xZ,this);g.d(this,this.Z);kUv(this);g.d(this,this.next);this.next.KH(this.element);this.next.listen("click",
this.uw,this);this.N.C(this.api,"appresize",this.G9);this.N.C(this.api,"fullscreentoggled",this.by);this.N.C(this.api,"videodatachange",this.onVideoDataChange);this.G9(this.api.fH().getPlayerSize());this.onVideoDataChange()};
kUv=function(R){for(var F={uF:0};F.uF<16;F={uF:F.uF},++F.uF){var n=new g.N({j:"a",Y:"ytp-suggestion-link",S:{href:"{{link}}",target:R.api.D().UZ,"aria-label":"{{aria_label}}"},L:[{j:"div",Y:"ytp-suggestion-image"},{j:"div",Y:"ytp-suggestion-overlay",S:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},L:[{j:"div",Y:"ytp-suggestion-title",cG:"{{title}}"},{j:"div",Y:"ytp-suggestion-author",cG:"{{author_and_views}}"},{j:"div",S:{"data-is-live":"{{is_live}}"},Y:"ytp-suggestion-duration",
cG:"{{duration}}"}]}]});g.d(R,n);var V=n.sZ("ytp-suggestion-link");g.fY(V,"transitionDelay",F.uF/20+"s");R.N.C(V,"click",function(r){return function(v){var f=r.uF;if(R.U){var z=R.suggestionData[f],q=z.sessionData;R.W&&R.api.B("web_player_log_click_before_generating_ve_conversion_params")?(R.api.logClick(R.T[f].element),f=z.n6(),z={},g.b4(R.api,z),f=g.DI(f,z),g.HN(f,R.api,v)):g.jK(v,R.api,R.W,q||void 0)&&R.api.bu(z.videoId,q,z.playlistId)}else v.preventDefault(),document.activeElement.blur()}}(F));
n.KH(R.suggestions.element);R.T.push(n);R.api.createServerVe(n.element,n)}};
YN_=function(R){if(R.api.D().B("web_player_log_click_before_generating_ve_conversion_params"))for(var F=Math.floor(-R.scrollPosition/(R.J+8)),n=Math.min(F+R.columns,R.suggestionData.length)-1;F<=n;F++)R.api.logVisibility(R.T[F].element,!0)};
g.Zu=function(R){var F=R.api.ju()?32:16;F=R.X/2+F;R.next.element.style.bottom=F+"px";R.previous.element.style.bottom=F+"px";F=R.scrollPosition;var n=R.containerWidth-R.suggestionData.length*(R.J+8);g.ws(R.element,"ytp-scroll-min",F>=0);g.ws(R.element,"ytp-scroll-max",F<=n)};
GUN=function(R){for(var F=R.suggestionData.length,n=0;n<F;++n){var V=void 0,r=void 0,v=void 0;V=R;var f=V.api.D(),z=V.suggestionData[n],q=V.T[n];v=V.api.isEmbedsShortsMode()?z.shortViewCount||"":z.shortViewCount?z.author+" \u2022 "+z.shortViewCount:z.author;q.element.style.display="";g.fY(q.sZ("ytp-suggestion-link"),"display","inline-block");JlJ.test(z.title)&&(q.sZ("ytp-suggestion-title").dir="rtl");JlJ.test(v)&&(q.sZ("ytp-suggestion-author").dir="rtl");r=z.isLivePlayback?"Live":z.lengthSeconds?
g.ot(z.lengthSeconds):"";var Q=z.n6(V.api.isEmbedsShortsMode());if(g.Pp(f)&&!f.B("web_player_log_click_before_generating_ve_conversion_params")){var c={};g.u4(V.api,"addEmbedsConversionTrackingParams",[c]);Q=g.DI(Q,c)}f.B("web_player_log_click_before_generating_ve_conversion_params")&&(f=(f=z.sessionData)&&f.itct)&&V.api.setTrackingParams(q.element,f);q.update({author_and_views:v,duration:r,link:Q,title:z.title,aria_label:z.ariaLabel||z.title,is_live:z.isLivePlayback,aria_hidden:!!z.ariaLabel,blink_rendering_hack:g.Sl||
g.EV?"will-change: opacity":void 0});r=q.sZ("ytp-suggestion-image");V=V.api.isEmbedsShortsMode()?z.BB("hq2.jpg"):z.BB();r.style.backgroundImage=V?"url("+V+")":""}if(F<16)for(;F<16;++F)g.fY(R.T[F].sZ("ytp-suggestion-link"),"display","none");g.Zu(R)};
jJ_=[];WIV=typeof Object.create=="function"?Object.create:function(R){function F(){}
F.prototype=R;return new F};
M6=typeof Object.defineProperties=="function"?Object.defineProperty:function(R,F,n){if(R==Array.prototype||R==Object.prototype)return R;R[F]=n.value;return R};
g.de=HWW(this);kN="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");g.de.BigInt64Array&&(kN.push("BigInt64"),kN.push("BigUint64"));var dh_=function(){function R(){function n(){}
new n;Reflect.construct(n,[],function(){});
return new n instanceof n}
if(typeof Reflect!="undefined"&&Reflect.construct){if(R())return Reflect.construct;var F=Reflect.construct;return function(n,V,r){n=F(n,V);r&&Reflect.setPrototypeOf(n,r.prototype);return n}}return function(n,V,r){r===void 0&&(r=n);
r=WIV(r.prototype||Object.prototype);return Function.prototype.apply.call(n,r,V)||r}}(),MYV;
if(typeof Object.setPrototypeOf=="function")MYV=Object.setPrototypeOf;else{var lpN;a:{var N4j={a:!0},EXj={};try{EXj.__proto__=N4j;lpN=EXj.a;break a}catch(R){}lpN=!1}MYV=lpN?function(R,F){R.__proto__=F;if(R.__proto__!==F)throw new TypeError(R+" is not extensible");return R}:null}var N6=MYV,$hj=typeof Object.assign=="function"?Object.assign:function(R,F){if(R==null)throw new TypeError("No nullish arg");
R=Object(R);for(var n=1;n<arguments.length;n++){var V=arguments[n];if(V)for(var r in V)$N(V,r)&&(R[r]=V[r])}return R};
Gk("Object.assign",function(R){return R||$hj});
RD.prototype.V=function(R){this.U=R};
RD.prototype.return=function(R){this.N={return:R};this.T=this.W};
RD.prototype.wX=function(R){this.T=R};
Gk("globalThis",function(R){return R||g.de});
Gk("Reflect",function(R){return R?R:{}});
Gk("Reflect.construct",function(){return dh_});
Gk("Reflect.setPrototypeOf",function(R){return R?R:N6?function(F,n){try{return N6(F,n),!0}catch(V){return!1}}:null});
Gk("Symbol",function(R){function F(v){if(this instanceof F)throw new TypeError("Symbol is not a constructor");return new n(V+(v||"")+"_"+r++,v)}
function n(v,f){this.T=v;M6(this,"description",{configurable:!0,writable:!0,value:f})}
if(R)return R;n.prototype.toString=function(){return this.T};
var V="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",r=0;return F});
Gk("Symbol.iterator",function(R){if(R)return R;R=Symbol("Symbol.iterator");M6(Array.prototype,R,{configurable:!0,writable:!0,value:function(){return iWI(uj9(this))}});
return R});
Gk("Promise",function(R){function F(f){this.T=0;this.N=void 0;this.U=[];this.X=!1;var z=this.J();try{f(z.resolve,z.reject)}catch(q){z.reject(q)}}
function n(){this.T=null}
function V(f){return f instanceof F?f:new F(function(z){z(f)})}
if(R)return R;n.prototype.U=function(f){if(this.T==null){this.T=[];var z=this;this.N(function(){z.W()})}this.T.push(f)};
var r=g.de.setTimeout;n.prototype.N=function(f){r(f,0)};
n.prototype.W=function(){for(;this.T&&this.T.length;){var f=this.T;this.T=[];for(var z=0;z<f.length;++z){var q=f[z];f[z]=null;try{q()}catch(Q){this.J(Q)}}}this.T=null};
n.prototype.J=function(f){this.N(function(){throw f;})};
F.prototype.J=function(){function f(Q){return function(c){q||(q=!0,Q.call(z,c))}}
var z=this,q=!1;return{resolve:f(this.jQ),reject:f(this.W)}};
F.prototype.jQ=function(f){if(f===this)this.W(new TypeError("A Promise cannot resolve to itself"));else if(f instanceof F)this.PG(f);else{a:switch(typeof f){case "object":var z=f!=null;break a;case "function":z=!0;break a;default:z=!1}z?this.J1(f):this.Z(f)}};
F.prototype.J1=function(f){var z=void 0;try{z=f.then}catch(q){this.W(q);return}typeof z=="function"?this.Mq(z,f):this.Z(f)};
F.prototype.W=function(f){this.V(2,f)};
F.prototype.Z=function(f){this.V(1,f)};
F.prototype.V=function(f,z){if(this.T!=0)throw Error("Cannot settle("+f+", "+z+"): Promise already settled in state"+this.T);this.T=f;this.N=z;this.T===2&&this.lS();this.UZ()};
F.prototype.lS=function(){var f=this;r(function(){if(f.Nq()){var z=g.de.console;typeof z!=="undefined"&&z.error(f.N)}},1)};
F.prototype.Nq=function(){if(this.X)return!1;var f=g.de.CustomEvent,z=g.de.Event,q=g.de.dispatchEvent;if(typeof q==="undefined")return!0;typeof f==="function"?f=new f("unhandledrejection",{cancelable:!0}):typeof z==="function"?f=new z("unhandledrejection",{cancelable:!0}):(f=g.de.document.createEvent("CustomEvent"),f.initCustomEvent("unhandledrejection",!1,!0,f));f.promise=this;f.reason=this.N;return q(f)};
F.prototype.UZ=function(){if(this.U!=null){for(var f=0;f<this.U.length;++f)v.U(this.U[f]);this.U=null}};
var v=new n;F.prototype.PG=function(f){var z=this.J();f.l2(z.resolve,z.reject)};
F.prototype.Mq=function(f,z){var q=this.J();try{f.call(z,q.resolve,q.reject)}catch(Q){q.reject(Q)}};
F.prototype.then=function(f,z){function q(L,S){return typeof L=="function"?function(p){try{Q(L(p))}catch(C){c(C)}}:S}
var Q,c,w=new F(function(L,S){Q=L;c=S});
this.l2(q(f,Q),q(z,c));return w};
F.prototype.catch=function(f){return this.then(void 0,f)};
F.prototype.l2=function(f,z){function q(){switch(Q.T){case 1:f(Q.N);break;case 2:z(Q.N);break;default:throw Error("Unexpected state: "+Q.T);}}
var Q=this;this.U==null?v.U(q):this.U.push(q);this.X=!0};
F.resolve=V;F.reject=function(f){return new F(function(z,q){q(f)})};
F.race=function(f){return new F(function(z,q){for(var Q=g.m(f),c=Q.next();!c.done;c=Q.next())V(c.value).l2(z,q)})};
F.all=function(f){var z=g.m(f),q=z.next();return q.done?V([]):new F(function(Q,c){function w(p){return function(C){L[p]=C;S--;S==0&&Q(L)}}
var L=[],S=0;do L.push(void 0),S++,V(q.value).l2(w(L.length-1),c),q=z.next();while(!q.done)})};
return F});
Gk("Object.setPrototypeOf",function(R){return R||N6});
Gk("Symbol.dispose",function(R){return R?R:Symbol("Symbol.dispose")});
Gk("SuppressedError",function(R){function F(n,V,r){if(!(this instanceof F))return new F(n,V,r);r=Error(r);"stack"in r&&(this.stack=r.stack);this.message=r.message;this.error=n;this.suppressed=V}
if(R)return R;g.a(F,Error);F.prototype.name="SuppressedError";return F});
Gk("WeakMap",function(R){function F(q){this.T=(z+=Math.random()+1).toString();if(q){q=g.m(q);for(var Q;!(Q=q.next()).done;)Q=Q.value,this.set(Q[0],Q[1])}}
function n(){}
function V(q){var Q=typeof q;return Q==="object"&&q!==null||Q==="function"}
function r(q){if(!$N(q,f)){var Q=new n;M6(q,f,{value:Q})}}
function v(q){var Q=Object[q];Q&&(Object[q]=function(c){if(c instanceof n)return c;Object.isExtensible(c)&&r(c);return Q(c)})}
if(function(){if(!R||!Object.seal)return!1;try{var q=Object.seal({}),Q=Object.seal({}),c=new R([[q,2],[Q,3]]);if(c.get(q)!=2||c.get(Q)!=3)return!1;c.delete(q);c.set(Q,4);return!c.has(q)&&c.get(Q)==4}catch(w){return!1}}())return R;
var f="$jscomp_hidden_"+Math.random();v("freeze");v("preventExtensions");v("seal");var z=0;F.prototype.set=function(q,Q){if(!V(q))throw Error("Invalid WeakMap key");r(q);if(!$N(q,f))throw Error("WeakMap key fail: "+q);q[f][this.T]=Q;return this};
F.prototype.get=function(q){return V(q)&&$N(q,f)?q[f][this.T]:void 0};
F.prototype.has=function(q){return V(q)&&$N(q,f)&&$N(q[f],this.T)};
F.prototype.delete=function(q){return V(q)&&$N(q,f)&&$N(q[f],this.T)?delete q[f][this.T]:!1};
return F});
Gk("Map",function(R){function F(){var z={};return z.previous=z.next=z.head=z}
function n(z,q){var Q=z[1];return iWI(function(){if(Q){for(;Q.head!=z[1];)Q=Q.previous;for(;Q.next!=Q.head;)return Q=Q.next,{done:!1,value:q(Q)};Q=null}return{done:!0,value:void 0}})}
function V(z,q){var Q=q&&typeof q;Q=="object"||Q=="function"?v.has(q)?Q=v.get(q):(Q=""+ ++f,v.set(q,Q)):Q="p_"+q;var c=z[0][Q];if(c&&$N(z[0],Q))for(z=0;z<c.length;z++){var w=c[z];if(q!==q&&w.key!==w.key||q===w.key)return{id:Q,list:c,index:z,entry:w}}return{id:Q,list:c,index:-1,entry:void 0}}
function r(z){this[0]={};this[1]=F();this.size=0;if(z){z=g.m(z);for(var q;!(q=z.next()).done;)q=q.value,this.set(q[0],q[1])}}
if(function(){if(!R||typeof R!="function"||!R.prototype.entries||typeof Object.seal!="function")return!1;try{var z=Object.seal({x:4}),q=new R(g.m([[z,"s"]]));if(q.get(z)!="s"||q.size!=1||q.get({x:4})||q.set({x:4},"t")!=q||q.size!=2)return!1;var Q=q.entries(),c=Q.next();if(c.done||c.value[0]!=z||c.value[1]!="s")return!1;c=Q.next();return c.done||c.value[0].x!=4||c.value[1]!="t"||!Q.next().done?!1:!0}catch(w){return!1}}())return R;
var v=new WeakMap;r.prototype.set=function(z,q){z=z===0?0:z;var Q=V(this,z);Q.list||(Q.list=this[0][Q.id]=[]);Q.entry?Q.entry.value=q:(Q.entry={next:this[1],previous:this[1].previous,head:this[1],key:z,value:q},Q.list.push(Q.entry),this[1].previous.next=Q.entry,this[1].previous=Q.entry,this.size++);return this};
r.prototype.delete=function(z){z=V(this,z);return z.entry&&z.list?(z.list.splice(z.index,1),z.list.length||delete this[0][z.id],z.entry.previous.next=z.entry.next,z.entry.next.previous=z.entry.previous,z.entry.head=null,this.size--,!0):!1};
r.prototype.clear=function(){this[0]={};this[1]=this[1].previous=F();this.size=0};
r.prototype.has=function(z){return!!V(this,z).entry};
r.prototype.get=function(z){return(z=V(this,z).entry)&&z.value};
r.prototype.entries=function(){return n(this,function(z){return[z.key,z.value]})};
r.prototype.keys=function(){return n(this,function(z){return z.key})};
r.prototype.values=function(){return n(this,function(z){return z.value})};
r.prototype.forEach=function(z,q){for(var Q=this.entries(),c;!(c=Q.next()).done;)c=c.value,z.call(q,c[1],c[0],this)};
r.prototype[Symbol.iterator]=r.prototype.entries;var f=0;return r});
Gk("Set",function(R){function F(n){this.T=new Map;if(n){n=g.m(n);for(var V;!(V=n.next()).done;)this.add(V.value)}this.size=this.T.size}
if(function(){if(!R||typeof R!="function"||!R.prototype.entries||typeof Object.seal!="function")return!1;try{var n=Object.seal({x:4}),V=new R(g.m([n]));if(!V.has(n)||V.size!=1||V.add(n)!=V||V.size!=1||V.add({x:4})!=V||V.size!=2)return!1;var r=V.entries(),v=r.next();if(v.done||v.value[0]!=n||v.value[1]!=n)return!1;v=r.next();return v.done||v.value[0]==n||v.value[0].x!=4||v.value[1]!=v.value[0]?!1:r.next().done}catch(f){return!1}}())return R;
F.prototype.add=function(n){n=n===0?0:n;this.T.set(n,n);this.size=this.T.size;return this};
F.prototype.delete=function(n){n=this.T.delete(n);this.size=this.T.size;return n};
F.prototype.clear=function(){this.T.clear();this.size=0};
F.prototype.has=function(n){return this.T.has(n)};
F.prototype.entries=function(){return this.T.entries()};
F.prototype.values=function(){return this.T.values()};
F.prototype.keys=F.prototype.values;F.prototype[Symbol.iterator]=F.prototype.values;F.prototype.forEach=function(n,V){var r=this;this.T.forEach(function(v){return n.call(V,v,v,r)})};
return F});
Gk("String.prototype.endsWith",function(R){return R?R:function(F,n){var V=oD(this,F,"endsWith");F+="";n===void 0&&(n=V.length);n=Math.max(0,Math.min(n|0,V.length));for(var r=F.length;r>0&&n>0;)if(V[--n]!=F[--r])return!1;return r<=0}});
Gk("Array.prototype.find",function(R){return R?R:function(F,n){return x6R(this,F,n).gS}});
Gk("Array.prototype.entries",function(R){return R?R:function(){return yz(this,function(F,n){return[F,n]})}});
Gk("Array.prototype.keys",function(R){return R?R:function(){return yz(this,function(F){return F})}});
Gk("String.prototype.startsWith",function(R){return R?R:function(F,n){var V=oD(this,F,"startsWith");F+="";var r=V.length,v=F.length;n=Math.max(0,Math.min(n|0,V.length));for(var f=0;f<v&&n<r;)if(V[n++]!=F[f++])return!1;return f>=v}});
Gk("Number.isFinite",function(R){return R?R:function(F){return typeof F!=="number"?!1:!isNaN(F)&&F!==Infinity&&F!==-Infinity}});
Gk("String.prototype.repeat",function(R){return R?R:function(F){var n=oD(this,null,"repeat");if(F<0||F>1342177279)throw new RangeError("Invalid count value");F|=0;for(var V="";F;)if(F&1&&(V+=n),F>>>=1)n+=n;return V}});
Gk("Object.entries",function(R){return R?R:function(F){var n=[],V;for(V in F)$N(F,V)&&n.push([V,F[V]]);return n}});
Gk("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Gk("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Gk("Array.from",function(R){return R?R:function(F,n,V){n=n!=null?n:function(z){return z};
var r=[],v=typeof Symbol!="undefined"&&Symbol.iterator&&F[Symbol.iterator];if(typeof v=="function"){F=v.call(F);for(var f=0;!(v=F.next()).done;)r.push(n.call(V,v.value,f++))}else for(v=F.length,f=0;f<v;f++)r.push(n.call(V,F[f],f));return r}});
Gk("Number.isInteger",function(R){return R?R:function(F){return Number.isFinite(F)?F===Math.floor(F):!1}});
Gk("Number.isSafeInteger",function(R){return R?R:function(F){return Number.isInteger(F)&&Math.abs(F)<=Number.MAX_SAFE_INTEGER}});
Gk("Object.is",function(R){return R?R:function(F,n){return F===n?F!==0||1/F===1/n:F!==F&&n!==n}});
Gk("Array.prototype.includes",function(R){return R?R:function(F,n){var V=this;V instanceof String&&(V=String(V));var r=V.length;n=n||0;for(n<0&&(n=Math.max(n+r,0));n<r;n++){var v=V[n];if(v===F||Object.is(v,F))return!0}return!1}});
Gk("String.prototype.includes",function(R){return R?R:function(F,n){return oD(this,F,"includes").indexOf(F,n||0)!==-1}});
Gk("Math.log2",function(R){return R?R:function(F){return Math.log(F)/Math.LN2}});
Gk("Object.values",function(R){return R?R:function(F){var n=[],V;for(V in F)$N(F,V)&&n.push(F[V]);return n}});
Gk("Math.trunc",function(R){return R?R:function(F){F=Number(F);if(isNaN(F)||F===Infinity||F===-Infinity||F===0)return F;var n=Math.floor(Math.abs(F));return F<0?-n:n}});
Gk("Math.clz32",function(R){return R?R:function(F){F=Number(F)>>>0;if(F===0)return 32;var n=0;(F&4294901760)===0&&(F<<=16,n+=16);(F&4278190080)===0&&(F<<=8,n+=8);(F&4026531840)===0&&(F<<=4,n+=4);(F&3221225472)===0&&(F<<=2,n+=2);(F&2147483648)===0&&n++;return n}});
Gk("Number.isNaN",function(R){return R?R:function(F){return typeof F==="number"&&isNaN(F)}});
Gk("Array.prototype.values",function(R){return R?R:function(){return yz(this,function(F,n){return n})}});
Gk("Array.prototype.fill",function(R){return R?R:function(F,n,V){var r=this.length||0;n<0&&(n=Math.max(0,r+n));if(V==null||V>r)V=r;V=Number(V);V<0&&(V=Math.max(0,r+V));for(n=Number(n||0);n<V;n++)this[n]=F;return this}});
YN("fill",function(R){return R?R:Array.prototype.fill});
Gk("Object.fromEntries",function(R){return R?R:function(F){var n={};if(!(Symbol.iterator in F))throw new TypeError(""+F+" is not iterable");F=F[Symbol.iterator].call(F);for(var V=F.next();!V.done;V=F.next()){V=V.value;if(Object(V)!==V)throw new TypeError("iterable for fromEntries should yield objects");n[V[0]]=V[1]}return n}});
Gk("String.prototype.replaceAll",function(R){return R?R:function(F,n){if(F instanceof RegExp&&!F.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return F instanceof RegExp?this.replace(F,n):this.replace(new RegExp(String(F).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),n)}});
Gk("String.prototype.padStart",function(R){return R?R:function(F,n){var V=oD(this,null,"padStart");F-=V.length;n=n!==void 0?String(n):" ";return(F>0&&n?n.repeat(Math.ceil(F/n.length)).substring(0,F):"")+V}});
Gk("Array.prototype.findIndex",function(R){return R?R:function(F,n){return x6R(this,F,n).Rt}});
Gk("Promise.prototype.finally",function(R){return R?R:function(F){return this.then(function(n){return Promise.resolve(F()).then(function(){return n})},function(n){return Promise.resolve(F()).then(function(){throw n;
})})}});
Gk("Math.imul",function(R){return R?R:function(F,n){F=Number(F);n=Number(n);var V=F&65535,r=n&65535;return V*r+((F>>>16&65535)*r+V*(n>>>16&65535)<<16>>>0)|0}});
Gk("Math.sign",function(R){return R?R:function(F){F=Number(F);return F===0||isNaN(F)?F:F>0?1:-1}});
Gk("WeakSet",function(R){function F(n){this.T=new WeakMap;if(n){n=g.m(n);for(var V;!(V=n.next()).done;)this.add(V.value)}}
if(function(){if(!R||!Object.seal)return!1;try{var n=Object.seal({}),V=Object.seal({}),r=new R([n]);if(!r.has(n)||r.has(V))return!1;r.delete(n);r.add(V);return!r.has(n)&&r.has(V)}catch(v){return!1}}())return R;
F.prototype.add=function(n){this.T.set(n,!0);return this};
F.prototype.has=function(n){return this.T.has(n)};
F.prototype.delete=function(n){return this.T.delete(n)};
return F});
Gk("Array.prototype.copyWithin",function(R){function F(n){n=Number(n);return n===Infinity||n===-Infinity?n:n|0}
return R?R:function(n,V,r){var v=this.length;n=F(n);V=F(V);r=r===void 0?v:F(r);n=n<0?Math.max(v+n,0):Math.min(n,v);V=V<0?Math.max(v+V,0):Math.min(V,v);r=r<0?Math.max(v+r,0):Math.min(r,v);if(n<V)for(;V<r;)V in this?this[n++]=this[V++]:(delete this[n++],V++);else for(r=Math.min(r,v+V-n),n+=r-V;r>V;)--r in this?this[--n]=this[r]:delete this[--n];return this}});
YN("copyWithin",function(R){return R?R:Array.prototype.copyWithin});
Gk("Array.prototype.at",function(R){return R?R:j7});
YN("at",function(R){return R?R:j7});
Gk("String.prototype.at",function(R){return R?R:j7});
Gk("Promise.withResolvers",function(R){return R?R:function(){var F,n;return{promise:new Promise(function(V,r){F=V;n=r}),
resolve:F,reject:n}}});
Gk("Array.prototype.findLastIndex",function(R){return R?R:function(F,n){return kkR(this,F,n).Rt}});
YN("findLastIndex",function(R){return R?R:function(F,n){return kkR(this,F,n).Rt}});
Gk("Number.parseInt",function(R){return R||parseInt});var bh,Kq,YRR;bh=bh||{};g.HM=this||self;Kq="closure_uid_"+(Math.random()*1E9>>>0);YRR=0;g.Ms(lU,Error);lU.prototype.name="CustomError";var rxN;var $6j,KY,t3;$6j=Array.prototype.indexOf?function(R,F){return Array.prototype.indexOf.call(R,F,void 0)}:function(R,F){if(typeof R==="string")return typeof F!=="string"||F.length!=1?-1:R.indexOf(F,0);
for(var n=0;n<R.length;n++)if(n in R&&R[n]===F)return n;return-1};
g.Pce=Array.prototype.lastIndexOf?function(R,F){return Array.prototype.lastIndexOf.call(R,F,R.length-1)}:function(R,F){var n=R.length-1;
n<0&&(n=Math.max(0,R.length+n));if(typeof R==="string")return typeof F!=="string"||F.length!=1?-1:R.lastIndexOf(F,n);for(;n>=0;n--)if(n in R&&R[n]===F)return n;return-1};
g.az=Array.prototype.forEach?function(R,F,n){Array.prototype.forEach.call(R,F,n)}:function(R,F,n){for(var V=R.length,r=typeof R==="string"?R.split(""):R,v=0;v<V;v++)v in r&&F.call(n,r[v],v,R)};
g.dk=Array.prototype.filter?function(R,F,n){return Array.prototype.filter.call(R,F,n)}:function(R,F,n){for(var V=R.length,r=[],v=0,f=typeof R==="string"?R.split(""):R,z=0;z<V;z++)if(z in f){var q=f[z];
F.call(n,q,z,R)&&(r[v++]=q)}return r};
g.OM=Array.prototype.map?function(R,F,n){return Array.prototype.map.call(R,F,n)}:function(R,F,n){for(var V=R.length,r=Array(V),v=typeof R==="string"?R.split(""):R,f=0;f<V;f++)f in v&&(r[f]=F.call(n,v[f],f,R));
return r};
KY=Array.prototype.reduce?function(R,F,n){return Array.prototype.reduce.call(R,F,n)}:function(R,F,n){var V=n;
(0,g.az)(R,function(r,v){V=F.call(void 0,V,r,v,R)});
return V};
t3=Array.prototype.some?function(R,F){return Array.prototype.some.call(R,F,void 0)}:function(R,F){for(var n=R.length,V=typeof R==="string"?R.split(""):R,r=0;r<n;r++)if(r in V&&F.call(void 0,V[r],r,R))return!0;
return!1};
g.Iv=Array.prototype.every?function(R,F,n){return Array.prototype.every.call(R,F,n)}:function(R,F,n){for(var V=R.length,r=typeof R==="string"?R.split(""):R,v=0;v<V;v++)if(v in r&&!F.call(n,r[v],v,R))return!1;
return!0};var wMI={NONE:0,AxQ:1},eNW={U0:0,V_5:1,rl5:2,Lnq:3},oM={r7:"a",mTG:"d",VIDEO:"v"};TX.prototype.isVisible=function(){return this.d6?this.M8>=.3:this.M8>=.5};var Zi={HWH:0,eT2:1},boj={NONE:0,llX:1,SS2:2};var qvJ="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");kc.prototype.getValue=function(){return this.U};
g.a(Yc,kc);Yc.prototype.N=function(R){this.U===null&&g.Wo(this.J,R)&&(this.U=R)};
g.a(Jx,kc);Jx.prototype.N=function(R){this.U===null&&typeof R==="number"&&(this.U=R)};
g.a(GX,kc);GX.prototype.N=function(R){this.U===null&&typeof R==="string"&&(this.U=R)};d7.prototype.disable=function(){this.U=!1};
d7.prototype.enable=function(){this.U=!0};
d7.prototype.isEnabled=function(){return this.U};
d7.prototype.reset=function(){this.T={};this.U=!0;this.N={}};var qa=document,N2=window;var bXW=BM(1,!0),t8=BM(610401301,!1);BM(899588437,!1);BM(772657768,!0);var ZXj=BM(513659523,!1),e66=BM(568333945,!0),rYe=BM(1331761403,!1);BM(651175828,!1);BM(722764542,!1);BM(748402145,!1);BM(748402146,!1);var d3f=BM(748402147,!0),eJ=BM(824648567,!0),GK=BM(824656860,bXW);BM(333098724,!1);BM(2147483644,!1);BM(2147483645,!1);BM(2147483646,bXW);BM(2147483647,!0);var zx=!!g.WM("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var V1=String.prototype.trim?function(R){return R.trim()}:function(R){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(R)[1]},Oq9=/&/g,Irk=/</g,KhN=/>/g,Dsf=/"/g,iqW=/'/g,xsj=/\x00/g,g$I=/[\x00&<>"']/;var q3,R2R=g.HM.navigator;q3=R2R?R2R.userAgentData||null:null;var Tq_=globalThis.trustedTypes,A8;Ct.prototype.toString=function(){return this.T+""};y1.prototype.toString=function(){return this.T};
var UsI=new y1("about:invalid#zClosurez");var sgR=H$("tel"),SLf=H$("sms"),y7v=[H$("data"),H$("http"),H$("https"),H$("mailto"),H$("ftp"),new jX(function(R){return/^[^:]*([/?#]|$)/.test(R)})],jDN=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;mr.prototype.toString=function(){return this.T+""};D$.prototype.toString=function(){return this.T+""};Y6.prototype.toString=function(){return this.T};var Gx={};g.F4k=String.prototype.repeat?function(R,F){return R.repeat(F)}:function(R,F){return Array(F+1).join(R)};VX[" "]=function(){};var t_,gj,$UV,n7I,Vn6,rRv,li,Nr,v7E;g.EV=Lt();g.pO=sDv();g.Nx=wo("Edge");g.TV=g.Nx||g.pO;t_=wo("Gecko")&&!(nt(g.ft(),"WebKit")&&!wo("Edge"))&&!(wo("Trident")||wo("MSIE"))&&!wo("Edge");g.WI=nt(g.ft(),"WebKit")&&!wo("Edge");gj=no();$UV=M7W();g.rf=dsf();n7I=RE();Vn6=wo("iPad");rRv=wo("iPod");li=Fr();Nr=nt(g.ft(),"KaiOS");
a:{var fbR="",tne=function(){var R=g.ft();if(t_)return/rv:([^\);]+)(\)|;)/.exec(R);if(g.Nx)return/Edge\/([\d\.]+)/.exec(R);if(g.pO)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(R);if(g.WI)return/WebKit\/(\S+)/.exec(R);if(g.EV)return/(?:Version)[ \/]?(\S+)/.exec(R)}();
tne&&(fbR=tne?tne[1]:"");if(g.pO){var R1,z2V=g.HM.document;R1=z2V?z2V.documentMode:void 0;if(R1!=null&&R1>parseFloat(fbR)){v7E=String(R1);break a}}v7E=fbR}var $sJ=v7E,NqJ={};var FA,nw;g.oc=sj();FA=RE()||wo("iPod");nw=wo("iPad");g.$0=XMv();g.Sl=pt();g.A1=Xg()&&!Fr();var V5j=!g.pO&&!Xg();g.X=g.z5.prototype;g.X.clone=function(){return new g.z5(this.x,this.y)};
g.X.equals=function(R){return R instanceof g.z5&&q2(this,R)};
g.X.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.X.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.X.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.X.scale=function(R,F){this.x*=R;this.y*=typeof F==="number"?F:R;return this};g.X=g.QX.prototype;g.X.clone=function(){return new g.QX(this.width,this.height)};
g.X.aspectRatio=function(){return this.width/this.height};
g.X.isEmpty=function(){return!wu(this)};
g.X.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.X.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.X.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.X.scale=function(R,F){this.width*=R;this.height*=typeof F==="number"?F:R;return this};Lo.prototype.toString=function(){return this.T};
var SR={};new Lo(SR,"");var ZqI=/^[a-z][a-z\d-]*$/i,eOe="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),F0V="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),VW9=["action","formaction","href"];var vcI={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.X=A9.prototype;g.X.Fs=function(R){return T5(this.T,R)};
g.X.getElementsByTagName=function(R,F){return(F||this.T).getElementsByTagName(String(R))};
g.X.sZ=function(R){return g.HI(R,this.T)};
g.X.setProperties=h9;g.X.createElement=function(R){return BI(this.T,R)};
g.X.appendChild=g.IE;g.X.append=function(R,F){qmf(aE(R),R,arguments,1)};
g.X.canHaveChildren=function(R){if(R.nodeType!=1)return!1;switch(R.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.X.removeNode=g.iY;g.X.getChildren=function(R){return R.children!=void 0?R.children:Array.prototype.filter.call(R.childNodes,function(F){return F.nodeType==1})};
g.X.contains=g.xW;g.X.isFocusable=YW;du.prototype.now=function(){return 0};
du.prototype.U=function(){return 0};
du.prototype.N=function(){return 0};
du.prototype.T=function(){return 0};g.a(lY,du);lY.prototype.now=function(){return M2()&&N2.performance.now?N2.performance.now():du.prototype.now.call(this)};
lY.prototype.U=function(){return M2()&&N2.performance.memory?N2.performance.memory.totalJSHeapSize||0:du.prototype.U.call(this)};
lY.prototype.N=function(){return M2()&&N2.performance.memory?N2.performance.memory.usedJSHeapSize||0:du.prototype.N.call(this)};
lY.prototype.T=function(){return M2()&&N2.performance.memory?N2.performance.memory.jsHeapSizeLimit||0:du.prototype.T.call(this)};var RCE=function(){if(!g.HM.addEventListener||!Object.defineProperty)return!1;var R=!1,F=Object.defineProperty({},"passive",{get:function(){R=!0}});
try{var n=function(){};
g.HM.addEventListener("test",n,F);g.HM.removeEventListener("test",n,F)}catch(V){}return R}();var OUj=woe("AnimationEnd"),Ji=woe("TransitionEnd");g.X=eR.prototype;g.X.getHeight=function(){return this.bottom-this.top};
g.X.clone=function(){return new eR(this.top,this.right,this.bottom,this.left)};
g.X.contains=function(R){return this&&R?R instanceof eR?R.left>=this.left&&R.right<=this.right&&R.top>=this.top&&R.bottom<=this.bottom:R.x>=this.left&&R.x<=this.right&&R.y>=this.top&&R.y<=this.bottom:!1};
g.X.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.X.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.X.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.X.scale=function(R,F){F=typeof F==="number"?F:R;this.left*=R;this.right*=R;this.top*=F;this.bottom*=F;return this};g.X=g.VO.prototype;g.X.clone=function(){return new g.VO(this.left,this.top,this.width,this.height)};
g.X.contains=function(R){return R instanceof g.z5?R.x>=this.left&&R.x<=this.left+this.width&&R.y>=this.top&&R.y<=this.top+this.height:this.left<=R.left&&this.left+this.width>=R.left+R.width&&this.top<=R.top&&this.top+this.height>=R.top+R.height};
g.X.getSize=function(){return new g.QX(this.width,this.height)};
g.X.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.X.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.X.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.X.scale=function(R,F){F=typeof F==="number"?F:R;this.left*=R;this.width*=R;this.top*=F;this.height*=F;return this};var L0v={};var CeE=PI(function(){var R=!1;try{var F=Object.defineProperty({},"passive",{get:function(){R=!0}});
g.HM.addEventListener("test",null,F)}catch(n){}return R});T7k.prototype.isVisible=function(){return ov(qa)===1};var H4W=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");u$.prototype.rD=function(R,F,n){R=R+"//"+F+n;var V=gcW(this)-n.length;if(V<0)return"";this.T.sort(function(Q,c){return Q-c});
n=null;F="";for(var r=0;r<this.T.length;r++)for(var v=this.T[r],f=this.U[v],z=0;z<f.length;z++){if(!V){n=n==null?v:n;break}var q=mNe(f[z],this.N,",$");if(q){q=F+q;if(V>=q.length){V-=q.length;R+=q;F=this.N;break}n=n==null?v:n}}V="";n!=null&&(V=""+F+"trn="+n);return R+V};var seN=DL(function(R){return typeof R==="number"}),Lk=DL(function(R){return typeof R==="string"}),p$E=DL(function(R){return typeof R==="boolean"}),VW=DL(function(R){return R!=null&&typeof R==="object"&&typeof R.then==="function"}),f79=DL(function(R){return typeof R==="function"}),qU9=DL(function(R){return!!R&&(typeof R==="object"||typeof R==="function")});var uuk={Z6z:"allow-forms",t72:"allow-modals",ziG:"allow-orientation-lock",M7H:"allow-pointer-lock",nYG:"allow-popups",YDG:"allow-popups-to-escape-sandbox",XWz:"allow-presentation",eiH:"allow-same-origin",gYG:"allow-scripts",vYz:"allow-top-navigation",Cq2:"allow-top-navigation-by-user-activation"},i4E=PI(function(){return B7k()});xR.prototype.setInterval=function(R,F){return N2.setInterval(R,F)};
xR.prototype.clearInterval=function(R){N2.clearInterval(R)};
xR.prototype.setTimeout=function(R,F){return N2.setTimeout(R,F)};
xR.prototype.clearTimeout=function(R){N2.clearTimeout(R)};var Ku=void 0,Ir,QER=typeof TextDecoder!=="undefined",N7I,li_=typeof String.prototype.isWellFormed==="function",MWR=typeof TextEncoder!=="undefined";var Z49={},Nu=null,eJj=t_||g.WI||typeof g.HM.btoa=="function";var qjj=typeof Uint8Array!=="undefined",r8W=!g.pO&&typeof btoa==="function",v6I=/[-_.]/g,n6j={"-":"+",_:"/",".":"="},b$={};EM.prototype.isEmpty=function(){return this.T==null};
EM.prototype.sizeBytes=function(){var R=em(this);return R?R.length:0};
var zTf;var Qe6=void 0;var v7=typeof Symbol==="function"&&typeof Symbol()==="symbol",QfN=rF("jas",void 0,!0),JC=rF(void 0,"1oa"),vb=rF(void 0,Symbol()),cRk=rF(void 0,"0ub"),I$R=rF(void 0,"0ubs"),D2_=rF(void 0,"0ubsb"),l$E=rF(void 0,"0actk"),nl=rF("m_m","qKZ",!0),it9=rF(void 0,"vps"),wrI=rF();Math.max.apply(Math,g.I(Object.values({rG5:1,qUS:2,SUG:4,D7q:8,u9Q:16,MhG:32,r8H:64,i22:128,I8z:256,Kmo:512,dTS:1024,kU1:2048,nrG:4096,h8G:8192})));var w$k={iH1:{value:0,configurable:!0,writable:!0,enumerable:!1}},c8I=Object.defineProperties,fk=v7?QfN:"iH1",Hb,SUJ=[];zK(SUJ,7);Hb=Object.freeze(SUJ);var VY={},qZ={},eTj=Object.freeze({}),ip={},wF={};var sJ=typeof g.HM.BigInt==="function"&&typeof g.HM.BigInt(0)==="bigint";var bb=DL(function(R){return sJ?R>=L4_&&R<=sfN:R[0]==="-"?X$N(R,prE):X$N(R,XrJ)}),prE=Number.MIN_SAFE_INTEGER.toString(),L4_=sJ?BigInt(Number.MIN_SAFE_INTEGER):void 0,XrJ=Number.MAX_SAFE_INTEGER.toString(),sfN=sJ?BigInt(Number.MAX_SAFE_INTEGER):void 0;var vWN=typeof Uint8Array.prototype.slice==="function",Ab=0,a2=0,ioV;var MZ=typeof BigInt==="function"?BigInt.asIntN:void 0,Wrj=typeof BigInt==="function"?BigInt.asUintN:void 0,P7=Number.isSafeInteger,OJ=Number.isFinite,$B=Math.trunc,CSf=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var x3k={};var ARV={P_1:!0};var qm;var kxj,Yj_;var nWN=X$(0),Rr={};z3.prototype.init=function(R,F,n,V){var r=V===void 0?{}:V;V=r.iU===void 0?!1:r.iU;r=r.lJ===void 0?!1:r.lJ;this.iU=V;this.lJ=r;R&&(R=tN(R,this.lJ),this.U=R.buffer,this.W=R.T,this.J=F||0,this.N=n!==void 0?this.J+n:this.U.length,this.T=this.J)};
z3.prototype.free=function(){this.clear();up.length<100&&up.push(this)};
z3.prototype.clear=function(){this.U=null;this.W=!1;this.T=this.N=this.J=0;this.iU=!1};
z3.prototype.reset=function(){this.T=this.J};
var up=[];B4.prototype.free=function(){this.T.clear();this.U=this.N=-1;m5.length<100&&m5.push(this)};
B4.prototype.reset=function(){this.T.reset();this.J=this.T.T;this.U=this.N=-1};
var m5=[];var Lpf,pIN;Yj.prototype.length=function(){return this.T.length};
Yj.prototype.end=function(){var R=this.T;this.T=[];return R};var bp=Eh(),abI=Eh(),C7V=Eh(),TPE=Eh(),o7j=Eh(),yRN=Eh(),UK9=Eh(),jfR=Eh(),H1J=Eh(),h2I=Eh(),W4E=Eh();P4.prototype.toJSON=function(){return wp(this)};
P4.prototype.F6=function(R){return JSON.stringify(wp(this,R))};
P4.prototype.clone=function(){var R=this.EZ,F=R[fk]|0;return pl(this,R,F)?XG(this,R,!0):new this.constructor(sd(R,F,!1))};
P4.prototype[nl]=VY;P4.prototype.toString=function(){return this.EZ.toString()};var HoI=e0(function(R,F,n,V,r){if(R.U!==2)return!1;Oh(R,Gb(F,V,n),r);return!0},jEW),hNW=e0(function(R,F,n,V,r){if(R.U!==2)return!1;
Oh(R,Gb(F,V,n),r);return!0},jEW),qP=Symbol(),rt=Symbol(),tB=Symbol(),OoJ=Symbol(),Buf=Symbol(),RM,FC;var utN=X$(0),BPI=wt(function(R,F,n){if(R.U!==1)return!1;LS(F,n,hN(R.T));return!0},s_,H1J),mKV=wt(function(R,F,n){if(R.U!==1)return!1;
R=hN(R.T);LS(F,n,R===0?void 0:R);return!0},s_,H1J),g79=wt(function(R,F,n,V){if(R.U!==1)return!1;
kD(F,n,V,hN(R.T));return!0},s_,H1J),O1v=wt(function(R,F,n){if(eJ)return R.U!==0?R=!1:(LS(F,n,or(R.T,W7)),R=!0),R;
if(R.U!==0)return!1;LS(F,n,or(R.T,j5));return!0},pS,UK9),IbW=wt(function(R,F,n){if(eJ)return R.U!==0?F=!1:(R=or(R.T,W7),LS(F,n,R===utN?void 0:R),F=!0),F;
if(R.U!==0)return!1;R=or(R.T,j5);LS(F,n,R===0?void 0:R);return!0},pS,UK9),K4v=wt(function(R,F,n,V){if(eJ)return R.U!==0?R=!1:(kD(F,n,V,or(R.T,W7)),R=!0),R;
if(R.U!==0)return!1;kD(F,n,V,or(R.T,j5));return!0},pS,UK9),DKf=wt(function(R,F,n){if(R.U!==0)return!1;
LS(F,n,y7(R.T));return!0},XC,TPE),i1v=wt(function(R,F,n){if(R.U!==0)return!1;
R=y7(R.T);LS(F,n,R===0?void 0:R);return!0},XC,TPE),xKN=wt(function(R,F,n,V){if(R.U!==0)return!1;
kD(F,n,V,y7(R.T));return!0},XC,TPE),kqV=wt(function(R,F,n){if(eJ)return R.U!==1?R=!1:(LS(F,n,H4(R.T)),R=!0),R;
if(R.U!==1)return!1;LS(F,n,j0(R.T));return!0},function(R,F,n){oWN(R,n,ugV(F))},jfR),YUf=Su(function(R,F,n){if(eJ)return R.U!==1&&R.U!==2?R=!1:(F=IX(F,F[fk]|0,n),R.U==2?wIN(R,H4,F):F.push(H4(R.T)),R=!0),R;
if(R.U!==1&&R.U!==2)return!1;F=IX(F,F[fk]|0,n);R.U==2?wIN(R,j0,F):F.push(j0(R.T));return!0},function(R,F,n){F=ca(ugV,F,!1);
if(F!=null)for(var V=0;V<F.length;V++)oWN(R,n,F[V])},jfR),JRN=wt(function(R,F,n){if(R.U!==5)return!1;
LS(F,n,Uh(R.T));return!0},function(R,F,n){F=Jb(F);
F!=null&&(lp(R,n,5),d5(R.T,F))},yRN),GqV=wt(function(R,F,n){if(R.U!==0)return!1;
LS(F,n,W4(R.T));return!0},x2R,abI),dKk=wt(function(R,F,n,V){if(R.U!==0)return!1;
kD(F,n,V,W4(R.T));return!0},x2R,abI),Fz=wt(function(R,F,n){if(R.U!==2)return!1;
LS(F,n,D3(R));return!0},k5_,C7V),Mnj=Su(function(R,F,n){if(R.U!==2)return!1;
R=D3(R);IX(F,F[fk]|0,n).push(R);return!0},function(R,F,n){F=ca(RX,F,!0);
if(F!=null)for(var V=0;V<F.length;V++){var r=R,v=n,f=F[V];f!=null&&Nt(r,v,EcV(f))}},C7V),lbI=wt(function(R,F,n,V){if(R.U!==2)return!1;
kD(F,n,V,D3(R));return!0},k5_,C7V),nC,VU=void 0;
VU=VU===void 0?bp:VU;nC=new Z3(function(R,F,n,V,r){if(R.U!==2)return!1;V=Sp(void 0,V);IX(F,F[fk]|0,n).push(V);Oh(R,V,r);return!0},function(R,F,n,V,r){if(Array.isArray(F)){for(var v=0;v<F.length;v++)YsV(R,F[v],n,V,r);
R=F[fk]|0;R&1||zK(F,R|1)}},VU);
var rR=e0(function(R,F,n,V,r,v){if(R.U!==2)return!1;var f=F[fk]|0;i3(F,f,v,n,S5(f));F=Gb(F,V,n);Oh(R,F,r);return!0},YsV),NPN=wt(function(R,F,n){if(R.U!==2)return!1;
LS(F,n,c9V(R));return!0},function(R,F,n){F=BoW(F);
F!=null&&Nt(R,n,tN(F,!0).buffer)},h2I),E7J=Su(function(R,F,n){if(R.U!==2)return!1;
R=c9V(R);IX(F,F[fk]|0,n).push(R);return!0},function(R,F,n){F=ca(BoW,F,!1);
if(F!=null)for(var V=0;V<F.length;V++){var r=R,v=n,f=F[V];f!=null&&Nt(r,v,tN(f,!0).buffer)}},h2I),vn=wt(function(R,F,n){if(R.U!==0)return!1;
LS(F,n,y7(R.T)>>>0);return!0},function(R,F,n){F=Jb(F);
F!=null&&F!=null&&(lp(R,n,0),G3(R.T,F))},o7j),fC=wt(function(R,F,n){if(R.U!==0)return!1;
LS(F,n,y7(R.T));return!0},function(R,F,n){F=Dx(F);
F!=null&&(F=parseInt(F,10),lp(R,n,0),A9I(R.T,F))},W4E);var J9k=new Map;g.a(G5j,Ss_);MRW.prototype.register=function(){VX(this)};g.a(CS,P4);CS.prototype.N=NuJ([0,mKV,IbW,-2,i1v]);PYE.prototype.pH=function(R){var F=this.T[R.key];if(R.valueType==="proto"){try{var n=JSON.parse(F);if(Array.isArray(n))return n}catch(V){}return R.defaultValue}return typeof F===typeof R.defaultValue?F:R.defaultValue};var Zoj={ypH:1,c7:2,F1Z:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};R1_.prototype.ev=function(R){if(typeof R==="string"&&R.length!=0){var F=this.Fh;if(F.U){R=R.split("&");for(var n=R.length-1;n>=0;n--){var V=R[n].split("="),r=decodeURIComponent(V[0]);V.length>1?(V=decodeURIComponent(V[1]),V=/^[0-9]+$/g.exec(V)?parseInt(V,10):V):V=1;(r=F.T[r])&&r.N(V)}}}};var tO=null;var Ha=g.HM.performance,$KN=!!(Ha&&Ha.mark&&Ha.measure&&Ha.clearMarks),U_=PI(function(){var R;if(R=$KN){var F=F===void 0?window:F;if(tO===null){tO="";try{R="";try{R=F.top.location.hash}catch(V){R=F.location.hash}if(R){var n=R.match(/\bdeid=([\d,]+)/);tO=n?n[1]:""}}catch(V){}}F=tO;R=!!F.indexOf&&F.indexOf("1337")>=0}return R});
ju.prototype.disable=function(){this.T=!1;this.events!==this.U.google_js_reporting_queue&&(U_()&&g.az(this.events,fLV),this.events.length=0)};
ju.prototype.start=function(R,F){if(!this.T)return null;var n=r_f()||VmW();R=new vRR(R,F,n);F="goog_"+R.label+"_"+R.uniqueId+"_start";Ha&&U_()&&Ha.mark(F);return R};
ju.prototype.end=function(R){if(this.T&&typeof R.value==="number"){var F=r_f()||VmW();R.duration=F-R.value;F="goog_"+R.label+"_"+R.uniqueId+"_end";Ha&&U_()&&Ha.mark(F);!this.T||this.events.length>2048||this.events.push(R)}};var tmV=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),km=/#|$/,SMI=/[?&]($|#)/;svN.prototype.Rx=function(R,F,n,V,r){r=r||this.x0;try{var v=new u$;v.T.push(1);v.U[1]=BE("context",R);F.error&&F.meta&&F.id||(F=new l5(NP(F)));if(F.msg){var f=F.msg.substring(0,512);v.T.push(2);v.U[2]=BE("msg",f)}var z=F.meta||{};if(this.UR)try{this.UR(z)}catch(S){}if(V)try{V(z)}catch(S){}V=[z];v.T.push(3);v.U[3]=V;var q=W0N();if(q.U){var Q=q.U.url||"";v.T.push(4);v.U[4]=BE("top",Q)}var c={url:q.T.url||""};if(q.T.url){var w=g.Wa(q.T.url);var L=hB(w[1],null,w[3],w[4])}else L="";Q=[c,{url:L}];v.T.push(5);
v.U[5]=Q;FQk(this.T,r,v,n)}catch(S){try{FQk(this.T,r,{context:"ecmserr",rctx:R,msg:NP(S),url:q&&q.T.url},n)}catch(p){}}return this.u5};
g.a(l5,nRW);var dt,MP,GY=new ju;dt=new function(){var R="https:";N2&&N2.location&&N2.location.protocol==="http:"&&(R="http:");this.U=R;this.T=.01};
MP=new svN;N2&&N2.document&&(N2.document.readyState=="complete"?XEk():GY.T&&Tl(N2,"load",function(){XEk()}));var C$R=Date.now(),RZ=-1,ZI=-1,mZk,Ff=-1,eu=!1;nv.prototype.equals=function(R,F){return!!R&&(!(F===void 0?0:F)||this.volume==R.volume)&&this.N==R.N&&F6(this.T,R.T)&&!0};Va.prototype.Fs=function(){return this.X};
Va.prototype.equals=function(R,F){return this.J.equals(R.J,F===void 0?!1:F)&&this.X==R.X&&F6(this.N,R.N)&&F6(this.Z,R.Z)&&this.T==R.T&&this.W==R.W&&this.U==R.U&&this.V==R.V};var P7R={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},to={kD:"start",s0:"firstquartile",C1:"midpoint",aj:"thirdquartile",COMPLETE:"complete",ERROR:"error",vR:"metric",PAUSE:"pause",f1:"resume",iC:"skip",J2:"viewable_impression",DW:"mute",U3:"unmute",AZ:"fullscreen",o5:"exitfullscreen",fq:"bufferstart",xd:"bufferfinish",Qg:"fully_viewable_audible_half_duration_impression",eW:"measurable_impression",d7:"abandon",JZ:"engagedview",lw:"impression",EV:"creativeview",LOADED:"loaded",
NTH:"progress",CLOSE:"close",dd2:"collapse",L1H:"overlay_resize",HxX:"overlay_unmeasurable_impression",h95:"overlay_unviewable_impression",GdG:"overlay_viewable_immediate_impression",R9H:"overlay_viewable_end_of_session_impression",aB:"custom_metric_viewable",Vt:"audio_audible",HJ:"audio_measurable",Lq:"audio_impression"},Gbv="start firstquartile midpoint thirdquartile resume loaded".split(" "),dmj=["start","firstquartile","midpoint","thirdquartile"],OkE=["abandon"],ho={UNKNOWN:-1,kD:0,s0:1,C1:2,
aj:3,COMPLETE:4,vR:5,PAUSE:6,f1:7,iC:8,J2:9,DW:10,U3:11,AZ:12,o5:13,Qg:14,eW:15,d7:16,JZ:17,lw:18,EV:19,LOADED:20,aB:21,fq:22,xd:23,Lq:27,HJ:28,Vt:29};var oRW={QI2:"addEventListener",rx5:"getMaxSize",VxH:"getScreenSize",Lpz:"getState",hT2:"getVersion",IH1:"removeEventListener",Ls2:"isViewable"};u6I.prototype.update=function(R){R&&R.document&&(this.X=rk(!1,R,this.isMobileDevice),this.T=rk(!0,R,this.isMobileDevice),muJ(this,R),BQR(this,R))};cx.prototype.cancel=function(){kR().clearTimeout(this.T);this.T=null};
cx.prototype.schedule=function(){var R=this,F=kR(),n=yA().T.T;this.T=F.setTimeout(TY(n,$m(143,function(){R.U++;R.N.sample()})),TQV())};g.X=wk.prototype;g.X.KY=function(){return!1};
g.X.initialize=function(){return this.isInitialized=!0};
g.X.X_=function(){return this.T.PG};
g.X.YX=function(){return this.T.Nq};
g.X.fail=function(R,F){if(!this.Nq||(F===void 0?0:F))this.Nq=!0,this.PG=R,this.V=0,this.T!=this||Lv(this)};
g.X.getName=function(){return this.T.Y5};
g.X.sX=function(){return this.T.BZ()};
g.X.BZ=function(){return{}};
g.X.JK=function(){return this.T.V};
g.X.Ve=function(){var R=zW();R.T=rk(!0,this.N,R.isMobileDevice)};
g.X.L8=function(){BQR(zW(),this.N)};
g.X.Sq=function(){return this.J.T};
g.X.sample=function(){};
g.X.isActive=function(){return this.T.Z};
g.X.rC=function(R){var F=this.T;this.T=R.JK()>=this.V?R:this;F!==this.T?(this.Z=this.T.Z,Lv(this)):this.Z!==this.T.Z&&(this.Z=this.T.Z,Lv(this))};
g.X.nS=function(R){if(R.U===this.T){var F=!this.J.equals(R,this.UZ);this.J=R;F&&IL6(this)}};
g.X.Js=function(){return this.UZ};
g.X.dispose=function(){this.lS=!0};
g.X.Zo=function(){return this.lS};g.X=sO.prototype;g.X.observe=function(){return!0};
g.X.unobserve=function(){};
g.X.J3=function(R){this.W=R};
g.X.dispose=function(){if(!this.Zo()){var R=this.U;g.VK(R.W,this);R.UZ&&this.Js()&&OYf(R);this.unobserve();this.jQ=!0}};
g.X.Zo=function(){return this.jQ};
g.X.sX=function(){return this.U.sX()};
g.X.JK=function(){return this.U.JK()};
g.X.X_=function(){return this.U.X_()};
g.X.YX=function(){return this.U.YX()};
g.X.rC=function(){};
g.X.nS=function(){this.LZ()};
g.X.Js=function(){return this.lS};g.X=pv.prototype;g.X.JK=function(){return this.T.JK()};
g.X.X_=function(){return this.T.X_()};
g.X.YX=function(){return this.T.YX()};
g.X.create=function(R,F,n){var V=null;this.T&&(V=this.Pf(R,F,n),Sj(this.T,V));return V};
g.X.H2=function(){return this.BF()};
g.X.BF=function(){return!1};
g.X.init=function(R){return this.T.initialize()?(Sj(this.T,this),this.J=R,!0):!1};
g.X.rC=function(R){R.JK()==0&&this.J(R.X_(),this)};
g.X.nS=function(){};
g.X.Js=function(){return!1};
g.X.dispose=function(){this.W=!0};
g.X.Zo=function(){return this.W};
g.X.sX=function(){return{}};Xf.prototype.add=function(R,F,n){++this.N;R=new Duj(R,F,n);this.T.push(new Duj(R.U,R.T,R.N+this.N/4096));this.U=!0;return this};J_N.prototype.toString=function(){var R="//pagead2.googlesyndication.com//pagead/gen_204",F=aZ(this.T);F.length>0&&(R+="?"+F);return R};g.G.prototype.Ra=!1;g.G.prototype.Zo=function(){return this.Ra};
g.G.prototype.dispose=function(){this.Ra||(this.Ra=!0,this.oG())};
g.G.prototype[Symbol.dispose]=function(){this.dispose()};
g.G.prototype.addOnDisposeCallback=function(R,F){this.Ra?F!==void 0?R.call(F):R():(this.fm||(this.fm=[]),F&&(R=R.bind(F)),this.fm.push(R))};
g.G.prototype.oG=function(){if(this.fm)for(;this.fm.length;)this.fm.shift()()};var b1k=[0,O1v,JRN,-1];UO.prototype.update=function(R,F,n){R&&(this.T+=F,this.U+=F,this.J+=F,this.N=Math.max(this.N,this.J));if(n===void 0?!R:n)this.J=0};var NQv=[1,.75,.5,.3,0];jj.prototype.update=function(R,F,n,V,r,v){v=v===void 0?!0:v;F=r?Math.min(R,F):F;for(r=0;r<this.U.length;r++){var f=this.U[r],z=F>0&&F>=f;f=!(R>0&&R>=f)||n;this.T[r].update(v&&z,V,!v||f)}};mP.prototype.update=function(R,F,n,V){this.X=this.X!=-1?Math.min(this.X,F.M8):F.M8;this.J1=Math.max(this.J1,F.M8);this.jQ=this.jQ!=-1?Math.min(this.jQ,F.Yb):F.Yb;this.PG=Math.max(this.PG,F.Yb);this.k5.update(F.Yb,n.Yb,F.T,R,V);this.bS+=R;F.M8===0&&(this.Y5+=R);this.U.update(F.M8,n.M8,F.T,R,V);n=V||n.d6!=F.d6?n.isVisible()&&F.isVisible():n.isVisible();F=!F.isVisible()||F.T;this.dX.update(n,R,F)};
mP.prototype.tK=function(){return this.dX.N>=this.h1};if(qa&&qa.URL){var Z1f=qa.URL,e29;a:{if(Z1f){var RVh=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var zI=RVh.exec(decodeURIComponent(Z1f));if(zI){e29=zI[1]&&zI[1].length>1?zI[1].substring(1):"true";break a}}catch(R){}}e29=""}MP.u5=!(e29.length>0)};var FIr=new eR(0,0,0,0);var FLE=new eR(0,0,0,0);g.a(D2,g.G);g.X=D2.prototype;
g.X.oG=function(){if(this.ED.T){if(this.mI.NB){var R=this.ED.T;typeof R.removeEventListener==="function"&&R.removeEventListener("mouseover",this.mI.NB,CY());this.mI.NB=null}this.mI.UP&&(R=this.ED.T,typeof R.removeEventListener==="function"&&R.removeEventListener("mouseout",this.mI.UP,CY()),this.mI.UP=null)}this.jr&&this.jr.dispose();this.Cl&&this.Cl.dispose();delete this.VC;delete this.GE;delete this.Jd;delete this.ED.kV;delete this.ED.T;delete this.mI;delete this.jr;delete this.Cl;delete this.Fh;
g.G.prototype.oG.call(this)};
g.X.wZ=function(){return this.Cl?this.Cl.T:this.position};
g.X.ev=function(R){yA().ev(R)};
g.X.Js=function(){return!1};
g.X.Il=function(){return new mP};
g.X.zY=function(){return this.VC};
g.X.zF=function(R){return vBN(this,R,1E4)};
g.X.CH=function(R,F,n,V,r,v,f){this.Dw||(this.Cs&&(R=this.Wl(R,n,r,f),V=V&&this.m8.M8>=(this.d6()?.3:.5),this.Xr(v,R,V),this.qH=F,R.M8>0&&-1===this.vg&&(this.vg=F),this.rd==-1&&this.tK()&&(this.rd=F),this.Vb==-2&&(this.Vb=IZ(this.wZ())?R.M8:-1),this.m8=R),this.GE(this))};
g.X.Xr=function(R,F,n){this.zY().update(R,F,this.m8,n)};
g.X.Tp=function(){return new TX};
g.X.Wl=function(R,F,n,V){n=this.Tp();n.T=F;F=kR().U;F=ov(qa)===0?-1:F.isVisible()?0:1;n.U=F;n.M8=this.rH(R);n.d6=this.d6();n.Yb=V;return n};
g.X.rH=function(R){return this.opacity===0&&NN(this.Fh,"opac")===1?0:R};
g.X.d6=function(){return!1};
g.X.aL=function(){return this.UCH||this.JJo};
g.X.NO=function(){b5()};
g.X.g0=function(){b5()};
g.X.oJ=function(){return this.requestSource};
g.X.gT=function(){return 0};
g.X.tK=function(){return this.VC.tK()};
g.X.V0=function(){var R=this.Cs;R=(this.hasCompleted||this.Zo())&&!R;var F=yA().U!==2||this.ty5;return this.Dw||F&&R?2:this.tK()?4:3};
g.X.Fw=function(){return 0};g.xn.prototype.next=function(){return g.q$};
g.q$={done:!0,value:void 0};g.xn.prototype.YC=function(){return this};g.a(cb_,TX);var QU=SJ_([void 0,1,2,3,4,8,16]),cn=SJ_([void 0,4,8,16]),nN$={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:GW("p0",cn),p1:GW("p1",cn),p2:GW("p2",cn),p3:GW("p3",cn),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:J3("mtos1",[0,2,4],!1,cn),mtos2:J3("mtos2",[0,2,4],!1,cn),mtos3:J3("mtos3",[0,2,4],!1,cn),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:GW("a0",cn),a1:GW("a1",cn),a2:GW("a2",cn),a3:GW("a3",cn),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:GW("c0",cn),c1:GW("c1",cn),c2:GW("c2",cn),c3:GW("c3",cn),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:GW("qmtos",QU),qnc:GW("qnc",QU),qmv:GW("qmv",QU),qnv:GW("qnv",QU),
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:GW("ss0",cn),ss1:GW("ss1",cn),ss2:GW("ss2",cn),ss3:GW("ss3",cn),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"},VE$=Object.assign({},nN$,{avid:Es("audio"),avas:"avas",vs:"vs"}),rv5={atos:"atos",avt:J3("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(R,F){return function(n){return n[R]===void 0&&F!==void 0?F:n[R]}}("ss",0),
t:"t"};Na.prototype.getValue=function(){return this.U};
Na.prototype.update=function(R,F){R>=32||(this.T&1<<R&&!F?this.U&=~(1<<R):this.T&1<<R||!F||(this.U|=1<<R),this.T|=1<<R)};g.a(EO,mP);
EO.prototype.update=function(R,F,n,V){if(!F.paused){mP.prototype.update.call(this,R,F,n,V);var r=Yn(F)&&Yn(n),v=(V?Math.min(F.M8,n.M8):n.M8)>=.5;fv(F.volume)&&(this.J=this.J!=-1?Math.min(this.J,F.volume):F.volume,this.Z=Math.max(this.Z,F.volume));v&&(this.lS+=R,this.UZ+=r?R:0);this.T.update(F.M8,n.M8,F.T,R,V,r);this.N.update(!0,R);this.W.update(r,R);this.Nq.update(n.fullscreen,R);this.aG.update(r&&!v,R);R=Math.floor(F.mediaTime/1E3);this.Mq.update(R,F.isVisible());this.uS.update(R,F.M8>=1);this.SQ.update(R,
Yn(F))}};axf.prototype.U=function(R){this.N||(this.T(R)?(R=BpW(this.UZ,this.J,R),this.W|=R,R=R==0):R=!1,this.N=R)};g.a(Px,axf);Px.prototype.T=function(){return!0};
Px.prototype.Z=function(){return!1};
Px.prototype.getId=function(){var R=this,F=ue(to,function(n){return n==R.J});
return ho[F].toString()};
Px.prototype.toString=function(){var R="";this.Z()&&(R+="c");this.N&&(R+="s");this.W>0&&(R+=":"+this.W);return this.getId()+R};g.a(bI,Px);bI.prototype.U=function(R,F){F=F===void 0?null:F;F!=null&&this.X.push(F);Px.prototype.U.call(this,R)};g.a(Z2,CbW);Z2.prototype.U=function(){return null};
Z2.prototype.N=function(){return[]};g.a(ej,sO);g.X=ej.prototype;g.X.FM=function(){if(this.element){var R=this.element,F=this.U.T.N;try{try{var n=HY9(R.getBoundingClientRect())}catch(Q){n=new eR(0,0,0,0)}var V=n.right-n.left,r=n.bottom-n.top,v=Xok(R,F),f=v.x,z=v.y;var q=new eR(Math.round(z),Math.round(f+V),Math.round(z+r),Math.round(f))}catch(Q){q=FIr.clone()}this.N=q;this.T=KQN(this,this.N)}};
g.X.Oc=function(){this.Z=this.U.J.T};
g.X.Cz=function(R){var F=NN(this.Fh,"od")==1;return Rs9(R,this.Z,this.element,F)};
g.X.i9=function(){this.timestamp=b5()};
g.X.LZ=function(){this.i9();this.FM();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var R=this.element;var F=new g.QX(R.videoWidth,R.videoHeight);R=this.T;var n=Rv(R),V=R.getHeight(),r=F.width;F=F.height;r<=0||F<=0||n<=0||V<=0||(r/=F,F=n/V,R=R.clone(),r>F?(n/=r,V=(V-n)/2,V>0&&(V=R.top+V,R.top=Math.round(V),R.bottom=Math.round(V+n))):(V*=r,n=Math.round((n-V)/2),n>0&&(n=R.left+n,R.left=Math.round(n),R.right=Math.round(n+V))));this.T=R}this.Oc();
R=this.T;n=this.Z;R=R.left<=n.right&&n.left<=R.right&&R.top<=n.bottom&&n.top<=R.bottom?new eR(Math.max(R.top,n.top),Math.min(R.right,n.right),Math.min(R.bottom,n.bottom),Math.max(R.left,n.left)):new eR(0,0,0,0);n=R.top>=R.bottom||R.left>=R.right?new eR(0,0,0,0):R;R=this.U.J;F=r=V=0;if((this.T.bottom-this.T.top)*(this.T.right-this.T.left)>0)if(this.Cz(n))n=new eR(0,0,0,0);else{V=zW().J;F=new eR(0,V.height,V.width,0);var v;V=Kv(n,(v=this.W)!=null?v:this.T);r=Kv(n,zW().T);F=Kv(n,F)}v=n.top>=n.bottom||
n.left>=n.right?new eR(0,0,0,0):nY(n,-this.T.left,-this.T.top);Qa()||(r=V=0);this.UZ=new Va(R,this.element,this.T,v,V,r,this.timestamp,F)};
g.X.getName=function(){return this.U.getName()};var vNq=new eR(0,0,0,0);g.a(RW,ej);g.X=RW.prototype;g.X.observe=function(){this.J();return!0};
g.X.nS=function(){ej.prototype.LZ.call(this)};
g.X.i9=function(){};
g.X.FM=function(){};
g.X.LZ=function(){this.J();ej.prototype.LZ.call(this)};
g.X.rC=function(R){R=R.isActive();R!==this.V&&(R?this.J():(zW().T=new eR(0,0,0,0),this.T=new eR(0,0,0,0),this.Z=new eR(0,0,0,0),this.timestamp=-1));this.V=R};var wR={},BFW=(wR.firstquartile=0,wR.midpoint=1,wR.thirdquartile=2,wR.complete=3,wR);g.a(n_,D2);g.X=n_.prototype;g.X.Js=function(){return!0};
g.X.Kx=function(){return this.jK==2};
g.X.zF=function(R){return vBN(this,R,Math.max(1E4,this.N/3))};
g.X.CH=function(R,F,n,V,r,v,f){var z=this,q=this.X(this)||{};g.xc(q,r);this.N=q.duration||this.N;this.UZ=q.isVpaid||this.UZ;this.Y5=q.isYouTube||this.Y5;kR();this.k5=!1;r=oBe(this,F);TFe(this)===1&&(v=r);D2.prototype.CH.call(this,R,F,n,V,q,v,f);this.nD&&this.nD.N&&g.az(this.Z,function(Q){Q.U(z)})};
g.X.Xr=function(R,F,n){D2.prototype.Xr.call(this,R,F,n);vd(this).update(R,F,this.m8,n);this.h1=Yn(this.m8)&&Yn(F);this.PG==-1&&this.uS&&(this.PG=this.zY().N.T);this.eE.N=0;R=this.tK();F.isVisible()&&lI(this.eE,"vs");R&&lI(this.eE,"vw");fv(F.volume)&&lI(this.eE,"am");Yn(F)?lI(this.eE,"a"):lI(this.eE,"mut");this.iF&&lI(this.eE,"f");F.U!=-1&&(lI(this.eE,"bm"),F.U==1&&(lI(this.eE,"b"),Yn(F)&&lI(this.eE,"umutb")));Yn(F)&&F.isVisible()&&lI(this.eE,"avs");this.h1&&R&&lI(this.eE,"avw");F.M8>0&&lI(this.eE,
"pv");f_(this,this.zY().N.T,!0)&&lI(this.eE,"gdr");uI(this.zY().U,1)>=2E3&&lI(this.eE,"pmx");this.k5&&lI(this.eE,"tvoff")};
g.X.Il=function(){return new EO};
g.X.zY=function(){return this.VC};
g.X.Tp=function(){return new cb_};
g.X.Wl=function(R,F,n,V){R=D2.prototype.Wl.call(this,R,F,n,V===void 0?-1:V);R.fullscreen=this.iF;R.paused=this.Kx();R.volume=n.volume;fv(R.volume)||(this.mQ++,F=this.m8,fv(F.volume)&&(R.volume=F.volume));n=n.currentTime;R.mediaTime=n!==void 0&&n>=0?n:-1;return R};
g.X.rH=function(R){return zW(),this.iF?1:D2.prototype.rH.call(this,R)};
g.X.gT=function(){return 1};
g.X.getDuration=function(){return this.N};
g.X.V0=function(){return this.Dw?2:UZJ(this)?5:this.tK()?4:3};
g.X.Fw=function(){return this.aG?this.zY().W.N>=2E3?4:3:2};
g.X.J3=function(R){this.Cl&&this.Cl.J3(R)};var fN$=g.J7();Jb9.prototype.reset=function(){this.T=[];this.U=[]};
var w2=i$(Jb9);g.a(s7,pv);g.X=s7.prototype;g.X.getName=function(){return(this.U?this.U:this.T).getName()};
g.X.sX=function(){return(this.U?this.U:this.T).sX()};
g.X.JK=function(){return(this.U?this.U:this.T).JK()};
g.X.init=function(R){var F=!1;(0,g.az)(this.N,function(n){n.initialize()&&(F=!0)});
F&&(this.J=R,Sj(this.T,this));return F};
g.X.dispose=function(){(0,g.az)(this.N,function(R){R.dispose()});
pv.prototype.dispose.call(this)};
g.X.H2=function(){return t3(this.N,function(R){return R.KY()})};
g.X.BF=function(){return t3(this.N,function(R){return R.KY()})};
g.X.Pf=function(R,F,n){return new ej(R,this.T,F,n)};
g.X.nS=function(R){this.U=R.U};var bkv={threshold:[0,.3,.5,.75,1]};g.a(p_,ej);g.X=p_.prototype;g.X.observe=function(){var R=this;this.J1||(this.J1=b5());if(aLI(298,function(){return Zkk(R)}))return!0;
this.U.fail("msf");return!1};
g.X.unobserve=function(){if(this.J&&this.element)try{this.J.unobserve(this.element),this.V?(this.V.unobserve(this.element),this.V=null):this.X&&(this.X.disconnect(),this.X=null)}catch(R){}};
g.X.LZ=function(){var R=XN(this);R.length>0&&Ao(this,R);ej.prototype.LZ.call(this)};
g.X.FM=function(){};
g.X.Cz=function(){return!1};
g.X.Oc=function(){};
g.X.sX=function(){var R={};return Object.assign(this.U.sX(),(R.niot_obs=this.J1,R.niot_cbk=this.Nq,R))};
g.X.getName=function(){return"nio"};g.a(aW,pv);aW.prototype.getName=function(){return"nio"};
aW.prototype.BF=function(){return!zW().U&&this.T.T.N.IntersectionObserver!=null};
aW.prototype.Pf=function(R,F,n){return new p_(R,this.T,F,n)};g.a(C_,wk);C_.prototype.Sq=function(){return zW().T};
C_.prototype.KY=function(){var R=R46();this.V!==R&&(this.T!=this&&R>this.T.V&&(this.T=this,Lv(this)),this.V=R);return R==2};T2.prototype.sample=function(){U7(this,SS(),!1)};
T2.prototype.J=function(){var R=Qa(),F=b5();R?(eu||(RZ=F,g.az(w2.T,function(n){var V=n.zY();V.gX=$n(V,F,n.jK!=1)})),eu=!0):(this.X=vDN(this,F),eu=!1,mZk=F,g.az(w2.T,function(n){n.Cs&&(n.zY().V=F)}));
U7(this,SS(),!R)};
var oW=i$(T2);var tpk=null,ZZ="",b0=!1;var QXI=qdJ().W8,Hd=qdJ().P8;var Sde={gC1:"visible",y5H:"audible",Z7Q:"time",tmG:"timetype"},LYN={visible:function(R){return/^(100|[0-9]{1,2})$/.test(R)},
audible:function(R){return R=="0"||R=="1"},
timetype:function(R){return R=="mtos"||R=="tos"},
time:function(R){return/^(100|[0-9]{1,2})%$/.test(R)||/^([0-9])+ms$/.test(R)}};
wbI.prototype.setTime=function(R,F,n){F=="ms"?(this.N=R,this.J=-1):(this.N=-1,this.J=R);this.W=n===void 0?"tos":n;return this};g.a(Bd,Px);Bd.prototype.getId=function(){return this.X};
Bd.prototype.Z=function(){return!0};
Bd.prototype.T=function(R){var F=R.zY(),n=R.getDuration();return t3(this.V,function(V){if(V.T!=void 0)var r=pbV(V,F);else b:{switch(V.W){case "mtos":r=V.U?F.W.N:F.N.T;break b;case "tos":r=V.U?F.W.T:F.N.T;break b}r=0}r==0?V=!1:(V=V.N!=-1?V.N:n!==void 0&&n>0?V.J*n:-1,V=V!=-1&&r>=V);return V})};g.a(m8,s2R);m8.prototype.T=function(R){var F=new LLN;F.T=Ma(R,nN$);F.U=Ma(R,rv5);return F};g.a(g2,Px);g2.prototype.T=function(R){return UZJ(R)};g.a(O7,CbW);g.a(IW,Px);IW.prototype.T=function(R){return R.zY().tK()};g.a(kw,bI);kw.prototype.T=function(R){var F=g.Rz(this.X,NN(yA().Fh,"ovms"));return!R.Dw&&(R.jK!=0||F)};g.a(Yw,O7);Yw.prototype.U=function(){return new kw(this.T)};
Yw.prototype.N=function(){return[new IW("viewable_impression",this.T),new g2(this.T)]};g.a(Jo,RW);Jo.prototype.J=function(){var R=g.WM("ima.admob.getViewability"),F=NN(this.Fh,"queryid");typeof R==="function"&&F&&R(F)};
Jo.prototype.getName=function(){return"gsv"};g.a(G2,pv);G2.prototype.getName=function(){return"gsv"};
G2.prototype.BF=function(){var R=zW();yA();return R.U&&!1};
G2.prototype.Pf=function(R,F,n){return new Jo(this.T,F,n)};g.a(d2,RW);d2.prototype.J=function(){var R=this,F=g.WM("ima.bridge.getNativeViewability"),n=NN(this.Fh,"queryid");typeof F==="function"&&n&&F(n,function(V){g.g7(V)&&R.X++;var r=V.opt_nativeViewVisibleBounds||{},v=V.opt_nativeViewHidden;R.T=h19(V.opt_nativeViewBounds||{});var f=R.U.J;f.T=v?vNq.clone():h19(r);R.timestamp=V.opt_nativeTime||-1;zW().T=f.T;V=V.opt_nativeVolume;V!==void 0&&(f.volume=V)})};
d2.prototype.getName=function(){return"nis"};g.a(MD,pv);MD.prototype.getName=function(){return"nis"};
MD.prototype.BF=function(){var R=zW();yA();return R.U&&!1};
MD.prototype.Pf=function(R,F,n){return new d2(this.T,F,n)};g.a(l0,wk);g.X=l0.prototype;g.X.KY=function(){return this.U.tp!=null};
g.X.BZ=function(){var R={};this.Mq&&(R.mraid=this.Mq);this.jQ&&(R.mlc=1);R.mtop=this.U.xcH;this.X&&(R.mse=this.X);this.bS&&(R.msc=1);R.mcp=this.U.compatibility;return R};
g.X.dI=function(R){var F=g.Cq.apply(1,arguments);try{return this.U.tp[R].apply(this.U.tp,F)}catch(n){Pa(538,n,.01,function(V){V.method=R})}};
g.X.initialize=function(){var R=this;if(this.isInitialized)return!this.YX();this.isInitialized=!0;if(this.U.compatibility===2)return this.X="ng",this.fail("w"),!1;if(this.U.compatibility===1)return this.X="mm",this.fail("w"),!1;zW().V=!0;this.N.document.readyState&&this.N.document.readyState=="complete"?C3e(this):OO(this.N,"load",function(){kR().setTimeout($m(292,function(){return C3e(R)}),100)},292);
return!0};
g.X.Ve=function(){var R=zW(),F=jXJ(this,"getMaxSize");R.T=new eR(0,F.width,F.height,0)};
g.X.L8=function(){zW().J=jXJ(this,"getScreenSize")};
g.X.dispose=function(){oDk(this);wk.prototype.dispose.call(this)};var tEU=new function(R,F){this.key=R;this.defaultValue=F===void 0?!1:F;this.valueType="boolean"}("45378663");g.X=E7.prototype;g.X.Vj=function(R){iI(R,!1);lxf(R)};
g.X.Rl=function(){};
g.X.Ka=function(R,F,n,V){var r=this;R=new n_(N2,R,n?F:-1,7,this.kM(),this.ZX());R.N6=V;QDI(R.Fh);le(R.Fh,"queryid",R.N6);R.ev("");zsN(R,function(){return r.GF.apply(r,g.I(g.Cq.apply(0,arguments)))},function(){return r.eGS.apply(r,g.I(g.Cq.apply(0,arguments)))});
(V=i$(L_).T)&&rb6(R,V);this.N&&(R.J3(this.N),this.N=null);R.ED.kV&&i$(FYJ);return R};
g.X.rC=function(R){switch(R.JK()){case 0:if(R=i$(L_).T)R=R.T,g.VK(R.W,this),R.UZ&&this.Js()&&OYf(R);Pd();break;case 2:yr()}};
g.X.nS=function(){};
g.X.Js=function(){return!1};
g.X.eGS=function(R,F){R.Dw=!0;switch(R.gT()){case 1:mmE(R,F);break;case 2:this.fF(R)}};
g.X.r1X=function(R){var F=R.X(R);F&&(F=F.volume,R.aG=fv(F)&&F>0);hsR(R,0);return z2(R,"start",Qa())};
g.X.HM=function(R,F,n){U7(oW,[R],!Qa());return this.v8(R,F,n)};
g.X.v8=function(R,F,n){return z2(R,n,Qa())};
g.X.IoH=function(R){return ne(R,"firstquartile",1)};
g.X.dqH=function(R){R.uS=!0;return ne(R,"midpoint",2)};
g.X.VQG=function(R){return ne(R,"thirdquartile",3)};
g.X.g52=function(R){var F=ne(R,"complete",4);Vr(R);return F};
g.X.v5q=function(R){R.jK=3;return z2(R,"error",Qa())};
g.X.vN=function(R,F,n){F=Qa();if(R.Kx()&&!F){var V=R.zY(),r=b5();V.V=r}U7(oW,[R],!F);R.Kx()&&(R.jK=1);return z2(R,n,F)};
g.X.qZH=function(R,F){F=this.HM(R,F||{},"skip");Vr(R);return F};
g.X.DqG=function(R,F){iI(R,!0);return this.HM(R,F||{},"fullscreen")};
g.X.CSz=function(R,F){iI(R,!1);return this.HM(R,F||{},"exitfullscreen")};
g.X.FX=function(R,F,n){F=R.zY();var V=b5();F.gX=$n(F,V,R.jK!=1);U7(oW,[R],!Qa());R.jK==1&&(R.jK=2);return z2(R,n,Qa())};
g.X.SZZ=function(R){U7(oW,[R],!Qa());return R.U()};
g.X.d5=function(R){U7(oW,[R],!Qa());this.b1(R);Vr(R);return R.U()};
g.X.GF=function(){};
g.X.fF=function(){};
g.X.b1=function(){};
g.X.h4=function(){};
g.X.ER=function(){};
g.X.ZX=function(){this.T||(this.T=this.ER());return this.T==null?new Z2:new Yw(this.T)};
g.X.kM=function(){return new m8};g.a(V$,Px);V$.prototype.T=function(R){return R.Fw()==4};g.a(rD,bI);rD.prototype.T=function(R){R=R.Fw();return R==3||R==4};g.a(vv,O7);vv.prototype.U=function(){return new rD(this.T)};
vv.prototype.N=function(){return[new V$(this.T)]};g.a(fe,s2R);fe.prototype.T=function(R){R&&(R.e===28&&(R=Object.assign({},R,{avas:3})),R.vs===4||R.vs===5)&&(R=Object.assign({},R,{vs:3}));var F=new LLN;F.T=Ma(R,VE$);F.U=Ma(R,rv5);return F};KY9.prototype.U=function(){return g.WM(this.T)};g.a(tH,E7);g.X=tH.prototype;g.X.Rl=function(R,F){var n=this,V=i$(L_);if(V.T!=null)switch(V.T.getName()){case "nis":var r=kbW(this,R,F);break;case "gsv":r=xmN(this,R,F);break;case "exc":r=YdR(this,R)}r||(F.opt_overlayAdElement?r=void 0:F.opt_adElement&&(r=OlV(this,R,F.opt_adElement,F.opt_osdId)));r&&r.gT()==1&&(r.X==g.$W&&(r.X=function(v){return n.h4(v)}),ilv(this,r,F));
return r};
g.X.h4=function(R){R.U=0;R.lS=0;if(R.J=="h"||R.J=="n"){yA();R.SQ&&(yA(),RN(this)!="h"&&RN(this));var F=g.WM("ima.common.getVideoMetadata");if(typeof F==="function")try{var n=F(R.N6)}catch(r){R.U|=4}else R.U|=2}else if(R.J=="b")if(F=g.WM("ytads.bulleit.getVideoMetadata"),typeof F==="function")try{n=F(R.N6)}catch(r){R.U|=4}else R.U|=2;else if(R.J=="ml")if(F=g.WM("ima.common.getVideoMetadata"),typeof F==="function")try{n=F(R.N6)}catch(r){R.U|=4}else R.U|=2;else R.U|=1;R.U||(n===void 0?R.U|=8:n===null?
R.U|=16:g.g7(n)?R.U|=32:n.errorCode!=null&&(R.lS=n.errorCode,R.U|=64));n==null&&(n={});F=n;R.V=0;for(var V in P7R)F[V]==null&&(R.V|=P7R[V]);IFR(F,"currentTime");IFR(F,"duration");fv(n.volume)&&fv()&&(n.volume*=NaN);return n};
g.X.ER=function(){yA();RN(this)!="h"&&RN(this);var R=JCj(this);return R!=null?new KY9(R):null};
g.X.fF=function(R){!R.T&&R.Dw&&FE(this,R,"overlay_unmeasurable_impression")&&(R.T=!0)};
g.X.b1=function(R){R.TM&&(R.tK()?FE(this,R,"overlay_viewable_end_of_session_impression"):FE(this,R,"overlay_unviewable_impression"),R.TM=!1)};
g.X.GF=function(){};
g.X.Ka=function(R,F,n,V){if(yA().flags.pH(tEU)){var r=NN(yA().Fh,"mm"),v={};(r=(v[oM.r7]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",v[oM.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",v)[r])&&lFf(this,r);this.J==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&Pa(1044,Error())}R=E7.prototype.Ka.call(this,R,F,n,V);this.W&&(F=this.Z,R.W==null&&(R.W=new qJN),F.T[R.N6]=R.W,R.W.W=fN$);return R};
g.X.Vj=function(R){R&&R.gT()==1&&this.W&&delete this.Z.T[R.N6];return E7.prototype.Vj.call(this,R)};
g.X.ZX=function(){this.T||(this.T=this.ER());return this.T==null?new Z2:this.J==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new vv(this.T):new Yw(this.T)};
g.X.kM=function(){return this.J==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new fe:new m8};
g.X.J3=function(R,F,n,V,r){F=new eR(n,F+V,n+r,F);(R=cd(w2,R))?R.J3(F):this.N=F};
var zVs=E_(193,EDf,void 0,gD9);g.h7("Goog_AdSense_Lidar_sendVastEvent",zVs);var qRq=$m(194,function(R,F){F=F===void 0?{}:F;R=MpJ(i$(tH),R,F);return Npf(R)});
g.h7("Goog_AdSense_Lidar_getViewability",qRq);var QJv=E_(195,function(){return Jxk()});
g.h7("Goog_AdSense_Lidar_getUrlSignalsArray",QJv);var cv5=$m(196,function(){return JSON.stringify(Jxk())});
g.h7("Goog_AdSense_Lidar_getUrlSignalsList",cv5);var bl_=g.ER(["//ep2.adtrafficquality.google/sodar/",""]),Zlv=g.ER(["//tpc.googlesyndication.com/sodar/",""]);g.a(Q$,Error);g.a(SN,g.G);SN.prototype.nL=function(){return this.wpc.f()};
SN.prototype.OR=function(R){this.wpc.c(R)};
SN.prototype.mE=function(R){return this.wpc.m(njN(R))};
SN.prototype.Bd=function(R){return this.wpc.mws(njN(R))};
g.a(cv,g.G);cv.prototype.snapshot=function(R){return this.c_.s(Object.assign({},R.wT&&{c:R.wT},R.Gc&&{s:R.Gc},R.fV!==void 0&&{p:R.fV}))};
cv.prototype.r_=function(R){this.c_.e(R)};
cv.prototype.fn=function(){return this.c_.l()};g.a(sH,g.G);sH.prototype.share=function(){if(this.Zo())throw Error("E:AD");this.U++;return this};
sH.prototype.dispose=function(){--this.U||g.G.prototype.dispose.call(this)};zHv.prototype.jx=function(R,F){this.T.jx("/client_streamz/bg/frs",R,F)};
qhI.prototype.jx=function(R,F,n,V,r,v){this.T.jx("/client_streamz/bg/wrl",R,F,n,V,r,v)};
Qrj.prototype.Yq=function(R,F){this.T.vE("/client_streamz/bg/ec",R,F)};
cNk.prototype.jx=function(R,F,n){this.T.jx("/client_streamz/bg/el",R,F,n)};
w4e.prototype.Yq=function(R,F){this.T.vE("/client_streamz/bg/cec",R,F)};
ShE.prototype.Yq=function(R,F){this.T.vE("/client_streamz/bg/po/csc",R,F)};
L5I.prototype.Yq=function(R,F){this.T.vE("/client_streamz/bg/po/ctav",R,F)};
srN.prototype.Yq=function(R,F){this.T.vE("/client_streamz/bg/po/cwsc",R,F)};g.a(p4v,P4);g.a(AH,P4);var jN=[1,2,3];var w_O=[0,jN,lbI,xKN,dKk];var SRq=[0,nC,[0,BPI,O1v]];g.a(aN,P4);var UH=[1,2,3];var LID=[0,UH,K4v,g79,rR,SRq];g.a(Ce,P4);var sJ5=[0,nC,w_O,LID];var p_q=[0,Fz];g.a(T8,P4);var X_h=[0,Fz,-1,GqV];var Avz=[0,Fz,-1,DKf,GqV];g.a(oN,P4);var EhV=[1,2,3];var aNM=[0,EhV,rR,X_h,rR,Avz,rR,p_q];g.a(y$,P4);y$.prototype.Tf=function(){var R=u3(this,3,RX,3,!0);c7(R);return R[void 0]};y$.prototype.N=NuJ([0,Fz,aNM,Mnj,nC,sJ5,kqV,YUf]);g.a(ANJ,P4);g.X=Hv.prototype;g.X.isEnabled=function(){if(!g.HM.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{DK:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.X.set=function(R,F,n){var V=!1;if(typeof n==="object"){var r=n.sameSite;V=n.secure||!1;var v=n.domain||void 0;var f=n.path||void 0;var z=n.DK}if(/[;=\s]/.test(R))throw Error('Invalid cookie name "'+R+'"');if(/[;\r\n]/.test(F))throw Error('Invalid cookie value "'+F+'"');z===void 0&&(z=-1);n=v?";domain="+v:"";f=f?";path="+f:"";V=V?";secure":"";z=z<0?"":z==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+z*1E3)).toUTCString();this.T.cookie=R+"="+F+n+f+z+V+(r!=null?
";samesite="+r:"")};
g.X.get=function(R,F){for(var n=R+"=",V=(this.T.cookie||"").split(";"),r=0,v;r<V.length;r++){v=V1(V[r]);if(v.lastIndexOf(n,0)==0)return v.slice(n.length);if(v==R)return""}return F};
g.X.remove=function(R,F,n){var V=this.get(R)!==void 0;this.set(R,"",{DK:0,path:F,domain:n});return V};
g.X.V8=function(){return hH(this).keys};
g.X.GU=function(){return hH(this).values};
g.X.isEmpty=function(){return!this.T.cookie};
g.X.clear=function(){for(var R=hH(this).keys,F=R.length-1;F>=0;F--)this.remove(R[F])};
var xi=new Hv(typeof document=="undefined"?null:document);Wv.prototype.compress=function(R){var F,n,V,r;return g.Y(function(v){switch(v.T){case 1:return F=new CompressionStream("gzip"),n=(new Response(F.readable)).arrayBuffer(),V=F.writable.getWriter(),g.k(v,V.write((new TextEncoder).encode(R)),2);case 2:return g.k(v,V.close(),3);case 3:return r=Uint8Array,g.k(v,n,4);case 4:return v.return(new r(v.U))}})};
Wv.prototype.isSupported=function(R){return R<1024?!1:typeof CompressionStream!=="undefined"};g.a(uQ,P4);Bv.prototype.setInterval=function(R){this.intervalMs=R;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
Bv.prototype.start=function(){var R=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){R.tick()},this.intervalMs),this.U=this.T())};
Bv.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
Bv.prototype.tick=function(){var R=this;if(this.enabled){var F=Math.max(this.T()-this.U,0);F<this.intervalMs*.8?this.timer=setTimeout(function(){R.tick()},this.intervalMs-F):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};g.a(mF,P4);g.a(gD,P4);g.a(g.OH,P4);g.OH.prototype.hE=function(){return ep(this,1)};
g.OH.prototype.It=i9(1);g.a(IN,P4);g.a(Ke,P4);var DtJ=aM(Ke);g.a(iQ,P4);var mt9=["platform","platformVersion","architecture","model","uaFullVersion"],DG=new Ke,xF=null;g.a(kF,P4);g.a(I3e,P4);g.a(YF,P4);g.a(JH,P4);JH.prototype.B=function(){var R=this.EZ;return Zt_(R,R[fk]|0,I3e,7)!==void 0};
JH.prototype.YN=function(){return dp(this,uQ,16)};g.a(G8,P4);G8.prototype.R4=function(R){return v4(this,2,R)};MG.prototype.R4=function(R){this.T.R4(R);return this};
MG.prototype.build=function(R,F,n,V,r,v){F=F===void 0?0:F;n=n===void 0?0:n;V=V===void 0?null:V;r=r===void 0?0:r;v=v===void 0?0:v;if(!this.bE){var f=lQ(this);var z=new g.OH;z=v4(z,1,this.U);z=Ud(z,2,gF(this.isFinal));n=Ud(z,3,Kk(n>0?n:void 0));n=Ud(n,4,Kk(r>0?r:void 0));n=Ud(n,5,Kk(v>0?v:void 0));r=n.EZ;v=r[fk]|0;n=QF(n,v)?n:pl(n,r,v)?XG(n,r):new n.constructor(sd(r,v,!0));Nm(f,g.OH,10,n)}f=this.T.clone();n=Date.now().toString();f=Ud(f,4,EJ(n));R=Ed(f,JH,3,R.slice());V&&(f=new mF,V=Ud(f,13,Kk(V)),f=
new gD,V=Nm(f,mF,2,V),f=new YF,V=Nm(f,gD,1,V),V=v4(V,2,9),Nm(R,YF,18,V));F&&nu(R,14,F);return R};g.NG.prototype.U=0;g.NG.prototype.reset=function(){this.T=this.N=this.J;this.U=0};
g.NG.prototype.getValue=function(){return this.N};g.a(AB,P4);var C9U=aM(AB);g.a(d2j,P4);var SV;SV=new MRW;g.a(bQ,g.G);g.X=bQ.prototype;g.X.oG=function(){Pv(this);this.U.stop();this.Mq.stop();g.G.prototype.oG.call(this)};
g.X.dispatch=function(R){if(R instanceof JH)this.log(R);else try{var F=new JH,n=R.F6();var V=V7(F,8,n);this.log(V)}catch(r){ZG(this,4,1)}};
g.X.log=function(R){ZG(this,2,1);if(this.bS){R=R.clone();var F=this.dX++;R=nu(R,21,F);this.componentId&&V7(R,26,this.componentId);F=R;var n=oX(F,1);var V=V===void 0?!1:V;var r=typeof n;V=n==null?n:r==="bigint"?String(MZ(64,n)):I2(n)?r==="string"?dF(n):V?lb(n):NZ(n):void 0;V==null&&(V=Date.now(),V=Number.isFinite(V)?V.toString():"0",Ud(F,1,EJ(V)));(GK?HtE(oX(F,15,void 0,void 0,Zx)):HtE(oX(F,15)))!=null||nu(F,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(V=this.experimentIds.clone(),Nm(F,
uQ,16,V));ZG(this,1,1);F=this.T.length-1E3+1;F>0&&(this.T.splice(0,F),this.J+=F,ZG(this,3,F));this.T.push(R);this.Ms||this.U.enabled||this.U.start()}};
g.X.flush=function(R,F){var n=this;if(this.T.length===0)R&&R();else if(this.PG&&this.Nq)this.N.U=3,G3J(this);else{var V=Date.now();if(this.gX>V&&this.lS<V)F&&F("throttled");else{this.network&&(typeof this.network.hE==="function"?K5E(this.N,this.network.hE()):this.N.U=0);var r=this.T.length,v=this.N.build(this.T,this.J,this.Z,this.SI,this.jQ,this.J1),f=this.tj();if(f&&this.Y5===f)F&&F("stale-auth-token");else{this.T=[];this.U.enabled&&this.U.stop();this.J=0;V=v.F6();var z;this.X&&this.X.isSupported(V.length)&&
(z=this.X.compress(V));var q=Yh6(this,V,f),Q=function(L){n.W.reset();n.U.setInterval(n.W.getValue());if(L){var S=null;try{var p=JSON.stringify(JSON.parse(L.replace(")]}'\n","")));S=C9U(p)}catch(u){}if(S){L=Number(VRf(S,1,X$("-1")));L>0&&(n.lS=Date.now(),n.gX=n.lS+L);L=Gv(vb);var C;v7&&L&&((C=S.EZ[L])==null?void 0:C[175237375])!=null&&nk(cRk,3);a:{var y=y===void 0?!1:y;if(Gv(wrI)&&Gv(vb)&&void 0===wrI){C=S.EZ;L=C[vb];if(!L)break a;if(L=L.Qk)try{L(C,175237375,ARV);break a}catch(u){J_(u)}}y&&(y=S.EZ,
(C=Gv(vb))&&C in y&&(y=y[C])&&delete y[175237375])}y=SV.T?SV.U(S,SV.T,175237375,SV.N):SV.U(S,175237375,null,SV.N);if(y=y===null?void 0:y)y=g.Pb(y,1,-1),y!==-1&&(n.W=new g.NG(y<1?1:y,3E5,.1),n.U.setInterval(n.W.getValue()))}}R&&R();n.Z=0},c=function(L,S){var p=l3(v,JH,3);
var C=Number(VRf(v,14));g.EH(n.W);n.U.setInterval(n.W.getValue());L===401&&f&&(n.Y5=f);C&&(n.J+=C);S===void 0&&(S=n.isRetryable(L));S&&(n.T=p.concat(n.T),n.Ms||n.U.enabled||n.U.start());ZG(n,7,1);F&&F("net-send-failed",L);++n.Z},w=function(){n.network&&n.network.send(q,Q,c)};
z?z.then(function(L){ZG(n,5,r);q.requestHeaders["Content-Encoding"]="gzip";q.requestHeaders["Content-Type"]="application/binary";q.body=L;q.Vo=2;w()},function(){ZG(n,6,r);
w()}):w()}}}};
g.X.isRetryable=function(R){return 500<=R&&R<600||R===401||R===0};eN.prototype.send=function(R,F,n){var V=this,r,v,f,z,q,Q,c,w,L,S;return g.Y(function(p){switch(p.T){case 1:return v=(r=V.W7?new AbortController:void 0)?setTimeout(function(){r.abort()},R.timeoutMillis):void 0,g.zv(p,2,3),f=Object.assign({},{method:R.requestType,
headers:Object.assign({},R.requestHeaders)},R.body&&{body:R.body},R.withCredentials&&{credentials:"include"},{signal:R.timeoutMillis&&r?r.signal:null}),g.k(p,fetch(R.url,f),5);case 5:z=p.U;if(z.status!==200){(q=n)==null||q(z.status);p.wX(3);break}if((Q=F)==null){p.wX(7);break}return g.k(p,z.text(),8);case 8:Q(p.U);case 7:case 3:g.wq(p);clearTimeout(v);g.S7(p,0);break;case 2:c=g.cM(p);switch((w=c)==null?void 0:w.name){case "AbortError":(L=n)==null||L(408);break;default:(S=n)==null||S(400)}p.wX(3)}})};
eN.prototype.hE=function(){return 4};g.a(Rm,g.G);Rm.prototype.Q1=function(){this.J=!0;return this};
Rm.prototype.build=function(){this.network||(this.network=new eN);var R=new bQ({logSource:this.logSource,tj:this.tj?this.tj:ud_,sessionIndex:this.sessionIndex,h$2:this.OC,bE:this.N,Ms:!1,Q1:this.J,Hj:this.Hj,network:this.network});g.d(this,R);if(this.buildLabel){var F=this.buildLabel,n=lQ(R.N);V7(n,7,F)}R.X=new Wv;this.componentId&&(R.componentId=this.componentId);this.SI&&(R.SI=this.SI);this.pageId&&(R.pageId=this.pageId);this.T&&((n=this.T)?(R.experimentIds||(R.experimentIds=new uQ),F=R.experimentIds,
n=n.F6(),V7(F,4,n)):R.experimentIds&&Ud(R.experimentIds,4));this.U&&(R.PG=R.Nq);iuk(R.N);this.network.R4&&this.network.R4(this.logSource);this.network.L01&&this.network.L01(R);return R};g.a(F1,g.G);F1.prototype.flush=function(R){R=R||[];if(R.length){for(var F=new ANJ,n=[],V=0;V<R.length;V++){var r=R[V],v=T5f(r);n.push(v);r.clear()}Ed(F,y$,1,n);this.T.dispatch(F);this.T.flush()}};g.X=nT.prototype;g.X.ZT=function(R){var F=g.Cq.apply(1,arguments),n=this.V1(F);n?n.push(new Ej_(R)):this.RA(R,F)};
g.X.RA=function(R){this.T.set(this.RW(g.Cq.apply(1,arguments)),[new Ej_(R)])};
g.X.V1=function(){var R=this.RW(g.Cq.apply(0,arguments));return this.T.has(R)?this.T.get(R):void 0};
g.X.gJ=function(){var R=this.V1(g.Cq.apply(0,arguments));return R&&R.length?R[0]:void 0};
g.X.clear=function(){this.T.clear()};
g.X.RW=function(){var R=g.Cq.apply(0,arguments);return R?R.join(","):"key"};g.a(VN,nT);VN.prototype.N=function(R){var F=g.Cq.apply(1,arguments),n=0,V=this.gJ(F);V&&(n=V.T);this.RA(n+R,F)};g.a(rT,nT);rT.prototype.jx=function(R){this.ZT(R,g.Cq.apply(1,arguments))};g.v2.prototype.stopPropagation=function(){this.U=!0};
g.v2.prototype.preventDefault=function(){this.defaultPrevented=!0};g.Ms(tD,g.v2);
tD.prototype.init=function(R,F){var n=this.type=R.type,V=R.changedTouches&&R.changedTouches.length?R.changedTouches[0]:null;this.target=R.target||R.srcElement;this.currentTarget=F;F=R.relatedTarget;F||(n=="mouseover"?F=R.fromElement:n=="mouseout"&&(F=R.toElement));this.relatedTarget=F;V?(this.clientX=V.clientX!==void 0?V.clientX:V.pageX,this.clientY=V.clientY!==void 0?V.clientY:V.pageY,this.screenX=V.screenX||0,this.screenY=V.screenY||0):(this.clientX=R.clientX!==void 0?R.clientX:R.pageX,this.clientY=
R.clientY!==void 0?R.clientY:R.pageY,this.screenX=R.screenX||0,this.screenY=R.screenY||0);this.button=R.button;this.keyCode=R.keyCode||0;this.key=R.key||"";this.charCode=R.charCode||(n=="keypress"?R.keyCode:0);this.ctrlKey=R.ctrlKey;this.altKey=R.altKey;this.shiftKey=R.shiftKey;this.metaKey=R.metaKey;this.pointerId=R.pointerId||0;this.pointerType=R.pointerType;this.state=R.state;this.T=R;R.defaultPrevented&&tD.Lk.preventDefault.call(this)};
tD.prototype.stopPropagation=function(){tD.Lk.stopPropagation.call(this);this.T.stopPropagation?this.T.stopPropagation():this.T.cancelBubble=!0};
tD.prototype.preventDefault=function(){tD.Lk.preventDefault.call(this);var R=this.T;R.preventDefault?R.preventDefault():R.returnValue=!1};var $tV="closure_listenable_"+(Math.random()*1E6|0);var PpN=0;g.X=QN.prototype;g.X.add=function(R,F,n,V,r){var v=R.toString();R=this.listeners[v];R||(R=this.listeners[v]=[],this.T++);var f=wT(R,F,V,r);f>-1?(F=R[f],n||(F.PL=!1)):(F=new buf(F,this.src,v,!!V,r),F.PL=n,R.push(F));return F};
g.X.remove=function(R,F,n,V){R=R.toString();if(!(R in this.listeners))return!1;var r=this.listeners[R];F=wT(r,F,n,V);return F>-1?(qg(r[F]),g.n4(r,F),r.length==0&&(delete this.listeners[R],this.T--),!0):!1};
g.X.removeAll=function(R){R=R&&R.toString();var F=0,n;for(n in this.listeners)if(!R||n==R){for(var V=this.listeners[n],r=0;r<V.length;r++)++F,qg(V[r]);delete this.listeners[n];this.T--}return F};
g.X.JM=function(R,F,n,V){R=this.listeners[R.toString()];var r=-1;R&&(r=wT(R,F,n,V));return r>-1?R[r]:null};
g.X.hasListener=function(R,F){var n=R!==void 0,V=n?R.toString():"",r=F!==void 0;return g.yf(this.listeners,function(v){for(var f=0;f<v.length;++f)if(!(n&&v[f].type!=V||r&&v[f].capture!=F))return!0;return!1})};var X1="closure_lm_"+(Math.random()*1E6|0),am={},nmj=0,CT="__closure_events_fn_"+(Math.random()*1E9>>>0);g.Ms(g.TC,g.G);g.TC.prototype[$tV]=!0;g.X=g.TC.prototype;g.X.addEventListener=function(R,F,n,V){g.LT(this,R,F,n,V)};
g.X.removeEventListener=function(R,F,n,V){rBe(this,R,F,n,V)};
g.X.dispatchEvent=function(R){var F=this.ww;if(F){var n=[];for(var V=1;F;F=F.ww)n.push(F),++V}F=this.P7;V=R.type||R;if(typeof R==="string")R=new g.v2(R,F);else if(R instanceof g.v2)R.target=R.target||F;else{var r=R;R=new g.v2(V,F);g.xc(R,r)}r=!0;var v;if(n)for(v=n.length-1;!R.U&&v>=0;v--){var f=R.currentTarget=n[v];r=om(f,V,!0,R)&&r}R.U||(f=R.currentTarget=F,r=om(f,V,!0,R)&&r,R.U||(r=om(f,V,!1,R)&&r));if(n)for(v=0;!R.U&&v<n.length;v++)f=R.currentTarget=n[v],r=om(f,V,!1,R)&&r;return r};
g.X.oG=function(){g.TC.Lk.oG.call(this);this.Sx&&this.Sx.removeAll(void 0);this.ww=null};
g.X.listen=function(R,F,n,V){return this.Sx.add(String(R),F,!1,n,V)};
g.X.NJ=function(R,F,n,V){return this.Sx.add(String(R),F,!0,n,V)};
g.X.ZO=function(R,F,n,V){this.Sx.remove(String(R),F,n,V)};
g.X.JM=function(R,F,n,V){return this.Sx.JM(String(R),F,n,V)};
g.X.hasListener=function(R,F){return this.Sx.hasListener(R!==void 0?String(R):void 0,F)};var UZ=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(R){return R&&AsyncContext.Snapshot.wrap(R)}:function(R){return R};yN.prototype.get=function(){if(this.U>0){this.U--;var R=this.T;this.T=R.next;R.next=null}else R=this.N();return R};
yN.prototype.put=function(R){this.J(R);this.U<100&&(this.U++,R.next=this.T,this.T=R)};var jG;hD.prototype.add=function(R,F){var n=q_N.get();n.set(R,F);this.U?this.U.next=n:this.T=n;this.U=n};
hD.prototype.remove=function(){var R=null;this.T&&(R=this.T,this.T=this.T.next,this.T||(this.U=null),R.next=null);return R};
var q_N=new yN(function(){return new W2},function(R){return R.reset()});
W2.prototype.set=function(R,F){this.T=R;this.scope=F;this.next=null};
W2.prototype.reset=function(){this.next=this.scope=this.T=null};var uh,B2=!1,tuN=new hD;QME.prototype.reset=function(){this.context=this.U=this.N=this.T=null;this.J=!1};
var cB6=new yN(function(){return new QME},function(R){R.reset()});
g.OZ.prototype.then=function(R,F,n){return C5e(this,UZ(typeof R==="function"?R:null),UZ(typeof F==="function"?F:null),n)};
g.OZ.prototype.$goog_Thenable=!0;g.X=g.OZ.prototype;g.X.finally=function(R){var F=this;R=UZ(R);return new g.OZ(function(n,V){sMN(F,function(r){R();n(r)},function(r){R();
V(r)})})};
g.X.h5=function(R,F){return C5e(this,null,UZ(R),F)};
g.X.catch=g.OZ.prototype.h5;g.X.cancel=function(R){if(this.T==0){var F=new kv(R);g.mt(function(){paV(this,F)},this)}};
g.X.e$S=function(R){this.T=0;gT(this,2,R)};
g.X.gwQ=function(R){this.T=0;gT(this,3,R)};
g.X.Nh=function(){for(var R;R=XaI(this);)ABk(this,R,this.T,this.X);this.Z=!1};
var UP_=J_;g.Ms(kv,lU);kv.prototype.name="cancel";g.Ms(g.Yv,g.TC);g.X=g.Yv.prototype;g.X.enabled=!1;g.X.q5=null;g.X.setInterval=function(R){this.uI=R;this.q5&&this.enabled?(this.stop(),this.start()):this.q5&&this.stop()};
g.X.W8X=function(){if(this.enabled){var R=g.J7()-this.xu;R>0&&R<this.uI*.8?this.q5=this.bH.setTimeout(this.xA,this.uI-R):(this.q5&&(this.bH.clearTimeout(this.q5),this.q5=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.X.start=function(){this.enabled=!0;this.q5||(this.q5=this.bH.setTimeout(this.xA,this.uI),this.xu=g.J7())};
g.X.stop=function(){this.enabled=!1;this.q5&&(this.bH.clearTimeout(this.q5),this.q5=null)};
g.X.oG=function(){g.Yv.Lk.oG.call(this);this.stop();delete this.bH};g.a(dT,g.G);g.X=dT.prototype;g.X.sendIsolatedPayload=function(R){this.W=R;this.N=1};
g.X.Uz=function(){var R=this.U.values();R=[].concat(g.I(R)).filter(function(F){return F.T.size});
R.length&&this.X.flush(R,this.W);hC9(R);this.J=0;this.T.enabled&&this.T.stop()};
g.X.Ds=function(R){var F=g.Cq.apply(1,arguments);this.U.has(R)||this.U.set(R,new VN(R,F))};
g.X.TV=function(R){var F=g.Cq.apply(1,arguments);this.U.has(R)||this.U.set(R,new rT(R,F))};
g.X.vE=function(R){this.nO(R,1,g.Cq.apply(1,arguments))};
g.X.nO=function(R,F){var n=g.Cq.apply(2,arguments),V=HSJ(this,R);V&&V instanceof VN&&(V.N(F,n),jMj(this))};
g.X.jx=function(R,F){var n=g.Cq.apply(2,arguments),V=HSJ(this,R);V&&V instanceof rT&&(V.jx(F,n),jMj(this))};g.a(Mg,Error);Mg.prototype.toString=function(){var R="RpcError("+(uCI(this.code)||String(this.code))+")";this.message&&(R+=": "+this.message);return R};Bt6.prototype.F6=function(R){var F=[];Ng(this,R,F);return F.join("")};
var OSR={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},gmN=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var Tev;g.Ms(EZ,KwR);EZ.prototype.T=function(){return new XMLHttpRequest};
Tev=new EZ;g.Ms(g.$v,g.TC);var JBW=/^https?$/i,oNs=["POST","PUT"],DPN=[];g.X=g.$v.prototype;g.X.E3=function(){this.dispose();g.VK(DPN,this)};
g.X.send=function(R,F,n,V){if(this.T)throw Error("[goog.net.XhrIo] Object is active with another request="+this.V+"; newUri="+R);F=F?F.toUpperCase():"GET";this.V=R;this.J="";this.U=0;this.J1=!1;this.N=!0;this.T=this.PG?this.PG.T():Tev.T();this.T.onreadystatechange=UZ((0,g.k$)(this.Br,this));try{this.getStatus(),this.jQ=!0,this.T.open(F,String(R),!0),this.jQ=!1}catch(f){this.getStatus();kYf(this,f);return}R=n||"";n=new Map(this.headers);if(V)if(Object.getPrototypeOf(V)===Object.prototype)for(var r in V)n.set(r,
V[r]);else if(typeof V.keys==="function"&&typeof V.get==="function"){r=g.m(V.keys());for(var v=r.next();!v.done;v=r.next())v=v.value,n.set(v,V.get(v))}else throw Error("Unknown input type for opt_headers: "+String(V));V=Array.from(n.keys()).find(function(f){return"content-type"==f.toLowerCase()});
r=g.HM.FormData&&R instanceof g.HM.FormData;!g.Rz(oNs,F)||V||r||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");F=g.m(n);for(V=F.next();!V.done;V=F.next())n=g.m(V.value),V=n.next().value,n=n.next().value,this.T.setRequestHeader(V,n);this.lS&&(this.T.responseType=this.lS);"withCredentials"in this.T&&this.T.withCredentials!==this.X&&(this.T.withCredentials=this.X);try{this.Z&&(clearTimeout(this.Z),this.Z=null),this.Nq>0&&(this.getStatus(),this.Z=setTimeout(this.p_.bind(this),
this.Nq)),this.getStatus(),this.UZ=!0,this.T.send(R),this.UZ=!1}catch(f){this.getStatus(),kYf(this,f)}};
g.X.p_=function(){typeof bh!="undefined"&&this.T&&(this.J="Timed out after "+this.Nq+"ms, aborting",this.U=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.X.abort=function(R){this.T&&this.N&&(this.getStatus(),this.N=!1,this.W=!0,this.T.abort(),this.W=!1,this.U=R||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),P2(this))};
g.X.oG=function(){this.T&&(this.N&&(this.N=!1,this.W=!0,this.T.abort(),this.W=!1),P2(this,!0));g.$v.Lk.oG.call(this)};
g.X.Br=function(){this.Zo()||(this.jQ||this.UZ||this.W?Y_e(this):this.Wg5())};
g.X.Wg5=function(){Y_e(this)};
g.X.isActive=function(){return!!this.T};
g.X.isComplete=function(){return g.ZB(this)==4};
g.X.getStatus=function(){try{return g.ZB(this)>2?this.T.status:-1}catch(R){return-1}};
g.X.getResponseHeader=function(R){if(this.T&&this.isComplete())return R=this.T.getResponseHeader(R),R===null?void 0:R};
g.X.getLastError=function(){return typeof this.J==="string"?this.J:String(this.J)};V_.prototype.send=function(R,F,n){F=F===void 0?function(){}:F;
n=n===void 0?function(){}:n;
iSv(R.url,function(V){V=V.target;eG(V)?F(g.RF(V)):n(V.getStatus())},R.requestType,R.body,R.requestHeaders,R.timeoutMillis,R.withCredentials)};
V_.prototype.hE=function(){return 1};v3.prototype.done=function(){this.logger.Et(this.event,rb()-this.startTime)};
g.a(fa,sH);g.a(zj,fa);g.X=zj.prototype;g.X.jb=function(){};
g.X.Vm=function(){};
g.X.Et=function(){};
g.X.f4=function(){};
g.X.uE=function(){};
g.X.s1=function(R,F,n,V){return V};
g.X.Cb=function(){};
g.X.eO=function(){};
g.X.vn=function(){};
g.a(qv,fa);g.X=qv.prototype;g.X.update=function(R){this.logger.dispose();this.logger=R};
g.X.Vm=function(R){this.logger.Vm(R)};
g.X.Et=function(R,F){this.logger.Et(R,F)};
g.X.f4=function(R){this.logger.f4(R)};
g.X.uE=function(){this.logger.uE()};
g.X.s1=function(R,F,n,V){return this.logger.s1(R,F,n,V)};
g.X.Cb=function(R){this.logger.Cb(R)};
g.X.eO=function(R){this.logger.eO(R)};
g.X.vn=function(R){this.logger.vn(R)};
g.X.jb=function(R){this.logger.jb(R)};
g.a(MuJ,g.G);g.a(Q_,fa);g.X=Q_.prototype;g.X.jb=function(R){this.metrics.O5H.jx(R,this.OF)};
g.X.Vm=function(R){this.metrics.eventCount.Yq(R,this.OF)};
g.X.Et=function(R,F){this.metrics.mN.jx(F,R,this.OF)};
g.X.f4=function(R){this.metrics.errorCount.Yq(R,this.OF)};
g.X.s1=function(R,F,n,V){function r(z){if(!v.Zo()){var q=rb()-f;v.metrics.aNG.jx(q,R,n,z,F,v.OF)}}
var v=this,f=rb();V.then(function(){return void r(0)},function(z){return void r(z instanceof Mg?z.code:-1)});
return V};
g.X.Cb=function(R){this.metrics.yDH.Yq(R,this.OF)};
g.X.eO=function(R){this.metrics.H7.Yq(R,this.OF)};
g.X.vn=function(R){this.metrics.p6G.Yq(R,this.OF)};
g.a(c3,Q_);c3.prototype.uE=function(){lIk(this.T)};g.a(wb,P4);g.a(Sc,P4);g.a(La,P4);var vnV=aM(La),Em9=function(R){return DL(function(F){return F instanceof R&&!QF(F)})}(La);
La.messageId="bfkj";g.a(Le,P4);g.a(si,P4);var $Pe=aM(si);g.a(Xo,g.G);Xo.prototype.snapshot=function(R){if(this.Zo())throw Error("Already disposed");this.logger.Vm("n");var F=this.logger.share();return this.N.then(function(n){var V=n.v7;return new Promise(function(r){var v=new v3(F,"n");V(function(f){v.done();F.jb(f.length);F.uE();F.dispose();r(f)},[R.wT,
R.Gc,R.XI,R.fV])})})};
Xo.prototype.cg=function(R){var F=this;if(this.Zo())throw Error("Already disposed");this.logger.Vm("n");var n=tS(this.logger,function(){return F.J([R.wT,R.Gc,R.XI,R.fV])},"n");
this.logger.jb(n.length);this.logger.uE();return n};
Xo.prototype.r_=function(R){this.N.then(function(F){var n;(n=F.tES)==null||n(R)})};
Xo.prototype.fn=function(){return this.logger.share()};g.a(Ca,P4);g.a(Tj,P4);oF.prototype.zg=function(R){return qO6(this,R,new zj,0)};g.a(y_,g.G);g.X=y_.prototype;g.X.snapshot=function(R){var F=this;return g.Y(function(n){switch(n.T){case 1:if(F.Zo())throw Error("Already disposed");if(F.U||F.X){n.wX(2);break}return g.k(n,F.W.promise,2);case 2:if(!F.U){n.wX(4);break}return g.k(n,F.U.snapshot(R),5);case 5:return n.return(n.U);case 4:throw F.X;}})};
g.X.pause=function(){this.Zo()||this.isPaused||(this.isPaused=!0,this.T&&this.T.pause())};
g.X.resume=function(){!this.Zo()&&this.isPaused&&(this.isPaused=!1,this.T&&this.T.resume())};
g.X.checkForRefresh=function(){var R=this;return g.Y(function(F){if(R.Zo())throw Error("Already disposed");var n;if(n=R.T)n=R.T,n.isExpired()?(hS(n),n.iy(0),n=!0):n=!1,n=!n;return n?F.wX(0):g.k(F,R.N.promise,0)})};
g.X.r_=function(R){var F,n;(F=this.U)==null||(n=F.r_)==null||n.call(F,R)};
g.X.handleError=function(R){if(!this.Zo()){this.X=R;this.W.resolve();var F,n;(n=(F=this.options).Re2)==null||n.call(F,R)}};
g.X.fn=function(){return this.logger.share()};
var wx_={a7H:432E5,At:3E5,qj:10,sW:1E4,Qa:3E4,bCq:3E4,R2Z:6E4,pB:1E3,EW:6E4,yQ:6E5,Th:.25,ix:2,maxAttempts:10};H3.prototype.pause=function(){this.isPaused||(this.isPaused=!0,hS(this))};
H3.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())};
H3.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var yvh,one=(yvh=Math.imul)!=null?yvh:function(R,F){return R*F|0},uw=[196,
200,224,18];B3.prototype.F6=function(){return String(this.T)+","+this.U.join()};
B3.prototype.X6=function(R,F){var n=void 0;if(this.U[this.T]!==R){var V=this.U.indexOf(R);V!==-1?(this.U.splice(V,1),V<this.T&&this.T--,this.U.splice(this.T,0,R)):(n=this.U[this.T],this.U[this.T]=R)}this.T=(this.T+1)%this.maxItems;R=TkR("iU5q-!O9@$",this.F6());n&&R&&F(n);return R};var Ovf={toString:function(R){var F=[],n=0;R-=-2147483648;F[n++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(R%52);for(R=Math.floor(R/52);R>0;)F[n++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(R%62),R=Math.floor(R/62);return F.join("")}};g.a(gb,g.G);gb.prototype.Bd=function(R,F){var n=this.mE(R);F==null||F(n);return tS(this.logger,function(){return g.dQ(n,2)},this.U)};
g.a(Ka,gb);Ka.prototype.mE=function(R,F){var n=this;this.logger.Vm(this.T);++this.W>=this.Z&&this.N.resolve();var V=R();R=tS(this.logger,function(){return n.J(V)},"C");
if(R===void 0)throw new Q$(17,"YNJ:Undefined");if(!(R instanceof Uint8Array))throw new Q$(18,"ODM:Invalid");F==null||F(R);return R};
g.a(De,gb);De.prototype.mE=function(){return this.J};
g.a(iw,gb);iw.prototype.mE=function(){var R=this;return tS(this.logger,function(){return l$(R.J)},"d")};
iw.prototype.Bd=function(){return this.J};
g.a(xq,gb);xq.prototype.mE=function(){if(this.J)return this.J;this.J=KPR(this,function(R){return"_"+I2_(R)});
return KPR(this,function(R){return R})};
g.a(Yq,gb);Yq.prototype.mE=function(){var R=Math.floor(Date.now()/1E3),F=[Math.random()*255,Math.random()*255],n=F.concat([this.J&255,this.clientState],[R>>24&255,R>>16&255,R>>8&255,R&255]);R=new Uint8Array(2+n.length);R[0]=34;R[1]=n.length;R.set(n,2);n=R.subarray(2);for(var V=F=F.length;V<n.length;++V)n[V]^=n[V%F];this.logger.Cb(this.clientState);return R};var ivN={Wa:3E4,i52:2E4};g.a(Gj,g.G);g.X=Gj.prototype;g.X.nL=function(){return this.N.promise};
g.X.mE=function(R){return NkI(this,Object.assign({},R),!1)};
g.X.Bd=function(R){return NkI(this,Object.assign({},R),!0)};
g.X.OR=function(R){if(!(R>150))try{this.cache=new ufV(R,this.logger)}catch(F){this.reportError(new Q$(22,"GBJ:init",F))}};
g.X.reportError=function(R){this.logger.f4(R.code);this.onError(R);return R};
var xav=function(R){return DL(function(F){if(!qU9(F))return!1;for(var n=g.m(Object.entries(R)),V=n.next();!V.done;V=n.next()){var r=g.m(V.value);V=r.next().value;r=r.next().value;if(!(V in F)){if(r.ZeZ===!0)continue;return!1}if(!r(F[V]))return!1}return!0})}({c_:function(R){return DL(function(F){return F instanceof R})}(y_)},"");$ae.prototype.Yq=function(R,F){this.T.vE("/client_streamz/youtube/aba/gac",R,F)};var Wte=(new Date).getTime();g.a(lw,P4);var U6D=aM(lw);PIJ.prototype.getMetadata=function(){return this.metadata};Nv.prototype.getMetadata=function(){return this.metadata};
Nv.prototype.getStatus=function(){return this.status};Ei.prototype.Z=function(R,F){F=F===void 0?{}:F;return new PIJ(R,this,F)};
Ei.prototype.getName=function(){return this.name};var jJM=new Ei("/google.internal.waa.v1.Waa/Create",Ca,lw,function(R){return R.F6()},U6D);g.a($q,P4);var tjE=new Ei("/google.internal.waa.v1.Waa/GenerateIT",Tj,$q,function(R){return R.F6()},aM($q));var H_E=new Set(["SAPISIDHASH","APISIDHASH"]);g.a(P3,P4);P3.prototype.getValue=function(){var R=oX(this,2);if(Array.isArray(R)||R instanceof P4)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return gp(this,2)};g.a(bw,P4);bw.prototype.getMessage=function(){return ZF(this,2)};
var nwe=aM(bw);Ze.prototype.sK=function(R,F){R==="data"?this.U.push(F):R==="metadata"?this.J.push(F):R==="status"?this.W.push(F):R==="end"?this.N.push(F):R==="error"&&this.T.push(F)};
Ze.prototype.removeListener=function(R,F){R==="data"?VG(this.U,F):R==="metadata"?VG(this.J,F):R==="status"?VG(this.W,F):R==="end"?VG(this.N,F):R==="error"&&VG(this.T,F);return this};
Ze.prototype.cancel=function(){this.xhr.abort()};
g.a(Zvj,Error);g.Ms(g.rH,KwR);g.rH.prototype.T=function(){var R=new vD(this.J,this.N);this.U&&R.setCredentialsMode(this.U);return R};
g.rH.prototype.setCredentialsMode=function(R){this.U=R};
g.Ms(vD,g.TC);g.X=vD.prototype;g.X.open=function(R,F){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.J1=R;this.Nq=F;this.readyState=1;fD(this)};
g.X.send=function(R){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.V.signal.aborted)throw this.abort(),Error("Request was aborted.");this.T=!0;var F={headers:this.UZ,method:this.J1,credentials:this.W,cache:void 0,signal:this.V.signal};R&&(F.body=R);(this.jQ||g.HM).fetch(new Request(this.Nq,F)).then(this.YZo.bind(this),this.fJ.bind(this))};
g.X.abort=function(){this.response=this.responseText="";this.UZ=new Headers;this.status=0;this.V.abort("Request was aborted.");this.N&&this.N.cancel("Request was aborted.").catch(function(){});
this.readyState>=1&&this.T&&this.readyState!=4&&(this.T=!1,tm(this));this.readyState=0};
g.X.YZo=function(R){if(this.T&&(this.J=R,this.U||(this.status=this.J.status,this.statusText=this.J.statusText,this.U=R.headers,this.readyState=2,fD(this)),this.T&&(this.readyState=3,fD(this),this.T)))if(this.responseType==="arraybuffer")R.arrayBuffer().then(this.MQZ.bind(this),this.fJ.bind(this));else if(typeof g.HM.ReadableStream!=="undefined"&&"body"in R){this.N=R.body.getReader();if(this.Z){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');
this.response=[]}else this.response=this.responseText="",this.X=new TextDecoder;VSj(this)}else R.text().then(this.n5z.bind(this),this.fJ.bind(this))};
g.X.PS5=function(R){if(this.T){if(this.Z&&R.value)this.response.push(R.value);else if(!this.Z){var F=R.value?R.value:new Uint8Array(0);if(F=this.X.decode(F,{stream:!R.done}))this.response=this.responseText+=F}R.done?tm(this):fD(this);this.readyState==3&&VSj(this)}};
g.X.n5z=function(R){this.T&&(this.response=this.responseText=R,tm(this))};
g.X.MQZ=function(R){this.T&&(this.response=R,tm(this))};
g.X.fJ=function(){this.T&&tm(this)};
g.X.setRequestHeader=function(R,F){this.UZ.append(R,F)};
g.X.getResponseHeader=function(R){return this.U?this.U.get(R.toLowerCase())||"":""};
g.X.getAllResponseHeaders=function(){if(!this.U)return"";for(var R=[],F=this.U.entries(),n=F.next();!n.done;)n=n.value,R.push(n[0]+": "+n[1]),n=F.next();return R.join("\r\n")};
g.X.setCredentialsMode=function(R){this.W=R};
Object.defineProperty(vD.prototype,"withCredentials",{get:function(){return this.W==="include"},
set:function(R){this.setCredentialsMode(R?"include":"same-origin")}});g.c_.prototype.toString=function(){var R=[],F=this.W;F&&R.push(LD(F,HWq,!0),":");var n=this.T;if(n||F=="file")R.push("//"),(F=this.V)&&R.push(LD(F,HWq,!0),"@"),R.push(g.N3(n).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),n=this.N,n!=null&&R.push(":",String(n));if(n=this.U)this.T&&n.charAt(0)!="/"&&R.push("/"),R.push(LD(n,n.charAt(0)=="/"?hVD:WIO,!0));(n=this.J.toString())&&R.push("?",n);(n=this.Z)&&R.push("#",LD(n,ujU));return R.join("")};
g.c_.prototype.resolve=function(R){var F=this.clone(),n=!!R.W;n?g.q1(F,R.W):n=!!R.V;n?F.V=R.V:n=!!R.T;n?g.we(F,R.T):n=R.N!=null;var V=R.U;if(n)g.QG(F,R.N);else if(n=!!R.U){if(V.charAt(0)!="/")if(this.T&&!this.U)V="/"+V;else{var r=F.U.lastIndexOf("/");r!=-1&&(V=F.U.slice(0,r+1)+V)}r=V;if(r==".."||r==".")V="";else if(g.Fg(r,"./")||g.Fg(r,"/.")){V=eW(r,"/");r=r.split("/");for(var v=[],f=0;f<r.length;){var z=r[f++];z=="."?V&&f==r.length&&v.push(""):z==".."?((v.length>1||v.length==1&&v[0]!="")&&v.pop(),
V&&f==r.length&&v.push("")):(v.push(z),V=!0)}V=v.join("/")}else V=r}n?F.U=V:n=R.J.toString()!=="";n?cD(F,R.J.clone()):n=!!R.Z;n&&(F.Z=R.Z);return F};
g.c_.prototype.clone=function(){return new g.c_(this)};
var HWq=/[#\/\?@]/g,WIO=/[#\?:]/g,hVD=/[#\?]/g,zdE=/[#\?@]/g,ujU=/#/g;g.X=SI.prototype;g.X.add=function(R,F){pD(this);this.N=null;R=X3(this,R);var n=this.T.get(R);n||this.T.set(R,n=[]);n.push(F);this.U=this.U+1;return this};
g.X.remove=function(R){pD(this);R=X3(this,R);return this.T.has(R)?(this.N=null,this.U=this.U-this.T.get(R).length,this.T.delete(R)):!1};
g.X.clear=function(){this.T=this.N=null;this.U=0};
g.X.isEmpty=function(){pD(this);return this.U==0};
g.X.forEach=function(R,F){pD(this);this.T.forEach(function(n,V){n.forEach(function(r){R.call(F,r,V,this)},this)},this)};
g.X.V8=function(){pD(this);for(var R=Array.from(this.T.values()),F=Array.from(this.T.keys()),n=[],V=0;V<F.length;V++)for(var r=R[V],v=0;v<r.length;v++)n.push(F[V]);return n};
g.X.GU=function(R){pD(this);var F=[];if(typeof R==="string")QWV(this,R)&&(F=F.concat(this.T.get(X3(this,R))));else{R=Array.from(this.T.values());for(var n=0;n<R.length;n++)F=F.concat(R[n])}return F};
g.X.set=function(R,F){pD(this);this.N=null;R=X3(this,R);QWV(this,R)&&(this.U=this.U-this.T.get(R).length);this.T.set(R,[F]);this.U=this.U+1;return this};
g.X.get=function(R,F){if(!R)return F;R=this.GU(R);return R.length>0?String(R[0]):F};
g.X.toString=function(){if(this.N)return this.N;if(!this.T)return"";for(var R=[],F=Array.from(this.T.keys()),n=0;n<F.length;n++){var V=F[n],r=g.N3(V);V=this.GU(V);for(var v=0;v<V.length;v++){var f=r;V[v]!==""&&(f+="="+g.N3(V[v]));R.push(f)}}return this.N=R.join("&")};
g.X.clone=function(){var R=new SI;R.N=this.N;this.T&&(R.T=new Map(this.T),R.U=this.U);return R};
g.X.extend=function(R){for(var F=0;F<arguments.length;F++)fZk(arguments[F],function(n,V){this.add(V,n)},this)};g.Ms(g.aC,g.G);var Beh=[];g.X=g.aC.prototype;g.X.listen=function(R,F,n,V){Array.isArray(F)||(F&&(Beh[0]=F.toString()),F=Beh);for(var r=0;r<F.length;r++){var v=g.LT(R,F[r],n||this.handleEvent,V||!1,this.U||this);if(!v)break;this.T[v.key]=v}return this};
g.X.NJ=function(R,F,n,V){return S7f(this,R,F,n,V)};
g.X.ZO=function(R,F,n,V,r){if(Array.isArray(F))for(var v=0;v<F.length;v++)this.ZO(R,F[v],n,V,r);else n=n||this.handleEvent,V=g.ID(V)?!!V.capture:!!V,r=r||this.U||this,n=sZ(n),V=!!V,F=zC(R)?R.JM(F,n,V,r):R?(R=pT(R))?R.JM(F,n,V,r):null:null,F&&(AD(F),delete this.T[F.key])};
g.X.removeAll=function(){g.DN(this.T,function(R,F){this.T.hasOwnProperty(F)&&AD(R)},this);
this.T={}};
g.X.oG=function(){g.aC.Lk.oG.call(this);this.removeAll()};
g.X.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};L8N.prototype.isInputValid=function(){return this.N};CD.prototype.isInputValid=function(){return this.T!=3};
CD.prototype.xk=function(){return this.Z};
CD.prototype.Lg=function(){return!0};
CD.prototype.parse=function(R){function F(q){q&128&&TG(v,f,z,"invalid tag");(q&7)!=2&&TG(v,f,z,"invalid wire type");v.N=q>>>3;v.N!=1&&v.N!=2&&v.N!=15&&TG(v,f,z,"unexpected tag");v.T=1;v.U=0;v.J=0}
function n(q){v.J++;v.J==5&&q&240&&TG(v,f,z,"message length too long");v.U|=(q&127)<<(v.J-1)*7;q&128||(v.T=2,v.V=0,typeof Uint8Array!=="undefined"?v.W=new Uint8Array(v.U):v.W=Array(v.U),v.U==0&&r())}
function V(q){v.W[v.V++]=q;v.V==v.U&&r()}
function r(){if(v.N<15){var q={};q[v.N]=v.W;v.X.push(q)}v.T=0}
for(var v=this,f=R instanceof Array?R:new Uint8Array(R),z=0;z<f.length;){switch(v.T){case 3:TG(v,f,z,"stream already broken");break;case 0:F(f[z]);break;case 1:n(f[z]);break;case 2:V(f[z]);break;default:throw Error("unexpected parser state: "+v.T);}v.UZ++;z++}R=v.X;v.X=[];return R.length>0?R:null};oC.prototype.isInputValid=function(){return this.T===null};
oC.prototype.xk=function(){return this.T};
oC.prototype.Lg=function(){return!1};
oC.prototype.parse=function(R){this.T!==null&&pdR(this,R,"stream already broken");var F=null;try{var n=this.N;n.N||sWk(n,R,"stream already broken");n.T+=R;var V=Math.floor(n.T.length/4);if(V==0)var r=null;else{try{var v=FrV(n.T.slice(0,V*4))}catch(f){sWk(n,n.T,f.message)}n.U+=V*4;n.T=n.T.slice(V*4);r=v}F=r===null?null:this.J.parse(r)}catch(f){pdR(this,R,f.message)}this.U+=R.length;return F};g.X=UB.prototype;g.X.isInputValid=function(){return this.W!=3};
g.X.xk=function(){return this.UZ};
g.X.done=function(){return this.W===2};
g.X.Lg=function(){return!1};
g.X.parse=function(R){function F(){for(;w<R.length;)if(yG(R[w]))w++,v.N++;else break;return w<q}
function n(){for(var S;;){S=R[w++];if(!S)break;v.N++;switch(v.T){case 0:S==="{"?v.T=2:S==="["?v.T=4:yG(S)||jI(v,R,w);continue;case 7:case 2:if(yG(S))continue;if(v.T===7)f.push(8);else if(S==="}"){r("{}");v.T=V();continue}else f.push(3);S==='"'?v.T=6:jI(v,R,w);continue;case 8:case 3:if(yG(S))continue;S===":"?(v.T===3&&(f.push(3),v.U++),v.T=1):S==="}"?(v.U--,r(),v.T=V()):S===","?(v.T===3&&f.push(3),v.T=7):jI(v,R,w);continue;case 4:case 1:if(yG(S))continue;if(v.T===4)if(v.U++,v.T=1,S==="]"){v.U--;if(v.U===
0){v.T=5;return}r("[]");v.T=V();continue}else f.push(5);S==='"'?v.T=6:S==="{"?v.T=2:S==="["?v.T=4:S==="t"?v.T=9:S==="f"?v.T=12:S==="n"?v.T=16:S!=="-"&&("0123456789".indexOf(S)!==-1?v.T=20:jI(v,R,w));continue;case 5:if(S===",")f.push(5),v.T=1,v.U===1&&(c=w);else if(S==="]"){v.U--;if(v.U===0)return;r();v.T=V()}else if(yG(S))continue;else jI(v,R,w);continue;case 6:var p=w;a:for(;;){for(;v.V>0;)if(S=R[w++],v.V===4?v.V=0:v.V++,!S)break a;if(S==='"'&&!v.X){v.T=V();break}if(S==="\\"&&!v.X&&(v.X=!0,S=R[w++],
!S))break;if(v.X)if(v.X=!1,S==="u"&&(v.V=1),S=R[w++])continue;else break;z.lastIndex=w;S=z.exec(R);if(!S){w=R.length+1;break}w=S.index+1;S=R[S.index];if(!S)break}v.N+=w-p;continue;case 9:if(!S)continue;S==="r"?v.T=10:jI(v,R,w);continue;case 10:if(!S)continue;S==="u"?v.T=11:jI(v,R,w);continue;case 11:if(!S)continue;S==="e"?v.T=V():jI(v,R,w);continue;case 12:if(!S)continue;S==="a"?v.T=13:jI(v,R,w);continue;case 13:if(!S)continue;S==="l"?v.T=14:jI(v,R,w);continue;case 14:if(!S)continue;S==="s"?v.T=15:
jI(v,R,w);continue;case 15:if(!S)continue;S==="e"?v.T=V():jI(v,R,w);continue;case 16:if(!S)continue;S==="u"?v.T=17:jI(v,R,w);continue;case 17:if(!S)continue;S==="l"?v.T=18:jI(v,R,w);continue;case 18:if(!S)continue;S==="l"?v.T=V():jI(v,R,w);continue;case 19:S==="."?v.T=20:jI(v,R,w);continue;case 20:if("0123456789.eE+-".indexOf(S)!==-1)continue;else w--,v.N--,v.T=V();continue;default:jI(v,R,w)}}}
function V(){var S=f.pop();return S!=null?S:1}
function r(S){v.U>1||(S||(S=c===-1?v.J+R.substring(Q,w):R.substring(c,w)),v.Nq?v.Z.push(S):v.Z.push(JSON.parse(S)),c=w)}
for(var v=this,f=v.J1,z=v.jQ,q=R.length,Q=0,c=-1,w=0;w<q;)switch(v.W){case 3:return jI(v,R,w),null;case 2:return F()&&jI(v,R,w),null;case 0:if(F()){var L=R[w++];v.N++;if(L==="["){v.W=1;Q=w;v.T=4;continue}else jI(v,R,w)}return null;case 1:return n(),v.U===0&&v.T==5?(v.W=2,v.J=R.substring(w)):v.J=c===-1?v.J+R.substring(Q):R.substring(c),v.Z.length>0?(L=v.Z,v.Z=[],L):null}return null};HD.prototype.isInputValid=function(){return this.W===null};
HD.prototype.xk=function(){return this.W};
HD.prototype.Lg=function(){return!1};
HD.prototype.parse=function(R){function F(q){v.U=6;v.W="The stream is broken @"+v.T+"/"+f+". Error: "+q+". With input:\n";throw Error(v.W);}
function n(){v.N=new UB({ODS:!0,Yv:!0})}
function V(q){if(q)for(var Q=0;Q<q.length;Q++){var c={};c[1]=q[Q];v.J.push(c)}}
function r(q){if(q){(v.Z||q.length>1)&&F("extra status: "+q);v.Z=!0;var Q={};Q[2]=q[0];v.J.push(Q)}}
for(var v=this,f=0;f<R.length;){var z;if(z=v.U!==2){a:{for(;f<R.length;){if(!yG(R[f])){z=!0;break a}f++;v.T++}z=!1}z=!z}if(z)return null;switch(v.U){case 6:F("stream already broken");break;case 0:R[f]==="["?(v.U=1,f++,v.T++):F("unexpected input token");break;case 1:R[f]==="["?(v.U=2,n()):R[f]===","||R.slice(f,f+5)=="null,"?v.U=3:R[f]==="]"?(v.U=5,f++,v.T++):F("unexpected input token");break;case 2:z=v.N.parse(R.substring(f));V(z);v.N.done()?(v.U=3,z=v.N.J,v.T+=R.length-f-z.length,R=z,f=0):(v.T+=R.length-
f,f=R.length);break;case 3:R[f]===","||R.slice(f,f+5)=="null,"?(v.U=4,n(),v.N.parse("["),f+=R[f]===","?1:5,v.T++):R[f]==="]"&&(v.U=5,f++,v.T++);break;case 4:z=v.N.parse(R.substring(f));r(z);v.N.done()?(v.U=5,z=v.N.J,v.T+=R.length-f-z.length,R=z,f=0):(v.T+=R.length-f,f=R.length);break;case 5:F("extra input after stream end")}}return v.J.length>0?(R=v.J,v.J=[],R):null};hm.prototype.Bz=function(){return this.T};
hm.prototype.getStatus=function(){return this.W};
hm.prototype.Nq=function(R){R=R.target;try{if(R==this.T)a:{var F=g.ZB(this.T),n=this.T.U,V=this.T.getStatus(),r=g.RF(this.T);R=[];if(g.Fo(this.T)instanceof Array){var v=g.Fo(this.T);v.length>0&&v[0]instanceof Uint8Array&&(this.UZ=!0,R=v)}if(!(F<3||F==3&&!r&&R.length==0))if(V=V==200||V==206,F==4&&(n==8?WD(this,7):n==7?WD(this,8):V||WD(this,3)),this.U||(this.U=XdN(this.T),this.U==null&&WD(this,5)),this.W>2)uM(this);else{if(R.length>this.N){var f=R.length;n=[];try{if(this.U.Lg())for(var z=0;z<f;z++){var q=
this.U.parse(Array.from(R[z]));q&&(n=n.concat(q))}else{q="";if(!this.Z){if(typeof TextDecoder==="undefined")throw Error("TextDecoder is not supported by this browser.");this.Z=new TextDecoder}for(z=0;z<f;z++)q+=this.Z.decode(R[z],{stream:F==4&&z==f-1});n=this.U.parse(q)}R.splice(0,f);n&&this.J(n)}catch(c){WD(this,5);uM(this);break a}}else if(r.length>this.N){z=r.slice(this.N);this.N=r.length;try{var Q=this.U.parse(z);Q!=null&&this.J&&this.J(Q)}catch(c){WD(this,5);uM(this);break a}}F==4?(r.length!=
0||this.UZ?WD(this,2):WD(this,4),uM(this)):WD(this,1)}}}catch(c){WD(this,6),uM(this)}};g.X=AoW.prototype;g.X.sK=function(R,F){var n=this.U[R];n||(n=[],this.U[R]=n);n.push(F)};
g.X.addListener=function(R,F){this.sK(R,F);return this};
g.X.removeListener=function(R,F){var n=this.U[R];n&&g.VK(n,F);(R=this.T[R])&&g.VK(R,F);return this};
g.X.once=function(R,F){var n=this.T[R];n||(n=[],this.T[R]=n);n.push(F);return this};
g.X.IOZ=function(R){var F=this.U.data;F&&aZ9(R,F);(F=this.T.data)&&aZ9(R,F);this.T.data=[]};
g.X.fj2=function(){switch(this.N.getStatus()){case 1:BD(this,"readable");break;case 5:case 6:case 4:case 7:case 3:BD(this,"error");break;case 8:BD(this,"close");break;case 2:BD(this,"end")}};C09.prototype.serverStreaming=function(R,F,n,V){var r=this,v=R.substring(0,R.length-V.name.length);return hdN(function(f){var z=f.e2,q=f.getMetadata(),Q=yoW(r,!1);q=UDN(r,q,Q,v+z.getName());var c=jWI(Q,z.U,!0);f=z.T(f.MN);Q.send(q,"POST",f);return c},this.Zx).call(this,V.Z(F,n))};W8e.prototype.create=function(R,F,n){var V=this.T,r=this.U+"/$rpc/google.internal.waa.v1.Waa/Create";F=F||{};n=n===void 0?{}:n;return zu9(V,r,R,F,jJM,n)};var qnv,Gd_,REv,uWe,m6v,gNq,OWq,yJI,o4I,Cdf,TLR,YpR,o6,qWE,Q9k,wQe,pzj,AfI,D6U,F7,iWh,qoN,x6v,kkv,YRv,JvM,Gks,is_,xAv,i99,Ahf,FUf;qnv=new mk(45749396,!1);Gd_=new mk(45745123,!1);REv=new mk(45742118,!1);uWe=new mk(45742119,!1);m6v=new mk(45739196,!1);gNq=new mk(45739198,!1);OWq=new mk(45739197,!1);g.INh=new function(R,F,n,V){this.Vx=R;this.yw=F;this.defaultValue=V;this.YG="int"}(3,45750947,"drop_large_caption_max_bytes_per_second",X$("0"));
yJI=new gH(45746966,0);o4I=new gH(45746967,0);Cdf=new gH(45737488,0);TLR=new gH(45737489,0);YpR=new mk(45732791,!1);o6=new mk(45728572,!1);qWE=new mk(45737482,!1);Q9k=new gH(45741773,0);wQe=new mk(45732704,!0);pzj=new mk(45731083,!1);g.KIr=new mk(45747967,!1);AfI=new mk(45728553,!1);D6U=new mk(45734191,!1);F7=new mk(45745610,!1);iWh=new mk(45746773,!1);qoN=new mk(45735523,!1);x6v=new gH(45735428,4E3);kkv=new mk(45748009,!1);YRv=new mk(45735462,!1);JvM=new mk(45727949,!1);Gks=new mk(45747518,!1);
is_=new mk(45728181,!1);xAv=new mk(45746180,!1);i99=new mk(45740357,!1);Ahf=new mk(45733155,!1);FUf=new mk(45732775,!1);g.d6q=new mk(45734776,!1);var BJW=new gH(45725542,0),mWf=new gH(45739023,0),OHR=new gH(45743228,0),uTv=new gH(45725543,0),HHk=new gH(45725539,0),Wyf=new gH(45725541,0),h9N=new gH(45725540,0),j9J=new gH(45725538,0),Iok=new gH(45747053,0),gIN=new gH(45741339,0);var mDj="://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(" "),gwE=/\bocr\b/;var IZk=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.a(K8R,P4);g.a(DD_,P4);g.a(IC,P4);IC.prototype.getName=function(){return ZF(this,1)};
IC.prototype.getOptions=function(){return dp(this,DD_,3)};
IC.prototype.clearOptions=function(){return Ud(this,3)};g.a(KD,P4);g.X=KD.prototype;g.X.getName=function(){return ZF(this,1)};
g.X.getOptions=function(){return dp(this,K8R,3)};
g.X.clearOptions=function(){return Ud(this,3)};
g.X.y6=function(){return ep(this,6)};
g.X.dg=function(R){v4(this,6,R)};var k2R=function(R){return function(F){F=JSON.parse(F);if(!Array.isArray(F))throw Error("Expected jspb data to be an array, got "+mh(F)+": "+F);tb(F,34);return new R(F)}}(KD);var xD_=Symbol();var JoN=Symbol();Object.assign({},{attributes:{},handleError:function(R){throw R;}},{Fxo:!0,
Baq:!0,bZZ:ZXj,ZZX:ZXj,taG:e66,zCZ:!1,MaZ:!1,nIQ:!1,iD2:!1,KxQ:!0,lJ5:!1,hCS:!1,YKz:!1});var iM=null,kx=!1,Ryv=1,b_J=Symbol("SIGNAL"),LC={version:0,MjG:0,Fk:!1,producers:void 0,Ed:void 0,Wp:void 0,vL:void 0,LF:!1,LI:!1,Hl:!1,kind:"unknown",jg:function(){return!1},
sj:function(){},
Fv:function(){},
jg2:function(){}};var sx=Symbol("UNSET"),pC=Symbol("COMPUTING"),Xz=Symbol("ERRORED");Object.assign({},LC,{value:sx,Fk:!0,error:null,Pu:DK,kind:"computed",jg:function(R){return R.value===sx||R.value===pC},
sj:function(R){if(R.value===pC)throw Error("");var F=R.value;R.value=pC;var n=lZv(R),V=!1;try{var r=R.NW();xx(null);V=F!==sx&&F!==Xz&&r!==Xz&&R.Pu(F,r)}catch(v){r=Xz,R.error=v}finally{xx(n),R&&Ewk(R)}V?R.value=F:(R.value=r,R.version++)}});Object.assign({},LC,{Hl:!0,LI:!0,Fk:!0,kind:"effect"});var P0W=Object.assign({},LC,{Pu:DK,value:void 0,kind:"signal"});Object.assign({},LC,{value:sx,Fk:!0,error:null,Pu:DK,kind:"linkedSignal",jg:function(R){return R.value===sx||R.value===pC},
sj:function(R){if(R.value===pC)throw Error("");var F=R.value;R.value=pC;var n=lZv(R);try{var V=R.source();var r=R.NW(V,F===sx||F===Xz?void 0:{source:R.k_1,value:F});R.k_1=V}catch(v){r=Xz,R.error=v}finally{xx(n),R&&Ewk(R)}F!==sx&&r!==Xz&&R.Pu(F,r)?R.value=F:(R.value=r,R.version++)}});Object.assign({},LC,{Hl:!0,LI:!1,Fv:function(R){R.schedule!==null&&R.schedule(R.c32)},
U_S:function(){}});g.a(dH,g.TC);dH.prototype.dispose=function(){window.removeEventListener("offline",this.N);window.removeEventListener("online",this.N);this.BX.iq(this.W);delete dH.instance};
dH.prototype.AO=function(){return this.T};
dH.prototype.pX=function(){var R=this;this.W=this.BX.dK(function(){var F;return g.Y(function(n){if(n.T==1)return R.T?((F=window.navigator)==null?0:F.onLine)?n.wX(3):g.k(n,GG(R),3):g.k(n,GG(R),3);R.pX();g.rq(n)})},3E4)};g.a(nFI,P4);var oUf=lTf(nFI,[0,fC,b1k,DKf,fC,-2,DKf,O1v]);lM.prototype.set=function(R,F){F=F===void 0?!0:F;0<=R&&R<52&&Number.isInteger(R)&&this.data[R]!==F&&(this.data[R]=F,this.T=-1)};
lM.prototype.get=function(R){return!!this.data[R]};var EB;g.Ms(g.bM,g.G);g.X=g.bM.prototype;g.X.start=function(){this.stop();this.J=!1;var R=rHv(this),F=vFV(this);R&&!F&&this.U.mozRequestAnimationFrame?(this.T=g.LT(this.U,"MozBeforePaint",this.N),this.U.mozRequestAnimationFrame(null),this.J=!0):this.T=R&&F?R.call(this.U,this.N):this.U.setTimeout(SmV(this.N),20)};
g.X.stop=function(){if(this.isActive()){var R=rHv(this),F=vFV(this);R&&!F&&this.U.mozRequestAnimationFrame?AD(this.T):R&&F?F.call(this.U,this.T):this.U.clearTimeout(this.T)}this.T=null};
g.X.isActive=function(){return this.T!=null};
g.X.yh=function(){this.J&&this.T&&AD(this.T);this.T=null;this.Z.call(this.W,g.J7())};
g.X.oG=function(){this.stop();g.bM.Lk.oG.call(this)};g.Ms(g.ZK,g.G);g.X=g.ZK.prototype;g.X.Zm=0;g.X.oG=function(){g.ZK.Lk.oG.call(this);this.stop();delete this.T;delete this.U};
g.X.start=function(R){this.stop();this.Zm=g.JD(this.N,R!==void 0?R:this.uI)};
g.X.stop=function(){this.isActive()&&g.HM.clearTimeout(this.Zm);this.Zm=0};
g.X.isActive=function(){return this.Zm!=0};
g.X.Ge=function(){this.Zm=0;this.T&&this.T.call(this.U)};g.a(g.nO,g.G);g.X=g.nO.prototype;g.X.lU=function(R){this.N=arguments;this.q5||this.U?this.T=!0:Vj(this)};
g.X.stop=function(){this.q5&&(g.HM.clearTimeout(this.q5),this.q5=null,this.T=!1,this.N=null)};
g.X.pause=function(){this.U++};
g.X.resume=function(){this.U--;this.U||!this.T||this.q5||(this.T=!1,Vj(this))};
g.X.oG=function(){g.G.prototype.oG.call(this);this.stop()};g.rs.prototype[Symbol.iterator]=function(){return this};
g.rs.prototype.next=function(){var R=this.T.next();return{value:R.done?void 0:this.U.call(void 0,R.value),done:R.done}};g.Ms(g.SC,g.TC);g.X=g.SC.prototype;g.X.isPlaying=function(){return this.T==1};
g.X.isPaused=function(){return this.T==-1};
g.X.ob=function(){this.OU("begin")};
g.X.Io=function(){this.OU("end")};
g.X.onFinish=function(){this.OU("finish")};
g.X.onStop=function(){this.OU("stop")};
g.X.OU=function(R){this.dispatchEvent(R)};var MEv=PI(function(){var R=g.gu("DIV"),F=g.WI?"-webkit":t_?"-moz":null,n="transition:opacity 1s linear;";F&&(n+=F+"-transition:opacity 1s linear;");F=ncf({style:n});if(R.nodeType===1&&/^(script|style)$/i.test(R.tagName))throw Error("");R.innerHTML=Oj(F);return g.qu(R.firstChild,"transition")!=""});g.Ms(LO,g.SC);g.X=LO.prototype;g.X.play=function(){if(this.isPlaying())return!1;this.ob();this.OU("play");this.startTime=g.J7();this.T=1;if(MEv())return g.fY(this.U,this.Z),this.N=g.JD(this.gSZ,void 0,this),!0;this.YR(!1);return!1};
g.X.gSZ=function(){g.A_(this.U);zyN(this.U,this.X);g.fY(this.U,this.J);this.N=g.JD((0,g.k$)(this.YR,this,!1),this.W*1E3)};
g.X.stop=function(){this.isPlaying()&&this.YR(!0)};
g.X.YR=function(R){g.fY(this.U,"transition","");g.HM.clearTimeout(this.N);g.fY(this.U,this.J);this.endTime=g.J7();this.T=0;if(R)this.onStop();else this.onFinish();this.Io()};
g.X.oG=function(){this.stop();LO.Lk.oG.call(this)};
g.X.pause=function(){};var QNJ={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};sA("Element","attributes")||sA("Node","attributes");sA("Element","innerHTML")||sA("HTMLElement","innerHTML");sA("Node","nodeName");sA("Node","nodeType");sA("Node","parentNode");sA("Node","childNodes");sA("HTMLElement","style")||sA("Element","style");sA("HTMLStyleElement","sheet");var pv6=wvj("getPropertyValue"),XvV=wvj("setProperty");sA("Element","namespaceURI")||sA("Node","namespaceURI");var sN_={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var TDN,JlJ,CQJ,aGN,oF_;TDN=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]");JlJ=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.lNU=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.XK=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]");CQJ=/^http:\/\/.*/;g.Ne$=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");aGN=/\s+/;oF_=/[\d\u06f0-\u06f9]/;ap.prototype.YC=function(){return new CO(this.U())};
ap.prototype[Symbol.iterator]=function(){return new T0(this.U())};
ap.prototype.T=function(){return new T0(this.U())};
g.a(CO,g.xn);CO.prototype.next=function(){return this.U.next()};
CO.prototype[Symbol.iterator]=function(){return new T0(this.U)};
CO.prototype.T=function(){return new T0(this.U)};
g.a(T0,ap);T0.prototype.next=function(){return this.N.next()};yj.prototype.clone=function(){return new yj(this.T,this.X,this.N,this.W,this.J,this.Z,this.U,this.V)};
yj.prototype.equals=function(R){return this.T==R.T&&this.X==R.X&&this.N==R.N&&this.W==R.W&&this.J==R.J&&this.Z==R.Z&&this.U==R.U&&this.V==R.V};jC.prototype.clone=function(){return new jC(this.start,this.end)};(function(){if($UV){var R=/Windows NT ([0-9.]+)/;return(R=R.exec(g.ft()))?R[1]:"0"}return gj?(R=/1[0|1][_.][0-9_.]+/,(R=R.exec(g.ft()))?R[0].replace(/_/g,"."):"10"):g.rf?(R=/Android\s+([^\);]+)(\)|;)/,(R=R.exec(g.ft()))?R[1]:""):n7I||Vn6||rRv?(R=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(R=R.exec(g.ft()))?R[1].replace(/_/g,"."):""):""})();var jNf=function(){if(g.oc)return Ht(/Firefox\/([0-9.]+)/);if(g.pO||g.Nx||g.EV)return $sJ;if(g.Sl){if(Fr()||no()){var R=Ht(/CriOS\/([0-9.]+)/);if(R)return R}return Ht(/Chrome\/([0-9.]+)/)}if(g.A1&&!Fr())return Ht(/Version\/([0-9.]+)/);if(FA||nw){if(R=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.ft()))return R[1]+"."+R[2]}else if(g.$0)return(R=Ht(/Android\s+([0-9.]+)/))?R:Ht(/Version\/([0-9.]+)/);return""}();g.Ms(g.Wt,g.G);g.X=g.Wt.prototype;g.X.subscribe=function(R,F,n){var V=this.U[R];V||(V=this.U[R]=[]);var r=this.Z;this.T[r]=R;this.T[r+1]=F;this.T[r+2]=n;this.Z=r+3;V.push(r);return r};
g.X.unsubscribe=function(R,F,n){if(R=this.U[R]){var V=this.T;if(R=R.find(function(r){return V[r+1]==F&&V[r+2]==n}))return this.V6(R)}return!1};
g.X.V6=function(R){var F=this.T[R];if(F){var n=this.U[F];this.J!=0?(this.N.push(R),this.T[R+1]=function(){}):(n&&g.VK(n,R),delete this.T[R],delete this.T[R+1],delete this.T[R+2])}return!!F};
g.X.publish=function(R,F){var n=this.U[R];if(n){var V=Array(arguments.length-1),r=arguments.length,v;for(v=1;v<r;v++)V[v-1]=arguments[v];if(this.X)for(v=0;v<n.length;v++)r=n[v],HeE(this.T[r+1],this.T[r+2],V);else{this.J++;try{for(v=0,r=n.length;v<r&&!this.Zo();v++){var f=n[v];this.T[f+1].apply(this.T[f+2],V)}}finally{if(this.J--,this.N.length>0&&this.J==0)for(;n=this.N.pop();)this.V6(n)}}return v!=0}return!1};
g.X.clear=function(R){if(R){var F=this.U[R];F&&(F.forEach(this.V6,this),delete this.U[R])}else this.T.length=0,this.U={}};
g.X.oG=function(){g.Wt.Lk.oG.call(this);this.clear();this.N.length=0};g.ua.prototype.set=function(R,F){F===void 0?this.pS.remove(R):this.pS.set(R,g.lh(F))};
g.ua.prototype.get=function(R){try{var F=this.pS.get(R)}catch(n){return}if(F!==null)try{return JSON.parse(F)}catch(n){throw"Storage: Invalid value was encountered";}};
g.ua.prototype.remove=function(R){this.pS.remove(R)};g.Ms(Bt,g.ua);Bt.prototype.set=function(R,F){Bt.Lk.set.call(this,R,WFI(F))};
Bt.prototype.qU=function(R){R=Bt.Lk.get.call(this,R);if(R===void 0||R instanceof Object)return R;throw"Storage: Invalid value was encountered";};
Bt.prototype.get=function(R){if(R=this.qU(R)){if(R=R.data,R===void 0)throw"Storage: Invalid value was encountered";}else R=void 0;return R};g.Ms(m9,Bt);m9.prototype.set=function(R,F,n){if(F=WFI(F)){if(n){if(n<g.J7()){m9.prototype.remove.call(this,R);return}F.expiration=n}F.creation=g.J7()}m9.Lk.set.call(this,R,F)};
m9.prototype.qU=function(R,F){var n=m9.Lk.qU.call(this,R);if(n)if(!F&&g.uER(n))m9.prototype.remove.call(this,R);else return n};g.Ms(g.gs,m9);g.Ms(OA,BDf);OA.prototype[Symbol.iterator]=function(){return g.op(this.YC(!0)).T()};
OA.prototype.clear=function(){var R=Array.from(this);R=g.m(R);for(var F=R.next();!F.done;F=R.next())this.remove(F.value)};g.Ms(Ip,OA);g.X=Ip.prototype;g.X.isAvailable=function(){if(this.U===null){var R=this.T;if(R)try{R.setItem("__sak","1");R.removeItem("__sak");var F=!0}catch(n){F=n instanceof DOMException&&(n.name==="QuotaExceededError"||n.code===22||n.code===1014||n.name==="NS_ERROR_DOM_QUOTA_REACHED")&&R&&R.length!==0}else F=!1;this.U=F}return this.U};
g.X.set=function(R,F){KO(this);try{this.T.setItem(R,F)}catch(n){if(this.T.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.X.get=function(R){KO(this);R=this.T.getItem(R);if(typeof R!=="string"&&R!==null)throw"Storage mechanism: Invalid value was encountered";return R};
g.X.remove=function(R){KO(this);this.T.removeItem(R)};
g.X.YC=function(R){KO(this);var F=0,n=this.T,V=new g.xn;V.next=function(){if(F>=n.length)return g.q$;var r=n.key(F++);if(R)return g.kn(r);r=n.getItem(r);if(typeof r!=="string")throw"Storage mechanism: Invalid value was encountered";return g.kn(r)};
return V};
g.X.clear=function(){KO(this);this.T.clear()};
g.X.key=function(R){KO(this);return this.T.key(R)};g.Ms(DA,Ip);g.Ms(mG_,Ip);g.Ms(ia,OA);ia.prototype.set=function(R,F){this.U.set(this.T+R,F)};
ia.prototype.get=function(R){return this.U.get(this.T+R)};
ia.prototype.remove=function(R){this.U.remove(this.T+R)};
ia.prototype.YC=function(R){var F=this.U[Symbol.iterator](),n=this,V=new g.xn;V.next=function(){var r=F.next();if(r.done)return r;for(r=r.value;r.slice(0,n.T.length)!=n.T;){r=F.next();if(r.done)return r;r=r.value}return g.kn(R?r.slice(n.T.length):n.U.get(r))};
return V};ke.prototype.getValue=function(){return this.U};
ke.prototype.clone=function(){return new ke(this.T,this.U)};g.X=Ye.prototype;g.X.X6=function(R,F){var n=this.T;n.push(new ke(R,F));R=n.length-1;F=this.T;for(n=F[R];R>0;){var V=R-1>>1;if(F[V].T>n.T)F[R]=F[V],R=V;else break}F[R]=n};
g.X.remove=function(){var R=this.T,F=R.length,n=R[0];if(!(F<=0)){if(F==1)R.length=0;else{R[0]=R.pop();R=0;F=this.T;for(var V=F.length,r=F[R];R<V>>1;){var v=R*2+1,f=R*2+2;v=f<V&&F[f].T<F[v].T?f:v;if(F[v].T>r.T)break;F[R]=F[v];R=v}F[R]=r}return n.getValue()}};
g.X.GU=function(){for(var R=this.T,F=[],n=R.length,V=0;V<n;V++)F.push(R[V].getValue());return F};
g.X.V8=function(){for(var R=this.T,F=[],n=R.length,V=0;V<n;V++)F.push(R[V].T);return F};
g.X.clone=function(){return new Ye(this)};
g.X.isEmpty=function(){return this.T.length===0};
g.X.clear=function(){this.T.length=0};g.a(G0,Ye);G0.prototype.enqueue=function(R,F){this.X6(R,F)};ds.Nc=void 0;ds.getInstance=function(){return ds.Nc?ds.Nc:ds.Nc=new ds};
ds.prototype.T=0;var MX={},ENU=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";MX.assign=function(R){for(var F=Array.prototype.slice.call(arguments,1);F.length;){var n=F.shift();if(n){if(typeof n!=="object")throw new TypeError(n+"must be non-object");for(var V in n)Object.prototype.hasOwnProperty.call(n,V)&&(R[V]=n[V])}}return R};
MX.Rh=function(R,F){if(R.length===F)return R;if(R.subarray)return R.subarray(0,F);R.length=F;return R};
var $65={R_:function(R,F,n,V,r){if(F.subarray&&R.subarray)R.set(F.subarray(n,n+V),r);else for(var v=0;v<V;v++)R[r+v]=F[n+v]},
yA:function(R){var F,n;var V=n=0;for(F=R.length;V<F;V++)n+=R[V].length;var r=new Uint8Array(n);V=n=0;for(F=R.length;V<F;V++){var v=R[V];r.set(v,n);n+=v.length}return r}},P97={R_:function(R,F,n,V,r){for(var v=0;v<V;v++)R[r+v]=F[n+v]},
yA:function(R){return[].concat.apply([],R)}};
MX.H5S=function(){ENU?(MX.FJ=Uint8Array,MX.Yo=Uint16Array,MX.iD=Int32Array,MX.assign(MX,$65)):(MX.FJ=Array,MX.Yo=Array,MX.iD=Array,MX.assign(MX,P97))};
MX.H5S();var bWM=!0;try{new Uint8Array(1)}catch(R){bWM=!1};var pA={};pA=function(R,F,n,V){var r=R&65535|0;R=R>>>16&65535|0;for(var v;n!==0;){v=n>2E3?2E3:n;n-=v;do r=r+F[V++]|0,R=R+r|0;while(--v);r%=65521;R%=65521}return r|R<<16|0};for(var X4={},AO,ZWh=[],a1=0;a1<256;a1++){AO=a1;for(var eV7=0;eV7<8;eV7++)AO=AO&1?3988292384^AO>>>1:AO>>>1;ZWh[a1]=AO}X4=function(R,F,n,V){n=V+n;for(R^=-1;V<n;V++)R=R>>>8^ZWh[(R^F[V])&255];return R^-1};var tt={};tt={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 RH=[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],Vi=[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],VGj=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],lGR=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],cU=Array(576);la(cU);var wB=Array(60);la(wB);var nA=Array(512);la(nA);var eC=Array(256);la(eC);var F4=Array(29);la(F4);var rB=Array(30);la(rB);var Rv_,Ftj,nvN,eyf=!1;var HU;HU=[new jw(0,0,0,0,function(R,F){var n=65535;for(n>R.ND-5&&(n=R.ND-5);;){if(R.Rn<=1){At(R);if(R.Rn===0&&F===0)return 1;if(R.Rn===0)break}R.sN+=R.Rn;R.Rn=0;var V=R.qd+n;if(R.sN===0||R.sN>=V)if(R.Rn=R.sN-V,R.sN=V,Sw(R,!1),R.Dh.Gk===0)return 1;if(R.sN-R.qd>=R.WW-262&&(Sw(R,!1),R.Dh.Gk===0))return 1}R.X6=0;if(F===4)return Sw(R,!0),R.Dh.Gk===0?3:4;R.sN>R.qd&&Sw(R,!1);return 1}),
new jw(4,4,8,4,aH),new jw(4,5,16,8,aH),new jw(4,6,32,32,aH),new jw(4,4,16,16,CA),new jw(8,16,32,32,CA),new jw(8,16,128,128,CA),new jw(8,32,128,256,CA),new jw(32,128,258,1024,CA),new jw(32,258,258,4096,CA)];var ZeR={};ZeR=function(){this.input=null;this.AT=this.K6=this.Q9=0;this.output=null;this.PK=this.Gk=this.CR=0;this.msg="";this.state=null;this.Nt=2;this.Ww=0};var rD_=Object.prototype.toString;
ht.prototype.push=function(R,F){var n=this.Dh,V=this.options.chunkSize;if(this.ended)return!1;var r=F===~~F?F:F===!0?4:0;typeof R==="string"?n.input=IGR(R):rD_.call(R)==="[object ArrayBuffer]"?n.input=new Uint8Array(R):n.input=R;n.Q9=0;n.K6=n.input.length;do{n.Gk===0&&(n.output=new MX.FJ(V),n.CR=0,n.Gk=V);R=bee(n,r);if(R!==1&&R!==0)return this.Io(R),this.ended=!0,!1;if(n.Gk===0||n.K6===0&&(r===4||r===2))if(this.options.to==="string"){var v=MX.Rh(n.output,n.CR);F=v;v=v.length;if(v<65537&&(F.subarray&&
bWM||!F.subarray))F=String.fromCharCode.apply(null,MX.Rh(F,v));else{for(var f="",z=0;z<v;z++)f+=String.fromCharCode(F[z]);F=f}this.chunks.push(F)}else F=MX.Rh(n.output,n.CR),this.chunks.push(F)}while((n.K6>0||n.Gk===0)&&R!==1);if(r===4)return(n=this.Dh)&&n.state?(V=n.state.status,V!==42&&V!==69&&V!==73&&V!==91&&V!==103&&V!==113&&V!==666?R=zw(n,-2):(n.state=null,R=V===113?zw(n,-3):0)):R=-2,this.Io(R),this.ended=!0,R===0;r===2&&(this.Io(0),n.Gk=0);return!0};
ht.prototype.Io=function(R){R===0&&(this.result=this.options.to==="string"?this.chunks.join(""):MX.yA(this.chunks));this.chunks=[];this.err=R;this.msg=this.Dh.msg};var ug="@@redux/INIT"+WU(),QmV="@@redux/REPLACE"+WU();var cDR=typeof Symbol==="function"&&Symbol.observable||"@@observable";var ROr=[0,NPN,-3,vn];g.a(sm9,P4);var bpV=lTf(sm9,[0,fC,E7J,Fz,NPN,Fz,-1,vn,NPN,vn,-1,fC,vn,E7J,nC,ROr,Fz,-1,vn]);var Tek=-895723175;var Fhs=function(R,F){return function(){var n=new G5j(R,F,ip);return function(){return n}}()}("youtube.api.innertube.AttestationError",'[null,[["ATTESTATION_ERROR_UNKNOWN",0],["ATTESTATION_ERROR_VM_NOT_INITIALIZED",1],["ATTESTATION_ERROR_VM_NO_RESPONSE",2],["ATTESTATION_ERROR_VM_TIMEOUT",3],["ATTESTATION_ERROR_VM_INTERNAL_ERROR",4],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INVALID",5],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_NETWORK_ERROR",6],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_OFFLINE",7],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INTERNAL_ERROR",8],["ATTESTATION_ERROR_API_NOT_READY",9],["ATTESTATION_ERROR_DEVICE_OFFLINE",10],["ATTESTATION_ERROR_KEY_PAIR_INIT_FAILED",12],["ATTESTATION_ERROR_SIGNING_DATA_MISSING",13],["ATTESTATION_ERROR_SIGNING_FAILED",14],["ATTESTATION_ERROR_CERT_CHAIN_RETRIEVAL_FAILED",15]],null,[[11,11]]]');var gh_=new g.gB("adInfoDialogEndpoint");var Hrf=new g.gB("adPingingEndpoint");var eMe=new g.gB("crossDeviceProgressCommand");var r6=new g.gB("actionCompanionAdRenderer");var eq=new g.gB("adActionInterstitialRenderer");var n$O=new g.gB("adDurationRemainingRenderer");var g6=new g.gB("adHoverTextButtonRenderer");var BfN=new g.gB("adInfoDialogRenderer");var Q5=new g.gB("adMessageRenderer");var Of=new g.gB("adPreviewRenderer");var fj=new g.gB("adsEngagementPanelRenderer");var rTf=new g.gB("dismissablePanelTextPortraitImageRenderer");var yQ=new g.gB("adsEngagementPanelSectionListViewModel");var V7h=new g.gB("flyoutCtaRenderer");var vS=new g.gB("imageCompanionAdRenderer");var bJ=new g.gB("instreamAdPlayerOverlayRenderer");var tYv=new g.gB("instreamSurveyAdBackgroundImageRenderer");var me=new g.gB("instreamSurveyAdPlayerOverlayRenderer");var XO=new g.gB("instreamSurveyAdRenderer"),BS=new g.gB("instreamSurveyAdSingleSelectQuestionRenderer"),u8=new g.gB("instreamSurveyAdMultiSelectQuestionRenderer"),CC=new g.gB("instreamSurveyAdAnswerRenderer"),r75=new g.gB("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var sf=new g.gB("instreamVideoAdRenderer");var v$5=new g.gB("textOverlayAdContentRenderer"),frD=new g.gB("enhancedTextOverlayAdContentRenderer"),t7h=new g.gB("imageOverlayAdContentRenderer");var ZX=new g.gB("playerOverlayLayoutRenderer");var RT=new g.gB("videoInterstitialButtonedCenteredLayoutRenderer");var qE9=new g.gB("aboveFeedAdLayoutRenderer");var Q7N=new g.gB("belowPlayerAdLayoutRenderer");var zAN=new g.gB("inPlayerAdLayoutRenderer");var cTN=new g.gB("inPlayerOrganicOverlayAdLayoutRenderer");var Cj=new g.gB("playerBytesAdLayoutRenderer");var h6=new g.gB("playerBytesSequenceItemAdLayoutRenderer");var HS=new g.gB("playerUnderlayAdLayoutRenderer");var pj=new g.gB("adIntroRenderer");var St=new g.gB("playerBytesSequentialLayoutRenderer");var MAV=new g.gB("slidingTextPlayerOverlayRenderer");var A6=new g.gB("surveyTextInterstitialRenderer");var TN=new g.gB("videoAdTrackingRenderer");var RAI=new g.gB("videoInterstitialCenteredLayoutViewModel");var zOv=new g.gB("simpleAdBadgeRenderer");var cg=new g.gB("skipAdRenderer"),qvD=new g.gB("skipButtonRenderer");var WS=new g.gB("adSlotRenderer");var Uf=new g.gB("squeezebackPlayerSidePanelRenderer");var QDh=new g.gB("timedPieCountdownRenderer");var Gc=new g.gB("adAvatarViewModel");var dc=new g.gB("adBadgeViewModel");var Me=new g.gB("adButtonViewModel");var c7q=new g.gB("adDetailsLineViewModel");var wMh=new g.gB("adDisclosureBannerViewModel");var SvM=new g.gB("adPodIndexViewModel");var Lhq=new g.gB("imageBackgroundViewModel");var sD7=new g.gB("adGridCardCollectionViewModel");var pMU=new g.gB("adGridCardTextViewModel");var XM7=new g.gB("adPreviewViewModel");var A7U=new g.gB("playerAdAvatarLockupCardButtonedViewModel");var arU=new g.gB("skipAdButtonViewModel");var CU$=new g.gB("skipAdViewModel");var TqM=new g.gB("timedPieCountdownViewModel");var o$7=new g.gB("visitAdvertiserLinkViewModel");var t6=new g.gB("bannerImageLayoutViewModel");var zN=new g.gB("topBannerImageTextIconButtonedLayoutViewModel");var q9=new g.gB("adsEngagementPanelLayoutViewModel");var jt=new g.gB("displayUnderlayTextGridCardsLayoutViewModel");g.Ph=new g.gB("browseEndpoint");var y77=new g.gB("confirmDialogEndpoint");var DfI=new g.gB("commandContext");var Mwj=new g.gB("rawColdConfigGroup");var dqW=new g.gB("rawHotConfigGroup");g.sq=new g.gB("commandExecutorCommand");g.a(p2f,P4);var sUI={xEZ:0,JKz:1,F3H:32,z7Q:61,vO5:67,Ygz:103,nOG:86,l4z:42,K3Q:60,oOS:62,twG:73,bDG:76,XOH:88,e7H:90,CEG:99,wOG:98,gOG:100,ZDG:102,I42:41,DFS:69,dFz:70,Sg5:71,Y85:2,XX2:27,ANDROID:3,d6X:54,SD2:14,x6Z:91,qD2:55,r5S:24,V72:20,Lzq:18,hiX:21,RiQ:104,O6S:30,EYo:29,a0Z:28,ysS:101,pWG:34,f0G:36,H6H:38,IOS:5,KsH:15,e8Z:92,B4Q:40,ZfZ:25,tU2:17,z85:19,MUq:64,nKq:66,YUz:26,vKH:22,CuZ:33,Ilz:68,DDG:35,XAG:53,gKH:37,bfS:39,CrH:7,I11:57,DES:43,SJG:59,dE5:93,kYz:74,qJ5:75,rsZ:85,VmH:65,H7z:80,haZ:8,go2:10,
GvQ:58,Ra2:63,LmG:72,i62:23,VwG:11,L3S:13,CW1:12,voz:16,PEH:56,Mw2:31,thG:77,RT2:84,BYq:87,uoG:89,GUo:94,j2G:95};g.a(O3,P4);O3.prototype.va=function(){return ZF(this,3)};
O3.prototype.rJ=function(){return ZF(this,5)};
O3.prototype.iE=function(R){return V7(this,5,R)};g.a(IH,P4);g.a(X2e,P4);g.a(KA,P4);g.X=KA.prototype;g.X.getDeviceId=function(){return ZF(this,6)};
g.X.YN=function(R){var F=u3(this,9,Dx,3,!0);c7(F,R);return F[R]};
g.X.getPlayerType=function(){return ep(this,36)};
g.X.setHomeGroupInfo=function(R){return Nm(this,X2e,81,R)};
g.X.clearLocationPlayabilityToken=function(){return Ud(this,89)};g.a(DJ,P4);DJ.prototype.getValue=function(){return ZF(this,YD(this,Jtf,2))};
var Jtf=[2,3,4,5,6];g.a(ig,P4);ig.prototype.setTrackingParams=function(R){return Ud(this,1,SjE(R,!1))};g.a(xL,P4);g.a(kL,P4);kL.prototype.YN=function(R){var F=u3(this,5,Jb,3,!0);c7(F,R);return F[R]};g.a(YL,P4);YL.prototype.getToken=function(){return Fd(this,2)};
YL.prototype.setToken=function(R){return V7(this,2,R)};g.a(Jt,P4);Jt.prototype.setSafetyMode=function(R){return v4(this,5,R)};g.a(Gw,P4);Gw.prototype.HV=function(R){return Nm(this,KA,1,R)};var Kj=new g.gB("thumbnailLandscapePortraitRenderer");g.Ush=new g.gB("changeEngagementPanelVisibilityAction");var z8N=new g.gB("continuationCommand");var jD$=new g.gB("openPopupAction");g.dg=new g.gB("signalAction");g.TI=new g.gB("webCommandMetadata");var XGE=new g.gB("metadataBadgeRenderer");var taJ=new g.gB("signalServiceEndpoint");var IQ=new g.gB("innertubeCommand");var d8v=new g.gB("loggingDirectives");var R06={l8H:"EMBEDDED_PLAYER_MODE_UNKNOWN",WpS:"EMBEDDED_PLAYER_MODE_DEFAULT",P4G:"EMBEDDED_PLAYER_MODE_PFP",wy2:"EMBEDDED_PLAYER_MODE_PFL"};var NME=new g.gB("channelThumbnailEndpoint");var lyN=new g.gB("embeddedPlayerErrorMessageRenderer");var Jq_=new g.gB("embeddedPlayerOverlayVideoDetailsRenderer"),EE_=new g.gB("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),$VV=new g.gB("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var L1k=new g.gB("embedsInfoPanelRenderer");var pLf=new g.gB("feedbackEndpoint");var Hq5=new g.gB("callToActionButtonViewModel");var hOq=new g.gB("interactionLoggingCommandMetadata");var $1J={W3G:"WEB_DISPLAY_MODE_UNKNOWN",jo1:"WEB_DISPLAY_MODE_BROWSER",AKX:"WEB_DISPLAY_MODE_MINIMAL_UI",QoG:"WEB_DISPLAY_MODE_STANDALONE",soH:"WEB_DISPLAY_MODE_FULLSCREEN"};g.a(dB,P4);dB.prototype.getPlayerType=function(){return ep(this,7)};
dB.prototype.B_=function(){return ZF(this,19)};
dB.prototype.setVideoId=function(R){return V7(this,19,R)};g.a(Mq,P4);g.a(lg,P4);g.a(Nq,P4);
var WhM=[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,526,527,528,529,530,531,536,537,538,539,541];var u5q=new g.gB("loggingContext");g.a(E3,P4);g.a($L,P4);$L.prototype.B_=function(){return Fd(this,YD(this,Vt,1))};
$L.prototype.setVideoId=function(R){return xD(this,1,Vt,e5(R))};
$L.prototype.getPlaylistId=function(){return Fd(this,YD(this,Vt,2))};
var Vt=[1,2];g.a(g.PU,P4);g.PU.prototype.It=i9(0);var Bqq=new g.gB("dismissPlayerOverlayCommand");var Ur=new g.gB("changeKeyedMarkersVisibilityCommand");var msM=new g.gB("changeMarkersVisibilityCommand");var ay_=new g.gB("loadMarkersCommand");var g$h=new g.gB("suggestedActionDataViewModel");var GOk=new g.gB("timelyActionViewModel");var JXI=new g.gB("timelyActionsOverlayViewModel");var QPI=new g.gB("productListItemRenderer");var OqU=new g.gB("shoppingOverlayRenderer");var G_e=new g.gB("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var Irv=new g.gB("adFeedbackEndpoint");var Kh$=new g.gB("menuEndpoint");var L_6=new g.gB("phoneDialerEndpoint");var wLE=new g.gB("sendSmsEndpoint");var YoJ=new g.gB("copyTextEndpoint");var Dsz=new g.gB("shareEndpoint"),iqq=new g.gB("shareEntityEndpoint"),xs5=new g.gB("shareEntityServiceEndpoint"),kvO=new g.gB("webPlayerShareEntityServiceEndpoint");g.is=new g.gB("urlEndpoint");g.oo=new g.gB("watchEndpoint");var Yvq=new g.gB("watchPlaylistEndpoint");g.J7s=new g.gB("offlineOrchestrationActionCommand");var aME=new g.gB("compositeVideoOverlayRenderer");var Gv7=new g.gB("miniplayerRenderer");var iBI=new g.gB("paidContentOverlayRenderer");var A6f=new g.gB("playerMutedAutoplayOverlayRenderer"),aqN=new g.gB("playerMutedAutoplayEndScreenRenderer");var wSE=new g.gB("unserializedPlayerResponse"),uON=new g.gB("unserializedPlayerResponse");var dsz=new g.gB("playlistEditEndpoint");var Iw=new g.gB("buttonRenderer"),o1=new g.gB("toggleButtonRenderer");var nK6=new g.gB("counterfactualRenderer");var M7q=new g.gB("resolveUrlCommandMetadata");var lr$=new g.gB("modifyChannelNotificationPreferenceEndpoint");var jS_=new g.gB("pingingEndpoint");var NqD=new g.gB("unsubscribeEndpoint");g.bt=new g.gB("subscribeButtonRenderer");var E$O=new g.gB("subscribeEndpoint");var hPf=new g.gB("buttonViewModel");var VAI=new g.gB("qrCodeRenderer");var Xgj={pAH:"LIVING_ROOM_APP_MODE_UNSPECIFIED",kyQ:"LIVING_ROOM_APP_MODE_MAIN",ifG:"LIVING_ROOM_APP_MODE_KIDS",EKG:"LIVING_ROOM_APP_MODE_MUSIC",alS:"LIVING_ROOM_APP_MODE_UNPLUGGED",OfH:"LIVING_ROOM_APP_MODE_GAMING"};var cq9=new g.gB("autoplaySwitchButtonRenderer");var bk,tJI,KeJ,AVk;bk=new g.gB("decoratedPlayerBarRenderer");tJI=new g.gB("chapteredPlayerBarRenderer");KeJ=new g.gB("multiMarkersPlayerBarRenderer");AVk=new g.gB("chapterRenderer");g.cVe=new g.gB("markerRenderer");var yVW=new g.gB("decoratedPlayheadRenderer");var sYE=new g.gB("desktopOverlayConfigRenderer");var vKk=new g.gB("engagementPanelSectionListRenderer");var SoI=new g.gB("gatedActionsOverlayViewModel");var sbe=new g.gB("heatMarkerRenderer");var LBE=new g.gB("heatmapRenderer");var AqN=new g.gB("watchToWatchTransitionRenderer");var dVI=new g.gB("playlistPanelRenderer");var $sD=new g.gB("productUpsellSuggestedActionViewModel");var PU7=new g.gB("suggestedActionTimeRangeTrigger"),bq7=new g.gB("suggestedActionsRenderer"),Zqh=new g.gB("suggestedActionRenderer");var pwJ=new g.gB("timedMarkerDecorationRenderer");var FIN=new g.gB("cipher");var Sff=new g.gB("playerVars");var B6j=new g.gB("playerVars");var yU=g.HM.window,eOq,RJD,bg=(yU==null?void 0:(eOq=yU.yt)==null?void 0:eOq.config_)||(yU==null?void 0:(RJD=yU.ytcfg)==null?void 0:RJD.data_)||{};g.h7("yt.config_",bg);var Fl=[];var hve=/^[\w.]*$/,yDW={q:!0,search_query:!0},ovW=String(vC);var L$=new function(){var R=window.document;this.T=window;this.U=R};
g.h7("yt.ads_.signals_.getAdSignalsString",function(R){return f$(p$(R))});g.J7();var u1e="XMLHttpRequest"in g.HM?function(){return new XMLHttpRequest}:null;var F0O="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.I(F0O);var OTk={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"},MGI="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.I(F0O)),YZN=!1,iT9=WC;g.a(mH,lU);Ik.prototype.then=function(R,F,n){return this.T?this.T.then(R,F,n):this.N===1&&R?(R=R.call(n,this.U))&&typeof R.then==="function"?R:D_(R):this.N===2&&F?(R=F.call(n,this.U))&&typeof R.then==="function"?R:K$(R):this};
Ik.prototype.getValue=function(){return this.U};
Ik.prototype.$goog_Thenable=!0;var ix=!1;var lV=FA||nw;var ZTE=/^([0-9\.]+):([0-9\.]+)$/;g.a(AL,lU);AL.prototype.name="BiscottiError";g.a(XA,lU);XA.prototype.name="BiscottiMissingError";var nqV={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},ax=null;var Wh_=g.ER(["data-"]),cSN={};var ncz=0,Cw=g.WI?"webkit":t_?"moz":g.pO?"ms":g.EV?"o":"",VWU=g.WM("ytDomDomGetNextId")||function(){return++ncz};
g.h7("ytDomDomGetNextId",VWU);var sFV={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};Hc.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Hc.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Hc.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var hL=g.HM.ytEventsEventsListeners||{};g.h7("ytEventsEventsListeners",hL);var AS9=g.HM.ytEventsEventsCounter||{count:0};g.h7("ytEventsEventsCounter",AS9);var oqN=PI(function(){var R=!1;try{var F=Object.defineProperty({},"passive",{get:function(){R=!0}});
window.addEventListener("test",null,F)}catch(n){}return R}),aej=PI(function(){var R=!1;
try{var F=Object.defineProperty({},"capture",{get:function(){R=!0}});
window.addEventListener("test",null,F)}catch(n){}return R});var Ux;Ux=window;g.h1=Ux.ytcsi&&Ux.ytcsi.now?Ux.ytcsi.now:Ux.performance&&Ux.performance.timing&&Ux.performance.now&&Ux.performance.timing.navigationStart?function(){return Ux.performance.timing.navigationStart+Ux.performance.now()}:function(){return(new Date).getTime()};g.Ms(gf,g.G);gf.prototype.UZ=function(R){R.T===void 0&&p3V(R);var F=R.T;R.U===void 0&&p3V(R);this.T=new g.z5(F,R.U)};
gf.prototype.wZ=function(){return this.T||new g.z5};
gf.prototype.Nq=function(){if(this.T){var R=(0,g.h1)();if(this.J!=0){var F=this.Z,n=this.T,V=F.x-n.x;F=F.y-n.y;V=Math.sqrt(V*V+F*F)/(R-this.J);this.U[this.N]=Math.abs((V-this.W)/this.W)>.5?1:0;for(n=F=0;n<4;n++)F+=this.U[n]||0;F>=3&&this.X();this.W=V}this.J=R;this.Z=this.T;this.N=(this.N+1)%4}};
gf.prototype.oG=function(){g.ok(this.V);g.u6(this.J1)};g.a(Ow,g.G);Ow.prototype.C=function(R,F,n,V,r){n=g.Vb((0,g.k$)(n,V||this.mQ));n={target:R,name:F,callback:n};var v;r&&oqN()&&(v={passive:!0});R.addEventListener(F,n.callback,v);this.Z.push(n);return n};
Ow.prototype.ZO=function(R){for(var F=0;F<this.Z.length;F++)if(this.Z[F]==R){this.Z.splice(F,1);R.target.removeEventListener(R.name,R.callback);break}};
Ow.prototype.oG=function(){g.Kw(this);g.G.prototype.oG.call(this)};var a6R=["att/get"],hhk=["embedded_player"],q$N=["account/get_setting_values"],rx$=["share/get_share_panel"],vch=["share/get_web_player_share_panel"],fiU=["feedback"],tWv=["notification/modify_channel_preference"],Ld9=["player"],zJv=["browse/edit_playlist"],aQI=["reel/reel_item_watch"],wjV=["account/set_setting"],qmz=["subscription/subscribe"],Qzr=["subscription/unsubscribe"],X6V=["next","unplugged/watch_next"];g.Dg={ow:PI(function(){try{var R=new DA;var F=R.isAvailable()?R:null}catch(n){return null}return F?new g.gs(F):null}),
Wz:PI(function(){var R=new mG_;return R.isAvailable()?new g.gs(R):null})};g.cxO=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.h7("yt.msgs_",g.cxO);GQ.prototype.ut=function(R,F){R={};var n=[];"USER_SESSION_ID"in bg&&n.push({key:"u",value:g.ew("USER_SESSION_ID")});if(n=ud_(n))R.Authorization=n,n=F=F==null?void 0:F.sessionIndex,n===void 0&&(n=Number(g.ew("SESSION_INDEX",0)),n=isNaN(n)?0:n),g.U2("voice_search_auth_header_removal")||(R["X-Goog-AuthUser"]=n.toString()),"INNERTUBE_HOST_OVERRIDE"in bg||(R["X-Origin"]=window.location.origin),F===void 0&&"DELEGATED_SESSION_ID"in bg&&(R["X-Goog-PageId"]=g.ew("DELEGATED_SESSION_ID"));return R};var LI={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var l6=g.WM("ytglobal.prefsUserPrefsPrefs_")||{};g.h7("ytglobal.prefsUserPrefsPrefs_",l6);var df;g.X=h0_.prototype;g.X.get=function(R,F){$h(R);Ew(R);R=l6[R]!==void 0?l6[R].toString():null;return R!=null?R:F?F:""};
g.X.set=function(R,F){$h(R);Ew(R);if(F==null)throw Error("ExpectedNotNull");l6[R]=F.toString()};
g.X.pH=function(R){return!!((WE6("f"+(Math.floor(R/31)+1))||0)&1<<R%31)};
g.X.remove=function(R){$h(R);Ew(R);delete l6[R]};
g.X.save=function(){var R=!0;g.U2("web_secure_pref_cookie_killswitch")&&(R=!1);g.ki(this.T,this.dump(),63072E3,this.U,R)};
g.X.clear=function(){g.zOR(l6)};
g.X.dump=function(){var R=[],F;for(F in l6)l6.hasOwnProperty(F)&&R.push(F+"="+encodeURIComponent(String(l6[F])));return R.join("&")};
g.X.parse=function(R){R=decodeURIComponent(R).split("&");for(var F=0;F<R.length;F++){var n=R[F].split("="),V=n[0];(n=n[1])&&(l6[V]=n.toString())}};var Bbj={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},PMf={CONN_DEFAULT:0,CONN_UNKNOWN:1,CONN_NONE:2,CONN_WIFI:3,CONN_CELLULAR_2G:4,CONN_CELLULAR_3G:5,CONN_CELLULAR_4G:6,CONN_CELLULAR_UNKNOWN:7,CONN_DISCO:8,CONN_CELLULAR_5G:9,CONN_WIFI_METERED:10,CONN_CELLULAR_5G_SA:11,
CONN_CELLULAR_5G_NSA:12,CONN_WIRED:30,CONN_INVALID:31},bDJ={EFFECTIVE_CONNECTION_TYPE_UNKNOWN:0,EFFECTIVE_CONNECTION_TYPE_OFFLINE:1,EFFECTIVE_CONNECTION_TYPE_SLOW_2G:2,EFFECTIVE_CONNECTION_TYPE_2G:3,EFFECTIVE_CONNECTION_TYPE_3G:4,EFFECTIVE_CONNECTION_TYPE_4G:5},gq_={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.a(g.UR,Error);Zg.prototype.dK=function(R,F){return e3(R,1,F)};
Zg.prototype.RR=function(R){(R=this.T.get(R))&&R()};g.WM("yt.scheduler.instance.timerIdMap_");g.a(F_,Zg);F_.prototype.iq=function(R){if(R===void 0||!Number.isNaN(Number(R))){var F=g.WM("yt.scheduler.instance.cancelJob");F?F(R):g.Tg(R)}};
F_.prototype.start=function(){var R=g.WM("yt.scheduler.instance.start");R&&R()};
F_.prototype.pause=function(){var R=g.WM("yt.scheduler.instance.pause");R&&R()};
g.M1=g.n3();vm.prototype.set=function(R,F,n,V){n=n||31104E3;this.remove(R);if(this.T)try{this.T.set(R,F,Date.now()+n*1E3);return}catch(v){}var r="";if(V)try{r=escape(g.lh(F))}catch(v){return}else r=escape(F);g.ki(R,r,n,this.U)};
vm.prototype.get=function(R,F){var n=void 0,V=!this.T;if(!V)try{n=this.T.get(R)}catch(r){V=!0}if(V&&(n=g.Yi(R))&&(n=unescape(n),F))try{n=JSON.parse(n)}catch(r){this.remove(R),n=void 0}return n};
vm.prototype.remove=function(R){this.T&&this.T.remove(R);g.Jj(R,"/",this.U)};
vm.prototype.getCreationTime=function(R){return this.T&&(R=(this.T.qU(R)||{}).creation,typeof R==="number")?R:null};var f3=function(){var R;return function(){R||(R=new vm("ytidb"));return R}}();var QM=[],qx,zR=!1;var jV={},Dvv=(jV.AUTH_INVALID="No user identifier specified.",jV.EXPLICIT_ABORT="Transaction was explicitly aborted.",jV.IDB_NOT_SUPPORTED="IndexedDB is not supported.",jV.MISSING_INDEX="Index not created.",jV.MISSING_OBJECT_STORES="Object stores not created.",jV.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",jV.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",jV.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",jV.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",jV.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",jV.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",jV.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",jV),Hn={},iae=(Hn.AUTH_INVALID="ERROR",Hn.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Hn.EXPLICIT_ABORT="IGNORED",
Hn.IDB_NOT_SUPPORTED="ERROR",Hn.MISSING_INDEX="WARNING",Hn.MISSING_OBJECT_STORES="ERROR",Hn.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Hn.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Hn.QUOTA_EXCEEDED="WARNING",Hn.QUOTA_MAYBE_EXCEEDED="WARNING",Hn.UNKNOWN_ABORT="WARNING",Hn.INCOMPATIBLE_DB_VERSION="WARNING",Hn),hO={},xvE=(hO.AUTH_INVALID=!1,hO.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,hO.EXPLICIT_ABORT=!1,hO.IDB_NOT_SUPPORTED=!1,hO.MISSING_INDEX=!1,hO.MISSING_OBJECT_STORES=!1,hO.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,hO.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,hO.QUOTA_EXCEEDED=!1,hO.QUOTA_MAYBE_EXCEEDED=!0,hO.UNKNOWN_ABORT=!0,hO.INCOMPATIBLE_DB_VERSION=!1,hO);g.a(g.sg,g.UR);g.a(p3,g.sg);g.a(X_,Error);var kjV=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];g.o8.all=function(R){return new g.o8(new TR(function(F,n){var V=[],r=R.length;r===0&&F(V);for(var v={GO:0};v.GO<R.length;v={GO:v.GO},++v.GO)g.o8.resolve(R[v.GO]).then(function(f){return function(z){V[f.GO]=z;r--;r===0&&F(V)}}(v)).catch(function(f){n(f)})}))};
g.o8.resolve=function(R){return new g.o8(new TR(function(F,n){R instanceof g.o8?R.then(F,n):F(R)}))};
g.o8.reject=function(R){return new g.o8(new TR(function(F,n){n(R)}))};
g.o8.prototype.then=function(R,F){var n=this,V=R!=null?R:JSe,r=F!=null?F:Yif;return new g.o8(new TR(function(v,f){n.state.status==="PENDING"?(n.T.push(function(){GjN(n,n,V,v,f)}),n.U.push(function(){dv6(n,n,r,v,f)})):n.state.status==="FULFILLED"?GjN(n,n,V,v,f):n.state.status==="REJECTED"&&dv6(n,n,r,v,f)}))};
g.o8.prototype.catch=function(R){return this.then(void 0,R)};g.X=Pw9.prototype;g.X.add=function(R,F,n){return g.Og(this,[R],{mode:"readwrite",Xs:!0,commit:Wm()},function(V){return V.objectStore(R).add(F,n)})};
g.X.clear=function(R){return g.Og(this,[R],{mode:"readwrite",Xs:!0},function(F){return F.objectStore(R).clear()})};
g.X.close=function(){this.T.close();var R;((R=this.options)==null?0:R.closed)&&this.options.closed()};
g.X.count=function(R,F){return g.Og(this,[R],{mode:"readonly",Xs:!0,commit:Wm()},function(n){return n.objectStore(R).count(F)})};
g.X.delete=function(R,F){return g.Og(this,[R],{mode:"readwrite",Xs:!0,commit:Wm()&&!(F instanceof IDBKeyRange)},function(n){return n.objectStore(R).delete(F)})};
g.X.get=function(R,F){return g.Og(this,[R],{mode:"readonly",Xs:!0,commit:Wm()},function(n){return n.objectStore(R).get(F)})};
g.X.getAll=function(R,F,n){return g.Og(this,[R],{mode:"readonly",Xs:!0},function(V){return V.objectStore(R).getAll(F,n)})};
g.X.put=function(R,F,n){return g.Og(this,[R],{mode:"readwrite",Xs:!0,commit:Wm()},function(V){return V.objectStore(R).put(F,n)})};
g.X.objectStoreNames=function(){return Array.from(this.T.objectStoreNames)};
g.X.getName=function(){return this.T.name};
g.X=uV.prototype;g.X.add=function(R,F){return Ug(this.T.add(R,F))};
g.X.autoIncrement=function(){return this.T.autoIncrement};
g.X.clear=function(){return Ug(this.T.clear()).then(function(){})};
g.X.count=function(R){return Ug(this.T.count(R))};
g.X.delete=function(R){return R instanceof IDBKeyRange?RDf(this,R):Ug(this.T.delete(R))};
g.X.get=function(R){return Ug(this.T.get(R))};
g.X.getAll=function(R,F){return"getAll"in IDBObjectStore.prototype?Ug(this.T.getAll(R,F)):Fkf(this,R,F)};
g.X.index=function(R){try{return new vx9(this.T.index(R))}catch(F){if(F instanceof Error&&F.name==="NotFoundError")throw new X_(R,this.T.name);throw F;}};
g.X.getName=function(){return this.T.name};
g.X.keyPath=function(){return this.T.keyPath};
g.X.put=function(R,F){return Ug(this.T.put(R,F))};
gS.prototype.abort=function(){this.T.abort();this.aborted=!0;throw new g.sg("EXPLICIT_ABORT");};
gS.prototype.commit=function(){if(!this.aborted){var R,F;(F=(R=this.T).commit)==null||F.call(R)}};
gS.prototype.objectStore=function(R){R=this.T.objectStore(R);var F=this.U.get(R);F||(F=new uV(R),this.U.set(R,F));return F};
g.X=vx9.prototype;g.X.count=function(R){return Ug(this.T.count(R))};
g.X.delete=function(R){return g.xs(this,{query:R},function(F){return F.delete().then(function(){return g.DY(F)})})};
g.X.get=function(R){return Ug(this.T.get(R))};
g.X.getAll=function(R,F){return"getAll"in IDBIndex.prototype?Ug(this.T.getAll(R,F)):fK6(this,R,F)};
g.X.keyPath=function(){return this.T.keyPath};
g.X.unique=function(){return this.T.unique};
ks.prototype.delete=function(){return Ug(this.cursor.delete()).then(function(){})};
ks.prototype.getValue=function(){return this.cursor.value};
ks.prototype.update=function(R){return Ug(this.cursor.update(R))};J1.prototype.U=function(R,F,n){n=n===void 0?{}:n;return zD_(R,F,n)};
J1.prototype.delete=function(R){R=R===void 0?{}:R;return Ys(this.name,R)};
J1.prototype.open=function(){function R(){var v,f,z,q,Q,c,w,L,S,p;return g.Y(function(C){switch(C.T){case 1:return f=(v=Error().stack)!=null?v:"",g.zv(C,2),g.k(C,n.U(n.name,n.options.version,r),4);case 4:for(var y=z=C.U,u=n.options,B=[],O=g.m(Object.keys(u.vO)),K=O.next();!K.done;K=O.next()){K=K.value;var M=u.vO[K],J=M.ocQ===void 0?Number.MAX_VALUE:M.ocQ;!(y.T.version>=M.r4)||y.T.version>=J||y.T.objectStoreNames.contains(K)||B.push(K)}q=B;if(q.length===0){C.wX(5);break}Q=Object.keys(n.options.vO);
c=z.objectStoreNames();if(n.W<jP("ytidb_reopen_db_retries",0))return n.W++,z.close(),cm(new g.sg("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:n.name,expectedObjectStores:Q,foundObjectStores:c})),C.return(R());if(!(n.J<jP("ytidb_remake_db_retries",1))){C.wX(6);break}n.J++;return g.k(C,n.delete(),7);case 7:return cm(new g.sg("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:n.name,expectedObjectStores:Q,foundObjectStores:c})),C.return(R());case 6:throw new p3(c,Q);case 5:return C.return(z);case 2:w=g.cM(C);
if(w instanceof DOMException?w.name!=="VersionError":"DOMError"in self&&w instanceof DOMError?w.name!=="VersionError":!(w instanceof Object&&"message"in w)||w.message!=="An attempt was made to open a database using a lower version than the existing version."){C.wX(8);break}return g.k(C,n.U(n.name,void 0,Object.assign({},r,{upgrade:void 0})),9);case 9:L=C.U;S=L.T.version;if(n.options.version!==void 0&&S>n.options.version+1)throw L.close(),n.N=!1,qBv(n,S);return C.return(L);case 8:throw F(),w instanceof
Error&&!g.U2("ytidb_async_stack_killswitch")&&(w.stack=w.stack+"\n"+f.substring(f.indexOf("\n")+1)),a8(w,n.name,"",(p=n.options.version)!=null?p:-1);}})}
function F(){n.T===V&&(n.T=void 0)}
var n=this;if(!this.N)throw qBv(this);if(this.T)return this.T;var V,r={blocking:function(v){v.close()},
closed:F,sVG:F,upgrade:this.options.upgrade};return this.T=V=R()};var dS=new J1("YtIdbMeta",{vO:{databases:{r4:1}},upgrade:function(R,F){F(1)&&g.Bm(R,"databases",{keyPath:"actualName"})}});var $s,Eg=new function(){}(new function(){});new g.pa;g.a(FD,J1);FD.prototype.U=function(R,F,n){n=n===void 0?{}:n;return(this.options.shared?AmW:XD6)(R,F,Object.assign({},n))};
FD.prototype.delete=function(R){R=R===void 0?{}:R;return(this.options.shared?oxj:aKE)(this.name,R)};var woq={},U16=g.nI("ytGcfConfig",{vO:(woq.coldConfigStore={r4:1},woq.hotConfigStore={r4:1},woq),shared:!1,upgrade:function(R,F){F(1)&&(g.I8(g.Bm(R,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.I8(g.Bm(R,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});g.a(ry,g.G);ry.prototype.oG=function(){for(var R=g.m(this.U),F=R.next();!F.done;F=R.next()){var n=this.T;F=n.indexOf(F.value);F>=0&&n.splice(F,1)}this.U.length=0;g.G.prototype.oG.call(this)};Q8.prototype.iE=function(R){this.hotHashData=R;g.h7("yt.gcf.config.hotHashData",this.hotHashData||null)};var SmO=typeof TextEncoder!=="undefined"?new TextEncoder:null,wtk=SmO?function(R){return SmO.encode(R)}:function(R){R=g.Gl(R);
for(var F=new Uint8Array(R.length),n=0;n<F.length;n++)F[n]=R[n];return F};var Ygf={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},GRJ={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};s5.prototype.F6=function(){return{version:this.version,args:this.args}};pI.prototype.toString=function(){return this.topic};var L07=g.WM("ytPubsub2Pubsub2Instance")||new g.Wt;g.Wt.prototype.subscribe=g.Wt.prototype.subscribe;g.Wt.prototype.unsubscribeByKey=g.Wt.prototype.V6;g.Wt.prototype.publish=g.Wt.prototype.publish;g.Wt.prototype.clear=g.Wt.prototype.clear;g.h7("ytPubsub2Pubsub2Instance",L07);var a5=g.WM("ytPubsub2Pubsub2SubscribedKeys")||{};g.h7("ytPubsub2Pubsub2SubscribedKeys",a5);var CI=g.WM("ytPubsub2Pubsub2TopicToKeys")||{};g.h7("ytPubsub2Pubsub2TopicToKeys",CI);var RoI=g.WM("ytPubsub2Pubsub2IsAsync")||{};
g.h7("ytPubsub2Pubsub2IsAsync",RoI);g.h7("ytPubsub2Pubsub2SkipSubKey",null);var y8=void 0,o5=void 0;var QpE=jP("max_body_size_to_compress",5E5),c$W=jP("min_body_size_to_compress",500),hc=!0,mC=0,Bq=0,SAN=jP("compression_performance_threshold_lr",250),spE=jP("slow_compressions_before_abandon_count",4),jf=!1,Hq=new Map,Wq=1;g.X=O5.prototype;g.X.writeThenSend=function(R,F){var n=this;F=F===void 0?{}:F;if(gy(this)&&this.T){var V={url:R,options:F,timestamp:this.now(),status:"NEW",sendCount:0};this.g2.set(V,this.Dj).then(function(r){V.id=r;n.Q6.AO()&&n.Iw(V)}).catch(function(r){n.Iw(V);
I5(n,r)})}else this.sendFn(R,F)};
g.X.sendThenWrite=function(R,F,n){var V=this;F=F===void 0?{}:F;if(gy(this)&&this.T){var r={url:R,options:F,timestamp:this.now(),status:"NEW",sendCount:0};this.GH&&this.GH("nwl_skip_retry")&&(r.skipRetry=n);if(this.Q6.AO()||this.GH&&this.GH("nwl_aggressive_send_then_write")&&!r.skipRetry){if(!r.skipRetry){var v=F.onError?F.onError:function(){};
F.onError=function(f,z){return g.Y(function(q){if(q.T==1)return g.k(q,V.g2.set(r,V.Dj).catch(function(Q){I5(V,Q)}),2);
v(f,z);g.rq(q)})}}this.sendFn(R,F,r.skipRetry)}else this.g2.set(r,this.Dj).catch(function(f){V.sendFn(R,F,r.skipRetry);
I5(V,f)})}else n=this.GH&&this.GH("nwl_skip_retry")&&n,this.sendFn(R,F,n)};
g.X.sendAndWrite=function(R,F){var n=this;F=F===void 0?{}:F;if(gy(this)&&this.T){var V={url:R,options:F,timestamp:this.now(),status:"NEW",sendCount:0},r=!1,v=F.onSuccess?F.onSuccess:function(){};
V.options.onSuccess=function(f,z){V.id!==void 0?n.g2.sy(V.id,n.Dj):r=!0;n.Q6.J6&&n.GH&&n.GH("vss_network_hint")&&n.Q6.J6(!0);v(f,z)};
this.sendFn(V.url,V.options,void 0,!0);this.g2.set(V,this.Dj).then(function(f){V.id=f;r&&n.g2.sy(V.id,n.Dj)}).catch(function(f){I5(n,f)})}else this.sendFn(R,F,void 0,!0)};
g.X.dA=function(){var R=this;if(!gy(this))throw Error("IndexedDB is not supported: throttleSend");this.U||(this.U=this.BX.dK(function(){var F;return g.Y(function(n){if(n.T==1)return g.k(n,R.g2.M1("NEW",R.Dj),2);if(n.T!=3)return F=n.U,F?g.k(n,R.Iw(F),3):(R.bT(),n.return());R.U&&(R.U=0,R.dA());g.rq(n)})},this.eA))};
g.X.bT=function(){this.BX.iq(this.U);this.U=0};
g.X.Iw=function(R){var F=this,n;return g.Y(function(V){switch(V.T){case 1:if(!gy(F))throw Error("IndexedDB is not supported: immediateSend");if(R.id===void 0){V.wX(2);break}return g.k(V,F.g2.gFo(R.id,F.Dj),3);case 3:(n=V.U)||F.VX(Error("The request cannot be found in the database."));case 2:if(F.MR(R,F.Zc)){V.wX(4);break}F.VX(Error("Networkless Logging: Stored logs request expired age limit"));if(R.id===void 0){V.wX(5);break}return g.k(V,F.g2.sy(R.id,F.Dj),5);case 5:return V.return();case 4:R.skipRetry||
(R=CaE(F,R));if(!R){V.wX(0);break}if(!R.skipRetry||R.id===void 0){V.wX(8);break}return g.k(V,F.g2.sy(R.id,F.Dj),8);case 8:F.sendFn(R.url,R.options,!!R.skipRetry),g.rq(V)}})};
g.X.MR=function(R,F){R=R.timestamp;return this.now()-R>=F?!1:!0};
g.X.gE=function(){var R=this;if(!gy(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.g2.M1("QUEUED",this.Dj).then(function(F){F&&!R.MR(F,R.wB)?R.BX.dK(function(){return g.Y(function(n){if(n.T==1)return F.id===void 0?n.wX(2):g.k(n,R.g2.JR(F.id,R.Dj),2);R.gE();g.rq(n)})}):R.Q6.AO()&&R.dA()})};var KI;var $qE={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,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,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,tvhtml5DeviceStorageStats:535,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,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532,dnaRecapScreenshotEvent:534,
mdxLocalNetworkPermissionRequestEvent:536,mdxLocalNetworkPermissionResponseEvent:537,sessionReplayEvent:538,sessionReplayStatusEvent:539,loggingReliabilityProbe:540,keyValueStoreStatsEvent:541};var szh={},BsW=g.nI("ServiceWorkerLogsDatabase",{vO:(szh.SWHealthLog={r4:1},szh),shared:!0,upgrade:function(R,F){F(1)&&g.I8(g.Bm(R,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var xS={},DXN=0;var kS;Jc.prototype.requestComplete=function(R,F){F&&(this.U=!0);R=this.removeParams(R);this.T.get(R)||this.T.set(R,F)};
Jc.prototype.isEndpointCFR=function(R){R=this.removeParams(R);return(R=this.T.get(R))?!1:R===!1&&this.U?!0:null};
Jc.prototype.removeParams=function(R){return R.split("?")[0]};
Jc.prototype.removeParams=Jc.prototype.removeParams;Jc.prototype.isEndpointCFR=Jc.prototype.isEndpointCFR;Jc.prototype.requestComplete=Jc.prototype.requestComplete;Jc.getInstance=k0f;g.a(Gz,g.TC);g.X=Gz.prototype;g.X.AO=function(){return this.T.AO()};
g.X.J6=function(R){this.T.T=R};
g.X.c1G=function(){var R=window.navigator.onLine;return R===void 0?!0:R};
g.X.LB=function(){this.U=!0};
g.X.listen=function(R,F){return this.T.listen(R,F)};
g.X.rE=function(R){return GG(this.T,R)};
Gz.prototype.sendNetworkCheckRequest=Gz.prototype.rE;Gz.prototype.listen=Gz.prototype.listen;Gz.prototype.enableErrorFlushing=Gz.prototype.LB;Gz.prototype.getWindowStatus=Gz.prototype.c1G;Gz.prototype.networkStatusHint=Gz.prototype.J6;Gz.prototype.isNetworkAvailable=Gz.prototype.AO;Gz.getInstance=YAN;g.a(g.dy,g.TC);g.dy.prototype.AO=function(){var R=g.WM("yt.networkStatusManager.instance.isNetworkAvailable");return R?R.bind(this.U)():!0};
g.dy.prototype.J6=function(R){var F=g.WM("yt.networkStatusManager.instance.networkStatusHint").bind(this.U);F&&F(R)};
g.dy.prototype.rE=function(R){var F=this,n;return g.Y(function(V){n=g.WM("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(F.U);return g.U2("skip_network_check_if_cfr")&&k0f().isEndpointCFR("generate_204")?V.return(new Promise(function(r){var v;F.J6(((v=window.navigator)==null?void 0:v.onLine)||!0);r(F.AO())})):n?V.return(n(R)):V.return(!0)})};var Mi;g.a(lr,O5);lr.prototype.writeThenSend=function(R,F){F||(F={});F=E5(R,F);g.b6()||(this.T=!1);O5.prototype.writeThenSend.call(this,R,F)};
lr.prototype.sendThenWrite=function(R,F,n){F||(F={});F=E5(R,F);g.b6()||(this.T=!1);O5.prototype.sendThenWrite.call(this,R,F,n)};
lr.prototype.sendAndWrite=function(R,F){F||(F={});F=E5(R,F);g.b6()||(this.T=!1);O5.prototype.sendAndWrite.call(this,R,F)};
lr.prototype.awaitInitialization=function(){return this.N.promise};var MCk=g.HM.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.h7("ytNetworklessLoggingInitializationOptions",MCk);g.$S.prototype.isReady=function(){!this.config_&&Jm9()&&(this.config_=g.wy());return!!this.config_};var pos,Z1,RS;pos=g.HM.ytPubsubPubsubInstance||new g.Wt;Z1=g.HM.ytPubsubPubsubSubscribedKeys||{};RS=g.HM.ytPubsubPubsubTopicToKeys||{};g.ef=g.HM.ytPubsubPubsubIsSynchronous||{};g.Wt.prototype.subscribe=g.Wt.prototype.subscribe;g.Wt.prototype.unsubscribeByKey=g.Wt.prototype.V6;g.Wt.prototype.publish=g.Wt.prototype.publish;g.Wt.prototype.clear=g.Wt.prototype.clear;g.h7("ytPubsubPubsubInstance",pos);g.h7("ytPubsubPubsubTopicToKeys",RS);g.h7("ytPubsubPubsubIsSynchronous",g.ef);
g.h7("ytPubsubPubsubSubscribedKeys",Z1);var bOJ={};g.a(Q9,g.G);Q9.prototype.append=function(R){if(!this.U)throw Error("This does not support the append operation");R=R.Fs();this.Fs().appendChild(R)};
g.a(cj,Q9);cj.prototype.Fs=function(){return this.T};g.a(wG,g.G);wG.prototype.onTouchStart=function(R){this.X=!0;this.U=R.touches.length;this.T.isActive()&&(this.T.stop(),this.W=!0);R=R.touches;this.Z=RLW(this,R)||R.length!=1;var F=R.item(0);this.Z||!F?this.UZ=this.V=Infinity:(this.V=F.clientX,this.UZ=F.clientY);for(F=this.N.length=0;F<R.length;F++){var n=R.item(F);this.N.push(n.identifier)}};
wG.prototype.onTouchMove=function(R){R=R.changedTouches.item(0);var F;if(F=Fr()){F=g.ft();var n="";if(M7W())n=/Windows (?:NT|Phone) ([0-9.]+)/,n=(F=n.exec(F))?F[1]:"0.0";else if(Fr())n=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,n=(F=n.exec(F))&&F[1].replace(/_/g,".");else if(no())n=/Mac OS X ([0-9_.]+)/,n=(F=n.exec(F))?F[1].replace(/_/g,"."):"10";else if(nt(g.ft(),"KaiOS"))n=/(?:KaiOS)\/(\S+)/i,n=(F=n.exec(F))&&F[1];else if(dsf())n=/Android\s+([^\);]+)(\)|;)/,n=(F=n.exec(F))&&F[1];else if(eX()?q3.platform===
"Chrome OS":wo("CrOS"))n=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,n=(F=n.exec(F))&&F[1];F=!(g.v$(n||"",8)>=0)}if(F||R&&Math.pow(R.clientX-this.V,2)+Math.pow(R.clientY-this.UZ,2)>25)this.J=!0};
wG.prototype.onTouchEnd=function(R){var F=R.changedTouches;F&&this.X&&this.U==1&&!this.J&&!this.W&&!this.Z&&RLW(this,F)&&(this.Nq=R,this.T.start());this.U=R.touches.length;this.U===0&&(this.J=this.X=!1,this.N.length=0);this.W=!1};var Sr=Date.now().toString();var Aw={};var U$=Symbol("injectionDeps");Cr.prototype.toString=function(){return"InjectionToken("+this.name+")"};
rtE.prototype.resolve=function(R){return R instanceof TM?jr(this,R.key,[],!0):jr(this,R,[])};var Hj;var Wj=window;var gG=g.U2("web_enable_lifecycle_monitoring")&&uE()!==0,S3N=g.U2("web_enable_lifecycle_monitoring");QHj.prototype.cancel=function(){for(var R=g.m(this.T),F=R.next();!F.done;F=R.next())F=F.value,F.jobId===void 0||F.m4||this.scheduler.iq(F.jobId),F.m4=!0;this.U.resolve()};g.X=O$.prototype;g.X.install=function(R){this.plugins.push(R);return this};
g.X.uninstall=function(){var R=this;g.Cq.apply(0,arguments).forEach(function(F){F=R.plugins.indexOf(F);F>-1&&R.plugins.splice(F,1)})};
g.X.transition=function(R,F){var n=this;gG&&zL_(this.state);var V=this.transitions.find(function(v){return Array.isArray(v.from)?v.from.find(function(f){return f===n.state&&v.to===R}):v.from===n.state&&v.to===R});
if(V){this.U&&(ct_(this.U),this.U=void 0);L39(this,R,F);this.state=R;gG&&Bj(this.state);V=V.action.bind(this);var r=this.plugins.filter(function(v){return v[R]}).map(function(v){return v[R]});
V(wUV(this,r),F)}else throw Error("no transition specified from "+this.state+" to "+R);};
g.X.K0X=function(R){var F=g.Cq.apply(1,arguments);g.n3();for(var n=g.m(R),V=n.next(),r={};!V.done;r={m5:void 0},V=n.next())r.m5=V.value,KEj(function(v){return function(){Kr(v.m5.name);iE(function(){return v.m5.callback.apply(v.m5,g.I(F))});
DP(v.m5.name)}}(r))};
g.X.F0G=function(R){var F=g.Cq.apply(1,arguments),n,V,r,v;return g.Y(function(f){f.T==1&&(g.n3(),n=g.m(R),V=n.next(),r={});if(f.T!=3){if(V.done)return f.wX(0);r.fS=V.value;r.pg=void 0;v=function(z){return function(){Kr(z.fS.name);var q=iE(function(){return z.fS.callback.apply(z.fS,g.I(F))});
VW(q)?z.pg=g.U2("web_lifecycle_error_handling_killswitch")?q.then(function(){DP(z.fS.name)}):q.then(function(){DP(z.fS.name)},function(Q){q3_(Q);
DP(z.fS.name)}):DP(z.fS.name)}}(r);
KEj(v);return r.pg?g.k(f,r.pg,3):f.wX(3)}r={fS:void 0,pg:void 0};V=n.next();return f.wX(2)})};
g.X.xP=function(R){var F=g.Cq.apply(1,arguments),n=this,V=R.map(function(r){return{tf:function(){Kr(r.name);iE(function(){return r.callback.apply(r,g.I(F))});
DP(r.name)},
priority:IS(n,r)}});
V.length&&(this.U=new QHj(V))};
g.de.Object.defineProperties(O$.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var kb;g.a(xb,O$);xb.prototype.W=function(R,F){var n=this;this.T=g.R8(0,function(){n.currentState==="application_navigating"&&n.transition("none")},5E3);
R(F==null?void 0:F.event)};
xb.prototype.Z=function(R,F){this.T&&(g.M1.iq(this.T),this.T=null);R(F==null?void 0:F.event)};var ce=[];g.h7("yt.logging.transport.getScrapedGelPayloads",function(){return ce});Yb.prototype.storePayload=function(R,F){R=Jw(R);this.store[R]?this.store[R].push(F):(this.U={},this.store[R]=[F]);this.T++;g.U2("more_accurate_gel_parser")&&(F=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(F));return R};
Yb.prototype.smartExtractMatchingEntries=function(R){if(!R.keys.length)return[];for(var F=dG(this,R.keys.splice(0,1)[0]),n=[],V=0;V<F.length;V++)this.store[F[V]]&&R.sizeLimit&&(this.store[F[V]].length<=R.sizeLimit?(n.push.apply(n,g.I(this.store[F[V]])),delete this.store[F[V]]):n.push.apply(n,g.I(this.store[F[V]].splice(0,R.sizeLimit))));this.T-=n.length;(R==null?0:R.sizeLimit)&&n.length<(R==null?void 0:R.sizeLimit)&&(R.sizeLimit-=n.length,n.push.apply(n,g.I(this.smartExtractMatchingEntries(R))));
return n};
Yb.prototype.extractMatchingEntries=function(R){R=dG(this,R);for(var F=[],n=0;n<R.length;n++)this.store[R[n]]&&(F.push.apply(F,g.I(this.store[R[n]])),delete this.store[R[n]]);this.T-=F.length;return F};
Yb.prototype.getSequenceCount=function(R){R=dG(this,R);for(var F=0,n=0;n<R.length;n++){var V=void 0;F+=((V=this.store[R[n]])==null?void 0:V.length)||0}return F};
Yb.prototype.getSequenceCount=Yb.prototype.getSequenceCount;Yb.prototype.extractMatchingEntries=Yb.prototype.extractMatchingEntries;Yb.prototype.smartExtractMatchingEntries=Yb.prototype.smartExtractMatchingEntries;Yb.prototype.storePayload=Yb.prototype.storePayload;var lJN=new Cr("FinchConfigManagerService");var IJE=jP("initial_gel_batch_timeout",2E3),OAf=jP("gel_queue_timeout_max_ms",6E4),K3E=jP("gel_min_batch_size",5),er=void 0,ELj=new MM,NBj=new MM,gL_=new MM,mqN=new MM,FS,tp=!0,Qt=1,NM=new Map,ve=g.HM.ytLoggingTransportTokensToCttTargetIds_||{};g.h7("ytLoggingTransportTokensToCttTargetIds_",ve);var rC=g.HM.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.h7("ytLoggingTransportTokensToJspbCttTargetIds_",rC);var Pj={},pUf=!1;var wC=g.HM.ytLoggingGelSequenceIdObj_||{};g.h7("ytLoggingGelSequenceIdObj_",wC);var hqj=[];var f_9,Wn=g.HM.ytLoggingDocDocumentNonce_;Wn||(Wn=g.s$(16),g.h7("ytLoggingDocDocumentNonce_",Wn));f_9=Wn;var VPE={U0:0,MKz:1,hbz:2,Ij:3,Eb5:4,mFX:5,z92:6,SHARE:7,sYQ:8,hQS:9,i7G:10,x7H:11,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH",10:"UNPLUGGED_BROWSE",11:"PICTURE_IN_PICTURE"};var bAJ=1;g.X=sK.prototype;g.X.getAsJson=function(){var R={};this.T.trackingParams!==void 0?R.trackingParams=this.T.trackingParams:(R.veType=this.T.veType,this.T.veCounter!==void 0&&(R.veCounter=this.T.veCounter),this.T.elementIndex!==void 0&&(R.elementIndex=this.T.elementIndex));this.T.dataElement!==void 0&&(R.dataElement=this.T.dataElement.getAsJson());this.T.youtubeData!==void 0&&(R.youtubeData=this.T.youtubeData);this.T.isCounterfactual&&(R.isCounterfactual=!0);return R};
g.X.getAsJspb=function(){var R=new ig;this.T.trackingParams!==void 0?R.setTrackingParams(this.T.trackingParams):(this.T.veType!==void 0&&Ud(R,2,Kk(this.T.veType)),this.T.veCounter!==void 0&&Ud(R,6,Kk(this.T.veCounter)),this.T.elementIndex!==void 0&&Ud(R,3,Kk(this.T.elementIndex)),this.T.isCounterfactual&&Ud(R,5,gF(!0)));if(this.T.dataElement!==void 0){var F=this.T.dataElement.getAsJspb();Nm(R,ig,7,F)}this.T.youtubeData!==void 0&&Nm(R,p2f,8,this.T.jspbYoutubeData);return R};
g.X.toString=function(){return JSON.stringify(this.getAsJson())};
g.X.isClientVe=function(){return!this.T.trackingParams&&!!this.T.veType};
g.X.getLoggingDirectives=function(){return this.T.loggingDirectives};g.h7("yt_logging_screen.getRootVeType",RqN);g.h7("yt_logging_screen.getCurrentCsn",g.CJ);g.h7("yt_logging_screen.getCttAuthInfo",Tn);g.h7("yt_logging_screen.setCurrentScreen",tPE);var Qkk="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Tze=[{f0:function(R){return"Cannot read property '"+R.key+"'"},
V2:{Error:[{q6:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{q6:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{q6:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{q6:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{q6:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{q6:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{q6:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{f0:function(R){return"Cannot call '"+R.key+"'"},
V2:{TypeError:[{q6:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{q6:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{q6:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{q6:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{q6:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]},
{q6:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{f0:function(R){return R.key+" is not defined"},
V2:{ReferenceError:[{q6:/(.*) is not defined/,groups:["key"]},{q6:/Can't find variable: (.*)/,groups:["key"]}]}}];var skR={YO:[],Gv:[{callback:cj9,weight:500},{callback:wCv,weight:500}]};var UK;var gC=new g.Wt;var oi9=new Set,AjV=0,jkj=0,UlJ=0,CxV=[],a_f=[],H$j=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var WHI=new g.gB("parallelCommand");var ml6=new g.gB("performOnceCommand");var Bzv=new g.gB("serialCommand");var KJ=void 0;Jm({},"sgPmTd");Jm(null,"jypsq");Jm(null,"mWiOof");g.a(xC,s5);var eDk=new pI("screen-created",xC),bX=[],O$6=xlV,Zt=0,YC=new Map,Jp=new Map,Gn=new Map;g.Ms(g.fG,g.G);g.X=g.fG.prototype;g.X.subscribe=function(R,F,n){return this.Zo()?0:this.A0.subscribe(R,F,n)};
g.X.unsubscribe=function(R,F,n){return this.Zo()?!1:this.A0.unsubscribe(R,F,n)};
g.X.V6=function(R){return this.Zo()?!1:this.A0.V6(R)};
g.X.publish=function(R,F){return this.Zo()?!1:this.A0.publish.apply(this.A0,arguments)};
g.X.WA=function(R,F){for(var n in R)this.subscribe(n,R[n],F)};
g.X.mq=function(R,F){for(var n in R)this.unsubscribe(n,R[n],F)};var FKJ=16/9,Xov=[.25,.5,.75,1,1.25,1.5,1.75,2],Ax7=Xov.concat([3,4,5,6,7,8,9,10,15]),aiO=Xov.concat([2.5,3,3.5,4]);var kgk=1;g.a(g.ze,g.G);g.X=g.ze.prototype;
g.X.createElement=function(R,F){F=F||R.j==="svg";var n=R.Y,V=R.BG;if(F){var r=document.createElementNS("http://www.w3.org/2000/svg",R.j);g.TV&&(R.S||(R.S={}),R.S.focusable="false")}else r=g.gu(R.j);if(n){if(n=qB(this,r,"class",n))QH(this,r,"class",n),this.HI[n]=r}else if(V){n=g.m(V);for(var v=n.next();!v.done;v=n.next())this.HI[v.value]=r;QH(this,r,"class",V.join(" "))}V=R.cG;n=R.L;if(V)F=qB(this,r,"child",V),F!==void 0&&r.appendChild(g.Os(F));else if(n)for(V=0,n=g.m(n),v=n.next();!v.done;v=n.next())if(v=
v.value)if(typeof v==="string")v=qB(this,r,"child",v),v!=null&&r.appendChild(g.Os(v));else if(v.element)r.appendChild(v.element);else{var f=v;v=this.createElement(f,F);r.appendChild(v);f.AX&&(f=tn(),v.id=f,v=document.createElementNS("http://www.w3.org/2000/svg","use"),v.setAttribute("class","ytp-svg-shadow"),v.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f),DT(r,v,V++))}if(R=R.S)for(F=r,V=g.m(Object.keys(R)),n=V.next();!n.done;n=V.next())n=n.value,v=R[n],QH(this,F,n,typeof v==="string"?
qB(this,F,n,v):v);return r};
g.X.sZ=function(R){return this.HI[R]};
g.X.KH=function(R,F){typeof F==="number"?DT(R,this.element,F):R.appendChild(this.element)};
g.X.detach=function(){g.iY(this.element)};
g.X.update=function(R){for(var F=g.m(Object.keys(R)),n=F.next();!n.done;n=F.next())n=n.value,this.updateValue(n,R[n])};
g.X.updateValue=function(R,F){(R=this.Ow["{{"+R+"}}"])&&QH(this,R[0],R[1],F)};
g.X.oG=function(){this.HI={};this.Ow={};this.detach();g.G.prototype.oG.call(this)};g.a(g.N,g.ze);g.X=g.N.prototype;g.X.setContent=function(R,F){this.updateValue(F||"content",R)};
g.X.show=function(){this.JJ||(g.fY(this.element,"display",""),this.JJ=!0)};
g.X.hide=function(){this.JJ&&(g.fY(this.element,"display","none"),this.JJ=!1)};
g.X.dg=function(R){R?this.show():this.hide()};
g.X.Un=function(R){this.UZ=R};
g.X.listen=function(R,F,n){return this.C(this.element,R,F,n)};
g.X.C=function(R,F,n,V){n=(0,g.k$)(n,V||this);V={target:R,type:F,listener:n};this.listeners.push(V);R.addEventListener(F,n);return V};
g.X.ZO=function(R){var F=this;this.listeners.forEach(function(n,V){n===R&&(n=F.listeners.splice(V,1)[0],n.target.removeEventListener(n.type,n.listener))})};
g.X.focus=function(){this.element.focus()};
g.X.oG=function(){for(;this.listeners.length;){var R=this.listeners.pop();R&&R.target.removeEventListener(R.type,R.listener)}g.ze.prototype.oG.call(this)};g.a(g.c5,g.N);g.c5.prototype.subscribe=function(R,F,n){return this.uS.subscribe(R,F,n)};
g.c5.prototype.unsubscribe=function(R,F,n){return this.uS.unsubscribe(R,F,n)};
g.c5.prototype.V6=function(R){return this.uS.V6(R)};
g.c5.prototype.publish=function(R){return this.uS.publish.apply(this.uS,[R].concat(g.I(g.Cq.apply(1,arguments))))};var Ce7=new WeakSet;g.a(w_,g.c5);g.X=w_.prototype;g.X.bind=function(R){this.dX||R.renderer&&this.init(R.id,R.renderer,{},R);return Promise.resolve()};
g.X.init=function(R,F,n){this.dX=R;this.element.setAttribute("id",this.dX);this.aG&&g.z0(this.element,this.aG);this.Nq=F&&F.adRendererCommands;this.Mq=F.interaction;var V;((V=this.Mq)==null?0:V.onTap)&&g.z0(this.element,"ytp-ad-component--clickable");this.macros=n;this.X=F.trackingParams||null;var r,v;this.Z=(v=(r=g.A(F.rendererContext,u5q))==null?void 0:r.loggingDirectives)!=null?v:F.loggingDirectives;this.X!=null?this.createServerVe(this.element,this.X):this.Z&&(R=this.element,F=this.Z,this.api.createServerVe(R,
this,!0),this.api.setTrackingParams(R,F.trackingParams||null))};
g.X.clear=function(){};
g.X.hide=function(){g.c5.prototype.hide.call(this);(this.X!=null||this.Z)&&this.logVisibility(this.element,!1)};
g.X.show=function(){g.c5.prototype.show.call(this);if(!this.mQ){this.mQ=!0;var R=this.Nq&&this.Nq.impressionCommand,F,n=(F=this.Mq)==null?void 0:F.onFirstVisible;R?this.DP(R):n&&(R=Dt(n))&&this.DP(R)}(this.X!=null||this.Z)&&this.logVisibility(this.element,!0)};
g.X.onClick=function(R){if((this.X||this.Z)&&!Ce7.has(R)){var F=this.element;this.api.hasVe(F)&&this.JJ&&this.api.logClick(F,this.interactionLoggingClientData);Ce7.add(R)}var n=this.Nq&&this.Nq.clickCommand,V;F=(V=this.Mq)==null?void 0:V.onTap;if(n)F=this.AI(n),this.DP(F);else{if(V=F)a:{V=this.element;R=R.composedPath();R=g.m(R);for(n=R.next();!n.done;n=R.next()){n=n.value;if(n===V)break;if(n.className.indexOf("ytp-ad-component--clickable")>=0){V=!1;break a}}V=!0}V&&(F=Dt(F))&&this.DP(F)}};
g.X.AI=function(R){return R};
g.X.onTouchStart=function(R){this.jQ.onTouchStart(R)};
g.X.onTouchMove=function(R){this.jQ.onTouchMove(R)};
g.X.onTouchEnd=function(R){if(this.jQ)this.jQ.onTouchEnd(R)};
g.X.DP=function(R){this.layoutId?this.Vz.executeCommand(R,this.layoutId):(R=new g.UR("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.uX(R))};
g.X.createServerVe=function(R,F){this.api.createServerVe(R,this);this.api.setTrackingParams(R,F)};
g.X.logVisibility=function(R,F){this.api.hasVe(R)&&this.api.logVisibility(R,F,this.interactionLoggingClientData)};
g.X.oG=function(){this.clear(null);this.ZO(this.k5);for(var R=g.m(this.lS),F=R.next();!F.done;F=R.next())this.ZO(F.value);g.c5.prototype.oG.call(this)};g.a(Oa,w_);
Oa.prototype.init=function(R,F,n){w_.prototype.init.call(this,R,F,n);this.T=F;if(F.text==null&&F.icon==null)g.mq(Error("ButtonRenderer did not have text or an icon set."));else{switch(F.style||null){case "STYLE_UNKNOWN":R="ytp-ad-button-link";break;default:R=null}R!=null&&g.z0(this.element,R);F.text!=null&&(R=g.LG(F.text),g.Re(R)||(this.element.setAttribute("aria-label",R),this.N=new g.c5({j:"span",Y:"ytp-ad-button-text",cG:R}),g.d(this,this.N),this.N.KH(this.element)));F.accessibilityData&&F.accessibilityData.accessibilityData&&
F.accessibilityData.accessibilityData.label&&!g.Re(F.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",F.accessibilityData.accessibilityData.label);F.icon!=null&&(F=g_(F.icon,this.J),F!=null&&(this.U=new g.c5({j:"span",Y:"ytp-ad-button-icon",L:[F]}),g.d(this,this.U)),this.W?DT(this.element,this.U.element,0):this.U.KH(this.element))}};
Oa.prototype.clear=function(){this.hide()};
Oa.prototype.onClick=function(R){w_.prototype.onClick.call(this,R);R=g.m(pce(this));for(var F=R.next();!F.done;F=R.next())F=F.value,this.layoutId?this.Vz.executeCommand(F,this.layoutId):g.uX(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.a(Ih,g.G);Ih.prototype.oG=function(){this.U&&g.u6(this.U);this.T.clear();KG=null;g.G.prototype.oG.call(this)};
Ih.prototype.register=function(R,F){F&&this.T.set(R,F)};
var KG=null;g.a(xt,w_);
xt.prototype.init=function(R,F,n){w_.prototype.init.call(this,R,F,n);R=F.hoverText||null;F=F.button&&g.A(F.button,Iw)||null;F==null?g.uX(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Oa(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,void 0,void 0,void 0,void 0,this.N),g.d(this,this.button),this.button.init(r_("button"),F,this.macros),R&&this.button.element.setAttribute("aria-label",g.LG(R)),this.button.KH(this.element),this.V&&!g.t$(this.button.element,"ytp-ad-clickable")&&
g.z0(this.button.element,"ytp-ad-clickable"),this.N&&g.z0(this.button.element,"ytp-ad-hover-text-button--clean-player"),R&&(this.U=new g.c5({j:"div",Y:"ytp-ad-hover-text-container"}),this.W&&(F=new g.c5({j:"div",Y:"ytp-ad-hover-text-callout"}),F.KH(this.U.element),g.d(this,F)),g.d(this,this.U),this.U.KH(this.element),F=DC(R),DT(this.U.element,F,0)),this.show())};
xt.prototype.hide=function(){this.button&&this.button.hide();this.U&&this.U.hide();w_.prototype.hide.call(this)};
xt.prototype.show=function(){this.button&&this.button.show();w_.prototype.show.call(this)};g.a(Yt,w_);
Yt.prototype.init=function(R,F,n){w_.prototype.init.call(this,R,F,n);n=(R=F.thumbnail)&&kt(R)||"";g.Re(n)?Math.random()<.01&&g.mq(Error("Found AdImage without valid image URL")):(this.T?g.fY(this.element,"backgroundImage","url("+n+")"):h9(this.element,{src:n}),h9(this.element,{alt:R&&R.accessibility&&R.accessibility.label||""}),F&&F.adRendererCommands&&F.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())};
Yt.prototype.clear=function(){this.hide()};g.a(Jn,w_);g.X=Jn.prototype;g.X.hide=function(){w_.prototype.hide.call(this);this.N&&this.N.focus()};
g.X.show=function(){this.N=document.activeElement;w_.prototype.show.call(this);this.J.focus()};
g.X.init=function(R,F,n){w_.prototype.init.call(this,R,F,n);this.U=F;F.dialogMessages||F.title!=null?F.confirmLabel==null?g.uX(Error("ConfirmDialogRenderer.confirmLabel was not set.")):F.cancelLabel==null?g.uX(Error("ConfirmDialogRenderer.cancelLabel was not set.")):C6E(this,F):g.uX(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.X.clear=function(){g.Kw(this.T);this.hide()};
g.X.PS=function(){this.hide()};
g.X.XV=function(){var R=this.U.cancelEndpoint;R&&(this.layoutId?this.Vz.executeCommand(R,this.layoutId):g.uX(Error("Missing layoutId for confirm dialog.")));this.hide()};
g.X.FN=function(){var R=this.U.confirmNavigationEndpoint||this.U.confirmEndpoint;R&&(this.layoutId?this.Vz.executeCommand(R,this.layoutId):g.uX(Error("Missing layoutId for confirm dialog.")));this.hide()};g.a(Ge,w_);g.X=Ge.prototype;
g.X.init=function(R,F,n){w_.prototype.init.call(this,R,F,n);this.N=F;if(F.defaultText==null&&F.defaultIcon==null)g.uX(Error("ToggleButtonRenderer must have either text or icon set."));else if(F.defaultIcon==null&&F.toggledIcon!=null)g.uX(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(F.style){switch(F.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":R="ytp-ad-toggle-button-default-style";break;default:R=null}R!=null&&g.z0(this.J,R)}R={};F.defaultText?
(n=g.LG(F.defaultText),g.Re(n)||(R.buttonText=n,this.api.D().experiments.GH("a11y_h5_associate_survey_question")||this.T.setAttribute("aria-label",n),this.api.D().experiments.GH("fix_h5_toggle_button_a11y")&&this.U.setAttribute("aria-label",n))):g.av(this.PG,!1);F.defaultTooltip&&(R.tooltipText=F.defaultTooltip,this.T.hasAttribute("aria-label")||this.U.setAttribute("aria-label",F.defaultTooltip));F.defaultIcon?(n=g_(F.defaultIcon),this.updateValue("untoggledIconTemplateSpec",n),F.toggledIcon?(this.J1=
!0,n=g_(F.toggledIcon),this.updateValue("toggledIconTemplateSpec",n)):(g.av(this.V,!0),g.av(this.W,!1)),g.av(this.T,!1)):g.av(this.U,!1);g.g7(R)||this.update(R);F.isToggled&&(g.z0(this.J,"ytp-ad-toggle-button-toggled"),this.toggleButton(F.isToggled));d_(this);this.C(this.element,"change",this.x3);this.show()}};
g.X.onClick=function(R){this.lS.length>0&&(this.toggleButton(!this.isToggled()),this.x3());w_.prototype.onClick.call(this,R)};
g.X.x3=function(){g.ws(this.J,"ytp-ad-toggle-button-toggled",this.isToggled());for(var R=g.m(TfJ(this,this.isToggled())),F=R.next();!F.done;F=R.next())F=F.value,this.layoutId?this.Vz.executeCommand(F,this.layoutId):g.uX(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);d_(this)};
g.X.clear=function(){this.hide()};
g.X.toggleButton=function(R){g.ws(this.J,"ytp-ad-toggle-button-toggled",R);this.T.checked=R;d_(this)};
g.X.isToggled=function(){return this.T.checked};g.a(MB,Ow);MB.prototype.W=function(R){if(Array.isArray(R)){R=g.m(R);for(var F=R.next();!F.done;F=R.next())F=F.value,F instanceof ohk&&this.N(F)}};g.a(ls,w_);g.X=ls.prototype;g.X.init=function(R,F,n){w_.prototype.init.call(this,R,F,n);F.reasons?F.confirmLabel==null?g.uX(Error("AdFeedbackRenderer.confirmLabel was not set.")):(F.cancelLabel==null&&g.mq(Error("AdFeedbackRenderer.cancelLabel was not set.")),F.title==null&&g.mq(Error("AdFeedbackRenderer.title was not set.")),Hwk(this,F)):g.uX(Error("AdFeedbackRenderer.reasons were not set."))};
g.X.clear=function(){Bc(this.W);Bc(this.V);this.J.length=0;this.hide()};
g.X.hide=function(){this.T&&this.T.hide();this.U&&this.U.hide();w_.prototype.hide.call(this);this.N&&this.N.focus()};
g.X.show=function(){this.T&&this.T.show();this.U&&this.U.show();this.N=document.activeElement;w_.prototype.show.call(this);this.W.focus()};
g.X.kL=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()};
g.X.oS2=function(){this.hide()};
NB.prototype.Fs=function(){return this.T.element};
NB.prototype.getCommand=function(){return this.U};
NB.prototype.isChecked=function(){return this.N.checked};g.a(Ea,Jn);Ea.prototype.PS=function(R){Jn.prototype.PS.call(this,R);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
Ea.prototype.XV=function(R){Jn.prototype.XV.call(this,R);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
Ea.prototype.FN=function(R){Jn.prototype.FN.call(this,R);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.a($t,w_);g.X=$t.prototype;
g.X.init=function(R,F,n){w_.prototype.init.call(this,R,F,n);this.W=F;if(F.dialogMessage==null&&F.title==null)g.uX(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{F.confirmLabel==null&&g.mq(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(R=F.closeOverlayRenderer&&g.A(F.closeOverlayRenderer,Iw)||null)this.T=new Oa(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
g.d(this,this.T),this.T.init(r_("button"),R,this.macros),this.T.KH(this.element);F.title&&(R=g.LG(F.title),this.updateValue("title",R));if(F.adReasons)for(R=F.adReasons,n=0;n<R.length;n++){var V=DC(R[n]);if(!g.Re(V.textContent)){var r=mp("LI");r.appendChild(V);this.bS.appendChild(r)}}else g.av(this.bS,!1);F.dialogMessage&&(R=DC(F.dialogMessage,!0),this.gX.appendChild(R));F.confirmLabel&&(R=g.LG(F.confirmLabel),this.updateValue("confirmLabel",R));F.muteAdRenderer&&(F=g.A(F.muteAdRenderer,Iw)||null)&&
(R=F.navigationEndpoint&&g.A(F.navigationEndpoint,Irv)||null,n=F.navigationEndpoint&&g.A(F.navigationEndpoint,y77)||null,R==null&&n==null?g.mq(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(R?hXR(this,R):n&&WlW(this,n),this.N=new Oa(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,["ytp-ad-info-dialog-mute-button"],"button",!0),g.d(this,this.N),this.N.init(r_("button"),F,this.macros),this.N.listen("click",
this.WvX,this),this.N.KH(this.SQ)));uAW(this)}};
g.X.clear=function(){Bc(this.V);this.hide()};
g.X.hide=function(){this.U?this.U.hide():this.J&&this.J.hide();this.T&&this.T.hide();this.N&&this.N.hide();w_.prototype.hide.call(this);this.J1&&this.J1.focus()};
g.X.show=function(){this.T&&this.T.show();this.N&&this.N.show();if(!this.Y5){for(var R=g.m(this.W&&this.W.impressionEndpoints||[]),F=R.next();!F.done;F=R.next())F=F.value,this.layoutId?this.Vz.executeCommand(F,this.layoutId):g.uX(Error("Missing layoutId for ad info dialog."));this.Y5=!0}this.J1=document.activeElement;w_.prototype.show.call(this);this.V.focus()};
g.X.f8=function(){if(this.W&&this.W.confirmServiceEndpoint){var R=this.W.confirmServiceEndpoint;this.layoutId?this.Vz.executeCommand(R,this.layoutId):g.uX(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()};
g.X.WvX=function(){var R=this.U?this.U:this.J;R&&!R.JJ&&(this.hide(),R.show())};g.a(P5,xt);P5.prototype.init=function(R,F,n){xt.prototype.init.call(this,R,F,n);R=F.button&&g.A(F.button,Iw)||null;R!=null&&(IgN(this,R,n),this.show())};
P5.prototype.hide=function(){this.button&&this.button.hide();this.T&&this.T.hide();xt.prototype.hide.call(this)};
P5.prototype.show=function(){this.button&&this.button.show();xt.prototype.show.call(this)};
P5.prototype.clear=function(){this.hide()};g.a(bs,w_);
bs.prototype.init=function(R,F,n){w_.prototype.init.call(this,R,F,n);this.T=F;this.isTemplated()||g.kW(this.element,S8(this.T));if(F.backgroundImage&&(R=(R=F.backgroundImage.thumbnail)?kt(R):"",n=(n=this.api.getVideoData({playerType:1}))&&n.nG,R&&n&&(this.element.style.backgroundImage="url("+R+")",this.element.style.backgroundSize="100%"),F.style&&F.style.adTextStyle))switch(F.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(R=g.P$(F.targetId))&&this.element.setAttribute("data-tooltip-target-id",
R);F&&F.adRendererCommands&&F.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()};
bs.prototype.isTemplated=function(){return this.T.isTemplated||!1};
bs.prototype.clear=function(){this.hide()};var GQk={seekableStart:0,seekableEnd:1,current:0};g.a(e8,w_);e8.prototype.clear=function(){this.dispose()};g.a(g.n5,g.G);g.X=g.n5.prototype;g.X.show=function(R){this.state!==1&&this.state!==2&&(this.state===4&&this.Fg(),this.state===5?(this.element.show(),this.state=null,this.delay.stop(),this.T&&this.T()):this.element.JJ||(V2(this,!0),this.state=1,R?this.delay.start(R):this.Fg()))};
g.X.hide=function(){this.state!==4&&(this.state===1||this.state===2?(this.element.hide(),this.state=null,this.delay.stop()):this.element.JJ&&(V2(this,!0),this.state=4,this.delay.start(this.N)))};
g.X.Fg=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:V2(this,!1);this.state=3;this.delay.start(this.U);break;case 3:this.state=null;this.T&&this.T();break;case 4:this.element.hide();V2(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}};
g.X.stop=function(){for(;this.state!==null&&this.state!==5;)this.delay.stop(),this.Fg()};
g.X.oG=function(){this.element.Zo()||this.element.element.removeAttribute("aria-hidden");g.G.prototype.oG.call(this)};g.a(rr,e8);g.X=rr.prototype;
g.X.init=function(R,F,n){e8.prototype.init.call(this,R,F,n);R=F.durationMilliseconds;typeof R==="number"&&R<0&&g.uX(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+R));this.h1&&(this.J?g.z0(this.U.element,"modern-countdown-next-to-thumbnail"):g.z0(this.U.element,"countdown-next-to-thumbnail"));R=F.durationMilliseconds;this.bS=R==null||R===0?this.T.bf():R;if(F.templatedCountdown)var V=F.templatedCountdown.templatedAdText;else F.staticPreview&&(V=F.staticPreview);
this.N.init(r_("ad-text"),V,n);(V=this.api.getVideoData({playerType:1}))&&V.nG&&F.thumbnail?this.W.init(r_("ad-image"),F.thumbnail,n):(this.PG.hide(),this.J&&this.h1&&g.z0(this.N.element,"ytp-ad-preview-text-modern-postroll"))};
g.X.clear=function(){this.hide()};
g.X.hide=function(){this.U.hide();this.N.hide();this.W.hide();FU(this);e8.prototype.hide.call(this)};
g.X.show=function(){Rt(this);this.U.show();this.N.show();this.W.show();e8.prototype.show.call(this)};
g.X.cA=function(){this.hide()};
g.X.o$=function(){if(this.T!=null){var R=this.T.getProgressState();R!=null&&R.current!=null&&(R=1E3*R.current,!this.gX&&R>=this.bS?(this.J1.hide(),this.gX=!0,this.publish("i")):this.N&&this.N.isTemplated()&&(R=Math.max(0,Math.ceil((this.bS-R)/1E3)),R!=this.SQ&&(ZC(this.N,{TIME_REMAINING:String(R)}),this.SQ=R)))}};g.a(vP,e8);g.X=vP.prototype;
g.X.init=function(R,F,n){e8.prototype.init.call(this,R,F,n);if(F.image&&F.image.thumbnail)if(F.headline)if(F.description)if((R=F.actionButton&&g.A(F.actionButton,Iw))&&R.navigationEndpoint){var V=this.api.getVideoData({playerType:2});if(V!=null)if(F.image&&F.image.thumbnail){var r=F.image.thumbnail.thumbnails;r!=null&&r.length>0&&g.Re(g.P$(r[0].url))&&(r[0].url=V.profilePicture)}else g.mq(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.N.init(r_("ad-image"),F.image,n);this.W.init(r_("ad-text"),
F.headline,n);this.J.init(r_("ad-text"),F.description,n);this.U.init(r_("button"),R,n);n=PD(this.U.element);$x(this.U.element,n+" This link opens in new tab");this.J1=R.navigationEndpoint;this.api.AP()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.OB.bind(this));this.PG=F.startMs||0;Rt(this)}else g.uX(Error("FlyoutCtaRenderer has no valid action button."));else g.uX(Error("FlyoutCtaRenderer has no description AdText."));else g.uX(Error("FlyoutCtaRenderer has no headline AdText."));
else g.mq(Error("FlyoutCtaRenderer has no image."))};
g.X.onClick=function(R){e8.prototype.onClick.call(this,R);this.api.pauseVideo();!g.xW(this.U.element,R.target)&&this.J1&&(this.layoutId?this.Vz.executeCommand(this.J1,this.layoutId):g.uX(Error("Missing layoutId for flyout cta.")))};
g.X.o$=function(){if(this.T){var R=this.T.getProgressState();(R&&R.current||this.bS)&&1E3*R.current>=this.PG&&(FU(this),g.Qj(this.element,"ytp-flyout-cta-inactive"),this.U.element.removeAttribute("tabIndex"))}};
g.X.cA=function(){this.clear()};
g.X.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.OB.bind(this))};
g.X.show=function(){this.U&&this.U.show();e8.prototype.show.call(this)};
g.X.hide=function(){this.U&&this.U.hide();e8.prototype.hide.call(this)};
g.X.OB=function(R){R=="hidden"?this.show():this.hide()};g.a(f5,w_);g.X=f5.prototype;
g.X.init=function(R,F,n){w_.prototype.init.call(this,R,F,n);this.T=F;if(this.T.rectangle)for(R=this.T.likeButton&&g.A(this.T.likeButton,o1),F=this.T.dislikeButton&&g.A(this.T.dislikeButton,o1),this.N.init(r_("toggle-button"),R,n),this.U.init(r_("toggle-button"),F,n),this.C(this.element,"change",this.iz),this.J.show(100),this.show(),n=g.m(this.T&&this.T.impressionCommands||[]),R=n.next();!R.done;R=n.next())R=R.value,this.layoutId?this.Vz.executeCommand(R,this.layoutId):g.uX(Error("Missing layoutId for instream user sentiment."))};
g.X.clear=function(){this.hide()};
g.X.hide=function(){this.N.hide();this.U.hide();w_.prototype.hide.call(this)};
g.X.show=function(){this.N.show();this.U.show();w_.prototype.show.call(this)};
g.X.iz=function(){tNf(this.element,"ytp-ad-instream-user-sentiment-selected");this.T.postMessageAction&&this.api.HG("onYtShowToast",this.T.postMessageAction);this.J.hide()};
g.X.onClick=function(R){this.lS.length>0&&this.iz();w_.prototype.onClick.call(this,R)};g.a(te,g.G);g.X=te.prototype;g.X.oG=function(){this.reset();g.G.prototype.oG.call(this)};
g.X.reset=function(){g.Kw(this.J);this.Z=!1;this.T&&this.T.stop();this.W.stop();this.N&&(this.N=!1,this.X.play())};
g.X.start=function(){this.reset();this.J.C(this.U,"mouseover",this.aW,this);this.J.C(this.U,"mouseout",this.EB,this);this.Nq&&(this.J.C(this.U,"focusin",this.aW,this),this.J.C(this.U,"focusout",this.EB,this));this.T?this.T.start():(this.Z=this.N=!0,g.fY(this.U,{opacity:this.UZ}))};
g.X.aW=function(){this.N&&(this.N=!1,this.X.play());this.W.stop();this.T&&this.T.stop()};
g.X.EB=function(){this.Z?this.W.start():this.T&&this.T.start()};
g.X.Ss=function(){this.N||(this.N=!0,this.V.play(),this.Z=!0)};var x8f=[new zF("b.f_",0),new zF("j.s_",2),new zF("r.s_",4),new zF("e.h_",6),new zF("i.s_",8),new zF("s.t_",10),new zF("p.h_",12),new zF("s.i_",14),new zF("f.i_",16),new zF("a.b_",18),new zF("a.o_"),new zF("g.o_",22),new zF("p.i_",24),new zF("p.m_"),new zF("n.k_",20),new zF("i.f_"),new zF("a.s_"),new zF("m.c_"),new zF("n.h_",26),new zF("o.p_"),new zF("m.p_",28),new zF("o.a_"),new zF("d.p_"),new zF("e.i_")].reduce(function(R,F){R[F.U]=F;return R},{});g.a(L5,e8);g.X=L5.prototype;
g.X.init=function(R,F,n){e8.prototype.init.call(this,R,F,n);this.J1=F;(this.PG=Yw6(this))&&g.mq(Error("hasAdControlInClickCommands_ is true."));if(!F||g.g7(F))g.uX(Error("SkipButtonRenderer was not specified or empty."));else if(!F.message||g.g7(F.message))g.uX(Error("SkipButtonRenderer.message was not specified or empty."));else if(R=this.W?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},F=this.api.D().B("delhi_modern_web_player_icons"),F=g_(R,!1,!1,F),F==null?g.uX(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+R.iconType+
".")):(this.api.D().B("disable_touch_events_on_skip_button")&&(F.S=Object.assign({},F.S,{"aria-hidden":"true",focusable:"false"})),this.N=new g.c5({j:"button",BG:[this.W?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],L:[{j:"span",Y:this.W?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",L:[F]}]}),g.d(this,this.N),this.N.KH(this.J.element),this.U=new bs(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,"ytp-ad-skip-button-text"),this.W&&this.U.element.classList.add("ytp-ad-skip-button-text-centered"),
this.U.init(r_("ad-text"),this.J1.message,n),g.d(this,this.U),DT(this.N.element,this.U.element,0)),!this.api.D().B("disable_touch_events_on_skip_button")){var V=V===void 0?null:V;n=this.api.D();!(this.lS.length>0)&&n.U&&(Nr?0:"ontouchstart"in document.documentElement&&(yxj()||UM()))&&(this.ZO(this.k5),V&&this.ZO(V),this.lS=[this.C(this.element,"touchstart",this.onTouchStart,this),this.C(this.element,"touchmove",this.onTouchMove,this),this.C(this.element,"touchend",this.onTouchEnd,this)])}};
g.X.clear=function(){this.bS.reset();this.hide()};
g.X.hide=function(){this.J.hide();this.U&&this.U.hide();FU(this);e8.prototype.hide.call(this)};
g.X.onClick=function(R){if(this.N!=null){if(R){var F=R||window.event;F.returnValue=!1;F.preventDefault&&F.preventDefault()}var n;if(D8N(R,{contentCpn:((n=this.api.getVideoData({playerType:1}))==null?void 0:n.clientPlaybackNonce)||""})===0)this.api.HG("onAbnormalityDetected");else if(e8.prototype.onClick.call(this,R),this.publish("j"),this.api.HG("onAdSkip"),this.gX||!this.PG)this.api.onAdUxClicked(this.componentType,this.layoutId)}};
g.X.AI=function(R){if(!this.gX)return this.PG&&Q2("SkipButton click commands not pruned while ALC exist"),R;var F,n=(F=g.A(R,g.sq))==null?void 0:F.commands;if(!n)return R;R=[];for(F=0;F<n.length;F++){var V=n[F];V.adLifecycleCommand&&kQR(V.adLifecycleCommand)||V.pingingEndpoint||V.adPingingEndpoint||R.push(V)}return{commandExecutorCommand:{commands:R}}};
g.X.show=function(){this.bS.start();this.J.show();this.U&&this.U.show();Rt(this);e8.prototype.show.call(this);this.SQ&&this.api.D().B("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};
g.X.cA=function(){this.publish("k")};
g.X.o$=function(){};g.a(p5,e8);g.X=p5.prototype;
g.X.init=function(R,F,n){e8.prototype.init.call(this,R,F,n);R=F&&F.preskipRenderer&&g.A(F.preskipRenderer,Of)||{};if(R=g.g7(R)?null:R){this.W=R.durationMilliseconds!=null&&R.durationMilliseconds!==void 0?R.durationMilliseconds:5E3;var V=mj(this.api.D().experiments,"preskip_button_style_ads_backend")=="countdown_next_to_thumbnail"&&AE(this.api.D());this.U=new rr(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.T,V);this.U.init(r_("preskip-component"),R,n);R=this.U;R.J1.show(100);
R.show();g.d(this,this.U);this.U.KH(this.element)}else F.skipOffsetMilliseconds&&(this.W=F.skipOffsetMilliseconds);R=F&&F.skippableRenderer&&g.A(F.skippableRenderer,qvD)||{};R=g.g7(R)?null:R;R==null?g.uX(Error("SkipButtonRenderer was not set in player response.")):(this.N=new L5(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.T,this.J1),this.N.init(r_("skip-button"),R,n),g.d(this,this.N),this.N.KH(this.element),this.api.D().experiments.GH("enable_skip_to_next_messaging")&&(F=
g.P$(F.targetId))&&(n=this.N,n.N!=null&&(n.SQ=!0,n.N.element.setAttribute("data-tooltip-target-id",F),n.N.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
g.X.show=function(){this.J&&this.N?this.N.show():this.U&&this.U.show();Rt(this);e8.prototype.show.call(this)};
g.X.cA=function(){};
g.X.clear=function(){this.U&&this.U.clear();this.N&&this.N.clear();FU(this);e8.prototype.hide.call(this)};
g.X.hide=function(){this.U&&this.U.hide();this.N&&this.N.hide();FU(this);e8.prototype.hide.call(this)};
g.X.o$=function(){1E3*this.T.getProgressState().current>=this.W&&JLR(this,!0)};g.a(XU,Oa);XU.prototype.init=function(R,F,n){Oa.prototype.init.call(this,R,F,n);R=!1;F.text!=null&&(R=g.LG(F.text),R=!g.Re(R));R?F.navigationEndpoint==null?g.mq(Error("No visit advertiser clickthrough provided in renderer,")):F.style!=="STYLE_UNKNOWN"?g.mq(Error("Button style was not a link-style type in renderer,")):this.show():g.mq(Error("No visit advertiser text was present in the renderer."))};g.a(Ae,w_);
Ae.prototype.init=function(R,F,n){w_.prototype.init.call(this,R,F,n);R=F.text;g.Re(S8(R))?g.mq(Error("SimpleAdBadgeRenderer has invalid or empty text")):(R&&R.text&&(F=R.text,this.N&&!this.U&&(F=this.api.D(),F=R.text+" "+(F&&F.U?"\u2022":"\u00b7")),F={text:F,isTemplated:R.isTemplated},R.style&&(F.style=R.style),R.targetId&&(F.targetId=R.targetId),R=new bs(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz),R.init(r_("simple-ad-badge"),F,n),R.KH(this.element),g.d(this,R)),this.show())};
Ae.prototype.clear=function(){this.hide()};g.a(at,v5);g.a(C5,g.fG);g.X=C5.prototype;g.X.bf=function(){return this.durationMs};
g.X.stop=function(){this.T&&this.handler.ZO(this.T)};
g.X.M5=function(R){this.U={seekableStart:0,seekableEnd:this.durationMs/1E3,current:R.current};this.publish("h")};
g.X.getProgressState=function(){return this.U};
g.X.TW=function(R){g.Sx(R,2)&&this.publish("g")};g.a(TF,g.fG);g.X=TF.prototype;g.X.bf=function(){return this.durationMs};
g.X.start=function(){this.T||(this.T=!0,this.timer.start())};
g.X.stop=function(){this.T&&(this.T=!1,this.timer.stop())};
g.X.M5=function(){this.j7+=100;var R=!1;this.j7>this.durationMs&&(this.j7=this.durationMs,this.timer.stop(),R=!0);this.U={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.j7/1E3};this.publish("h");R&&this.publish("g")};
g.X.getProgressState=function(){return this.U};g.a(Uq,e8);g.X=Uq.prototype;g.X.init=function(R,F,n){e8.prototype.init.call(this,R,F,n);var V;if(F==null?0:(V=F.templatedCountdown)==null?0:V.templatedAdText){R=F.templatedCountdown.templatedAdText;if(!R.isTemplated){g.mq(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.U=new bs(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz);this.U.init(r_("ad-text"),R,{});this.U.KH(this.element);g.d(this,this.U)}this.show()};
g.X.clear=function(){this.hide()};
g.X.hide=function(){FU(this);e8.prototype.hide.call(this)};
g.X.cA=function(){this.hide()};
g.X.o$=function(){if(this.T!=null){var R=this.T.getProgressState();if(R!=null&&R.current!=null&&this.U){var F=this.T instanceof C5?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:R.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.T instanceof TF?R.seekableEnd:this.api.getDuration(2,!1);R=R.current;var n,V,r=((n=this.api.getVideoData())==null?0:(V=n.iZ)==null?0:V.call(n))?Math.max(F-R,0):F-R;ZC(this.U,{FORMATTED_AD_DURATION_REMAINING:String(g.ot(r)),
TIME_REMAINING:String(Math.ceil(r))})}}};
g.X.show=function(){Rt(this);e8.prototype.show.call(this)};g.a(jx,bs);jx.prototype.onClick=function(R){bs.prototype.onClick.call(this,R);this.api.onAdUxClicked(this.componentType)};g.a(he,w_);he.prototype.init=function(R,F){w_.prototype.init.call(this,R,F,{});if(R=F.content){g.kW(this.element,R);var n,V;F=((n=F.interaction)==null?void 0:(V=n.accessibility)==null?void 0:V.label)||R;this.element.setAttribute("aria-label",F)}else g.uX(Error("AdSimpleAttributedString does not have text content"))};
he.prototype.clear=function(){this.hide()};
he.prototype.onClick=function(R){w_.prototype.onClick.call(this,R)};g.a(WP,w_);
WP.prototype.init=function(R,F){w_.prototype.init.call(this,R,F,{});(R=F.label)&&R.content&&!g.Re(R.content)?(this.adBadgeText.init(r_("ad-simple-attributed-string"),new HP(R)),(F=F.adPodIndex)&&F.content&&!g.Re(F.content)&&(this.T=new he(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz),this.T.KH(this.element),g.d(this,this.T),this.T.element.classList.add("ytp-ad-badge__pod-index"),this.T.init(r_("ad-simple-attributed-string"),new HP(F))),this.element.classList.add(this.U?"ytp-ad-badge--stark-clean-player":
"ytp-ad-badge--stark"),this.show()):g.uX(Error("No label is returned in AdBadgeViewModel."))};
WP.prototype.show=function(){this.adBadgeText.show();var R;(R=this.T)==null||R.show();w_.prototype.show.call(this)};
WP.prototype.hide=function(){this.adBadgeText.hide();var R;(R=this.T)==null||R.hide();w_.prototype.hide.call(this)};g.a(uN,w_);uN.prototype.init=function(R,F){w_.prototype.init.call(this,R,F,{});(R=F.adPodIndex)&&R.content&&!g.Re(R.content)&&(this.T=new he(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz),this.T.KH(this.element),g.d(this,this.T),this.T.init(r_("ad-simple-attributed-string"),new HP(R)),F.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()};
uN.prototype.show=function(){var R;(R=this.T)==null||R.show();w_.prototype.show.call(this)};
uN.prototype.hide=function(){var R;(R=this.T)==null||R.hide();w_.prototype.hide.call(this)};g.a(BP,w_);
BP.prototype.init=function(R,F){w_.prototype.init.call(this,R,F,{});if(F!=null&&F.text){var n;if(((n=F.text)==null?0:n.content)&&!g.Re(F.text.content)){this.T=new g.c5({j:"div",Y:"ytp-ad-disclosure-banner__text",cG:F.text.content});g.d(this,this.T);this.T.KH(this.element);if(this.api.D().B("enable_ad_disclosure_banner_a11y_fix")){var V,r,v=(V=F.interaction)==null?void 0:(r=V.accessibility)==null?void 0:r.label;v||(v=F.text.content+" This link opens in new tab");$x(this.element,v)}else{var f;V=((v=
F.interaction)==null?void 0:(f=v.accessibility)==null?void 0:f.label)||F.text.content;this.element.setAttribute("aria-label",V)}var z;if((z=F.interaction)==null?0:z.onTap)this.api.D().B("remove_chevron_from_ad_disclosure_banner_h5")||(this.U=new g.c5({j:"div",Y:"ytp-ad-disclosure-banner__chevron",L:[g.An()]}),g.d(this,this.U),this.U.KH(this.element)),this.api.D().B("enable_ad_disclosure_banner_a11y_fix")&&(N1(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.gK));
this.show()}}else g.uX(Error("No banner text found in AdDisclosureBanner."))};
BP.prototype.gK=function(R){if(R.key==="Enter"||R.key===" ")R.preventDefault(),this.element.click()};
BP.prototype.clear=function(){this.hide()};g.a(It,g.c5);It.prototype.M5=function(){var R=this.U.getProgressState(),F=R.seekableEnd;this.api.getPresentingPlayerType()===2&&(F=this.N?this.N/1E3:R.seekableEnd);this.progressBar.style.width=Oq(new mz(R.seekableStart,F),R.current,0)*100+"%"};
It.prototype.onStateChange=function(){g.Vw(this.api.D())||(this.api.getPresentingPlayerType()===2?this.T===-1&&(this.show(),this.T=this.U.subscribe("h",this.M5,this),this.M5()):this.T!==-1&&(this.hide(),this.U.V6(this.T),this.T=-1))};g.a(K5,w_);
K5.prototype.init=function(R,F,n,V){w_.prototype.init.call(this,R,F,n);if(F.skipOrPreviewRenderer){if(R=g.A(F.skipOrPreviewRenderer,cg))n=new p5(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.U,this.V),n.KH(this.Y5),n.init(r_("skip-button"),R,this.macros),g.d(this,n);if(R=g.A(F.skipOrPreviewRenderer,cg))var r=R.skipOffsetMilliseconds}F.brandInteractionRenderer&&(R=F.brandInteractionRenderer.brandInteractionRenderer,n=new f5(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz),
n.KH(this.PG),n.init(r_("instream-user-sentiment"),R,this.macros),g.d(this,n));if(R=g.A(F,V7h))if(R=g.A(R,V7h))n=new vP(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.U,!!F.showWithoutLinkedMediaLayout),g.d(this,n),n.KH(this.W),n.init(r_("flyout-cta"),R,this.macros);V=V&&V.videoAdDurationSeconds;F.adBadgeRenderer&&(n=F.adBadgeRenderer,R=g.A(n,dc),R!=null?(n=new WP(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,!1),g.d(this,n),n.KH(this.T),n.init(r_("ad-badge"),
R,this.macros),this.N=n.element):(R=n.simpleAdBadgeRenderer,R==null&&(R={text:{text:"Ad",isTemplated:!1}}),n=new Ae(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,!0),g.d(this,n),n.KH(this.T),n.init(r_("simple-ad-badge"),R,this.macros)));F.adPodIndex&&(R=g.A(F.adPodIndex,SvM),R!=null&&(n=new uN(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz),g.d(this,n),n.KH(this.T),n.init(r_("ad-pod-index"),R)));F.adDurationRemaining&&!F.showWithoutLinkedMediaLayout&&(R=F.adDurationRemaining.adDurationRemainingRenderer,
R==null&&(R={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),V=new Uq(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.U,V,!1),g.d(this,V),V.KH(this.T),V.init(r_("ad-duration-remaining"),R,this.macros));F.adInfoRenderer&&(V=g.A(F.adInfoRenderer,g6))&&(R=new P5(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.element,void 0,!1),g.d(this,R),this.N!==null?this.T.insertBefore(R.element,this.N.nextSibling):R.KH(this.T),
R.init(r_("ad-info-hover-text-button"),V,this.macros));F.visitAdvertiserRenderer&&(R=g.A(F.visitAdvertiserRenderer,Iw))&&(n=lgk(this)&&this.J?this.J:this.T)&&(V=new XU(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz),g.d(this,V),V.KH(n),V.init(r_("visit-advertiser"),R,this.macros),N1(V.element),R=PD(V.element),$x(V.element,R+" This link opens in new tab"));!(V=this.api.D())||g.Fk(V)||g.Pp(V)||V.controlsType!="3"&&!V.disableOrganicUi||(r=new It(this.api,this.U,r,!1),r.KH(this.bS),
g.d(this,r));F.adDisclosureBannerRenderer&&(F=g.A(F.adDisclosureBannerRenderer,wMh))&&(r=new BP(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz),r.KH(this.J1),r.init(r_("ad-disclosure-banner"),F),g.d(this,r));this.api.D().B("enable_updated_html5_player_focus_style")&&g.z0(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
K5.prototype.clear=function(){this.hide()};xH.prototype.flush=function(R,F){R=R===void 0?[]:R;F=F===void 0?!1:F;if(g.U2("enable_client_streamz_web")){R=g.m(R);for(var n=R.next();!n.done;n=R.next())n=T5f(n.value),this.T&&Nm(n,oN,2,this.T),n={serializedIncrementBatch:g.dQ(n.N())},g.LJ("streamzIncremented",n,{sendIsolatedPayload:F})}};
g.a(Nfv,xH);g.a($89,xH);var kH,VkR=new Map;YH.prototype.set=function(R,F,n){n=n!==void 0?Date.now()+n:void 0;this.T.set(R,F,n)};
YH.prototype.get=function(R){return this.T.get(R)};
YH.prototype.remove=function(R){this.T.remove(R)};var bwJ=null;var lN=null,NO=null,Eq=null,nsk=null;g.h7("yt.www.ads.eventcache.getLastCompanionData",function(){return lN});
g.h7("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.h7("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return NO});
g.h7("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Eq});
g.h7("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return nsk});var r1e=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);$H.prototype.handleResponse=function(R,F){if(!F)throw Error("request needs to be passed into ConsistencyService");var n,V;F=((n=F.DH.context)==null?void 0:(V=n.request)==null?void 0:V.consistencyTokenJars)||[];var r;(R=(r=R.responseContext)==null?void 0:r.consistencyTokenJar)&&this.replace(F,R)};
$H.prototype.replace=function(R,F){R=g.m(R);for(var n=R.next();!n.done;n=R.next())delete this.T[n.value.encryptedTokenJarContents];fYj(this,F)};var T7v=window.location.hostname.split(".").slice(-2).join("."),uR;bN.getInstance=function(){uR=g.WM("yt.clientLocationService.instance");uR||(uR=new bN,g.h7("yt.clientLocationService.instance",uR));return uR};
g.X=bN.prototype;
g.X.setLocationOnInnerTubeContext=function(R){R.client||(R.client={});if(this.T)R.client.locationInfo||(R.client.locationInfo={}),R.client.locationInfo.latitudeE7=Math.floor(this.T.coords.latitude*1E7),R.client.locationInfo.longitudeE7=Math.floor(this.T.coords.longitude*1E7),R.client.locationInfo.horizontalAccuracyMeters=Math.round(this.T.coords.accuracy),R.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.N||this.locationPlayabilityToken)R.client.locationPlayabilityToken=this.N||
this.locationPlayabilityToken};
g.X.handleResponse=function(R){var F;R=(F=R.responseContext)==null?void 0:F.locationPlayabilityToken;R!==void 0&&(this.locationPlayabilityToken=R,this.T=void 0,g.ew("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=PP(this))&&this.localStorage.set("yt-location-playability-token",R,15552E3):g.ki("YT_CL",JSON.stringify({loctok:R}),15552E3,T7v,!0))};
g.X.clearLocationPlayabilityToken=function(R){R==="TVHTML5"?(this.localStorage=PP(this))&&this.localStorage.remove("yt-location-playability-token"):g.Jj("YT_CL");this.N=void 0;this.U!==-1&&(clearTimeout(this.U),this.U=-1)};
g.X.getCurrentPositionFromGeolocation=function(){var R=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var F=!1,n=1E4;g.ew("INNERTUBE_CLIENT_NAME")==="MWEB"&&(F=!0,n=15E3);return new Promise(function(V,r){navigator.geolocation.getCurrentPosition(function(v){R.T=v;V(v)},function(v){r(v)},{enableHighAccuracy:F,
maximumAge:0,timeout:n})})};
g.X.createUnpluggedLocationInfo=function(R){var F={};R=R.coords;if(R==null?0:R.latitude)F.latitudeE7=Math.floor(R.latitude*1E7);if(R==null?0:R.longitude)F.longitudeE7=Math.floor(R.longitude*1E7);if(R==null?0:R.accuracy)F.locationRadiusMeters=Math.round(R.accuracy);return F};
g.X.createLocationInfo=function(R){var F={};R=R.coords;if(R==null?0:R.latitude)F.latitudeE7=Math.floor(R.latitude*1E7);if(R==null?0:R.longitude)F.longitudeE7=Math.floor(R.longitude*1E7);return F};g.X=c1J.prototype;g.X.contains=function(R){return Object.prototype.hasOwnProperty.call(this.T,R)};
g.X.get=function(R){if(this.contains(R))return this.T[R]};
g.X.set=function(R,F){this.T[R]=F};
g.X.V8=function(){return Object.keys(this.T)};
g.X.remove=function(R){delete this.T[R]};ex.prototype.getModuleId=function(R){return R.serviceId.getModuleId()};
ex.prototype.get=function(R){a:{var F=this.mappings.get(R.toString());switch(F.type){case "mapping":R=F.value;break a;case "factory":F=F.value();this.mappings.set(R.toString(),{type:"mapping",value:F});R=F;break a;default:R=B$(F)}}return R};
ex.prototype.registerService=function(R,F){this.mappings.set(R.toString(),{type:"mapping",value:F});return R};
new ex;var Bn={},wme=(Bn.WEB_UNPLUGGED="^unplugged/",Bn.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Bn.WEB_UNPLUGGED_OPS="^unplugged/",Bn.WEB_UNPLUGGED_PUBLIC="^unplugged/",Bn.WEB_CREATOR="^creator/",Bn.WEB_KIDS="^kids/",Bn.WEB_EXPERIMENTS="^experiments/",Bn.WEB_MUSIC="^music/",Bn.WEB_REMIX="^music/",Bn.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Bn.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Bn);n2.prototype.W=function(R,F,n){F=F===void 0?{}:F;n=n===void 0?LI:n;var V={context:g.Zz(R.clickTrackingParams,!1,this.J)};var r=this.U(R);if(r){this.T(V,r,F);var v;F=g.Fy(this.N());(r=(v=g.A(R.commandMetadata,g.TI))==null?void 0:v.apiUrl)&&(F=r);v=EvJ(Gg(F));R=Object.assign({},{command:R},void 0);V={input:v,Ii:dz(v),DH:V,config:R};V.config.VT?V.config.VT.identity=n:V.config.VT={identity:n};return V}n=new g.UR("Error: Failed to create Request from Command.",R);g.uX(n)};
g.de.Object.defineProperties(n2.prototype,{J:{configurable:!0,enumerable:!0,get:function(){return!1}}});
g.a(Vp,n2);g.a(rV,Vp);rV.prototype.W=function(){return{input:"/getDatasyncIdsEndpoint",Ii:dz("/getDatasyncIdsEndpoint","GET"),DH:{}}};
rV.prototype.N=function(){return[]};
rV.prototype.U=function(){};
rV.prototype.T=function(){};var oc7={},lYj=(oc7.GET_DATASYNC_IDS=RV(rV),oc7);var mA={},yx5=(mA["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",mA["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",mA["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",mA["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",mA["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",mA["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",mA["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",
mA["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",mA["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",mA["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",mA["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",mA["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",mA["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",mA["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",mA["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",
mA["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",mA["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",mA["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",mA["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",mA["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",mA["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",mA["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",
mA["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",mA.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",mA["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",mA["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",mA["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",mA["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",mA["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",mA["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",
mA["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",mA["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",mA["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",mA["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",mA["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",mA["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",mA["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",mA["dialog.copyright_strikes"]=
"LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",mA["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",mA["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",mA.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",mA["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",mA["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",mA["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",mA["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",mA["owner.asset_groups"]=
"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",mA["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",mA["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",mA["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",mA["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",mA["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",mA["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",mA["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",mA["owner.delivery"]=
"LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",mA["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",mA["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",mA["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",mA["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",mA["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",mA["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",mA["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",mA["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",
mA["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",mA["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",mA["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",mA["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",mA["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",mA["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",mA["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",mA["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",mA["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",
mA["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",mA["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",mA["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",mA["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",mA["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",mA["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",mA["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",mA["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",
mA),gR={},aY9=(gR.auto_search="LATENCY_ACTION_AUTO_SEARCH",gR.ad_to_ad="LATENCY_ACTION_AD_TO_AD",gR.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",gR.app_startup="LATENCY_ACTION_APP_STARTUP",gR.browse="LATENCY_ACTION_BROWSE",gR.cast_splash="LATENCY_ACTION_CAST_SPLASH",gR.channel_activity="LATENCY_ACTION_FAMILY_CENTER_CHANNEL_ACTIVITY",gR.channels="LATENCY_ACTION_CHANNELS",gR.chips="LATENCY_ACTION_CHIPS",gR.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",gR.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
gR.editor="LATENCY_ACTION_EDITOR",gR.embed="LATENCY_ACTION_EMBED",gR.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",gR.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",gR.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",gR.explore="LATENCY_ACTION_EXPLORE",gR.favorites="LATENCY_ACTION_FAVORITES",gR.home="LATENCY_ACTION_HOME",gR.inboarding="LATENCY_ACTION_INBOARDING",gR.landing="LATENCY_ACTION_LANDING",gR.learning="LATENCY_ACTION_LEARNING",
gR.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",gR.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",gR.library="LATENCY_ACTION_LIBRARY",gR.live="LATENCY_ACTION_LIVE",gR.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",gR.management="LATENCY_ACTION_MANAGEMENT",gR.mini_app="LATENCY_ACTION_MINI_APP_PLAY",gR.notification_settings="LATENCY_ACTION_FAMILY_CENTER_NOTIFICATION_SETTINGS",gR.onboarding="LATENCY_ACTION_ONBOARDING",gR.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
gR.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",gR.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",gR.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",gR.prebuffer="LATENCY_ACTION_PREBUFFER",gR.prefetch="LATENCY_ACTION_PREFETCH",gR.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",gR.profile_switcher="LATENCY_ACTION_LOGIN",gR.projects="LATENCY_ACTION_PROJECTS",gR.reel_watch="LATENCY_ACTION_REEL_WATCH",gR.results="LATENCY_ACTION_RESULTS",gR.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
gR.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",gR.privacy_policy="LATENCY_ACTION_FAMILY_CENTER_PRIVACY_POLICY",gR.review="LATENCY_ACTION_REVIEW",gR.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",gR.search_ui="LATENCY_ACTION_SEARCH_UI",gR.search_suggest="LATENCY_ACTION_SUGGEST",gR.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",gR.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",gR.seek="LATENCY_ACTION_PLAYER_SEEK",gR.settings="LATENCY_ACTION_SETTINGS",gR.store="LATENCY_ACTION_STORE",
gR.supervision_dashboard="LATENCY_ACTION_FAMILY_CENTER_SUPERVISION_DASHBOARD",gR.bedtime_reminder_settings="LATENCY_ACTION_FAMILY_CENTER_BEDTIME_REMINDER_SETTINGS",gR.break_reminder_settings="LATENCY_ACTION_FAMILY_CENTER_BREAK_REMINDER_SETTINGS",gR.supervision_settings_dashboard="LATENCY_ACTION_FAMILY_CENTER_SUPERVISION_SETTINGS_DASHBOARD",gR.time_management="LATENCY_ACTION_FAMILY_CENTER_TIME_MANAGEMENT",gR.update_profile="LATENCY_ACTION_FAMILY_CENTER_UPDATE_PROFILE",gR.viewing_permissions="LATENCY_ACTION_FAMILY_CENTER_VIEWING_PERMISSIONS",
gR.shorts_settings="LATENCY_ACTION_FAMILY_CENTER_SHORTS_SETTINGS",gR.privacy_settings="LATENCY_ACTION_FAMILY_CENTER_PRIVACY_SETTINGS",gR.tenx="LATENCY_ACTION_TENX",gR.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",gR.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",gR.watch="LATENCY_ACTION_WATCH",gR.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",gR["watch,watch7"]="LATENCY_ACTION_WATCH",gR["watch,watch7_html5"]="LATENCY_ACTION_WATCH",gR["watch,watch7ad"]="LATENCY_ACTION_WATCH",gR["watch,watch7ad_html5"]=
"LATENCY_ACTION_WATCH",gR.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",gR.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",gR.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",gR.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",gR.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",gR.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",gR.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",gR.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",gR);
Object.assign(aY9,yx5);g.a(SB,s5);var O3V=new pI("aft-recorded",SB);var UN5=g.HM.ytLoggingGelSequenceIdObj_||{};g.h7("ytLoggingGelSequenceIdObj_",UN5);var p2=g.HM.ytLoggingLatencyUsageStats_||{};g.h7("ytLoggingLatencyUsageStats_",p2);L2.prototype.tick=function(R,F,n,V){Xy(this,"tick_"+R+"_"+F)||g.LJ("latencyActionTicked",{tickName:R,clientActionNonce:F},{timestamp:n,cttAuthInfo:V})};
L2.prototype.info=function(R,F,n){var V=Object.keys(R).join("");Xy(this,"info_"+V+"_"+F)||(R=Object.assign({},R),R.clientActionNonce=F,g.LJ("latencyActionInfo",R,{cttAuthInfo:n}))};
L2.prototype.jspbInfo=function(R,F,n){for(var V="",r=0;r<wp(R).length;r++)wp(R)[r]!==void 0&&(V=r===0?V.concat(""+r):V.concat("_"+r));if(!Xy(this,"info_"+V+"_"+F)){V7(R,2,F);n={cttAuthInfo:n};F=g.U2("jspb_sparse_encoded_pivot")?new Nq([{}]):new Nq;Fpj(F,dB,7,WhM,R);n=n===void 0?{}:n;R=!1;g.ew("ytLoggingEventsDefaultDisabled",!1)&&(R=!0);R=R?null:g.$S;n=n===void 0?{}:n;V=Math.round(n.timestamp||(0,g.h1)());nu(F,1,V<Number.MAX_SAFE_INTEGER?V:0);V=new lg;n.lact?nu(V,1,isFinite(n.lact)?n.lact:-1):n.timestamp?
nu(V,1,-1):(r=aS(),nu(V,1,isFinite(r)?r:-1));if(n.sequenceGroup&&!g.U2("web_gel_sequence_info_killswitch")){r=n.sequenceGroup;var v=Pg9(r),f=new Mq;nu(f,2,v);V7(f,1,r);Nm(V,Mq,3,f);n.endOfSequence&&delete UN5[n.sequenceGroup]}Nm(F,lg,33,V);(n.sendIsolatedPayload?jHv:HAW)("latencyActionInfo",{endpoint:"log_event",payload:F,cttAuthInfo:n.cttAuthInfo,dangerousLogToVisitorSession:n.dangerousLogToVisitorSession},R)}};
L2.prototype.span=function(R,F,n){var V=Object.keys(R).join("");Xy(this,"span_"+V+"_"+F)||(R.clientActionNonce=F,g.LJ("latencyActionSpan",R,{cttAuthInfo:n}))};var Ox=window,As=Ox.performance||Ox.mozPerformance||Ox.msPerformance||Ox.webkitPerformance||new CV_;var gsI=!1,y1j=!1,hs={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"},K2E=(0,g.k$)(As.clearResourceTimings||As.webkitClearResourceTimings||As.mozClearResourceTimings||As.msClearResourceTimings||As.oClearResourceTimings||g.$W,As);var jzM=window;jzM.ytcsi&&(jzM.ytcsi.infoGel=g.B8,jzM.ytcsi.tick=uj);var e8R="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store manifest player_preload shorts_prefetch".split(" "),nSe=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"];var S5N=new Cr("INNERTUBE_TRANSPORT_TOKEN");g.a(Yy,Vp);Yy.prototype.N=function(){return qmz};
Yy.prototype.U=function(R){return g.A(R,E$O)||void 0};
Yy.prototype.T=function(R,F,n){n=n===void 0?{}:n;F.channelIds&&(R.channelIds=F.channelIds);F.siloName&&(R.siloName=F.siloName);F.params&&(R.params=F.params);n.botguardResponse&&(R.botguardResponse=n.botguardResponse);n.feature&&(R.clientFeature=n.feature)};
g.de.Object.defineProperties(Yy.prototype,{J:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.a(Js,Vp);Js.prototype.N=function(){return Qzr};
Js.prototype.U=function(R){return g.A(R,NqD)||void 0};
Js.prototype.T=function(R,F){F.channelIds&&(R.channelIds=F.channelIds);F.siloName&&(R.siloName=F.siloName);F.params&&(R.params=F.params)};
g.de.Object.defineProperties(Js.prototype,{J:{configurable:!0,enumerable:!0,get:function(){return!0}}});var H4q=new Cr("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");g.a(Gf,Vp);Gf.prototype.N=function(){return rx$};
Gf.prototype.U=function(R){return g.A(R,iqq)||g.A(R,xs5)||g.A(R,Dsz)};
Gf.prototype.T=function(R,F){F.serializedShareEntity&&(R.serializedSharedEntity=F.serializedShareEntity);if(F.clientParamIdentifier){var n;if((n=this.Z)==null?0:n.T(F.clientParamIdentifier))R.clientParams=this.Z.U(F.clientParamIdentifier)}};
Gf[U$]=[H4q];g.a(dV,Vp);dV.prototype.N=function(){return fiU};
dV.prototype.U=function(R){return g.A(R,pLf)||void 0};
dV.prototype.T=function(R,F,n){R.feedbackTokens=[];F.feedbackToken&&R.feedbackTokens.push(F.feedbackToken);if(F=F.cpn||n.cpn)R.feedbackContext={cpn:F};R.isFeedbackTokenUnencrypted=!!n.is_feedback_token_unencrypted;R.shouldMerge=!1;n.extra_feedback_tokens&&(R.shouldMerge=!0,R.feedbackTokens=R.feedbackTokens.concat(n.extra_feedback_tokens))};
g.de.Object.defineProperties(dV.prototype,{J:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.a(MT,Vp);MT.prototype.N=function(){return tWv};
MT.prototype.U=function(R){return g.A(R,lr$)||void 0};
MT.prototype.T=function(R,F){F.params&&(R.params=F.params);F.secondaryParams&&(R.secondaryParams=F.secondaryParams)};g.a(lj,Vp);lj.prototype.N=function(){return zJv};
lj.prototype.U=function(R){return g.A(R,dsz)||void 0};
lj.prototype.T=function(R,F){F.actions&&(R.actions=F.actions);F.params&&(R.params=F.params);F.playlistId&&(R.playlistId=F.playlistId)};g.a(NT,Vp);NT.prototype.N=function(){return vch};
NT.prototype.U=function(R){return g.A(R,kvO)};
NT.prototype.T=function(R,F,n){n=n===void 0?{}:n;F.serializedShareEntity&&(R.serializedSharedEntity=F.serializedShareEntity);n.includeListId&&(R.includeListId=!0)};var Q5e=new Cr("CLIENT_NAME_TOKEN");var cc_=new Cr("DEFAULT_STORE_EXPIRATION_TOKEN");EI.prototype.put=function(R,F){var n=this,V;return g.Y(function(r){V=Object.assign({},F.data);V.key=R;V.clientName=n.clientName;V.expireTimestampMs===void 0&&(V.expireTimestampMs=(Math.round((0,g.h1)())+n.U).toString());return r.return(Vfv(n,R,V))})};
EI[U$]=[Q5e,cc_];$y.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,g.h1)()};
$y.prototype.isProcessed=function(){return!!this.data.isProcessed};g.a(P8,EI);g.X=P8.prototype;g.X.get=function(R){var F=this;return g.Y(function(n){return n.return(rcN(F,R))})};
g.X.remove=function(R){var F=this;return g.Y(function(n){vSW(F,R);g.rq(n)})};
g.X.removeAll=function(){var R=this;return g.Y(function(F){R.T.forEach(function(n){clearTimeout(n.timer)});
R.T.clear();g.rq(F)})};
g.X.has=function(R){return!!this.T.get(R)};
g.X.V8=function(){return this.T.keys()};var Fv=new Cr("EPHEMERAL_STORE_TOKEN");bj.prototype.handleResponse=function(R,F){if(!F)throw Error("request needs to be passed into StoreResponseProcessorService");var n,V;F=(n=F.config)==null?void 0:(V=n.o3)==null?void 0:V.Ny;if(!g.U2("state_tags_killswitch")&&(n=new f1I(R),tf6(n).length>0)){V=this.T.V8();V=g.m(V);for(var r=V.next();!r.done;r=V.next()){r=r.value;var v=rcN(this.T,r);if(v){var f=R5f(v);a:{var z=void 0;v=tf6(n);f=((z=(new f1I(f)).T)==null?void 0:z.relevantStateTags)||[];z=g.m(f);for(f=z.next();!f.done;f=z.next())if(f=f.value,
f.stateTag!=null&&v.includes(f.stateTag)&&f.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){v=!0;break a}v=!1}v&&vSW(this.T,r)}}}var q;n=(q=R.responseContext)==null?void 0:q.maxAgeSeconds;if(F&&n&&Number(n)>0){var Q=Q===void 0?!0:Q;q=Number(n)*1E3;n=Math.round((0,g.h1)());V=n.toString();R={innertubeResponse:R,serverDateTimestampMs:V,lastModifiedTimestampMs:V,expireTimestampMs:(n+q).toString(),isProcessed:Q};if(Q=g.ew("INNERTUBE_CONTEXT_CLIENT_NAME"))R.clientName=Q;this.T.put(F,
new $y(R))}};
bj[U$]=[Fv];var wq9=new Cr("STORE_RESPONSE_PROCESSOR_TOKEN");g.a(g.Za,g.UR);var hJq=new Cr("NETWORK_SLI_TOKEN");eB.prototype.fetch=function(R,F,n){var V=this,r;return g.Y(function(v){r=z5N(V,R,F);return v.return(fetch(r).then(function(f){return V.handleResponse(f,n)}).catch(function(f){g.mq(f);
if((n==null?0:n.p7)&&f instanceof g.Za&&f.errorType===1)return Promise.reject(f)}))})};
eB.prototype.handleResponse=function(R,F){var n=R.text().then(function(V){if((F==null?0:F.jnX)&&R.ok)return y9W(F.jnX,V);V=V.replace(")]}'","");if((F==null?0:F.p7)&&V)try{var r=JSON.parse(V)}catch(f){throw new g.Za(1,"JSON parsing failed after fetch");}var v;return(v=r)!=null?v:JSON.parse(V)});
R.redirected||R.ok?this.T&&this.T.success():(this.T&&this.T.VaS(),n=n.then(function(V){g.mq(new g.UR("Error: API fetch failed",R.status,R.url,V));return Object.assign({},V,{errorMetadata:{status:R.status}})}));
return n};
eB[U$]=[oS(hJq)];var q5N=new Cr("NETWORK_MANAGER_TOKEN");var R7;vu.prototype.bindInnertubeChallengeFetcher=function(R){this.T.bicf(R)};
vu.prototype.registerChallengeFetchedCallback=function(R){this.T.bcr(R)};
vu.prototype.getLatestChallengeResponse=function(){return this.T.blc()};var W0r=g.ER(["https://static.doubleclick.net/instream/ad_status.js"]),XqN=[],pqW=g.Xr(W0r),fV=!1;QD.prototype.Z=function(){var R=this;return g.Y(function(F){return F.T==1?g.k(F,Promise.race([R.T,null]),2):F.return(!!F.U)})};
QD.prototype.W=function(R,F,n){var V=this,r,v,f;return g.Y(function(z){V.T===null&&zy(V,q0(V));r=!1;v={};f=function(){var q,Q,c,w,L;return g.Y(function(S){switch(S.T){case 1:if(!V.options.gI5||!V.options.R$G){S.wX(2);break}return g.k(S,LCR(),3);case 3:return q=S.U,g.k(S,(Q=q)==null?void 0:Q.checkForRefresh(),2);case 2:return g.k(S,V.T,5);case 5:c=S.U;v.challenge=c.challenge;if(!c.c_){"c1a"in c.HA&&(v.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");S.wX(6);break}w=Object.assign({},{c:c.challenge,e:R},
F);g.zv(S,7);r=!0;return g.k(S,c.c_.snapshot({wT:w}),9);case 9:(L=S.U)?v.webResponse=L:v.error="ATTESTATION_ERROR_VM_NO_RESPONSE";g.Qz(S,6);break;case 7:g.cM(S),v.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 6:if(R==="ENGAGEMENT_TYPE_PLAYBACK"){var p=c.HA,C={};p.c6a&&(C.reportingStatus=String(Number(p.c)^tT()));p.c6b&&(C.broadSpectrumDetectionResult=String(Number(p.c)^Number(g.ew("CATSTAT",0))));v.adblockReporting=C}return S.return(v)}})};
return z.return(Promise.race([f(),j56(n,function(){var q=Object.assign({},v);r&&(q.error="ATTESTATION_ERROR_VM_TIMEOUT");return q})]))})};var uD9=["APP_STATE","PI"];var qQf=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,299903,299897,299904,299901,299899,299902,299900,299898,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,
106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,283670,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,300884,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,
207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,
83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,
173996,173995,174953,173994,173997,120080,117259,178546,297752,197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,282159,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,
262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,281332,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,293324,32633,74858,297045,275198,271884,222932,279119,271886,213915,275199,225216,
251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,282181,278926,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,
91824,283898,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,
39299,38696,62520,36382,108701,192682,279531,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,298157,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,296933,195350,301607,195349,194771,293041,293042,293043,301116,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,
26108,275810,120745,26109,26110,66881,28236,14586,297672,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,278306,282472,277848,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,294119,257268,63349,281127,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,299541,21409,282218,
299506,299540,299507,299509,299539,299508,299510,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,295069,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,282111,113746,268886,
66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,294089,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,
127991,96639,107536,130169,216522,296316,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,282208,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,296813,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,
31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,299247,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,281302,170701,170702,194796,34388,167841,170419,
17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];SA.prototype.getState=function(){return this.store.getState()};
SA.prototype.dispatch=function(R){return this.store.dispatch(R)};
SA.prototype.subscribe=function(R){return this.store.subscribe(R)};
SA.prototype.replaceReducer=function(R){return this.store.replaceReducer(R)};
SA.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};sE.prototype.append=function(R){if(gSR(this,R)){var F=this.T[this.T.length-1];this.T[this.T.length-1]=new Uint8Array(F.buffer,F.byteOffset,F.length+R.length);AT(this)}else this.T.push(R);this.totalLength+=R.length};
sE.prototype.split=function(R){for(var F=new sE,n=new sE,V=g.m(this.T),r=V.next();!r.done;r=V.next())r=r.value,R>=r.length?(F.append(r),R-=r.length):R?(F.append(new Uint8Array(r.buffer,r.byteOffset,R)),n.append(new Uint8Array(r.buffer,r.byteOffset+R,r.length-R)),R=0):n.append(r);return{E9:F,l4:n}};
sE.prototype.isFocused=function(R){return R>=this.N&&R<this.N+this.T[this.U].length};
sE.prototype.focus=function(R){if(!this.isFocused(R)){for(R<this.N&&AT(this);this.N+this.T[this.U].length<=R&&this.U<this.T.length;)this.N+=this.T[this.U].length,this.U+=1;this.J=void 0}};var jA,yD,hT;g.bZ=function(){function R(V){for(var r=new Uint8Array(V.length),v=0;v<V.length;v++)r[v]=V[v];return r}
function F(V){return new Uint8Array(V)}
var n=new Uint8Array([1]);return n.length===1&&n[0]===1?F:R}();
jA=Array(1024);yD=window.TextDecoder?new TextDecoder:void 0;hT=window.TextEncoder?new TextEncoder:void 0;for(var Gzj={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},Jck={},uuv=g.m(Object.entries(Gzj)),B7v=uuv.next();!B7v.done;B7v=uuv.next()){var mNq=g.m(B7v.value),gcq=mNq.next().value,O4D=mNq.next().value,Iiv=gcq,K0q=O4D;K0q&&(Jck[K0q]=Iiv)};var l1N=!1,nL,VL,rY,vF,fL;g.a(tF,g.G);
tF.prototype.encrypt=function(R){var F=R.length;R=new Uint8Array(R.buffer.slice(R.byteOffset,R.byteOffset+F));for(var n=this.U,V=0;V<F&&this.T<16;)R[V++]^=n[this.T++];for(var r=F-(F-V)%16;V<r;)NyN(this),R[V++]^=n[0],R[V++]^=n[1],R[V++]^=n[2],R[V++]^=n[3],R[V++]^=n[4],R[V++]^=n[5],R[V++]^=n[6],R[V++]^=n[7],R[V++]^=n[8],R[V++]^=n[9],R[V++]^=n[10],R[V++]^=n[11],R[V++]^=n[12],R[V++]^=n[13],R[V++]^=n[14],R[V++]^=n[15];if(V<F)for(NyN(this),this.T=0;V<F;)R[V++]^=n[this.T++];return R};var zm=!1;(function(){function R(V){for(var r=new Uint8Array(V.length),v=0;v<V.length;v++)r[v]=V[v];return r}
function F(V){return new Uint8Array(V)}
var n=new Uint8Array([1]);return n.length===1&&n[0]===1?F:R})();
var qS;g.Se.prototype.encrypt=function(R,F){var n=this,V;return g.Y(function(r){switch(r.T){case 1:if(!n.T){r.wX(2);break}g.zv(r,3);return g.k(r,n.T.encrypt(R,F),5);case 5:return r.return(r.U);case 3:V=g.cM(r),g.mq(V),zm=!0,n.T=void 0;case 2:return r.return(n.U.encrypt(R,F))}})};
g.Se.prototype.decrypt=function(R,F){return this.encrypt(R,F)};
cF.prototype.encrypt=function(R,F){var n=this,V;return g.Y(function(r){if(r.T==1)return g.zv(r,2),g.k(r,ESf(n,R,F),4);if(r.T!=2)return r.return(r.U);V=g.cM(r);g.mq(V);zm=!0;throw V;})};
g.wY.prototype.encrypt=function(R,F){this.T||(this.T=new tF(this.U));for(var n=this.T,V=0;V<4;V++)n.counter[V]=F[V*4]<<24|F[V*4+1]<<16|F[V*4+2]<<8|F[V*4+3];n.T=16;return this.T.encrypt(R)};
g.wY.prototype.decrypt=function(R,F){return this.encrypt(R,F)};LL.prototype.reset=function(){Prv(this);this.update(this.N)};
LL.prototype.update=function(R){var F=0,n=R.length;this.J+=n;this.U&&this.U+n>=64&&(this.Z.set(R.subarray(0,64-this.U),this.U),F=64-this.U,this.U=0,$i9(this,this.Z,0));for(;F+64<=n;F+=64)$i9(this,R,F);F<n&&(R=R.subarray(F),this.Z.set(R,this.U),this.U+=R.length)};
var sX=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,
4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var DNr;DNr={};g.i47=g.nI("yt-idb-pref-storage",{vO:(DNr.prefs={r4:1},DNr),shared:!1,upgrade:function(R,F){F(1)&&g.I8(g.Bm(R,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});var I1;I1={};g.xNq=(I1.INVALID_ENCODER_VERSION="Invalid encoder version",I1.KEY_CREATION_FAILED="Failed to create encoder key",I1.UNKNOWN_DECODE_ERROR="Failed to decode PES data",I1.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",I1.WRONG_DATA_TYPE="Encoder cannot process the data type",I1);g.Zm("","downloadsPageViewConfigurationEntity");g.Zm("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");g.KC=g.Zm("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");g.Zm("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");g.Zm("SMART_DOWNLOADS_ENABLED","settingEntity");g.Zm("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var pj_=new Cr("POSTMESSAGE_TUNNEL_TOKEN");var CEV=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];g.X=Xq.prototype;g.X.initialize=function(R,F,n,V){this.rK=V;if(R.program){var r;V=(r=R.interpreterUrl)!=null?r:null;if(R.interpreterSafeScript)r=w2N(R.interpreterSafeScript);else{var v;r=(v=R.interpreterScript)!=null?v:null}R.interpreterSafeUrl&&(V=BU(R.interpreterSafeUrl).toString());aPv(this,r,V,R.program,F,n)}else g.mq(Error("BL:CIP"))};
g.X.isInitialized=function(){return this.Dy()};
g.X.getState=function(){return this.state};
g.X.isLoading=function(){return this.state===2};
g.X.invoke=function(R){R=R===void 0?{}:R;return this.Dy()?this.MG({wT:R}):null};
g.X.dispose=function(){this.DC(null);this.nX(8)};
g.X.Dy=function(){return!!this.c_};
g.X.MG=function(R){return this.c_.cg(R)};
g.X.DC=function(R){g.Cv(this.c_);this.c_=R};
g.X.nX=function(R){this.state=R};g.a(aK,Xq);aK.prototype.DC=function(R){var F;(F=AF())==null||F.bgvma();R?(F={bgvma:R.dispose.bind(R),bgvmb:R.snapshot.bind(R),bgvmc:R.cg.bind(R)},g.h7("yt.abuse.playerAttLoader",F),d6e(function(n){return R.snapshot(n)})):(g.h7("yt.abuse.playerAttLoader",null),g.h7("yt.abuse.playerAttLoaderRun",null))};
aK.prototype.Dy=function(){return!!AF()};
aK.prototype.MG=function(R){return AF().bgvmc(R)};CL.prototype.Tf=function(){return"crossDeviceProgressCommand"};
CL.prototype.zi=function(R){if(R.crossDevicePings){var F=[];R=g.m(R.crossDevicePings);for(var n=R.next();!n.done;n=R.next())F.push({baseUrl:n.value.baseUrl});F={crossDevicePings:F};this.H6.K.D().experiments.GH("enable_batched_cross_device_pings_in_gel_fanout")&&(F.enableBatchedCrossDevicePings=!0);this.H6.K.D().experiments.GH("relax_bg_notification_throttling")&&(F.relaxBgNotificationThrottling=!0);this.H6.K.D().experiments.GH("relax_bg_notification_throttling_counterfactual")&&(F.relaxBgNotificationThrottlingCounterfactual=
!0);g.LJ("crossDeviceNotificationTransfer",F)}};Tm.prototype.Tf=function(){return"muteAdEndpoint"};
Tm.prototype.zi=function(R,F){switch(R.type){case "SKIP":TGj(this.iW,this.zd,F)}};oK.prototype.Tf=function(){return"openPopupAction"};
oK.prototype.zi=function(){};yL.prototype.Tf=function(){return"pingingEndpoint"};
yL.prototype.zi=function(){};var WfI={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.a(ywI,g.G);var s_N={J5H:"FINAL",wWz:"AD_BREAK_LENGTH",Pq2:"AD_CPN",l02:"AH",FzX:"AD_MT",KzG:"ASR",b6G:"AW",ebX:"NM",gbQ:"NX",vb1:"NY",Sfz:"CONN",RbS:"CPN",oC5:"DV_VIEWABILITY",b21:"ERRORCODE",Mx2:"ERROR_MSG",YSH:"EI",xTX:"GOOGLE_VIEWABILITY",oKq:"IAS_VIEWABILITY",GyH:"LACT",flz:"LIVE_TARGETING_CONTEXT",N$Z:"I_X",JpQ:"I_Y",s2Z:"MT",Q21:"MIDROLL_POS",W11:"MIDROLL_POS_MS",wXG:"MOAT_INIT",PGS:"MOAT_VIEWABILITY",OxH:"P_H",ixX:"PV_H",kdQ:"PV_W",Er1:"P_W",pXX:"TRIGGER_TYPE",xHG:"SDKV",seo:"SLOT_POS",b7q:"SURVEY_LOCAL_TIME_EPOCH_S",
B8q:"SURVEY_ELAPSED_MS",c7:"VIS",pYG:"VIEWABILITY",TY1:"VED",UF2:"VOL",NY5:"WT",HD2:"YT_ERROR_CODE"};HF.prototype.Tf=function(){return"urlEndpoint"};
HF.prototype.zi=function(R,F,n){var V=this.zH.get(),r=j2(V.U.get(),F);r?F=Aa(V,zme(r),r,void 0,void 0,n):(Q2("Trying to ping from an unknown layout",void 0,void 0,{layoutId:F}),F={});F=Object.assign({},F);kA(this.T,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(n=fb(this.NT,2))&&(F.AD_CPN=n.clientPlaybackNonce);F=g.OB(R.url,F);R=g.MO(F,void 0,void 0,void 0,R.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME");Xj9(R,F)};hF.prototype.get=function(){return this.value};
g.a(WF,hF);WF.prototype.T=function(){return"metadata_type_action_companion_ad_renderer"};
g.a(uL,hF);uL.prototype.T=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"};
g.a(BF,hF);BF.prototype.T=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.a(mu,hF);mu.prototype.T=function(){return"metadata_type_ads_engagement_panel_layout_view_model"};
g.a(gY,hF);gY.prototype.T=function(){return"metadata_type_ad_next_params"};
g.a(OX,hF);OX.prototype.T=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.a(IK,hF);IK.prototype.T=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.a(KL,hF);KL.prototype.T=function(){return"metadata_type_image_companion_ad_renderer"};
g.a(D4,hF);D4.prototype.T=function(){return"metadata_type_banner_image_layout_view_model"};
g.a(iL,hF);iL.prototype.T=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.a(xV,hF);xV.prototype.T=function(){return"metadata_type_ad_info_ad_metadata"};
g.a(kV,hF);kV.prototype.T=function(){return"metadata_ad_video_is_listed"};
g.a(YV,hF);YV.prototype.T=function(){return"metadata_type_ad_placement_config"};
g.a(JF,hF);JF.prototype.T=function(){return"metadata_type_ad_pod_info"};
g.a(Gm,hF);Gm.prototype.T=function(){return"metadata_type_ad_pod_skip_index"};
g.a(dY,hF);dY.prototype.T=function(){return"metadata_type_ad_pod_skip_target"};
g.a(MS,hF);MS.prototype.T=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.a(lL,hF);lL.prototype.T=function(){return"metadata_type_ad_video_id"};
g.a(NS,hF);NS.prototype.T=function(){return"metadata_type_content_cpn"};
g.a(EX,hF);EX.prototype.T=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.a($V,hF);$V.prototype.T=function(){return"metadata_type_player_overlay_layout_renderer"};
g.a(PF,hF);PF.prototype.T=function(){return"metadata_type_player_underlay_renderer"};
g.a(bL,hF);bL.prototype.T=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
g.a(Z4,hF);Z4.prototype.T=function(){return"metadata_type_media_associated_in_player_slot"};
g.a(ee,hF);ee.prototype.T=function(){return"metadata_type_shrunken_player_bytes_config"};
g.a(RA,hF);RA.prototype.T=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.a(FF,hF);FF.prototype.T=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.a(nd,hF);nd.prototype.T=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.a(Vm,hF);Vm.prototype.T=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.a(rW,hF);rW.prototype.T=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.a(vA,hF);vA.prototype.T=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.a(fd,hF);fd.prototype.T=function(){return"metadata_type_linked_second_player_bytes_layout_id"};
g.a(ty,hF);ty.prototype.T=function(){return"metadata_type_linked_in_player_layout_id"};
g.a(za,hF);za.prototype.T=function(){return"metadata_type_linked_in_player_layout_type"};
g.a(qI,hF);qI.prototype.T=function(){return"metadata_type_linked_in_player_slot_id"};
g.a(Qm,hF);Qm.prototype.T=function(){return"metadata_type_player_bytes_callback"};
g.a(cA,hF);cA.prototype.T=function(){return"metadata_type_player_bytes_callback_ref"};
g.a(wW,hF);wW.prototype.T=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.a(SM,hF);SM.prototype.T=function(){return"metadata_type_sub_layouts"};
g.a(Ld,hF);Ld.prototype.T=function(){return"metadata_type_cue_point"};
g.a(sD,hF);sD.prototype.T=function(){return"metadata_type_triggering_cue_point"};
g.a(pd,hF);pd.prototype.T=function(){return"metadata_type_video_length_seconds"};
g.a(XF,hF);XF.prototype.T=function(){return"metadata_type_player_vars"};
g.a(Ay,hF);Ay.prototype.T=function(){return"metadata_type_preload_player_vars"};
g.a(aA,hF);aA.prototype.T=function(){return"metadata_type_sodar_extension_data"};
g.a(Cd,hF);Cd.prototype.T=function(){return"metadata_type_layout_enter_ms"};
g.a(Ta,hF);Ta.prototype.T=function(){return"metadata_type_layout_exit_ms"};
g.a(oA,hF);oA.prototype.T=function(){return"metadata_type_media_sub_layout_index"};
g.a(ym,hF);ym.prototype.T=function(){return"metadata_type_dai"};
g.a(UD,hF);UD.prototype.T=function(){return"metadata_type_ad_intro"};
g.a(jM,hF);jM.prototype.T=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.a(HA,hF);HA.prototype.T=function(){return"metadata_type_drift_recovery_ms"};
g.a(hy,hF);hy.prototype.T=function(){return"metadata_type_fulfilled_layout"};
g.a(WA,hF);WA.prototype.T=function(){return"metadata_type_ad_break_request_data"};
g.a(uy,hF);uy.prototype.T=function(){return"metadata_type_ad_break_response_data"};
g.a(BA,hF);BA.prototype.T=function(){return"metadata_type_remote_slots_data"};
g.a(mg,hF);mg.prototype.T=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.a(gW,hF);gW.prototype.T=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.a(OD,hF);OD.prototype.T=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.a(IA,hF);IA.prototype.T=function(){return"metadata_type_valid_ad_message_renderer"};
g.a(Kd,hF);Kd.prototype.T=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.a(Dk,hF);Dk.prototype.T=function(){return"metadata_type_served_from_live_infra"};
g.a(iy,hF);iy.prototype.T=function(){return"metadata_type_survey_overlay"};
g.a(x8,hF);x8.prototype.T=function(){return"metadata_type_active_view_traffic_type"};
g.a(k8,hF);k8.prototype.T=function(){return"metadata_type_active_view_identifier"};
g.a(Y8,hF);Y8.prototype.T=function(){return"metadata_type_ssdai_ads_config"};
g.a(Jy,hF);Jy.prototype.T=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};
g.a(Ga,hF);Ga.prototype.T=function(){return"metadata_type_player_bytes_slot_metadata"};
g.a(dW,hF);dW.prototype.T=function(){return"metadata_type_prefetch_metadata"};var Mr6=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var Rb9=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
"trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.a(ED,lU);g.a(Z,lU);new Promise(function(){});var gbE=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),BGV=new Map([["normal",{Op:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",o_:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Op:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",o_:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{Op:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",o_:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Op:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",o_:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Op:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",o_:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{Op:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",o_:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{Op:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",o_:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.a(vl,g.G);g.X=vl.prototype;g.X.Ak=function(R,F){return this.T.Ak(R,F)};
g.X.rV=function(R,F){this.In.T("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",R,F);for(var n=g.m(this.U),V=n.next();!V.done;V=n.next())V.value.rV(R,F)};
g.X.ML=function(R){if(cl(this.T,R)){od(this.In,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",R);this.T.ML(R);for(var F=g.m(this.U),n=F.next();!n.done;n=F.next())n.value.ML(R);DMe(this,R)}};
g.X.nk=function(R){if(cl(this.T,R)){od(this.In,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",R);this.T.nk(R);for(var F=g.m(this.U),n=F.next();!n.done;n=F.next())n.value.nk(R);cl(this.T,R)&&wn(this.T,R).W&&qQ(this,R,!1)}};
g.X.zm=function(R){od(this.In,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",R);cl(this.T,R)&&(this.T.zm(R),qQ(this,R,!1))};
g.X.cT=function(R,F){if(cl(this.T,R)){S4(this.In,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",R,F);for(var n=g.m(this.U),V=n.next();!V.done;V=n.next())V.value.cT(R,F)}};
g.X.dW=function(R,F,n){if(cl(this.T,R)){S4(this.In,mMv(n),R,F);this.T.dW(R,F);for(var V=g.m(this.U),r=V.next();!r.done;r=V.next())r.value.dW(R,F,n);(n=j4(this.T,R))&&F.layoutId===n.layoutId&&brV(this,R,!1)}};
g.X.qP=function(R,F,n,V){n.SK&&V?(Q2(n,R,F,void 0,n.q2),zA(this.In,V,n.SK,R,F)):Q2("adsClientErrorMessage is missing.",R,F);qQ(this,R,!0)};
g.X.oG=function(){var R=ezR(this.T);R=g.m(R);for(var F=R.next();!F.done;F=R.next())qQ(this,F.value,!1);g.G.prototype.oG.call(this)};
g.X.jE=function(R,F){S4(this.In,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",R,F);S4(this.In,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",R,F);for(var n=g.m(this.U),V=n.next();!V.done;V=n.next())V=V.value,F&&V.jE(R,F)};ZrI.prototype.isActive=function(){switch(this.T){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.a(Wl,g.G);g.X=Wl.prototype;g.X.Ak=function(R,F){F=UQ(this,R+"_"+F);R=[];F=g.m(F.values());for(var n=F.next();!n.done;n=F.next())R.push(n.value.slot);return R};
g.X.V7=function(R){R=wn(this,R);R.T!=="not_scheduled"&&Hl(R.slot,R.T,"onSlotScheduled");R.T="scheduled"};
g.X.VE=function(R){R=wn(this,R);R.J="fill_requested";R.X.VE()};
g.X.ML=function(R){R=wn(this,R);R.T!=="enter_requested"&&Hl(R.slot,R.T,"onSlotEntered");R.T="entered"};
g.X.zm=function(R){wn(this,R).J="fill_canceled"};
g.X.nk=function(R){R=wn(this,R);R.T!=="exit_requested"&&Hl(R.slot,R.T,"onSlotExited");R.T="scheduled"};
g.X.dW=function(R,F){R=wn(this,R);R.layout!=null&&R.layout.layoutId===F.layoutId&&(R.T!=="rendering_stop_requested"&&Hl(R.slot,R.T,"onLayoutExited"),R.T="entered")};g.a(mO,g.G);mO.prototype.get=function(){Math.random()<.001&&this.Zo()&&Q2("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.T());return this.instance};g.a(OQ,g.G);OQ.prototype.N=function(){return this.U};Id.prototype.executeCommand=function(R,F){je(this.T(),R,F)};iO.prototype.addListener=function(R){this.listeners.add(R)};
iO.prototype.removeListener=function(R){this.listeners.delete(R)};var DO={},lO=(DO.AD_MARKER="ytp-ad-progress",DO.CHAPTER_MARKER="ytp-chapter-marker",DO.TIME_MARKER="ytp-time-marker",DO);var J0J=RegExp("^https?://([^.]*\\.moatads\\.com/|e[0-9]+\\.yt\\.srs\\.doubleverify\\.com|pagead2\\.googlesyndication\\.com/pagead/gen_204\\?id=yt3p&sr=1&|pm\\.adsafeprotected\\.com/youtube|pm\\.test-adsafeprotected\\.com/youtube|youtube[0-9]+\\.moatpixel\\.com/)"),qKR=RegExp("^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://(([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa|yt-music-green\\.corp)\\.youtube\\.com/|(tv|tv-green-qa|tv-green-qa\\.corp|tv-release-qa|tv-release-qa\\.corp|tv-integration-qa|tv-integration-qa\\.corp|yt-tv-autopush\\.corp|yt-tv-integration\\.corp|yt-tv-staging\\.corp)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/)"),
G4I=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),Xef=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),
sQV=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|prod\\.google\\.com|youtube\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),weE=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer))|(docs(\\-(dev|qa)\\.corp)?\\.google\\.com\\/(u\\/[0-9]+\\/)?(docs|sheets|slides|drawings|forms|videos)\\-images\\-(rt|qw))|(docs\\.sandbox\\.google\\.com\\/(u\\/[0-9]+\\/)?(docs|sheets|slides|drawings|forms|videos)\\-images))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|video\\.google\\.com|youtube\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|s2\\.googleusercontent\\.com/s2/favicons\\?|yt[3-4]\\.ggpht\\.com/)"),
d4j=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),SKJ=RegExp("^https?://(googleads\\.g\\.doubleclick\\.net/(aclk|pagead/conversion)|www\\.google\\.com/(aclk|pagead/conversion)|www\\.googleadservices\\.com/(aclk|pagead/(aclk|conversion))|www\\.youtube\\.com/pagead/conversion)"),cpW=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer))|(docs(\\-(dev|qa)\\.corp)?\\.google\\.com\\/(u\\/[0-9]+\\/)?(docs|sheets|slides|drawings|forms|videos)\\-images\\-(rt|qw))|(docs\\.sandbox\\.google\\.com\\/(u\\/[0-9]+\\/)?(docs|sheets|slides|drawings|forms|videos)\\-images))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gyz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"),
cAE=RegExp("^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|2mdn\\.net|googlesyndication\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|googleads\\.g\\.doubleclick\\.net|prod\\.google\\.com|static\\.doubleclick\\.net|static\\.googleadsserving\\.cn|studioapi\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|youtubekids\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com)[.]?(:[0-9]+)?/|lightbox-(demos|builder)\\.appspot\\.com/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/ytplayer)"),
QU_=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com(/|$)|^https://ads-external-prod\\.qa\\.adz\\.google\\.com/aw/(assetgroup/(edit|new)|campaigns/(new/(performancemax|demandgen)|edit/demandgen))|^https://ads-prod\\.qa\\.adz\\.google\\.com/aw/(assetgroup/(edit|new)|campaigns/(new/(performancemax|demandgen)|edit/demandgen))|^https://ads\\.google\\.com/aw/(assetgroup/(edit|new)|campaigns/(new/(performancemax|demandgen)|edit/demandgen))|^https://adwords\\.corp\\.google\\.com/aw/(assetgroup/(edit|new)|campaigns/(new/(performancemax|demandgen)|edit/demandgen))|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://localhost\\.googleusercontent\\.com(:\\d+)?(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.google\\.com/culturalinstitute/manage/.*$|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|artsandculture\\.google\\.com)[.]?(:[0-9]+)?(/|$)|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|(www\\.|encrypted\\.)?google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/(search|webhp)\\?|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|lightbox-(demos|builder)\\.appspot\\.com/|s0\\.2mdn\\.net/instream/html5/native/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris)"),
kXM=RegExp("^(https://play\\.google\\.com|https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://one\\.google\\.com|https://artsandculture\\.google\\.com|https://adstransparency\\.google\\.com|https://ads\\.google\\.com|https://adwords\\.corp\\.google\\.com|https://ads\\-external\\-prod\\.qa\\.adz\\.google\\.com|https://ads\\-prod\\.qa\\.adz\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?staging\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https://localhost\\.googleusercontent\\.com(:\\d+)?$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.NQ.prototype.getId=function(){return this.id};
g.NQ.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+CXj(this.start)+", "+CXj(this.end)+"]"};
g.NQ.prototype.contains=function(R,F){return R>=this.start&&(R<this.end||R===this.end&&this.start===this.end)&&(F==null||R<F&&F<=this.end)};
var atW=1;g.NQ.prototype.getId=g.NQ.prototype.getId;bO.prototype.VE=function(){var R=this,F=0;tgj(this.T,function(){var n=PA(R.slot.clientMetadata,"metadata_type_ad_break_request_data");F=Date.now();tA(R.zH.get(),"abrs","ct."+F+";cmt."+R.F2.get().getCurrentTimeSec(1,!1)+";sid."+R.slot.slotId+";");return R.U.get().fetch({Cd:n.getAdBreakUrl,yx:new g.NQ(n.Ro,n.hK),NI:PA(R.slot.clientMetadata,"metadata_type_cue_point"),cueProcessedMs:n.cueProcessedMs})},function(){oCN(R)},function(n){var V=Date.now()-F;
tA(R.zH.get(),"abrr","ct."+(new Date).getTime()+";cmt."+R.F2.get().getCurrentTimeSec(1,!1)+";l."+V.toString()+";sid."+R.slot.slotId+";");V=n.Sf;V.length>=2&&n.ssdaiAdsConfig&&Q2("Unexpected ad placement renderers length",R.slot,null,{length:V.length});var r;((r=n.adSlots)==null?0:r.some(function(v){var f,z;return((f=g.A(v,WS))==null?void 0:(z=f.adSlotMetadata)==null?void 0:z.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||V.some(function(v){var f,z,q,Q;
return!!((f=v.renderer)==null?0:(z=f.linearAdSequenceRenderer)==null?0:(q=z.linearAds)==null?0:q.length)||!((Q=v.renderer)==null||!Q.instreamVideoAdRenderer)})||oCN(R)})};
bO.prototype.Bl=function(){zbe(this.T)};Z7.prototype.VE=function(){var R=this;tgj(this.U,function(){var F=PA(R.slot.clientMetadata,"metadata_type_ad_break_request_data");return F.cueProcessedMs?R.T.get().fetch({Cd:F.getAdBreakUrl,yx:new g.NQ(F.Ro,F.hK),cueProcessedMs:F.cueProcessedMs}):R.T.get().fetch({Cd:F.getAdBreakUrl,yx:new g.NQ(F.Ro,F.hK)})})};
Z7.prototype.Bl=function(){zbe(this.U)};e4.prototype.VE=function(){var R=this.slot.clientMetadata,F,n=(F=this.slot.fulfilledLayout)!=null?F:PA(R,"metadata_type_fulfilled_layout");irE(this.callback,this.slot,n)};
e4.prototype.Bl=function(){Qn(this.callback,this.slot,new Z("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")};F8.prototype.build=function(R,F){return F.fulfilledLayout||RB(F,{N8:["metadata_type_fulfilled_layout"]})?new e4(R,F):this.N(R,F)};g.a(ny,F8);
ny.prototype.N=function(R,F){if(RB(F,{N8:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new bO(R,F,this.T,this.U,this.Ol,this.WG,this.zH,this.F2,this.SB);if(RB(F,{N8:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Z7(R,F,this.T,this.U,this.Ol,this.WG);throw new Z("Unsupported slot with type: "+F.slotType+" and client metadata: "+by(F.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.a(Vd,F8);Vd.prototype.N=function(R,F){throw new Z("Unsupported slot with type: "+F.slotType+" and client metadata: "+by(F.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.X=ypk.prototype;g.X.kF=function(){return this.slot};
g.X.iS=function(){return this.layout};
g.X.init=function(){};
g.X.release=function(){};
g.X.startRendering=function(R){if(R.layoutId!==this.layout.layoutId)this.callback.qP(this.slot,R,new ED("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 F=PA(R.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.cT(this.slot,R),yTN(this.N,
this.slot,F)):Q2("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,R)}};
g.X.wu=function(R,F){R.layoutId!==this.layout.layoutId?this.callback.qP(this.slot,R,new ED("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.dW(this.slot,R,F),jQk(this),HJ_(this))};g.a(zL,g.fG);g.X=zL.prototype;g.X.kF=function(){return this.U.slot};
g.X.iS=function(){return this.U.layout};
g.X.init=function(){this.N.get().addListener(this)};
g.X.release=function(){this.N.get().removeListener(this);this.dispose()};
g.X.eT=function(){};
g.X.nU=function(){};
g.X.M9=function(){};
g.X.uf=function(){};
g.X.startRendering=function(R){var F=this;ta(this.U,R,function(){return void F.pn()})};
g.X.pn=function(){this.N.get().pn(this.T)};
g.X.wu=function(R,F){var n=this;ta(this.U,R,function(){var V=n.N.get();yke(V,n.T,3);n.T=[];n.callback.dW(n.slot,R,F)})};
g.X.oG=function(){this.N.Zo()||this.N.get().removeListener(this);g.fG.prototype.oG.call(this)};
g.de.Object.defineProperties(zL.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.U.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.U.layout}}});py.prototype.qc=function(R,F){F=F===void 0?!1:F;var n=(this.N.get(R)||[]).concat();if(F=F&&BCN(R)){var V=this.N.get(F);V&&n.push.apply(n,g.I(V))}aB(this,R,n);this.T.add(R);F&&this.T.add(F)};
py.prototype.Vc=function(R,F){F=F===void 0?!1:F;if(!this.T.has(R)){var n=F&&BCN(R);n&&(F=!this.T.has(n));this.qc(R,F)}};g.a(OJN,v5);g.a(UF,zL);g.X=UF.prototype;g.X.fk=function(R,F){wE("ads-engagement-panel-layout",R,this.Z.get().cW,this.zH.get(),this.J,this.W,this.kF(),this.iS(),F)};
g.X.startRendering=function(R){Qd(this.LH,this.kF(),this.iS(),g.A(this.iS().renderingContent,q9),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(F,n,V,r,v){return new OJN(F,n,V,r,v)},this.T);
zL.prototype.startRendering.call(this,R)};
g.X.cT=function(R,F){this.W===F.layoutId&&(this.J===null?this.J=this.zH.get().Uq():Q2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.X.dW=function(){};
g.X.V7=function(){};
g.X.Dz=function(){};
g.X.vt=function(){};
g.X.ML=function(){};
g.X.nk=function(){};
g.X.C5=function(){};
g.X.Ia=function(){};
g.X.Wt=function(){};
g.X.jE=function(){};
g.X.rV=function(){};
g.X.oG=function(){tE(this.lZ(),this);zL.prototype.oG.call(this)};g.a(Kqe,v5);g.a(jq,zL);g.X=jq.prototype;g.X.fk=function(R,F){wE("banner-image",R,this.Z.get().cW,this.zH.get(),this.J,this.W,this.kF(),this.iS(),F)};
g.X.startRendering=function(R){Qd(this.LH,this.kF(),this.iS(),g.A(this.iS().renderingContent,t6),this.callback,"metadata_type_banner_image_layout_view_model",function(F,n,V,r,v){return new Kqe(F,n,V,r,v)},this.T);
zL.prototype.startRendering.call(this,R)};
g.X.cT=function(R,F){this.W===F.layoutId&&(this.J===null?this.J=this.zH.get().Uq():Q2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.X.dW=function(){};
g.X.V7=function(){};
g.X.Dz=function(){};
g.X.vt=function(){};
g.X.ML=function(){};
g.X.nk=function(){};
g.X.C5=function(){};
g.X.Ia=function(){};
g.X.Wt=function(){};
g.X.jE=function(){};
g.X.rV=function(){};
g.X.oG=function(){tE(this.lZ(),this);zL.prototype.oG.call(this)};g.a(HT,v5);g.a(ha,zL);g.X=ha.prototype;g.X.fk=function(R,F){wE("action-companion",R,this.Z.get().cW,this.zH.get(),this.J,this.W,this.kF(),this.iS(),F)};
g.X.startRendering=function(R){Qd(this.LH,this.kF(),this.iS(),g.A(this.iS().renderingContent,r6),this.callback,"metadata_type_action_companion_ad_renderer",function(F,n,V,r,v){return new HT(F,n,V,r,v)},this.T);
zL.prototype.startRendering.call(this,R)};
g.X.cT=function(R,F){F.layoutId===this.layout.layoutId?this.LH.Vc("impression"):this.W===F.layoutId&&(this.J===null?this.J=this.zH.get().Uq():Q2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.X.dW=function(){};
g.X.V7=function(){};
g.X.Dz=function(){};
g.X.vt=function(){};
g.X.ML=function(){};
g.X.nk=function(){};
g.X.C5=function(){};
g.X.Ia=function(){};
g.X.Wt=function(){};
g.X.jE=function(){};
g.X.rV=function(){};
g.X.oG=function(){tE(this.lZ(),this);zL.prototype.oG.call(this)};g.a(xze,v5);g.a(WT,zL);g.X=WT.prototype;g.X.fk=function(R,F){wE("image-companion",R,this.Z.get().cW,this.zH.get(),this.J,this.W,this.kF(),this.iS(),F)};
g.X.startRendering=function(R){Qd(this.LH,this.kF(),this.iS(),g.A(this.iS().renderingContent,vS),this.callback,"metadata_type_image_companion_ad_renderer",function(F,n,V,r,v){return new xze(F,n,V,r,v)},this.T);
zL.prototype.startRendering.call(this,R)};
g.X.cT=function(R,F){F.layoutId===this.layout.layoutId?this.LH.Vc("impression"):this.W===F.layoutId&&(this.J===null?this.J=this.zH.get().Uq():Q2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.X.dW=function(){};
g.X.V7=function(){};
g.X.Dz=function(){};
g.X.vt=function(){};
g.X.ML=function(){};
g.X.nk=function(){};
g.X.C5=function(){};
g.X.Ia=function(){};
g.X.Wt=function(){};
g.X.jE=function(){};
g.X.rV=function(){};
g.X.oG=function(){tE(this.lZ(),this);zL.prototype.oG.call(this)};g.a(YKf,v5);g.a(uJ,zL);g.X=uJ.prototype;g.X.fk=function(R,F){wE("shopping-companion",R,this.Z.get().cW,this.zH.get(),this.J,this.W,this.kF(),this.iS(),F)};
g.X.startRendering=function(R){Qd(this.LH,this.kF(),this.iS(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(F,n,V,r,v){return new YKf(F,n,V,r,v)},this.T);
zL.prototype.startRendering.call(this,R)};
g.X.cT=function(R,F){F.layoutId===this.layout.layoutId?this.LH.Vc("impression"):this.W===F.layoutId&&(this.J===null?this.J=this.zH.get().Uq():Q2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.X.dW=function(){};
g.X.V7=function(){};
g.X.Dz=function(){};
g.X.vt=function(){};
g.X.ML=function(){};
g.X.nk=function(){};
g.X.C5=function(){};
g.X.Ia=function(){};
g.X.Wt=function(){};
g.X.jE=function(){};
g.X.rV=function(){};
g.X.oG=function(){tE(this.lZ(),this);zL.prototype.oG.call(this)};g.a(gE,zL);g.X=gE.prototype;g.X.startRendering=function(R){Qd(this.LH,this.kF(),this.iS(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(F,n,V,r,v){return new HT(F,n,V,r,v)},this.T);
zL.prototype.startRendering.call(this,R)};
g.X.cT=function(){};
g.X.dW=function(){};
g.X.V7=function(){};
g.X.Dz=function(){};
g.X.vt=function(){};
g.X.ML=function(){};
g.X.nk=function(){};
g.X.C5=function(){};
g.X.Ia=function(){};
g.X.Wt=function(){};
g.X.jE=function(){};
g.X.rV=function(){};
g.X.oG=function(){tE(this.lZ(),this);zL.prototype.oG.call(this)};
g.X.fk=function(){};g.X=ltk.prototype;g.X.kF=function(){return this.slot};
g.X.iS=function(){return this.layout};
g.X.init=function(){this.F2.get().addListener(this);this.F2.get().Pp.push(this);var R=PA(this.layout.clientMetadata,"metadata_type_video_length_seconds"),F=PA(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Sq(this.layout.NC)&&Rb(this.cI.get(),this.layout.layoutId,{CZ:F,Sr:R,listener:this})};
g.X.release=function(){this.F2.get().removeListener(this);XOk(this.F2.get(),this);Sq(this.layout.NC)&&FZ(this.cI.get(),this.layout.layoutId)};
g.X.startRendering=function(R){this.callback.cT(this.slot,R)};
g.X.wu=function(R,F){J4e(this.WG.get())&&!this.T&&(this.LH.Vc("abandon"),this.T=!0);this.callback.dW(this.slot,R,F)};
g.X.WE=function(R){switch(R.id){case "part2viewed":this.LH.Vc("start");this.LH.Vc("impression");break;case "videoplaytime25":this.LH.Vc("first_quartile");break;case "videoplaytime50":this.LH.Vc("midpoint");break;case "videoplaytime75":this.LH.Vc("third_quartile");break;case "videoplaytime100":J4e(this.WG.get())?this.T||(this.LH.Vc("complete"),this.T=!0):this.LH.Vc("complete");yd(this.LH)&&TL(this.LH,Infinity,!0);GZ9(this.WG.get())&&m6(this.U,Infinity,!0);break;case "engagedview":yd(this.LH)||this.LH.Vc("progress");
break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Q2("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.X.onVolumeChange=function(){};
g.X.Q5=function(){};
g.X.oV=function(){};
g.X.PE=function(){};
g.X.onFullscreenToggled=function(){};
g.X.aV=function(){};
g.X.gG=function(){};
g.X.Kw=function(R){GZ9(this.WG.get())&&m6(this.U,R*1E3,!1);yd(this.LH)&&TL(this.LH,R*1E3,!1)};
g.X.Fd=function(){};
g.X.FY=function(){this.LH.Vc("active_view_measurable")};
g.X.Kv=function(){this.LH.Vc("active_view_viewable")};
g.X.ly=function(){this.LH.Vc("active_view_fully_viewable_audible_half_duration")};
g.X.Pv=function(){this.LH.Vc("audio_measurable")};
g.X.Wv=function(){this.LH.Vc("audio_audible")};g.a(OF,zL);g.X=OF.prototype;g.X.init=function(){zL.prototype.init.call(this);var R=PA(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),F={adsClientData:this.layout.gg};this.T.push(new at(R,this.layout.layoutId,PA(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),F,!0))};
g.X.Gl=function(){this.J||this.F2.get().resumeVideo(1)};
g.X.startRendering=function(R){zL.prototype.startRendering.call(this,R);zc(this.F2.get(),"ad-showing");this.callback.cT(this.slot,R);this.W.ea=this};
g.X.wu=function(R,F){zL.prototype.wu.call(this,R,F);qe(this.F2.get(),"ad-showing");ES(this.W,this)};
g.X.fk=function(R){switch(R){case "ad-info-icon-button":(this.J=this.F2.get().Kx(1))||this.F2.get().pauseVideo();break;case "visit-advertiser":this.F2.get().pauseVideo()}};
g.X.oG=function(){zL.prototype.oG.call(this)};g.a(IB,v5);g.a(Ky,zL);g.X=Ky.prototype;g.X.startRendering=function(R){Qd(this.LH,this.kF(),this.iS(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(F,n,V,r,v){return new IB(F,n,V,r,v)},this.T);
zL.prototype.startRendering.call(this,R)};
g.X.cT=function(){};
g.X.dW=function(){};
g.X.V7=function(){};
g.X.Dz=function(){};
g.X.vt=function(){};
g.X.ML=function(){};
g.X.nk=function(){};
g.X.C5=function(){};
g.X.Ia=function(){};
g.X.Wt=function(){};
g.X.jE=function(){};
g.X.rV=function(){};
g.X.oG=function(){tE(this.lZ(),this);zL.prototype.oG.call(this)};
g.X.fk=function(){};g.a(DX,v5);g.a(iJ,zL);iJ.prototype.init=function(){zL.prototype.init.call(this);this.T.push(new DX(g.A(this.layout.renderingContent,jt),this.layout.layoutId,{adsClientData:this.layout.gg}))};
iJ.prototype.fk=function(){Uo(this.J.get(),this.W)&&cT(this.zH.get(),3)};
iJ.prototype.startRendering=function(R){zL.prototype.startRendering.call(this,R);this.callback.cT(this.slot,R)};
iJ.prototype.oG=function(){zL.prototype.oG.call(this)};g.a(xl,v5);g.a(kl,zL);kl.prototype.init=function(){zL.prototype.init.call(this);var R=g.A(this.layout.renderingContent,eq)||PA(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),F=qy(this.LH);this.T.push(new xl(R,F,this.layout.layoutId,{adsClientData:this.layout.gg},!0,!0))};
kl.prototype.startRendering=function(R){zL.prototype.startRendering.call(this,R);this.callback.cT(this.slot,R)};
kl.prototype.fk=function(R,F){if(F===this.layout.layoutId)switch(R){case "skip-button":var n;(R=(n=PA(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:n.current)&&b_(R,this.kF(),this.layout)}};
kl.prototype.oG=function(){zL.prototype.oG.call(this)};Ja.prototype.build=function(R,F,n,V){if(Yl(V,{N8:["metadata_type_ad_break_response_data"],xq:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new ypk(R,n,V,this.U,this.N,this.T);throw new ED("Unsupported layout with type: "+V.layoutType+" and client metadata: "+by(V.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.a($zN,v5);g.a(GL,zL);g.X=GL.prototype;g.X.fk=function(R,F){wE("ads-engagement-panel",R,this.Z.get().cW,this.zH.get(),this.J,this.W,this.kF(),this.iS(),F)};
g.X.startRendering=function(R){Qd(this.LH,this.kF(),this.iS(),g.A(this.iS().renderingContent,fj),this.callback,"metadata_type_ads_engagement_panel_renderer",function(F,n,V,r,v){return new $zN(F,n,V,r,v)},this.T);
zL.prototype.startRendering.call(this,R)};
g.X.cT=function(R,F){F.layoutId===this.layout.layoutId?this.LH.Vc("impression"):this.W===F.layoutId&&(this.J===null?this.J=this.zH.get().Uq():Q2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.X.dW=function(){};
g.X.V7=function(){};
g.X.Dz=function(){};
g.X.vt=function(){};
g.X.ML=function(){};
g.X.nk=function(){};
g.X.C5=function(){};
g.X.Ia=function(){};
g.X.Wt=function(){};
g.X.jE=function(){};
g.X.rV=function(){};
g.X.oG=function(){tE(this.lZ(),this);zL.prototype.oG.call(this)};g.a(dE,zL);g.X=dE.prototype;g.X.fk=function(R,F){wE("top-banner-image-text-icon-buttoned",R,this.Z.get().cW,this.zH.get(),this.J,this.W,this.kF(),this.iS(),F)};
g.X.startRendering=function(R){Qd(this.LH,this.kF(),this.iS(),g.A(this.iS().renderingContent,zN),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(F,n,V,r,v){return new IB(F,n,V,r,v)},this.T);
zL.prototype.startRendering.call(this,R)};
g.X.cT=function(R,F){this.W===F.layoutId&&(this.J===null?this.J=this.zH.get().Uq():Q2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.X.dW=function(){};
g.X.V7=function(){};
g.X.Dz=function(){};
g.X.vt=function(){};
g.X.ML=function(){};
g.X.nk=function(){};
g.X.C5=function(){};
g.X.Ia=function(){};
g.X.Wt=function(){};
g.X.jE=function(){};
g.X.rV=function(){};
g.X.oG=function(){tE(this.lZ(),this);zL.prototype.oG.call(this)};ZJ6.prototype.build=function(R,F,n,V){if(Yl(V,PXR())||g.A(V.renderingContent,fj)!==void 0)return new GL(R,n,V,this.JX,this.zH,this.lZ,this.cI,this.T);if(Yl(V,iJJ())||g.A(V.renderingContent,r6)!==void 0)return new ha(R,n,V,this.JX,this.zH,this.lZ,this.cI,this.T);if(Yl(V,kne())||g.A(V.renderingContent,vS)!==void 0)return new WT(R,n,V,this.JX,this.zH,this.lZ,this.cI,this.T);if(Yl(V,JpE()))return new uJ(R,n,V,this.JX,this.zH,this.lZ,this.cI,this.T);if(Yl(V,MgV()))return new gE(R,n,V,this.JX,this.zH,this.lZ,
this.cI,this.T);if(Yl(V,DzN())||g.A(V.renderingContent,t6)!==void 0)return new jq(R,n,V,this.JX,this.zH,this.lZ,this.cI,this.T);if(Yl(V,bJf())||g.A(V.renderingContent,zN)!==void 0)return new dE(R,n,V,this.JX,this.zH,this.lZ,this.cI,this.T);if(Yl(V,NCW()))return new Ky(R,n,V,this.JX,this.zH,this.lZ,this.cI,this.T);if(Yl(V,It6())||g.A(V.renderingContent,q9)!==void 0)return new UF(R,n,V,this.JX,this.zH,this.lZ,this.cI,this.T);throw new ED("Unsupported layout with type: "+V.layoutType+" and client metadata: "+
by(V.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};ebe.prototype.build=function(R,F,n,V){if(Yl(V,{N8:["metadata_type_linked_player_bytes_layout_id"],xq:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new iJ(R,n,V,this.JX,this.zH,this.T);throw new ED("Unsupported layout with type: "+V.layoutType+" and client metadata: "+by(V.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.X=R3k.prototype;g.X.kF=function(){return this.slot};
g.X.iS=function(){return this.layout};
g.X.init=function(){};
g.X.release=function(){};
g.X.startRendering=function(R){R.layoutId!==this.layout.layoutId?this.callback.qP(this.slot,R,new ED("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.cT(this.slot,R),this.LH.Vc("impression"),FB(this.wp,R))};
g.X.wu=function(R,F){R.layoutId!==this.layout.layoutId?this.callback.qP(this.slot,R,new ED("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.dW(this.slot,R,F)};g.X=ntN.prototype;g.X.kF=function(){return this.slot};
g.X.iS=function(){return this.layout};
g.X.init=function(){};
g.X.release=function(){};
g.X.startRendering=function(R){R.layoutId!==this.layout.layoutId?this.callback.qP(this.slot,R,new ED("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.cT(this.slot,R),this.LH.Vc("impression"),FB(this.wp,R))};
g.X.wu=function(R,F){R.layoutId!==this.layout.layoutId?this.callback.qP(this.slot,R,new ED("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.dW(this.slot,R,F)};My.prototype.build=function(R,F,n,V){if(!this.WG.get().K.D().B("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(Yl(V,FaV()))return new R3k(R,n,V,this.zH,this.wp)}else if(Yl(V,{N8:[],xq:["LAYOUT_TYPE_FORECASTING"]}))return new ntN(R,n,V,this.zH,this.wp);throw new ED("Unsupported layout with type: "+V.layoutType+" and client metadata: "+by(V.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.a(vtJ,v5);g.a(lJ,zL);g.X=lJ.prototype;g.X.init=function(){zL.prototype.init.call(this);var R=g.A(this.layout.renderingContent,ZX)||PA(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),F={adsClientData:this.layout.gg};this.T.push(new vtJ(R,PA(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,F))};
g.X.Gl=function(){this.J||this.F2.get().resumeVideo(2)};
g.X.startRendering=function(R){zL.prototype.startRendering.call(this,R);this.callback.cT(this.slot,R);this.W.ea=this};
g.X.wu=function(R,F){zL.prototype.wu.call(this,R,F);ES(this.W,this)};
g.X.fk=function(R,F){if(!kA(this.WG.get(),"stop_handling_click_for_non_rendering_overlay_layout")||F===this.layout.layoutId){if(Uo(this.Z.get(),this.X))switch(R){case "visit-advertiser-link":cT(this.zH.get(),3)}switch(R){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.J||this.F2.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.J=this.F2.get().Kx(2))||this.F2.get().pauseVideo();break;
case "visit-advertiser-link":this.F2.get().pauseVideo();fCR(this).Z2();break;case "skip-button":if(R=fCR(this),this.layout.renderingContent&&!MI(this.layout.clientMetadata,"metadata_type_dai")||!R||!R.wL){var n;(R=(n=PA(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:n.current)&&b_(R,this.kF(),this.layout)}else Q2("Requesting to skip by LegacyPlayerBytes when components enabled"),R.hH(this.kF(),this.layout)}}};
g.X.oG=function(){zL.prototype.oG.call(this)};g.a(Ny,zL);g.X=Ny.prototype;g.X.init=function(){zL.prototype.init.call(this);var R=g.A(this.layout.renderingContent,bJ)||PA(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),F={adsClientData:this.layout.gg},n;(n=!!this.layout.renderingContent)||(n=EF(this),n=!(n&&n.wL));this.T.push(new at(R,this.layout.layoutId,PA(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),F,n))};
g.X.Gl=function(){this.J||this.F2.get().resumeVideo(2)};
g.X.startRendering=function(R){zL.prototype.startRendering.call(this,R);this.callback.cT(this.slot,R);this.W.ea=this};
g.X.wu=function(R,F){zL.prototype.wu.call(this,R,F);ES(this.W,this)};
g.X.fk=function(R,F){if(!this.WG||!kA(this.WG.get(),"stop_handling_click_for_non_rendering_overlay_layout")||F===this.layout.layoutId){if(Uo(this.Z.get(),this.X))switch(R){case "visit-advertiser":cT(this.zH.get(),3)}switch(R){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.J||this.F2.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.J=this.F2.get().Kx(2))||this.F2.get().pauseVideo();break;
case "visit-advertiser":this.F2.get().pauseVideo();EF(this).Z2();break;case "skip-button":if(R=EF(this),this.layout.renderingContent&&!MI(this.layout.clientMetadata,"metadata_type_dai")||!R||!R.wL){var n;(R=(n=PA(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:n.current)&&b_(R,this.kF(),this.layout)}else Q2("Requesting to skip by LegacyPlayerBytes"),R.hH(this.kF(),this.layout)}}};
g.X.oG=function(){zL.prototype.oG.call(this)};g.a(z3W,v5);g.a($l,zL);g.X=$l.prototype;g.X.startRendering=function(R){var F=this;ta(this.U,R,function(){F.T.push(new z3W(PA(F.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),R.layoutId,R.gg));F.pn();F.callback.cT(F.slot,R);g.E(eO(F.F2.get(),1),512)&&F.callback.qP(F.kF(),F.iS(),new ED("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
g.X.gG=function(){};
g.X.aV=function(R){if(R.state.isError()){var F;this.callback.qP(this.kF(),this.iS(),new ED("A player error happened during adNotify",{playerErrorCode:(F=R.state.z_)==null?void 0:F.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}};
g.X.onFullscreenToggled=function(){};
g.X.oV=function(){};
g.X.PE=function(){};
g.X.Q5=function(){};
g.X.onVolumeChange=function(){};
g.X.WE=function(){};
g.X.Fd=function(){};
g.X.fk=function(){};g.a(QhR,v5);g.a(PT,zL);PT.prototype.init=function(){zL.prototype.init.call(this);var R=g.A(this.layout.renderingContent,RT),F=qy(this.LH);this.T.push(new QhR(R,F,this.layout.layoutId,{adsClientData:this.layout.gg}))};
PT.prototype.startRendering=function(R){zL.prototype.startRendering.call(this,R);this.callback.cT(this.slot,R)};
PT.prototype.fk=function(R,F){if(F===this.layout.layoutId)switch(R){case "skip-button":var n;(R=(n=PA(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:n.current)&&b_(R,this.kF(),this.layout)}};
PT.prototype.oG=function(){zL.prototype.oG.call(this)};cnN.prototype.build=function(R,F,n,V){if(R=FR(R,n,V,this.JX,this.F2,this.zH,this.U,this.T,this.WG))return R;throw new ED("Unsupported layout with type: "+V.layoutType+" and client metadata: "+by(V.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.X=r8.prototype;g.X.kF=function(){return this.slot};
g.X.iS=function(){return this.layout};
g.X.init=function(){this.F2.get().addListener(this);this.F2.get().Pp.push(this);var R=w5I(this),F=g.A(this.layout.renderingContent,TN),n=F?Ly(F.pings):PA(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");F=F?uSW(F.pings):PA(this.layout.clientMetadata,"metadata_type_active_view_identifier");Sq(this.layout.NC)&&Rb(this.cI.get(),this.layout.layoutId,{CZ:n,Sr:R,listener:this,wc:F})};
g.X.release=function(){this.F2.get().removeListener(this);XOk(this.F2.get(),this);Sq(this.layout.NC)&&FZ(this.cI.get(),this.layout.layoutId)};
g.X.startRendering=function(R){this.callback.cT(this.slot,R)};
g.X.wu=function(R,F){vH(this,"abandon");this.callback.dW(this.slot,R,F)};
g.X.WE=function(R){switch(R.id){case "part2viewed":this.LH.Vc("start");this.LH.Vc("impression");break;case "videoplaytime25":this.LH.Vc("first_quartile");break;case "videoplaytime50":this.LH.Vc("midpoint");break;case "videoplaytime75":this.LH.Vc("third_quartile");break;case "videoplaytime100":vH(this,"complete");yd(this.LH)&&TL(this.LH,Infinity,!0);dbI(this.WG.get())&&m6(this.U,Infinity,!0);break;case "engagedview":yd(this.LH)||this.LH.Vc("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:Q2("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}};
g.X.onVolumeChange=function(){};
g.X.Q5=function(){};
g.X.oV=function(){};
g.X.PE=function(){};
g.X.onFullscreenToggled=function(){};
g.X.aV=function(R){this.T||(g.Sx(R,4)&&!g.Sx(R,2)?Cy(this.LH,"pause"):wr(R,4)<0&&!(wr(R,2)<0)&&Cy(this.LH,"resume"))};
g.X.gG=function(){};
g.X.Kw=function(R){dbI(this.WG.get())&&m6(this.U,R*1E3,!1);yd(this.LH)&&TL(this.LH,R*1E3,!1)};
g.X.Fd=function(){vH(this,"swipe")};
g.X.FY=function(){this.LH.Vc("active_view_measurable")};
g.X.Kv=function(){this.LH.Vc("active_view_viewable")};
g.X.ly=function(){this.LH.Vc("active_view_fully_viewable_audible_half_duration")};
g.X.Pv=function(){this.LH.Vc("audio_measurable")};
g.X.Wv=function(){this.LH.Vc("audio_audible")};SaV.prototype.build=function(R,F,n,V){if(n.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.A(V.renderingContent,TN)!==void 0)return new r8(R,n,V,this.F2,this.zH,this.tJ,this.WG,this.cI,this.Do);F=["metadata_type_ad_placement_config"];for(var r=g.m(X8()),v=r.next();!v.done;v=r.next())F.push(v.value);if(Yl(V,{N8:F,xq:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return n.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new r8(R,n,V,this.F2,this.zH,this.tJ,this.WG,this.cI,this.Do):new ltk(R,n,V,
this.F2,this.zH,this.tJ,this.WG,this.cI);throw new ED("Unsupported layout with type: "+V.layoutType+" and client metadata: "+by(V.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var YmD,iR;
YmD={I0Q:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",UdG:"AUTHENTICATION_MALFORMED",mdZ:"AUTHENTICATION_MISSING",obS:"BAD_REQUEST",FwQ:"CAST_SESSION_DEVICE_MISMATCHED",KwZ:"CAST_SESSION_VIDEO_MISMATCHED",BpH:"CAST_TOKEN_EXPIRED",bWG:"CAST_TOKEN_FAILED",ZW2:"CAST_TOKEN_MALFORMED",tKG:"CGI_PARAMS_MALFORMED",zbX:"CGI_PARAMS_MISSING",kPX:"DEVICE_FALLBACK",Z2Z:"GENERIC_WITH_LINK_AND_CPN",txz:"ERROR_HDCP",zTz:"LICENSE",nCZ:"VIDEO_UNAVAILABLE",C4Z:"FORMAT_UNAVAILABLE",qSZ:"GEO_FAILURE",
T45:"HTML5_AUDIO_RENDERER_ERROR",UD5:"GENERIC_WITHOUT_LINK",mD2:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",N42:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",JGS:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",cGG:"HTML5_SPS_UMP_STATUS_REJECTED",Fs2:"INVALID_DRM_MESSAGE",oE1:"PURCHASE_NOT_FOUND",jYo:"PURCHASE_REFUNDED",DHH:"RENTAL_EXPIRED",HQZ:"RETRYABLE_ERROR",iQ5:"SERVER_ERROR",Jsz:"SIGNATURE_EXPIRED",Wm2:"STOPPED_BY_ANOTHER_PLAYBACK",wYG:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Pr1:"STREAMING_NOT_ALLOWED",
l15:"STREAM_LICENSE_NOT_FOUND",MmG:"TOO_MANY_REQUESTS",noX:"TOO_MANY_REQUESTS_WITH_LINK",YJH:"TOO_MANY_STREAMS_PER_ENTITLEMENT",XY2:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",Eoq:"VIDEO_FORBIDDEN",a1Q:"VIDEO_NOT_FOUND",Wwo:"BROWSER_OR_EXTENSION_ERROR"};iR={};
g.iK=(iR.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",iR.DEVICE_FALLBACK="Sorry, this video is not available on this device.",iR.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",iR.LICENSE="Sorry, there was an error licensing this video.",iR.VIDEO_UNAVAILABLE=
"Video unavailable",iR.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",iR.GEO_FAILURE="This video isn't available in your country.",iR.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",iR.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",iR.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",iR.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",
iR.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",iR.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",iR.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",iR.PURCHASE_NOT_FOUND="This video requires payment.",iR.PURCHASE_REFUNDED="This video's purchase has been refunded.",iR.RENTAL_EXPIRED="This video's rental has expired.",iR.CAST_SESSION_DEVICE_MISMATCHED=
"The device in the cast session doesn't match the requested one.",iR.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",iR.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",iR.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",iR.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",iR.SERVER_ERROR="There was an internal server error. Please try again later.",iR.STOPPED_BY_ANOTHER_PLAYBACK=
"Your account is playing this video in another location. Please reload this page to resume watching.",iR.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",iR.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",iR.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",iR.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",iR.TOO_MANY_REQUESTS="Please log in to watch this video.",
iR.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",iR.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",iR.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",iR.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",iR.VIDEO_FORBIDDEN="Access to this video is forbidden.",iR.VIDEO_NOT_FOUND="This video can not be found.",iR.BROWSER_OR_EXTENSION_ERROR=
"Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",iR);var Jxv;var GX7=g.ft(),dN5=GX7.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!dN5||dN5.length<2)Jxv=void 0;else{var MWv=GX7.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);Jxv=MWv&&MWv.length===6?Number(MWv[5].replace("_",".")):0}var lk=Jxv,g9=lk>=0;g.a(g.AQ,Ow);g.AQ.prototype.C=function(R,F,n,V,r){return Ow.prototype.C.call(this,R,F,n,V,r)};var xf={},bo=(xf.FAIRPLAY="fairplay",xf.PLAYREADY="playready",xf.WIDEVINE="widevine",xf.CLEARKEY=null,xf.FLASHACCESS=null,xf.UNKNOWN=null,xf.WIDEVINE_CLASSIC=null,xf);aT.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var kf={},tI=(kf.WIDTH={name:"width",video:!0,valid:640,OS:99999},kf.HEIGHT={name:"height",video:!0,valid:360,OS:99999},kf.FRAMERATE={name:"framerate",video:!0,valid:30,OS:9999},kf.BITRATE={name:"bitrate",video:!0,valid:3E5,OS:2E9},kf.EOTF={name:"eotf",video:!0,valid:"bt709",OS:"catavision"},kf.CHANNELS={name:"channels",video:!1,valid:2,OS:99},kf.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",OS:"invalidformat"},kf.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
OS:"nope"},kf.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",OS:"av99.0.05M.08"},kf.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",OS:"invalid"},kf.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",OS:"false"},kf);var liM=["h","H"],N7h=["9","("],EcO=["9h","(h"],$Nz=["8","*"],PeO=["a","A"],b4q=["o","O"],Z4U=["m","M"],eJ5=["mac3","MAC3"],RT5=["meac3","MEAC3"],Yf={},AzI=(Yf.h=liM,Yf.H=liM,Yf["9"]=N7h,Yf["("]=N7h,Yf["9h"]=EcO,Yf["(h"]=EcO,Yf["8"]=$Nz,Yf["*"]=$Nz,Yf.a=PeO,Yf.A=PeO,Yf.o=b4q,Yf.O=b4q,Yf.m=Z4U,Yf.M=Z4U,Yf.mac3=eJ5,Yf.MAC3=eJ5,Yf.meac3=RT5,Yf.MEAC3=RT5,Yf),FrO=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),qF6=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var e={},YQ=(e["0"]="f",e["160"]="h",e["133"]="h",e["134"]="h",e["135"]="h",e["136"]="h",e["137"]="h",e["264"]="h",e["266"]="h",e["138"]="h",e["298"]="h",e["299"]="h",e["304"]="h",e["305"]="h",e["214"]="h",e["216"]="h",e["374"]="h",e["375"]="h",e["140"]="a",e["141"]="a",e["327"]="sa",e["258"]="m",e["380"]="mac3",e["328"]="meac3",e["161"]="H",e["142"]="H",e["143"]="H",e["144"]="H",e["222"]="H",e["223"]="H",e["145"]="H",e["224"]="H",e["225"]="H",e["146"]="H",e["226"]="H",e["227"]="H",e["147"]="H",e["384"]=
"H",e["376"]="H",e["385"]="H",e["377"]="H",e["149"]="A",e["261"]="M",e["381"]="MAC3",e["329"]="MEAC3",e["598"]="9",e["278"]="9",e["242"]="9",e["243"]="9",e["244"]="9",e["775"]="9",e["776"]="9",e["777"]="9",e["778"]="9",e["779"]="9",e["780"]="9",e["781"]="9",e["782"]="9",e["783"]="9",e["247"]="9",e["248"]="9",e["353"]="9",e["355"]="9",e["356"]="9",e["271"]="9",e["577"]="9",e["313"]="9",e["579"]="9",e["272"]="9",e["302"]="9",e["303"]="9",e["407"]="9",e["408"]="9",e["308"]="9",e["315"]="9",e["330"]=
"9h",e["331"]="9h",e["332"]="9h",e["333"]="9h",e["334"]="9h",e["335"]="9h",e["336"]="9h",e["337"]="9h",e["338"]="so",e["600"]="o",e["250"]="o",e["251"]="o",e["774"]="o",e["194"]="*",e["195"]="*",e["220"]="*",e["221"]="*",e["196"]="*",e["197"]="*",e["279"]="(",e["280"]="(",e["317"]="(",e["318"]="(",e["273"]="(",e["274"]="(",e["357"]="(",e["358"]="(",e["275"]="(",e["359"]="(",e["360"]="(",e["276"]="(",e["583"]="(",e["584"]="(",e["314"]="(",e["585"]="(",e["561"]="(",e["277"]="(",e["361"]="(h",e["362"]=
"(h",e["363"]="(h",e["364"]="(h",e["365"]="(h",e["366"]="(h",e["591"]="(h",e["592"]="(h",e["367"]="(h",e["586"]="(h",e["587"]="(h",e["368"]="(h",e["588"]="(h",e["562"]="(h",e["409"]="(",e["410"]="(",e["411"]="(",e["412"]="(",e["557"]="(",e["558"]="(",e["394"]="1",e["395"]="1",e["396"]="1",e["397"]="1",e["398"]="1",e["399"]="1",e["720"]="1",e["721"]="1",e["400"]="1",e["401"]="1",e["571"]="1",e["402"]="1",e["694"]="1h",e["695"]="1h",e["696"]="1h",e["697"]="1h",e["698"]="1h",e["699"]="1h",e["700"]="1h",
e["701"]="1h",e["702"]="1h",e["703"]="1h",e["386"]="3",e["387"]="w",e["406"]="6",e["787"]="1",e["788"]="1",e["548"]="1e",e["549"]="1e",e["550"]="1e",e["551"]="1e",e["809"]="1e",e["810"]="1e",e["552"]="1e",e["811"]="1e",e["812"]="1e",e["553"]="1e",e["813"]="1e",e["814"]="1e",e["554"]="1e",e["815"]="1e",e["816"]="1e",e["555"]="1e",e["817"]="1e",e["818"]="1e",e["572"]="1e",e["556"]="1e",e["645"]="(",e["646"]="(",e["647"]="(",e["648"]="(",e["649"]="(",e["650"]="(",e["651"]="(",e["652"]="(",e["653"]="(",
e["654"]="(",e["655"]="(",e["656"]="(",e["657"]="(",e["658"]="(",e["659"]="(",e["660"]="(",e["661"]="(",e["662"]="(",e["663"]="(",e["664"]="(",e["665"]="(",e["666"]="(",e["667"]="(",e["668"]="(",e["669"]="(",e["670"]="(",e["671"]="(",e["672"]="(",e["673"]="(",e["674"]="(h",e["675"]="(h",e["676"]="(h",e["677"]="(h",e["678"]="(h",e["679"]="(h",e["680"]="(h",e["681"]="(h",e["682"]="(h",e["683"]="(h",e["684"]="(h",e["685"]="(h",e["686"]="(h",e["687"]="(h",e["688"]="A",e["689"]="A",e["690"]="A",e["691"]=
"MEAC3",e["773"]="i",e["806"]="I",e["805"]="I",e["829"]="9",e["830"]="9",e["831"]="9",e["832"]="9",e["833"]="9",e["834"]="9",e["835"]="9",e["836"]="9",e["892"]="9",e["893"]="9",e["837"]="9",e["838"]="9",e["839"]="9",e["840"]="9",e["841"]="(",e["842"]="(",e["843"]="(",e["844"]="(",e["845"]="(",e["846"]="(",e["847"]="(",e["848"]="(",e["894"]="(",e["895"]="(",e["849"]="(",e["850"]="(",e["851"]="(",e["852"]="(",e["865"]="9",e["866"]="9",e["867"]="9",e["868"]="9",e["869"]="9",e["870"]="9",e["871"]="9",
e["872"]="9",e["896"]="9",e["897"]="9",e["873"]="9",e["874"]="9",e["875"]="9",e["876"]="9",e["877"]="(",e["878"]="(",e["879"]="(",e["880"]="(",e["881"]="(",e["882"]="(",e["883"]="(",e["884"]="(",e["898"]="(",e["899"]="(",e["885"]="(",e["886"]="(",e["887"]="(",e["888"]="(",e["900"]="2",e["901"]="2",e["902"]="2",e["903"]="2",e["904"]="2",e["905"]="2",e["906"]="2",e["907"]="2",e["908"]="2",e);var JO={},bb_=(JO.STEREO_LAYOUT_UNKNOWN=0,JO.STEREO_LAYOUT_LEFT_RIGHT=1,JO.STEREO_LAYOUT_TOP_BOTTOM=2,JO);var jt6={X85:0,P0H:124,w8G:144,KnH:220,FnG:240,bQq:340,BTH:360,ZQH:480,zQ2:588,t_2:608,M_Z:720,nEZ:740,AlG:1080,QYG:1100,WnZ:1440,lH2:2160,YMS:9999,0:"QUALITY_ORDINAL_UNKNOWN",124:"QUALITY_ORDINAL_144P_SAVER",144:"QUALITY_ORDINAL_144P",220:"QUALITY_ORDINAL_240P_SAVER",240:"QUALITY_ORDINAL_240P",340:"QUALITY_ORDINAL_360P_SAVER",360:"QUALITY_ORDINAL_360P",480:"QUALITY_ORDINAL_480P",588:"QUALITY_ORDINAL_608P_SAVER",608:"QUALITY_ORDINAL_608P",720:"QUALITY_ORDINAL_720P",740:"QUALITY_ORDINAL_720P_ENHANCED",
1080:"QUALITY_ORDINAL_1080P",1100:"QUALITY_ORDINAL_1080P_ENHANCED",1440:"QUALITY_ORDINAL_1440P",2160:"QUALITY_ORDINAL_2160P",9999:"QUALITY_ORDINAL_HIGHRES"};var GI,ET,dR,eY6;GI={};g.g8=(GI.auto=0,GI.tiny=144,GI.light=144,GI.small=240,GI.medium=360,GI.large=480,GI.hd720=720,GI.hd1080=1080,GI.hd1440=1440,GI.hd2160=2160,GI.hd2880=2880,GI.highres=4320,GI);ET={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};dR={};
eY6=(dR.QUALITY_ORDINAL_UNKNOWN=0,dR.QUALITY_ORDINAL_144P_SAVER=124,dR.QUALITY_ORDINAL_144P=144,dR.QUALITY_ORDINAL_240P_SAVER=220,dR.QUALITY_ORDINAL_240P=240,dR.QUALITY_ORDINAL_360P_SAVER=340,dR.QUALITY_ORDINAL_360P=360,dR.QUALITY_ORDINAL_480P=480,dR.QUALITY_ORDINAL_608P_SAVER=588,dR.QUALITY_ORDINAL_608P=608,dR.QUALITY_ORDINAL_720P=720,dR.QUALITY_ORDINAL_720P_ENHANCED=740,dR.QUALITY_ORDINAL_1080P=1080,dR.QUALITY_ORDINAL_1080P_ENHANCED=1100,dR.QUALITY_ORDINAL_1440P=1440,dR.QUALITY_ORDINAL_2160P=2160,
dR.QUALITY_ORDINAL_HIGHRES=9999,dR);var xQ="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");iT.prototype.isHdr=function(){return this.T==="smpte2084"||this.T==="arib-std-b67"};JQ.prototype.UY=function(){return this.containerType===2};
JQ.prototype.isEncrypted=function(){return!!this.lL};
JQ.prototype.cB=function(){return!!this.audio};
JQ.prototype.EY=function(){return!!this.video};
var ML=!1;g.a(Q4,g.fG);g.X=Q4.prototype;g.X.appendBuffer=function(R,F,n){if(this.En.GA()!==this.appendWindowStart+this.start||this.En.lf()!==this.appendWindowEnd+this.start||this.En.qC()!==this.timestampOffset+this.start)this.En.supports(1),this.En.zc(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.En.I2(this.timestampOffset+this.start);this.En.appendBuffer(R,F,n)};
g.X.abort=function(){this.En.abort()};
g.X.remove=function(R,F){this.En.remove(R+this.start,F+this.start)};
g.X.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
g.X.clear=function(){this.En.clear()};
g.X.zc=function(R,F){this.appendWindowStart=R;this.appendWindowEnd=F};
g.X.Pz=function(){return this.timestampOffset+this.start};
g.X.GA=function(){return this.appendWindowStart};
g.X.lf=function(){return this.appendWindowEnd};
g.X.I2=function(R){this.timestampOffset=R};
g.X.qC=function(){return this.timestampOffset};
g.X.TI=function(R){R=this.En.TI(R===void 0?!1:R);return q5(R,this.start,this.end)};
g.X.Of=function(){return this.En.Of()};
g.X.GN=function(){return this.En.GN()};
g.X.i4=function(){return this.En.i4()};
g.X.mV=function(){return this.En.mV()};
g.X.EL=function(){this.En.EL()};
g.X.H5=function(R){return this.En.H5(R)};
g.X.P5=function(){return this.En.P5()};
g.X.nJ=function(){return this.En.nJ()};
g.X.zr=function(R,F,n){this.En.zr(R,F,n)};
g.X.Mb=function(R,F,n){this.En.Mb(R,F,n)};
g.X.e6=function(R,F){return this.En.e6(R,F)};
g.X.supports=function(R){return this.En.supports(R)};
g.X.Xw=function(){return this.En.Xw()};
g.X.isView=function(){return!0};
g.X.FS=function(){return this.En.FS()?this.isActive:!1};
g.X.isLocked=function(){return this.Vd&&!this.isActive};
g.X.fC=function(R){R=this.En.fC(R);R.vw=this.start+"-"+this.end;return R};
g.X.YW=function(){return this.En.YW()};
g.X.T7=function(){return this.En.T7()};
g.X.jT=function(){return this.En.jT()};
g.X.oG=function(){this.En.mq(this.iA);g.fG.prototype.oG.call(this)};var R6=!1;g.a(wl,g.fG);g.X=wl.prototype;g.X.appendBuffer=function(R,F,n){this.UO=!1;n&&(this.kX=n);if(R.length){var V;((V=this.Sn)==null?0:V.appendBuffer)?this.Sn.appendBuffer(R):this.Sn?this.Sn.append(R):this.w2&&this.w2.webkitSourceAppend(this.id,R)}F&&(F.isEncrypted()&&(this.e3=this.kX),F.type===3&&(this.qL=F),this.ij.push(F.KX()),this.ij.length>4&&this.ij.shift());this.N4&&(this.N4.length>=2||R.length>1048576?delete this.N4:this.N4.push(R))};
g.X.abort=function(){try{this.Sn?this.Sn.abort():this.w2&&this.w2.webkitSourceAbort(this.id)}catch(R){yhv&&g.mq(new g.UR("Error while abort the source buffer: "+R.name+", "+R.message))}this.kX=this.qL=null};
g.X.remove=function(R,F,n){this.UO=!1;var V;if((V=this.Sn)==null?0:V.remove)n&&n({b:n6(this.TI()),s:R,e:F}),this.Sn.remove(R,F)};
g.X.removeAll=function(){this.remove(this.GA(),this.lf())};
g.X.clear=function(){this.i4()||(this.abort(),this.removeAll(),this.e3=this.kX=this.qL=null,this.appendWindowStart=this.timestampOffset=0,this.lT=Fn([],[]),this.UO=!1,this.N4=cz?[]:void 0,this.nK=!0)};
g.X.GA=function(){if(R6&&this.EY)return this.appendWindowStart;var R;return((R=this.Sn)==null?void 0:R.appendWindowStart)||0};
g.X.lf=function(){var R;return((R=this.Sn)==null?void 0:R.appendWindowEnd)||0};
g.X.zc=function(R,F){this.Sn&&(R6&&this.EY?(this.appendWindowStart=R,this.Sn.appendWindowEnd=F):R>this.GA()?(this.Sn.appendWindowEnd=F,this.Sn.appendWindowStart=R):(this.Sn.appendWindowStart=R,this.Sn.appendWindowEnd=F))};
g.X.Pz=function(){return this.timestampOffset};
g.X.I2=function(R){R6?this.timestampOffset=R:this.supports(1)&&(this.Sn.timestampOffset=R)};
g.X.qC=function(){return R6?this.timestampOffset:this.supports(1)?this.Sn.timestampOffset:0};
g.X.TI=function(R){if(R===void 0?0:R)return this.UO||this.Of()||(this.lT=this.TI(!1),this.UO=!0),this.lT;try{return this.Sn?this.Sn.buffered:this.w2?this.w2.webkitSourceBuffered(this.id):Fn([0],[Infinity])}catch(F){return Fn([],[])}};
g.X.Of=function(){var R;return((R=this.Sn)==null?void 0:R.updating)||!1};
g.X.i4=function(){return this.nK};
g.X.mV=function(){return!this.nK&&this.Of()};
g.X.EL=function(){this.nK=!1};
g.X.H5=function(R){var F=R==null?void 0:R.x5;R=R==null?void 0:R.containerType;return!F&&!R||F===this.x5&&R===this.containerType};
g.X.P5=function(){return this.kX};
g.X.nJ=function(){return this.e3};
g.X.e6=function(R,F){return this.containerType!==R||this.x5!==F};
g.X.zr=function(R,F,n){if(this.containerType!==R||n&&this.e6(R,n))this.supports(4),SL()&&this.Sn.changeType(F),n&&(this.x5=n);this.containerType=R};
g.X.Mb=function(R,F,n){this.containerType&&this.e6(R,F)&&SL()&&this.Sn.changeType(n);this.containerType=R;this.x5=F};
g.X.Xw=function(){return this.qL};
g.X.isView=function(){return!1};
g.X.supports=function(R){switch(R){case 1:var F;return((F=this.Sn)==null?void 0:F.timestampOffset)!==void 0;case 0:var n;return!((n=this.Sn)==null||!n.appendBuffer);case 2:var V;return!((V=this.Sn)==null||!V.remove);case 3:var r,v;return!!(((r=this.Sn)==null?0:r.addEventListener)&&((v=this.Sn)==null?0:v.removeEventListener));case 4:return!(!this.Sn||!this.Sn.changeType);default:return!1}};
g.X.FS=function(){return!this.Of()};
g.X.isLocked=function(){return!1};
g.X.fC=function(R){R.to=this.qC();R.up=this.Of();var F,n=((F=this.Sn)==null?void 0:F.appendWindowStart)||0,V;F=((V=this.Sn)==null?void 0:V.appendWindowEnd)||Infinity;R.aw=n.toFixed(3)+"-"+F.toFixed(3);return R};
g.X.GN=function(){var R;return((R=this.Sn)==null?void 0:R.writeHead)||0};
g.X.YW=function(){for(var R={},F=0;F<this.ij.length;F++)R["s"+F]=this.ij[F];return R};
g.X.oG=function(){this.supports(3)&&(this.Sn.removeEventListener("updateend",this.handler),this.Sn.removeEventListener("error",this.handler));g.fG.prototype.oG.call(this)};
g.X.T7=function(){return this.containerType};
g.X.jT=function(){return this.N4};
var cz=!1,yhv=!1;L6.prototype.dispose=function(){if(!this.Zo()){if(this.T)try{URL.revokeObjectURL(this.jn)}catch(R){}this.U=!0}};
L6.prototype.Zo=function(){return this.U};
L6.prototype.equals=function(R){return R!==null&&R.jn===this.jn};
L6.prototype.toString=function(){return"MediaResource {"+this.jn+"}"};g.a(s8,g.G);g.X=s8.prototype;g.X.getDuration=function(){var R;return((R=this.IG)==null?void 0:R.duration)||this.UZ};
g.X.sU=function(R){try{this.IG?this.IG.duration=R:(this.UZ=R,this.w2.webkitSourceSetDuration(R))}catch(F){}};
g.X.D7=function(){try{return C6(this)==="closed"}catch(R){return!0}};
g.X.Of=function(){return!!(this.T&&this.T.Of()||this.U&&this.U.Of())};
g.X.xLH=function(){!this.Zo()&&p6(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.X.uGH=function(){this.dispose()};
g.X.Ux=function(R){if(Xn&&!this.J&&R.i4()&&R.TI().length===0){var F;Az(this.mediaElement,{l:"mswoue",sr:(F=this.mediaElement.vG)==null?void 0:F.K5()},!1);R.EL();this.i4()||(this.mediaElement.TL=!0,this.mediaElement.setCurrentTime(0))}};
g.X.clear=function(){KzJ(this,function(){});
var R;(R=this.T)==null||R.clear();var F;(F=this.U)==null||F.clear()};
g.X.i4=function(){var R,F;return((R=this.U)==null?void 0:R.i4())||((F=this.T)==null?void 0:F.i4())};
g.X.H5=function(R,F){return!!this.T&&!!this.U&&this.T.H5(F)&&this.U.H5(R)};
var Xn=!1;oi.prototype.then=function(R,F){return this.promise.then(R,F)};
oi.prototype.resolve=function(R){this.iy(R)};
oi.prototype.reject=function(R){this.xs(R)};g.a(y4,g.G);g.X=y4.prototype;g.X.Kg=function(){return this.jn};
g.X.activate=function(R){var F="";R&&(GFJ(this,R),F=R.jn);if(!this.Eq()||F)F&&this.Eq()!==F&&(this.Gz(F),delete this.U,this.N&&(this.N.reject(),delete this.N),!window.MediaSource&&window.ManagedMediaSource&&this.Ye(!(R==null||!R.T))),R&&R.T||this.load(),this.V||(this.addEventListener("volumechange",this.Jr),this.V=!0)};
g.X.Hy=function(R,F){if(this.U)if(oI9&&ai(this.U)&&!this.U.H5(R,F)){var n;Az(this,{l:"megms",sr:(n=this.vG)==null?void 0:n.K5()});Yqf(this);this.stopVideo()}else return this.IG=this.U,this.U=void 0,this.IG;R=window.MediaSource?new s8(this,new window.MediaSource,!1):window.ManagedMediaSource?new s8(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new s8(this,new window.WebKitMediaSource,!1):new s8(this,void 0,!1);this.activate(R.N);this.IG=R;this.TL=!1;return R};
g.X.playVideo=function(){var R=this;this.isEnded()&&this.seekTo(0);!this.Eq()&&this.jn&&(g.uX(Error("playVideo without src")),this.Gz(this.jn.jn),this.jn.T||this.load());var F=this.play(),n;if((n=this.vG)==null||!n.B("html5_remove_ios_7_hack_force_play")){var V;g9&&(lk||0)>=7&&(!F||((V=this.vG)==null?0:V.B("mweb_ios_allow_playback_workaround_when_ready")))&&La9(this,function(){g.ak(function(){JeN(R,R.getCurrentTime(),0)},500)})}return F};
g.X.seekTo=function(R){this.Is()>0&&(g9&&lk<4&&(R=Math.max(.1,R)),this.setCurrentTime(R))};
g.X.Md=function(){if(!this.U&&this.IG)if(this.IG.W)try{var R;Az(this,{l:"mer",sr:(R=this.vG)==null?void 0:R.K5(),rs:C6(this.IG)});this.IG.clear();this.U=this.IG;this.IG=void 0}catch(F){R=new g.UR("Error while clearing Media Source in MediaElement: "+F.name+", "+F.message),g.uX(R),this.stopVideo()}else this.stopVideo()};
g.X.stopVideo=function(){var R=this;if(!this.U){var F;(F=this.IG)==null||xOv(F);if(Cn6){if(!this.N){var n=new oi;n.then(void 0,function(){});
this.N=n;TJk&&this.pause();g.ak(function(){R.N===n&&(Hz(R),n.resolve())},200)}}else Hz(this)}};
g.X.LW=function(){var R=this.vB();return tz(R)&&this.getDuration()?vz(R,this.getCurrentTime()):0};
g.X.Ki=function(){var R=this.getDuration();return R===Infinity?1:R?this.LW()/R:0};
g.X.fC=function(){try{var R=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:n6(this.Wo(),",",3),vbu:n6(this.vB()),vbs:n6(this.Dr()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Is(),vns:""+this.CJ(),vec:""+this.T_(),vemsg:this.xk(),vvol:""+this.getVolume(),vdom:""+ +this.Nm(),vsrc:""+ +!!this.Eq(),vw:""+R.width,vh:""+R.height}}catch(F){return{}}};
g.X.hasError=function(){return this.T_()>0};
g.X.addEventListener=function(R,F){this.J.listen(R,F,!1,this);this.FU(R)};
g.X.removeEventListener=function(R,F){this.J.ZO(R,F,!1,this)};
g.X.dispatchEvent=function(R){if(this.N&&R.type==="pause")return!1;if(oI9){var F,n=((F=R.T)==null?void 0:F.timeStamp)||Infinity;F=n>performance.now()?n-Date.now()+performance.now():n;n=this.U||this.IG;if((n==null?0:n.i4())||F<=((n==null?void 0:n.Z)||0)){var V;Az(this,{l:"mede",sr:(V=this.vG)==null?void 0:V.K5(),et:R.type});return!1}if(this.TL)return Az(this,{l:"medes",et:R.type}),n&&R.type==="seeking"&&(n.Z=performance.now(),this.TL=!1),!1}return this.J.dispatchEvent(R)};
g.X.wf=function(){this.X=!1};
g.X.jZ=function(){this.X=!0;this.wA(!0)};
g.X.Jr=function(){this.X&&!this.vH()&&this.wA(!0)};
g.X.equals=function(R){return!!R&&R.Fs()===this.Fs()};
g.X.oG=function(){this.V&&this.removeEventListener("volumechange",this.Jr);Cn6&&Hz(this);g.G.prototype.oG.call(this)};
var Cn6=!1,TJk=!1,oI9=!1,MxI=!1;g.X=g.Wz.prototype;g.X.isPaused=function(){return g.E(this,4)};
g.X.isPlaying=function(){return g.E(this,8)&&!g.E(this,512)&&!g.E(this,64)&&!g.E(this,2)};
g.X.isOrWillBePlaying=function(){return g.E(this,8)&&!g.E(this,2)&&!g.E(this,1024)};
g.X.isCued=function(){return g.E(this,64)&&!g.E(this,8)&&!g.E(this,4)};
g.X.isBuffering=function(){return g.E(this,1)&&!g.E(this,2)};
g.X.isError=function(){return g.E(this,128)};
g.X.isSuspended=function(){return g.E(this,512)};
g.X.dZ=function(){return g.E(this,64)&&g.E(this,4)};
g.X.toString=function(){return"PSt."+this.state.toString(16)};
var M$={},lR=(M$.BUFFERING="buffering-mode",M$.CUED="cued-mode",M$.ENDED="ended-mode",M$.PAUSED="paused-mode",M$.PLAYING="playing-mode",M$.SEEKING="seeking-mode",M$.UNSTARTED="unstarted-mode",M$);g.a(xu,g.G);g.X=xu.prototype;g.X.kF=function(){return this.slot};
g.X.iS=function(){return this.layout};
g.X.init=function(){var R=PA(this.layout.clientMetadata,"metadata_type_video_length_seconds"),F=PA(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Sq(this.layout.NC)&&Rb(this.cI.get(),this.layout.layoutId,{CZ:F,Sr:R,listener:this});Q_N(this.zH.get(),this);this.U2()};
g.X.Ey=function(){};
g.X.release=function(){Sq(this.layout.NC)&&FZ(this.cI.get(),this.layout.layoutId);ckf(this.zH.get(),this);this.Ga()};
g.X.gt=function(){};
g.X.Ep=function(){};
g.X.startRendering=function(R){if(R.layoutId!==this.layout.layoutId){this.cU.qP(this.slot,R,new ED("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");var F=!1}else F=!0;F&&(this.Tu="rendering_start_requested",this.ym(-1),this.cD(R),this.cL(!1))};
g.X.cT=function(R,F){if(F.layoutId===this.layout.layoutId){this.Tu="rendering";this.T=this.F2.get().isMuted()||this.F2.get().getVolume()===0;this.Vc("impression");this.Vc("start");if(this.F2.get().isMuted()){Yu(this,"mute");var n;R=((n=i_(this))==null?void 0:n.muteCommands)||[];KR(this.tJ.get(),R,this.layout.layoutId)}if(this.F2.get().isFullscreen()){this.qc("fullscreen");var V;n=((V=i_(this))==null?void 0:V.fullscreenCommands)||[];KR(this.tJ.get(),n,this.layout.layoutId)}V=this.tX.get();V.N&&!V.U&&
(V.W=!1,V.U=!0,V.actionType!=="ad_to_video"&&(IV("pbs",void 0,V.actionType),g.U2("finalize_all_timelines")&&xxf(V.actionType)));this.ym(1);this.mJ(F);var r;F=((r=i_(this))==null?void 0:r.impressionCommands)||[];KR(this.tJ.get(),F,this.layout.layoutId)}};
g.X.Ue=function(R,F,n){this.W={uJ:3,DU:R==="load_timeout"?402:400,errorMessage:F.message};this.Vc("error");var V;R=((V=i_(this))==null?void 0:V.errorCommands)||[];KR(this.tJ.get(),R,this.layout.layoutId);this.cU.qP(this.slot,this.layout,F,n)};
g.X.OE=function(){if(this.Tu==="rendering"){Yu(this,"pause");var R,F=((R=i_(this))==null?void 0:R.pauseCommands)||[];KR(this.tJ.get(),F,this.layout.layoutId);this.ym(2)}};
g.X.iB=function(){if(this.Tu==="rendering"){Yu(this,"resume");var R,F=((R=i_(this))==null?void 0:R.resumeCommands)||[];KR(this.tJ.get(),F,this.layout.layoutId)}};
g.X.q4=function(R,F){F=F===void 0?!1:F;if(this.Tu==="rendering"){TL(this.LH,R*1E3,F);this.T||TL(this.LH,R*1E3,F===void 0?!1:F);var n=this.gC();n&&(n/=1E3,(R>=n*.25||F)&&this.Vc("first_quartile"),(R>=n*.5||F)&&this.Vc("midpoint"),(R>=n*.75||F)&&this.Vc("third_quartile"),this.WG.get().K.D().experiments.GH("enable_progress_command_flush_on_kabuki")?m6(this.U,R*1E3,F):m6(this.U,R*1E3,Rtj(this)?F:!1))}};
g.X.Hm=function(){var R;return((R=fb(this.Do.get(),1))==null?void 0:R.clientPlaybackNonce)||""};
g.X.v3=function(R,F){R.layoutId!==this.layout.layoutId?this.cU.qP(this.slot,R,new ED("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"):F()};
g.X.dW=function(R,F,n){if(F.layoutId===this.layout.layoutId)switch(this.Tu="not_rendering",this.layoutExitReason=void 0,(R=n!=="normal"||this.position+1===this.J)&&this.cL(R),this.fM(n),this.ym(0),n){case "abandoned":if(oB(this.LH,"impression")){var V,r=((V=i_(this))==null?void 0:V.abandonCommands)||[];KR(this.tJ.get(),r,this.layout.layoutId)}break;case "normal":V=((r=i_(this))==null?void 0:r.completeCommands)||[];KR(this.tJ.get(),V,this.layout.layoutId);break;case "skipped":var v;V=((v=i_(this))==
null?void 0:v.skipCommands)||[];KR(this.tJ.get(),V,this.layout.layoutId)}};
g.X.Nu=function(){return this.layout.layoutId};
g.X.df=function(){return this.W};
g.X.FY=function(){if(this.Tu==="rendering"){this.LH.Vc("active_view_measurable");var R,F=((R=i_(this))==null?void 0:R.activeViewMeasurableCommands)||[];KR(this.tJ.get(),F,this.layout.layoutId)}};
g.X.ly=function(){if(this.Tu==="rendering"){this.LH.Vc("active_view_fully_viewable_audible_half_duration");var R,F=((R=i_(this))==null?void 0:R.activeViewFullyViewableAudibleHalfDurationCommands)||[];KR(this.tJ.get(),F,this.layout.layoutId)}};
g.X.Kv=function(){if(this.Tu==="rendering"){this.LH.Vc("active_view_viewable");var R,F=((R=i_(this))==null?void 0:R.activeViewViewableCommands)||[];KR(this.tJ.get(),F,this.layout.layoutId)}};
g.X.Wv=function(){if(this.Tu==="rendering"){this.LH.Vc("audio_audible");var R,F=((R=i_(this))==null?void 0:R.activeViewAudioAudibleCommands)||[];KR(this.tJ.get(),F,this.layout.layoutId)}};
g.X.Pv=function(){if(this.Tu==="rendering"){this.LH.Vc("audio_measurable");var R,F=((R=i_(this))==null?void 0:R.activeViewAudioMeasurableCommands)||[];KR(this.tJ.get(),F,this.layout.layoutId)}};
g.X.cL=function(R){this.tX.get().cL(PA(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,R,this.position,this.J,!1)};
g.X.onFullscreenToggled=function(R){if(this.Tu==="rendering")if(R){this.qc("fullscreen");var F,n=((F=i_(this))==null?void 0:F.fullscreenCommands)||[];KR(this.tJ.get(),n,this.layout.layoutId)}else this.qc("end_fullscreen"),F=((n=i_(this))==null?void 0:n.endFullscreenCommands)||[],KR(this.tJ.get(),F,this.layout.layoutId)};
g.X.onVolumeChange=function(){if(this.Tu==="rendering")if(this.F2.get().isMuted()){Yu(this,"mute");var R,F=((R=i_(this))==null?void 0:R.muteCommands)||[];KR(this.tJ.get(),F,this.layout.layoutId)}else Yu(this,"unmute"),R=((F=i_(this))==null?void 0:F.unmuteCommands)||[],KR(this.tJ.get(),R,this.layout.layoutId)};
g.X.oV=function(){};
g.X.PE=function(){};
g.X.Q5=function(){};
g.X.WE=function(){};
g.X.Fd=function(){};
g.X.qc=function(R){this.LH.qc(R,!this.T)};
g.X.Vc=function(R){this.LH.Vc(R,!this.T)};g.a(Gr,xu);g.X=Gr.prototype;g.X.U2=function(){};
g.X.Ga=function(){var R=this.zH.get();R.oz===this&&(R.oz=null);this.timer.stop()};
g.X.gt=function(){this.timer.stop();xu.prototype.OE.call(this)};
g.X.Ep=function(){Fck(this);xu.prototype.iB.call(this)};
g.X.gC=function(){return PA(this.iS().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.X.wu=function(R,F){var n=this;this.v3(R,function(){n.Tu!=="rendering_stop_requested"&&(n.Tu="rendering_stop_requested",n.layoutExitReason=F,$O_(n,F),n.timer.stop())})};
g.X.M5=function(){var R=Date.now(),F=R-this.dj;this.dj=R;this.j7+=F;this.j7>=this.gC()?(this.j7=this.gC(),this.q4(this.j7/1E3,!0),dl(this,this.j7),this.QE()):(this.q4(this.j7/1E3),dl(this,this.j7))};
g.X.aV=function(R){if(this.Tu!=="not_rendering"){R=PNE(this,R);var F=this.F2.get().getPresentingPlayerType()===2;this.Tu==="rendering_start_requested"?F&&nb(R)&&this.gk():F?g.Sx(R,2)?Q2("Receive player ended event during MediaBreak",this.kF(),this.iS()):b5W(this,R):this.z7()}};
g.X.cD=function(){Z5J(this);acJ(this.F2.get());this.zH.get().oz=this;gV("pbp")||gV("pbs")||IV("pbp");gV("pbp","watch")||gV("pbs","watch")||IV("pbp",void 0,"watch");this.gk()};
g.X.mJ=function(R){this.tX.get();var F=PA(R.clientMetadata,"metadata_type_ad_placement_config").kind,n=this.position===0;R=PA(R.clientMetadata,"metadata_type_linked_in_player_layout_type");R={adBreakType:ku(F),adType:xI_(R)};var V=void 0;n?F!=="AD_PLACEMENT_KIND_START"&&(V="video_to_ad"):V="ad_to_ad";uj("ad_mbs",void 0,V);g.B8(R,V);Fck(this)};
g.X.z7=function(){this.QE()};
g.X.fM=function(){};
g.X.gG=function(){};g.a(N5,xu);g.X=N5.prototype;g.X.z7=function(){this.QE()};
g.X.aV=function(R){this.vz(R)};
g.X.U2=function(){PA(this.iS().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=PA(this.iS().clientMetadata,"metadata_type_shrunken_player_bytes_config")};
g.X.Ga=function(){PA(this.iS().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;this.f5&&this.wW.get().removeCueRange(this.f5);this.f5=void 0;var R;(R=this.hg)==null||R.dispose();this.Y9&&this.Y9.dispose()};
g.X.cD=function(R){var F=PA(R.clientMetadata,"metadata_type_ad_placement_config");F=M5(this.WG.get(),F);var n=l_(this.WG.get());if(F&&n){n=PA(R.clientMetadata,"metadata_type_preload_player_vars");var V=this.WG.get();V=g.Vn(V.K.D().experiments,"html5_preload_wait_time_secs");n&&this.Y9&&this.Y9.start(V*1E3)}n=PA(R.clientMetadata,"metadata_type_ad_video_id");V=PA(R.clientMetadata,"metadata_type_legacy_info_card_vast_extension");n&&V&&this.MP.get().K.D().bS.add(n,{Z$:V});(n=PA(R.clientMetadata,"metadata_type_sodar_extension_data"))&&
rpW(this.eJ.get(),n);CuR(this.F2.get(),!1);Z5J(this);F?(n=this.DO.get(),R=PA(R.clientMetadata,"metadata_type_player_vars"),n.K.loadVideoByPlayerVars(R,!1,2)):Dbf(this.DO.get(),PA(R.clientMetadata,"metadata_type_player_vars"));var r;(r=this.hg)==null||r.start();F||this.DO.get().K.playVideo(2)};
g.X.mJ=function(){var R;(R=this.hg)==null||R.stop();this.qm();(this.adCpn=EHj(this))||Q2("Media layout confirmed started, but ad CPN not set.");this.hX.get().b7("onAdStart",this.adCpn);this.tB=Date.now()};
g.X.gC=function(){var R;return(R=fb(this.Do.get(),2))==null?void 0:R.GG};
g.X.Z2=function(){this.LH.qc("clickthrough")};
g.X.wu=function(R,F){var n=this;this.v3(R,function(){if(n.Tu!=="rendering_stop_requested"){n.Tu="rendering_stop_requested";n.layoutExitReason=F;$O_(n,F);var V;(V=n.hg)==null||V.stop();n.Y9&&n.Y9.stop();CuR(n.F2.get(),!0);var r;((r=n.shrunkenPlayerBytesConfig)==null?0:r.shouldRequestShrunkenPlayerBytes)&&n.F2.get().As(!1)}})};
g.X.onCueRangeEnter=function(R){R!==this.f5?Q2("Received CueRangeEnter signal for unknown layout.",this.kF(),this.iS(),{cueRangeId:R}):(this.wW.get().removeCueRange(this.f5),this.f5=void 0,R=PA(this.iS().clientMetadata,"metadata_type_video_length_seconds"),this.q4(R,!0),this.Vc("complete"))};
g.X.fM=function(R){R!=="abandoned"&&this.hX.get().b7("onAdComplete");this.hX.get().b7("onAdEnd",this.adCpn)};
g.X.qm=function(){this.f5="adcompletioncuerange:"+this.iS().layoutId;this.wW.get().addCueRange(this.f5,0x7ffffffffffff,0x8000000000000,!1,this,2,2)};
g.X.onCueRangeExit=function(){};
g.X.gG=function(R){this.Tu==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&R>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.F2.get().As(!0),this.q4(R))};
g.X.q4=function(R,F){xu.prototype.q4.call(this,R,F===void 0?!1:F);F=Date.now()-this.tB;var n=R*1E3,V={contentCpn:this.Hm(),adCpn:EHj(this)};if(R-this.hF>=5){var r=F<n*.4?0:1;qO(r,"n.k_",{metadata:V,Kr:F,B7:Math.floor(n/1E3)});ZJ("NKDSTAT",r);if(F=r===0)F=PA(this.kF().clientMetadata,"metadata_type_player_bytes_slot_metadata"),F===void 0&&Q2("PlayerBytesSlotMetadata is not filled",this.kF(),this.iS()),F=(F==null?void 0:F.qf)===!0;F&&this.hX.get().b7("onAbnormalityDetected");this.hF=R}};
g.X.vz=function(R){if(this.Tu!=="not_rendering"){R=PNE(this,R);var F=this.F2.get().getPresentingPlayerType()===2;this.Tu==="rendering_start_requested"?F&&nb(R)&&this.gk():!F||g.Sx(R,2)?this.QE():b5W(this,R)}};g.a(E8,g.G);g.X=E8.prototype;g.X.kF=function(){return this.slot};
g.X.iS=function(){return this.layout};
g.X.uv=function(){};
g.X.gt=function(R,F){var n=$u(this);F.layoutId!==Pz(n,R,F)?Q2("pauseLayout for a PlayerBytes layout that is not currently active",R,F):n.gt()};
g.X.Ep=function(R,F){var n=$u(this);F.layoutId!==Pz(n,R,F)?Q2("resumeLayout for a PlayerBytes layout that is not currently active",R,F):n.Ep()};
g.X.hH=function(R,F){var n=$u(this);if(this.IV===this.Py.length-1){var V,r;Q2("Unexpected skip requested during the last sublayout",(V=$u(this))==null?void 0:V.kF(),(r=$u(this))==null?void 0:r.iS(),{requestingSlot:R,requestingLayout:F})}F.layoutId!==Pz(n,R,F)?(Q2("onSkipRequested for a PlayerBytes layout that is not currently active",n.kF(),n.iS()),R=!1):R=!0;R&&eL(this,n.kF(),n.iS(),"skipped")};
g.X.OkQ=function(R,F){Jw6(this.cq,R,F)};
g.X.cT=function(R,F){var n;(n=$u(this))==null||n.cT(R,F)};
g.X.dW=function(R,F,n){F.layoutId===this.iS().layoutId&&(this.g6=!1,tE(this.lZ(),this));var V;(V=$u(this))==null||V.dW(R,F,n)};
g.X.gG=function(R){var F;(F=$u(this))==null||F.gG(R)};
g.X.Yi=function(R,F,n){this.IV===-1&&(this.callback.cT(this.slot,this.layout),this.IV++);var V=$u(this);V?V.Ue(R,F,n):Q2("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.IV),layoutId:this.iS().layoutId})};
g.X.onFullscreenToggled=function(R){var F;(F=$u(this))==null||F.onFullscreenToggled(R)};
g.X.oV=function(R){var F;(F=$u(this))==null||F.oV(R)};
g.X.Q5=function(R){var F;(F=$u(this))==null||F.Q5(R)};
g.X.onVolumeChange=function(){var R;(R=$u(this))==null||R.onVolumeChange()};
g.X.init=function(){var R=PA(this.iS().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");R&&(R.current=this);if(this.Py.length<1)throw new Z("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Py.length)});if(R=PA(this.iS().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))R.current=this;R=g.m(this.Py);for(var F=R.next();!F.done;F=R.next())F=F.value,F.init(),xME(this.cq,this.slot,F.iS()),kMV(this.cq,this.slot,F.iS())};
g.X.release=function(){var R=PA(this.iS().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");R&&(R.current=null);if(R=PA(this.iS().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))R.current=null;R=g.m(this.Py);for(var F=R.next();!F.done;F=R.next())F=F.value,Y$J(this.cq,this.slot,F.iS()),F.release()};
g.X.v3=function(R){return R.layoutId!==this.iS().layoutId?(this.callback.qP(this.kF(),R,new ED("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.iS().layoutId+("and LayoutType: "+this.iS().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
g.X.yy=function(){this.F2.get().addListener(this);fR(this.lZ(),this)};
g.X.startRendering=function(R){this.v3(R)&&(this.yy(),OZf(this.tX.get()),kZf(this.WG.get())||acJ(this.F2.get()),this.IV===-1&&ZD(this,this.IV+1))};
g.X.wu=function(R,F){var n=this;this.g6=!0;this.IV===this.Py.length?this.callback.dW(this.slot,this.layout,F):(R=$u(this),R.wu(R.iS(),F),this.lR=function(){n.callback.dW(n.slot,n.layout,F)});
this.F2.get().K.uy();Dbf(this.DO.get(),{});R=eO(this.F2.get(),1);R.isPaused()&&!g.E(R,2)&&this.F2.get().playVideo();this.F2.get().removeListener(this);this.g6&&zt9(this)};
g.X.aV=function(R){if(R.state.isError()){var F,n;this.Yi((F=R.state.z_)==null?void 0:F.errorCode,new ED("There was a player error during this media layout.",{playerErrorCode:(n=R.state.z_)==null?void 0:n.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(F=$u(this))&&F.aV(R)};
g.X.PE=function(){};
g.X.V7=function(){};
g.X.Dz=function(){};
g.X.vt=function(){};
g.X.ML=function(){};
g.X.nk=function(){};
g.X.C5=function(){};
g.X.Ia=function(){};
g.X.Wt=function(){};
g.X.jE=function(){};
g.X.rV=function(){};
g.X.WE=function(){};
g.X.Fd=function(){};
g.X.kIH=function(R,F,n){eL(this,R,F,n)};
g.X.ikG=function(R,F){eL(this,R,F,"error")};g.a(nf,g.G);g.X=nf.prototype;g.X.kF=function(){return this.lI.kF()};
g.X.iS=function(){return this.lI.iS()};
g.X.init=function(){var R=PA(this.iS().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");R&&(R.current=this);this.U2()};
g.X.U2=function(){this.lI.init()};
g.X.release=function(){var R=PA(this.iS().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");R&&(R.current=null);this.Ga()};
g.X.Ga=function(){this.lI.release()};
g.X.gt=function(){this.lI.gt()};
g.X.Ep=function(){this.lI.Ep()};
g.X.hH=function(R,F){Q2("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.kF(),this.iS(),{requestingSlot:R,requestingLayout:F})};
g.X.startRendering=function(R){R.layoutId!==this.iS().layoutId?this.callback.qP(this.kF(),R,new ED("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.iS().layoutId+("and LayoutType: "+this.iS().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.F2.get().addListener(this),fR(this.lZ(),this),OZf(this.tX.get()),kZf(this.WG.get())||acJ(this.F2.get()),this.lI.startRendering(R))};
g.X.wu=function(R,F){this.g6=!0;this.lI.wu(R,F);this.F2.get().K.uy();Dbf(this.DO.get(),{});R=eO(this.F2.get(),1);R.isPaused()&&!g.E(R,2)&&this.F2.get().playVideo();this.F2.get().removeListener(this);this.g6&&this.lI.z7()};
g.X.cT=function(R,F){this.lI.cT(R,F)};
g.X.dW=function(R,F,n){F.layoutId===this.iS().layoutId&&(this.g6=!1,tE(this.lZ(),this));this.lI.dW(R,F,n);F.layoutId===this.iS().layoutId&&RU(this.tX.get())};
g.X.gG=function(R){this.lI.gG(R)};
g.X.aV=function(R){if(R.state.isError()){var F,n;this.Yi((F=R.state.z_)==null?void 0:F.errorCode,new ED("There was a player error during this media layout.",{playerErrorCode:(n=R.state.z_)==null?void 0:n.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.lI.aV(R)};
g.X.Yi=function(R,F,n){this.lI.Ue(R,F,n)};
g.X.onFullscreenToggled=function(R){this.lI.onFullscreenToggled(R)};
g.X.oV=function(R){this.lI.oV(R)};
g.X.Q5=function(R){this.lI.Q5(R)};
g.X.onVolumeChange=function(){this.lI.onVolumeChange()};
g.X.PE=function(){};
g.X.V7=function(){};
g.X.Dz=function(){};
g.X.vt=function(){};
g.X.ML=function(){};
g.X.nk=function(){};
g.X.C5=function(){};
g.X.Ia=function(){};
g.X.Wt=function(){};
g.X.jE=function(){};
g.X.rV=function(){};
g.X.WE=function(){};
g.X.Fd=function(){};g.X=VI.prototype;g.X.kF=function(){return this.slot};
g.X.iS=function(){return this.layout};
g.X.init=function(){this.Sl.get().addListener(this);this.F2.get().addListener(this);var R=PA(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var F=PA(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.J){var n=this.Sl.get().rA.slice(-1)[0];n!==void 0&&(R=n.startSecs*1E3,F=(n.startSecs+n.FP)*1E3)}this.Ey(R,F);var V;n=(V=this.Do.get().c5)==null?void 0:V.clientPlaybackNonce;V=this.layout.gg.adClientDataEntry;rI(this.zH.get(),{daiStateTrigger:{filledAdsDurationMs:F-R,contentCpn:n,
adClientData:V}});var r=this.Sl.get();r=cse(r.N,R,F);r!==null&&(rI(this.zH.get(),{daiStateTrigger:{filledAdsDurationMs:r-R,contentCpn:n,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:V}}),this.SB.get().kQ(r,F))};
g.X.release=function(){this.Ga();this.Sl.get().removeListener(this);this.F2.get().removeListener(this)};
g.X.startRendering=function(){this.cD();this.callback.cT(this.slot,this.layout)};
g.X.wu=function(R,F){this.KM(F);this.driftRecoveryMs!==null&&(vg(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(w8J(this)-PA(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.F2.get().K.L2()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.dW(this.slot,this.layout,F)};
g.X.RO=function(){return!1};
g.X.BS=function(R){var F=PA(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),n=PA(this.layout.clientMetadata,"metadata_type_layout_exit_ms");R*=1E3;if(F<=R&&R<n){var V;rI(this.zH.get(),{daiStateTrigger:{filledAdsDurationMs:R-F,contentCpn:(V=this.Do.get().c5)==null?void 0:V.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.gg.adClientDataEntry}});this.SB.get().kQ(R,n)}};
g.X.gG=function(R){this.RF(R);R=fE(this.F2.get(),2,!0);if(Uo(this.W.get(),this.layout.layoutId)){var F=PA(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),n=this.driftRecoveryMs;if(!(n===null||R*1E3<F+n)){this.driftRecoveryMs=null;var V=w8J(this),r=this.F2.get().K.L2(),v=Math.min(R+r,V/1E3);v<=R?vg(this,{driftRecoveryMs:n.toString(),breakDurationMs:Math.round(V-F).toString(),driftFromHeadMs:Math.round(r*1E3).toString()}):(vg(this,{driftRecoveryMs:n.toString(),breakDurationMs:Math.round(V-
F).toString(),driftFromHeadMs:Math.round(r*1E3).toString(),appliedDriftRecoveryMs:Math.round(R*1E3-F).toString(),destinationMs:Math.round(v*1E3-F).toString()}),this.F2.get().K.seekTo(v,void 0,void 0,1))}}};
g.X.oV=function(){};
g.X.PE=function(){};
g.X.Q5=function(){};
g.X.onVolumeChange=function(){};
g.X.WE=function(){};
g.X.Fd=function(){};g.a(ff,VI);g.X=ff.prototype;g.X.Ey=function(R,F){this.Do.get().addListener(this);if(this.J){var n=R,V=0,r=[];R=this.N.slice();R.sort(function(v,f){return PA(v.iS().clientMetadata,"metadata_type_media_sub_layout_index")-PA(f.iS().clientMetadata,"metadata_type_media_sub_layout_index")});
R.forEach(function(v){var f=n,z=PA(v.iS().clientMetadata,"metadata_type_video_length_seconds"),q=Math.min(f+z*1E3,F);n=q;V++;r.push(z);v.Ey(f,q)})}else this.N.forEach(function(v){v.init()});
this.U!=null&&tA(this.zH.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.U)};
g.X.Ga=function(){this.Do.get().removeListener(this);this.T=null;this.N.forEach(function(R){R.release()})};
g.X.cD=function(){if(this.T)Q2("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.U)});else{var R,F=(R=this.Do.get().c5)==null?void 0:R.layoutId;LcW(this,F)}};
g.X.KM=function(R){var F,n,V,r;(V=this.T)==null||(r=V.gr)==null||r.wu((F=this.T)==null?void 0:(n=F.gr)==null?void 0:n.iS(),R);this.T=null};
g.X.uv=function(R){var F=R.videoId;R=R.layoutId;if(F==="nPpU29QrbiU"){var n,V;tA(this.zH.get(),"ads_ssmplra_opdcs","vid."+F+";lid."+this.layout.layoutId+";smlid."+this.U+";slrs."+!!this.T+";slrslid."+((n=this.T)==null?void 0:(V=n.gr)==null?void 0:V.iS().layoutId))}if(this.T){var r;if(((r=this.T.gr)==null?void 0:r.iS().layoutId)===R)Q2("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:R});else{var v,f;(f=this.T.gr)==null||f.wu((v=this.T.gr)==null?void 0:v.iS(),"normal");
LcW(this,R)}}};
g.X.RF=function(){};
g.X.aV=function(){};
g.X.onFullscreenToggled=function(){};g.X=jVN.prototype;g.X.kF=function(){return this.slot};
g.X.iS=function(){return this.layout};
g.X.Ey=function(R,F){var n=this;PA(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.Zh=sV_(this.slot,this.layout,PA(this.layout.clientMetadata,"metadata_type_player_vars"),R,F,PA(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.SB.get(),this.r$.get(),function(){var V=Object,r=V.assign,v=wI(n.layout);var f=PA(n.slot.clientMetadata,"metadata_type_fulfilled_layout")||n.slot.fulfilledLayout;var z=PA(f.clientMetadata,"metadata_type_sub_layouts")||
f.q7;f=Object.assign({},wI(f),{adPlacementConfig:PA(f.clientMetadata,"metadata_type_ad_placement_config"),subLayouts:(z||[]).map(wI)});return r.call(V,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},v,{compositeLayout:f,hasSurveyOverlay:MI(n.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:PA(n.layout.clientMetadata,"metadata_type_survey_overlay")})},this.zH.get());
this.F2.get().addListener(this);R=PA(this.layout.clientMetadata,"metadata_type_video_length_seconds");F=PA(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Sq(this.layout.NC)&&Rb(this.cI.get(),this.layout.layoutId,{CZ:F,Sr:R,listener:this});xME(this.callback,this.slot,this.layout);kMV(this.callback,this.slot,this.layout)};
g.X.init=function(){var R=PA(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),F=PA(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.Ey(R,F)};
g.X.release=function(){this.F2.get().removeListener(this);Sq(this.layout.NC)&&FZ(this.cI.get(),this.layout.layoutId);this.WG.get();Y$J(this.callback,this.slot,this.layout);if(M$_(this.WG.get())){if(this.f5){var R;tA(this.zH.get(),"ads_ccru","acpn."+((R=fb(this.Do.get(),2))==null?void 0:R.clientPlaybackNonce)+";cr."+this.f5);this.wW.get().removeCueRange(this.f5)}this.f5=void 0}};
g.X.startRendering=function(){var R=this;MI(this.layout.clientMetadata,"metadata_type_survey_overlay")&&tA(this.zH.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.Tu)Q2("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:MI(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:PA(this.layout.clientMetadata,"metadata_type_survey_overlay")});else{this.Tu={bG:null,S6:!1};this.T=!1;if(iZ9(this.WG.get())){var F;this.adCpn=
(F=fb(this.Do.get(),2))==null?void 0:F.clientPlaybackNonce}this.WG.get().K.D().experiments.GH("html5_disable_sodar_for_tvhtml5")||p8R(this.slot,this.layout,this.eJ.get());Sq(this.layout.NC)&&bZR(this.cI.get(),this.layout.layoutId);this.LH.Vc("start");if(so(this.WG.get())){F=eO(this.F2.get());var n=PA(this.layout.clientMetadata,"metadata_type_video_length_seconds"),V=fE(this.F2.get(),2,!1);X8N(this.LH,this.Tu.bG,F,n,V,function(){return void htv(R,"teois")},fb(this.Do.get(),1).iZ)}Jw6(this.callback,
this.slot,this.layout);
M$_(this.WG.get())&&(this.adCpn||Q2("Media layout confirmed started, but ad CPN not set."),this.qm());MI(this.layout.clientMetadata,"metadata_type_survey_overlay")&&tA(this.zH.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.X.wu=function(R,F){var n=this;if(this.Tu){if(so(this.WG.get()))if(this.Zh===null)Q2("Unexpected media sub layout exited without a timeline playback ID");else{R=PA(this.layout.clientMetadata,"metadata_type_video_length_seconds");var V=tV(this.F2.get(),this.Zh);iZ9(this.WG.get())&&this.adCpn===void 0&&Q2("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:PA(this.layout.clientMetadata,"metadata_type_content_cpn")});mzk(this.LH,V,this.adCpn);qw(this.LH,null,this.Tu.bG,R,V,fb(this.Do.get(),
1).iZ,function(r){return void H2e(n,r,"fue")},iZ9(this.WG.get()),M$_(this.WG.get()))}this.Tu=null;
GMW(this.callback,this.slot,this.layout,this.T&&this.WG.get().K.D().B("dai_layout_log_skip_exit_reason")?"skipped":F)}else Q2("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.X.onCueRangeEnter=function(R){if(R!==this.f5)Q2("Received CueRangeEnter signal for unknown layout.",this.kF(),this.iS(),{cueRangeId:R});else if(this.adCpn===void 0&&Q2("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:PA(this.layout.clientMetadata,"metadata_type_content_cpn")}),oB(this.LH,"impression")&&so(this.WG.get()))if(this.Zh===null)Q2("Unexpected cue range enter without a timeline playback ID");else{var F=tV(this.F2.get(),this.Zh),n;tA(this.zH.get(),"ads_ccre","cpn."+
PA(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((n=fb(this.Do.get(),2))==null?void 0:n.clientPlaybackNonce)+";cr."+R+";cts."+F);this.wW.get().removeCueRange(this.f5);this.f5=void 0;this.LH.Vc("complete")}};
g.X.onCueRangeExit=function(){};
g.X.Ue=function(){};
g.X.z7=function(){};
g.X.gG=function(R){var F=this;if(this.Tu){if(oB(this.LH,"impression")){var n=eO(this.F2.get()),V=PA(this.layout.clientMetadata,"metadata_type_video_length_seconds");QI(this.LH,n,R,this.Tu.bG,V,function(r){return void H2e(F,r,"tpaqe")})}this.Tu.bG=R}};
g.X.aV=function(R){var F=this;if(this.Tu){so(this.WG.get())||this.Tu.S6||(this.Tu.S6=!0,R=new g.cP(R.state,new g.Wz));var n=PA(this.layout.clientMetadata,"metadata_type_video_length_seconds"),V=fE(this.F2.get(),2,!1);zT(this.LH,this.Tu.bG,R,n,V,fb(this.Do.get(),1).iZ,!so(this.WG.get()),function(){return void htv(F,"teosc")})}};
g.X.onFullscreenToggled=function(R){AsE(this.LH,R)};
g.X.oV=function(){};
g.X.PE=function(){};
g.X.Q5=function(){};
g.X.hH=function(R,F){var n;R=this.zH.get();var V="ti."+oB(this.LH,"impression")+";ts."+oB(this.LH,"skip")+";hp.",r;var v=!((r=this.LH.N.get("skip"))==null||!r.length);tA(R,"ads_dsr",V+v+";cpn."+PA(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((n=fb(this.Do.get(),2))==null?void 0:n.clientPlaybackNonce)+";sl."+(PA(F.clientMetadata,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));oB(this.LH,"impression")&&this.LH.Vc("skip");F=fb(this.Do.get(),1).iZ;this.T=!0;
this.SB.get().AG(F)||(this.T=!1,Q2("Unexpected failure to skip a server stitched ad",this.slot,this.layout))};
g.X.onVolumeChange=function(){};
g.X.cT=function(){};
g.X.dW=function(){};
g.X.gt=function(){};
g.X.Ep=function(){};
g.X.Z2=function(){aa9(this.LH)};
g.X.FY=function(){CjN(this.LH)};
g.X.ly=function(){TVj(this.LH)};
g.X.Kv=function(){oyj(this.LH)};
g.X.Wv=function(){ys9(this.LH)};
g.X.Pv=function(){UTR(this.LH)};
g.X.WE=function(){};
g.X.Fd=function(){};
g.X.qm=function(){if(!this.f5){this.f5="adcompletioncuerange:"+this.iS().layoutId;this.wW.get().addCueRange(this.f5,0x7ffffffffffff,0x8000000000000,!1,this,2,2,this.adCpn);var R;tA(this.zH.get(),"ads_ccr","acpn."+((R=fb(this.Do.get(),2))==null?void 0:R.clientPlaybackNonce)+";cr."+this.f5)}};g.a(S9,VI);g.X=S9.prototype;
g.X.Ey=function(){var R=this;PA(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;var F=PA(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),n=PA(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.Zh=sV_(this.slot,this.layout,PA(this.layout.clientMetadata,"metadata_type_player_vars"),F,n,PA(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.SB.get(),this.r$.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:F,
exitMs:n,adPlacementConfig:PA(R.layout.clientMetadata,"metadata_type_ad_placement_config")}},this.zH.get());
var V=PA(this.layout.clientMetadata,"metadata_type_video_length_seconds"),r=PA(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Sq(this.layout.NC)&&Rb(this.cI.get(),this.layout.layoutId,{CZ:r,Sr:V,listener:this})};
g.X.Ga=function(){Sq(this.layout.NC)&&FZ(this.cI.get(),this.layout.layoutId)};
g.X.cD=function(){var R=this;if(this.Tu)Q2("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.Tu={bG:null,S6:!1},p8R(this.slot,this.layout,this.eJ.get()),this.LH.Vc("start"),so(this.WG.get())){var F=eO(this.F2.get()),n=PA(this.layout.clientMetadata,"metadata_type_video_length_seconds"),V=fE(this.F2.get(),2,!1);X8N(this.LH,this.Tu.bG,F,n,V,function(){return void Wce(R,"teois")},!1)}};
g.X.KM=function(){var R=this;if(this.Tu){if(so(this.WG.get()))if(this.Zh===null)Q2("Unexpected single media layout exited without a timeline playback ID");else{var F=PA(this.layout.clientMetadata,"metadata_type_video_length_seconds"),n=tV(this.F2.get(),this.Zh);mzk(this.LH,n);qw(this.LH,null,this.Tu.bG,F,n,!1,function(V){return void uy6(R,V,"fue")})}this.Tu=null}else Q2("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.X.RF=function(R){var F=this;if(this.Tu){if(oB(this.LH,"impression")){var n=eO(this.F2.get()),V=PA(this.layout.clientMetadata,"metadata_type_video_length_seconds");QI(this.LH,n,R,this.Tu.bG,V,function(r){return void uy6(F,r,"tpaqe")})}this.Tu.bG=R}};
g.X.aV=function(R){var F=this;if(this.Tu){so(this.WG.get())||this.Tu.S6||(this.Tu.S6=!0,R=new g.cP(R.state,new g.Wz));var n=PA(this.layout.clientMetadata,"metadata_type_video_length_seconds"),V=fE(this.F2.get(),2,!1);zT(this.LH,this.Tu.bG,R,n,V,!1,!so(this.WG.get()),function(){return void Wce(F,"teosc")})}};
g.X.onFullscreenToggled=function(R){AsE(this.LH,R)};
g.X.Z2=function(){aa9(this.LH)};
g.X.FY=function(){CjN(this.LH)};
g.X.ly=function(){TVj(this.LH)};
g.X.Kv=function(){oyj(this.LH)};
g.X.Wv=function(){ys9(this.LH)};
g.X.Pv=function(){UTR(this.LH)};Lf.prototype.build=function(R,F,n,V){if(MI(n.clientMetadata,"metadata_type_dai")){var r=PA(V.clientMetadata,"metadata_type_ad_placement_config");Yl(V,{N8:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),xq:["LAYOUT_TYPE_MEDIA"]})&&r!==void 0?(r=new py(V.NC,this.zH,r,V.layoutId,null),r=new S9(R,n,V,this.Do,this.SB,this.r$,this.Sl,this.F2,r,this.zH,this.eJ,
this.T,this.cI,this.WG)):r=null;if(r)return r;a:{var v,f=(v=V.q7)!=null?v:PA(V.clientMetadata,"metadata_type_sub_layouts");r=PA(V.clientMetadata,"metadata_type_ad_placement_config");if(Yl(V,{N8:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],xq:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&f!==void 0&&r!==void 0){v=[];f=g.m(f);for(var z=f.next();!z.done;z=f.next()){z=z.value;var q=PA(z.clientMetadata,"metadata_type_media_sub_layout_index");if(!Yl(z,{N8:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),
xq:["LAYOUT_TYPE_MEDIA"]})||q===void 0){R=null;break a}q=new py(z.NC,this.zH,r,z.layoutId,q);v.push(new jVN(F,n,z,this.SB,q,this.F2,this.r$,this.cI,this.eJ,this.WG,this.zH,this.Do,this.wW))}F=new py(V.NC,this.zH,r,V.layoutId);R=new ff(R,n,V,this.Do,this.SB,this.Sl,this.F2,F,this.zH,this.T,v)}else R=null}if(R)return R}else if(R=QVj(R,F,n,V,this.lZ,this.P_,this.wp,this.zH,this.cI,this.eJ,this.DO,this.Do,this.F2,this.Q7,this.wW,this.tX,this.hX,this.tJ,this.MP,this.WG,this.SB,this.context))return R;throw new ED("Unsupported layout with type: "+
V.layoutType+" and client metadata: "+by(V.clientMetadata)+" in PlayerBytesLayoutRenderingAdapterFactory.");};sk.prototype.build=function(R,F,n,V){if(R=QVj(R,F,n,V,this.lZ,this.P_,this.wp,this.zH,this.cI,this.eJ,this.DO,this.Do,this.F2,this.Q7,this.wW,this.tX,this.hX,this.tJ,this.MP,this.WG,this.SB,this.context))return R;throw new ED("Unsupported layout with type: "+V.layoutType+" and client metadata: "+by(V.clientMetadata)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.a(BVE,v5);g.a(pf,zL);pf.prototype.startRendering=function(R){var F=qy(this.LH),n={adsClientData:this.layout.gg};this.T.push(new BVE(PA(this.layout.clientMetadata,"metadata_type_valid_survey_text_interstitial_renderer"),F,this.iS().layoutId,n));zL.prototype.startRendering.call(this,R);this.callback.cT(this.slot,R)};
pf.prototype.fk=function(R,F){F!==this.layout.layoutId||R!=="survey-interstitial"&&R!=="button"||((R=PA(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?R.hH(this.slot,this.layout):Q2("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
pf.prototype.oG=function(){zL.prototype.oG.call(this)};var AA=new g.QX(320,63);g.a(TT,v5);g.a(oU,zL);g.X=oU.prototype;g.X.gG=function(){};
g.X.aV=function(){};
g.X.onFullscreenToggled=function(){};
g.X.oV=function(R){R&&Oo(this.J,this.layout)};
g.X.PE=function(){};
g.X.Q5=function(R){var F=Cf(this.layout);if(this.X=aU(R,AkV(this.F2.get())))F.onErrorCommand&&this.tJ.get().executeCommand(F.onErrorCommand,this.layout.layoutId),Oo(this.J,this.layout)};
g.X.onVolumeChange=function(){};
g.X.Nu=function(){return this.iS().layoutId};
g.X.df=function(){return this.X};
g.X.fk=function(R){this.W.fk(R);R==="in_video_overlay_close_button"&&Oo(this.J,this.layout)};
g.X.uf=function(R){R==="invideo-overlay"&&Oo(this.J,this.layout)};
g.X.Gl=function(){this.W.Gl()};
g.X.startRendering=function(R){zL.prototype.startRendering.call(this,R);this.callback.cT(this.slot,R);this.Z.ea=this};
g.X.wu=function(R,F){zL.prototype.wu.call(this,R,F);ES(this.Z,this)};
g.X.init=function(){zL.prototype.init.call(this);Q_N(this.zH.get(),this);this.F2.get().addListener(this);this.T.push(new TT(Cf(this.layout),qy(this.LH),this.layout.layoutId,{adsClientData:this.layout.gg}))};
g.X.release=function(){zL.prototype.release.call(this);this.F2.get().removeListener(this);ckf(this.zH.get(),this)};
g.X.WE=function(){};
g.X.Fd=function(){};g.a(yI,zL);g.X=yI.prototype;g.X.init=function(){zL.prototype.init.call(this);Q_N(this.zH.get(),this);this.F2.get().addListener(this);this.T.push(new TT(Cf(this.layout),qy(this.LH),this.layout.layoutId,{adsClientData:this.layout.gg}))};
g.X.Gl=function(){this.W.Gl()};
g.X.startRendering=function(R){zL.prototype.startRendering.call(this,R);this.callback.cT(this.slot,R);this.Z.ea=this};
g.X.wu=function(R,F){zL.prototype.wu.call(this,R,F);ES(this.Z,this)};
g.X.fk=function(R){this.W.fk(R);R==="in_video_overlay_close_button"&&Oo(this.J,this.layout)};
g.X.nU=function(R){if(R==="invideo-overlay"){R=idW(this.V,this.layout);R=g.m(R);for(var F=R.next();!F.done;F=R.next())F.value.stop()}};
g.X.uf=function(R){R==="invideo-overlay"&&Oo(this.J,this.layout)};
g.X.M9=function(R){if(R==="invideo-overlay"){R=idW(this.V,this.layout);R=g.m(R);for(var F=R.next();!F.done;F=R.next())F.value.start()}};
g.X.gG=function(){};
g.X.aV=function(){};
g.X.onFullscreenToggled=function(){};
g.X.oV=function(R){R&&Oo(this.J,this.layout)};
g.X.PE=function(){};
g.X.Q5=function(R){var F=Cf(this.layout),n=F.contentSupportedRenderer.imageOverlayAdContentRenderer,V=AkV(this.F2.get());a:{n=n.image;n=n===void 0?null:n;if(n!=null&&(n=n.thumbnail,n!=null&&n.thumbnails!=null&&n.thumbnails.length!=0&&n.thumbnails[0].width!=null&&n.thumbnails[0].height!=null)){n=new g.QX(n.thumbnails[0].width||0,n.thumbnails[0].height||0);break a}n=new g.QX(0,0)}if(this.X=aU(R,V,n))F.onErrorCommand&&this.tJ.get().executeCommand(F.onErrorCommand,this.layout.layoutId),Oo(this.J,this.layout)};
g.X.onVolumeChange=function(){};
g.X.Nu=function(){return this.iS().layoutId};
g.X.df=function(){return this.X};
g.X.release=function(){zL.prototype.release.call(this);this.F2.get().removeListener(this);ckf(this.zH.get(),this)};
g.X.WE=function(){};
g.X.Fd=function(){};Uk.prototype.fk=function(R){R==="ad-info-hover-text-button"&&((this.T=this.F2.get().Kx(1))||this.F2.get().pauseVideo())};
Uk.prototype.Gl=function(){this.T||this.F2.get().resumeVideo(1)};g.a(IaN,v5);g.a(j9,zL);g.X=j9.prototype;g.X.init=function(){zL.prototype.init.call(this);this.F2.get().addListener(this)};
g.X.startRendering=function(R){var F=PA(this.layout.clientMetadata,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.T.push(new IaN(F,this.layout.layoutId,{adsClientData:this.layout.gg}));zL.prototype.startRendering.call(this,R);this.callback.cT(this.slot,R)};
g.X.cT=function(){};
g.X.fk=function(R,F){F!==this.layout.layoutId||R!=="ad-info-icon-button"&&R!=="ad-info-dialog-close-button"||((F=PA(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?R==="ad-info-icon-button"?F.gt(this.slot,this.layout):R==="ad-info-dialog-close-button"&&F.Ep(this.slot,this.layout):Q2("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:R}))};
g.X.Q5=function(R){R.width<450&&Oo(this.J,this.layout)};
g.X.onVolumeChange=function(){};
g.X.gG=function(){};
g.X.onFullscreenToggled=function(){};
g.X.oV=function(){};
g.X.PE=function(){};
g.X.aV=function(){};
g.X.WE=function(){};
g.X.Fd=function(){};
g.X.oG=function(){zL.prototype.oG.call(this)};
g.X.release=function(){zL.prototype.release.call(this);this.F2.get().removeListener(this)};Kcj.prototype.build=function(R,F,n,V){if(F=FR(R,n,V,this.JX,this.F2,this.zH,this.J,this.T,this.WG))return F;if(Yl(V,O2W()))return new yI(n,V,this.zH,this.cI,this.JX,R,this.U,this.N,this.F2,this.tJ,this.WG,this.T,new Uk(this.F2));if(Yl(V,gyN()))return new oU(n,V,this.zH,this.cI,this.JX,R,this.U,this.F2,this.tJ,this.WG,this.T,new Uk(this.F2));if(Yl(V,{N8:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],xq:["LAYOUT_TYPE_SURVEY"]}))return new j9(n,V,R,this.JX,this.U,this.F2,this.WG);if(Yl(V,
{N8:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],xq:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new pf(n,V,R,this.JX,this.zH);if(Yl(V,qaE()))return new $l(n,V,R,this.JX,this.F2,this.WG);throw new ED("Unsupported layout with type: "+V.layoutType+" and client metadata: "+by(V.clientMetadata)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};DTN.prototype.build=function(R,F,n,V){if(F=FR(R,n,V,this.JX,this.F2,this.zH,this.J,this.T,this.WG))return F;if(Yl(V,O2W()))return new yI(n,V,this.zH,this.cI,this.JX,R,this.U,this.N,this.F2,this.tJ,this.WG,this.T,new Uk(this.F2));if(Yl(V,gyN()))return new oU(n,V,this.zH,this.cI,this.JX,R,this.U,this.F2,this.tJ,this.WG,this.T,new Uk(this.F2));throw new ED("Unsupported layout with type: "+V.layoutType+" and client metadata: "+by(V.clientMetadata)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");
};g.a(Hg,Ny);Hg.prototype.startRendering=function(R){Ny.prototype.startRendering.call(this,R);if(R.renderingContent?rnR(R,fb(this.Do.get(),2)||void 0):PA(this.layout.clientMetadata,"metadata_ad_video_is_listed"))R=R.renderingContent?V8I(R,fb(this.Do.get(),2)||void 0):PA(this.layout.clientMetadata,"metadata_type_ad_info_ad_metadata"),this.SU.get().K.HG("onAdMetadataAvailable",R)};xTe.prototype.build=function(R,F,n,V){if(Yl(V,i2j())||V.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.A(V.renderingContent,bJ)!==void 0)return new Hg(R,n,V,this.JX,this.F2,this.zH,this.U,this.SU,this.T,this.Do);throw new ED("Unsupported layout with type: "+V.layoutType+" and client metadata: "+by(V.clientMetadata)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};kfR.prototype.build=function(R,F,n,V){if(Yl(V,i2j()))return new Hg(R,n,V,this.JX,this.F2,this.zH,this.U,this.SU,this.T,this.Do);if(R=FR(R,n,V,this.JX,this.F2,this.zH,this.U,this.T,this.WG))return R;throw new ED("Unsupported layout with type: "+V.layoutType+" and client metadata: "+by(V.clientMetadata)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};Ek.prototype.clone=function(R){var F=this;return new Ek(function(){return F.triggerId},R)};$p.prototype.clone=function(R){var F=this;return new $p(function(){return F.triggerId},R)};Pg.prototype.clone=function(R){var F=this;return new Pg(function(){return F.triggerId},R)};bC.prototype.clone=function(R){var F=this;return new bC(function(){return F.triggerId},R)};Zf.prototype.clone=function(R){var F=this;return new Zf(function(){return F.triggerId},R)};e9.prototype.clone=function(R){var F=this;return new e9(function(){return F.triggerId},R)};g.a(Dq,g.G);var VeR={WVdDU7FEFNo:15,"c-6Sb-muKCY":6,"O9f9wIR-UI8":6,"JNL-wFYNAP0":15,dLYcTkdHPNA:15,ZdVP0_LJZUE:15,VXcUXyDNdEI:15,VGQ8C9uQc_I:15,"o2HqYt-U7YU":15,rwNqPgKVbus:15,ATgzDto2XcY:15,attyPCCLlC4:15,w3aSYOeWyYU:15,wZMtuR2zzRA:30,e3TvPYADCQA:15,eMOw2R8yUHg:15,"6lLyZenufEY":15,"4q_FdWfUxR4":15,"3NOPsNQV0zY":15,IcEJuv4zMSI:15,"8Eo9vaW_CqY":15,O0DMDUDJK88:15,wnboazT1Lio:15,ZfRdOlbXmog:5,"X-sKfjrb7uc":15,RCVZbiJbZA0:6,"7syqtZsUUwY":15,OrlZSFgzFVA:15,ulrgBGVttFg:15,"1qC82K99ecI":15,E9lmhFAK78w:30,QSJFJNk_VSg:15,
"i-8wX-g3FjI":30,vgSkhTaAP6U:15,iqslKcmG9zA:15,VkNDKDDDSWA:15,"2-Sj3oWDJCk":6,z4zsVPqUVnc:15,xKc7UMf8V4s:15,wwrWuIYPaDE:6,"_5NVge-Kmpk":6,"eUdn6DcJx-4":6,gxvBLc_C6Io:15,O40oPma0obU:15,"6xXRRLxj3DA":15,T5sMvex24Os:15,"74ccAT84jIY":15,"YTlgTC-KM2U":15,XxcipO9EBWc:15,zI7xwG4M62k:15,XrUrvpDMmOk:15,H5KIgG21WjA:15,R94pfM1wcac:6,"TD0-7fMqNOE":5,_evnWGoDAT8:15,Wov4GF3oUSM:6,DKcQEuGWmp4:15,kp4aH06VQBg:15,CI3LdgGodUw:15,lcQzcg6e73Y:15};var V5={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};var f9={yGG:1,T$H:2,U72:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.a(LB,g.G);g.X=LB.prototype;g.X.zS=function(R){if(this.T)Q2("Unexpected multiple fetch instructions for the current content");else{this.T=R;R=g.m(this.Sl.get().rA);for(var F=R.next();!F.done;F=R.next())Xc(this,this.T,F.value)}};
g.X.RO=function(R){if(!this.T){if(!this.WG.get().K.D().B("high_ccv_client_side_caching_h5")){var F;(F=this.SB)==null||F.get().wI(R.identifier)}tA(this.zH.get(),"ads_nfi","a.cpoa;cid."+R.identifier);return!1}Xc(this,this.T,R);return!0};
g.X.BS=function(){};
g.X.vW=function(R){this.T&&this.T.contentCpn!==R&&(Q2("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:R,fetchInstructionsCpn:this.T.contentCpn}),this.T=null)};
g.X.y8=function(R){this.T&&this.T.contentCpn!==R&&Q2("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:R,fetchInstructionsCpn:this.T.contentCpn},!0);this.T=null};
g.X.oG=function(){g.G.prototype.oG.call(this);this.T=null};var ab=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],n65=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.a(aY,g.G);g.X=aY.prototype;g.X.cT=function(R,F){var n=this;if(F.layoutType==="LAYOUT_TYPE_MEDIA"&&(ly(F,this.Z)||ly(F,n65))){var V=fb(this.Do.get(),2),r=this.J(F,V||void 0);r?rE(this.N.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var v=[SXR(n.T.get(),r.contentCpn,r.BY,function(f){return n.W(f.slotId,"core",r,nR(n.Ol.get(),f))},r.inPlayerSlotId)];
r.instreamAdPlayerUnderlayRenderer&&Zq(n.WG.get())&&v.push(yy9(n,r,r.instreamAdPlayerUnderlayRenderer));return v}):Q2("Expected MediaLayout to carry valid opportunity on entered",R,F)}};
g.X.V7=function(){};
g.X.Dz=function(){};
g.X.ML=function(){};
g.X.vt=function(){};
g.X.nk=function(){};
g.X.C5=function(){};
g.X.Ia=function(){};
g.X.Wt=function(){};
g.X.jE=function(){};
g.X.rV=function(){};
g.X.dW=function(){};g.a(CB,g.G);CB.prototype.vW=function(R,F,n,V,r,v,f){var z=this,q=fb(this.Do.get(),1);q.xa?this.F2.get().Xy():(g9v(this.tX.get(),V),rE(this.U.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return i8(z.T.get(),V,r,v,R,F,f,q,"")}),Kv9(this.N))};
CB.prototype.y8=function(){};g.a(T_,g.G);g.a(oY,g.G);oY.prototype.onCueRangeEnter=function(){};
oY.prototype.onCueRangeExit=function(R){var F=this,n=this.T.get(R);n&&(this.T.delete(R),this.wW.get().removeCueRange(R),rE(this.U.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var V=F.N.get();V=vT(V.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},n,{slotId:V,slotEntryTrigger:n.slotEntryTrigger?lkN(n.slotId,V,n.slotEntryTrigger):void 0,slotFulfillmentTriggers:NWj(n.slotId,V,n.slotFulfillmentTriggers),slotExpirationTriggers:NWj(n.slotId,V,n.slotExpirationTriggers)})]},
n.slotId))};
oY.prototype.vW=function(){for(var R=g.m(this.T.keys()),F=R.next();!F.done;F=R.next())F=F.value,this.wW.get().removeCueRange(F);this.T.clear()};
oY.prototype.y8=function(){};g.a(y5,g.G);g.X=y5.prototype;g.X.V7=function(){};
g.X.Dz=function(R){var F=this;g.R8(g.n3(),function(){var n=F.T.get(R);n&&Q2("Expected layouts to be properly unscheduled",R,void 0,{slotType:R.slotType,layoutTypes:[].concat(g.I(n)).map(function(V){return V.layoutType})})},0)};
g.X.ML=function(){};
g.X.vt=function(){};
g.X.nk=function(){};
g.X.C5=function(){};
g.X.Ia=function(){};
g.X.Wt=function(R,F){this.T.has(R)||this.T.set(R,new Set);this.T.get(R).add(F)};
g.X.jE=function(R,F){this.cW.has(R)&&this.cW.get(R)===F&&Q2("Unscheduled a Layout that is currently entered.",R,F);if(this.T.has(R)){var n=this.T.get(R);n.has(F)?(n.delete(F),n.size===0&&this.T.delete(R)):Q2("Trying to unscheduled a Layout that was not scheduled.",R,F)}else Q2("Trying to unscheduled a Layout that was not scheduled.",R,F)};
g.X.cT=function(R,F){this.cW.set(R,F)};
g.X.dW=function(R){this.cW.delete(R)};
g.X.rV=function(){};g.X=UI_.prototype;g.X.init=function(){};
g.X.kF=function(){return this.slot};
g.X.yj=function(){this.callback.ML(this.slot)};
g.X.N$=function(){this.callback.nk(this.slot)};
g.X.release=function(){};HG.prototype.build=function(R,F){return new UI_(R,F)};g.X=jAI.prototype;g.X.init=function(){};
g.X.kF=function(){return this.slot};
g.X.yj=function(){zc(this.F2.get(),"ad-showing");this.callback.ML(this.slot)};
g.X.N$=function(){this.callback.nk(this.slot);qe(this.F2.get(),"ad-showing")};
g.X.release=function(){};g.X=Hd9.prototype;g.X.init=function(){};
g.X.kF=function(){return this.slot};
g.X.yj=function(){zc(this.F2.get(),"ad-showing");zc(this.F2.get(),"ad-interrupting");this.U=this.F2.get().isAtLiveHead();this.T=Math.ceil(Date.now()/1E3);this.callback.ML(this.slot)};
g.X.N$=function(){qe(this.F2.get(),"ad-showing");qe(this.F2.get(),"ad-interrupting");var R=this.U?Infinity:fE(this.F2.get(),1,!0)+Math.floor(Date.now()/1E3)-this.T;this.F2.get().K.seekTo(R,void 0,void 0,1);this.callback.nk(this.slot)};
g.X.release=function(){};g.X=hQ9.prototype;g.X.init=function(){};
g.X.kF=function(){return this.slot};
g.X.yj=function(){zc(this.F2.get(),"ad-showing");zc(this.F2.get(),"ad-interrupting");this.callback.ML(this.slot)};
g.X.N$=function(){this.F2.get().Xy();qe(this.F2.get(),"ad-showing");qe(this.F2.get(),"ad-interrupting");this.callback.nk(this.slot)};
g.X.release=function(){this.F2.get().Xy()};hq.prototype.build=function(R,F){if(Zk(F,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new jAI(R,F,this.F2);if(F.slotEntryTrigger instanceof kp&&Zk(F,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new Hd9(R,F,this.F2);if(Zk(F,[],"SLOT_TYPE_PLAYER_BYTES"))return new hQ9(R,F,this.F2);throw new Z("Unsupported slot with type "+F.slotType+" and client metadata: "+(by(F.clientMetadata)+" in PlayerBytesSlotAdapterFactory."));};g.a(WG,g.G);WG.prototype.T=function(R){for(var F=[],n=g.m(this.MC.values()),V=n.next();!V.done;V=n.next()){V=V.value;var r=V.trigger;r instanceof Nw&&V.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&&r.triggeringLayoutId===R&&F.push(V)}F.length?CR(this.eC(),F):Q2("Mute requested but no registered triggers can be activated.")};g.a(BG,WG);g.X=BG.prototype;g.X.fk=function(R,F){if(F)if(R==="skip-button"){R=[];for(var n=g.m(this.MC.values()),V=n.next();!V.done;V=n.next()){V=V.value;var r=V.trigger;r instanceof Nw&&V.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&r.triggeringLayoutId===F&&R.push(V)}R.length&&CR(this.eC(),R)}else kA(this.WG.get(),"supports_multi_step_on_desktop")?R==="ad-action-submit-survey"&&uD(this,F):R==="survey-submit"?uD(this,F):R==="survey-single-select-answer-button"&&uD(this,F)};
g.X.eT=function(R){WG.prototype.T.call(this,R)};
g.X.zP=function(R,F,n,V){if(this.MC.has(F.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(F instanceof Rw||F instanceof Nw))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+F.triggerType+" in AdUxUpdateTriggerAdapter.");this.MC.set(F.triggerId,new nj(R,F,n,V))};
g.X.eK=function(R){this.MC.delete(R.triggerId)};
g.X.nU=function(){};
g.X.M9=function(){};
g.X.uf=function(){};g.a(m1,g.G);g.X=m1.prototype;
g.X.zP=function(R,F,n,V){if(this.MC.has(F.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(F instanceof Ek||F instanceof $p||F instanceof Pg||F instanceof bC||F instanceof Zf||F instanceof e9||F instanceof GT||F instanceof gI||F instanceof IU||F instanceof Ok||F instanceof JA||F instanceof m7))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+F.triggerType+" in AdsControlFlowEventTriggerAdapter");R=new nj(R,F,n,V);this.MC.set(F.triggerId,R);F instanceof
Zf&&this.W.has(F.triggeringSlotId)&&CR(this.T(),[R]);F instanceof Ek&&this.N.has(F.triggeringSlotId)&&CR(this.T(),[R]);F instanceof gI&&this.U.has(F.triggeringLayoutId)&&CR(this.T(),[R])};
g.X.eK=function(R){this.MC.delete(R.triggerId)};
g.X.V7=function(R){this.W.add(R.slotId);for(var F=[],n=g.m(this.MC.values()),V=n.next();!V.done;V=n.next())V=V.value,V.trigger instanceof Zf&&R.slotId===V.trigger.triggeringSlotId&&F.push(V);F.length>0&&CR(this.T(),F)};
g.X.Dz=function(R){this.W.delete(R.slotId);for(var F=[],n=g.m(this.MC.values()),V=n.next();!V.done;V=n.next()){V=V.value;var r=V.trigger;r instanceof e9&&r.triggeringSlotId===R.slotId&&F.push(V)}F.length>0&&CR(this.T(),F)};
g.X.vt=function(R){for(var F=[],n=g.m(this.MC.values()),V=n.next();!V.done;V=n.next()){V=V.value;var r=V.trigger;r instanceof GT&&r.slotType===R.slotType&&r.T!==R.slotId&&F.push(V)}F.length>0&&CR(this.T(),F)};
g.X.ML=function(R){this.N.add(R.slotId);for(var F=[],n=g.m(this.MC.values()),V=n.next();!V.done;V=n.next())V=V.value,V.trigger instanceof Ek&&R.slotId===V.trigger.triggeringSlotId&&F.push(V);F.length>0&&CR(this.T(),F)};
g.X.nk=function(R){this.N.delete(R.slotId);this.J.add(R.slotId);for(var F=[],n=g.m(this.MC.values()),V=n.next();!V.done;V=n.next())if(V=V.value,V.trigger instanceof $p)R.slotId===V.trigger.triggeringSlotId&&F.push(V);else if(V.trigger instanceof m7){var r=V.trigger;R.slotId===r.slotId&&this.U.has(r.triggeringLayoutId)&&F.push(V)}F.length>0&&CR(this.T(),F)};
g.X.C5=function(R){for(var F=[],n=g.m(this.MC.values()),V=n.next();!V.done;V=n.next())V=V.value,V.trigger instanceof Pg&&R.slotId===V.trigger.triggeringSlotId&&F.push(V);F.length>0&&CR(this.T(),F)};
g.X.Ia=function(R){for(var F=[],n=g.m(this.MC.values()),V=n.next();!V.done;V=n.next())V=V.value,V.trigger instanceof bC&&R.slotId===V.trigger.triggeringSlotId&&F.push(V);F.length>0&&CR(this.T(),F)};
g.X.Wt=function(R,F){this.Z.add(F.layoutId)};
g.X.jE=function(R,F){this.Z.delete(F.layoutId)};
g.X.cT=function(R,F){this.U.add(F.layoutId);for(var n=[],V=g.m(this.MC.values()),r=V.next();!r.done;r=V.next())if(r=r.value,r.trigger instanceof gI)F.layoutId===r.trigger.triggeringLayoutId&&n.push(r);else if(r.trigger instanceof JA){var v=r.trigger;R.slotType===v.slotType&&F.layoutType===v.layoutType&&F.layoutId!==v.T&&n.push(r)}else r.trigger instanceof m7&&(v=r.trigger,F.layoutId===v.triggeringLayoutId&&this.J.has(v.slotId)&&n.push(r));n.length>0&&CR(this.T(),n)};
g.X.dW=function(R,F,n){this.U.delete(F.layoutId);R=[];for(var V=g.m(this.MC.values()),r=V.next();!r.done;r=V.next())if(r=r.value,r.trigger instanceof IU&&F.layoutId===r.trigger.triggeringLayoutId&&R.push(r),r.trigger instanceof Ok){var v=r.trigger;F.layoutId===v.triggeringLayoutId&&v.T.includes(n)&&R.push(r)}R.length>0&&CR(this.T(),R)};
g.X.rV=function(){};
g.X.vW=function(){this.J.clear()};
g.X.y8=function(){};g.a(gM,g.G);gM.prototype.zP=function(R,F,n,V){if(this.MC.has(F.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(F instanceof uC))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+F.triggerType+" in CloseRequestedTriggerAdapter");this.MC.set(F.triggerId,new nj(R,F,n,V))};
gM.prototype.eK=function(R){this.MC.delete(R.triggerId)};g.a(IY,g.G);IY.prototype.zP=function(R,F,n,V){if(this.MC.has(F.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(F instanceof Wg||F instanceof Mw))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+F.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.MC.set(F.triggerId,new nj(R,F,n,V))};
IY.prototype.eK=function(R){this.MC.delete(R.triggerId)};
IY.prototype.vW=function(R){for(var F=[],n=F.push,V=n.apply,r=[],v=g.m(this.MC.values()),f=v.next();!f.done;f=v.next())f=f.value,f.trigger instanceof Wg&&f.trigger.TR===R&&r.push(f);V.call(n,F,g.I(r));n=F.push;V=n.apply;r=[];v=g.m(this.MC.values());for(f=v.next();!f.done;f=v.next())f=f.value,f.trigger instanceof Mw&&f.trigger.T!==R&&r.push(f);V.call(n,F,g.I(r));F.length&&CR(this.T(),F)};
IY.prototype.y8=function(R){for(var F=[],n=F.push,V=n.apply,r=[],v=g.m(this.MC.values()),f=v.next();!f.done;f=v.next()){f=f.value;var z=f.trigger;z instanceof Mw&&z.T===R&&r.push(f)}V.call(n,F,g.I(r));F.length&&CR(this.T(),F)};g.a(KB,g.G);g.X=KB.prototype;g.X.zP=function(R,F,n,V){if(this.MC.has(F.triggerId))throw new Z("Tried to register duplicate trigger for slot.");var r="adtriggercuerange:"+F.triggerId;if(F instanceof kp)WgN(this,R,F,n,V,r,F.T.start,F.T.end,F.TR,F.visible);else if(F instanceof Bg)WgN(this,R,F,n,V,r,0x7ffffffffffff,0x8000000000000,F.TR,F.visible);else throw new Z("Incorrect TriggerType: Tried to register trigger of type "+F.triggerType+" in CueRangeTriggerAdapter");};
g.X.eK=function(R){var F=this.MC.get(R.triggerId);F&&this.wW.get().removeCueRange(F.cueRangeId);this.MC.delete(R.triggerId)};
g.X.onCueRangeEnter=function(R){if(R=uFN(this,R))if(R=this.MC.get(R))if(g.E(eO(this.F2.get()),32))this.T.add(R.cueRangeId);else{var F=R==null?void 0:R.f9.trigger;(F instanceof kp||F instanceof Bg)&&CR(this.U(),[R.f9])}};
g.X.onCueRangeExit=function(R){(R=uFN(this,R))&&(R=this.MC.get(R))&&this.T.delete(R.cueRangeId)};
g.X.aV=function(R){if(wr(R,16)<0){R=g.m(this.T);for(var F=R.next();!F.done;F=R.next())this.onCueRangeEnter(F.value,!0);this.T.clear()}};
g.X.V7=function(){};
g.X.Dz=function(){};
g.X.vt=function(){};
g.X.ML=function(){};
g.X.nk=function(){};
g.X.C5=function(){};
g.X.Ia=function(){};
g.X.Wt=function(){};
g.X.jE=function(){};
g.X.cT=function(){};
g.X.dW=function(){};
g.X.rV=function(){};
g.X.gG=function(){};
g.X.onFullscreenToggled=function(){};
g.X.oV=function(){};
g.X.PE=function(){};
g.X.Q5=function(){};
g.X.onVolumeChange=function(){};
g.X.WE=function(){};
g.X.Fd=function(){};g.a(Dy,g.G);
Dy.prototype.zP=function(R,F,n,V){if(this.U.has(F.triggerId)||this.N.has(F.triggerId))throw new Z("Tried to re-register the trigger.");R=new nj(R,F,n,V);if(R.trigger instanceof xp)this.U.set(R.trigger.triggerId,R);else if(R.trigger instanceof Kf)this.N.set(R.trigger.triggerId,R);else throw new Z("Incorrect TriggerType: Tried to register trigger of type "+R.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.U.has(R.trigger.triggerId)&&R.slot.slotId===this.T&&CR(this.J(),[R])};
Dy.prototype.eK=function(R){this.U.delete(R.triggerId);this.N.delete(R.triggerId)};
Dy.prototype.uv=function(R){R=R.slotId;if(this.T!==R){var F=[];this.T!=null&&F.push.apply(F,g.I(BWf(this.N,this.T)));R!=null&&F.push.apply(F,g.I(BWf(this.U,R)));this.T=R;F.length&&CR(this.J(),F)}};g.a(iD,g.G);g.X=iD.prototype;g.X.zP=function(R,F,n,V){if(this.MC.has(F.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(F instanceof dI))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+F.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.MC.set(F.triggerId,new nj(R,F,n,V))};
g.X.eK=function(R){this.MC.delete(R.triggerId)};
g.X.cT=function(){};
g.X.dW=function(){};
g.X.V7=function(){};
g.X.Dz=function(){};
g.X.vt=function(){};
g.X.ML=function(){};
g.X.nk=function(){};
g.X.C5=function(){};
g.X.Ia=function(){};
g.X.Wt=function(){};
g.X.jE=function(){};
g.X.rV=function(){};g.a(xE,g.G);g.X=xE.prototype;g.X.rV=function(R,F){for(var n=[],V=g.m(this.MC.values()),r=V.next();!r.done;r=V.next()){r=r.value;var v=r.trigger;v.opportunityType===R&&(v.associatedSlotId&&v.associatedSlotId!==F||n.push(r))}n.length&&CR(this.T(),n)};
g.X.zP=function(R,F,n,V){if(this.MC.has(F.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(F instanceof ft_))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+F.triggerType+" in OpportunityEventTriggerAdapter");this.MC.set(F.triggerId,new nj(R,F,n,V))};
g.X.eK=function(R){this.MC.delete(R.triggerId)};
g.X.V7=function(){};
g.X.Dz=function(){};
g.X.vt=function(){};
g.X.ML=function(){};
g.X.nk=function(){};
g.X.C5=function(){};
g.X.Ia=function(){};
g.X.Wt=function(){};
g.X.jE=function(){};
g.X.cT=function(){};
g.X.dW=function(){};g.a(kE,g.G);g.X=kE.prototype;g.X.zP=function(R,F,n,V){R=new nj(R,F,n,V);if(F instanceof Df||F instanceof Yp||F instanceof iC||F instanceof lC||F instanceof YIN){if(this.MC.has(F.triggerId))throw new Z("Tried to register duplicate trigger for slot.");this.MC.set(F.triggerId,R)}else throw new Z("Incorrect TriggerType: Tried to register trigger of type "+F.triggerType+" in PrefetchTriggerAdapter");};
g.X.eK=function(R){this.MC.delete(R.triggerId)};
g.X.V7=function(R){var F=R.slotFulfillmentTriggers.find(function(n){return n instanceof Df});
F&&(YE(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",F.breakDurationMs,new Set([R.slotId]),!0),tA(this.zH.get(),"ads_css","sid."+R.slotId+";bd."+F.breakDurationMs))};
g.X.Dz=function(){};
g.X.vt=function(){};
g.X.ML=function(){};
g.X.nk=function(){};
g.X.C5=function(){};
g.X.Ia=function(){};
g.X.Wt=function(){};
g.X.jE=function(){};
g.X.cT=function(){};
g.X.dW=function(){};
g.X.rV=function(){};
g.X.RO=function(R){var F=this;if(!this.T)return tA(this.zH.get(),"ads_nfi","a.pta;cid."+R.identifier),!1;this.U&&this.U.stop();this.W&&g.eI(this.W);var n=IkN(this,R);if(!n){var V=mIk(this),r=this.X!==void 0&&Date.now()<=this.X+1E4;tA(this.zH.get(),"ads_ncfs","cid."+R.identifier+";cd."+R.FP.toFixed(3)+";ccs."+r+";cfa."+this.J+";bdc."+V.length+";"+V.slice(0,6).map(function(v){return";bd."+v}).join(""));
return r?(Xc(this.Zz,this.T,R),!0):!1}(V=PA(n.slot.clientMetadata,"metadata_type_triggering_cue_point"))?V.current=R:Q2("Expected triggering cue point ref to be available",n.slot);(new g.ZK(function(){var v=n.trigger,f=n.slot;YE(F,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",v.breakDurationMs,new Set,!0);YE(F,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",v.breakDurationMs,new Set,!1);for(var z=0,q=g.m(F.MC.values()),Q=q.next();!Q.done;Q=q.next()){Q=Q.value;var c=Q.trigger;
Q.slot.slotId===f.slotId&&(F.MC.delete(c.triggerId),z++)}tA(F.zH.get(),"ads_csf","sid."+f.slotId+";bd."+v.breakDurationMs+";dt."+z)},10)).start();
return!0};
g.X.BS=function(){};
g.X.vW=function(R){var F=this;this.J=!1;this.X=Date.now();if(this.T&&this.T.contentCpn!==R)Q2("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:R,fetchInstructionsCpn:this.T.contentCpn}),Jq(this);else{this.N=new g.ZK(function(){if(F.J)delete F.N;else{var V=F.F2.get().getGetAdBreakContext(),r;if(Number(V==null?void 0:(r=V.livePlaybackPosition)==null?void 0:r.utcTimeMillis)>0)delete F.N,OdN(F);else{var v;(v=F.N)==null||v.start()}}},200);
var n;(n=this.N)==null||n.start()}};
g.X.y8=function(R){this.T&&this.T.contentCpn!==R&&Q2("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:R,fetchInstructionsCpn:this.T.contentCpn},!0);Jq(this)};
g.X.zS=function(R){var F=this;if(this.T)Q2("Unexpected multiple fetch instructions for the current content");else{this.T=R;R=DIN(R);this.U=new g.ZK(function(){OdN(F)},R?R:6E5);
this.U.start();this.W=new g.ZK(function(){F.T&&(F.U&&(F.U.stop(),F.U.start()),g8E(F,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},Kg9(this.T));
R=this.F2.get().getCurrentTimeSec(1,!1);for(var n=g.m(this.Sl.get().rA),V=n.next();!V.done;V=n.next())V=V.value,tA(this.zH.get(),"nocache","ct."+Date.now()+";cmt."+R+";d."+V.FP.toFixed(3)+";tw."+(V.startSecs-R)+";cid."+V.identifier+";")}};
g.X.oG=function(){g.G.prototype.oG.call(this);Jq(this)};g.a(G_,g.G);g.X=G_.prototype;g.X.zP=function(R,F,n,V){if(this.MC.has(F.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(F instanceof FO))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+F.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.MC.set(F.triggerId,new nj(R,F,n,V));R=this.T.has(F.triggeringLayoutId)?this.T.get(F.triggeringLayoutId):new Set;R.add(F);this.T.set(F.triggeringLayoutId,R)};
g.X.eK=function(R){this.MC.delete(R.triggerId);if(!(R instanceof FO))throw new Z("Incorrect TriggerType: Tried to unregister trigger of type "+R.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var F=this.U.get(R.triggerId);F&&(F.dispose(),this.U.delete(R.triggerId));if(F=this.T.get(R.triggeringLayoutId))F.delete(R),F.size===0&&this.T.delete(R.triggeringLayoutId)};
g.X.V7=function(){};
g.X.Dz=function(){};
g.X.vt=function(){};
g.X.ML=function(){};
g.X.nk=function(){};
g.X.C5=function(){};
g.X.Ia=function(){};
g.X.Wt=function(){};
g.X.jE=function(){};
g.X.rV=function(){};
g.X.cT=function(R,F){var n=this;if(this.T.has(F.layoutId)){R=this.T.get(F.layoutId);R=g.m(R);var V=R.next();for(F={};!V.done;F={FO:void 0},V=R.next())F.FO=V.value,V=new g.ZK(function(r){return function(){var v=n.MC.get(r.FO.triggerId);CR(n.N(),[v])}}(F),F.FO.durationMs),V.start(),this.U.set(F.FO.triggerId,V)}};
g.X.dW=function(){};g.a(dM,g.G);dM.prototype.zP=function(R,F){if(this.MC.has(F.triggerId))throw new Z("Tried to register duplicate trigger for slot.");throw new Z("Incorrect TriggerType: Tried to register trigger of type "+F.triggerType+" in VideoTransitionTriggerAdapter.");};
dM.prototype.eK=function(R){this.MC.delete(R.triggerId)};Eo.prototype.qf=function(R){return R.kind==="AD_PLACEMENT_KIND_START"};g.a(bD,g.G);bD.prototype.logEvent=function(R){this.T(R)};
bD.prototype.T=function(R,F,n,V,r,v,f,z,q,Q,c,w){var L=this;w=w===void 0?0:w;kA(this.WG.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+R,"slot:",r,"layout:",v,"ping:",f,"Opportunity:",{opportunityType:F,associatedSlotId:n,qkX:V,Ro2:z,adSlotLoggingData:q,adLayoutLoggingData:Q});try{var S=function(){if(!L.WG.get().K.D().B("html5_disable_client_tmp_logs")&&R!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){R||Q2("Empty PACF event type",r,v);var p=Fi(L.U.get()),C={eventType:R,eventOrder:++L.eventCount},
y={};r&&(y.slotData=Rd(p,r));v&&(y.layoutData=Or9(p,v));f&&(y.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:f.T.serializedAdPingMetadata,pingIndex:f.index});z&&(y.triggerData=eM(z.trigger,z.category));F&&(y.opportunityData=IPN(p,F,n,V));p={organicPlaybackContext:{contentCpn:fb(L.Do.get(),1).clientPlaybackNonce}};p.organicPlaybackContext.isLivePlayback=fb(L.Do.get(),1).Zt;var u;p.organicPlaybackContext.isMdxPlayback=(u=fb(L.Do.get(),1))==null?void 0:
u.isMdxPlayback;var B;if((B=fb(L.Do.get(),1))==null?0:B.daiEnabled)p.organicPlaybackContext.isDaiContent=!0;var O;if(u=(O=fb(L.Do.get(),2))==null?void 0:O.clientPlaybackNonce)p.adVideoPlaybackContext={adVideoCpn:u};p&&(y.externalContext=p);C.adClientData=y;q&&(C.serializedSlotAdServingData=q.serializedSlotAdServingDataEntry);Q&&(C.serializedAdServingData=Q.serializedAdServingDataEntry);c&&(C.errorInfo=c);g.LJ("adsClientStateChange",{adsClientEvent:C})}};
w&&w>0?g.R8(g.n3(),function(){return S()},w):S()}catch(p){kA(this.WG.get(),"html5_log_pacf_logging_errors")&&g.R8(g.n3(),function(){Q2(p instanceof Error?p:String(p),r,v,{pacf_message:"exception during pacf logging"})})}};g.a(Zy,bD);Zy.prototype.T=function(R,F,n,V,r,v,f,z,q,Q,c){var w=this.WG.get();g.ad(w.K.D())?(w=this.WG.get(),w=g.Vn(w.K.D().experiments,"H5_async_logging_delay_ms")):w=void 0;bD.prototype.T.call(this,R,F,n,V,r,v,f,z,q,Q,c,w)};e2.prototype.clear=function(){this.T.clear()};Fe.prototype.state=function(){return this.T==="fulfilled"?{state:"fulfilled",value:this.result}:this.T==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}};
Fe.prototype.J=function(R){VW(R)||nQ(R)?z4(rv(R),this.J.bind(this),this.reject.bind(this)):(this.T="fulfilled",this.result=R,t0(this))};
Fe.prototype.reject=function(R){this.T="rejected";this.error=R;t0(this)};
var nQ=DL(function(R){return qU9(R)?R instanceof Fe:!1});var S1=window.h75||"en";Xe.prototype.HV=function(R){this.client=R};
Xe.prototype.T=function(){this.clear();this.csn=g.CJ()};
Xe.prototype.clear=function(){this.N.clear();this.U.clear();this.J.clear();this.csn=null};a4.prototype.HV=function(R){g.Vb(A0().HV).bind(A0())(R)};
a4.prototype.clear=function(){g.Vb(A0().clear).bind(A0())()};g.X=CQ.prototype;g.X.HV=function(R){this.client=R};
g.X.z$=function(R,F){var n=this;F=F===void 0?{}:F;g.Vb(function(){var V,r,v,f=((V=g.A(R==null?void 0:R.commandMetadata,g.TI))==null?void 0:V.rootVe)||((r=g.A(R==null?void 0:R.commandMetadata,hOq))==null?void 0:(v=r.screenVisualElement)==null?void 0:v.uiType);if(f){V=g.A(R==null?void 0:R.commandMetadata,M7q);if(V==null?0:V.parentTrackingParams){var z=g.pJ(V.parentTrackingParams);if(V.parentCsn)var q=V.parentCsn}else F.clickedVisualElement?z=F.clickedVisualElement:R.clickTrackingParams&&(z=g.pJ(R.clickTrackingParams));
a:{V=g.A(R,g.oo);r=g.A(R,Yvq);if(V){if(r=zav(V,"VIDEO")){V={token:r,videoId:V.videoId};break a}}else if(r&&(V=zav(r,"PLAYLIST"))){V={token:V,playlistId:r.playlistId};break a}V=void 0}F=Object.assign({},{cttAuthInfo:V,parentCsn:q},F);if(g.U2("expectation_logging")){var Q;F.loggingExpectations=((Q=g.A(R==null?void 0:R.commandMetadata,hOq))==null?void 0:Q.loggingExpectations)||void 0}o4(n,f,z,F)}else g.mq(new g.UR("Error: Trying to create a new screen without a rootVeType",R))})()};
g.X.clickCommand=function(R,F,n){R=R.clickTrackingParams;n=n===void 0?0:n;R?(n=g.CJ(n===void 0?0:n))?(Pe(this.client,n,g.pJ(R),F),F=!0):F=!1:F=!1;return F};
g.X.stateChanged=function(R,F,n){this.visualElementStateChanged(g.pJ(R),F,n===void 0?0:n)};
g.X.visualElementStateChanged=function(R,F,n){n=n===void 0?0:n;n===0&&this.U.has(n)?this.V.push([R,F]):XlR(this,R,F,n)};HQ.prototype.fetch=function(R,F,n){var V=this,r=COf(R,F,n);return new Promise(function(v,f){function z(){if(n==null?0:n.p7)try{var Q=V.handleResponse(R,r.status,r.response,n);v(Q)}catch(c){f(c)}else v(V.handleResponse(R,r.status,r.response,n))}
r.onerror=z;r.onload=z;var q;r.send((q=F.body)!=null?q:null)})};
HQ.prototype.handleResponse=function(R,F,n,V){n=n.replace(")]}'","");try{var r=JSON.parse(n)}catch(v){g.mq(new g.UR("JSON parsing failed after XHR fetch",R,F,n));if((V==null?0:V.p7)&&n)throw new g.Za(1,"JSON parsing failed after XHR fetch");r={}}F!==200&&(g.mq(new g.UR("XHR API fetch failed",R,F,n)),r=Object.assign({},r,{errorMetadata:{status:F}}));return r};h0.getInstance=function(){var R=g.WM("ytglobal.storage_");R||(R=new h0,g.h7("ytglobal.storage_",R));return R};
h0.prototype.estimate=function(){var R,F,n;return g.Y(function(V){R=navigator;return((F=R.storage)==null?0:F.estimate)?V.return(R.storage.estimate()):((n=R.webkitTemporaryStorage)==null?0:n.queryUsageAndQuota)?V.return(Tn6()):V.return()})};
g.h7("ytglobal.storageClass_",h0);WQ.prototype.f4=function(R){this.handleError(R)};
WQ.prototype.logEvent=function(R,F){switch(R){case "IDB_DATA_CORRUPTED":g.U2("idb_data_corrupted_killswitch")||this.T("idbDataCorrupted",F);break;case "IDB_UNEXPECTEDLY_CLOSED":this.T("idbUnexpectedlyClosed",F);break;case "IS_SUPPORTED_COMPLETED":g.U2("idb_is_supported_completed_killswitch")||this.T("idbIsSupportedCompleted",F);break;case "QUOTA_EXCEEDED":yEN(this,F);break;case "TRANSACTION_ENDED":this.N&&Math.random()<=.1&&this.T("idbTransactionEnded",F);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":R=
Object.assign({},F,{hasWindowUnloaded:this.U}),this.T("idbTransactionAborted",R)}};var N$={},kNf=g.nI("yt-player-local-media",{vO:(N$.index={r4:2},N$.media={r4:2},N$.captions={r4:5},N$),shared:!1,upgrade:function(R,F){F(2)&&(g.Bm(R,"index"),g.Bm(R,"media"));F(5)&&g.Bm(R,"captions");F(6)&&(m2(R,"metadata"),m2(R,"playerdata"))},
version:5});var VX$={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},Ex;a:{var $f=g.ft();$f=$f.toLowerCase();if(g.Fg($f,"android")){var r8q=$f.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(r8q){var v6h=parseFloat(r8q[1]);if(v6h<100){Ex=v6h;break a}}var f$q=$f.match("("+Object.keys(VX$).join("|")+")");Ex=f$q?VX$[f$q[0]]:0}else Ex=void 0}var R$=Ex,eU=R$>=0;var UQ6=PI(function(){var R,F;return(F=(R=window).matchMedia)==null?void 0:F.call(R,"(prefers-reduced-motion: reduce)").matches});var BQ;g.uW=new aK;BQ=0;var s6=mQI()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Nx?!0:!1;var KW={Eg:function(R,F){var n=R[0];R[0]=R[F%R[t[1]]];R[F%R[t[1]]]=n},
zb:function(R){R[t[60]]()},
mS:function(R,F){R[t[21]](0,F)}};var wgV={BGG:"adunit",iW2:"detailpage",s$5:"editpage",Q$5:"embedded",uWX:"leanback",TTX:"previewpage",mHo:"profilepage",m6:"unplugged",aB2:"playlistoverview",Qeq:"sponsorshipsoffer",T82:"shortspage",f8G:"handlesclaiming",j85:"immersivelivepage",udG:"creatormusic",s8X:"immersivelivepreviewpage",WzH:"admintoolyurt",yl1:"shortsaudiopivot",VKX:"consumption",J8z:"background_audio_playback"};var gA6=2592E3;var Pn,tX7,og;Pn={};g.k2=(Pn.STOP_EVENT_PROPAGATION="html5-stop-propagation",Pn.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Pn.IV_DRAWER_OPEN="ytp-iv-drawer-open",Pn.MAIN_VIDEO="html5-main-video",Pn.VIDEO_CONTAINER="html5-video-container",Pn.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Pn.HOUSE_BRAND="house-brand",Pn);tX7={};og=(tX7.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",tX7.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",tX7);var GAI={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var Nnv={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},EAJ={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"},bK_={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var fyE={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.LW[t[41]][t[10]]=function(R,F){this[t[0]][R]!==F&&(this[t[0]][R]=F,this[t[11]]=t[28])};
g.LW[t[41]][t[56]]=function(R){re(75,this);return this[t[0]][R]||null};
g.LW[t[41]][t[39]]=function(){this[t[11]]||(this[t[11]]=Tk(58,this));return this[t[11]]};
g.LW[t[41]][t[47]]=function(){var R=new g.LW(this[t[38]],this[t[20]]);R[t[52]]=this[t[52]];R[t[2]]=this[t[2]];R[t[14]]=this[t[14]];R[t[0]]=g.Di(this[t[0]]);R[t[11]]=this[t[11]];return R};
var nNN=[TxW];g.G4.prototype.getLanguageInfo=function(){return this.z9};
g.G4.prototype.getXtags=function(){if(!this.xtags){var R=this.id.split(";");R.length>1&&(this.xtags=R[1])}return this.xtags};
g.G4.prototype.toString=function(){return this.z9.name};
g.G4.prototype.isAutoDubbed=function(){return this.z9.getIsAutoDubbed()};
g.G4.prototype.getLanguageInfo=g.G4.prototype.getLanguageInfo;g.G4.prototype.isAutoDubbed=g.G4.prototype.isAutoDubbed;dv.prototype.equals=function(R){return this.U===R.U&&this.T===R.T&&this.N===R.N&&this.reason===R.reason&&(!lW||this.yz===R.yz)};
dv.prototype.isLocked=function(){return this.N&&!!this.U&&this.U===this.T};
dv.prototype.compose=function(R){if(R.N&&N4(R))return LM;if(R.N||N4(this))return R;if(this.N||N4(R))return this;var F=this.U&&R.U?Math.max(this.U,R.U):this.U||R.U,n=this.T&&R.T?Math.min(this.T,R.T):this.T||R.T;F=Math.min(F,n);var V=0;lW&&(V=this.yz!==0&&R.yz!==0?Math.min(this.yz,R.yz):this.yz===0?R.yz:this.yz);return lW&&F===this.U&&n===this.T&&V===this.yz||!lW&&F===this.U&&n===this.T?this:lW?new dv(F,n,!1,n===this.T&&V===this.yz?this.reason:R.reason,V):new dv(F,n,!1,n===this.T?this.reason:R.reason)};
dv.prototype.J=function(R){return!R.video||lW&&this.yz!==0&&this.yz<R.yz?!1:POW(this,R.video.quality)};
var zTz=g.M4("auto","hd1080",!1,"l"),O0v=g.M4("auto","large",!1,"l"),LM=g.M4("auto","auto",!1,"p"),lW=!1;PQ.prototype.y3=function(R){R=R||LM;for(var F=g.dk(this.videoInfos,function(f){return R.J(f)}),n=[],V={},r=0;r<F.length;r++){var v=F[r].video;
V[v.quality]||(n.push(v),V[v.quality]=!0)}return n};
PQ.prototype.yn=function(R){R=R||LM;return g.dk(this.videoInfos,function(F){return R.J(F)})};
PQ.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var sB9=new Set(["356"]);g.a(bW,g.G);bW.prototype.oG=function(){g.G.prototype.oG.call(this)};g.X=g.qc.prototype;g.X.bU=function(R){this.segments.push(R)};
g.X.Ap=function(R){return!!this.EU(R)};
g.X.getDuration=function(R){return(R=this.EU(R))?R.duration:0};
g.X.WZ=function(R){return this.getDuration(R)};
g.X.KE=function(){return 0};
g.X.m1=function(){return this.segments.length?this.segments[0].nH:-1};
g.X.wD=function(R){return(R=this.EU(R))?R.ingestionTime:NaN};
g.X.VZ=function(){return this.segments.length?this.segments[this.segments.length-1].nH:-1};
g.X.uj=function(R){return this.VZ()===R&&!this.U&&R>=0};
g.X.Ug=function(){var R=this.segments[this.segments.length-1];return R?R.endTime:NaN};
g.X.RC=function(){return this.segments[0].startTime};
g.X.vu=function(){return this.segments.length};
g.X.R$=function(){return 0};
g.X.kc=function(R){return(R=this.K3(R))?R.nH:-1};
g.X.SS=function(R){return(R=this.EU(R))?R.sourceURL:""};
g.X.getStartTime=function(R){return(R=this.EU(R))?R.startTime:0};
g.X.fL=function(R){return this.getStartTime(R)+this.getDuration(R)};
g.X.HH=i9(3);g.X.isLoaded=function(){return this.segments.length>0};
g.X.EU=function(R){if(this.T&&this.T.nH===R)return this.T;R=g.L4(this.segments,new zu(R,0,0,0,""),function(F,n){return F.nH-n.nH});
return this.T=R>=0?this.segments[R]:null};
g.X.K3=function(R){if(this.T&&this.T.startTime<=R&&R<this.T.startTime+this.T.duration)return this.T;R=g.L4(this.segments,{startTime:R},function(F,n){return F.startTime-n.startTime});
return this.T=R>=0?this.segments[R]:this.segments[Math.max(0,-R-2)]};
g.X.append=function(R){if(R.length)if(R=g.f4(R),this.segments.length){var F=this.segments.length?g.Ns(this.segments).endTime:0,n=R[0].nH-this.VZ();n>1&&P9E(this.segments);for(n=n>0?0:-n+1;n<R.length;n++){var V=R[n];V.startTime=F;V.endTime=V.startTime+V.duration;F+=R[n].duration;this.segments.push(R[n])}}else this.segments=R};
g.X.Zk=function(){return 0};Qs.prototype.skip=function(R){this.T+=R};var bR={},qj5=(bR.predictStart="predictStart",bR.start="start",bR["continue"]="continue",bR.stop="stop",bR),CJv={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};Cn.prototype.zo=function(){return!!(this.data["Stitched-Video-Id"]||this.data["Stitched-Video-Cpn"]||this.data["Stitched-Video-Duration-Us"]||this.data["Stitched-Video-Start-Frame-Index"]||this.data["Serialized-State"]||this.data["Is-Ad-Break-Finished"])};
Cn.prototype.toString=function(){for(var R="",F=g.m(Object.keys(this.data)),n=F.next();!n.done;n=F.next())n=n.value,R+=n+":"+this.data[n]+";";return R};gm.prototype.lG=function(){var R=this.pos;this.pos=0;var F=!1;try{DW(this,440786851)&&(this.pos=0,DW(this,408125543)&&(F=!0))}catch(n){if(n instanceof RangeError)this.pos=0,F=!1,g.mq(n);else throw n;}this.pos=R;return F};Nc.prototype.set=function(R,F){this.qX.get(R);this.T[R]=F;this.url=""};
Nc.prototype.get=function(R){return this.T[R]||this.qX.get(R)};
Nc.prototype.rD=function(){this.url||(this.url=GLW(this));return this.url};g.X=ZW.prototype;g.X.GY=function(R,F){return R.HI?this.V?this.Z=!0:this.Z=MqV(this,R,F):MqV(this,R,F)};
g.X.Dv=function(R){return this.U.get(R)};
g.X.du=function(){return this.U.get("cpn")||""};
g.X.xC=function(R,F){R.qX===this.T&&(this.T=El(R,F));R.qX===this.J&&(this.J=El(R,F))};
g.X.Ok=function(){return this.T!==this.J&&!this.Z};ri.prototype.o9=function(){return!!this.T&&this.index.isLoaded()};
ri.prototype.WC=function(){return!1};
ri.prototype.p8=function(R){return[R]};
ri.prototype.UT=function(R){return[R]};fg.prototype.toString=function(){return this.start+"-"+(this.end==null?"":this.end)};g.X=QR.prototype;g.X.YY=function(){return this.N&&this.A1.index.uj(this.nH)};
g.X.isEncrypted=function(){return this.A1.info.isEncrypted()};
g.X.equals=function(R){return!(!R||R.A1!==this.A1||R.type!==this.type||(this.range&&R.range?R.range.start!==this.range.start||R.range.end!==this.range.end:R.range!==this.range)||R.nH!==this.nH||R.T!==this.T||R.U!==this.U)};
g.X.EY=function(){return!!this.A1.info.video};
g.X.KX=function(){var R=s1(this),F="";g.DN(R,function(n,V){F+=V+"_"+n+"_"});
return F.slice(0,-1)};XQ.prototype.BH=function(){return this.T?this.T.rD():""};
XQ.prototype.isDecorated=function(){return!!(this.T||this.J&&this.J.Xd)};
XQ.prototype.hG=function(){return c1(this.OZ[0])};
XQ.prototype.xC=function(R,F){this.jn.xC(R,F);if(this.T){this.T=El(R,F);F=g.m(["acpns","cpn","daistate","skipsq"]);for(var n=F.next();!n.done;n=F.next())this.T[t[10]](n.value,null)}this.requestId=R.get("req_id")};g.a(TP,ri);g.X=TP.prototype;g.X.kC=function(){return!1};
g.X.qI=function(){return!0};
g.X.JP=function(){return!1};
g.X.WC=function(){return!this.W};
g.X.bK=function(){return new XQ([new QR(1,this,this.initRange,"getMetadataRequestInfo")],this.W)};
g.X.I_=function(){return null};
g.X.zn=function(R){this.bP(R);return this.qI()&&R.U&&!R.N?new XQ([new QR(R.type,R.A1,R.range,"liveGetNextRequestInfoBySegment",R.nH,R.startTime,R.duration,R.T+R.U,NaN,!0)],this.index.SS(R.nH)):this.ZJ(Lg(R),!1)};
g.X.KS=function(R,F){F=F===void 0?!1:F;R=this.index.kc(R);F&&(R=Math.min(this.index.VZ(),R+1));return this.ZJ(R,!0)};
g.X.Xp=function(R){xT(R)};
g.X.bP=function(R){return R.U===0?!0:this.index.VZ()>R.nH&&this.index.m1()<=R.nH+1};
g.X.update=function(R,F,n){this.index.append(R);XTN(this.index,n);R=this.index;R.U=F;R.N="update"};
g.X.o9=function(){return this.WC()?!0:ri.prototype.o9.call(this)};
g.X.ZJ=function(R,F){var n=this.index.SS(R),V=this.index.getStartTime(R),r=this.index.getDuration(R),v;F?r=v=0:v=this.info.yz>0?this.info.yz*r:1E3;return new XQ([new QR(3,this,void 0,"liveCreateRequestInfoForSegment",R,V,r,0,v,!F)],n)};
g.X.pL=function(){return this.WC()?0:this.initRange.length};
g.X.B9=function(){return!1};U1.prototype.update=function(R){var F=void 0;this.U&&(F=this.U);var n=new U1,V=Array.from(R.getElementsByTagName("S"));if(V.length){var r=+oR(R,"timescale")||1,v=(+V[0].getAttribute("t")||0)/r,f=+oR(R,"startNumber")||0;n.J=v;var z=F?F.startSecs+F.FP:0,q=Date.parse(wHJ(oR(R,"yt:segmentIngestTime")))/1E3;n.W=R.parentElement.tagName==="SegmentTemplate";n.W&&(n.X=oR(R,"media"));R=F?f-F.nH:1;n.Z=R>0?0:-R+1;R=g.m(V);for(V=R.next();!V.done;V=R.next()){V=V.value;for(var Q=+V.getAttribute("d")/r,c=(+V.getAttribute("yt:sid")||
0)/r,w=+V.getAttribute("r")||0,L=0;L<=w;L++)if(F&&f<=F.nH)f++;else{var S=new QTj(f,z,Q,q+c,v);n.T.push(S);var p=V;var C=r,y=S.startSecs;S=p.getAttribute("yt:cuepointTimeOffset");var u=p.getAttribute("yt:cuepointDuration");if(S&&u){S=Number(S);y=-S/C+y;C=Number(u)/C;u=p.getAttribute("yt:cuepointContext")||null;var B=p.getAttribute("yt:cuepointIdentifier")||"";p=p.getAttribute("yt:cuepointEvent")||"";p=new AI(y,C,u,B,qj5[p]||"unknown",S)}else p=null;p&&n.N.push(p);f++;z+=Q;v+=Q;q+=Q+c}}n.T.length&&
(n.U=g.Ns(n.T))}this.Z=n.Z;this.U=n.U||this.U;g.qN(this.T,n.T);g.qN(this.N,n.N);this.W=n.W;this.X=n.X;this.J===-1&&(this.J=n.getStreamTimeOffset())};
U1.prototype.getStreamTimeOffset=function(){return this.J===-1?0:this.J};g.a(H1,g.qc);g.X=H1.prototype;g.X.KE=function(){return this.WB};
g.X.Ap=function(R,F){R=hd(this,R);return R>=0&&(F||!this.segments[R].pending)};
g.X.m1=function(){return this.V3?this.segments.length?this.K3(this.RC()).nH:-1:g.qc.prototype.m1.call(this)};
g.X.RC=function(){if(this.Kl)return 0;if(!this.V3)return g.qc.prototype.RC.call(this);if(!this.segments.length)return 0;var R=Math.max(g.Ns(this.segments).endTime-this.f7,0);return this.bX>0&&this.K3(R).nH<this.bX?this.EU(this.bX).startTime:R};
g.X.Ug=function(){if(this.gN&&this.f2&&this.f2>0)return this.f2/1E3;if(!this.segments.length)return g.qc.prototype.Ug.call(this);var R=this.VZ();if(!this.V3||R<=this.segments[this.segments.length-1].nH)R=this.segments[this.segments.length-1];else{var F=this.segments[this.segments.length-1];R=new zu(R,Math.max(0,F.startTime-(F.nH-R)*this.WB),this.WB,0,"sq/"+R,void 0,void 0,!0)}return this.Kl?Math.min(this.f7,R.endTime):R.endTime};
g.X.vu=function(){return this.V3?this.segments.length?this.VZ()-this.m1()+1:0:g.qc.prototype.vu.call(this)};
g.X.VZ=function(){var R=Math.min(this.JD,Math.max(g.qc.prototype.VZ.call(this),this.IY)),F=this.f7*1E3;F=this.f2>0&&this.f2<F;this.Kl&&this.f7>0&&this.IY>0&&!F&&(F=this.K3(this.f7))&&(R=Math.min(F.nH-1,R));return R};
g.X.lK=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.X.bU=function(R){var F=hd(this,R.nH);if(F>=0)this.segments[F]=R;else if(this.segments.splice(-(F+1),0,R),this.Mo&&R.nH%(300/this.WB)===0){var n=this.segments[0].nH,V=Math.floor(this.Mo/this.WB);R=R.nH-V;F=-(F+1)-V;F>0&&R>n&&(this.segments=this.segments.slice(F))}};
g.X.yE=function(){return this.IY};
g.X.uj=function(R){return jo?!this.U&&R>=0&&this.VZ()<=R:g.qc.prototype.uj.call(this,R)};
g.X.K3=function(R){if(!this.V3)return g.qc.prototype.K3.call(this,R);if(!this.segments.length)return null;var F=this.segments[this.segments.length-1];if(R<this.segments[0].startTime)F=Math.max(0,this.segments[0].nH-Math.ceil((this.segments[0].startTime-R)/this.WB));else if(R>=F.endTime)F=F.nH+Math.floor((R-F.endTime)/this.WB+1);else{F=sm(this.segments,function(V){return R<V.startTime?-1:R>=V.endTime?1:0});
if(F>=0)return this.segments[F];var n=-(F+1);F=this.segments[n-1];n=this.segments[n];F=Math.floor((R-F.endTime)/((n.startTime-F.endTime)/(n.nH-F.nH-1))+1)+F.nH}return this.EU(F)};
g.X.EU=function(R){if(!this.V3)return g.qc.prototype.EU.call(this,R);if(!this.segments.length)return null;var F=hd(this,R);if(F>=0)return this.segments[F];var n=-(F+1);F=this.WB;if(n===0)var V=Math.max(0,this.segments[0].startTime-(this.segments[0].nH-R)*F);else n===this.segments.length?(V=this.segments[this.segments.length-1],V=V.endTime+(R-V.nH-1)*F):(V=this.segments[n-1],F=this.segments[n],F=(F.startTime-V.endTime)/(F.nH-V.nH-1),V=V.endTime+(R-V.nH-1)*F);return new zu(R,V,F,0,"sq/"+R,void 0,void 0,
!0)};
var jo=!1;g.a(W1,TP);g.X=W1.prototype;g.X.JP=function(){return!0};
g.X.o9=function(){return!0};
g.X.bP=function(R){return this.qI()&&R.U&&!R.N||!R.A1.index.uj(R.nH)};
g.X.bK=function(){};
g.X.KS=function(R,F){return typeof R!=="number"||isFinite(R)?TP.prototype.KS.call(this,R,F===void 0?!1:F):new XQ([new QR(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.L6,void 0,this.L6*this.info.yz)],"")};
g.X.ZJ=function(R,F){var n=n===void 0?!1:n;if(this.index.Ap(R))return TP.prototype.ZJ.call(this,R,F);var V=this.index.getStartTime(R),r=Math.round(this.L6*this.info.yz),v=this.L6;F&&(v=r=0);return new XQ([new QR(n?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",R,V,v,void 0,r,!F)],R>=0?"sq/"+R:"")};g.a(uo,ri);g.X=uo.prototype;g.X.kC=function(){return!1};
g.X.qI=function(){return!1};
g.X.JP=function(){return!1};
g.X.bK=function(){return new XQ([new QR(1,this,void 0,"otfInit")],this.W)};
g.X.I_=function(){return null};
g.X.zn=function(R){this.bP(R);return CTR(this,Lg(R),!1)};
g.X.KS=function(R,F){F=F===void 0?!1:F;R=this.index.kc(R);F&&(R=Math.min(this.index.VZ(),R+1));return CTR(this,R,!0)};
g.X.Xp=function(R){R.info.type===1&&(this.T||(this.T=Ty(R.U)),R.T&&R.T.uri==="http://youtube.com/streaming/otf/durations/112015"&&T8j(this,R.T))};
g.X.bP=function(R){return R.U===0?!0:this.index.VZ()>R.nH&&this.index.m1()<=R.nH+1};
g.X.pL=function(){return 0};
g.X.B9=function(){return!1};var ULN=new Map,hY_=new Map,jTI=new function(){var R=this;this.T=new Map;this.hJ={y_X:function(){return R.T}}};g.X=g.kT.prototype;g.X.Ap=function(R){return R<=this.VZ()};
g.X.R$=function(R){return this.offsets[R]};
g.X.getStartTime=function(R){return this.startTicks[R]/this.T};
g.X.fL=function(R){return this.getStartTime(R)+this.getDuration(R)};
g.X.HH=i9(2);g.X.wD=function(){return NaN};
g.X.getDuration=function(R){R=this.WZ(R);return R>=0?R/this.T:-1};
g.X.WZ=function(R){return R+1<this.count||this.U?this.startTicks[R+1]-this.startTicks[R]:-1};
g.X.KE=function(){return 0};
g.X.m1=function(){return 0};
g.X.VZ=function(){return this.count-1};
g.X.uj=function(R){return this.VZ()===R&&R>=0};
g.X.Ug=function(){return this.U?this.startTicks[this.count]/this.T:NaN};
g.X.RC=function(){return 0};
g.X.vu=function(){return this.count};
g.X.SS=function(){return""};
g.X.kc=function(R){R=g.L4(this.startTicks.subarray(0,this.count),R*this.T);return R>=0?R:Math.max(0,-R-2)};
g.X.isLoaded=function(){return this.VZ()>=0};
g.X.Zk=function(R,F){if(R>=this.VZ())return 0;var n=0;for(F=this.getStartTime(R)+F;R<this.VZ()&&F>this.getStartTime(R);R++)n=Math.max(n,KGW(this,R)/this.getDuration(R));return n};
g.X.resize=function(R){R+=2;var F=this.offsets;this.offsets=new Float64Array(R+1);var n=this.startTicks;this.startTicks=new Float64Array(R+1);for(R=0;R<this.count+1;R++)this.offsets[R]=F[R],this.startTicks[R]=n[R]};
g.X.cap=function(R,F){Jd(this);this.U=!0;this.startTicks[this.count]=F;this.offsets[this.count]=R};g.a(GP,ri);g.X=GP.prototype;g.X.bK=function(R,F){var n=new QR(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,F),V=[new QR(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,F),n];this.info.contentLength>0&&R&&(n=n.range.end+1,R=Math.min(R,this.info.contentLength-n),R>0&&V.push(new QR(4,this,zP(n,R),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,F)));return new XQ(V)};
g.X.Xp=function(R){if(R.info.type===1){if(this.T)return;this.T=Ty(R.U)}else if(R.info.type===2){if(this.W||this.index.VZ()>=0)return;if(g.Ey(this.info)){var F=this.index,n=g.O1(R);R=R.info.range.start;var V=g.o0(n,0,1936286840);n=BEk(V);F.T=n.timescale;var r=n.d3;F.offsets[0]=n.Pa+R+V.size;F.startTicks[0]=r;F.U=!0;R=n.mG.length;for(V=0;V<R;V++){r=F;var v=n.ktQ[V],f=n.mG[V];r.count++;Jd(r);r.offsets[r.count]=r.offsets[r.count-1]+v;r.startTicks[r.count]=r.startTicks[r.count-1]+f}}else this.W=g.O1(R)}if(this.info.UY()&&
this.T&&this.W){n=new DataView(this.T.buffer);F=this.index;V=this.W;R=this.indexRange.end;r=new gm(n);n=r;r=n.pos;v={CM:1E6,IH:1E9,duration:0,Sg:0,b5:0};if(DW(n,408125543))if(v.Sg=i2(n,!0),v.b5=n.start+n.pos,DW(n,357149030)){for(f=Kn(n);!Ol(f);){var z=i2(f,!1);z===2807729?v.CM=ka(f):z===2807730?v.IH=ka(f):z===17545?v.duration=JI(f):Ya(f)}n.pos=r;n=v}else n.pos=r,n=null;else n.pos=r,n=null;if(n!==null){F.T=n.IH/n.CM;r=new gm(V);V=r;f=n.b5;r=V.pos;v=[];if(DW(V,475249515)){for(z=Kn(V);DW(z,187);){var q=
Kn(z);if(DW(q,179)){var Q=ka(q);if(DW(q,183)){q=Kn(q);for(var c=f;DW(q,241);)c=ka(q)+f;v.push({XS:c,KB:Q})}}}if(v.length>0&&R===v[0].XS)for(R=0;R<v.length;R++)v[R].XS+=1;V.pos=r;R=v}else V.pos=r,R=null;if(R!==null){R=g.m(R);for(V=R.next();!V.done;V=R.next())v=V.value,V=F,r=v.XS,v=v.KB,Jd(V),V.offsets[V.count]=r,V.startTicks[V.count]=v,V.count++;F.cap(n.Sg+n.b5,n.duration)}}this.W=null}};
g.X.P4=function(R,F,n){for(var V=[],r=R;r<=this.index.VZ();r++){var v=zP(this.index.R$(r),KGW(this.index,r)),f=this.index.getStartTime(r),z=this.index.getDuration(r),q=Math.max(0,F-v.start),Q=Math.min(v.end+1,F+n)-(v.start+q);V.push(new QR(3,this,v,"getRequestInfoForRange",r,f,z,q,Q));if(v.start+q+Q>=F+n)break}V.length||(R=new g.UR("b189619593",""+R,""+F,""+n),g.uX(R));return new XQ(V)};
g.X.p8=function(R){for(var F=this.UT(R.info),n=R.info.range.start+R.info.T,V=[],r=0;r<F.length;r++){var v=Xv(R.U,F[r].range.start+F[r].T-n,F[r].U);V.push(new gi(F[r],v))}return V};
g.X.UT=function(R){for(var F=R.range.start+R.T,n=0;n<this.index.VZ()&&F>=this.index.R$(n+1);)n++;return this.P4(n,F,R.U).OZ};
g.X.bP=function(R){R.YY();return this.o9()?!0:R.range.end+1<this.info.contentLength};
g.X.I_=function(R,F){this.bP(R);if(!this.o9())return F=zP(R.range.end+1,F),F.end+1>this.info.contentLength&&(F=new fg(F.start,this.info.contentLength-1)),new XQ([new QR(4,R.A1,F,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,R.clipId)]);R.type===4&&(R=this.UT(R),R=R[R.length-1]);var n=0,V=R.range.start+R.T+R.U;R.type===3&&(R.YY(),n=R.nH,V===R.range.end+1&&(n+=1));return this.P4(n,V,F)};
g.X.zn=function(){return null};
g.X.KS=function(R,F){F=F===void 0?!1:F;R=this.index.kc(R);F&&(R=Math.min(this.index.VZ(),R+1));return this.P4(R,this.index.R$(R),0)};
g.X.kC=function(){return!0};
g.X.qI=function(){return!0};
g.X.JP=function(){return!1};
g.X.pL=function(){return this.indexRange.length+this.initRange.length};
g.X.B9=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var ZO={},Zbj=(ZO.COLOR_PRIMARIES_BT709="bt709",ZO.COLOR_PRIMARIES_BT2020="bt2020",ZO.COLOR_PRIMARIES_UNKNOWN=null,ZO.COLOR_PRIMARIES_UNSPECIFIED=null,ZO),eV={},ibE=(eV.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",eV.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",eV.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",eV.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",eV.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,eV.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,eV);g.X=g.di.prototype;g.X.getName=function(){return this.name};
g.X.getId=function(){return this.id};
g.X.getIsDefault=function(){return this.isDefault};
g.X.getIsAutoDubbed=function(){return this.isAutoDubbed};
g.X.toString=function(){return this.name};
g.di.prototype.getName=g.di.prototype.getName;g.di.prototype.getId=g.di.prototype.getId;g.di.prototype.getIsDefault=g.di.prototype.getIsDefault;g.di.prototype.getIsAutoDubbed=g.di.prototype.getIsAutoDubbed;var JQN=/action_display_post/;var G$f,Nd,E1;g.a($T,g.fG);g.X=$T.prototype;g.X.isLoading=function(){return this.state===1};
g.X.fW=function(){return this.state===3};
g.X.Kh5=function(R){var F=R.getElementsByTagName("Representation");if(R.getElementsByTagName("SegmentList").length>0||R.getElementsByTagName("SegmentTemplate").length>0){this.Zt=this.U=!0;this.Z||(this.Z=new LGN);AQv(this.Z,R);this.publish("refresh");for(R=0;R<F.length;R++){var n=fDR(this,F[R]);if(!this.T[n.id]){var V=Rc(yR(F[R],"BaseURL").textContent),r=yR(F[R],"Initialization"),v=oR(r,"sourceURL");r=td(oR(r,"range"));this.T[n.id]=new TP(V,n,v,r)}n=this.T[n.id];V=oR(F[R],"id","AdaptationSet");V=
V!==""?V:oR(F[R],"mimetype","AdaptationSet");v=this.Z;v=v.N[n.info.id]||v.U[V]||v.T||null;V=v.T;!this.V&&v.getStreamTimeOffset()&&(this.V=v.getStreamTimeOffset());if(v.W){r=[];V=g.m(V);for(var f=V.next();!f.done;f=V.next()){f=f.value;var z=n.info.id,q=n.info.yz*8,Q=f.nH;var c=f.startSecs;var w=v.X.split("$$");for(var L=0;L<w.length;L++)w[L]=w[L].replace("$RepresentationID$",z),w[L]=w[L].replace("$Number$",Q.toString()),w[L]=w[L].replace("$Bandwidth$",q.toString()),w[L]=w[L].replace("$Time$",c.toString());
r.push(new zu(f.nH,f.startSecs,f.FP,f.T,w.join("$"),null,f.U))}V=r}else{v=QK(yR(F[R],"SegmentList").getElementsByTagName("SegmentURL"),v.Z);r=[];for(f=0;f<v.length;f++){z=r;q=z.push;Q=V[f];c=void 0;L=v[f];w=L.getAttribute("media");if(L=L.getAttribute("mediaRange")){var S=L.split("-");S[1]&&Number(S[1])>=0?c=td(L):w=w+"?range="+L}q.call(z,new zu(Q.nH,Q.startSecs,Q.FP,Q.T,w,c,Q.U))}V=r}n.update(V,this.isLive,this.gX)}a8N(this.Z);return!0}this.duration=cQj(oR(R,"mediaPresentationDuration"));a:{for(R=
0;R<F.length;R++){v=F[R];n=fDR(this,v);V=Rc(yR(v,"BaseURL").textContent);r=yR(v,"SegmentBase");v=td(r.attributes.getNamedItem("indexRange").value);r=td(r.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);n=new GP(V,n,r,v);if(!n){F=!1;break a}lo(this,n)}F=!0}return F};
g.X.refresh=function(){if(!this.isLoading()&&!this.Zo()){var R=g.DI(this.sourceUrl,{start_seq:QiN(this).toString()});zjN(this,R).h5(function(){})}};
g.X.resume=function(){tL9(this)};
g.X.fX=function(){if(this.isManifestless&&this.X&&np(this))return np(this);var R=this.T,F=!1,n=NaN,V=NaN,r;for(r in R){var v=R[r],f=v.index;f.isLoaded()&&!el(v.info.mimeType)&&(v.J&&(F=!0),f=f.Ug(),v.info.cB()&&(isNaN(n)||f<n)?n=f:v.info.EY()&&(isNaN(V)||f<V)&&(V=f))}return F||isNaN(V)?n:Math.min(n,V)};
g.X.RC=function(){if(this.isManifestless){if(Vg(this))return Vg(this);if(this.w8){var R=this.wD(this.fX());if(R&&(R-=this.w8,R>0))return this.fX()-R}}R=this.T;for(var F in R){var n=R[F].index;if(n.isLoaded()&&!el(R[F].info.mimeType))return n.RC()}return 0};
g.X.getStreamTimeOffset=function(){return this.V};
g.X.wD=function(R){for(var F in this.T){var n=this.T[F].index;if(n.isLoaded()){var V=n.kc(R),r=n.wD(V);if(r)return r+R-n.getStartTime(V)}}return NaN};
var qr=null,Qes,Qg=!((Qes=navigator.mediaCapabilities)==null||!Qes.decodingInfo),vuV={commentary:1,alternate:2,dub:3,main:4};var fP=new Set,cp=new Map;Lp.prototype.clone=function(R){return new Lp(this.flavor,R,this.U,this.experiments)};
Lp.prototype.fC=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
Lp.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 c8h={},UV=(c8h.playready=["com.youtube.playready","com.microsoft.playready"],c8h.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],c8h),R9={},X9E=(R9.widevine="DRM_SYSTEM_WIDEVINE",R9.fairplay="DRM_SYSTEM_FAIRPLAY",R9.playready="DRM_SYSTEM_PLAYREADY",R9),FT={},w$v=(FT.widevine=1,FT.fairplay=2,FT.playready=3,FT);var hW;g.a(jU,g.G);
jU.prototype.initialize=function(R,F){for(var n=this,V=g.m(Object.keys(R)),r=V.next();!r.done;r=V.next()){r=g.m(R[r.value]);for(var v=r.next();!v.done;v=r.next())if(v=v.value,v.lL)for(var f=g.m(Object.keys(v.lL)),z=f.next();!z.done;z=f.next()){var q=z.value;z=q;q=UV[q];!q&&this.B("html5_enable_vp9_fairplay")&&z==="fairplay"&&(q=["com.youtube.fairplay.sbdl"]);if(q){q=g.m(q);for(var Q=q.next();!Q.done;Q=q.next())Q=Q.value,this.N[Q]=this.N[Q]||new Lp(z,Q,v.lL[z],this.Qz.experiments),this.T[z]=this.T[z]||
{},this.T[z][v.mimeType]=!0}}}bx()&&(this.N["com.youtube.fairplay"]=new Lp("fairplay","com.youtube.fairplay","",this.Qz.experiments),this.B("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.U=aDE(F,this.useCobaltWidevine,this.B("html5_enable_safari_fairplay")&&!0,this.B("html5_enable_vp9_fairplay")).filter(function(c){return!!n.N[c]})};
jU.prototype.B=function(R){return this.Qz.experiments.GH(R)};var Sj7={"":"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"};var L7v={RED:"red",qgZ:"white"};ui.prototype.pH=function(R){if(R.Vx!==3)throw Error("WpccFlagRetriever only supports WPCC flags");return WZV(this,R)};
ui.prototype.GH=function(R){return this.flags.get(""+R)==="true"};Bp.prototype.rg=function(){return this.N};
Bp.prototype.Qr=function(){return this.U};
Bp.prototype.GH=function(R){R=this.pH(R);JSON.stringify(R);return R==="true"};
Bp.prototype.pH=function(R){return this.flags[R]};var m5f=Promise.resolve(),KZR=window.queueMicrotask?window.queueMicrotask.bind(window):guJ;g3.prototype.canPlayType=function(R,F){R=R.canPlayType?R.canPlayType(F):!1;lV?R=R||Lrr[F]:R$===2.2?R=R||ser[F]:$i()&&(R=R||p$7[F]);return!!R};
g3.prototype.isTypeSupported=function(R){return this.V?window.cast.receiver.platform.canDisplayType(R):Lb(R)};
var ser={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},p$7={"application/x-mpegURL":"maybe"},Lrr={"application/x-mpegURL":"maybe"};g.a(Kp,g.fG);Kp.prototype.add=function(R,F){if(!this.items[R]&&(F.Z$||F.yKG||F.uB)){var n=this.items,V=F;Object.isFrozen&&!Object.isFrozen(F)&&(V=Object.create(F),Object.freeze(V));n[R]=V;this.publish("vast_info_card_add",R)}};
Kp.prototype.remove=function(R){var F=this.get(R);delete this.items[R];return F};
Kp.prototype.get=function(R){return this.items[R]||null};
Kp.prototype.isEmpty=function(){return g.g7(this.items)};D0.prototype.encrypt=function(R){this.T.exports.AES128CTRCipher_encrypt(this.cipher,R.byteOffset,R.byteLength);return R};
D0.prototype.Zo=function(){return this.cipher===0};
D0.prototype.dispose=function(){this.T.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};x0.prototype.jx=function(R,F){F=F===void 0?1:F;this.f$+=F;this.U+=R;R/=F;for(var n=0;n<ii.length&&!(R<ii[n]);++n)this.T[n]+=F};
x0.prototype.toString=function(){return""};
var ii=[20,100,500,2E3];g.X=JzJ.prototype;g.X.isActive=function(){return!0};
g.X.Yu=function(R,F){if(F){var n=this,V={},r;for(r in F)V={wU:void 0,XH:void 0},F.hasOwnProperty(r)&&(V.XH=R.prototype[r],V.wU=F[r],R.prototype[r]=function(v){return function(){var f=g.Cq.apply(0,arguments),z=this,q=(0,g.h1)(),Q=v.XH.apply(z,f);return MLk(n,Q,null,q,function(c){return v.wU.apply(z,[c].concat(f))})}}(V))}};
g.X.JL=function(){return new Y8N};
g.X.Bu=function(R,F,n){n=n===void 0?1:n;F instanceof Y8N&&(GrN(this,R,(0,g.h1)()-F.startTimeMs,n),F.T=!0)};
g.X.H9=function(R,F){var n=(0,g.h1)();F=F();MLk(this,F,R,n)};
g.X.TF=function(){var R={},F;for(F in this.T)if(this.T.hasOwnProperty(F)){var n=this.T[F];if(n.f$===0)n=null;else{for(var V=Math.ceil(n.f$).toFixed(0)+"."+n.U.toFixed(0),r=0;r<ii.length;++r)if(n.T[r]>0)V+="."+ii[r].toFixed(0)+"_"+n.T[r].toFixed(0);else break;n=V}n&&(R[F]=n)}this.T=new kr_;return R};
g.X.toString=function(){return""};g.X=lD9.prototype;g.X.isActive=function(){return!1};
g.X.Yu=function(){};
g.X.JL=function(){};
g.X.Bu=function(){};
g.X.H9=function(R,F){F()};
g.X.TF=function(){return{}};
g.X.toString=function(){return""};var X$$=new lD9,A87=!!+Rk("html5_enable_profiler"),a$s=!!+Rk("html5_onesie_enable_profiler"),nH=A87||a$s?new JzJ:X$$,z9j=A87?nH:X$$,Y0=a$s?nH:X$$;ejR.prototype.emscripten_notify_memory_growth=function(){};g.X=k0.prototype;g.X.malloc=function(R){return this.exports.malloc(R)};
g.X.free=function(R){this.exports.free(R)};
g.X.realloc=function(R,F){return this.exports.realloc(R,F)};
g.X.Jj=function(R){var F=this.malloc(R.byteLength);F=new Uint8Array(this.exports.memory.buffer,F,R.byteLength);F.set(R);return F};
g.X.O2=function(R){var F=R.slice();R.buffer===this.exports.memory.buffer&&this.free(R.byteOffset);return F};
var P_v=new function(){this.T="WebAssembly"in window},JW="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);
Y0.Yu(k0,{Jj:function(R){return{profile:"copyj2w",f$:R===void 0?0:Math.ceil(R.byteLength/16)}},
O2:function(R){return{profile:"copyw2j",f$:R===void 0?0:Math.ceil(R.byteLength/16)}}});Gp.prototype.encrypt=function(R,F){return V9v(this,R,F,!1).JA};
Gp.prototype.Zo=function(){return this.J};
Gp.prototype.dispose=function(){this.Zo()||(g.Cv(this.U),this.N&&this.T.free(this.N.byteOffset),this.J=!0)};d3.prototype.encrypt=function(R,F){try{return this.T.encrypt(R,F)}catch(n){OK(n,"wasm ocwce"),g.mq(n)}};
d3.prototype.Zo=function(){return this.T.Zo()};
d3.prototype.dispose=function(){this.T.dispose()};g.a(rAk,g.G);g.a(ffE,g.G);g.a(z_W,g.G);var SkW="blogger discover-ads ads-preview ads-fe gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),afW={GYo:"caoe",ub1:"capsv",A8Q:"cbrand",Qs2:"cbr",wEG:"cbrver",nbS:"cchip",IsX:"ccappver",Dd2:"ccrv",vC2:"cfrmver",Q8S:"c",PuG:"cver",wAq:"ctheme",Ws2:"cplayer",lBX:"cmodel",qz:"cnetwork",VhQ:"cos",OS_VERSION:"cosver",fBQ:"cplatform",qMG:"crqyear"};g.a(Qw,g.G);g.X=Qw.prototype;g.X.B=function(R){return this.experiments.GH(R)};
g.X.rg=function(){return this.experiments.rg()};
g.X.Qr=function(){return this.experiments.Qr()};
g.X.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig};
g.X.getVideoUrl=function(R,F,n,V,r,v,f){F={list:F};n&&(r?F.time_continue=n:F.t=n);n=f?"music.youtube.com":g.wg(this);r=n==="www.youtube.com";!v&&V&&r?v="https://youtu.be/"+R:g.Vw(this)?(v="https://"+n+"/fire",F.v=R):(v&&r?(v=this.protocol+"://"+n+"/shorts/"+R,V&&(F.feature="share")):(v=this.protocol+"://"+n+"/watch",F.v=R),lV&&(R=ADJ())&&(F.ebc=R));return g.DI(v,F)};
g.X.getVideoEmbedCode=function(R,F,n,V){F="https://"+g.wg(this)+"/embed/"+F;V&&(F=g.DI(F,{list:V}));V=n.width;n=n.height;F=$6(F);R=$6(R!=null?R:"YouTube video player");return'<iframe width="'+V+'" height="'+n+'" src="'+F+'" title="'+(R+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')};
g.X.supportsGaplessAudio=function(){return g.Sl&&!lV&&lx()>=74||g.oc&&g.ru(68)?!0:!1};
g.X.supportsGaplessShorts=function(){return!this.B("html5_enable_short_gapless")||this.gX||g.A1?!1:!0};
g.X.getPlayerType=function(){return this.T.cplayer};
g.X.CC=function(){return this.FG};
g.X.b0=function(){return this.J&&this.B("embeds_enable_innertube_store")};
var yAN=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],AAI=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],TIj=[19];var Vh={},W7E=(Vh["140"]={numChannels:2},Vh["141"]={numChannels:2},Vh["251"]={audioSampleRate:48E3,numChannels:2},Vh["774"]={audioSampleRate:48E3,numChannels:2},Vh["380"]={numChannels:6},Vh["328"]={numChannels:6},Vh["773"]={},Vh),rJ={},Hf9=(rJ["1"]='video/mp4; codecs="av01.0.08M.08"',rJ["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',rJ["1e"]='video/mp4; codecs="av01.0.08M.08"',rJ["9"]='video/webm; codecs="vp9"',rJ["("]='video/webm; codecs="vp9"',rJ["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',
rJ.h='video/mp4; codecs="avc1.64001e"',rJ.H='video/mp4; codecs="avc1.64001e"',rJ.o='audio/webm; codecs="opus"',rJ.a='audio/mp4; codecs="mp4a.40.2"',rJ.ah='audio/mp4; codecs="mp4a.40.2"',rJ.mac3='audio/mp4; codecs="ac-3"; channels=6',rJ.meac3='audio/mp4; codecs="ec-3"; channels=6',rJ.i='audio/mp4; codecs="iamf.001.001.Opus"',rJ),vX={},h_9=(vX["337"]={width:3840,height:2160,bitrate:3E7,fps:30},vX["336"]={width:2560,height:1440,bitrate:15E6,fps:30},vX["335"]={width:1920,height:1080,bitrate:75E5,fps:30},
vX["702"]={width:7680,height:4320,bitrate:4E7,fps:60},vX["701"]={width:3840,height:2160,bitrate:2E7,fps:60},vX["700"]={width:2560,height:1440,bitrate:1E7,fps:60},vX["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},vX["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},vX["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},vX["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},
vX["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},vX["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},vX["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},vX["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},vX["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},vX["315"]={width:3840,height:2160,bitrate:2E7,fps:60},vX["308"]={width:2560,
height:1440,bitrate:1E7,fps:60},vX["303"]={width:1920,height:1080,bitrate:5E6,fps:60},vX["302"]={width:1280,height:720,bitrate:25E5,fps:60},vX["299"]={width:1920,height:1080,bitrate:75E5,fps:60},vX["298"]={width:1280,height:720,bitrate:35E5,fps:60},vX["571"]={width:7680,height:4320,bitrate:3E7,fps:60},vX["401"]={width:3840,height:2160,bitrate:15E6,fps:60},vX["400"]={width:2560,height:1440,bitrate:75E5,fps:60},vX["399"]={width:1920,height:1080,bitrate:2E6,fps:60},vX["398"]={width:1280,height:720,bitrate:1E6,
fps:60},vX["397"]={width:854,height:480,bitrate:4E5,fps:30},vX["396"]={width:640,height:360,bitrate:25E4,fps:30},vX["787"]={width:1080,height:608,bitrate:2E5,fps:30},vX["788"]={width:1080,height:608,bitrate:4E5,fps:30},vX["572"]={width:7680,height:4320,bitrate:3E7,fps:60},vX["555"]={width:3840,height:2160,bitrate:15E6,fps:60},vX["554"]={width:2560,height:1440,bitrate:75E5,fps:60},vX["553"]={width:1920,height:1080,bitrate:2E6,fps:60},vX["552"]={width:1280,height:720,bitrate:1E6,fps:60},vX["551"]={width:854,
height:480,bitrate:4E5,fps:30},vX["550"]={width:640,height:360,bitrate:25E4,fps:30},vX["313"]={width:3840,height:2160,bitrate:8E6,fps:30},vX["271"]={width:2560,height:1440,bitrate:4E6,fps:30},vX["248"]={width:1920,height:1080,bitrate:2E6,fps:30},vX["247"]={width:1280,height:720,bitrate:15E5,fps:30},vX["244"]={width:854,height:480,bitrate:52E4,fps:30},vX["243"]={width:640,height:360,bitrate:28E4,fps:30},vX["137"]={width:1920,height:1080,bitrate:4E6,fps:30},vX["136"]={width:1280,height:720,bitrate:3E6,
fps:30},vX["135"]={width:854,height:480,bitrate:1E6,fps:30},vX["385"]={width:1920,height:1080,bitrate:6503313,fps:60},vX["376"]={width:1280,height:720,bitrate:5706960,fps:60},vX["384"]={width:1280,height:720,bitrate:3660979,fps:60},vX["225"]={width:1280,height:720,bitrate:5805E3,fps:30},vX["224"]={width:1280,height:720,bitrate:453E4,fps:30},vX["145"]={width:1280,height:720,bitrate:2682052,fps:30},vX);g.X=uk.prototype;g.X.getInfo=function(){return this.T};
g.X.MS=function(){return null};
g.X.PZ=function(){var R=this.MS();return R?(R=g.zg(R.jn),Number(R.expire)):NaN};
g.X.ZC=function(){};
g.X.getHeight=function(){return this.T.video.height};gpR.prototype.build=function(){K76(this);var R=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],F={};a:if(this.T)var n=this.T;else{n="";for(var V=g.m(this.N),r=V.next();!r.done;r=V.next())if(r=r.value,r.z9){if(r.z9.getIsDefault()){n=r.z9.getId();break a}n||(n=r.z9.getId())}}V=g.m(this.N);for(r=V.next();!r.done;r=V.next())if(r=r.value,this.Z||!r.z9||r.z9.getId()===n)F[r.itag]||(F[r.itag]=[]),F[r.itag].push(r);n=g.m(this.U);for(V=n.next();!V.done;V=n.next())if(V=V.value,r=F[V.T]){r=g.m(r);for(var v=r.next();!v.done;v=
r.next()){var f=R,z=f.push;v=v.value;var q="#EXT-X-MEDIA:TYPE=AUDIO,",Q="YES",c="audio";if(v.z9){c=v.z9;var w=c.getId().split(".")[0];w&&(q+='LANGUAGE="'+w+'",');(this.T?this.T===c.getId():c.getIsDefault())||(Q="NO");c=c.getName()}w="";V!==null&&(w=V.itag.toString());w=mm(this,v.url,w);q=q+('NAME="'+c+'",DEFAULT='+(Q+',AUTOSELECT=YES,GROUP-ID="'))+(IfE(v,V)+'",URI="'+(w+'"'));z.call(f,q)}}n=g.m(this.W);for(V=n.next();!V.done;V=n.next())V=V.value,r=CSz,V=(f=V.z9)?'#EXT-X-MEDIA:URI="'+mm(this,V.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+r+'",LANGUAGE="'+f.getId()+'",NAME="'+f.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,V&&R.push(V);n=this.W.length>0?CSz:void 0;V=g.m(this.U);for(r=V.next();!r.done;r=V.next())r=r.value,z=F[r.T],f=void 0,((f=z)==null?void 0:f.length)>0&&(f=r,z=z[0],z="#EXT-X-STREAM-INF:BANDWIDTH="+(f.bitrate+z.bitrate)+',CODECS="'+(f.codecs+","+z.codecs+'",RESOLUTION=')+(f.width+"x"+f.height+',AUDIO="')+(IfE(z,f)+'",')+(n?'SUBTITLES="'+n+'",':"")+"CLOSED-CAPTIONS=NONE",f.fps>1&&(z+=
",FRAME-RATE="+f.fps),f.xz&&(z+=",VIDEO-RANGE="+f.xz),R.push(z),R.push(mm(this,r.url,"")));return R.join("\n")};
var CSz="text";g.a(gg,uk);gg.prototype.PZ=function(){return this.expiration};
gg.prototype.MS=function(){if(!this.jn||this.jn.Zo()){var R=this.U.build();R="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(R);this.jn=new L6(R)}return this.jn};g.a(OP,uk);OP.prototype.MS=function(){return new L6(this.U.rD())};
OP.prototype.ZC=function(){this.U=pW(6,this.U)};g.a(I$,uk);I$.prototype.MS=function(){return new L6(this.U)};var fH={},lfN=(fH.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",fH.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",fH.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",fH.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",fH);g.X=g.K9.prototype;g.X.getId=function(){return this.id};
g.X.getName=function(){return this.name};
g.X.isServable=function(){return this.T};
g.X.rD=function(){return this.url};
g.X.getXtags=function(){return this.xtags};
g.X.toString=function(){return this.languageCode+": "+g.Dv(this)+" - "+this.vssId+" - "+(this.captionId||"")};
g.X.equals=function(R){return R?this.toString()===R.toString():!1};
g.X.XP=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var ZfR={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},e_R={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},RUv=/^(\d*)_((\d*)_?(\d*))$/;var nUR={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Vt6={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var th={},vUN=(th.ALWAYS=1,th.BY_REQUEST=3,th.UNKNOWN=void 0,th),z1={},gUe=(z1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",z1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",z1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",z1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",z1);var miN;
miN=function(R){for(var F=Object.keys(R),n={},V=0;V<F.length;V++){var r=F[V];typeof R[r]==="function"&&(n[r]=R[r])}var v=Object.keys(n);try{zvN(n)}catch(z){var f=z}return function(z,q){z=z===void 0?{}:z;if(f)throw f;for(var Q=!1,c={},w=0;w<v.length;w++){var L=v[w],S=z[L],p=(0,n[L])(S,q);if(typeof p==="undefined")throw z=q&&q.type,Error("When called with an action of type "+(z?'"'+String(z)+'"':"(unknown type)")+', the slice reducer for key "'+L+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');c[L]=
p;Q=Q||p!==S}return(Q=Q||v.length!==Object.keys(z).length)?c:z}}({entities:function(R,F){R=R===void 0?{}:R;
return Mf6(R,F)}});
g.jZ=new SA;NA.prototype.toString=function(){return this.type+this.id};$_.prototype.BB=function(R){R=R||"hqdefault.jpg";var F=this.Su[R];if(F)return F;if(R==="sddefault.jpg"||R==="hq720.jpg"||R==="maxresdefault.jpg")return F;if(this.T)return ST(this.Qz,this.T,R)};
$_.prototype.n6=function(){return this.Qz.getVideoUrl(this.videoId,this.playlistId)};PV.prototype.BB=function(R){R||(R="hqdefault.jpg");var F=this.Su[R];return F?F:R==="pop1.jpg"||R==="pop2.jpg"||R==="sddefault.jpg"||R==="hq720.jpg"||R==="maxresdefault.jpg"?F:ST(this.Qz,this.videoId,R)};
PV.prototype.n6=function(R){return this.watchUrl||this.Qz.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,R)};var eT=void 0;Byv("LMS",function(){return g.Y(function(R){return R.return(g.Ro())})});var rd;rd=0;g.EUI=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;Byv("LMDB",function(){var R,F;return g.Y(function(n){if(n.T==1)return g.k(n,g.R5(),2);if(n.T!=3){R=n.U;if(!R)throw g.C3("edd");return g.k(n,g.Vq(R),3)}F=n.U;return n.return(g.Og(F,["index","media","captions"],{mode:"readonly",Xs:!0},function(V){var r={};V=[g.K3(V.objectStore("index"),{},function(v){r[v.cursor.key]=v.getValue();return g.DY(v)}),
VIf(V.objectStore("media")),VIf(V.objectStore("captions"))];return g.o8.all(V).then(function(v){var f=g.m(v);f.next();v=f.next().value;f=f.next().value;return{index:r,media:$9f(v||[]),captions:f}})}))})});g.a(fM,g.fG);fM.prototype.oG=function(){this.T&&(this.T=this.T.onload=null);g.fG.prototype.oG.call(this)};g.X=g.Qq.prototype;g.X.getHeight=function(){return this.height};
g.X.bA=i9(4);g.X.zN=function(){return this.frameCount};
g.X.isDefault=function(){return this.N.indexOf("default")!==-1};
g.X.isLoaded=function(R){return this.loaded.has(R)};
g.X.rD=function(R){var F=this.J;F=F.replace("$N",this.N);F=F.replace("$L",this.level.toString());F=F.replace("$M",R.toString());this.signature&&(F=g.DI(F,{sigh:this.signature}));return MQ(F)};
g.X.ZI=function(R){var F=this.zN()-1;return g.vI(this.T===0?Math.round(R*this.frameCount/this.videoLength):Math.round(R*1E3/this.T),0,F)};
g.X.DS=function(){return this.frameCount-1};
g.X.vx=function(){return this.frameCount?0:-1};
g.X.ye=function(){};g.a(ch,fM);ch.prototype.U=function(R,F){var n=[];R=R.split("|");for(var V=R[0],r=1;r<R.length;r++){var v=this.W(r-1,V,R[r],F);(this.X||v.getHeight()<180)&&n.push(v)}return n};
ch.prototype.W=function(R,F,n,V){return new g.Qq(R,F,n,V)};g.a(wd,g.Qq);g.X=wd.prototype;g.X.zN=function(){return this.U.vu()};
g.X.ZI=function(R){var F=this.rows*this.columns*this.W,n=this.U,V=n.VZ();R=n.kc(R);return R>V-F?-1:R};
g.X.DS=function(){return this.U.VZ()};
g.X.vx=function(){return this.U.m1()};
g.X.ye=function(R){this.U=R};g.a(SZ,ch);SZ.prototype.U=function(R,F){return ch.prototype.U.call(this,"$N|"+R,F)};
SZ.prototype.W=function(R,F,n){return new wd(R,F,n,this.isLive)};g.a(g.sr,g.fG);g.X=g.sr.prototype;
g.X.setData=function(R){var F=this;R=R||{};var n=R.errordetail;n!=null&&(this.errorDetail=n);var V=R.errorcode;V!=null?this.errorCode=V:R.status==="fail"&&(this.errorCode="auth");var r=R.reason;r!=null&&(this.errorReason=r);var v=R.subreason;v!=null&&(this.kK=v);if(this.B("web_player_misc_bugfix_b")?this.clientPlaybackNonce==null:!this.clientPlaybackNonce){var f;this.clientPlaybackNonce=(f=R.cpn)!=null?f:this.Qz.CC()?"r"+g.s$(15):g.s$(16);var z;(z=this.Cf)==null||z.clear()}this.Fi=zQ(this.Qz.Fi,R.livemonitor);
V29(this,R);var q=R.raw_player_response;if(q)this.zR=q;else{var Q=R.player_response;Q&&(q=JSON.parse(Q))}q&&(this.playerResponse=q);if(this.playerResponse){var c=this.playerResponse.annotations;c&&fqR(this,c);var w=this.playerResponse.attestation;w&&ttR(this,w);var L=this.playerResponse.cotn;L&&(this.cotn=L);var S=this.playerResponse.heartbeatParams;S&&c6_(this,S);var p=this.playerResponse.messages;p&&sw6(this,p);var C=this.playerResponse.overlay;C&&C8k(this,C);var y=this.playerResponse.playabilityStatus;
if(y){T6N(this,y);var u=y.errorScreen;u&&m99(this,u)}var B=this.playerResponse.playbackTracking;B&&y6_(this,B,R);var O=this.playerResponse.playerCueRanges;O&&O.length>0&&(this.cueRanges=O);var K=this.playerResponse.playerCueRangeSet;K&&g.CM(this,K);var M=xVv(this.playerResponse.adPlacements);B&&B.promotedPlaybackTracking&&M&&g.mq(new g.UR("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));if(M||LRN(this.playerResponse.adSlots))this.ri=!0;var J=this.playerResponse.playerAds;
J&&U9I(this,J,R);var b=this.playerResponse.playerConfig;b&&jwf(this,b);var RJ=this.playerResponse.streamingData;RJ&&Hjv(this,RJ,b||null);var Fj=this.playerResponse.trackingParams;Fj&&(this.Nq=Fj);var fW=this.playerResponse.videoDetails;if(fW){WeN(this,fW,R);Ojv(this,fW,b||null,R);var SE=fW.isPrivate;SE!==void 0&&(this.isPrivate=zQ(this.isPrivate,SE))}y&&Qw6(this,y,fW||null);var nW=this.playerResponse.interstitialPods;nW&&LeE(this,nW);this.Sa&&this.eventId&&(this.Sa=Qb(this.Sa,{ei:this.eventId}));
var CW=this.playerResponse.captions;CW&&CW.playerCaptionsTracklistRenderer&&qfI(this,CW.playerCaptionsTracklistRenderer);(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.GQ=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&pSI(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);
var b9;this.compositeLiveIngestionOffsetToken=(b9=this.playerResponse.playbackTracking)==null?void 0:b9.compositeLiveIngestionOffsetToken;var fq;this.compositeLiveStatusToken=(fq=this.playerResponse.playbackTracking)==null?void 0:fq.compositeLiveStatusToken;this.B("html5_fill_default_mosaic_audio_track_id")&&wZ(this)&&(this.Qz.uS=F$9(this));var vM,l9,ge=(vM=this.playerResponse.playerConfig)==null?void 0:(l9=vM.granularVariableSpeedConfig)==null?void 0:l9.minimumPlaybackRate,bU,Ov,W=(bU=this.playerResponse.playerConfig)==
null?void 0:(Ov=bU.granularVariableSpeedConfig)==null?void 0:Ov.maximumPlaybackRate;ge&&W&&(this.Lo=ge/100,this.zT=W/100);this.B("html5_web_po_on_demand_init")&&this.playerResponse.onResponseReceivedActions&&this.playerResponse.onResponseReceivedActions.forEach(function(fT){var DZ;((DZ=g.A(fT,g.dg))==null?void 0:DZ.signal)==="INIT_ATT_SERVICE"&&(F.qA=!0)})}XV(this,R);
rq_(this,R);R.queue_info&&(this.queueInfo=R.queue_info);var P_=R.hlsdvr;P_!=null&&(this.allowLiveDvr=Number(P_)===1?OV()?!0:nw&&lk<5?!1:!0:!1);this.adQueryId=R.ad_query_id||null;this.x8||(this.x8=R.encoded_ad_safety_reason||null);this.GD=zQ(this.GD,R.infringe||R.muted);this.hC=R.authkey;this.Vy=R.authuser;this.mutedAutoplay=zQ(this.mutedAutoplay,R&&R.playmuted);this.mutedAutoplayDurationMode=Qu(this.mutedAutoplayDurationMode,R&&R.muted_autoplay_duration_mode);this.Kt=zQ(this.Kt,R&&R.mutedautoplay);
var tx=R.length_seconds;tx&&(this.lengthSeconds=typeof tx==="string"?Z$(tx):tx);this.isAd()||this.Ow||!g.pw(g.vV(this.Qz))?this.endSeconds=Qu(this.endSeconds,this.o1||R.end||R.endSeconds):QYV(this,g.vV(this.Qz),this.lengthSeconds);this.Nq=cc(this.Nq,R.itct);this.Pk=zQ(this.Pk,R.is_live_destination);this.isLivePlayback=zQ(this.isLivePlayback,R.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Zt();R.isUpcoming&&(this.isUpcoming=zQ(this.isUpcoming,R.isUpcoming));this.Kl=
zQ(this.Kl,R.post_live_playback);this.Xb&&(this.Kl=!1);this.isMdxPlayback=zQ(this.isMdxPlayback,R.mdx);var Zr=R.mdx_control_mode;Zr&&(this.mdxControlMode=typeof Zr==="number"?Zr:Z$(Zr));this.isInlinePlaybackNoAd=zQ(this.isInlinePlaybackNoAd,R.is_inline_playback_no_ad);this.dX=Qu(this.dX,R.reload_count);this.reloadReason=cc(this.reloadReason,R.reload_reason);this.nG=zQ(this.nG,R.show_content_thumbnail);this.cycToken=R.cyc||null;var v_=k_(R);Object.keys(v_).length>0&&(this.Su=v_);this.J1=cc(this.J1,
R.vvt);this.mdxEnvironment=cc(this.mdxEnvironment,R.mdx_environment);R.source_container_playlist_id&&(this.sourceContainerPlaylistId=R.source_container_playlist_id);R.serialized_mdx_metadata&&(this.serializedMdxMetadata=R.serialized_mdx_metadata);this.G1=R.osig;this.eventId||(this.eventId=R.eventid);this.osid||(this.osid=R.osid);this.playlistId=cc(this.playlistId,R.list);R.index&&(this.playlistIndex=this.playlistIndex===void 0?Qu(0,R.index):Qu(this.playlistIndex,R.index));this.NS=R.pyv_view_beacon_url;
this.yd=R.pyv_quartile25_beacon_url;this.TB=R.pyv_quartile50_beacon_url;this.MA=R.pyv_quartile75_beacon_url;this.po=R.pyv_quartile100_beacon_url;var uU=R.session_data;!this.Y8&&uU&&(this.Y8=vC(uU,"&").feature);this.isFling=Qu(this.isFling?1:0,R.is_fling)===1;this.vnd=Qu(this.vnd,R.vnd);this.forceAdsUrl=cc(this.forceAdsUrl,R.force_ads_url);this.J5=cc(this.J5,R.ctrl);this.nW=cc(this.nW,R.ytr);this.AA=R.ytrcc;this.Xg=R.ytrexp;this.lP=R.ytrext;this.aG=cc(this.aG,R.adformat);this.Si=cc(this.Si,R.attrib);
this.slotPosition=Qu(this.slotPosition,R.slot_pos);this.breakType=R.break_type;this.a4=zQ(this.a4,R.ssrt);this.videoId=S3(R)||this.videoId;this.Z=cc(this.Z,R.vss_credentials_token);this.BA=cc(this.BA,R.vss_credentials_token_type);this.wy=zQ(this.wy,R.audio_only);this.lS=zQ(this.lS,R.aac_high);this.d8=zQ(this.d8,R.prefer_low_quality_audio);this.zD=zQ(this.zD,R.uncap_inline_quality);this.B("html5_enable_qoe_cat_list")?R.qoe_cat&&(this.Ji=this.Ji.concat(R.qoe_cat.split(","))):this.HO=cc(this.HO,R.qoe_cat);
this.zy=zQ(this.zy,R.download_media);this.X=f6j(this,R.prefer_gapless);YD_(this.playerResponse)&&this.D0.push("ad");var U=R.adaptive_fmts;U&&(this.adaptiveFormats=U,this.m2("adpfmts",{},!0));var Vf=R.allow_embed;Vf&&(this.allowEmbed=Number(Vf)===1);var w7=R.backgroundable;w7&&(this.backgroundable=Number(w7)===1);var K4=R.autonav;K4&&(this.isAutonav=Number(K4)===1);var Q1=R.autoplay;Q1&&(this.Lm=this.jm=Number(Q1)===1);var Uv=R.iv_load_policy;Uv&&(this.annotationsLoadPolicy=q8(this.annotationsLoadPolicy,
Uv,f9));var OR=R.cc_lang_pref;OR&&(this.captionsLanguagePreference=cc(OR,this.captionsLanguagePreference));var Bo=R.cc_load_policy;Bo&&(this.E8=q8(this.E8,Bo,f9));var Em;this.deviceCaptionsOn=(Em=R.device_captions_on)!=null?Em:void 0;var H;this.qS=(H=R.device_captions_lang_pref)!=null?H:"";var T;this.S5=(T=R.viewer_selected_caption_langs)!=null?T:[];var h=R.cached_load;h&&(this.xa=zQ(this.xa,h));if(R.dash==="0"||R.dash===0||R.dash===!1)this.YI=!0;var D=R.dashmpd;D&&(this.xo=g.DI(D,{cpn:this.clientPlaybackNonce}));
var x=R.delay;x&&(this.l0=Z$(x));var zk=this.o1||R.end;if(this.SQ?zk!=null:zk!=void 0)this.clipEnd=Qu(this.clipEnd,zk);var P=R.fmt_list;P&&(this.XU=P);R.heartbeat_preroll&&this.D0.push("heartbeat");To7&&(this.Tl=-Math.floor(Math.random()*10),this.D1=-Math.floor(Math.random()*40));var l=R.is_listed;l&&(this.isListed=zQ(this.isListed,l));var q6=R.is_private;q6&&(this.isPrivate=zQ(this.isPrivate,q6));var u9=R.is_dni;u9&&(this.On=zQ(this.On,u9));var ZN=R.dni_color;ZN&&(this.B8=cc(this.B8,ZN));var pq=
R.pipable;pq&&(this.pipable=zQ(this.pipable,pq));this.IS=(this.vF=this.pipable&&this.Qz.PU)&&!this.Qz.showMiniplayerButton;var mI=R.paid_content_overlay_duration_ms;mI&&(this.paidContentOverlayDurationMs=Z$(mI));var t7=R.paid_content_overlay_text;t7&&(this.paidContentOverlayText=t7);var jE=R.url_encoded_fmt_stream_map;jE&&(this.jf=jE);var $c=R.hls_formats;$c&&(this.hlsFormats=$c);var W_=R.hlsvp;W_&&(this.hlsvp=W_);var e7=R.live_start_walltime;e7&&(this.RU=typeof e7==="number"?e7:Z$(e7));var B_=R.live_manifest_duration;
B_&&(this.nf=typeof B_==="number"?B_:Z$(B_));var m0=R.player_params;m0&&(this.playerParams=m0);var aD=R.partnerid;aD&&(this.partnerId=Qu(this.partnerId,aD));var Jv=R.probe_url;Jv&&(this.probeUrl=MQ(g.DI(Jv,{cpn:this.clientPlaybackNonce})));var eE=R.pyv_billable_url;eE&&LqJ(eE)&&(this.j4=eE);var mY=R.pyv_conv_url;mY&&LqJ(mY)&&(this.E5=mY);t2j(this,R);this.startSeconds>0?this.B("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.GQ||this.TQ||R.start||R.startSeconds)&&this.m2("lss",{css:this.startSeconds,
pcss:this.GQ,iss:this.TQ,ps:R.start||void 0,pss:R.startSeconds||void 0}):(this.startSeconds=Qu(this.startSeconds,this.GQ||this.TQ||R.start||R.startSeconds),this.B("html5_log_start_seconds_inconsistency")&&this.startSeconds>0&&this.m2("lsss",{css:this.startSeconds,pcss:this.GQ,iss:this.TQ,ps:R.start||void 0,pss:R.startSeconds||void 0}),this.gX=this.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Fu=R.live_utc_start;Fu!=null?this.liveUtcStartSeconds=Number(Fu):CDe(this.startSeconds)&&
(this.liveUtcStartSeconds=this.startSeconds)}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var zX=R.utc_start_millis;zX&&(this.liveUtcStartSeconds=Number(zX)*.001)}var dq=R.stream_time_start_millis;dq&&(this.N_=Number(dq)*.001);var Dr=this.TQ||R.start;(this.SQ?Dr==null||Number(R.resume)===1:Dr==void 0||R.resume=="1")||this.isLivePlayback||(this.clipStart=Qu(this.clipStart,Dr));var iU=R.url_encoded_third_party_media;iU&&(this.NP=tj(iU));var Po=R.ypc_offer_button_formatted_text;if(Po){var pk=
JSON.parse(Po);this.Vv=pk!=null?pk:null;this.VP=Po}var $R=R.ypc_offer_button_text;$R&&(this.Rz=$R);var ib=R.ypc_offer_description;ib&&(this.x_=ib);var qt=R.ypc_offer_headline;qt&&(this.G6=qt);var Q7=R.ypc_full_video_message;Q7&&(this.GT=Q7);var zl=R.ypc_offer_id;zl&&(this.kz=zl);var jR=R.ypc_buy_url;jR&&(this.V$=jR);var c4=R.ypc_item_thumbnail;c4&&(this.Lu=c4);var w5=R.ypc_item_title;w5&&(this.uH=w5);var PE=R.ypc_item_url;PE&&(this.H3=PE);var S0=R.ypc_vid;S0&&(this.iH=S0);R.ypc_overlay_timeout&&(this.O5=
Number(R.ypc_overlay_timeout));var xB=R.ypc_trailer_player_vars;xB&&(this.ET=Xj(xB));var kB=R.ypc_original_itct;kB&&(this.b$=kB);this.By=cc(this.By,R.ucid);this.I8=R.storyboard_spec||null;this.YK=R.live_storyboard_spec||null;this.sH=R.iv_endscreen_url||null;this.bY=zQ(this.bY,R.iv3_module);this.lO=zQ(this.lO,R.ypc_module);this.Zn=zQ(this.Zn,R.ypc_clickwrap_module);this.lO&&this.D0.push("ypc");this.Zn&&this.D0.push("ypcRentalActivation");this.HD={video_id:R.video_id,eventid:R.eventid,cbrand:R.cbrand,
cbr:R.cbr,cbrver:R.cbrver,c:R.c,cver:R.cver,ctheme:R.ctheme,cplayer:R.cplayer,cmodel:R.cmodel,cnetwork:R.cnetwork,cos:R.cos,cosver:R.cosver,cplatform:R.cplatform,user_age:R.user_age,user_display_image:R.user_display_image,user_display_name:R.user_display_name,user_gender:R.user_gender,csi_page_type:R.csi_page_type,csi_service_name:R.csi_service_name,enablecsi:R.enablecsi,enabled_engage_types:R.enabled_engage_types};vEj(this,R);var Lu=R.cotn;Lu&&(this.cotn=Lu);jYN(this)?Or(this)&&(this.isLivePlayback&&
this.xo&&(this.Yy=!0),this.qT&&(this.hD=!0)):HBR(this)?this.Yy=!0:UVJ(this)?this.enableServerStitchedDai=this.enableServerStitchedDai&&xG(this):this.xo&&(this.Qz.Nq==="yt"&&this.Zt()&&this.B("drm_manifestless_unplugged")&&this.B("html5_deprecate_manifestful_fallback")?this.m2("deprecateMflFallback",{}):this.Yy=!0);var YB=R.adpings;YB&&(this.Kf=YB?Xj(YB):null);var sh=R.feature;sh&&(this.FQ=sh);var pu=R.referrer;pu&&(this.referrer=pu);this.clientScreenNonce=cc(this.clientScreenNonce,R.csn);this.I4=
Qu(this.I4,R.root_ve_type);this.K$=Qu(this.K$,R.kids_age_up_mode);this.SQ||R.kids_app_info==void 0||(this.kidsAppInfo=R.kids_app_info);this.SQ&&R.kids_app_info!=null&&(this.kidsAppInfo=R.kids_app_info);this.dP=zQ(this.dP,R.upg_content_filter_mode);this.unpluggedFilterModeType=Qu(this.unpluggedFilterModeType,R.unplugged_filter_mode_type);var Xd=R.unplugged_location_info;Xd&&(this.on=Xd);var AN=R.unplugged_partner_opt_out;AN&&(this.Sm=cc("",AN));this.fZ=zQ(this.fZ,R.disable_watch_next);this.Uk=cc(this.Uk,
R.internal_ip_override);this.xX=!!R.is_yto_interstitial;this.interstitials.length&&this.D0.push("playableSequences");var ar=R.a$;ar&&(this.a$=ar);this.UZ=cc(this.UZ,R.csi_timer);R.watchUrl&&(this.watchUrl=R.watchUrl);var HE=R.watch_endpoint;this.B("html5_attach_watch_endpoint_ustreamer_config")&&HE&&PCN(this,HE);if(HE==null?0:HE.ustreamerConfig)this.xr=Mr(HE.ustreamerConfig);var h_,Cu,K_=HE==null?void 0:(h_=HE.loggingContext)==null?void 0:(Cu=h_.qoeLoggingContext)==null?void 0:Cu.serializedContextData;
K_&&(this.jc=K_);g.Pp(this.Qz)&&this.Qz.g4&&(this.embedsRct=cc(this.embedsRct,R.rct),this.embedsRctn=cc(this.embedsRctn,R.rctn));R.embed_config&&(this.MD=R.embed_config);this.H_=this.H_||!!R.pause_at_start;R.default_active_source_video_id&&(this.defaultActiveSourceVideoId=R.default_active_source_video_id);this.HT=this.HT||!!R.live_preload};
g.X.D=function(){return this.Qz};
g.X.B=function(R){return this.Qz.B(R)};
g.X.dV=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.X.hasSupportedAudio51Tracks=function(){var R;return!((R=this.uS)==null||!R.aG)};
g.X.getUserAudio51Preference=function(){var R=1;AP(this.Qz)&&this.B("html5_ytv_surround_toggle_default_off")?R=0:sP(this.Qz)&&this.isLivePlayback&&this.iX()&&(R=0);var F;return(F=g.xh("yt-player-audio51"))!=null?F:R};
g.X.yU=function(){this.Zo()||(this.T.U||this.T.unsubscribe("refresh",this.yU,this),this.m9(-1))};
g.X.m9=function(R){if(!this.isLivePlayback||!this.W||this.W.flavor!=="fairplay"){var F=nuN(this.T,this.Bk);if(F.length>0){for(var n=g.m(F),V=n.next();!V.done;V=n.next())V=V.value,V.startSecs=Math.max(V.startSecs,this.RC()),this.B("html5_cuepoint_identifier_logging")&&V.event==="start"&&this.m2("cuepoint",{pubCue:V.identifier,segNum:R});this.publish("cuepointupdated",F,R);this.Bk+=F.length;if(xG(this)&&this.Qz.CC())for(F=g.m(F),n=F.next();!n.done;n=F.next())n=n.value,this.m2("cuepoint",{segNum:R,event:n.event,
startSecs:n.startSecs,id:n.identifier.slice(-16)}),n.event==="start"&&(n=n.startSecs,this.qE.start=this.KC,this.qE.end=n+3)}}};
g.X.qo=function(){this.Zo()||(this.loading=!1,this.publish("dataloaded"))};
g.X.iX=function(){return this.tG!==void 0?this.tG:this.tG=!!this.lL||!!this.T&&Fx(this.T)};
g.X.oX=function(R){var F=this;if(this.Zo())return K$();this.k5=this.PG=this.N=null;aq(this,"html5_high_res_logging_always")&&(this.Qz.FG=!0);return ucJ(this,R).then(void 0,function(){return mVI(F,R)}).then(void 0,function(){return gER(F)}).then(void 0,function(){return IyR(F)})};
g.X.hw=function(R){this.N=R;BM_(this,this.N.getAvailableAudioTracks());if(this.N){R=g.m(this.N.videoInfos);for(var F=R.next();!F.done;F=R.next()){F=F.value;var n=F.containerType;n!==0&&(this.L7[n]=F.id)}}R=this.getAvailableAudioTracks();R=R.concat(this.FG);for(F=0;F<this.Z5.length;F++){n=this.Z5[F];for(var V=0;V<R.length;V++){var r=R[V],v=r.z9.id===n.audioTrackId;if(r.z9.isDefault&&F===this.Ec||v){if(n.captionTrackIndices)for(v=0;v<n.captionTrackIndices.length;v++)r.captionTracks[v]=this.captionTracks[n.captionTrackIndices[v]];
n.defaultCaptionTrackIndex!==void 0&&(r.N=this.captionTracks[n.defaultCaptionTrackIndex]);n.forcedCaptionTrackIndex!==void 0&&(r.T=this.captionTracks[n.forcedCaptionTrackIndex]);r.U=n.visibility||"UNKNOWN";r.captionsInitialState=n.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}}if(this.W&&this.N&&this.N.videoInfos&&!(this.N.videoInfos.length<=0)&&(R=$Q(this.N.videoInfos[0]),this.W.flavor==="fairplay"!==R))for(F=g.m(this.GZ),n=F.next();!n.done;n=F.next())if(n=n.value,R===(n.flavor==="fairplay")){this.W=
n;break}};
g.X.n4=function(){if(this.cotn)return null;var R=g.Xi(this.Qz)||this.B("web_l3_storyboard");if(!this.lX)if(this.playerResponse&&this.playerResponse.storyboards){var F=this.playerResponse.storyboards,n=F.playerStoryboardSpecRenderer;n&&n.spec?this.lX=new ch(n.spec,this.lengthSeconds,void 0,!1,R):(F=F.playerLiveStoryboardSpecRenderer)&&F.spec&&this.T&&(n=frJ(this.T.T).index)&&(this.lX=new SZ(F.spec,this.T.isLive,n,R))}else this.I8?this.lX=new ch(this.I8,this.lengthSeconds,void 0,!1,R):this.YK&&this.T&&
(F=frJ(this.T.T).index)&&(this.lX=new SZ(this.YK,this.T.isLive,F,R));return this.lX};
g.X.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var R=this.playerResponse.storyboards;return(R=R.playerStoryboardSpecRenderer||R.playerLiveStoryboardSpecRenderer)&&R.spec||null}return this.I8||this.YK};
g.X.fX=function(){return this.T&&!isNaN(this.T.fX())?this.T.fX():xG(this)?0:this.lengthSeconds};
g.X.RC=function(){return this.T&&!isNaN(this.T.RC())?this.T.RC():0};
g.X.getPlaylistSequenceForTime=function(R){if(this.T&&this.U){var F=this.T.T[this.U.id];if(!F)return null;var n=F.index.kc(R);F=F.index.getStartTime(n);return{sequence:n,elapsed:Math.floor((R-F)*1E3)}}return null};
g.X.XP=function(){return!this.Zo()&&!(!this.videoId&&!this.NP)};
g.X.tb=function(){var R,F,n;return!!this.adaptiveFormats||!!((R=this.playerResponse)==null?0:(F=R.streamingData)==null?0:(n=F.adaptiveFormats)==null?0:n.length)};
g.X.isLoaded=function(){return pM(this)&&!this.Yy&&!this.hD};
g.X.BB=function(R){R||(R="hqdefault.jpg");var F=this.Su[R];return F||this.Qz.J1||R==="pop1.jpg"||R==="pop2.jpg"||R==="sddefault.jpg"||R==="hq720.jpg"||R==="maxresdefault.jpg"?F:ST(this.Qz,this.videoId,R)};
g.X.Zt=function(){return this.isLivePlayback||this.Kl||this.Xb||!(!this.liveUtcStartSeconds||!this.nf)};
g.X.isOtf=function(){return!!this.T&&(this.T.isOtf||!this.Kl&&!this.isLivePlayback&&this.T.U)};
g.X.getAvailableAudioTracks=function(){if(this.N){if(this.N.getAvailableAudioTracks().length>0)return this.N.getAvailableAudioTracks();if(this.eB)return this.eB;if(this.xV)return this.xV}return[]};
g.X.getAudioTrack=function(){var R=this;if(this.J&&!$Q(this.J)){var F=g.$$(this.getAvailableAudioTracks(),function(r){return r.id===R.J.id}),n;
if(!F&&((n=this.J.z9)==null?0:n.id)){var V=this.J.z9.id;F=g.$$(this.getAvailableAudioTracks(),function(r){return r.z9.id===V})}return F||this.FG}if(this.eB){if(!this.iI)for(F=g.m(this.eB),n=F.next();!n.done;n=F.next())if(n=n.value,n.z9.getIsDefault()){this.iI=n;
break}return this.iI||this.FG}return this.FG};
g.X.getPlayerResponse=function(){return this.playerResponse};
g.X.getWatchNextResponse=function(){return this.jQ};
g.X.getReelItemWatchResponse=function(){return this.reelItemWatchResponse};
g.X.getHeartbeatResponse=function(){return this.LS};
g.X.n6=function(){return this.watchUrl?this.watchUrl:this.Qz.getVideoUrl(this.videoId)};
g.X.Jf=function(){return!!this.T&&(l8W(this.T)||N8_(this.T)||EQV(this.T))};
g.X.getEmbeddedPlayerResponse=function(){return this.zZ};
g.X.X7=function(){return(this.eventLabel||this.Qz.jQ)==="shortspage"};
g.X.isAd=function(){return this.fE||!!this.adFormat};
g.X.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.X.iZ=function(){var R,F,n;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((R=this.playerResponse)==null?0:(F=R.playerConfig)==null?0:(n=F.daiConfig)==null?0:n.ssaEnabledPlayback)};
g.X.Vk=function(){return this.U4};
g.X.EH=function(){return this.lO||this.fl};
g.X.k8=function(){return aq(this,"html5_samsung_vp9_live")};
g.X.m2=function(R,F,n){this.publish("ctmp",R,F,n)};
g.X.R1=function(R,F,n){this.publish("ctmpstr",R,F,n)};
g.X.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.X.getGetAdBreakContext=function(R,F){R=R===void 0?NaN:R;F=F===void 0?NaN:F;var n={isSabr:MA(this)},V,r=(V=this.getHeartbeatResponse())==null?void 0:V.adBreakHeartbeatParams;r&&(n.adBreakHeartbeatParams=r);if(this.B("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.T&&!isNaN(R)&&!isNaN(F)){F=R-F;for(var v in this.T.T)if(V=this.T.T[v],V.info.EY()||V.info.cB())if(V=V.index,V.isLoaded()){v=V.kc(F);V=V.wD(v)+F-V.getStartTime(v);this.m2("gabc",{t:R.toFixed(3),mt:F.toFixed(3),sg:v,igt:V.toFixed(3)});
n.livePlaybackPosition={utcTimeMillis:""+(V*1E3).toFixed(0)};break}}return n};
g.X.isEmbedsShortsMode=function(R,F){if(!g.Pp(this.Qz)||(this.Qz.PG||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||F)return!1;if(this.B("embeds_enable_shorts")){var n,V;return!!((n=this.embeddedPlayerConfig)==null?0:(V=n.embeddedPlayerFlags)==null?0:V.isShortsExperienceEligible)}var r,v;return!!(((r=this.embeddedPlayerConfig)==null?0:(v=r.embeddedPlayerFlags)==null?0:v.isShortsExperienceEligible)&&R.width<=R.height)};
g.X.oG=function(){g.fG.prototype.oG.call(this);this.Kf=null;delete this.Hx;delete this.accountLinkingConfig;delete this.T;this.N=this.LS=this.playerResponse=this.jQ=null;this.jf=this.adaptiveFormats="";delete this.botguardData;this.Mq=this.suggestions=this.Zl=null;this.sabrContextUpdates.clear()};
var To7=!0;var s4W={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},pQf={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},STe={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},qTI={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"},c0k={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},Q4e={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"},L$N={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.a(jH,g.G);g.X=jH.prototype;g.X.handleExternalCall=function(R,F,n){var V=this.state.Z[R],r=this.state.X[R],v=V;if(r)if(n&&GA(n,kXM))v=r;else if(!V)throw Error('API call from an untrusted origin: "'+n+'"');this.logApiCall(R,n);if(v){a:{n=g.m(F);for(V=n.next();!V.done;V=n.next())if(String(V.value).includes("javascript:")){n=!0;break a}n=!1}n&&g.mq(Error('Dangerous call to "'+R+'" with ['+F+"]."));return v.apply(this,F)}throw Error('Unknown API method: "'+R+'".');};
g.X.logApiCall=function(R,F,n){var V=this.app.D();V.M_&&!this.state.UZ.has(R)&&(this.state.UZ.add(R),g.LJ("webPlayerApiCalled",{callerUrl:V.loaderUrl,methodName:R,origin:F||void 0,playerStyle:V.playerStyle||void 0,embeddedPlayerMode:V.PG,errorCode:n}))};
g.X.publish=function(R){var F=g.Cq.apply(1,arguments);this.state.N.publish.apply(this.state.N,[R].concat(g.I(F)));if(R==="videodatachange"||R==="resize"||R==="cardstatechange")this.state.U.publish.apply(this.state.U,[R].concat(g.I(F))),this.state.J.publish.apply(this.state.J,[R].concat(g.I(F)))};
g.X.HG=function(R){var F=g.Cq.apply(1,arguments);this.state.N.publish.apply(this.state.N,[R].concat(g.I(F)));this.state.U.publish.apply(this.state.U,[R].concat(g.I(F)))};
g.X.yZ=function(R){var F=g.Cq.apply(1,arguments);this.state.N.publish.apply(this.state.N,[R].concat(g.I(F)));this.state.U.publish.apply(this.state.U,[R].concat(g.I(F)));this.state.J.publish.apply(this.state.J,[R].concat(g.I(F)))};
g.X.t7=function(R){var F=g.Cq.apply(1,arguments);this.state.N.publish.apply(this.state.N,[R].concat(g.I(F)));this.state.U.publish.apply(this.state.U,[R].concat(g.I(F)));this.state.J.publish.apply(this.state.J,[R].concat(g.I(F)));this.state.W.publish.apply(this.state.W,[R].concat(g.I(F)))};
g.X.B=function(R){return this.app.D().B(R)};
g.X.oG=function(){if(this.state.element){var R=this.state.element,F;for(F in this.state.T)this.state.T.hasOwnProperty(F)&&(R[F]=null);this.state.element=null}g.G.prototype.oG.call(this)};g.a(BK,g.Wt);BK.prototype.publish=function(R){var F=g.Cq.apply(1,arguments);if(this.W.has(R))return this.W.get(R).push(F),!0;var n=!1;try{for(F=[F],this.W.set(R,F);F.length;)n=g.Wt.prototype.publish.call.apply(g.Wt.prototype.publish,[this,R].concat(g.I(F.shift())))}finally{this.W.delete(R)}return n};g.a(mx,g.G);mx.prototype.oG=function(){this.W.dispose();this.J.dispose();this.U.dispose();this.N.dispose();this.UZ=this.T=this.X=this.Z=this.V=void 0};var y0j=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.a(Iq,jH);g.X=Iq.prototype;g.X.getApiInterface=function(){return Array.from(this.state.V)};
g.X.Yn=function(R,F){this.state.W.subscribe(R,F)};
g.X.mcX=function(R,F){this.state.W.unsubscribe(R,F)};
g.X.getPlayerState=function(R){return xUf(this.app,R)};
g.X.ue=function(){return xUf(this.app)};
g.X.MuG=function(R,F,n){i4(this)&&(Dl(this.app,!0,1),kO(this.app,R,F,n,1))};
g.X.getCurrentTime=function(R,F,n){var V=this.getPlayerState(R);if(this.app.getAppState()===2&&V===5){var r;return((r=this.app.getVideoData())==null?void 0:r.startSeconds)||0}return this.B("web_player_max_seekable_on_ended")&&V===0?Bi(this.app,R):R?this.app.getCurrentTime(R,F,n):this.app.getCurrentTime(R)};
g.X.Iy=function(){return this.app.getCurrentTime(1)};
g.X.Va=function(){var R=this.app.wD(1);return isNaN(R)?this.getCurrentTime(1):R};
g.X.Se=function(){return this.app.getDuration(1)};
g.X.xl=function(R,F){R=g.vI(Math.floor(R),0,100);isFinite(R)&&Wi(this.app,{volume:R,muted:this.isMuted()},F)};
g.X.h22=function(R){this.xl(R,!1)};
g.X.k6=function(R){Wi(this.app,{muted:!0,volume:this.getVolume()},R)};
g.X.k91=function(){this.k6(!1)};
g.X.bJ=function(R){Wi(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},R)};
g.X.X6G=function(){DU(this.app)||this.bJ(!1)};
g.X.getPlayerMode=function(){var R={};this.app.getVideoData().On&&(R.pfp={enableIma:this.app.aC().allowImaMonetization,autoplay:qj(this.app.aC()),mutedAutoplay:this.app.aC().mutedAutoplay});return R};
g.X.b3=function(){var R=this.app.getPresentingPlayerType();if(R===2&&!this.app.OY()){var F=jk(this.app.WI());if(!(Dh9(F)||g.Pp(this.app.D())&&g.E(this.app.rX().getPlayerState(),1024))||iXI(F))return}(F=this.app.I9().c6)?F.playVideo():this.app.playVideo(R)};
g.X.eL2=function(){Dl(this.app,!0,1);this.b3()};
g.X.pauseVideo=function(R){var F=this.app.getPresentingPlayerType();if(F!==2||this.app.OY()||Dh9(jk(this.app.WI()))){var n=this.app.I9().c6;n?n.pauseVideo():this.app.pauseVideo(F,R)}};
g.X.UXG=function(){var R=this.app,F=!1;R.G.HI&&(R.eQ.publish("pageTransition"),F=!0);R.stopVideo(F)};
g.X.clearVideo=function(){};
g.X.getAvailablePlaybackRates=function(){var R=this.app.D();if(R.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(R.J?R.ancestorOrigins[0]:window.location.origin)||R.nZ)return Ax7;R=this.app.getVideoData();var F=R.Lo,n=R.zT;return aiO.filter(function(V){return V>=F&&V<=n})}return[1]};
g.X.getPlaybackQuality=function(R){return(R=xM(this.app,{playerType:R}))?R.getPlaybackQuality():"unknown"};
g.X.SqG=function(){};
g.X.getAvailableQualityLevels=function(R){return(R=xM(this.app,{playerType:R}))?(R=g.OM(R.y3(),function(F){return F.quality}),R.length&&(R[0]==="auto"&&R.shift(),R=R.concat(["auto"])),R):[]};
g.X.XK=function(){return this.getAvailableQualityLevels(1)};
g.X.E7=function(){return this.rb()};
g.X.pP=function(){return 1};
g.X.getVideoLoadedFraction=function(R){return this.app.getVideoLoadedFraction(R)};
g.X.rb=function(){return this.getVideoLoadedFraction()};
g.X.Uq1=function(){return 0};
g.X.getSize=function(){var R=this.app.fH().getPlayerSize();return{width:R.width,height:R.height}};
g.X.setSize=function(){this.app.fH().resize()};
g.X.loadVideoById=function(R,F,n,V){if(!R)return!1;R=gZ(R,F,n);return this.app.loadVideoByPlayerVars(R,V)};
g.X.ZCZ=function(R,F,n){R=this.loadVideoById(R,F,n,1);Dl(this.app,R,1)};
g.X.cueVideoById=function(R,F,n,V){R=gZ(R,F,n);this.app.cueVideoByPlayerVars(R,V)};
g.X.B1=function(R,F,n){this.cueVideoById(R,F,n,1)};
g.X.loadVideoByUrl=function(R,F,n,V){R=o2f(R,F,n);return this.app.loadVideoByPlayerVars(R,V)};
g.X.Mn2=function(R,F,n){R=this.loadVideoByUrl(R,F,n,1);Dl(this.app,R,1)};
g.X.cueVideoByUrl=function(R,F,n,V){R=o2f(R,F,n);this.app.cueVideoByPlayerVars(R,V)};
g.X.tV=function(R,F,n){this.cueVideoByUrl(R,F,n,1)};
g.X.NX2=function(){var R=this.app.D();if(R.J1)return"";var F=this.app.aC(),n=void 0;F.isLivePlayback||(n=Math.floor(this.app.getCurrentTime(1)));return R.getVideoUrl(F.videoId,this.getPlaylistId()||void 0,n)};
g.X.dJ=function(){return this.app.getDebugText()};
g.X.getVideoEmbedCode=function(){var R=this.app.D();if(R.J1)return"";var F=this.app.aC();return R.getVideoEmbedCode(F.isPrivate?"":F.title,this.app.aC().videoId,this.app.fH().getPlayerSize(),this.getPlaylistId()||void 0)};
g.X.zC=function(R,F,n){return dUe(this.app,R,F,n)};
g.X.removeCueRange=function(R){return this.app.BN(R)};
g.X.loadPlaylist=function(R,F,n,V){this.app.loadPlaylist(R,F,n,V)};
g.X.BgX=function(R,F,n,V){this.loadPlaylist(R,F,n,V);Dl(this.app,!0,1)};
g.X.cuePlaylist=function(R,F,n,V){this.app.cuePlaylist(R,F,n,V)};
g.X.nextVideo=function(R,F){this.app.nextVideo(R,F)};
g.X.EFH=function(){this.nextVideo();Dl(this.app,!0,1)};
g.X.previousVideo=function(R){this.app.previousVideo(R)};
g.X.hLG=function(){this.previousVideo();Dl(this.app,!0,1)};
g.X.playVideoAt=function(R){this.app.playVideoAt(R)};
g.X.XBZ=function(R){this.playVideoAt(R);Dl(this.app,!0,1)};
g.X.setShuffle=function(R){var F=this.app.getPlaylist();F&&F.setShuffle(R)};
g.X.setLoop=function(R){var F=this.app.getPlaylist();F&&(F.loop=R)};
g.X.fP=function(){var R=this.app.getPlaylist();if(!R)return null;for(var F=[],n=0;n<R.length;n++){var V=g.cR(R,n);V&&F.push(V.videoId)}return F};
g.X.getPlaylistIndex=function(){var R=this.app.getPlaylist();return R?R.index:-1};
g.X.getPlaylistId=function(){var R=this.app.getPlaylist();return R&&R.listId?R.listId.toString():null};
g.X.c$=function(R){R==="captions"&&(R=g.Cz(this.app.WI()))&&!R.loaded&&R.load()};
g.X.NG=function(R){R==="captions"&&(R=g.Cz(this.app.WI()))&&R.loaded&&R.IN2()};
g.X.gx=function(R,F,n){if(!F)return null;var V=this.app.WI();return R==="captions"?(R=g.Cz(V))&&R.xc(F,n):null};
g.X.LP=function(R,F,n){return oq(this.app.UN().getVideoData())?{}:this.gx(R,F,n)};
g.X.U_=function(R){var F=this.app.WI();if(R==="captions"){var n;return((n=g.Cz(F))==null?void 0:n.getOptions())||null}return R?null:(R=[],g.Cz(F)&&R.push("captions"),R)};
g.X.getVolume=function(){return this.app.C4.volume};
g.X.isMuted=function(){return this.app.C4.muted};
g.X.destroy=function(){this.app.dispose()};
g.X.logImaAdEvent=function(R,F){var n=this.app.D();this.app.aC().allowImaMonetization&&(R={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:F,embedUrl:g.qMV(this.app.D().loaderUrl),eventType:R,youtubeHost:g.u5(this.app.D().rK)||""},R.embeddedPlayerMode=n.PG,g.LJ("embedsAdEvent",R))};
g.X.mutedAutoplay=function(R){var F=this.app.D(),n,V,r;((n=F.getWebPlayerContextConfig())==null?0:(V=n.embedsHostFlags)==null?0:(r=V.allowMutedAutoplayDurationMode)==null?0:r.length)&&!F.N&&this.app.mutedAutoplay(R)};
g.X.preloadVideoById=function(R,F,n,V){var r,v;((r=this.app.D().getWebPlayerContextConfig())==null?0:(v=r.embedsHostFlags)==null?0:v.allowPreloadVideoById)&&R&&(R=gZ(R,F,n),this.app.preloadVideoByPlayerVars(R,V))};
g.X.rmG=function(R,F,n){this.preloadVideoById(R,F,n,1)};
g.X.setFauxFullscreen=function(R){g.yu();this.app.Ax(R?2:0)};
g.X.C_o=function(R){var F,n;((F=this.app.D().getWebPlayerContextConfig())==null?0:(n=F.embedsHostFlags)==null?0:n.allowSetFauxFullscreen)&&this.setFauxFullscreen(R)};
g.X.setCenterCrop=function(R){var F,n;((F=this.app.D().getWebPlayerContextConfig())==null?0:(n=F.embedsHostFlags)==null?0:n.allowSetCenterCrop)&&this.app.fH().setCenterCrop(R)};
g.X.wakeUpControls=function(){var R=g.KK(this);R&&R.K7()};var ueJ="driveweb flix flix_from_driveweb hovercard projector texmex wshbp".split(" ");g.a(kM,Iq);g.X=kM.prototype;g.X.XC=function(R,F){this.state.J.subscribe(R,F)};
g.X.N22=function(R,F){this.state.J.unsubscribe(R,F)};
g.X.cueVideoByPlayerVars=function(R,F){this.app.cueVideoByPlayerVars(R,F)};
g.X.Zd=function(R,F){F=F===void 0?1:F;this.cueVideoByPlayerVars(YM(this,R),F)};
g.X.loadVideoByPlayerVars=function(R,F,n,V,r){this.app.loadVideoByPlayerVars(R,n,F,V,r)};
g.X.zp1=function(R,F,n,V){n=n===void 0?1:n;this.loadVideoByPlayerVars(YM(this,R),F,n,V)};
g.X.preloadVideoByPlayerVars=function(R,F,n,V,r){n=n===void 0?NaN:n;this.app.preloadVideoByPlayerVars(R,F,n,V===void 0?"":V,r===void 0?"":r)};
g.X.LhH=function(R,F,n,V){F=F===void 0?1:F;this.preloadVideoByPlayerVars(YM(this,R),F,n,V)};
g.X.j2=function(R,F,n){this.loadVideoById(R,F,n,1)};
g.X.Av=function(R,F,n){this.loadVideoByUrl(R,F,n,1)};
g.X.xt=function(R){return this.getPlayerState(R)};
g.X.q1=function(R){R=R===void 0?1:R;var F=j4_(this,R);if(R=xM(this.app,{playerType:R})){R=R.getVideoData();F.backgroundable=R.backgroundable;F.eventId=R.eventId;F.cpn=R.clientPlaybackNonce;F.isLive=R.isLivePlayback;F.isWindowedLive=R.Xb;F.isManifestless=xG(R);F.allowLiveDvr=R.allowLiveDvr;F.isListed=R.isListed;R.liveUtcStartSeconds!=null&&(F.liveUtcStartSeconds=R.liveUtcStartSeconds);R.iX()&&(F.isEncrypted=!0);if(R.N)for(var n=g.m(R.N.videoInfos),V=n.next();!V.done;V=n.next()){var r=void 0;if((r=
V.value.video)==null?0:r.isHdr()){F.isHdr=!0;break}}var v,f;F.isMultiChannelAudio=!!((v=R.J)==null?0:(f=v.audio)==null?0:f.isMultiChannelAudio())}return F};
g.X.seekBy=function(R,F,n,V,r){i4(this)&&kO(this.app,this.app.getCurrentTime()+R,F,n,r,V)};
g.X.tuo=function(R,F,n){this.seekBy(R,F,n,void 0,1)};
g.X.seekTo=function(R,F,n,V,r){i4(this)&&kO(this.app,R,F,n,V,r)};
g.X.ncz=function(R,F,n,V){this.seekTo(R,F,n,V===void 0?1:V)};
g.X.getStoryboardFormat=function(){return oq(this.app.getVideoData())?null:this.app.getStoryboardFormat()};
g.X.DF=function(R,F){return this.getCurrentTime(R===void 0?1:R,F)};
g.X.vZ=function(){var R=this.app.getPresentingPlayerType(!0);R===2&&this.app.OY()&&(R=1);return R};
g.X.getDuration=function(R,F){return R?this.app.getDuration(R,F):this.app.getDuration(R)};
g.X.wb=function(R,F){return this.getDuration(R===void 0?1:R,F)};
g.X.TXG=function(R){return this.getVideoLoadedFraction(R)};
g.X.loadModule=function(R){if(R==="annotations_module"){var F=g.WR(this.app.WI());F&&!F.loaded&&F.load()}this.c$(R)};
g.X.unloadModule=function(R){if(R==="annotations_module"){var F=g.WR(this.app.WI());F&&F.loaded&&F.unload()}this.NG(R)};
g.X.getOption=function(R,F,n,V){return(V=xM(this.app,{playerType:V}))&&oq(V.getVideoData())?{}:this.setOption(R,F,n)};
g.X.Y2=function(R,F,n){return this.getOption(R,F,n,1)};
g.X.getOptions=function(R){var F=this.app.WI();switch(R){case "ad":var n,V;return((n=jk(F))==null?void 0:(V=n.getOptions)==null?void 0:V.call(n))||null;case "remote":var r,v;return((r=$M(F))==null?void 0:(v=r.getOptions)==null?void 0:v.call(r))||null;case "annotations_module":var f,z;return((f=g.WR(F))==null?void 0:(z=f.getOptions)==null?void 0:z.call(f))||null;case "creatorendscreen":var q,Q;return((q=uK(F))==null?void 0:(Q=q.getOptions)==null?void 0:Q.call(q))||null;case "unplugged":var c,w;return((c=
g.HR(F))==null?void 0:(w=c.getOptions)==null?void 0:w.call(c))||null;case "kids":var L,S;return((L=bzW(F))==null?void 0:(S=L.getOptions)==null?void 0:S.call(L))||null}if(!R){R=this.U_();if(!R)return R;jk(F)&&R.push("ad");$M(F)&&R.push("remote");g.WR(F)&&R.push("annotations_module");uK(F)&&R.push("creatorendscreen");g.HR(F)&&R.push("unplugged");bzW(F)&&R.push("kids");return R}return this.U_(R)};
g.X.setOption=function(R,F,n){if(!F)return null;var V=this.app.WI();switch(R){case "ad":return(R=jk(V))&&R.xc&&R.xc(F,n);case "kids":return(R=bzW(V))&&R.xc(F,n);case "remote":return(R=$M(V))&&R.xc(F,n);case "unplugged":return(R=g.HR(V))&&R.xc(F,n);case "annotations_module":return(R=g.WR(V))&&R.xc(F,n);case "creatorendscreen":return(R=uK(V))&&R.xc(F,n)}return this.gx(R,F,n)};
g.X.addCueRange=function(R,F,n,V,r){return dUe(this.app,R,F,n,V,r)};
g.X.getDebugText=function(R){return this.app.getDebugText(R)};
g.X.getCurrentBroadcastId=function(){return null};
g.X.handleGlobalKeyDown=function(R,F,n,V,r,v,f,z){F=F===void 0?!1:F;n=n===void 0?!1:n;V=V===void 0?!1:V;r=r===void 0?!1:r;var q=g.KK(this);q&&q.handleGlobalKeyDown(R,F,n,V,r,v,f,z)};
g.X.handleGlobalKeyUp=function(R,F,n,V,r,v,f){F=F===void 0?!1:F;n=n===void 0?!1:n;V=V===void 0?!1:V;r=r===void 0?!1:r;var z=g.KK(this);z&&z.handleGlobalKeyUp(R,F,n,V,r,v,f)};
g.X.setSizeStyle=function(R,F){this.app.setSizeStyle(R,F)};
g.X.showControls=function(){var R=g.KK(this);R&&R.showControls(!0)};
g.X.hideControls=function(){var R=g.KK(this);R&&R.showControls(!1)};
g.X.getVideoContentRect=function(R){R=this.app.fH().getVideoContentRect(R);return{left:R.left,top:R.top,width:R.width,height:R.height}};
g.X.toggleFullscreen=function(){function R(n){g.mq(n)}
var F=this.app.D();if(F.externalFullscreen){if(!g.C9(F))return this.isFullscreen()?j3(window.document.documentElement):ox(window.document.documentElement).catch(R)}else if(g.yu()||F.X)return this.isFullscreen()?j3(Uw()):F.controlsType!=="3"&&g.yu()?ox(this.app.fH().element).catch(R):(F=this.app.LX().Fs())?ox(F).catch(R):Promise.reject(Error("Media element missing"));this.t7("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.X.isFullscreen=function(){return this.app.isFullscreen()};
g.X.dT=function(){return this.app.dT()};
g.X.cancelPlayback=function(){var R=jk(this.app.WI());R&&R.created&&R.destroy();this.app.rX().stopVideo();(R=this.app.WI().A7.get("endscreen"))&&R.pGo()&&g.E6(this.app.eQ,!0)};
g.X.getProgressState=function(R){if(this.vZ()===3)return $M(this.app.WI()).getProgressState();var F=this.app.getVideoData(),n=xM(this.app,{playerType:R})||this.app.rX(),V=n.getPlayerType();a:{var r=this.app.getVideoData();var v;if((v=r.progressBarStartPosition)==null?0:v.utcTimeMillis)if(r=Number(r.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(r)){r=this.Jp(r,R);break a}r=0}var f;a:{v=this.app.getVideoData();if((f=v.progressBarEndPosition)==null?0:f.utcTimeMillis)if(f=Number(v.progressBarEndPosition.utcTimeMillis)/
1E3,!isNaN(f)){f=this.Jp(f,R);break a}f=0}v=this.getCurrentTime(R);R=this.getDuration(R);var z=this.app.wD(V),q=this.app.isAtLiveHead(V),Q=this.app.LW();var c=this.app;var w=g.aP(c,{playerType:V});w=Cc(c,w);c=gh(c,w.AQ(),w);w=Bi(this.app,V);n=n.qC();var L=this.app.getVideoData().qy;V=!L||isNaN(L)?0:this.Jp(L,V);return{airingStart:r,airingEnd:f,allowSeeking:this.app.dV(),clipEnd:F.clipEnd,clipStart:F.clipStart,current:v,displayedStart:-1,duration:R,ingestionTime:z,isAtLiveHead:q,loaded:Q,seekableStart:c,
seekableEnd:w,offset:n,viewerLivestreamJoinMediaTime:V}};
g.X.Jp=function(R,F){var n=this.app.wD(F);if(!n)return 0;F=n-this.app.getCurrentTime(F);return R-F};
g.X.isInline=function(){return this.app.isInline()};
g.X.setInline=function(R){this.app.setInline(R)};
g.X.mq5=function(){return this.app.UN().fC(!0)};
g.X.toggleSubtitles=function(){var R=g.Cz(this.app.WI());R&&R.F8Q()};
g.X.getPlayerSize=function(){var R=this.app.fH().getPlayerSize();return{width:R.width,height:R.height}};
g.X.setCenterCrop=function(R){this.app.fH().setCenterCrop(R)};
g.X.getLoopVideo=function(){return this.app.getLoopVideo()};
g.X.setLoopVideo=function(R){this.app.setLoopVideo(R)};
var W$f="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public qoe_cat raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "),
m4_="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");var qW={},g2f=(qW["api.invalidparam"]=2,qW.auth=150,qW["drm.auth"]=150,qW["heartbeat.net"]=150,qW["heartbeat.servererror"]=150,qW["heartbeat.stop"]=150,qW["html5.unsupportedads"]=5,qW["fmt.noneavailable"]=5,qW["fmt.decode"]=5,qW["fmt.unplayable"]=5,qW["html5.missingapi"]=5,qW["html5.unsupportedlive"]=5,qW["drm.unavailable"]=5,qW["mrm.blocked"]=151,qW["embedder.identity.denied"]=152,qW["embedder.identity.missing.referrer"]=153,qW);g.a(g.Jg,kM);g.X=g.Jg.prototype;g.X.isExternalMethodAvailable=function(R,F){return this.state.Z[R]?!0:!!(this.state.X[R]&&F&&GA(F,kXM))};
g.X.getBandwidthEstimate=function(){return tf(this.app.AJ)};
g.X.reportPlaybackIssue=function(R){R=R===void 0?"":R;var F=this.app.rX();R={gpu:(0,g.Gd)(),d:R};F.handleError(new g.z$("feedback",R))};
g.X.getInternalApi=function(){return Object.assign({},this.state.T)};
g.X.getTrustedApi=function(){return Object.assign({},this.state.Z,this.state.X)};
g.X.getInternalApiInterface=function(){return g.Ho(this.state.T)};
g.X.queueNextVideo=function(R,F,n,V,r){n=n===void 0?NaN:n;this.app.queueNextVideo(R,F,n,V===void 0?"":V,r===void 0?"":r)};
g.X.Gh=function(R){R=this.app.getPlayerStateObject(R);return{isBuffering:g.E(R,1),isCued:R.isCued(),isDomPaused:g.E(R,1024),isEnded:g.E(R,2),isError:g.E(R,128),isOrWillBePlaying:R.isOrWillBePlaying(),isPaused:R.isPaused(),isPlaying:R.isPlaying(),isSeeking:g.E(R,16),isUiSeeking:g.E(R,32),isUnstarted:g.E(R,64)}};
g.X.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
g.X.startSeekCsiAction=function(){this.app.Mc().J.T=(0,g.h1)()};
g.X.CP=function(R,F,n){return this.getCurrentTime(R===void 0?1:R,F,n)};
g.X.seekToStreamTime=function(R,F,n,V){var r=this.app;F=F===void 0?!0:F;var v=g.aP(r,{playerType:1}),f=0;v.getStreamTimeOffset()&&!v.qC()&&(f=v.getStreamTimeOffset());kO(r,R-f,F,n,1,V)};
g.X.getStreamTimeOffset=function(){return this.app.UN().getStreamTimeOffset()};
g.X.seekToLiveHead=function(R,F){var n=this.app.UN().getVideoData();n&&n.isLivePlayback&&kO(this.app,Infinity,R,F,1)};
g.X.requestSeekToWallTimeSeconds=function(R,F,n){this.app.UN().xO(R,F,n)};
g.X.z2G=function(R,F,n,V,r){this.seekTo(R,F,n,V===void 0?1:V,r)};
g.X.Z5G=function(R,F,n,V){this.seekBy(R,F,n,V,1)};
g.X.prefetchKeyPlay=function(R,F){this.app.UN().prefetchKeyPlay(R,F)};
g.X.setVolume=function(R,F){this.xl(R,F===void 0?!0:F)};
g.X.mute=function(R){this.k6(R===void 0?!0:R)};
g.X.unMute=function(R){this.bJ(R===void 0?!0:R)};
g.X.syncVolume=function(){var R=w0k(this.app);Wi(this.app,{volume:R.volume,muted:R.muted},!1)};
g.X.getAvailableQualityLabels=function(){return g.OM(this.app.UN().y3(),function(R){return R.qualityLabel})};
g.X.channelSubscribed=function(){this.HG("SUBSCRIBE",this.app.aC().By)};
g.X.channelUnsubscribed=function(){this.HG("UNSUBSCRIBE",this.app.aC().By)};
g.X.setScreenLayer=function(R){this.app.setScreenLayer(R)};
g.X.getCurrentPlaylistSequence=function(){return this.app.rX().getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.X.getPlaylistSequenceForTime=function(R){return this.app.rX().getPlaylistSequenceForTime(R)};
g.X.shouldSendVisibilityState=function(){return!0};
g.X.confirmYpcRental=function(){this.app.UN().wK("ypcRentalActivation")};
g.X.setHomeGroupInfo=function(R){this.app.D().homeGroupInfo=R};
g.X.setConnectedRemoteApps=function(R){this.app.D().GZ=R};
g.X.setLivingRoomAppMode=function(R){this.app.D().livingRoomAppMode=q8("LIVING_ROOM_APP_MODE_UNSPECIFIED",R,Xgj)};
g.X.setEnablePrivacyFilter=function(R){this.app.D().enablePrivacyFilter=R===void 0?!1:R};
g.X.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.X.addUtcCueRange=function(R,F,n,V,r){return MsJ(this.app,R,F,n,V,r)};
g.X.ya=function(R){R=R===void 0?1:R;var F=this.q1(R);if(R=xM(this.app,{playerType:R})){R=R.getVideoData();F.hasProgressBarBoundaries=R.hasProgressBarBoundaries();F.isPremiere=R.isPremiere;F.itct=R.Nq;F.playerResponseCpn=R.playerResponseCpn;var n;var V=R.hasProgressBarBoundaries()&&((n=R.progressBarStartPosition)==null?0:n.utcTimeMillis)?Z$(R.progressBarStartPosition.utcTimeMillis):null;F.progressBarStartPositionUtcTimeMillis=V;var r;n=R.hasProgressBarBoundaries()&&((r=R.progressBarEndPosition)==null?
0:r.utcTimeMillis)?Z$(R.progressBarEndPosition.utcTimeMillis):null;F.progressBarEndPositionUtcTimeMillis=n;F.ypcOriginalItct=R.b$;F.ypcPreview=R.ypcPreview;F.paidContentOverlayText=K1E(R);F.paidContentOverlayDurationMs=DV6(R);R.T&&Z6(R.T)&&(F.usingLocalMedia="true");F.transitionEndpointAtEndOfStream=R.transitionEndpointAtEndOfStream}return F};
g.X.getAdState=function(){return this.app.getAdState()};
g.X.isNotServable=function(R){if(R!==this.app.Jg.video_id)return!1;var F=(R=this.app.UN().getPlayerState())?R.z_:null;return!!(R&&F&&g.E(R,128)&&OQJ(F.errorCode)===5)};
g.X.supportsGaplessAudio=function(){return this.app.D().supportsGaplessAudio()};
g.X.supportsGaplessShorts=function(){return this.app.D().supportsGaplessShorts()};
g.X.enqueueVideoByPlayerVars=function(R,F,n,V){n=n===void 0?Infinity:n;this.app.enqueueVideoByPlayerVars(R,F,n,V===void 0?"":V)};
g.X.clearQueue=function(){this.app.clearQueue()};
g.X.Z0=function(){return g.KK(this)};
g.X.sendAbandonmentPing=function(){this.app.rX().sendAbandonmentPing()};
g.X.setAutonavState=function(R,F){F=F===void 0?!1:F;if(this.B("web_player_autonav_use_server_provided_state")&&!F&&(F=this.app.aC(),F==null?0:T7(F)))if(R===3)F.autonavState!==3&&(F.r8=F.autonavState);else if(F.r8!==void 0)R=F.r8,F.r8=void 0;else return;Zse(this.app,R)};
g.X.setAutonav=function(R,F){this.setAutonavState(R?2:1,F===void 0?!1:F)};
g.X.setLoopRange=function(R){this.app.setLoopRange(R)};
g.X.getLoopRange=function(){return this.app.getLoopRange()};
g.X.hasSupportedAudio51Tracks=function(){return this.app.UN().hasSupportedAudio51Tracks()};
g.X.setUserAudio51Preference=function(R,F){this.app.UN().setUserAudio51Preference(R,F===void 0?!1:F)};
g.X.getUserAudio51Preference=function(){return this.app.UN().getUserAudio51Preference()};
g.X.setProximaLatencyPreference=function(R){this.app.UN().setProximaLatencyPreference(R)};
g.X.getProximaLatencyPreference=function(){return this.app.UN().getProximaLatencyPreference()};
g.X.isProximaLatencyEligible=function(){return this.app.UN().isProximaLatencyEligible()};
g.X.getAppState=function(){return this.app.getAppState()};
g.X.updateLastActiveTime=function(){pr()};
g.X.setBlackout=function(R){this.app.setBlackout(R)};
g.X.setUserEngagement=function(R){this.app.D().I8!==R&&(this.app.D().I8=R,this.app.UN().Z1())};
g.X.updateSubtitlesUserSettings=function(R,F){F=F===void 0?!0:F;g.Cz(this.app.WI()).w7(R,F)};
g.X.getCaptionWindowContainerId=function(){var R=g.Cz(this.app.WI());return R?R.getCaptionWindowContainerId():""};
g.X.toggleSubtitlesOn=function(){var R=g.Cz(this.app.WI());R&&R.LM()};
g.X.isSubtitlesOn=function(){var R=g.Cz(this.app.WI());return R?R.isSubtitlesOn():!1};
g.X.getPlayerResponse=function(R){return(R=xM(this.app,{playerType:R}))?R.getVideoData().getPlayerResponse():null};
g.X.Ry=function(){return this.getPlayerResponse(1)};
g.X.getEmbeddedPlayerResponse=function(){return this.app.UN().getVideoData().getEmbeddedPlayerResponse()};
g.X.getWatchNextResponse=function(R){return(R=xM(this.app,{playerType:R}))?R.getVideoData().getWatchNextResponse():null};
g.X.J1G=function(){return this.getWatchNextResponse(1)};
g.X.getHeartbeatResponse=function(R){return(R=xM(this.app,{playerType:R}))?R.getVideoData().getHeartbeatResponse():null};
g.X.qh=function(){return this.getHeartbeatResponse(1)};
g.X.getStoryboardFrame=function(R,F){var n=this.app.n4();if(!n)return null;F=n.levels[F];return F?(R=g.qF(F,R))?{column:R.column,columns:R.columns,height:R.m$,row:R.row,rows:R.rows,url:R.url,width:R.bl}:null:null};
g.X.getStoryboardFrameIndex=function(R,F){var n=this.app.n4();if(!n)return-1;F=n.levels[F];if(!F)return-1;R-=this.qC();return F.ZI(R)};
g.X.getStoryboardLevel=function(R){var F=this.app.n4();return F?(F=F.levels[R])?{index:R,intervalMs:F.T,maxFrameIndex:F.DS(),minFrameIndex:F.vx()}:null:null};
g.X.getNumberOfStoryboardLevels=function(){var R=this.app.n4();return R?R.levels.length:0};
g.X.a8=function(R){return this.app.rX().a8(R)};
g.X.y7=function(){this.app.rX().y7();this.publish("onFilterAudioFeatures")};
g.X.ZF=function(){return this.getAudioTrack(1)};
g.X.getAudioTrack=function(R){return(R=xM(this.app,{playerType:R}))?R.getAudioTrack():this.app.getVideoData().FG};
g.X.Zr=function(){var R=xM(this.app,{playerType:void 0});return R?R.Zr():null};
g.X.setAudioTrack=function(R,F,n){var V=this.app.I9().c6;V&&V.QY(R);n=xM(this.app,{playerType:n});if(!n)return!1;(R=n.QY(R,F))&&this.y7();return R};
g.X.gcH=function(R,F){return this.setAudioTrack(R,F,1)};
g.X.Yt=function(){return this.getAvailableAudioTracks(1)};
g.X.getAvailableAudioTracks=function(R){return xM(this.app,{playerType:R}).getAvailableAudioTracks()};
g.X.getMaxPlaybackQuality=function(){var R=this.app.UN();return R.getVideoData().U?$2(R.LJ()):"unknown"};
g.X.getUserPlaybackQualityPreference=function(){return this.app.UN().getUserPlaybackQualityPreference()};
g.X.getSubtitlesUserSettings=function(){var R=g.Cz(this.app.WI());return R?R.kt():null};
g.X.resetSubtitlesUserSettings=function(){g.Cz(this.app.WI()).QaS()};
g.X.setMinimized=function(R){this.app.setMinimized(R)};
g.X.setOverlayVisibility=function(R){this.publish("overlayvisibilitychange",R)};
g.X.setInlinePreview=function(R){this.app.setInlinePreview(R)};
g.X.setSqueezeback=function(R){this.app.setSqueezeback(R)};
g.X.setGlobalCrop=function(R){this.app.fH().setGlobalCrop(R)};
g.X.setAppFullscreen=function(R){this.app.Ax(R?4:0)};
g.X.y6=function(){return this.app.y6()};
g.X.getVisibilityState=function(){return this.y6().getVisibilityState(this.oa(),this.dT()||g.Fk(this.app.D()),this.isMinimized(),this.isInline(),this.app.Yw(),this.app.No(),this.app.w0(),this.app.ey())};
g.X.isMutedByMutedAutoplay=function(){return this.app.vC};
g.X.isMutedByEmbedsMutedAutoplay=function(){return DU(this.app)};
g.X.setInternalSize=function(R,F){this.app.fH().setInternalSize(new g.QX(R,F))};
g.X.qC=function(R){return(R=xM(this.app,{playerType:R}))?R.qC():0};
g.X.isMinimized=function(){return this.app.isMinimized()};
g.X.Yw=function(){return this.app.Yw()};
g.X.oa=function(){return this.app.rX().oa()};
g.X.setSafetyMode=function(R){this.app.D().enableSafetyMode=R};
g.X.canPlayType=function(R){return this.app.canPlayType(R)};
g.X.updatePlaylist=function(R){if(R){var F=this.getPlaylistId(),n=!1;F&&F!==R.list&&(n=!0);R.external_list!==void 0&&(this.app.bq=zQ(!1,R.external_list));var V=R.video;(F=this.app.getPlaylist())&&!n?this.isFullscreen()&&((n=V[F.index])&&n.encrypted_id!==g.cR(F).videoId||(R.index=F.index)):Ut(this.app,{list:R.list,index:R.index,playlist_length:V.length});jaN(this.app.getPlaylist(),R);this.yZ("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.X.updateVideoData=function(R,F){g.Au(this.app.UN().getVideoData(),R,F)};
g.X.updateEnvironmentData=function(R){zV(this.app.D(),R,!1)};
g.X.XtQ=function(R){this.app.sendVideoStatsEngageEvent(R,1)};
g.X.productsInVideoVisibilityUpdated=function(R){this.publish("changeProductsInVideoVisibility",R)};
g.X.isAtLiveHead=function(R,F){return this.app.isAtLiveHead(R,F===void 0?!0:F)};
g.X.getVideoAspectRatio=function(){return this.app.fH().getVideoAspectRatio()};
g.X.getPreferredQuality=function(){return this.app.rX().getPreferredQuality()};
g.X.getPlaybackQualityLabel=function(R){if(R=xM(this.app,{playerType:R})){var F,n;return((n=(F=R.getVideoData().U)==null?void 0:F.video)==null?void 0:n.qualityLabel)||""}return""};
g.X.setPlaybackQualityRange=function(R,F,n,V){(V=xM(this.app,{playerType:V}))&&V.xJ(g.M4(R,F||R,!0,"m"),!0,n)};
g.X.qqG=function(R,F,n){this.setPlaybackQualityRange(R,F,n,1)};
g.X.onAdUxClicked=function(R,F){this.publish("aduxclicked",R,F)};
g.X.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.X.dispatchReduxAction=function(R){g.jZ.dispatch(R)};
g.X.highlightSettingsMenuItem=function(R){this.publish("highlightSettingsMenu",R)};
g.X.openSettingsMenuItem=function(R){this.publish("openSettingsMenuItem",R)};
g.X.M3=function(R,F){this.state.U.subscribe(R,F)};
g.X.Uc1=function(R,F){this.state.U.unsubscribe(R,F)};
g.X.bx=function(R,F){this.cueVideoByPlayerVars(R,F===void 0?1:F)};
g.X.tnX=function(R,F,n,V){this.loadVideoByPlayerVars(R,F,n===void 0?1:n,V)};
g.X.VE5=function(R,F,n,V){this.preloadVideoByPlayerVars(R,F===void 0?1:F,n,V)};
g.X.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.X.ju=function(){return g.KK(this).ju()};
g.X.SE=function(){return g.KK(this).SE()};
g.X.J8=function(){return g.KK(this).J8()};
g.X.q8=function(){return this.Z0().q8()};
g.X.I$=function(){var R=g.Cq.apply(0,arguments),F;(F=this.q8()).I$.apply(F,g.I(R))};
g.X.Ew=function(){this.q8().Ew()};
g.X.RJ=function(){this.q8().RJ()};
g.X.TZ=function(){this.q8().hide()};
g.X.T6=function(R,F,n,V,r,v,f,z){this.q8().T6(R,F,n,V,r,v,f,z)};
g.X.TT=function(R,F){this.q8().TT(R,F)};
g.X.Du=function(R,F,n,V,r){this.Z0().Du(R,F,n,V,r)};
g.X.ud=function(R){this.q8().setEnabled(R)};
g.X.hT=function(R,F){this.Z0().hT(R,F)};
g.X.Da=function(R,F){this.Z0().Da(R,F)};
g.X.Wu=function(R,F){this.Z0().Wu(R,F)};
g.X.EJ=function(){this.Z0().EJ()};
g.X.eM=function(R,F){this.Z0().eM(R,F)};
g.X.PM=i9(6);g.X.renderChapterSeekingAnimation=function(R,F,n){this.Z0().renderChapterSeekingAnimation(R,F,n)};
g.X.w6=function(){this.Z0().w6()};
g.X.getWebPlayerContextConfig=function(){return this.app.D().getWebPlayerContextConfig()};
g.X.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")};
g.X.cX=function(){return this.app.rX().cX()};
g.X.B6=function(R,F,n){n=n===void 0?!1:n;var V;(V=this.Z0())==null||V.B6(R,F,n)};g.a(g.l4,g.Jg);g.X=g.l4.prototype;g.X.bu=function(R,F,n,V,r,v,f){return this.app.bu(R,F,n,V,r,v,f)};
g.X.xx=function(){return this.app.xx()};
g.X.JQ=i9(8);g.X.WI=function(){return this.app.WI()};
g.X.sY=function(){var R=this.WI().A7.get("endscreen");return!!R&&R.sY()};
g.X.getRootNode=function(){return this.fH().element};
g.X.D=function(){return this.app.D()};
g.X.B5=function(){return this.app.q$()};
g.X.i_=function(R){return this.app.i_(R)};
g.X.MX=function(){var R;return((R=g.KK(this))==null?void 0:R.MX())||null};
g.X.getSourceConfigForActiveAudioTrack=function(){var R,F=(R=this.getVideoData())==null?void 0:TMJ(R);if(F){R=this.getAudioTrack().getLanguageInfo().getId();F=g.m(F);for(var n=F.next();!n.done;n=F.next()){n=n.value;var V=void 0,r=g.m((V=n.audioTracks)!=null?V:[]);for(V=r.next();!V.done;V=r.next())if(V.value.id===R)return n}}};
g.X.Sk=function(){return this.app.rX().Sk()};
g.X.getStartTime=function(R){var F;return(F=xM(this.app,R))==null?void 0:F.getStartTime()};
g.X.getPlayerStateObject=function(R){return this.app.getPlayerStateObject(R)};
g.X.fH=function(){return this.app.fH()};
g.X.getPlaylist=function(){return this.app.getPlaylist()};
g.X.getVideoData=function(R){R=R===void 0?{}:R;var F=xM(this.app,R);if(!F)return null;F=F.getVideoData();if(R.AV===!1)var n=F;else F.enableServerStitchedDai&&R.playerType===2?(F=this.app,R=F.h0?((n=F.IC.T)==null?void 0:n.getVideoData())||F.getVideoData():F.getVideoData()):R=F,n=R;return n};
g.X.Zw=function(){return this.app.rX().Zw()};
g.X.n4=function(R){return this.app.n4(R)};
g.X.ey=function(){return this.app.ey()};
g.X.isHdr=function(){return this.app.rX().isHdr()};
g.X.Pe=function(){return this.app.Pe()};
g.X.isEmbedsShortsMode=function(){var R=g.KK(this),F=this.getVideoData();R=R?R.Nn:this.getPlayerSize();var n=!!this.getPlaylist();return!(!F||!F.isEmbedsShortsMode(new g.QX(R.width,R.height),n))};
g.X.Ft=function(R,F){this.app.Ft(R,1,F)};
g.X.Rr=function(R,F,n,V,r){this.app.HB(R,F,n,V,r)};
g.X.Qn=i9(10);g.X.playVideo=function(R,F){try{var n=this.app.I9().c6;if(n){n.playVideo();return}if(!R&&this.getPresentingPlayerType()===2){var V=jk(this.app.WI());if(V&&iXI(V))return}}catch(r){g.uX(r)}this.app.playVideo(R,F)};
g.X.stopVideo=function(R){xM(this.app,{playerType:R}).stopVideo()};
g.X.Md=function(R){xM(this.app,{playerType:R}).Md()};
g.X.addEventListener=function(R,F){this.state.N.subscribe(R,F)};
g.X.removeEventListener=function(R,F){this.state.N.unsubscribe(R,F)};
g.X.mR=function(R){this.app.mR(R)};
g.X.setPlaybackQuality=function(R,F){this.setPlaybackQualityRange(R,R,F)};
g.X.y3=function(){var R={},F=this.app.rX().y3();F=g.m(F);for(var n=F.next();!n.done;n=F.next())n=n.value,R[n.quality]=n;return R};
g.X.yn=function(){return this.app.rX().yn()};
g.X.Xk=i9(14);g.X.zz=function(R){this.app.zz(R);R&&Zse(this.app,R)};
g.X.getVideoUrl=function(R,F,n,V){var r=this.getPresentingPlayerType(),v=r===2;if(V&&v||r===3)v=!1,r=1;V=this.getVideoData({playerType:r});if(!V)return"";var f;R||V.isLivePlayback||(f=Math.floor(this.getCurrentTime(r)));R=v?void 0:this.getPlaylistId()||void 0;F&&R==="WL"&&(R=void 0);return this.app.getVideoUrl(V.videoId,R,f,F,n)};
g.X.AM=i9(16);g.X.EF=i9(22);g.X.S7=function(R){this.app.rX().S7(R)};
g.X.Pt=i9(28);g.X.d2=i9(34);g.X.bQ=function(R,F){this.WI().bQ(R,F)};
g.X.OD=function(){var R=g.WR(this.WI());return!!R&&R.OD()};
g.X.oY=function(){var R=g.WR(this.WI());return!!R&&R.oY()};
g.X.QH=function(R,F,n){var V=g.WR(this.WI());V&&V.QH(R,F,n)};
g.X.AN=i9(35);g.X.Qw=function(){this.app.rX().oN()};
g.X.Ln=function(R){this.yZ("onVideoAreaChange");this.yZ(R?"onShowControls":"onHideControls")};
g.X.Rs=function(R,F){var n=g.KK(this);if(n)return n.Rs(R,F);R=this.app.fH().p5();return new g.VO(0,0,R.width,R.height)};
g.X.Rw=function(){var R=this.WI().A7.get("heartbeat");return!!R&&R.Rw()};
g.X.dV=function(){var R=this.D();if(R.Y5||R.disableSeek)return!1;var F=this.app.rX(),n=F.getVideoData();if(!n.XP()||g.Zh(n)||this.getPresentingPlayerType()===2&&!this.app.OY()||n.iZ()&&this.getPresentingPlayerType(!0)===2||F.xb()&&this.getPresentingPlayerType()!==3)return!1;R=g.vV(R);return g.pw(R)&&!n.Ow||DU(this.app)?!1:!0};
g.X.oT=function(){return this.app.rX().M$()};
g.X.isLifaAdPlaying=function(){var R,F=(R=this.getVideoData())==null?void 0:R.iZ();return F?this.getPresentingPlayerType(F)===2:!1};
g.X.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.X.DB=function(){this.app.rX().DB()};
g.X.sendVideoStatsEngageEvent=function(R,F,n){this.app.sendVideoStatsEngageEvent(R,n,F)};
g.X.iL=function(R,F,n){this.app.DJ(R,F,n)};
g.X.rG=function(R,F){this.app.xg(R,F)};
g.X.Bw=function(R,F){mi(this.app,R,F)};
g.X.CQ=i9(39);g.X.ai=function(R){return this.app.ai(R)};
g.X.wK=function(R,F){var n;(n=xM(this.app,{playerType:F}))==null||n.wK(R)};
g.X.xb=function(){var R=xM(this.app,{playerType:void 0});return R?R.xb():!0};
g.X.tb=function(){var R=this.getVideoData();return!!R&&(R.tb()||!!R.hlsFormats||!!R.xo)};
g.X.getPlaybackRate=function(){return this.app.UN().getPlaybackRate()};
g.X.setPlaybackRate=function(R,F){this.app.setPlaybackRate(R,F)};
g.X.LX=function(){return this.app.LX()};
g.X.Mc=function(){return this.app.Mc()};
g.X.Uq=function(R){return this.app.Uq(R)};
g.X.createClientVe=function(R,F,n,V){this.D().dX&&this.app.WO.createClientVe(R,F,n,V===void 0?!1:V)};
g.X.createServerVe=function(R,F,n){this.D().dX&&this.app.WO.createServerVe(R,F,n===void 0?!1:n)};
g.X.setTrackingParams=function(R,F){this.D().dX&&this.app.WO.setTrackingParams(R,F)};
g.X.logClick=function(R,F){this.D().dX&&(this.app.WO.click(R,F),this.publish("veClickLogged",R))};
g.X.logVisibility=function(R,F,n){this.D().dX&&this.app.WO.dg(R,F,n)};
g.X.hasVe=function(R){return this.D().dX?this.app.WO.hasVe(R):!1};
g.X.destroyVe=function(R){this.D().dX&&this.app.WO.destroyVe(R)};
g.X.getPresentingPlayerType=function(R){return this.app.getPresentingPlayerType(R)};
g.X.getPlayerType=function(R){var F;return(F=xM(this.app,{cpn:R}))==null?void 0:F.getPlayerType()};
g.X.uy=function(){this.app.uy()};
g.X.Fy=i9(41);g.X.sJ=function(R){this.app.sJ(R)};
g.X.tP=function(){this.app.tP()};
g.X.addPlayerResponseForAssociation=function(){};
g.X.finishSegmentByCpn=function(R,F,n){return this.app.finishSegmentByCpn(R,F,n)};
g.X.uc=function(R,F,n,V,r,v,f,z){return this.app.uc(R,F,n,V,r,v,f,z)};
g.X.dF=function(R,F,n,V,r,v,f,z){this.app.dF(R,F,n,V,r,v,f,z)};
g.X.Pn=function(){return this.app.Pn()};
g.X.wI=function(R){this.app.wI(R)};
g.X.kQ=function(R,F){F=F===void 0?Infinity:F;this.app.kQ(R===void 0?-1:R,F)};
g.X.z6=function(R){var F;(F=g.Cz(this.WI()))==null||F.z6(R)};
g.X.XZ=function(R,F,n){this.app.XZ(R,F,n)};
g.X.L2=function(){return this.app.L2()};
g.X.pK=function(R,F,n){this.app.pK(R,F,n===void 0?0:n)};
g.X.UF=function(){return this.app.UF()};
g.X.OY=function(){return this.app.OY()};
g.X.OX=function(R,F,n){return this.app.OX(R,F,n)};
g.X.m2=function(R,F,n,V){n=n===void 0?!1:n;var r;(r=xM(this.app,{playerType:V}))==null||r.m2(R,F,n)};
g.X.Qp=function(R,F){this.publish("aduxmouseover",R,F)};
g.X.AS=function(R,F){this.publish("aduxmouseout",R,F)};
g.X.Lw=function(R,F){this.publish("muteadaccepted",R,F)};
g.X.AP=function(){return this.app.fH().AP()};
g.X.As=function(R){this.app.fH().As(R)};
g.X.AG=function(R){return R?this.app.Ou():this.app.rX().AG()};
g.X.vP=function(R){this.app.vP(R)};
g.X.hp=function(){this.app.rX().hp()};
g.X.MM=function(){this.app.MM()};
g.X.getGetAdBreakContext=function(){var R=this.app.UN();return R.getVideoData().getGetAdBreakContext(R.getCurrentTime(),R.qC())};
g.X.Yp=function(R,F){this.app.rX().Yp(R,F)};
g.X.j8=function(){return this.app.rX().j8()};
g.X.Gq=i9(43);g.X.bd=i9(45);g.X.HE=function(R){var F;return((F=xM(this.app,{playerType:R}))==null?void 0:F.HE())||0};var Vk;g.a(ni,GQ);ni.prototype.ut=function(R,F){R=GQ.prototype.ut.call(this,R,F);return Object.assign({},R,this.requestHeaders)};x4f.prototype.B=function(R){return this.experiments.GH(R)};g.a(g.fi,g.G);g.X=g.fi.prototype;g.X.oG=function(){this.Sz();g.G.prototype.oG.call(this)};
g.X.Sz=function(){this.TH.dispose()};
g.X.addCueRange=function(R){this.TH.addCueRange(R)};
g.X.DJ=function(R,F){this.TH.DJ(R,F)};
g.X.Ns=function(){this.TH.Ns()};
g.X.yT=function(){return this.TH.yT()};
g.X.KN=function(R){return this.TH===R};
g.X.oN=function(){this.TH.Qw()};
g.X.HL=function(R,F){this.TH.HL(R,F)};
g.X.ZH=function(R,F){return this.TH.ZH(R,F)};
g.X.bF=function(R){this.TH.bF(R)};
g.X.y7=function(){this.TH.y7()};
g.X.a8=function(R){return this.TH.a8(R)};
g.X.getAudioTrack=function(){return this.TH.getAudioTrack()};
g.X.Zr=function(){return this.TH.Zr()};
g.X.getAvailableAudioTracks=function(){return this.TH.getAvailableAudioTracks()};
g.X.y3=function(){return this.TH.y3()};
g.X.yn=function(){return this.TH.yn()};
g.X.du=function(){return this.getVideoData().clientPlaybackNonce};
g.X.n5=function(){return this.TH.n5()};
g.X.MU=function(){return this.TH.MU()};
g.X.uX=function(){return this.TH.uX()};
g.X.getCurrentTime=function(){return this.TH.getCurrentTime()};
g.X.n3=function(){return this.TH.n3()};
g.X.nQ=function(){return this.TH.nQ()};
g.X.fC=function(R){return this.TH.fC(R)};
g.X.getDuration=function(R){return this.TH.getDuration(R)};
g.X.t5=function(){return this.TH.t5()};
g.X.wD=function(){return this.TH.wD()};
g.X.M$=function(){return this.TH.M$()};
g.X.L2=function(){return this.TH.L2()};
g.X.LW=function(){return this.TH.LW()};
g.X.B5=function(){return this.TH.B5()};
g.X.HE=function(){return this.TH.HE()};
g.X.N7=function(){return this.TH.N7()};
g.X.Uf=function(R){return this.TH.Uf(R)};
g.X.LX=function(){return this.TH.LX()};
g.X.Hy=function(){return this.TH.Hy()};
g.X.RC=function(){return this.TH.RC()};
g.X.AQ=function(){return this.TH.AQ()};
g.X.Yc=function(R,F,n){return this.TH.Yc(R,F,n)};
g.X.Xk=i9(13);g.X.getPlaybackQuality=function(){return this.TH.getPlaybackQuality()};
g.X.getPlaybackRate=function(){return this.TH.getPlaybackRate()};
g.X.getPlayerState=function(){return this.TH.getPlayerState()};
g.X.getPlayerType=function(){return this.TH.getPlayerType()};
g.X.getPlaylistSequenceForTime=function(R){return this.TH.getPlaylistSequenceForTime(R)};
g.X.Uq=function(R){return this.TH.Uq(R)};
g.X.cX=function(){return this.TH.cX()};
g.X.getPreferredQuality=function(){return this.TH.getPreferredQuality()};
g.X.Po=function(){return this.TH.Po()};
g.X.getProximaLatencyPreference=function(){return this.TH.getProximaLatencyPreference()};
g.X.LJ=function(){return this.TH.LJ()};
g.X.getStartTime=function(){return 0};
g.X.n4=function(){return this.getVideoData().n4()};
g.X.getStoryboardFormat=function(){return this.getVideoData().getStoryboardFormat()};
g.X.getStreamTimeOffset=function(){return this.TH.getStreamTimeOffset()};
g.X.e_=function(){return this.TH.e_()};
g.X.qC=function(){return this.TH.qC()};
g.X.Sk=function(){return this.TH.Sk()};
g.X.getUserAudio51Preference=function(){return this.TH.getUserAudio51Preference()};
g.X.getUserPlaybackQualityPreference=function(){return this.TH.getUserPlaybackQualityPreference()};
g.X.getVideoData=function(){return this.TH.getVideoData()};
g.X.Zw=function(){return this.TH.Zw()};
g.X.B_=function(){return this.TH.B_()};
g.X.getVideoLoadedFraction=function(){if(g.XY(this.getVideoData()))return 1;var R=this.TH.LX();return R?R.Ki():0};
g.X.KU=function(){return this.TH};
g.X.tQ=function(R){this.TH.tQ(R)};
g.X.handleError=function(R){this.TH.handleError(R)};
g.X.Z3=function(R){this.TH.Z3(R)};
g.X.xW=function(R){this.TH.xW(R)};
g.X.CQ=i9(38);g.X.xb=function(){return this.TH.xb()};
g.X.hasSupportedAudio51Tracks=function(){return this.TH.hasSupportedAudio51Tracks()};
g.X.isAd=function(){return this.getVideoData().isAd()};
g.X.PX=function(){return this.TH.PX()};
g.X.oa=function(){return this.TH.oa()};
g.X.isAtLiveHead=function(R,F){return this.TH.isAtLiveHead(R,F)};
g.X.D3=function(){return this.TH.D3()};
g.X.isGapless=function(){return this.TH.isGapless()};
g.X.isHdr=function(){return this.TH.isHdr()};
g.X.dZ=function(){return this.TH.dZ()};
g.X.oM=function(){return this.TH.oM()};
g.X.j8=function(){return this.TH.j8()};
g.X.isProximaLatencyEligible=function(){return this.TH.isProximaLatencyEligible()};
g.X.UF=function(){return this.TH.UF()};
g.X.Q4=function(R){var F;return!((F=this.TH.loader)==null||!F.Q4(R))};
g.X.RN=function(){return this.TH.RN()};
g.X.IT=function(){this.TH.IT()};
g.X.yM=function(R){this.TH.yM(R)};
g.X.Tm=function(){this.TH.Tm()};
g.X.jj=function(){this.TH.jj()};
g.X.MJ=function(){this.TH.MJ()};
g.X.gM=function(){this.TH.gM()};
g.X.Q2=function(R){this.TH.Q2(R)};
g.X.TU=i9(50);g.X.EF=i9(21);g.X.MY=function(){this.TH.MY()};
g.X.pauseVideo=function(R){this.TH.pauseVideo(R)};
g.X.prefetchKeyPlay=function(R,F){this.TH.prefetchKeyPlay(R,F)};
g.X.BM=function(R){this.TH.BM(R)};
g.X.KG=function(R){this.TH.KG(R)};
g.X.playVideo=function(R,F){return this.TH.playVideo(R,F)};
g.X.Gf=function(R,F,n,V,r){this.TH.Gf(R,F,n,V,r)};
g.X.Pt=i9(27);g.X.d2=i9(33);g.X.Ai=function(R,F,n,V,r){this.TH.Ai(R,F,n,V,r)};
g.X.m2=function(R,F,n){this.TH.m2(R,F,n)};
g.X.S7=function(R){this.TH.S7(R)};
g.X.Yp=function(R,F){this.TH.Dt.Yp(R,F)};
g.X.XD=function(R,F,n){this.TH.XD(R,F,n)};
g.X.Tk=function(R){this.TH.Tk(R)};
g.X.wE=function(R){this.TH.wE(R)};
g.X.Ph=function(R,F){this.TH.Ph(R,F)};
g.X.PV=function(R,F,n,V,r,v,f,z){this.TH.PV(R,F,n,V,r,v,f,z)};
g.X.FE=function(){r29(this.TH.Dt)};
g.X.l6=function(R){this.TH.l6(R)};
g.X.Md=function(R,F){this.TH.Md(R,F)};
g.X.removeCueRange=function(R){this.TH.removeCueRange(R)};
g.X.xg=function(R){this.TH.xg(R)};
g.X.Bw=function(R){return this.TH.a9.Bw(R)};
g.X.Tv=function(R){this.TH.Tv(R)};
g.X.AD=function(R,F,n){this.TH.AD(R,F,n)};
g.X.pR=function(){this.TH.pR()};
g.X.XE=function(){this.TH.a9.reset()};
g.X.e4=function(){this.TH.e4()};
g.X.xO=function(R,F,n){this.TH.xO(R,F,n)};
g.X.seekTo=function(R,F){this.TH.seekTo(R,F)};
g.X.sendAbandonmentPing=function(){this.TH.sendAbandonmentPing()};
g.X.sendVideoStatsEngageEvent=function(R,F){this.TH.sendVideoStatsEngageEvent(R,F)};
g.X.q0=function(R,F,n){this.TH.q0(R,F,n)};
g.X.setLoop=function(R){this.TH.setLoop(R)};
g.X.Hh=function(){this.TH.Hh()};
g.X.setMediaElement=function(R){this.TH.setMediaElement(R)};
g.X.WM=function(R,F,n,V){this.TH.WM(R,F,n,V)};
g.X.setPlaybackRate=function(R){this.TH.setPlaybackRate(R)};
g.X.Rr=function(R,F,n,V,r,v){this.TH.Rr(R,F,n,V,r,v)};
g.X.V_=function(R,F){this.TH.V_(R,F)};
g.X.wK=function(R){this.TH.wK(R)};
g.X.setProximaLatencyPreference=function(R){this.TH.setProximaLatencyPreference(R)};
g.X.WY=function(R,F,n,V){this.TH.WY(R,F,n,V)};
g.X.Ce=function(R){this.TH.Ce(R)};
g.X.zj=function(){this.TH.zj()};
g.X.u6=function(R){this.TH.u6(R)};
g.X.setUserAudio51Preference=function(R,F){this.TH.setUserAudio51Preference(R,F)};
g.X.xJ=function(R,F,n){this.TH.xJ(R,F,n)};
g.X.K5=function(){return this.TH.K5()};
g.X.DB=function(){this.TH.DB()};
g.X.AG=function(){return this.TH.AG()};
g.X.mx=function(R){this.TH.mx(R)};
g.X.gA=function(){this.TH.gA()};
g.X.vM=function(R){this.TH.vM(R)};
g.X.stopVideo=function(){this.TH.stopVideo()};
g.X.subscribe=function(R,F,n){return this.TH.subscribe(R,F,n)};
g.X.WA=function(R,F){this.TH.WA(R,F)};
g.X.togglePictureInPicture=function(){this.TH.togglePictureInPicture()};
g.X.ai=function(R){return this.TH.a9.ai(R)};
g.X.ZP=function(R){this.TH.a9.ZP(R)};
g.X.unsubscribe=function(R,F,n){return this.TH.unsubscribe(R,F,n)};
g.X.mq=function(R,F){this.TH.mq(R,F)};
g.X.QY=function(R,F){return this.TH.QY(R,F)};
g.X.Z1=function(){this.TH.Z1()};
g.X.nu=function(R){this.TH.nu(R)};
g.X.hp=function(){this.TH.hp()};g.a(ti,g.c5);g.X=ti.prototype;g.X.show=function(){var R=this.mw();g.c5.prototype.show.call(this);this.Nq&&(this.W.C(window,"blur",this.nC),this.W.C(z6(this),"click",this.mL));R||this.publish("show",!0)};
g.X.hide=function(){var R=this.mw();g.c5.prototype.hide.call(this);k4N(this);R&&this.publish("show",!1)};
g.X.rW=function(R,F){this.sourceElement=R;this.fade.show();F?(this.Z||(this.Z=this.W.C(this.K,"appresize",this.n9)),this.n9()):this.Z&&(this.W.ZO(this.Z),this.Z=void 0)};
g.X.N1=function(){this.sourceElement&&this.element&&(this.sourceElement.getAttribute("aria-haspopup"),this.sourceElement.setAttribute("aria-expanded","true"),this.focus())};
g.X.n9=function(){var R=g.KK(this.K);this.sourceElement&&R.Du(this.element,this.sourceElement)};
g.X.nC=function(){var R=this.mw();k4N(this);this.fade.hide();R&&this.publish("show",!1)};
g.X.mL=function(R){var F=ml(R);F&&(g.xW(this.element,F)||this.sourceElement&&g.xW(this.sourceElement,F)||!g.y2(R))||this.nC()};
g.X.mw=function(){return this.JJ&&this.fade.state!==4};g.a(Qk,ti);Qk.prototype.rW=function(){ti.prototype.rW.call(this);this.dialog.focus()};g.a(g.w$,g.c5);g.w$.prototype.setIcon=function(R){this.updateValue("icon",R)};
g.w$.prototype.updateValue=function(R,F){g.c5.prototype.updateValue.call(this,R,F);this.publish("size-change")};g.BN={YD:18,qk:17,wz:16,C0S:15,ooS:14,Ij:13,yI:12,RB:11,kd:10,qG:9,AUDIO:8,SUBTITLES:7,SLEEP_TIMER:6,Wj:5,hd:4,uC:3,xDG:2,REMOTE:1,LwG:0,18:"LOOP",17:"STABLE_VOLUME",16:"VOICE_BOOST",15:"REMOTE_SELECT",14:"SIZE",13:"MINIPLAYER",12:"THREED",11:"AUTONAV",10:"CINEMATIC",9:"ANNOTATIONS",8:"AUDIO",7:"SUBTITLES",6:"SLEEP_TIMER",5:"SPEED",4:"AUDIO_SETTINGS",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.a(Li,g.w$);Li.prototype.Un=function(R){this.U&&this.K.logVisibility(this.element,this.T&&R)};
Li.prototype.J=function(){var R,F,n=(R=this.K.getVideoData())==null?void 0:(F=R.accountLinkingConfig)==null?void 0:F.linked;if(n&&!this.T){var V;R=(V=this.K.getVideoData())==null?void 0:V.accountLinkingConfig;this.setIcon(oh());var r;g.cN(this,sY(R==null?void 0:(r=R.menuData)==null?void 0:r.connectedMenuLabel));var v,f,z;this.N=new Qk(this.K,sY(R==null?void 0:(v=R.menuData)==null?void 0:v.connectedDialogTitle),sY(R==null?void 0:(f=R.menuData)==null?void 0:f.connectedDialogMessage),sY(R==null?void 0:
(z=R.menuData)==null?void 0:z.confirmButtonText));g.d(this,this.N);var q;V=(R==null?void 0:(q=R.menuData)==null?void 0:q.trackingParams)||null;(this.U=!!V)&&this.K.setTrackingParams(this.element,V);this.T9.xF(this);this.T=!0}else!n&&this.T&&(this.T9.W_(this),this.T=!1)};
Li.prototype.onClick=function(){this.U&&this.K.logClick(this.element);this.T9.nC();this.N&&this.N.rW()};g.a(pi,g.G);pi.prototype.B=function(R){return this.api.B(R)};g.a(Xp,pi);Xp.prototype.onVideoDataChange=function(R){if(!R.accountLinkingConfig){var F,n=(F=R.getPlayerResponse())==null?void 0:F.accountLinkingConfig;R.accountLinkingConfig=n}var V;if(F=(V=R.accountLinkingConfig)==null?void 0:V.alsParam)R.YU=F};
Xp.prototype.setAccountLinkState=function(R){this.api.getVideoData().YU=R;this.api.Qw()};
Xp.prototype.updateAccountLinkingConfig=function(R){var F=this.api.getVideoData(),n=F.accountLinkingConfig;n&&(n.linked=R);this.api.publish("videodatachange","dataupdated",F,this.api.getPresentingPlayerType())};g.a(Ai,pi);Ai.prototype.WS=function(){var R=this.api.getPlaybackRate(),F;if(F=this.api.getVideoData()){var n=F.adFormat==="17_8",V,r=((V=F.Bj)==null?void 0:ep(V,5))===8;F=F.isAd()&&(n||r)}else F=!1;if(!F)if(F=this.api.getVideoData()){n=F.adFormat==="15_6";var v;V=((v=F.Bj)==null?void 0:ep(v,5))===7;F=F.isAd()&&(n||V)}else F=!1;F?(R!==1&&(this.T=R),this.api.setPlaybackRate(1)):this.T!==null&&(this.api.setPlaybackRate(this.T),this.T=null)};g.a(Ci,pi);
Ci.prototype.U=function(R){var F=R.getId(),n=this.api.getVideoData({playerType:1}),V=!this.api.isInline();if(!n.inlineMetricEnabled||V){if(F==="part2viewed"){if(n.NS&&g.ir(n.NS),n.PU&&T6(this,n.PU),n.oL)for(var r={CPN:this.api.getVideoData().clientPlaybackNonce},v=g.m(n.oL),f=v.next();!f.done;f=v.next())T6(this,g.OB(f.value,r))}else F==="engagedview"&&n.j4&&(r={CPN:this.api.getVideoData().clientPlaybackNonce},g.ir(g.OB(n.j4,r)));n.E5&&(r=n.E5,v=R.getId(),r=ql(r,{label:v}),g.ir(r));switch(F){case "videoplaytime25":n.yH&&T6(this,
n.yH);n.DR&&oL(this,n.DR);n.yd&&g.ir(n.yd);break;case "videoplaytime50":n.Tn&&T6(this,n.Tn);n.dw&&oL(this,n.dw);n.TB&&g.ir(n.TB);break;case "videoplaytime75":n.Uo&&T6(this,n.Uo);n.Sv&&oL(this,n.Sv);n.MA&&g.ir(n.MA);break;case "videoplaytime100":n.pG&&T6(this,n.pG),n.I1&&oL(this,n.I1),n.po&&g.ir(n.po)}(r=this.api.getVideoData().Kf)&&M1k(this,r,R.getId())&&M1k(this,r,R.getId()+"gaia")}if(n.inlineMetricEnabled&&!V)switch(F){case "videoplaybackstart":var z,q=(z=n.g4)==null?void 0:z.T;q&&T6(this,q);break;
case "videoplayback2s":(z=(q=n.g4)==null?void 0:q.N)&&T6(this,z);break;case "videoplayback10s":var Q;(z=(Q=n.g4)==null?void 0:Q.U)&&T6(this,z)}this.api.rG([R],1)};g.a(NvN,pi);g.a(yk,g.w$);yk.prototype.onClick=function(){this.enabled&&(UY(this,!this.checked),this.publish("select",this.checked))};
yk.prototype.getValue=function(){return this.checked};
yk.prototype.setEnabled=function(R){(this.enabled=R)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var s0e={TpH:2,wz:1,qk:0,2:"AUDIO_TRACK",1:"VOICE_BOOST",0:"STABLE_VOLUME"};var hi=["en-CA","en","es-MX","fr-CA"];g.a(mS,yk);mS.prototype.isLoaded=function(){var R=g.WR(this.K.WI());return R!==void 0&&R.loaded};
mS.prototype.CH=function(){!this.K.B("web_fix_annotations")&&g.WR(this.K.WI())===void 0||this.K.getPresentingPlayerType()===3?this.T&&(this.T9.W_(this),this.T=!1):this.T||(this.T9.xF(this),this.T=!0);if(this.K.B("web_fix_annotations")){var R,F,n;var V=this.K.B("web_fix_annotations")&&!!((R=this.K.getWatchNextResponse())==null?0:(F=R.playerOverlays)==null?0:(n=F.playerOverlayRenderer)==null?0:n.isAnnotationsEnabled);UY(this,V)}else UY(this,this.isLoaded())};
mS.prototype.onSelect=function(R){this.K.B("web_fix_annotations")||this.isLoaded();R?this.K.loadModule("annotations_module"):this.K.unloadModule("annotations_module");this.K.publish("annotationvisibility",R)};
mS.prototype.oG=function(){this.T&&this.T9.W_(this);yk.prototype.oG.call(this)};g.a(bQ6,pi);var Qh={},eKV=(Qh[0]=function(R){return fWV(R,function(F){var n;return(n=F.z9)==null?void 0:n.id})},Qh[2]=function(R){return x1(R,IL)},Qh[3]=function(R){return x1(R,Ki)},Qh[4]=function(R){return x1(R,iF)},Qh[1]=function(R){return x1(R,DH)},Qh);
OY.prototype.a8=function(R){return this.N[R]};
OY.prototype.y7=function(){for(var R=this.U,F={},n=g.m(g$),V=n.next();!V.done;V=n.next())if(V=V.value,this.T[V]){R=o6v[V].Ls(R,this.videoData);for(var r=g.m(g$),v=r.next();!v.done;v=r.next())v=v.value,F[v]!==void 0||t3(R,o6v[v].I3)||(F[v]=o6v[V].DZ);F[V]===void 0&&(F[V]=0)}else F[V]=1;this.N=F};
var g$=[0,1,2,3,4],cX={},o6v=(cX[0]={DZ:2,I3:vaN,Ls:RPv},cX[2]={DZ:4,I3:IL,Ls:FVE},cX[3]={DZ:5,I3:Ki,Ls:naf},cX[1]={DZ:3,I3:DH,Ls:Vik},cX[4]={DZ:6,I3:iF,Ls:rIN},cX);g.a(k1,pi);k1.prototype.getUserAudioQualitySetting=function(){return this.hs};
k1.prototype.setUserAudioQualitySetting=function(R){this.api.m2("aqs_set",{setting:R});g.i6("yt-player-audio-quality-setting",R);R!==this.hs&&(this.hs=R,this.updateEnvironmentData(),this.hasHqaAudioTrack()&&this.api.hp(),this.api.y7())};
k1.prototype.hasHqaAudioTrack=function(){var R,F,n=(R=this.api.getVideoData())==null?void 0:(F=R.N)==null?void 0:F.T;return n?t3(n,function(V){return iF(V)}):!1};
k1.prototype.updateEnvironmentData=function(){this.api.D().hs=this.hs};g.a(tiI,pi);g.a(Y1,g.N);g.X=Y1.prototype;
g.X.nY=function(){var R;if(R=this.K.getPresentingPlayerType()!==3&&g.Fp(this.K)&&this.K.fH().getPlayerSize().width>=400)if(R=this.aC(),this.K.D().B("client_respect_autoplay_switch_button_renderer"))R=!!R.autoplaySwitchButtonRenderer;else{var F,n,V,r;R=!!((F=R.getWatchNextResponse())==null?0:(n=F.contents)==null?0:(V=n.twoColumnWatchNextResults)==null?0:(r=V.autoplay)==null?0:r.autoplay)!==!1}R?this.T||(this.T=!0,this.dg(this.T),F=this.aC(),this.TJ(F.autonavState),this.K.logVisibility(this.element,this.T)):
(this.T=!1,this.dg(this.T))};
g.X.TJ=function(R){qlj(this)?this.isChecked=R!==1:((R=R!==1)||(R=g.M8(),R=g.U2("web_autonav_allow_off_by_default")&&!R.pH(141)&&g.ew("AUTONAV_OFF_BY_DEFAULT")?!1:!R.pH(140)),this.isChecked=R);zPE(this)};
g.X.onClick=function(){this.isChecked=!this.isChecked;this.K.zz(this.isChecked?2:1);zPE(this);if(qlj(this)){var R=this.aC().autoplaySwitchButtonRenderer;this.isChecked&&(R==null?0:R.onEnabledCommand)?this.K.HG("innertubeCommand",R.onEnabledCommand):!this.isChecked&&(R==null?0:R.onDisabledCommand)&&this.K.HG("innertubeCommand",R.onDisabledCommand)}this.K.logClick(this.element)};
g.X.getValue=function(){return this.isChecked};
g.X.aC=function(){return this.K.getVideoData({playerType:1})};g.a(Q0I,pi);g.a(G6,yk);G6.prototype.CH=function(R){R?this.T||(this.T9.xF(this),this.T=!0):this.T&&(this.T9.W_(this),this.T=!1);this.T&&UY(this,jd9())};
G6.prototype.J=function(){g.Qj(this.element,"ytp-menuitem-highlight-transition-enabled")};
G6.prototype.N=function(R){var F=jd9();R!==F&&(F=g.M8(),N8(190,R),N8(192,!0),F.save(),this.K.HG("cinematicSettingsToggleChange",R))};
G6.prototype.oG=function(){this.T&&this.T9.W_(this);yk.prototype.oG.call(this)};g.a(d$,pi);d$.prototype.updateCinematicSettings=function(R){this.T=R;var F;(F=this.menuItem)==null||F.CH(R);this.api.publish("onCinematicSettingsVisibilityChange",R)};g.a(wWf,pi);g.a(MJ,pi);MJ.prototype.setCreatorEndscreenVisibility=function(R){var F;(F=uK(this.api.WI()))==null||F.dg(R)};
MJ.prototype.T=function(R){function F(V){V==="creatorendscreen"&&(V=uK(n.api.WI()))&&V.Dco(n.hideButton)}
var n=this;this.hideButton=R;this.events.C(this.api,"modulecreated",F);F("creatorendscreen")};g.a(LVj,pi);g.a(lF,yk);lF.prototype.W=function(R){this.J(R?1:0)};
lF.prototype.v_=function(){if(this.enableNewAudioSettingsMenu||this.N){var R=this.K.getPresentingPlayerType();R===2||R===3?this.T&&(this.T=!1,this.T9.W_(this)):(R=this.getDrcState(),R!==1?(R===0?(UY(this,this.U()===1),this.setEnabled(!0)):(UY(this,!1),this.setEnabled(!1)),this.T||(this.T9.xF(this),this.T=!0)):this.T&&(this.T9.W_(this),this.T=!1))}else{R=this.hasDrcAudioTrack();var F=this.U()===1&&R;UY(this,F);this.setEnabled(R)}};
lF.prototype.oG=function(){this.T9.W_(this);yk.prototype.oG.call(this)};
lF.prototype.Z=function(){this.K.logClick(this.element)};g.a(NJ,pi);g.X=NJ.prototype;g.X.getDrcUserPreference=function(){return this.T};
g.X.setDrcUserPreference=function(R){this.api.m2("drc_set",{pref:R});g.i6("yt-player-drc-pref",R,31536E3);R!==this.T&&(this.T=R,this.updateEnvironmentData(),this.q9()&&this.api.hp(),this.api.y7())};
g.X.updateEnvironmentData=function(){this.api.D().h7=this.T===1};
g.X.q9=function(){var R,F,n=(R=this.api.getVideoData())==null?void 0:(F=R.N)==null?void 0:F.T;if(!n)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.B("mta_drc_mutual_exclusion_removal")){var V,r,v=(V=this.api.Zr())==null?void 0:(r=V.z9)==null?void 0:r.id;return t3(n,function(f){var z;return f.audio.T&&((z=f.z9)==null?void 0:z.id)===v})}return t3(n,function(f){var z;
return((z=f.audio)==null?void 0:z.T)===!0})};
g.X.getDrcState=function(){return this.api.a8(3)};g.a(EY,pi);EY.prototype.onVideoDataChange=function(){var R=this,F=this.api.getVideoData();this.api.Bw("embargo",1);var n=F==null?void 0:F.vA.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(n==null?0:n.length)?XWf(this,n.filter(function(V){return pWV(R,V)})):(F==null?0:F.cueRanges)&&XWf(this,F.cueRanges.filter(function(V){return pWV(R,V)}))};
EY.prototype.U=function(R){return R.embargo!==void 0};
EY.prototype.oG=function(){pi.prototype.oG.call(this);this.T={}};g.a($1,pi);
$1.prototype.addEmbedsConversionTrackingParams=function(R){var F=this.api.D(),n=F.widgetReferrer,V=F.Kk,r=this.T,v="",f=F.getWebPlayerContextConfig();f&&(v=f.embedsIframeOriginParam||"");n.length>0&&(R.embeds_widget_referrer=n);V.length>0&&(R.embeds_referring_euri=V);F.J&&v.length>0&&(R.embeds_referring_origin=v);f&&f.embedsFeature&&(R.feature=f.embedsFeature);r.length>0&&(F.B("embeds_web_enable_lite_experiment_control_arm_logging")?r.unshift(28572):g.pw(g.vV(F))&&r.unshift(159628),F=r.join(","),F=
g.PC()?F:g.Mu(F,4),R.source_ve_path=F);this.T.length=0};g.a(AIV,pi);g.a(aWe,pi);g.a(PN,g.G);PN.prototype.oG=function(){g.G.prototype.oG.call(this);this.T=null;this.U&&this.U.disconnect()};g.a(Tme,pi);g.a(bF,pi);bF.prototype.dismissFeaturedProductOverlay=function(){this.api.publish("featuredproductdismissed")};g.a(ZH,g.N);ZH.prototype.show=function(){g.N.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
ZH.prototype.stopTimer=function(){this.T&&(this.T.dispose(),this.T=null)};
ZH.prototype.onVideoDataChange=function(R){var F,n,V=(F=this.api.getVideoData())==null?void 0:(n=F.getPlayerResponse())==null?void 0:n.playabilityStatus;V&&(F=oaW(V),g.E(this.api.getPlayerStateObject(),128)||R==="dataloaderror"||!F?(this.U=0,this.stopTimer(),this.hide()):(R=(F.remainingTimeSecs||0)*1E3,R>0&&(this.show(),this.updateValue("label",sT(F.label)),Ucv(this,R))))};
ZH.prototype.oG=function(){this.stopTimer();g.N.prototype.oG.call(this)};g.a(j09,pi);g.a(eK,g.N);eK.prototype.onClick=function(){this.eQ.logClick(this.element);this.eQ.HG("onFullerscreenEduClicked")};
eK.prototype.CH=function(){this.eQ.isFullscreen()?this.T?this.fade.hide():this.fade.show():this.hide();this.eQ.logVisibility(this.element,this.eQ.isFullscreen()&&!this.T)};g.a(Rl,pi);Rl.prototype.updateFullerscreenEduButtonSubtleModeState=function(R){var F;(F=this.T)!=null&&(g.ws(F.element,"ytp-fullerscreen-edu-button-subtle",R),R&&!F.U&&(F.eQ.B("player_tooltip_data_title_killswitch")?F.element.setAttribute("title","Scroll for details"):F.element.setAttribute("data-tooltip-title","Scroll for details"),dZ(F.eQ,F.element,F),F.U=!0))};
Rl.prototype.updateFullerscreenEduButtonVisibility=function(R){var F;(F=this.T)!=null&&(F.T=R,F.CH())};g.a(Hne,g.N);g.a(uxJ,pi);g.a(F9,pi);F9.prototype.getSphericalProperties=function(){var R=g.ZU(this.api.WI());return R?R.getSphericalProperties():{}};
F9.prototype.setSphericalProperties=function(R){if(R){var F=g.ZU(this.api.WI());F&&F.setSphericalProperties(R,!0)}};g.a(n0,pi);g.X=n0.prototype;g.X.createClientVe=function(R,F,n,V){this.api.createClientVe(R,F,n,V===void 0?!1:V)};
g.X.createServerVe=function(R,F,n){this.api.createServerVe(R,F,n===void 0?!1:n)};
g.X.setTrackingParams=function(R,F){this.api.setTrackingParams(R,F)};
g.X.logClick=function(R,F){this.api.logClick(R,F)};
g.X.logVisibility=function(R,F,n){this.api.logVisibility(R,F,n)};
g.X.hasVe=function(R){return this.api.hasVe(R)};
g.X.destroyVe=function(R){this.api.destroyVe(R)};rA.prototype.setPlaybackRate=function(R){this.playbackRate=Math.max(1,R)};
rA.prototype.getPlaybackRate=function(){return this.playbackRate};c9.prototype.j1=function(R){var F=g.PH(R.info.A1.info,this.X2.Zt),n=R.info.nH+this.J,V=R.info.startTime*1E3;if(this.policy.h1)try{V=this.policy.h1?g.Kg(R)*1E3:R.info.startTime*1E3}catch(f){Math.random()>.99&&this.logger&&(V=Ty(R.U).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:R.info.KX(),encodedDataView:g.dQ(V,4)})),V=R.info.startTime*1E3}var r=R.info.clipId,v=this.policy.h1?g.mLN(R)*1E3:R.info.duration*1E3;this.policy.h1&&(V<0||v<0)&&(this.logger&&(this.logger({missingSegInfo:R.info.KX(),
startTimeMs:V,durationMs:v}),this.policy.r8||(V<0&&(V=R.info.startTime*1E3),v<0&&(v=R.info.duration*1E3))),this.policy.r8&&(V<0&&(V=R.info.startTime*1E3),v<0&&(v=R.info.duration*1E3)));return{formatId:F,nH:n,startTimeMs:V,clipId:r,Dd:v}};
c9.prototype.I2=function(R){this.timestampOffset=R};wA.prototype.seek=function(R,F){R!==this.targetTime&&(this.seekCount=0);this.targetTime=R;var n=this.videoTrack.T,V=this.audioTrack.T,r=this.audioTrack.Sn,v=NmW(this,this.videoTrack,R,this.videoTrack.Sn,F);F=NmW(this,this.audioTrack,this.policy.KC?R:v,r,F);R=Math.max(R,v,F);this.J=!0;this.X2.isManifestless&&(JIk(this,this.videoTrack,n),JIk(this,this.audioTrack,V));return R};
wA.prototype.isSeeking=function(){return this.J};
wA.prototype.Ih=function(R){this.U=R};
var lWW=2/24;var P2W=0;var yP;Un.prototype.add=function(R){if(this.pos+20>this.data.length){var F=new Uint8Array(this.data.length*2);F.set(this.data);this.data=F}for(;R>31;)this.data[this.pos++]=yP[(R&31)+32],R>>=5;this.data[this.pos++]=yP[R|0]};
Un.prototype.F6=function(){return g.Hu(this.data.subarray(0,this.pos))};
Un.prototype.reset=function(){this.pos=0};g.X=H9.prototype;g.X.FD=function(){this.UZ=this.now();eP6(this.AJ,this.UZ);this.vG.FD()};
g.X.Sw=function(R,F){var n=this.policy.U?(0,g.h1)():0;hf(this,R,F);R-this.Z<10&&this.U>0||this.Dn(R,F);this.vG.Sw(R,F);this.policy.U&&(R=(0,g.h1)()-n,this.on+=R,this.k5=Math.max(R,this.k5))};
g.X.Dn=function(R,F){var n=(R-this.Z)/1E3,V=F-this.N;this.KQ||(xW6(this.AJ,n,V),this.gI(n,V));this.Z=R;this.N=F};
g.X.nx=function(){this.lS&&Zn6(this);this.vG.nx()};
g.X.D4=function(R){this.lS||(this.lS=this.W-this.HI+R,this.us=this.W,this.pC=this.X)};
g.X.M0=function(R,F){R=R===void 0?this.X:R;F=F===void 0?this.W:F;this.U>0||(this.V=R,this.U=F,this.Nq=this.isActive=!0)};
g.X.eS=function(){return this.WB||2};
g.X.l1=function(){};
g.X.Ie=function(){var R,F={rn:this.requestNumber,rt:(this.X-this.T).toFixed(),lb:this.W,stall:(1E3*this.J).toFixed(),ht:(this.UZ-this.T).toFixed(),elt:(this.V-this.T).toFixed(),elb:this.U,d:(R=this.PG)==null?void 0:R.F6()};this.url&&Bmf(F,this.url);this.policy.U&&(F.mph=this.k5.toFixed(),F.tph=this.on.toFixed());F.ulb=this.Mq;F.ult=this.J1;return F};
g.X.now=function(){return(0,g.h1)()};
g.X.deactivate=function(){this.isActive&&(this.isActive=!1)};g.a(W9,H9);g.X=W9.prototype;g.X.Ie=function(){var R=H9.prototype.Ie.call(this);R.pb=this.lF;R.pt=(1E3*this.YF).toFixed();R.se=this.QZ;return R};
g.X.MH=function(){var R=this.vG;this.SQ||(this.SQ=R.MH?R.MH():1);return this.SQ};
g.X.lY=function(){return this.pW?this.MH()!==1:!1};
g.X.oO=function(R,F,n){if(!this.KC){this.KC=!0;if(!this.KQ){hf(this,R,F);this.Dn(R,F);var V=this.MH();this.QZ=n;if(!this.KQ)if(V===2){V=R-this.V<this.eS()*1E3+50;n=this.J1?this.Mq/(this.J1/1E3):n||this.h1;var r=this.y5*1.3;V&&n<r||(this.J1?uZ(this.AJ,this.J1/1E3,this.Mq,this.gX||this.policy.Nq):uZ(this.AJ,F/n,F,.01));$J(this.AJ,F,V?0:this.J)}else V===1&&(V=(R-this.T)/1E3,!(V<=this.policy.J)&&this.policy.J||this.aG||this.policy.UZ||!(this.U>0)||B9(this,V,F),this.U>0&&$J(this.AJ,F,this.J));R=(R-this.T)/
1E3||.01;this.policy.V&&!(this.U>0)||EL(this.AJ,R,this.N,nTR(this),this.hG)}this.deactivate()}};
g.X.US=function(R,F,n){n&&(this.SQ=2);R<0&&this.WB&&(R=this.WB);F?this.dX+=R:this.gX+=R};
g.X.eS=function(){return this.gX||this.dX||H9.prototype.eS.call(this)};
g.X.Dn=function(R,F){var n=(R-this.Z)/1E3,V=F-this.N,r=this.MH();this.isActive?r===1&&((V>0||this.policy.W)&&(n>.2||V<1024)?(this.J+=n,V>0&&n>.2&&B9(this,this.y5?n:.05,V),this.aG=!0):V>0&&(B9(this,n,V),this.aG=!0)):F&&F>=this.policy.T&&this.M0(R,F);H9.prototype.Dn.call(this,R,F)};
g.X.mF=function(R){if(!this.KQ){hf(this,R,this.W);var F=(R-this.T)/1E3;this.MH()!==2&&this.U>0&&(this.J+=(R-this.Z)/1E3,$J(this.AJ,this.N,this.J));EL(this.AJ,F,this.N,nTR(this),this.hG,!0);R=(R-this.Z)/1E3;xW6(this.AJ,R,0);this.gI(R,0)}};
g.X.M0=function(R,F){R=R===void 0?this.X:R;F=F===void 0?this.W:F;if(!(this.U>0)&&(H9.prototype.M0.call(this,R,F),this.MH()===1)){F=(this.UZ-this.T)/1E3;var n=(R-this.UZ)/1E3;this.pW&&mT(this,this.now());this.mQ||this.KQ||(this.WB&&(n=Math.max(0,n-this.WB)),R=this.AJ,R.V.Sy(1,F),R.PG.Sy(1,n))}};
g.X.gb=function(){this.pW&&mT(this,this.now());return this.Y5};
g.X.r6=function(){var R;if(R=this.N>this.Au)R=(R=this.N)?R>=this.policy.T:!1;return R};
g.X.N9=function(){return this.uS};
g.X.Oi=function(R){R=R===void 0?this.now():R;if(this.pW){mT(this,R);if(this.SQ?this.lY():this.jQ!==this.bS){var F=this.bS;if(R<F){this.uS=this.bS;return}}else F=this.jQ;F=Math.max(F,this.Y5)}else F=this.Y5;var n=this.lF-this.N;n<0&&(n=0);n=(n*this.snapshot.stall+n/this.snapshot.byterate)*1E3;this.uS=n=this.U>0?n+R:n+Math.max(R,F)};
g.X.Zv=function(){return this.now()-this.V};
g.X.Jk=function(){return(this.N-this.U)*1E3/this.Zv()||0};
g.X.CA=function(){return this.V};gA.prototype.feed=function(R){pV(this.T,R);this.pX()};
gA.prototype.pX=function(){if(this.J){if(!this.T.totalLength)return;var R=this.T.split(this.N-this.U),F=R.E9;R=R.l4;if(!this.vG.D4(this.J,F,this.U,this.N))return;this.U+=F.totalLength;this.T=R;this.U===this.N&&(this.J=this.N=this.U=void 0)}for(;;){var n=0;R=g.m(fjj(this.T,n));F=R.next().value;n=R.next().value;n=g.m(fjj(this.T,n));R=n.next().value;n=n.next().value;if(F<0||R<0)break;if(!(n+R<=this.T.totalLength)){if(!(this.vG.D4&&n+1<=this.T.totalLength))break;n=this.T.split(n).l4;this.vG.D4(F,n,0,
R)&&(this.J=F,this.U=n.totalLength,this.N=R,this.T=new sE([]));break}R=this.T.split(n).l4.split(R);n=R.l4;this.vG.V4(F,R.E9);this.T=n}};
gA.prototype.dispose=function(){this.T=new sE};g.X=On.prototype;g.X.LL=function(){return 0};
g.X.yE=function(){return null};
g.X.KA=function(){return null};
g.X.rZ=function(){return this.state>=1};
g.X.isComplete=function(){return this.state>=3};
g.X.fW=function(){return this.state===5};
g.X.onStateChange=function(){};
g.X.nX=function(R){var F=this.state;this.state=R;this.onStateChange(F);this.callback&&this.callback(this,F)};
g.X.IM=function(R){R&&this.state<R?this.nX(R):this.callback&&this.callback(this,this.state)};
g.X.Zo=function(){return this.state===-1};
g.X.KX=function(){var R="";this.info.OZ.forEach(function(F){R+=F.KX()+"."});
return R.slice(0,-1)};
g.X.dispose=function(){this.Zo()||(this.info.OZ[0].A1.N=!1,this.nX(-1))};
g.X.QD=function(){return 0};g.X=Il.prototype;g.X.r0=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.vG.FD()};
g.X.onError=function(){this.N=!0;this.onDone()};
g.X.onDone=function(){this.Zo||(this.J=!0,this.vG.nx())};
g.X.YV=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.X.getResponseHeader=function(R){try{return this.xhr.getResponseHeader(R)}catch(F){return""}};
g.X.OO=function(){return+this.getResponseHeader("content-length")};
g.X.hx=function(){return this.U};
g.X.V9=function(){return this.status>=200&&this.status<300&&!!this.U};
g.X.wY=function(){return this.T.totalLength>0};
g.X.m7=function(){var R=this.T;this.T=new sE;return R};
g.X.HQ=function(){return this.T};
g.X.abort=function(){this.Zo=!0;this.xhr.abort()};
g.X.xp=function(){return!0};
g.X.QL=function(){return this.N};
g.X.xk=function(){return""};g.X=q1E.prototype;
g.X.run=function(){var R=this,F,n,V,r,v,f,z,q,Q,c,w,L,S,p,C;return g.Y(function(y){if(y.T==1){R.status=200;F=R.T.get("docid");n=Ej(R.T.get("fmtid")||"");V=R.T.get("lmt")||"0";r=+(R.T.get("csz")||0);if(!F||!n||!r)throw Error("Invalid local URL");R.T.get("ck")&&R.T.get("civ")&&(v=new zpv(R.T.get("ck"),R.T.get("civ")));f=R.range;z=Math.floor(f.start/r);q=Math.floor(f.end/r);Q=z}if(y.T!=5)return Q<=q?g.k(y,N6R(F,n,V,Q,v),5):y.wX(0);c=y.U;if(c===void 0)throw Error("invariant: data is undefined");w=Q*r;
L=(Q+1)*r;S=Math.max(0,f.start-w);p=Math.min(f.end+1,L)-(S+w);C=new Uint8Array(c.buffer,S,p);R.U.append(C);R.loaded+=p;R.loaded<f.length&&R.vG.Sw((0,g.h1)(),R.loaded);Q++;return y.wX(2)})};
g.X.getResponseHeader=function(R){return R==="content-type"?this.T.get("type"):""};
g.X.abort=function(){};
g.X.YV=function(){return!0};
g.X.OO=function(){return this.range.length};
g.X.hx=function(){return this.loaded};
g.X.V9=function(){return!!this.loaded};
g.X.wY=function(){return!!this.U.totalLength};
g.X.m7=function(){var R=this.U;this.U=new sE;return R};
g.X.HQ=function(){return this.U};
g.X.xp=function(){return!0};
g.X.QL=function(){return!!this.error};
g.X.xk=function(){return this.error};g.X=cd9.prototype;g.X.start=function(R){var F={credentials:"include",cache:"no-store"};Object.assign(F,this.Z);this.J&&(F.signal=this.J.signal);R=new Request(R,F);fetch(R).then(this.V,this.onError).then(void 0,Be)};
g.X.onDone=function(){this.Zo()||this.vG.nx()};
g.X.getResponseHeader=function(R){return this.responseHeaders?this.responseHeaders.get(R):null};
g.X.YV=function(){return!!this.responseHeaders};
g.X.hx=function(){return this.U};
g.X.OO=function(){return+this.getResponseHeader("content-length")};
g.X.V9=function(){return this.status>=200&&this.status<300&&!!this.U};
g.X.wY=function(){return!!this.T.totalLength};
g.X.m7=function(){var R=this.T;this.T=new sE;return R};
g.X.HQ=function(){return this.T};
g.X.Zo=function(){return this.aborted};
g.X.abort=function(){this.N&&this.N.cancel().catch(function(){});
this.J&&this.J.abort();this.aborted=!0};
g.X.xp=function(){return!0};
g.X.QL=function(){return this.W};
g.X.xk=function(){return this.errorMessage};g.X=w1I.prototype;g.X.onDone=function(){if(!this.Zo){this.status=this.xhr.status;try{this.response=this.xhr.response,this.U=this.response.byteLength}catch(R){}this.T=!0;this.vG.nx()}};
g.X.r0=function(){this.xhr.readyState===2&&this.vG.FD()};
g.X.onProgress=function(R){this.Zo||(this.status=this.xhr.status,this.T||(this.U=R.loaded),this.vG.Sw((0,g.h1)(),R.loaded))};
g.X.YV=function(){return this.xhr.readyState>=2};
g.X.getResponseHeader=function(R){try{return this.xhr.getResponseHeader(R)}catch(F){return g.mq(Error("Could not read XHR header "+R)),""}};
g.X.OO=function(){return+this.getResponseHeader("content-length")};
g.X.hx=function(){return this.U};
g.X.V9=function(){return this.status>=200&&this.status<300&&this.T&&!!this.U};
g.X.wY=function(){return this.T&&!!this.response&&!!this.response.byteLength};
g.X.m7=function(){var R=this.response;this.response=void 0;return new sE([new Uint8Array(R)])};
g.X.HQ=function(){return new sE([new Uint8Array(this.response)])};
g.X.abort=function(){this.Zo=!0;this.xhr.abort()};
g.X.xp=function(){return!1};
g.X.QL=function(){return!1};
g.X.xk=function(){return""};g.a(D9,g.G);D9.prototype.Q8=function(){if(!this.XG.length)return[];var R=this.XG;this.XG=[];this.N=g.Ns(R).info;return R};
D9.prototype.O1=function(){return this.XG};
D9.prototype.oG=function(){g.G.prototype.oG.call(this);this.T=null;this.XG.length=0;this.OZ.length=0;this.N=null};g.a(xz,g.G);g.X=xz.prototype;
g.X.jao=function(){if(!this.Zo()){var R=(0,g.h1)(),F=!1;if(this.policy.H_){var n=this.timing.U>0?this.timing.V:this.timing.T;this.policy.b$&&this.N&&(n=this.N);R=R-n-(this.policy.yJ?this.policy.nZ:this.timing.eS()*1E3);n=PW(kz(this),!1);R>=2E3*n?F=!0:R>=this.policy.lP*n&&(this.T=this.policy.YK)}else if(this.timing.U>0){if(this.Z){this.policy.oC&&(this.T=0);return}R=this.timing.N9();this.timing.Oi();this.timing.N9()-R>=this.policy.Kk*.8?(this.T++,F=this.T>=5):this.T=0}else F=R-this.timing.gb(),this.policy.YK&&
F>0&&(this.T+=1),R=PW(kz(this),!1)*this.policy.OV,F=F>R*1E3;this.T>0&&this.vG.CU();F?this.y_():this.U.start()}};
g.X.y_=function(){this.W=!0;this.vG.rP();this.lastError="net.timeout";Jf(this)};
g.X.canRetry=function(R){var F=kz(this);R=R?this.policy.hL:this.policy.o8;return F.timedOut<this.policy.yH&&F.T<R};
g.X.T_=function(){return this.lastError};
g.X.m3=function(){return this.T};
g.X.dispose=function(){this.U.dispose();g.G.prototype.dispose.call(this)};var wJ={},gTJ=(wJ["1h"]=8,wJ["9h"]=4,wJ["1"]=8,wJ["9"]=4,wJ["("]=4,wJ.h=2,wJ.H=2,wJ),S_={},OgN=(S_.o=3,S_.O=3,S_.so=3,S_.a=1,S_.ah=1,S_.A=1,S_.m=1,S_.M=1,S_.sa=1,S_.mac3=7,S_.MAC3=7,S_.meac3=5,S_.MEAC3=5,S_),LH={},KWE=(LH.o=0,LH.O=0,LH.a=0,LH.ah=0,LH.A=0,LH.m=1,LH.M=1,LH.mac3=1,LH.MAC3=1,LH.meac3=1,LH.MEAC3=1,LH.so=4,LH.sa=4,LH);var kPe={WEB:1,MWEB:2,TVHTML5:7,WEB_UNPLUGGED:41,WEB_EMBEDDED_PLAYER:56,TVHTML5_AUDIO:57,TV_UNPLUGGED_CAST:58,TVHTML5_KIDS:59,WEB_MUSIC:61,WEB_CREATOR:62,TVHTML5_UNPLUGGED:65,WEB_REMIX:67,TVHTML5_SIMPLY:75,WEB_KIDS:76,TVHTML5_SIMPLY_EMBEDDED_PLAYER:85,WEB_MUSIC_EMBEDDED_PLAYER:86,WEB_MUSIC_ANALYTICS:31,WEB_GAMING:32,WEB_EXPERIMENTS:42,WEB_HEROES:60,WEB_UNPLUGGED_ONBOARDING:69,WEB_UNPLUGGED_OPS:70,WEB_UNPLUGGED_PUBLIC:71,TVHTML5_VR:72,TVHTML5_FOR_KIDS:93};var NH,lZ,En=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["787","788"]],Hg_=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],hpI=["571 401 400 399 398 787 788 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],WWe=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],uQj=["412","359"],Bie=[["141"],["774"],["380"],["328"]],sW={},ydk=(sW["398"]="397 396 395 394 788 787".split(" "),
sW["247"]=["780","779","244","243","242"],sW["136"]=["135","134","133","160"],sW["141"]=["140"],sW["774"]=["251","250"],sW),pH={},UdJ=(pH["135"]=["134","133","160"],pH["243"]=["242"],pH["781"]=["780","779"],pH["777"]=["776","775"],pH["396"]=["395","394"],pH["141"]=["140"],pH["774"]=["251","250"],pH),XT={},jR_=(XT["274"]=["317","273","318","280","279"],XT["145"]=["144","222","223","143","142"],XT["141"]=["149"],XT["140"]=["149"],XT["380"]=["381"],XT["328"]=["329"],XT),Ah={},TiN=(Ah["133"]=240,Ah["134"]=
360,Ah["135"]=480,Ah["136"]=720,Ah["137"]=1080,Ah["242"]=240,Ah["243"]=360,Ah["244"]=480,Ah["247"]=720,Ah["248"]=1080,Ah["298"]=720,Ah["299"]=1080,Ah["302"]=720,Ah["303"]=1080,Ah["395"]=240,Ah["396"]=360,Ah["397"]=480,Ah["398"]=720,Ah["399"]=1080,Ah);var DdI={unknown:0,other:0,bluetooth:117,wifi:116,cellular:120,ethernet:118,wimax:119,none:122};g.a(L0,On);g.X=L0.prototype;g.X.M6=function(){return this.timing.requestNumber};
g.X.rD=function(){return this.bL.rD()};
g.X.YE=function(){var R=AdE(this.bZ);if(this.K2){var F=this.K2,n=F.T.totalLength;R.ulen=n;n>0&&(F=o7(F.T,0),R.ubyte=F,n===1&&F===0&&(R.b248180278=!0))}this.zt&&(R.rc=this.policy.d8?this.zt:this.zt.toString());this.policy.HT&&this.SA&&(R.tr=this.SA);R.itag=this.info.OZ[0].A1.info.itag;R.ml=""+ +this.info.OZ[0].A1.o9();R.sq=""+this.info.OZ[0].nH;this.bL&&(R.ifi=""+ +re(9,this.info.jn.U));this.zt!==410&&this.zt!==500&&this.zt!==503||(R.fmt_unav="true");var V;(n=this.errorMessage||((V=this.xhr)==null?
void 0:V.xk()))&&(R.msg=n);this.AL&&(R.smb="1");this.info.isDecorated()&&(R.sdai="1");return R};
g.X.Q0=function(){return VoI(this.timing)};
g.X.xk=function(){return this.xhr.xk()||""};
g.X.r6=function(){return this.isComplete()||this.timing.r6()};
g.X.Sw=function(){!this.Zo()&&this.xhr&&(this.zt=this.xhr.status,this.policy.dP&&this.yG&&this.u4(!1),this.JG()?this.IM(2):!this.Ni&&this.r6()&&(this.IM(),this.Ni=!0))};
g.X.FD=function(){if(!this.Zo()&&this.xhr){if(!this.TO&&this.xhr.YV()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var R=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.TO=((0,g.h1)()-R)/1E3}this.xhr.YV()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.L2G&&!kAe()&&g.i6("yt-player-headers-readable",!0,2592E3);R=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var F=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),n;(n=this.Jn)==null||n.stop();this.IY=R||this.IY;
this.f2=F||this.f2}};
g.X.nx=function(){var R=this.xhr;if(!this.Zo()&&R){this.zt=R.status;R=this.ST(R);if(this.policy.HT){var F;(F=this.Jn)==null||F.stop()}R===5?Jf(this.bZ):this.nX(R);this.bZ.U.stop()}};
g.X.ST=function(R){ddI(this);if(GH(this.bZ,this.xhr.status,this.ag?this.timing.Nq||this.B3:this.xhr.V9(),!1,this.Li))return 5;var F="";dA(this.bZ,this.xhr)&&(F=X16(this.bZ,this.xhr));if(F)return $a(kz(this.bZ)),this.info.xC(this.bL,F),3;F=R.hx();if(this.K2){this.u4(!0);ddI(this);if(GH(this.bZ,this.xhr.status,this.timing.Nq||this.B3,!1,this.Li))return 5;if(!this.yF){if(this.B3)return $a(kz(this.bZ)),3;this.bZ.lastError="net.closed";return 5}}else{if(GH(this.bZ,this.xhr.status,this.xhr.V9(),!1,this.Li))return 5;
var n=this.info.N;if(n&&n!==F||R.QL())return this.bZ.lastError="net.closed",5;this.u4(!0)}n=to_(this)?R.getResponseHeader("X-Bandwidth-Est"):0;if(R=to_(this)?R.getResponseHeader("X-Bandwidth-Est3"):0)this.HN=!0,this.policy.Ox&&(n=R);p16(this.bZ,F,n?Number(n):0,this.info.OZ[0].type===5);return 4};
g.X.canRetry=function(){this.Zo();var R=this.info.isDecorated();return this.bZ.canRetry(R)};
g.X.onStateChange=function(){this.isComplete()&&(this.policy.zR?this.rP():this.timing.deactivate())};
g.X.y_=function(){this.bZ.y_()};
g.X.CU=function(){this.callback&&this.callback(this,this.state)};
g.X.m3=function(){return this.bZ.m3()};
g.X.dispose=function(){On.prototype.dispose.call(this);this.bZ.dispose();var R;(R=this.Jn)==null||R.dispose();this.policy.zR||this.rP()};
g.X.rP=function(){this.xhr&&this.xhr.abort();this.timing.deactivate()};
g.X.Q8=function(){if(!this.O1().length)return[];this.r5=!0;return this.yG.Q8()};
g.X.JG=function(){if(this.state<1)return!1;if(this.yG&&this.yG.XG.length)return!0;var R;return((R=this.xhr)==null?0:R.wY())?!0:!1};
g.X.O1=function(){this.u4(!1);return this.yG?this.yG.O1():[]};
g.X.u4=function(R){try{if(R||this.xhr.YV()&&this.xhr.wY()&&!dA(this.bZ,this.xhr)&&!this.HC)this.yG||(this.yG=new D9(this.policy,this.info.OZ)),this.xhr.wY()&&(this.K2?this.K2.feed(this.xhr.m7()):iZ(this.yG,this.xhr.m7(),R&&!this.xhr.wY()))}catch(F){this.K2?Jdk(this,F):g.mq(F)}};
g.X.V4=function(R,F){switch(R){case 21:R=F.split(1).l4;GPV(this,R);break;case 22:this.yF=!0;iZ(this.yG,new sE([]),!0);break;case 43:if(R=iA(new Bu(F),1))this.info.xC(this.bL,R),this.B3=!0;break;case 45:F=BH(new Bu(F));R=F.D2;F=F.F4;R&&F&&(this.WL=R/F);break;case 44:this.cM=pPf(new Bu(F));var n,V,r;!this.timing.Nq&&((n=this.cM)==null?void 0:n.action)===4&&((V=this.cM)==null?0:(r=V.dB)==null?0:r.ag)&&(this.ag=this.cM.dB.ag);break;case 53:this.policy.HT&&(R=SqV(new Bu(F)).RY)&&(this.Jn||(this.RY=R,this.Jn=
new g.ZK(this.Zi,R,this)),this.Jn.start());break;case 60:this.KR=uT(new Bu(F));break;case 58:if(R=YaE(new Bu(F)))this.PY=R,R.PY===3&&(this.Li=!0)}};
g.X.D4=function(R,F,n,V){n||this.timing.D4(V);if(R!==21)return!1;if(R=this.policy.dP)if(R*=this.info.OZ[0].A1.info.yz,F.totalLength+n!==V&&F.totalLength<R)return!1;if(!n){if(F.totalLength===1)return!0;F=F.split(1).l4}GPV(this,F);return!0};
g.X.hx=function(){return this.xhr.hx()};
g.X.LL=function(){return this.TO};
g.X.MH=function(){return this.lY()?2:1};
g.X.lY=function(){if(!this.policy.V.A5||!isNaN(this.info.m0)&&this.info.m0>0)return!1;if(!this.xhr.YV())return!0;if(this.K2)var R=!this.info.N;else this.xhr.OO()?R=!1:(R=this.xhr.getResponseHeader("content-type"),R=R==="audio/mp4"||R==="video/mp4"||R==="video/webm");if(!R)return!1;if(isNaN(this.info.m0)){R=this.xhr.getResponseHeader("x-head-seqnum");var F=this.timing.policy.X?1:0;if(R&&Number(R)>this.info.OZ[0].nH+F)return!1}return!0};
g.X.QD=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.X.yE=function(){this.xhr&&(this.IY=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.IY};
g.X.KA=function(){this.xhr&&(this.f2=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.f2};
g.X.T_=function(){return this.bZ.T_()};
g.X.Zi=function(){if(!this.Zo()&&this.xhr){this.SA="heartbeat";var R=this.bZ;R.T+=2;this.CU()}};g.a(Z9,H9);g.X=Z9.prototype;g.X.Dn=function(R,F){var n=(R-this.Z)/1E3,V=F-this.N;this.U>0?V>0&&(this.jQ&&(n>.2||V<1024?(this.J+=n,n>.2&&MoV(this,.05,V)):MoV(this,n,V)),this.bS&&(this.Y5+=V,this.gX+=n)):F>this.policy.T&&this.M0(R,F);H9.prototype.Dn.call(this,R,F)};
g.X.oO=function(R,F){hf(this,R,F);this.Dn(R,F);this.jQ&&(F=this.N*this.snapshot.stall+this.N/this.snapshot.byterate,this.U>0&&$J(this.AJ,this.Y5,this.J),R=(R-this.T)/1E3||.01,this.policy.V&&!(this.U>0)||EL(this.AJ,R,this.N,F,!1))};
g.X.mF=function(R){hf(this,R,this.W);var F=(R-this.Z)/1E3;xW6(this.AJ,F,0);this.gI(F,0);!this.jQ&&this.U>0||(F=this.N*this.snapshot.stall+this.N/this.snapshot.byterate,this.U>0&&(this.J+=(R-this.Z)/1E3,$J(this.AJ,this.Y5,this.J)),EL(this.AJ,(R-this.T)/1E3||.01,this.N,F,!1,!0))};
g.X.RZ=function(R){R=R.Qx||2147483647;(R&2)!==2&&(this.bS=!1);(R&1)===1&&(this.jQ=!0)};
g.X.IZ=function(R){R=R.Qx||2147483647;(R&2)===2&&(this.bS=!1);(R&1)===1&&(this.jQ=!1)};
g.X.CA=function(){return this.V};
g.X.Zv=function(){var R=this.bS?this.now()-this.Z:0;return Math.max(this.gX*1E3+R,1)};
g.X.Jk=function(){return this.Y5*1E3/this.Zv()};
g.X.M0=function(R,F){R=R===void 0?this.X:R;F=F===void 0?this.W:F;this.U>0||(H9.prototype.M0.call(this,R,F),F=this.AJ,R=(R-this.UZ)/1E3,F.V.Sy(1,(this.UZ-this.T)/1E3),F.PG.Sy(1,R))};
g.X.l1=function(R){this.dX=R};
g.X.Ie=function(){var R=H9.prototype.Ie.call(this);R.rbw=this.Jk();R.rbe=+this.bS;R.gbe=+this.jQ;R.ackt=(this.dX-this.T).toFixed();return R};
g.X.Oi=function(){};
g.X.N9=function(){return NaN};
g.X.gb=function(){return this.T+this.snapshot.delay*1E3};eh.prototype.V4=function(R,F){switch(R){case 20:R=new Bu(F);R={QJ:OE(R,1),videoId:iA(R,2),itag:OE(R,3),lmt:OE(R,4),xtags:iA(R,5),sT:OE(R,6),lG:KV(R,8),QB:OE(R,9),Wx2:OE(R,10),startMs:OE(R,11),durationMs:OE(R,12),Og:OE(R,14),timeRange:xK(R,15,jl),VN:OE(R,16),Jq:OE(R,17),S$:OE(R,20),oZ:xK(R,21,RMk),clipId:iA(R,1E3)};this.qB(R);break;case 21:this.dh(F,!1);break;case 22:this.xE(F);break;case 31:R=JT(F,vHk);this.vG.Ff(R);break;case 52:R=JT(F,Lz6);this.vG.MK(R);break;case 69:R={Ks:YK(new Bu(F),1,bGJ)};
this.vG.CD(R);break;case 65:R=JT(F,ke9);this.vG.BQ(R);break;default:this.tS(R,F)}};
eh.prototype.qB=function(){};
eh.prototype.tS=function(){};var y8v=new Set([53,49,50]);g.a(Rs,eh);g.X=Rs.prototype;g.X.tS=function(R,F){rWI(this.vG)&&!y8v.has(R)?this.T.push({id:R,data:F}):ljj(this,R,F)};
g.X.Hd=function(R){R=new Bu(R);R={wkH:YK(R,1,Uy),WqS:YK(R,2,Uy)};this.vG.Hd(R)};
g.X.qJ=function(R){var F=new Bu(R);R=kK(F,1);var n=kK(F,2);F=kK(F,3);this.vG.qJ(R,n,F)};
g.X.kE=function(R){R=BH(new Bu(R));this.vG.kE(R)};
g.X.Vq=function(R){R=JT(R,zMN);this.vG.Vq(R)};
g.X.Y7=function(R){R=new Bu(R);R={videoId:iA(R,1),formatId:xK(R,2,Uy),endTimeMs:OE(R,3),eCQ:OE(R,4),mimeType:iA(R,5),bR:xK(R,6,ZG_),indexRange:xK(R,7,ZG_),CL:xK(R,8,e3e)};this.vG.Y7(R)};
g.X.MO=function(R){R=new Bu(R);R={type:OE(R,1),scope:OE(R,2),value:Dm(R,3),sendByDefault:KV(R,4),writePolicy:OE(R,5)};this.vG.MO(R)};
g.X.Sb=function(){this.vG.Sb()};
g.X.fQ=function(R){R=fzJ(new Bu(R));this.vG.fQ(R)};
g.X.x7=function(R){R=SqV(new Bu(R));this.vG.x7(R)};
g.X.rM=function(R){R=pPf(new Bu(R));this.vG.rM(R)};
g.X.EP=function(R){R={redirectUrl:iA(new Bu(R),1)};this.vG.EP(R)};
g.X.dh=function(R){var F=o7(R,0);if(R.totalLength!==1){R=R.split(1).l4;var n=this.U[F]||null;n&&tZ(this.vG.VG,F,n,R)}};
g.X.xE=function(R){R=o7(R,0);var F=this.U[R]||null;F&&this.vG.xE(R,F)};
g.X.qB=function(R){var F=R.QJ,n=R.lG,V=R.sT,r=R.Jq,v=R.VN,f=R.QB,z=R.startMs,q=R.durationMs,Q=R.timeRange,c=R.Og,w=R.S$,L=R.clipId,S=R.oZ,p=VR(R);R=FrO.has(YQ[""+R.itag]);this.U[F]=p;var C=-1;z&&w&&(Q==null?0:Q.timescale)&&(C=z/1E3+w/Q.timescale);this.vG.US(p,R,C,{QJ:F,lG:!!n,sT:V!=null?V:-1,QB:f!=null?f:-1,startMs:z!=null?z:-1,durationMs:q!=null?q:-1,Og:c,Jq:r,VN:v,clipId:L,timeRange:Q,oZ:S})};
g.X.RZ=function(R){R={Qx:OE(new Bu(R),1)};this.vG.RZ(R)};
g.X.IZ=function(R){R={Qx:OE(new Bu(R),1)};this.vG.IZ(R)};
g.X.Ps=function(R){R=YaE(new Bu(R));this.vG.Ps(R)};
g.X.dY=function(R){R={Vr:xK(new Bu(R),1,cek)};this.vG.dY(R)};
g.X.onSnackbarMessage=function(R){R=OE(new Bu(R),1);this.vG.onSnackbarMessage(R)};
g.X.DQ=function(R){R=new Bu(R);R={reloadPlaybackParams:xK(R,1,xBj),FI:KV(R,2)};this.vG.DQ(R)};
g.X.gw=function(){for(var R=g.m(this.T),F=R.next();!F.done;F=R.next())F=F.value,ljj(this,F.id,F.data);this.T=[]};g.a(FW,g.G);g.X=FW.prototype;g.X.j0=function(){return Array.from(this.vT.keys())};
g.X.pD=function(R){R=this.vT.get(R);var F=R.XG;R.iO+=F.totalLength;R.XG=new sE;return F};
g.X.D7=function(R){return this.vT.get(R).D7};
g.X.Ci=function(R){return this.vT.get(R).Ci};
g.X.US=function(R,F,n){this.vT.get(R)||this.vT.set(R,{XG:new sE,iO:0,bytesReceived:0,Bb:0,v9:!1,D7:!1,Ci:!1,cB:F,BP:[],OZ:[],F3:[],hh:!1,e7:new Map,mj:new Map,Up:[]});F=this.vT.get(R);this.X2?(R=ZgV(this,R,n),bg6(this,n.QJ,F,R)):(n.lG?F.Bb=n.Og:F.F3.push(n),F.BP.push(n))};
g.X.o2=function(R){var F;return((F=this.vT.get(R))==null?void 0:F.OZ)||[]};
g.X.IM=function(){for(var R=g.m(this.vT.values()),F=R.next();!F.done;F=R.next())if(F=F.value,F.v9){if(F.onProgress)F.onProgress();F.v9=!1}};
g.X.xE=function(R,F){F=this.vT.get(F);nm?F&&!F.D7&&(F.e7.get(R)?F.e7.get(R).SP=!0:F.e7.set(R,{data:new sE,Qj:0,SP:!0}),F.Ci=!0):F&&!F.Ci&&(F.Ci=!0)};
g.X.Q8=function(R){if(nm){var F=this.vT.get(R);if(F)for(var n=g.m(F.e7),V=n.next();!V.done;V=n.next()){var r=g.m(V.value);V=r.next().value;r=r.next().value;var v=F.mj.get(V);if(c1(v[0])){if(!r.SP)continue;var f=r.data,z=0,q=[];v=g.m(v);for(var Q=v.next();!Q.done;Q=v.next()){Q=Q.value;var c=Q.U,w=Xv(f,z,c);z+=c;q.push(new gi(Q,w))}F.Up.push.apply(F.Up,g.I(q))}else if(r.data.totalLength>0||!v[0].range&&r.SP)f=void 0,z=v[0],q=r.Qj,v=r.data,z.range||(f=r.SP),f=new gi(rQE(z,z.T+q,v.totalLength,f),v),r.Qj+=
f.info.U,F.Up.push(f);F.e7.get(V).data=new sE;r.SP&&F.e7.delete(V)}R=this.vT.get(R);if(!R)return[];F=R.Up;R.Up=[];n=g.m(F);for(V=n.next();!V.done;V=n.next())R.iO+=V.value.info.U;return F||[]}n=(F=this.vT.get(R))==null?void 0:F.yG;if(!n)return[];this.u4(R,n);return n.Q8()};
g.X.JG=function(R){if(nm)return fm(this,R);var F,n,V;return!!((n=(F=this.vT.get(R))==null?void 0:F.yG)==null?0:(V=n.O1())==null?0:V.length)||fm(this,R)};
g.X.u4=function(R,F){for(;fm(this,R);){var n=this.pD(R);var V=R;V=this.vT.get(V).D7&&!vs(this,V);iZ(F,n,V&&Poj(this,R))}};
g.X.oG=function(){g.G.prototype.oG.call(this);for(var R=g.m(this.vT.keys()),F=R.next();!F.done;F=R.next())Vy(this,F.value);var n;if((n=this.gD)==null?0:n.g4)for(R=g.m(this.vT.values()),F=R.next();!F.done;F=R.next())F=F.value,F.e7.clear(),F.mj.clear(),F.Up.length=0,F.OZ.length=0,F.BP.length=0,F.F3.length=0;this.vT.clear()};
var nm=!1;var U3q=new Set([2]);g.a(zB,g.G);g.X=zB.prototype;g.X.Sw=function(){!this.Zo()&&this.xhr&&(this.u4(!1),hK(this.vG,this))};
g.X.FD=function(){};
g.X.nx=function(){if(!this.Zo()&&this.xhr){var R=this.ST();R===5?(this.T_()==="net.badstatus"&&this.vG.hS(),Jf(this.bZ)):(this.vG.Na(),this.nX(R));this.bZ.U.stop();var F;(F=this.YJ)==null||F.stop()}};
g.X.ST=function(){var R="";dA(this.bZ,this.xhr)&&(R=X16(this.bZ,this.xhr));if(R)return this.info.jn.xC(this.bL,R),3;this.u4(!0);if(GH(this.bZ,this.xhr.status,this.xhr.V9(),this.info.KD(),this.Li))return 5;if(this.DE)return 3;p16(this.bZ,this.xhr.hx(),0,this.KD());this.policy.Yy&&vMI(this.vG);return 4};
g.X.u4=function(R){var F=this.xhr;!R&&dA(this.bZ,this.xhr)||!F.wY()||(R=F.m7(),this.K2.feed(R))};
g.X.V4=function(R,F){this.xhr.xp()&&R===21&&n09(this);this.l5.V4(R,F)};
g.X.D4=function(R,F,n,V){n||(this.Ul.D4(V),this.policy.Nr&&R===21&&n09(this));if(R!==21)return!1;this.Ul.Nq=!0;R=F.totalLength;n||(this.Ub=o7(F,0),F=F.split(1).l4);var r=this.policy.jF,v=this.l5.U[this.Ub],f=this.X2.N.get(v);if(r&&f&&(r*=f.info.yz,R+n!==V&&R<r))return!1;tZ(this.VG,this.Ub,v,F);return!0};
g.X.fQ=function(R){this.vG.fQ(R,this.M6())};
g.X.x7=function(R){if(this.policy.enableServerDrivenRequestCancellation){var F;(F=this.YJ)==null||F.dispose();this.Ei=R;R.Ts&&(this.YJ=new g.ZK(this.bM,R.Ts,this));this.bM()}};
g.X.bM=function(){var R;if((R=this.Ei)!=null&&R.items){var F;(F=this.YJ)==null||F.start();if(this.Ul.U>0){this.policy.H_&&this.bZ.U.stop();R=this.Ul.Zv();F=this.Ul.Jk();var n=VUI(this,R);if(!(F>n.uV||n.yb>0&&this.info.u8()>n.yb)){this.pF=(0,g.h1)();var V;(V=this.YJ)==null||V.stop();this.policy.Yy&&(V=this.vG,R={GR:Math.round(F*R/1E3),j5:R},V.policy.Yy&&(V.Y5=R,V.NE++));this.y_()}}}};
g.X.y_=function(){this.bZ.y_()};
g.X.rM=function(R){this.vG.rM(R,this.M6())};
g.X.EP=function(R){this.DE=!0;this.info.jn.xC(this.bL,R.redirectUrl)};
g.X.RZ=function(R){this.Ul instanceof Z9&&this.Ul.RZ(R)};
g.X.IZ=function(R){this.Ul instanceof Z9&&this.Ul.IZ(R)};
g.X.Y7=function(R){var F=R.formatId,n=VR({itag:F.itag,lmt:F.lmt,xtags:F.xtags}),V,r,v=new fg(((V=R.bR)==null?void 0:V.first)||0,((r=R.bR)==null?void 0:r.Lz)||0),f,z;V=new fg(((f=R.indexRange)==null?void 0:f.first)||0,((z=R.indexRange)==null?void 0:z.Lz)||0);this.X2.N.get(n)||(n=R.CL||{},n.mimeType=R.mimeType,n.itag=F.itag,n.lastModified=""+(F.lmt||0),n.xtags=F.xtags,R=this.X2,F=Rc(""),n=Zj(n,null),lo(R,new GP(F,n,v,V)))};
g.X.kE=function(R){this.vG.kE(R,this.M6())};
g.X.onSnackbarMessage=function(R){if(this.policy.LO)this.vG.onSnackbarMessage(R)};
g.X.CD=function(R){this.policy.W&&this.vG.CD(R,this.M6())};
g.X.Ff=function(R){this.Cn=R;this.bZ.N=(0,g.h1)();this.vG.Ff(R)};
g.X.Yg=function(R){this.vG.Yg(R)};
g.X.qJ=function(R,F,n){this.vG.qJ(R,F,n)};
g.X.MO=function(R){R.scope===2&&(this.PP=R);this.vG.MO(R)};
g.X.Sb=function(){this.YA=!0;this.vG.Sb()};
g.X.Hd=function(R){this.policy.xw&&this.vG.Hd(R)};
g.X.Vq=function(R){this.vG.Vq(R,this.M6())};
g.X.Ps=function(R){R.PY===3&&(this.Li=!0);this.vG.Ps(R)};
g.X.dY=function(R){this.vG.dY(R)};
g.X.DQ=function(R){this.vG.DQ(R)};
g.X.BQ=function(R){this.vG.BQ(R)};
g.X.canRetry=function(){this.Zo();return this.bZ.canRetry(!1)};
g.X.dispose=function(){if(!this.Zo()){g.G.prototype.dispose.call(this);this.bZ.dispose();var R;(R=this.YJ)==null||R.dispose();this.nX(-1);this.rP()}};
g.X.nX=function(R){this.state=R;hK(this.vG,this)};
g.X.KD=function(){return this.info.KD()};
g.X.KI=function(){return this.YA};
g.X.s_=function(){return this.PP};
g.X.US=function(R,F,n,V){n>=0&&this.vG.fY(n);V.clipId&&(this.clipId=V.clipId);this.policy.U&&!F&&(this.sS=V.QB);if(this.info.isDecorated()){var r=this.info,v,f;n=((v=r.data)==null?0:(f=v.Xd)==null?0:f.Xt)?r.data.Xd.Xt:-1;n>=0&&n>V.QB&&this.vG.loader.m2("sdai",{skpsqmismatch:"1",stsq:n,rcvsq:V.QB,a:F})}this.VG.US(R,F,V);this.policy.vA&&this.Cn&&this.Ul instanceof W9&&(v=this.Cn.gF,this.Ul.US(V.durationMs/1E3,F,v>0&&V.QB+1>=v));this.VG.vT.get(R).hh=!0;this.vG.US(V)};
g.X.xE=function(R,F){this.VG.xE(R,F)};
g.X.MK=function(R){this.requestIdentifier=R};
g.X.Q8=function(R){return this.VG.Q8(R)};
g.X.o2=function(R){return this.VG.o2(R)};
g.X.JG=function(R){return this.VG.JG(R)};
g.X.j0=function(){return this.VG.j0()};
g.X.MH=function(){return 1};
g.X.M6=function(){return this.Ul.requestNumber};
g.X.cz=function(){return this.requestIdentifier};
g.X.rD=function(){return this.bL.rD()};
g.X.Gx=function(){this.rP()};
g.X.rP=function(){this.Ul.deactivate();var R;(R=this.xhr)==null||R.abort()};
g.X.isComplete=function(){return this.state>=3};
g.X.wj=function(){return this.state===3};
g.X.fW=function(){return this.state===5};
g.X.VR=function(){return this.state===4};
g.X.jX=function(){return this.isComplete()};
g.X.rZ=function(){return this.state>=1};
g.X.m3=function(){return this.policy.oC?this.bZ.m3():0};
g.X.CU=function(){this.policy.oC&&hK(this.vG,this)};
g.X.I6=function(){return dO(this.info)};
g.X.gw=function(){this.sA()&&!this.j3&&(this.j3=!0,this.l5.gw())};
g.X.sA=function(){var R,F;var n=(R=this.info.T)==null?void 0:(F=R.Qm)==null?void 0:F.t8;return!!n&&U3q.has(n)};
g.X.oJ=function(){return"SABR"};
g.X.T_=function(){return this.bZ.T_()};
g.X.YE=function(){var R=AdE(this.bZ);Object.assign(R,tZV(this.info));R.req="sabr";R.rn=this.M6();var F;if((F=this.xhr)==null?0:F.status)R.rc=this.policy.d8?this.xhr.status:this.xhr.status.toString();var n;(F=(n=this.xhr)==null?void 0:n.xk())&&(R.msg=F);this.pF&&(n=VUI(this,this.pF-this.Ul.CA()),R.letm=n.Qn2,R.mrbps=n.uV,R.mram=n.yb);return R};v0N.prototype.tick=function(R,F){this.ticks[R]=F?window.performance.timing.navigationStart+F:(0,g.h1)()};g.a(Qy,g.fG);g.X=Qy.prototype;
g.X.Ky=function(R,F,n,V){var r=!1;this.policy.U&&(r=n?this.jQ===R.nH:this.J1===R.nH);if(this.vI&&V&&!r){V=[];r=[];var v=[],f=void 0,z=0;F&&(V=F.T,r=F.U,v=F.J,f=F.N,z=F.RD,this.m2("sdai",{sq:R.nH,ssvicpns:V.join("."),ssvid:r.join(".")}));this.policy.U&&(n?this.jQ=R.nH:this.J1=R.nH);this.vI.pw(R.nH,R.startTime,V,r,v,n,z,f)}if(this.policy.U){if(n){this.U===1&&wj(this,5,"noad");var q;R.nH!==((q=this.T)==null?void 0:q.nH)&&(Qck(this,R,F,n),isNaN(R.startTime)||cWf(this,R.nH,pm(this,R.startTime,R.nH),!!F,
this.vI))}}else n&&Qck(this,R,F)};
g.X.rh=function(R,F,n){var V=this.videoTrack.A1.index.VZ()<=F;this.T={J0:R,nH:F,zo:n};V&&cs(this,R,F)};
g.X.nE=function(){this.vI&&this.vI.nE()};
g.X.m2=function(R,F,n){(R!=="sdai"||this.policy.K$||(n===void 0?0:n))&&this.loader.m2(R,F)};
g.X.AG=function(R,F){var n=this.videoTrack.A1.index.kc(R);if(n>=0){var V;var r=((V=F.dC(n,2))==null?void 0:V.jP)||"";if(this.policy.U||r)return F.Hs(R,n),SF(this.loader,R,R,n),this.m2("sdai",{cmskpad:1,t:R.toFixed(3),sq:n}),!0}this.m2("sdai",{cmskpad:0,t:R.toFixed(3),sq:n});return!1};g.X=Xpj.prototype;
g.X.WY=function(R,F,n,V){var r=this.policy.Cf&&V?R+";"+V:R;r||(r=AZ(this,this.J));this.m2("clsdai",{setadcfg:R||"misscid",cid:r,acpn:n,acfglen:(F==null?void 0:F.length)||0});if(!this.T.has(r)){this.m2("clsdai",{setadcfg:"noentry",cid:r});var v,f;this.T.set(r,{event:"unknown",startTimeSecs:0,FP:0,Oa:[],eD:Date.now(),TX:-1,DN:6,cuepointId:R||((v=this.J)==null?void 0:v.identifier)||"",tileContext:V||((f=this.J)==null?void 0:f.tileContext)||""})}(R=this.T.get(r))?F?(R.DN=6,R.Oa.push(n),R.GB=F):R.DN=2:
this.m2("clsdai",{setadcfg:"notfound",cid:r})};
g.X.Ce=function(R){var F=R||AZ(this,this.J);this.m2("clsdai",{rmvadcfg:R||"misscid",lastcid:AZ(this,this.J)});(R=this.T.get(F))?(R.GB="",R.DN=4):this.m2("clsdai",{rmadcfg:"notfound",cid:F})};
g.X.CD=function(R,F,n,V,r){this.Z=F;var v;if(!((((v=R.Ks)==null?void 0:v.length)||0)<=0))if(V){if(this.N=V,this.m2("clsdai",{oncldisabled:V,rn:F}),this.N===3&&r)for(F=g.m(R.Ks),n=F.next();!n.done;n=F.next())n=n.value,n.J0&&n.trackType===2&&LZk(r,a0R(this,n),n.QB||0,!0)}else for(r=g.m(R.Ks),R=r.next();!R.done;R=r.next()){v=R.value;if(R=v.J0){R=a0R(this,v);V=F;var f=v.QB||0,z=n,q=AZ(this,R);this.T.has(q)?(v=this.T.get(q),f>v.TX&&(v.startTimeSecs=R.startSecs,v.FP=R.FP,v.event==="predictStart"&&v.DN===
5&&R.event!=="predictStart"&&(v.eD=Date.now()),v.event=R.event)):(v={event:R.event,startTimeSecs:R.startSecs,FP:R.FP,Oa:[],TX:f,DN:0,cuepointId:R.identifier,tileContext:R.tileContext},this.T.set(q,v),this.policy.W&&this.m2("clsdai",{newcid:1,cid:R.identifier,tc:R.tileContext,evt:R.event,sn:f,rn:V,st:T3j(v.DN)}));var Q=!1;v.DN===0&&((z==null?0:z.Q_(R))?v.DN=5:(v.DN=z?11:3,v.GB="",Q=!0),v.eD=Date.now(),v.TX=f,this.policy.W&&this.m2("clsdai",{onqpnt:1,cid:R.identifier,tc:R.tileContext,evt:R.event,sn:f,
rn:V,st:T3j(v.DN)}));f>v.TX&&(z==null||z.Q_(R),v.TX=f);this.J=R;this.policy.W&&this.U.add(q);R=Q}R&&(this.W=!0)}};
g.X.Hs=function(R,F,n){var V=R;this.policy.W&&(V+=n);var r,v="";V=Cik(this,V);V.length>0&&(v=V[0])&&(r=this.T.get(v));if(!r||r.U5){var f;this.m2("clsdai",{skipadfail:1,cid:v,sn:F,mt:R.toFixed(3),of:n.toFixed(3),skipsq:((f=r)==null?void 0:f.U5)||-1});return!1}this.m2("clsdai",{skipadsuc:1,cid:v,sn:F,mt:R.toFixed(3),of:n.toFixed(3)});r.U5=F;this.U.clear();this.U.add(v);return!0};
g.X.cP=function(){this.m2("clsdai",{rstskipad:1});for(var R=g.m(this.T.values()),F=R.next();!F.done;F=R.next())F.value.U5=NaN};g.a(TB,g.G);TB.prototype.T3=function(){return this.Z&&yy(this).size>0};
TB.prototype.HX=function(R,F,n){n=n===void 0?{}:n;this.policy.Fb=SU(R,n,this.J,F===void 0?!1:F)};jF.prototype.Sy=function(R,F){var n=Math.pow(this.alpha,R);this.T=F*(1-n)+n*this.T;this.U+=R};
jF.prototype.Cm=function(){return this.T/(1-Math.pow(this.alpha,this.U))};hZ.prototype.PQ=function(R){var F=this;if(this.policy.VP){var n=new Set(R);n.size===this.PG.size&&[].concat(g.I(n)).every(function(V){return F.PG.has(V)})||(this.loader.m2("lwnmow",{itagDenylist:[].concat(g.I(R)).join(",")}),this.loader.fv(!!n.size),this.UZ=-1,this.PG=n,Ws(this,this.T),this.Y5=!0)}};
hZ.prototype.HX=function(R,F,n){n=n===void 0?{}:n;var V=this.policy.Fb;this.W.HX(R,F===void 0?!1:F,n);if(V!==this.policy.Fb){Ws(this,this.T);uG(this);var r,v;V>this.policy.Fb&&((r=this.N)==null?0:lT(r.info))&&((v=this.nextVideo)==null||!lT(v.info))&&(this.Nq=!0)}};var OC={SV:-1,Wn:!1,t8:0};g.a(Is,g.G);Is.prototype.oG=function(){this.U=OC;Km(this);g.G.prototype.oG.call(this)};D5.prototype.I2=function(R){this.timestampOffset=R;this.flush()};
D5.prototype.flush=function(){if(this.T.pos>0){var R={a:this.track.cB(),u:this.T.F6(),pd:Math.round(this.J),ad:Math.round(this.N)},F=this.U;if(F){var n=F.A1.info;R.itag=n.itag;n.T&&(R.xtags=n.T);R.sq=F.nH;R.st=F.startTime;R.sd=F.duration;this.track.policy.NGZ&&(R.si=F.KX());F.N&&(R.esl=F.T+F.U);F.YY()&&(R.eos=1)}isNaN(this.timestampOffset)||(R.to=this.timestampOffset);var V;if(F=(V=this.track.Sn)==null?void 0:V.fC({})){for(var r in F)this.Z[r]!==F[r]&&(R["sb_"+r]=F[r]);this.Z=F}this.track.m2("sbu",
R);this.T.reset();this.buffered=[];this.W=this.N=this.J=0;this.timestampOffset=this.U=void 0}};xg.prototype.dispose=function(){this.J1=!0};
xg.prototype.Zo=function(){return this.J1};
g.a(Mk,Error);EC.prototype.skip=function(R){this.offset+=R};
EC.prototype.R$=function(){return this.offset};g.X=rPj.prototype;g.X.eq=function(){return this.U};
g.X.aY=function(){return this.U.length?this.U[this.U.length-1]:null};
g.X.L4=function(){this.U=[];Z5(this);Ps(this)};
g.X.pD=function(R){this.Y5=this.U.shift().info;R.info.equals(this.Y5)};
g.X.o2=function(){return g.OM(this.U,function(R){return R.info})};
g.X.cB=function(){return!!this.A1.info.audio};
g.X.isDrm=function(){return!!this.A1.info.lL};
g.X.getDuration=function(){return this.A1.index.Ug()};g.a(Sh,On);g.X=Sh.prototype;g.X.onStateChange=function(){this.Zo()&&(rj(this.VG,this.formatId),this.T.dispose())};
g.X.YE=function(){var R=$dN(this.VG,this.formatId),F;var n=((F=this.VG.vT.get(this.formatId))==null?void 0:F.bytesReceived)||0;var V;F=((V=this.VG.vT.get(this.formatId))==null?void 0:V.iO)||0;return{expected:R,received:n,bytesShifted:F,sliceLength:vs(this.VG,this.formatId),isAnyMediaEndReceived:this.VG.Ci(this.formatId)}};
g.X.Q0=function(){return 0};
g.X.r6=function(){return!0};
g.X.Q8=function(){return this.VG.Q8(this.formatId)};
g.X.O1=function(){return[]};
g.X.JG=function(){return this.VG.JG(this.formatId)};
g.X.T_=function(){return this.lastError};
g.X.m3=function(){return 0};g.a(nF,g.G);g.X=nF.prototype;g.X.cB=function(){return!!this.A1.info.audio};
g.X.aY=function(){return this.N.aY()};
g.X.pD=function(R){this.N.pD(R);var F;(F=this.X)!=null&&(F.W.add(R.info.nH),F.T=KVf(F,F.jB,F.UU,R,F.T),F.N=R,F.Z=(0,g.h1)());this.yz=Math.max(this.yz,R.info.A1.info.yz||0)};
g.X.getDuration=function(){return this.A1.index.Ug()};
g.X.L4=function(){sn(this);this.N.L4()};
g.X.aP=function(){return this.N};
g.X.lE=function(R){return this.Sn?rl(this.Sn.TI(),R):!0};
g.X.isRequestPending=function(R){return this.U.length?R===this.U[this.U.length-1].info.OZ[0].nH:!1};
g.X.I2=function(R){var F;(F=this.X)==null||F.I2(R);var n;(n=this.V)==null||n.I2(R)};
g.X.m2=function(R,F){this.loader.m2(R,F)};
g.X.HE=function(){return this.loader.HE()};
g.X.dispose=function(){var R;(R=this.V)==null||R.flush();g.G.prototype.dispose.call(this)};g.a(jz,g.G);jz.prototype.N=function(){this.U++>15||(this.T=!this.T,new JPV(this.loader,this.policy,this.AJ,this.jn,this.T),this.delay.start())};
g.X=JPV.prototype;g.X.FD=function(){};
g.X.Sw=function(){};
g.X.nx=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.hx()===this.size)this.loader.m2("rqs",this.getInfo());else{var R="net.connect";this.xhr.status>200?R="net.badstatus":this.xhr.YV()&&(R="net.closed");this.onError(R)}};
g.X.onError=function(R){var F=this;this.loader.handleError(R,this.getInfo());VP("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(n){F.loader.m2("pathprobe",n)},function(n){F.loader.handleError(n.errorCode,n.details)})};
g.X.getInfo=function(){var R=this.timing.Ie();R.shost=pW(29,this.location.qX);R.pb=this.size;return R};g.a(h2,g.G);
h2.prototype.Z=function(R,F){if(R.Z){this.X2.isLive?(R=this.X2.bX&&this.X2.X?R.A1.ZJ(this.X2.bX,!1):R.A1.KS(Infinity),R.m0=this.m0):R=R.A1.ZJ(0,!1);if(this.UZ){var n=this.UZ;R.m0===0&&(R.W=n.V)}else R.W=this.V;return R}n=R.T;if(!n.A1.o9())return n.A1.kC()?(R=zH(this.J,R.A1.info.yz,F.A1.info.yz,0),R=n.A1.I_(n,R)):R=n.A1.zn(n),R;var V=n.W-this.loader.getCurrentTime(),r=!n.range||n.U===0&&n.T===0?0:n.range.length-(n.T+n.U),v=n.A1;this.We(R,V)&&r===0&&(this.X2.isManifestless?v=R.A1:(v=n.startTime+dJE,
n.U&&(v+=n.duration),Af(R,v),n=R.T,v=n.A1));v.kC()?(r=this.U,F=zH(this.J,v.info.yz,F.A1.info.yz,V,r.J.length>0&&r.V===0&&this.loader.BO),V=A2(R),R=n.A1.I_(n,F),(F=R.N)&&R.OZ.length>1&&(V||R.jn.N||R.OZ[0].A1!==n.A1?R=n.A1.I_(n,R.OZ[0].U):(V=R.OZ[R.OZ.length-1],v=V.U/F,!V.N&&v<.4&&(R=n.A1.I_(n,F-V.U))))):(n.nH<0&&(F=s1(n),F.pr=""+R.U.length,this.loader.isSeeking()&&(F.sk="1"),F.snss=n.Z,this.loader.m2("nosq",F)),R=v.zn(n));if(this.policy.Y5)for(n=g.m(R.OZ),F=n.next();!F.done;F=n.next())F.value.type=
6;return R};
h2.prototype.We=function(R,F){if(!A2(R)||!R.A1.o9())return!1;var n;(n=this.U.Y5)||(n=A2(R)&&R.A1.o9()&&R.T.A1.info.yz<R.A1.info.yz);return n||F<=this.policy.Gw||this.U.Nq};
h2.prototype.oG=function(){g.G.prototype.oG.call(this)};
var dJE=2/24;g.a(kZ,g.G);kZ.prototype.w_=function(R,F,n,V){var r;if(((r=this.U)==null?void 0:r.reason)==="m")r="m";else{var v;r=((v=this.U)==null?void 0:v.reason)==="s"?"s":this.U&&R7E(this,this.U)?this.U.reason:"a"}this.loader.w_(new Cm(R,r,n,V));Oz(this.loader,F,R,!0)};
kZ.prototype.qN=function(R,F){for(var n=g.m(this.PG),V=n.next();!V.done;V=n.next())if(V.value.id===R)return this.W=this.X2.T[R],$z(this.gD)&&(this.J1=!0),R=new Cm(this.W,F?"t":"m"),F&&(this.X=!0),R;this.N=[];return null};
kZ.prototype.HX=function(R,F,n){n=n===void 0?{}:n;this.T.HX(R,F===void 0?!1:F,n)};
kZ.prototype.T3=function(){return this.T.T3()};Gh.prototype.setData=function(R,F,n){var V=this;n=n===void 0?{}:n;if(F==null?0:F.HI)this.S4=Fjf(this,F,n),R.Ok=this.jn.Ok();if(this.KD())return!0;this.data=R;this.T=vGE(R,function(r,v){var f;(f=V.vG)==null||f.BI(r,v)},F==null?void 0:F.N,F==null?void 0:F.W);
if(!this.T)return!1;this.U=g.Pu(this.T,dBj);return!0};
Gh.prototype.KD=function(){return this.requestType===1};
Gh.prototype.u8=function(){var R;return((R=this.vG)==null?void 0:R.u8())||0};
Gh.prototype.isDecorated=function(){var R,F,n;return!!(((R=this.data)==null?0:R.Xd)||((F=this.data)==null?0:(n=F.Sj)==null?0:n.length))};lB.prototype.encrypt=function(R){(0,g.h1)();return this.T.T?Nn(this,R,this.iv):(new g.wY(this.T.U)).encrypt(R,this.iv)};
lB.prototype.decrypt=function(R,F){(0,g.h1)();return this.T.T?Nn(this,R,F):(new g.wY(this.T.U)).decrypt(R,F)};g.a(Ez,g.G);Ez.prototype.N=function(R,F){if(F){F=F instanceof g.LW?F:$Z(this,F);var n;((n=this.T.get(R))==null?void 0:pW(77,n.location))!==pW(61,F)&&this.T.set(R,new XhI(F,R))}else this.T.delete(R)};
Ez.prototype.load=function(){var R=this,F,n,V,r,v,f,z,q,Q,c;return g.Y(function(w){switch(w.T){case 1:F=R.T.get(0);g.zv(w,2);var L;if(L=F&&!R.U)L=pW(77,F.location),L=R.U===Yz(L);if(L){w.wX(4);break}return g.k(w,bB(R,R.U?2:0),5);case 5:if(n=w.U)R.N(0,n),re(8,n)&&R.N(1,pW(4,n));case 4:g.Qz(w,3);break;case 2:V=g.cM(w);g.mq(V);if(!R.U){w.wX(3);break}R.U=!1;return g.k(w,R.load(),7);case 7:return w.return();case 3:if(!R.G.experiments.GH("html5_onesie_probe_ec_hosts")){w.wX(0);break}g.zv(w,9);r=R;v=r.N;
f=3;return g.k(w,bB(R,1),11);case 11:return v.call(r,f,w.U),z=R,q=z.N,Q=4,g.k(w,bB(R,2),12);case 12:q.call(z,Q,w.U);g.Qz(w,0);break;case 9:c=g.cM(w),g.mq(c),g.rq(w)}})};
Ez.prototype.X=function(){var R=this,F,n;return g.Y(function(V){g.eI(R.V);F=g.Vn(R.G.experiments,"html5_onesie_prewarm_max_lact_ms");if(aS()>=F)return V.return();(n=R.T.get(0))&&sok(R,n);g.rq(V)})};
var SrI={UHG:0,fHH:1,gEZ:2,OQG:3,OWH:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};Zw.prototype.decrypt=function(R){var F=this,n,V,r,v,f,z;return g.Y(function(q){switch(q.T){case 1:if(F.T.length&&!F.T[0].isEncrypted)return q.return();F.U=!0;F.Ty.N5("omd_s");n=new Uint8Array(16);QL()?V=new g.Se(R):r=new g.wY(R);case 2:if(!F.T.length||!F.T[0].isEncrypted){q.wX(4);break}v=F.T.shift();if(!V){f=r.decrypt(CV(v.buffer),n);q.wX(5);break}return g.k(q,V.decrypt(CV(v.buffer),n),6);case 6:f=q.U;case 5:z=f;for(var Q=0;Q<n.length;Q++)if(n[Q]===255)n[Q]=0;else{n[Q]+=1;break}Q=F.Ty;var c=v.videoId,
w=v.QJ,L=v.formatId,S=new sE([z]),p;(p=ez(Q.vG,c))==null||tZ(p,w,L,S);q.wX(2);break;case 4:F.Ty.N5("omd_c"),RO(F),F.U=!1,F.Ty.Sc(),g.rq(q)}})};
Zw.prototype.enqueue=function(R,F,n,V,r){this.T.push({videoId:R,QJ:F,formatId:n,buffer:V,isEncrypted:r});this.U||RO(this)};var yuv=!!Uint8Array.prototype.copyWithin,Fb=[],nh=[],ahN=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],rx=[],V0=[],fh=[],v6=[];Q0.prototype.BI=function(R,F,n){var V={};this.m2("dcmprs",(V.i=this.T,V.x=this.context,V.m=R,V.e=n==null?void 0:n.toString(),V.t=F,V))};
Q0.prototype.f4=function(R,F){OK(R,"dcmprs_"+this.context+"_"+this.T+"_"+F);g.mq(R)};var wx="DecompressionStream"in window;g.a(Sb,eh);g.X=Sb.prototype;g.X.Sc=function(){this.vG.Sc()};
g.X.tS=function(R,F){switch(R){case 10:var n=JT(F,Vxk);R=n.Zm2;var V=!1;switch(R){case 0:this.J=!n.fT.Tg1;this.iv=n.fT.iv;break;case 2:break;case 23:var r=this.vG;n=n.Vnq;r.N5("omp_r");n.videoId&&(r.Bs=n.videoId);r.Bs!==r.videoData.videoId&&(r.videoData.ZG=r.Bs,r.m2("ompp","vid."+r.Bs));r.uY=!0;break;case 24:n=this.vG;n.N5("omp_c");n.uY=!1;n.vV=!1;var v=(r=n.au)==null?void 0:r.get(n.Bs);n.notifySubscribers(n.Bs);v!=null&&(v.T=!0);sp(n);break;default:V=!0}this.vG.uW&&this.vG.m2("ombup","id.10;pt."+
R+";len."+F.totalLength+(V?";ignored.1":""));this.N=R;break;case 11:uVe(this,F);break;case 12:this.dh(F,!0);break;case 37:F=JT(F,reI);(F.DT||F.I7)&&F.videoId&&this.vG.cZ.set(F.videoId,F);break;case 60:this.Cw(F);break;case 47:this.B("html5_server_playback_start_policy")&&(F=JT(F,zMN),this.vG.playbackStartPolicy=F);break;case 35:this.fQ(F);break;case 45:this.kE(F);break;case 66:this.dY(F);break;default:this.vG.uW&&this.vG.m2("ombup","id."+R+";len."+F.totalLength+";ignored.1")}};
g.X.Cw=function(R){R=JT(R,uT);this.vG.Cw(R)};
g.X.kE=function(R){R=JT(R,BH);this.vG.kE(R)};
g.X.qB=function(R){var F=R.QJ,n=R.lG,V=R.sT,r=R.VN,v=R.QB,f=R.startMs,z=R.durationMs,q=R.timeRange,Q=R.Og,c=R.oZ,w=VR(R),L=FrO.has(YQ[""+R.itag]);n&&this.N5(L?"oais_r":"ovis_r");var S=this.T[w]!==void 0;this.vG.uW&&this.vG.m2("ombup","id.20;hid."+F+";fid."+w);var p=R.videoId||"";this.U[F]=w;this.W[F]=p;S||(this.T[w]={videoId:p,pA:!1,cB:L,headers:[]});this.T[w].headers.push(R);this.vG.US(p,w,L,{QJ:F,lG:!!n,sT:V!=null?V:-1,QB:v!=null?v:-1,startMs:f!=null?f:-1,durationMs:z!=null?z:-1,Og:Q!=null?Q:0,
VN:r,timeRange:q,oZ:c})};
g.X.dh=function(R,F){var n=o7(R,0);this.vG.uW&&this.vG.m2("ombup","id."+(F?12:21)+";len."+R.totalLength+";hid."+n);if(R.totalLength!==1){R=R.split(1).l4;var V=this.U[n]||null,r=this.W[n]||"";V&&(this.R9(this.T[V].cB?"oafs_r":"ovfs_r"),this.queue.enqueue(r,n,V,R,F))}};
g.X.xE=function(R){var F=o7(R,0);this.vG.uW&&this.vG.m2("ombup","id.22;len."+R.totalLength+";hid."+F);R=this.U[F]||null;var n=this.W[F]||"";if(R)if(this.B("html5_use_ump_request_slicer")){var V=this.queue;V.T.push({videoId:n,QJ:F,formatId:R,isEncrypted:!1,Ba:!0});V.U||RO(V)}else this.vG.xE(n,F,R)};
g.X.GS=function(R,F){var n=this,V,r,v,f,z,q,Q;return g.Y(function(c){switch(c.T){case 1:n.vG.GS();V=CV(R);if(!F){v=V;c.wX(2);break}return g.k(c,Ju9(n.vG,V,n.iv),3);case 3:v=c.U;case 2:r=v;if(!n.vG.enableCompression){c.wX(4);break}return n.vG.D().rg().T.pH(kkv)?g.k(c,RaI(BdW(n,r)),8):g.k(c,mFe(n,r),7);case 7:r=c.U;c.wX(4);break;case 8:r=c.U;case 4:try{f=JT(r,iGf)}catch(L){return z=L instanceof Error?{name:L.name,message:L.message}:{},z.webcrypto=""+ +!!QL(),z.enc=""+ +n.J,q=new g.z$("onesie.response.parse",
z),c.return(Promise.reject(q))}var w=f;if(w.D6!==1)throw new g.z$("onesie.response.badproxystatus",{st:w.D6,webcrypto:!!QL(),textencoder:!!g.HM.TextEncoder});if(w.httpStatus!==200)throw new g.z$("onesie.response.badstatus",{st:w.httpStatus});Q=g.Hu(f.body);return c.return(Q)}})};
g.X.fQ=function(R){this.B("html5_consume_onesie_next_request_policy_for_sabr")&&(R=JT(R,fzJ),this.vG.fQ(R))};
g.X.dY=function(R){R={Vr:xK(new Bu(R),1,cek)};this.vG.dY(R)};
g.X.N5=function(R){this.vG.N5(R)};
g.X.R9=function(R){return this.vG.R9(R)};
g.X.B=function(R){return this.vG.B(R)};g.a(AK,g.G);g.X=AK.prototype;g.X.j0=function(R){var F,n;return((n=(F=this.au)==null?void 0:F.get(R))==null?void 0:n.j0())||[]};
g.X.JG=function(R,F){var n;return!((n=ez(this,F))==null||!n.JG(R))};
g.X.Q8=function(R,F){var n;return((n=ez(this,F))==null?void 0:n.Q8(R))||[]};
g.X.o2=function(R,F){var n;return((n=ez(this,F))==null?void 0:n.o2(R))||[]};
g.X.nX=function(R){this.state=R;this.notifySubscribers()};
g.X.KD=function(){return!1};
g.X.KI=function(){return!1};
g.X.s_=function(){};
g.X.N5=function(R){this.TH.N5(R)};
g.X.R9=function(R){return this.TH.R9(R)};
g.X.D4=function(R,F,n,V){n||this.Ul.D4(V);return!1};
g.X.V4=function(R,F){this.Ty.V4(R,F)};
g.X.MB=function(){this.N5("orfb");this.Ag=!0;if(G7E(this)&&this.xhr){var R={rc:this.xhr.status,lb:this.xhr.hx(),rt:(1E3*VoI(this.Ul)).toFixed(),shost:g.u5(this.Ju),trigger:"o1"};this.m2("pathprobe",tQ(R))}};
g.X.GS=function(){this.N5("opr_r");this.mf=!0};
g.X.US=function(R,F,n,V){this.Lb.push(V);if(this.au){if(!this.au.has(R)){var r=new FW(this);this.au.set(R,r);g.d(this,r)}var v;(v=this.au.get(R))==null||v.US(F,n,V);sp(this);n||(this.sS=V.QB)}else sp(this)};
g.X.Ff=function(R){this.Jv=R;R.X1!=null&&this.TH.Hv(R.X1)};
g.X.Cw=function(R){this.KR=R};
g.X.fQ=function(R){R.videoId&&this.Lp.set(R.videoId,R)};
g.X.BQ=function(R){if(R.url){R=g.m(R.url);for(var F=R.next();!F.done;F=R.next())VP(F.value,"ump_prewarm")}};
g.X.Sc=function(){if(this.au)for(var R=g.m(this.au.keys()),F=R.next();!F.done;F=R.next()){var n=void 0;(n=this.au.get(F.value))==null||n.IM()}};
g.X.kE=function(R){this.d9=R};
g.X.dY=function(R){if(R==null?0:R.Vr)if(R=R.Vr.J$){R=g.m(R);for(var F=R.next();!F.done;F=R.next())F=F.value,F.videoId&&this.gf.set(F.videoId,F)}};
g.X.CD=function(R){this.dk.push(R)};
g.X.m2=function(R,F,n){this.TH.m2(R,F,n===void 0?!1:n)};
g.X.xE=function(R,F,n){var V;(V=ez(this,R))==null||V.xE(F,n)};
g.X.MK=function(R){this.zs.set(R.videoId,R)};
g.X.fetch=function(){var R=this,F,n,V,r,v,f,z,q,Q,c,w,L,S,p,C,y,u,B,O,K,M,J,b,RJ,Fj,fW,SE,nW,CW,b9,fq,vM,l9;return g.Y(function(ge){switch(ge.T){case 1:R.er?R.YM.start():R.ul.start();R.N5("or_i");n=(F=R.G.experiments.GH("html5_onesie_verbose_timing")||R.G.rg().T.pH(YRv))?R.N5.bind(R):function(){};
n("oloc_ss");if(V=OMf(R.videoData,R.hj)){ge.wX(2);break}n("oloc_sa");r=g.Vn(R.G.experiments,"html5_onesie_redirector_timeout_ms");return g.k(ge,IhI(R.videoData,R.hj,r),3);case 3:V=ge.U;case 2:if(!V)return v={url:"0"},f=new g.z$("onesie.unavailable.hotconfig",v),R.fail(f),ge.return(R.F9);R.S4=pW(30,V);n("oloc_e");z=g.HV(R.G,g.Ql(R.videoData));q=!!z.T;if(!q){Q=z.getValue();ge.wX(4);break}return g.k(ge,z.T,5);case 5:Q=ge.U;case 4:c=Q;R.B("html5_log_onesie_empty_oauth")&&!c&&R.m2("no_token",{async:q});
w=DF9(R.playerRequest,R.G,R.videoData,c,Yz(R.S4));g.zv(ge,6);!R.G.k5||(S=R.G.k5)!=null&&S.T||(p=w)!=null&&p.JT||(n("orqb_w"),(L=k7e(w,R.GX,R.G,R.TH,R.AJ,R.D$.onesieUstreamerConfig,(C=R.videoData.vQ)==null?void 0:C.xr,R.B("onesie_cdm_mosaic_send_audio_tracks_from_client")?(y=R.playerRequest.playbackContext)==null?void 0:(u=y.contentPlaybackContext)==null?void 0:(B=u.compositeVideoContext)==null?void 0:B.defaultActiveSourceVideoId:void 0))&&R.m2("orpqenc",{i:"w"}));if(L){ge.wX(8);break}if(!Yre(R,w)){n("orqb_s");
L=iM9(w,R.GX,R.G,R.TH,R.AJ,R.D$.onesieUstreamerConfig,(O=R.videoData.vQ)==null?void 0:O.xr,R.B("onesie_cdm_mosaic_send_audio_tracks_from_client")?(K=R.playerRequest.playbackContext)==null?void 0:(M=K.contentPlaybackContext)==null?void 0:(J=M.compositeVideoContext)==null?void 0:J.defaultActiveSourceVideoId:void 0);R.m2("orpqenc",{i:"j"});ge.wX(8);break}n("orqb_a");return g.k(ge,xF9(w,R.GX,R.G,R.TH,R.AJ,R.D$.onesieUstreamerConfig,(b=R.videoData.vQ)==null?void 0:b.xr,R.B("onesie_cdm_mosaic_send_audio_tracks_from_client")?
(RJ=R.playerRequest.playbackContext)==null?void 0:(Fj=RJ.contentPlaybackContext)==null?void 0:(fW=Fj.compositeVideoContext)==null?void 0:fW.defaultActiveSourceVideoId:void 0),10);case 10:L=ge.U,R.m2("orpqenc",{i:"a"});case 8:g.Qz(ge,7);break;case 6:return SE=g.cM(ge),R.fail(SE),ge.return(R.F9);case 7:return n("orqb_e"),R.enableCompression=L.innertubeRequest.VA,R.YP=((nW=L)==null?void 0:(CW=nW.Qm)==null?void 0:CW.nF)||0,R.N5("osor"),b9=DAN(),fq=g.Pu(L,aCf),vM={method:"POST",body:fq,headers:{"Content-Type":"text/plain",
Referer:location.origin}},l9=R.B("html5_onesie_media_capabilities"),KJ9(V,R.videoData,MZN(R),l9),R.uW&&R.m2("ombrs","1"),R.Ul=new W9(R,{AJ:R.AJ,u2:R.uW,gI:function(bU,Ov){R.TH.wl(bU,Ov)},
hG:!0}),V.set("rn",""+R.Ul.requestNumber),R.Ju=V.rD(),RpE(R.Ul,R.Ju),R.N5("or_p"),R.xhr=K0(new Nc(V),b9,R.Ul,s6,vM),R.Ip.start(),R.TH.onPlayerRequestSent(R.videoData.videoId),ge.return(R.F9)}})};
g.X.MH=function(){return 2};
g.X.FD=function(){this.N5("orh_r")};
g.X.Sw=function(){!this.Ag&&this.xhr.hx()&&this.MB();if(this.Ud&&!this.er){var R;(R=this.g_)==null||R.start()}this.u4()};
g.X.nx=function(R){R=R===void 0?!1:R;this.u4();if(!(this.Zo()||this.state>=4)){var F=Xb(this),n=this.xhr;F.rc=n.status;R&&(F.ab=!0);if(n.xk()){var V="onesie.net";F.msg=n.xk()}else n.status>=400?V="onesie.net.badstatus":n.V9()?this.mf||(V="onesie.response.noplayerresponse"):V=n.status===204?"onesie.net.nocontent":"onesie.net.connect";V?this.fail(new g.z$(V,F)):(this.N5("or_fs"),this.Ul.oO((0,g.h1)(),n.hx(),0),this.nX(4),this.uW&&this.m2("rqs",F));this.uW&&this.m2("ombre","ok."+ +!V);this.vV=!1;sp(this);
Lh(this.Ty);if(!this.er){this.ul.stop();var r;(r=this.g_)==null||r.stop()}var v;if(R=(v=this.hj)==null?void 0:phW(v))for(v=0;v<R.length;v++)this.m2("pathprobe",R[v])}};
g.X.Gx=function(){if(this.playerResponse&&this.xhr&&this.au)for(var R=g.m(this.au.entries()),F=R.next();!F.done;F=R.next())if(F=g.m(F.value),F.next(),F.next().value.U){this.xhr.abort();this.nx(!0);break}};
g.X.D=function(){return this.G};
g.X.B=function(R){return this.G.B(R)};
g.X.SNS=function(){if(G7E(this)&&this.hj&&(!this.Ag||this.B("html5_onesie_probe_ec_hosts"))){var R=this.hj;if(R.G.experiments.GH("html5_onesie_probe_ec_hosts")){var F,n=(F=R.T.get(3))==null?void 0:pW(78,F.location);n&&Pf(R,n,"osc",this);var V;(n=(V=R.T.get(4))==null?void 0:pW(29,V.location))&&Pf(R,n,"ocy",this)}else{var r;(V=(r=R.T.get(1))==null?void 0:pW(29,r.location))&&Pf(R,V,"o2",this);(V=(n=R.T.get(2))==null?void 0:pW(45,n.location))&&Pf(R,V,"o3",this)}}};
g.X.O3=function(){if(!this.Zo()&&!this.isComplete()){if(this.Ud){if((0,g.h1)()-this.Ul.X>1E3){var R;(R=this.Ul)==null||R.mF((0,g.h1)());R=Xb(this);if(this.G.CC()&&this.xhr instanceof Il){var F=this.xhr;R.xrs=F.xhr.readyState;R.xpb=F.T.totalLength;R.xdc=F.J}this.fail(new g.z$("net.timeout",R))}}else(0,g.h1)()-this.Ul.T>1E4&&((F=this.Ul)==null||F.mF((0,g.h1)()),this.Dg());this.isComplete()||this.YM.start()}};
g.X.Dg=function(){this.vV=!1;if(!sp(this)){var R=Xb(this);R.timeout="1";this.fail(new g.z$("onesie.request",R))}};
g.X.fail=function(R){var F=this;R=QB(R);this.Ud?this.TH.Tk(R):(this.F9.reject(R),this.Ud=!0);Lh(this.Ty);this.er||this.ul.stop();this.N5("or_fe");var n,V;(n=this.hj)==null||(V=phW(n))==null||V.forEach(function(r){F.m2("pathprobe",r)});
this.nX(5);this.dispose()};
g.X.isComplete=function(){return this.state>=3};
g.X.VR=function(){return this.state===4};
g.X.jX=function(R){var F,n;return this.isComplete()||!!((F=this.au)==null?0:(n=F.get(R))==null?0:n.T)};
g.X.wj=function(){return!1};
g.X.fW=function(){return this.state===5};
g.X.notifySubscribers=function(R){for(var F=0;F<this.WD.length;F++)R&&this.WD[F].B_()!==R||hK(this.WD[F],this)};
g.X.I6=function(){return this.YP};
g.X.oG=function(){this.playerResponse="";var R;(R=this.xhr)==null||R.abort();Lh(this.Ty);this.K2.dispose();var F;(F=this.g_)==null||F.dispose();this.nX(-1);this.WD=[];this.Lb=[];this.dk=[];g.G.prototype.oG.call(this)};
g.X.u4=function(){try{var R=this.xhr;R.hx()>102400&&!this.Xm&&(this.N5("or100k"),this.Xm=!0);if(R.wY()){var F=R.m7(),n=F.totalLength;this.uW&&this.m2("ombrss","len."+n);this.K2.feed(F)}if(this.au)for(var V=g.m(this.au.keys()),r=V.next();!r.done;r=V.next()){var v=r.value;R=void 0;(R=this.au.get(v))==null||R.IM();this.notifySubscribers(v)}}catch(f){this.fail(f)}};
g.X.M6=function(){return this.Ul.requestNumber};
g.X.cz=function(R){return this.zs.get(R)};
g.X.sA=function(){return!1};
g.X.oJ=function(){return"ONESIE"};g.a(aO,g.G);g.X=aO.prototype;
g.X.wH=function(R){var F=NC(this.loader)&&R&&R.SV!==void 0&&!R.Wn?R.SV*1E3+(this.loader.qC()||0):Ch(this);if(this.policy.h7){var n=this.PG;var V=this.Mq}else n=Up(this,this.audioTrack),V=Up(this,this.videoTrack);var r=[].concat(g.I(n.jB),g.I(V.jB));Td(this)&&r.push.apply(r,g.I(this.W));var v=[].concat(g.I(n.mp),g.I(V.mp)),f=this.loader.dn();if(this.policy.A3&&!this.videoData.isLivePlayback){var z=this.videoData.lengthSeconds*1E3;F>=z&&this.loader.m2("invalidSabrCmt",{cmt:F,vd:z})}var q,Q;z=this.AJ;
var c=this.TH,w=this.X2,L=this.N,S=this.videoData.bS,p=this.policy,C=this.loader.Ix,y=E_E(this.loader)*1E3,u=(q=this.Y5)==null?void 0:q.GR;q=(Q=this.Y5)==null?void 0:Q.j5;var B;Q=Number((B=this.U.J)==null?void 0:B.info.itag)||0;var O;B=Number((O=this.U.W)==null?void 0:O.info.itag)||0;O=this.NE;var K=this.TH.hW();var M=(R==null?0:R.t8)?R.t8:this.loader.isSuspended?4:void 0;F={AJ:z,TH:c,X2:w,jB:r,mp:v,SD:F,nextRequestPolicy:L,O_:S,gD:p,zL:C,jI:y,GR:u,j5:q,NE:O,Mn:Q,bV:B,RM:f,P1:K,t8:M,QC:this.QC,DE:this.DE};
r=this.loader.cX();v=Mr(r);r&&(F.UH=v);if(R=NC(this.loader)&&(R==null?0:R.Wn)?R.SV:this.TH.QO())F.oe=R*1E3;var J;R=this.U;r=R.J1;if(((J=R.gD)==null?0:$z(J))&&!r)for(J=g.m(R.N),v=J.next();!v.done;v=J.next())if(v.value.z9){r=!0;break}J=$z(R.gD)&&!r?[]:Z9I(R,R.N);F.qr=J;J=this.U;$z(J.gD)&&!J.jQ?J=[]:(R=VZv(J),R.length===0&&(R=J.Z),J=Z9I(J,R));F.Vf=J;F.rl=Td(this)?[this.Z]:void 0;F.Um=Array.from(yy(this.U.T).keys(),Number);F.T3=this.U.T3();this.policy.N3&&(F.wM=k6R(this.loader,this.audioTrack),F.Pd=k6R(this.loader,
this.videoTrack));J=this.loader.getCurrentTime();n=y0(this,n.jB,J);V=y0(this,V.jB,J);this.bS=V=Math.min(n,V);if(this.policy.U&&(Td(this)&&(n=y0(this,this.W,J),this.TH.CC()&&n<V&&this.loader.m2("sabrcfb",{met:V,cet:n,cbrl:this.W.length}),V=Math.min(V,n)),!this.policy.W)){if((n=this.vI)==null)var b=void 0;else{J=V;b:{if(!(n.xK||(R=Lm(n,J),n.playback.getVideoData().iZ()&&(R==null?0:R.SX))))break b;R=void 0}(v=R)?(R=v.uq,r=pkj(n,v.ssdaiAdsConfig),v=v.d$&&v.i5&&J>=v.i5?v.d$:void 0,r={UM:R?Xkk(n,R):[],
adsConfig:r,Xt:v},J={gvprpro:"v",mt:J.toFixed(3),acpns:((b=r.UM)==null?void 0:b.join("_"))||"none",abid:R},n.BI(J),b=r):(n.BI({gvprp:"ncp",mt:J}),b=null)}b&&(F.Xd=b)}if(this.policy.W){var RJ;b=((RJ=this.videoData.U)==null?void 0:RJ.containerType)||0;RJ=this.videoData.L7[b];n=this.loader.isSeeking()&&!this.loader.Z4?V+this.loader.qC():NaN;if((b=this.V)==null)RJ=void 0;else if(b.N!==0){b.m2("clsdai",{gssinfodisabled:b.N});RJ=7;switch(b.N){case 1:RJ=7;break;case 2:RJ=9;break;case 3:RJ=10;break;default:b.m2("clsdai",
{unknowndisr:b.N})}RJ=[{DN:RJ}]}else{V=[];if(!isNaN(n))if(J=Cik(b,n),R=b.Z+1,J.length>0)for(b.m2("clsdai",{updcids:1,mt:n.toFixed(3),cid:J.join(","),rn:R}),b.U.clear(),n=g.m(J),J=n.next();!J.done;J=n.next())b.U.add(J.value);else b.X&&(b.m2("clsdai",{updcids:0,mt:n.toFixed(3),rn:R}),b.U.clear());n=g.m(b.U);for(R=n.next();!R.done;R=n.next()){J=b;if(R=R.value){J=J.T.get(R);R={cuepointId:(J==null?void 0:J.cuepointId)||R};if(J==null?0:J.GB)R.adsConfig=Mr(J.GB)||void 0;if(J==null?0:J.Oa)R.UM=J.Oa;if(J==
null?0:J.U5)R.Xt=J.U5;RJ&&(R.bD=Z$(RJ.split(";")[0]),R.ZY=RJ.split(";")[1]||"");R.DN=(J==null?void 0:J.DN)||0;J=R}else J=void 0;J&&V.push(J)}RJ=V}F.Sj=RJ;(RJ=this.V)!=null&&(RJ.U.clear(),RJ.N=0,RJ.W=!1)}this.policy.Nq&&this.T.length>0&&this.T[0].KI()&&(F.ys=this.T[0].s_());return F};
g.X.cY=function(R,F){this.X=void 0;vMI(this);rgE(this,R,F)};
g.X.Af=function(R){if(this.T.length===0)return!1;var F=this.T[0];return F instanceof AK?R===this.loader.getCurrentTime()*1E3:!(F instanceof zB&&Mn(F.info))&&Math.abs(F.I6()-R)<50};
g.X.fQ=function(R,F){this.N=R;this.policy.U&&!R.playbackCookie&&this.loader.m2("sbrnocookie",{rn:F!=null?F:-1});var n;if(this.policy.o5Z&&((n=this.V)==null?0:n.W)){var V;this.loader.m2("clsdai",{ignbckoff:F!=null?F:-1,backoff:(V=R.backoffTimeMs)!=null?V:-1})}else this.X=(0,g.h1)()+(R.backoffTimeMs||0)};
g.X.rM=function(R,F){if(R.action===void 0){var n=this.TH.QO();n!==void 0&&this.loader.EX(n)}else if(R.action!==0||!this.dX)if(R.action===0&&this.policy.IS&&(R.action=2),R.sI==="sabr.malformed_config"&&this.uS++<3)this.loader.handleError("sabr.malformed_config",{action:R.action,rn:F,retry:this.uS},0);else switch(n={},n.reason=R.sI,n.action=R.action,n.rn=F,R.action){case 1:this.policy.U&&this.vI&&Dw(this.vI,void 0,void 0,n);break;case 0:this.dX=!0;this.videoData.iZ()&&this.policy.U&&this.vI&&Dw(this.vI,
void 0,void 0,n,!1);this.loader.sb(n);break;case 2:EpV(R.sI)!=="sabr.config"&&delete n.reason;this.loader.handleError(EpV(R.sI),n,1);break;case 3:this.policy.HI&&((R=this.X2.UZ)!=null&&(R.V=!0),this.loader.handleError("sabr.hostfallback",n))}};
g.X.BQ=function(R){if(R.url){R=g.m(R.url);for(var F=R.next();!F.done;F=R.next())VP(F.value,"ump_prewarm")}};
g.X.MO=function(R){R&&(this.loader.m2("sabrctxt",{onsbrctxt:R.type,scp:R.scope,dflt:R.sendByDefault}),R.type&&R.sendByDefault&&this.videoData.bS.add(R.type),R.scope!==2&&(R.type&&this.videoData.sabrContextUpdates.set(R.type,R),this.TH.MO(R)))};
g.X.Sb=function(){};
g.X.kE=function(R,F){if(this.loader.Z4)this.loader.m2("sdai",{ignSabrSeek:1,smt:R==null?void 0:R.D2,rn:F});else if(R.D2!==void 0&&R.F4){F=R.D2/R.F4;this.audioTrack.Z=!1;this.videoTrack.Z=!1;if(this.policy.PG||this.policy.tD||this.policy.fZ)this.loader.PB.T=!1;if(this.TH.getCurrentTime()!==F){var n={gW:"sabr_seek",Ho:!0,xe:!0};R.seekSource&&(n.seekSource=R.seekSource);TH(this.loader,F+.1,n)}}};
g.X.onSnackbarMessage=function(R){this.TH.publish("onSnackbarMessage",R)};
g.X.CD=function(R,F){this.policy.W&&this.loader.CD(R,F)};
g.X.Ff=function(R){R.gF&&R.L3&&tW(this.X2,R.gF,R.L3);this.policy.e9&&(R.v$&&R.Cp&&(this.X2.dl=R.v$/R.Cp),R.FH&&R.Kp&&(this.X2.jV=R.FH/R.Kp));eZ(this.videoData)&&!this.videoData.Xb&&R.L3&&this.loader.c8(R.L3,1E3);R.X1!=null&&this.TH.Hv(R.X1);R.SG&&(R=((0,g.h1)()-R.SG)/1E3,this.loader.sO.Sy(1,R))};
g.X.Yg=function(R){this.loader.Yg(R)};
g.X.US=function(R){this.loader.US(R)};
g.X.Ps=function(R){this.loader.Ps(R)};
g.X.Q4=function(R){return this.videoData.bS.has(R)};
g.X.qJ=function(R,F,n){this.policy.N&&this.loader.m2("sabrctxtplc",{start:R?R.join("_"):"",stop:F?F.join("_"):"",discard:n?n.join("_"):""});if(R){R=g.m(R);for(var V=R.next();!V.done;V=R.next())this.videoData.bS.add(V.value)}if(F)for(F=g.m(F),R=F.next();!R.done;R=F.next())R=R.value,this.videoData.bS.has(R)&&this.videoData.bS.delete(R);if(n)for(n=g.m(n),F=n.next();!F.done;F=n.next())if(F=F.value,this.videoData.sabrContextUpdates.has(F)&&this.videoData.sabrContextUpdates.delete(F),this.policy.Nq&&this.T.length)for(R=
g.m(this.T),V=R.next();!V.done;V=R.next())if(V=V.value,!(V instanceof AK)){var r=void 0;((r=V.PP)==null?void 0:r.type)===F&&(V.PP=void 0)}};
g.X.Hd=function(){};
g.X.Oj=function(R){this.Z=R};
g.X.Ma=function(R){this.W=R};
g.X.Vq=function(R,F){Uz(this.policy,R,4,F)};
g.X.dY=function(R){if(R==null?0:R.Vr)if(R=R.Vr.J$){R=g.m(R);for(var F=R.next();!F.done;F=R.next())if(F=F.value,F.formatId){var n=this.X2.N.get(VR(F.formatId));n&&n.info&&(n.info.debugInfo=F.debugInfo)}}};
g.X.DQ=function(R){this.SQ=!0;this.TH.publish("reloadplayer",R)};
g.X.B_=function(){return this.TH.B_()||""};
g.X.u8=function(){var R=tHj(this);return Math.min(R.Jo,R.dS)};
g.X.BI=function(R,F){this.loader.m2(R,F)};
g.X.HZ=function(R){upN(this.loader,B39(this.aG,R))};
g.X.fY=function(R){this.TH.fY(R)};
g.X.Na=function(){this.loader.Na()};
g.X.hS=function(){this.loader.hS()};
g.X.oG=function(){g.G.prototype.oG.call(this);this.N=void 0;rgE(this,!0,"i");this.T=[]};zle.prototype.getCurrentTime=function(){return this.TH.getCurrentTime()-this.TH.qC()};
uf.prototype.X=function(R){K6(R.state)&&W6(this.W)};
uf.prototype.clear=function(){wKf(this.W);this.N.clear();this.T.clear();this.Z=NaN};
uf.prototype.Lh=function(){this.isSeeking=!0;wKf(this.W);this.Z=NaN;this.U=this.pm};B6.prototype.pX=function(R,F){if(this.J)return ygR(this,F);if(F=ol(R)){var n=F.T;n&&n.N&&n.T&&(R=R.U.length?R.U[0]:null)&&R.state>=2&&!R.fW()&&R.info.m0===0&&(this.J=R,this.X=n,this.U=F.info,this.Z=this.startTimeSecs=Date.now()/1E3,this.W=this.U.startTime)}return NaN};
B6.prototype.clear=function(){this.U=this.X=this.J=null;this.T=this.W=this.Z=this.startTimeSecs=NaN;this.N=!1};g.a(HKv,g.G);HKv.prototype.oG=function(){Wxj(this);g.G.prototype.oG.call(this)};var uY9=/[?&]cpn=/;g.a(gx,g.G);gx.prototype.flush=function(){var R={};this.U&&(R.pe=this.U);this.T.length>0&&(R.pt=this.T.join("."));this.T=[];return R};
gx.prototype.stop=function(){var R=this,F,n,V;return g.Y(function(r){if(r.T==1)return g.zv(r,2),g.k(r,(F=R.J)==null?void 0:F.stop(),4);if(r.T!=2)return(n=r.U)&&R.logTrace(n),g.Qz(r,0);V=g.cM(r);R.U=KxE(V.message);g.rq(r)})};
gx.prototype.logTrace=function(R){var F=[];for(var n=[],V=[],r=[],v=0,f=g.m(R.resources),z=f.next();!z.done;z=f.next())F.push({id:v,url:z.value}),v++;v=0;f=g.m(R.frames);for(z=f.next();!z.done;z=f.next())z=z.value,n.push({id:v,name:z.name,resourceId:z.resourceId,line:z.line,column:z.column}),v++;v=0;f=g.m(R.stacks);for(z=f.next();!z.done;z=f.next())z=z.value,r.push({id:v,frameId:z.frameId,parentId:z.parentId}),v++;v=0;R=g.m(R.samples);for(f=R.next();!f.done;f=R.next())f=f.value,V.push({id:v,timestampMs:f.timestamp,
stackId:f.stackId}),v++;F=g.dQ(g.Pu({resources:F,frames:n,samples:V,stacks:r},UOv),4);this.N+=F.length;this.N<1E7&&this.T.push(F)};
gx.prototype.oG=function(){this.stop();g.G.prototype.oG.call(this)};var EMV=[2,5,30];g.Gd=PI(function(){var R="";try{var F=g.gu("CANVAS").getContext("webgl");F&&(F.getExtension("WEBGL_debug_renderer_info"),R=F.getParameter(37446),R=R.replace(/[ :]/g,"_"))}catch(n){}return R});g.a(g.DQ,g.G);g.X=g.DQ.prototype;g.X.zGG=function(){var R=g.kr(this.provider);ZK_(this,R)};
g.X.Us=function(){return this.PC};
g.X.Po=function(){return{Od:this.Od,iQ:this.iQ}};
g.X.V_=function(R,F){this.Od=R;this.iQ=F};
g.X.Hv=function(R){if(!this.on){this.on=!0;var F="";switch(R){case 1:F="proximaui";break;case 2:F=W1v(this.provider.videoData)?"proximawpcc":this.provider.videoData.B("html5_enable_proxima")||this.provider.videoData.B("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:F="proximaauto"}F!==""&&JK(this,F)}};
g.X.ej=function(R,F,n,V){if(!this.eB.has(R)){this.eB.add(R);var r=g.kr(this.provider);g.Kh(this,r,"lse",[R,F,n,V.toFixed(3)])}};
g.X.WV=function(R){xr(this,"lwc",[R.bX?R.bX.toFixed():"",R.JD?R.JD.toFixed():"",R.sf?(R.sf*1E3).toFixed():"",R.LQ?(R.LQ*1E3).toFixed():"",R.w8?(R.w8*1E3).toFixed():""].join(":"))};
g.X.reportStats=function(R){R=R===void 0?NaN:R;if(!this.Zo()&&(R=R>=0?R:g.kr(this.provider),this.jQ?jeU.has(this.Ll)&&(this.T.size||(this.Ll==="PL"?R>=this.U+30:R<=this.Nq+30||R>=this.U+1200&&R<=this.Nq+86400))&&(g.Kh(this,R,"vps",[this.Ll]),this.U=R):["PL","B","S"].indexOf(this.Ll)>-1&&(this.T.size||R>=this.U+30)&&(g.Kh(this,R,"vps",[this.Ll]),this.U=R),this.T.size)){this.sequenceNumber===7E3&&g.mq(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){Yr(this,R);var F=this.provider.TH.qt();
F=g.m(F);for(var n=F.next();!n.done;n=F.next())n=n.value,this.m2(n.key,n.value);F=R;n=this.provider.TH.bj();var V=n.droppedVideoFrames||0,r=n.totalVideoFrames||0,v=V-this.Od,f=r&&!this.iQ;V>n.totalVideoFrames||v>5E3?tKV(this,"html5.badframedropcount","df."+V+";tf."+n.totalVideoFrames):(v>0||f)&&g.Kh(this,F,"df",[v]);this.Od=V;this.iQ=r;this.V>0&&(g.Kh(this,R,"glf",[this.V]),this.V=0);nH.isActive()&&(R=nH.TF(),Object.keys(R).length>0&&this.m2("profile",R));this.mQ&&JK(this,"lwnmow");R={};this.provider.videoData.U&&
(R.fmt=this.provider.videoData.U.itag,(F=this.provider.videoData.J)&&F.itag!==R.fmt&&(R.afmt=F.itag));R.cpn=this.provider.videoData.clientPlaybackNonce;var z;((z=this.VY)==null?0:z.length)?R.adcpn=this.VY.join(","):this.adCpn&&(R.adcpn=this.adCpn);var q;((q=this.Hq)==null?0:q.length)?R.addocid=this.Hq.join(","):this.Lt.length&&(R.addocid=this.Lt);q=this.provider.videoData;z=q.iZ();q=q.latencyClass;(this.provider.G.rg().T.pH(OWq)&&z&&q==="NORMAL"||this.provider.G.rg().T.pH(gNq)&&z&&q==="LOW"||this.provider.G.rg().T.pH(m6v)&&
this.provider.videoData.isDaiEnabled()&&Bh(this.provider.videoData))&&(R.adc=1);this.provider.videoData.cotn&&(R.cotn=this.provider.videoData.cotn);R.el=fK(this.provider.videoData);R.content_v=z9(this.provider.videoData);R.ns=this.provider.G.Nq;R.fexp=BlN(this.provider.G.experiments).toString();R.cl=(856451506).toString();z=this.provider.videoData.adFormat||this.adFormat;var Q;((Q=this.Gn)==null?0:Q.length)?R.adformat=this.Gn.join(","):z&&(R.adformat=z);(Q=NF(this.provider.videoData))&&(R.live=Q);
this.provider.videoData.iX()&&(R.drm=1,this.provider.videoData.W&&(R.drm_system=w$v[this.provider.videoData.W.flavor]||0),this.provider.videoData.drmProduct&&(R.drm_product=this.provider.videoData.drmProduct));wz()&&this.provider.videoData.Z&&(R.ctt=this.provider.videoData.Z,R.cttype=this.provider.videoData.BA,this.provider.videoData.mdxEnvironment&&(R.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(R.dai=this.provider.videoData.enableServerStitchedDai?
"ss":"cs",this.provider.videoData.A3&&(R.dai_fallback="1"),Bh(this.provider.videoData)&&(R.dai="mv")):this.provider.videoData.Zh?R.dai="cs":this.provider.videoData.jO&&(R.dai="disabled");R.seq=this.sequenceNumber++;if(this.provider.videoData.GJ){if(Q=this.provider.videoData.GJ,R&&Q)for(Q.ns==="3pp"&&(R.ns="3pp"),this.uZ.has(Q.ns)&&JK(this,"hbps"),Q.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=Q.shbpslc),z=g.m(Object.keys(Q)),q=z.next();!q.done;q=z.next())q=q.value,this.HT.has(q)||
(R[q]=Q[q])}else R.event="streamingstats",R.docid=this.provider.videoData.videoId,R.ei=this.provider.videoData.eventId;this.isEmbargoed&&(R.embargoed="1");Object.assign(R,this.provider.G.T);(Q=R.seq)&&!this.provider.G.experiments.rg().T.pH(D6U)&&(z=n1_(this,+Q),z=g.Pu(z,$Bv),z=g.dQ(z,4),this.T.set("qclc",[z]));R=g.DI("//"+this.provider.G.Vn+"/api/stats/qoe",R);q=z="";F=g.m(this.T.entries());for(n=F.next();!n.done;n=F.next())V=g.m(n.value),n=V.next().value,V=V.next().value,r=void 0,(r=V)!=null&&r.join&&
(n="&"+n+"="+V.join(","),n.length>100?q+=n:z+=n);this.provider.G.experiments.rg().T.pH(D6U)&&(Q=n1_(this,+(Q||0)),Q.qoePingUrl=R+z+q,g.LJ("qoeClientLoggingContext",Q),z+="&dl=1");VKe(this,R+z,q.replace(/ /g,"%20"))}this.T.clear()}};
g.X.fv=function(R){this.mQ=R};
g.X.u1=function(){if(this.provider.videoData.W){var R=this.provider.videoData.W;JK(this,"eme-"+(R.keySystemAccess?"final":pp(R)?"ms":ac(R)?"ytfp":AW(R)?"safarifp":"nonfinal"))}};
g.X.TU=i9(49);g.X.S7=function(R){this.isEmbargoed=R};
g.X.Pt=i9(26);g.X.d2=i9(32);g.X.onPlaybackRateChange=function(R){var F=g.kr(this.provider);R&&R!==this.us&&(g.Kh(this,F,"rate",[R]),this.us=R);this.jQ||this.reportStats(F)};
g.X.EF=i9(20);g.X.getPlayerState=function(R){if(g.E(R,128))return"ER";if(g.E(R,2048))return"B";if(g.E(R,512))return"SU";if(g.E(R,16)||g.E(R,32))return"S";if(R.isOrWillBePlaying()&&g.E(R,64))return"B";var F=Ht7[DD(R)];g.ad(this.provider.G)&&F==="B"&&this.provider.TH.getVisibilityState()===3&&(F="SU");F==="B"&&g.E(R,4)&&(F="PB");return F};
g.X.h6=function(R,F){var n=g.kr(this.provider);g.Kh(this,n,"vfi",[R==="A"?"":""+(F!=null?F:0),R])};
g.X.oG=function(){g.G.prototype.oG.call(this);g.ok(this.J1);g.ok(this.KC)};
g.X.Qf=function(R){this.isOffline=R;g.Kh(this,g.kr(this.provider),"is_offline",[this.isOffline?"1":"0"])};
g.X.m2=function(R,F,n){var V=this.Yy.indexOf(R)!==-1;V||this.Yy.push(R);if(!n||!V){F=typeof F!=="string"?tQ(F):F;F=qYI(F);if(!n&&!/^t[.]/.test(F)){var r=g.kr(this.provider)*1E3;F="t."+r.toFixed()+";"+F}xr(this,"ctmp",R+":"+F);rik(this);return r}};
g.X.XD=function(R,F,n){this.W={B2z:Number(this.m2("glrem",{nst:R.toFixed(),rem:F.toFixed(),ca:+n})),H$:R,T2X:F,isAd:n}};
g.X.Gf=function(R,F,n){g.Kh(this,g.kr(this.provider),"ad_playback",[R,F,n])};
g.X.Yp=function(R,F){var n=g.kr(this.provider)*1E3;xr(this,"daism","t."+n.toFixed(0)+";smw."+(R*1E3).toFixed(0)+";smo."+(F*1E3).toFixed(0))};
g.X.resume=function(){var R=this;isNaN(this.J1)?v1I(this):this.J1=g.C$(function(){R.reportStats()},1E4)};
var a9={},Ht7=(a9[5]="N",a9[-1]="N",a9[3]="B",a9[0]="EN",a9[2]="PA",a9[1]="PL",a9[-1E3]="ER",a9[1E3]="N",a9),jeU=new Set(["PL","B","S"]),IO=[];g.a(XNv,g.G);g.X=XNv.prototype;g.X.initialize=function(R,F,n){R=R||0;this.policy.T||(F=g0j(this.T),WSJ(this.TH,new Cm(F.video,F.reason)),this.TH.Zu(new Cm(F.audio,F.reason)));this.policy.T&&mM(this);this.X2.isManifestless&&PkJ(this.Z);this.V&&C4R(this.V,this.videoTrack.A1);F=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var V=!this.X2.isManifestless;this.policy.Dm&&(V=V||this.X2.Kl);if(!this.policy.J1||this.policy.aG)this.currentTime=V?R:F;this.policy.PG&&this.seek(this.getCurrentTime(),{}).h5(function(){});
if(this.policy.T){var r;((r=this.J)==null?0:lhe(r,this.B_()||""))&&CF_(this)&&aHE(this,this.videoTrack)&&aHE(this,this.audioTrack)&&(fUk(this.U,this.J),this.policy.Z&&pNW(this))}else this.Nq&&(T$k(this,this.videoTrack),T$k(this,this.audioTrack),ETf(this.Nq),delete this.Nq);n?(yiW(this,!1),g.eI(this.Zp)):(R=this.getCurrentTime()===0,gO(this.Z,this.videoTrack,this.videoTrack.A1,R),gO(this.Z,this.audioTrack,this.audioTrack.A1,R),this.policy.T&&$FN(this.U,{t8:1}),this.policy.PG||this.seek(this.getCurrentTime(),
{}).h5(function(){}),this.timing.tick("gv"));
(this.X2.bX||this.X2.JD||this.X2.sf||this.X2.LQ||this.X2.w8)&&this.TH.WV(this.X2)};
g.X.resume=function(){if(this.isSuspended||this.BO){this.LK=this.BO=this.isSuspended=!1;try{this.pX()}catch(R){g.uX(R)}}};
g.X.D3=function(){return!this.policy.A0};
g.X.Aj=function(R,F){R=R===void 0?!1:R;F=F===void 0?!1:F;HiR(this);this.TH.K5()&&(this.X=NaN);R?(this.policy.gX&&this.m2("loader",{setsmb:1}),this.policy.Y5=!0,this.L4()):(yiW(this,!1),F||this.L4())};
g.X.setAudioTrack=function(R,F,n){n=n===void 0?!1:n;if(!this.Zo()){var V=!isNaN(F);n&&V&&(this.audioTrack.Nq=Date.now(),this.policy.Ra&&(this.h1=!0));n=this.TH.K5()&&!this.TH.getVideoData().V;if(this.policy.T){var r=this.W.qN(R.id,V);this.TH.Zu(r)}else r=this.T,r.U=r.X2.T[R.id],r.X=r.U,r=new as(r.X,r.N,V?"t":"m"),this.TH.Zu(new Cm(r.audio,r.reason));V?(this.mQ=Date.now(),V=this.audioTrack.A1.index.kc(F),this.m2("setAudio",{id:R.id,cmt:F,sq:V}),V>=0&&(R=this.policy.Hx?V+1:V,this.policy.T&&this.cY(!0,
"mosaic"),LF(this.audioTrack,R,NaN,NaN),!this.policy.t0&&this.X2.isLive&&fp(this.X2,R,!1))):n||this.TH.vX()}};
g.X.setPlaybackRate=function(R){R!==this.UZ.getPlaybackRate()&&this.UZ.setPlaybackRate(R)};
g.X.BM=function(R){var F=this.U.Z;this.U.Oj(R);this.m2("scfidc",{curr:VR(F),"new":VR(R)});R&&VR(R)!==VR(F)&&(this.cY(!0,"caption change"),this.pX())};
g.X.KG=function(R){this.U.Ma(R)};
g.X.w_=function(R){R.T.info.cB()?this.TH.Zu(R):WSJ(this.TH,R)};
g.X.HZ=function(R){wi(R.OZ[R.OZ.length-1])&&upN(this,B39(this.T,R.OZ[0].A1))};
g.X.cX=function(){return this.TH.cX()};
g.X.dn=function(){return this.TH.dn()};
g.X.Ps=function(R){this.TH.D().CC()&&this.m2("sps",{status:R.PY||""});if(R.PY===1)this.Ri=0;else if(R.PY===2||R.PY===3){var F=!1;if(R.PY===3){var n;this.oC=(n=R.ymq)!=null?n:Infinity;this.Ri+=1;(F=KF(this))&&this.yM(!0)}this.TH.yp(!0,F)}};
g.X.C3=function(){return this.TH.C3()};
g.X.n5=function(){return this.TH.n5()};
g.X.NQ=function(R){this.TH.NQ(R)};
g.X.DPo=function(){var R,F=(R=this.TH.LX())==null?void 0:R.getCurrentTime();F?this.TH.m2("rms",{cta:F}):g.eI(this.pC)};
g.X.pX=function(){hWk(this);if(this.IG&&p6(this.IG)&&!this.IG.Of()&&(!this.policy.J1||isFinite(this.getCurrentTime()))){var R=rO(this.videoTrack);R=this.policy.S3&&R&&R.YY();this.X2.isManifestless&&this.X2.X&&np(this.X2)?(this.X=np(this.X2),this.IG.sU(this.X)):zp(this.X2)&&!R?(R=this.getCurrentTime(),this.policy.J1&&this.policy.aG&&this.m2("ssrDuration",{ld:lf(this),lct:this.currentTime,vpd:this.getCurrentTime()},!0),isNaN(this.X)?(this.X=R+3600,this.IG.sU(this.X)):this.X<=R+1800&&(this.X=Math.max(this.X+
1800,R+3600),this.IG.sU(this.X))):this.IG.isView||(R=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),(!isFinite(this.X)||this.X!==R)&&R>0&&(this.IG.sU(R),this.X=R))}if(!this.Zo())if(Fa(this.X2)&&this.X2.fW()){var F=this.X2;this.handleError("manifest.net.retryexhausted",F.h1?{rc:F.zt}:{rc:F.zt.toString()},1)}else if(this.policy.T)a:{try{if(NC(this)&&this.WX){var n=this.U,V=this.WX,r=V.T;if(r){var v=n.TH.QO(),f=!0;v||(v=n.loader.getCurrentTime(),f=!1);F=v;var z=f?n.TH.Jp(F):F;
if(n.loader.lE(z))var q=!1;else{var Q={t:F.toFixed(3),isUtc:f};c:{var c=n.TH.B_();if(c){for(var w=g.m([n.audioTrack,n.videoTrack]),L=w.next();!L.done;L=w.next()){var S=v1(L.value.A1,n.X2.Zt);v=void 0;var p=((v=r)==null?void 0:v.o2(S,c))||[];if(p.length===0||!qyf(new XQ(p),z)){var C=!1;break c}}C=!0}else C=!1}if(C)n.loader.m2("prebuffer",Object.assign(Q,{inrange:1})),q=!0;else{if(Mn(r.info)){var y;if(y=f){var u,B;y=(((u=r.info.T)==null?void 0:(B=u.Qm)==null?void 0:B.oe)||0)===F*1E3}var O=y}else O=
!f&&dO(r.info)===F*1E3;O?(n.loader.m2("prebuffer",Object.assign(Q,{match:1})),q=!0):q=!1}}if(q){n.TH.N5("ismp_c");n.T.push(r);var K;(K=n.lS)==null||Hf(K,r.info.jn);r.gw();Km(V,!1)}}}H6(this.U);this.X2.isManifestless&&this.policy.Z&&al(this.PB);var M;((M=this.IG)==null?0:ai(M))&&this.x9();$FN(this.U);if(NC(this)&&this.WX){var J=this.U,b=this.WX,RJ=b.U.SV;if(RJ!==void 0&&RJ>=0){J.TH.N5("ismp_a");var Fj=b.U;var fW=Fj.SV;if(fW===void 0)var SE=!1;else{var nW=Fj.Wn?J.TH.Jp(fW):fW,CW;if(CW=!J.loader.lE(nW)&&
ZMf(J,J.h1)){var b9=J.TH.getCurrentTime()*1E3,fq=e7k(J,b9),vM=fq.ez;CW=fq.nN>=7E3&&vM>=7E3}SE=CW}if(SE){var l9=EGJ(J,Fj);J.policy.Sm>0&&J.h1.g$++;l9&&(b.T!==l9&&(YVI(b),b.T=l9,b.U=OC),J.TH.N5("ismp_rc"))}}}}catch(ge){g.mq(ge);F=ge;if(F.message.includes("changeType")){this.m2("ctype",{exp:F.name,msg:F.message,s:F.stack});break a}this.handleError("fmt.unplayable",{exp:F.name,msg:F.message,s:F.stack,trg:"sabrslicerqt"},1)}Ji_(this);g.eI(this.SQ)}else if(!this.X2.U||!ukj(this.videoTrack)&&!ukj(this.audioTrack)||
(this.videoTrack.J||this.audioTrack.J)&&this.policy.on?n=!1:(this.L4(),this.TH.seekTo(Infinity,{gW:"checkLoaderTracksSync",c8:!0}),n=!0),!n){hWk(this);this.X2.isManifestless&&(Bge(this.videoTrack),Bge(this.audioTrack),al(this.PB),(n=ol(this.videoTrack))&&n.T&&(n=n.T.N&&!this.policy.aI,this.m2(n===this.policy.V.A5?"strm":"strmbug",{strm:n,sfmp4:this.policy.V.A5,dfs:this.policy.aI},!0)));if(this.IG)this.x9();else if(this.policy.J){n=!1;if(this.policy.Y8)for(V=g.m([this.videoTrack,this.audioTrack]),
r=V.next();!r.done;r=V.next()){q=r.value;for(r=ol(q);r&&q.aY()!==rO(q);r=ol(q))q.pD(r);n=n||!!r}else(F=ol(this.videoTrack))&&this.videoTrack.pD(F),(f=ol(this.audioTrack))&&this.audioTrack.pD(f);Qc(this.videoTrack)&&Qc(this.audioTrack)||(F||f||n)&&jb(this)}o1f(this);gO(this.Z,this.videoTrack,this.videoTrack.A1,!1);gO(this.Z,this.audioTrack,this.audioTrack.A1,!1);if(!this.policy.DI&&(F=this.videoTrack,V=this.audioTrack,(!this.IG||p6(this.IG)&&!this.policy.Xn)&&!this.PB.isSeeking()&&(this.policy.T||
A2(F)&&F.A1.o9()&&this.T.Nq)))a:{if(f=this.getCurrentTime(),n=this.UZ,V=zH(n,F.A1.info.yz,V.A1.info.yz,0),r=v9(n.AJ)+V/tf(n.AJ),f+=Math.max(r,r+n.policy.Pc-V/F.A1.info.yz),F.U.length){if(F.U[0].info.OZ[0].startTime<=f)break a;sn(F)}n=F.N;for(V=n.U.length-1;V>=0;V--)n.U[V].info.startTime>f&&n.U.pop();j$9(F);F.T&&f<F.T.startTime&&(F.Mq=0,F.A1.o9()?F.T=F.A1.KS(f,!0).OZ[0]:F.T=null)}lvR(this.Z,this.videoTrack,this.audioTrack);lvR(this.Z,this.audioTrack,this.videoTrack);Ji_(this);this.V&&(F=this.V,F.J?
(f=F.Z+F.policy.pG,F.N||(f=Math.min(f,F.startTimeSecs+F.policy.Dl)),F=Math.max(0,f*1E3-Date.now())):F=NaN,isNaN(F)||g.eI(this.Yy,F));g.eI(this.SQ)}};
g.X.sb=function(R){this.TH.sb(R)};
g.X.x9=function(){if(this.IG){var R=this.IG.T,F=this.IG.U;N$R(this,this.audioTrack);N$R(this,this.videoTrack);var n=B$9(this);if(n){if(this.policy.R2){if(!R.P5()){var V=ol(this.audioTrack);if(V){if(!MC(this,this.audioTrack,R,V.info))return;mJk(this,this.audioTrack,R,V)}}if(!F.P5()&&(R=ol(this.videoTrack))){if(!MC(this,this.videoTrack,F,R.info))return;mJk(this,this.videoTrack,F,R)}}this.J1||(this.J1=(0,g.h1)(),this.policy.N&&this.m2("apdps",{r:n}))}else{if(this.J1){n=this.J1;var r=(0,g.h1)()-n;V=Sz(this.audioTrack,
!0)*1E3;var v=Sz(this.videoTrack,!0)*1E3;this.policy.N&&(this.m2("apdpe",{dur:r.toFixed(),abuf:V.toFixed(),vbuf:v.toFixed()}),yc(this.policy)&&(r=qH(this.UZ),this.m2("sdps",{ct:n,ah:V.toFixed(),vh:v.toFixed(),mr:QP(this.UZ,this.BO,r),bw:r.toFixed(),js:this.isSeeking(),re:+this.BO,ps:(this.policy.GW||"").toString(),rn:(this.policy.Rj||"").toString()})));this.J1=0}this.V&&(n=this.V.pX(this.audioTrack,f6(this.IG.U.TI())))&&this.TH.seekTo(n,{eP:!0,gW:"pollSubsegmentReadahead",c8:!0});n=!1;KSN(this,this.videoTrack,
F)&&(n=!0,F=this.timing,F.W||(F.W=(0,g.h1)(),g.Jz("vda",F.W,F.T),F.J&&(g.n3(),rS(4))),F=this.timing,F.Y5||(F.Y5=(0,g.h1)(),g.Jz("vrb_f",F.Y5,F.T)));if(this.IG&&!this.IG.D7()&&(KSN(this,this.audioTrack,R)&&(n=!0,R=this.timing,R.J||(R.J=(0,g.h1)(),g.Jz("ada",R.J,R.T),R.W&&(g.n3(),rS(4))),R=this.timing,R.UZ||(R.UZ=(0,g.h1)(),g.Jz("arb_f",R.UZ,R.T))),!this.Zo()&&this.IG)){!this.policy.A0&&Qc(this.videoTrack)&&Qc(this.audioTrack)&&p6(this.IG)&&!this.IG.Of()&&(R=rO(this.audioTrack).A1,R===this.X2.T[R.info.id]&&
(R=this.IG,p6(R)&&(R.IG?R.IG.endOfStream():R.w2.webkitSourceEndOfStream(R.w2.EOS_NO_ERROR)),R=this.schedule,I7N(jh(R)),R.J1=(0,g.h1)(),R.Nq=!0,this.ej("e")));if(R=n)R=this.IG,R=!(R.T?R.T.supports(0):Tr());R&&jb(this)}}}};
g.X.ej=function(R){if(this.X2.isManifestless){var F=this.videoTrack.A1;if(F){var n=F.index.VZ(),V=-1,r=-1;F.index instanceof H1&&(V=F.index.yE(),r=F.index.Ug());this.TH.ej(R,n,V,r)}}};
g.X.Nz=function(R){var F,n=R===((F=this.IG)==null?void 0:F.T)?this.audioTrack:this.videoTrack,V;if((V=ol(n))==null?0:V.isLocked){if(this.TH.D().CC()){var r;this.m2("eosl",{ounlock:(r=ol(n))==null?void 0:r.info.KX()})}var v;xJk(this,R===((v=this.IG)==null?void 0:v.T))}var f;if(this.policy.Ra&&R===((f=this.IG)==null?void 0:f.T)&&this.k5){F=this.k5-this.getCurrentTime();var z;this.TH.m2("asl",{l:F,xtag:(z=rO(this.audioTrack))==null?void 0:z.A1.info.T});this.h1=!1;this.k5=0}R.i4()&&R.TI().length===0&&
(R.EL(),this.IG&&!this.IG.i4()&&(this.TH.D().CC()&&this.TH.m2("rms",{ld:"seek"}),this.IG.Z=performance.now(),this.TH.eZ(),this.TH.D().CC()&&g.eI(this.pC)));var q;(q=n.V)!=null&&iG(q,0);this.policy.pC?xZ(this):this.pX()};
g.X.AXS=function(R){if(this.IG){var F=rO(R===this.IG.T?this.audioTrack:this.videoTrack);if(R=R.jT())for(var n=0;n<R.length;n++)this.m2("appendedbuffer",{i:n,b:g.dQ(R[n].subarray(0,4096),3)});R={};F&&(R=s1(F));R.trg="onappenderr";this.handleError("fmt.unplayable",R,1)}};
g.X.Ws=function(R){this.TH.Ws(R)};
g.X.Ky=function(R,F,n){n&&this.Z4&&this.m2("sdai",{skipadsvi:1,rep:R.info.itag,sq:F.nH,acpn:n.T.join("-"),avids:n.ids.join("-")});if(this.X2.isManifestless){R=!!R.info.video;av_(this,F,n,R,!0);if(!this.policy.Mq&&this.policy.fl&&R){var V;(V=this.eB)==null||AgJ(V,F.nH,n)}if(this.policy.U&&F.J0){V=!!n;var r=F.J0||null;if((r==null?void 0:r.event)!=="predictStart"){var v;if((v=this.U)==null)var f=void 0;else{var z,q;f={requestNumber:((z=v.gX)==null?void 0:z.M6())||-1,isDecorated:(q=v.gX)==null?void 0:
q.info.isDecorated()}}q=f;z=q.requestNumber;q=q.isDecorated;if(R&&!q){var Q;this.m2("sdai",{underdec:(Q=this.vI)==null?void 0:jIf(Q,r),evt:r==null?void 0:r.event,id:r==null?void 0:r.identifier,sq:F.nH,mt:F.startTime.toFixed(3),stif:V,rn:z})}}}if(!this.policy.Mq){Q=R?this.videoTrack:this.audioTrack;Q.UZ.push({sS:F.nH,yOG:n});Q.UZ.length>5&&Q.UZ.shift();F=F.nH;var c;if((c=this.TH.getVideoData())==null?0:c.enableServerStitchedDai)c=Ivj(this.audioTrack,F),n=Ivj(this.videoTrack,F),c!==0&&n!==0&&c!==n&&
this.handleError("ssdai.avsync",{sq:F,a:c,v:n},0)}}};
g.X.rh=function(R,F,n,V){R.info.video&&this.N.rh(F,n,V)};
g.X.PQ=function(R){this.T.PQ(R)};
g.X.q$=function(){return this.vI};
g.X.G7=function(){return this.videoTrack.Z||this.audioTrack.Z};
g.X.seek=function(R,F){if(this.Zo())return DB();if(this.G7())return DB("seeking to head");if(this.policy.PG&&!isFinite(R))return dcW(this.PB),g.KT(Infinity);hWk(this);PFj(this,R,!1,F.seekSource);mM(this);this.policy.T||o1f(this,R);this.IG&&this.IG.T&&this.IG.U&&!this.TH.getVideoData().CY&&(this.IG.T.isLocked()||this.IG.U.isLocked())&&this.TH.vX({reattachOnLockedBuffer:1,vsb:""+this.IG.U.isLocked(),asb:""+this.IG.T.isLocked()});var n=this.getCurrentTime(),V=this.PB.seek(R,F);if(!this.policy.J1||this.policy.aG)this.currentTime=
V;XW(this.N,R,n,this.policy.lH&&!F.Ho);jb(this);return g.KT(V)};
g.X.Af=function(R){return this.policy.T&&this.U.Af(R)};
g.X.Q4=function(R){return this.U.Q4(R)};
g.X.cY=function(R,F){this.U.cY(R,F)};
g.X.getCurrentTime=function(){if(this.policy.J1){var R=this.qC()||0;return this.TH.getCurrentTime(!0)-R}return this.currentTime};
g.X.RP=function(){return this.audioTrack.A1.info};
g.X.nQ=function(){return this.videoTrack.A1.info};
g.X.MU=function(){return this.audioTrack.A1.info.x5};
g.X.n3=function(){return this.videoTrack.A1.info.x5};
g.X.oG=function(){try{this.Aj(),sn(this.audioTrack),sn(this.videoTrack),a6(this.audioTrack),a6(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.G.prototype.oG.call(this)}catch(R){g.uX(R)}};
g.X.handleError=function(R,F,n){n=n===void 0?0:n;var V=qL(n);R==="fmt.unplayable"&&this.X2.isLive&&(this.policy.R2=!1,vp(this.X2));F=new g.z$(R,F,n);g.x$(this);tQ(F.details);this.TH.handleError(F);R!=="html5.invalidstate"&&F.errorCode!=="fmt.unplayable"&&R!=="fmt.unparseable"&&V&&this.dispose()};
g.X.fC=function(){var R=rO(this.audioTrack),F=rO(this.videoTrack);R={lct:this.getCurrentTime().toFixed(3),lsk:this.PB.isSeeking(),lmf:this.T.T.isLocked(),lbw:k1v(this.schedule).toFixed(3),lhd:v9(this.schedule).toFixed(3),lst:((this.schedule.X.Cm()||0)*1E9).toFixed(3),laa:R?R.KX():"",lva:F?F.KX():"",lar:this.audioTrack.T?this.audioTrack.T.KX():"",lvr:this.videoTrack.T?this.videoTrack.T.KX():"",laq:""+cf(this.audioTrack),lvq:""+cf(this.videoTrack)};this.IG&&!this.IG.D7()&&this.IG.T&&this.IG.U&&(R.lab=
n6(this.IG.T.TI()),R.lvb=n6(this.IG.U.TI()));this.J1&&(R.lapt=((0,g.h1)()-this.J1).toFixed(0),R.lapr=B$9(this));this.Mq&&(R.lapmabht=((0,g.h1)()-this.Mq).toFixed(0),R.lapmabh=X9(this,this.audioTrack).toFixed(0));this.Y5&&(R.lapmvbht=((0,g.h1)()-this.Y5).toFixed(0),R.lapmvbh=X9(this,this.videoTrack).toFixed(0));this.bS&&(R.lapsdai=((0,g.h1)()-this.bS).toFixed(0));return R};
g.X.L4=function(){try{this.policy.T&&this.U.cY(!1,"pending"),this.audioTrack.L4(),this.videoTrack.L4()}catch(R){g.uX(R)}this.policy.J=""};
g.X.lE=function(R){return this.videoTrack&&this.audioTrack?this.videoTrack.lE(R)&&this.audioTrack.lE(R):!0};
g.X.rf=function(){return f0(this.UZ)};
g.X.m2=function(R,F,n){this.TH.m2(R,F,n===void 0?!1:n)};
g.X.B_=function(){return this.TH.B_()};
g.X.c8=function(R,F){R/=F;isNaN(this.timestampOffset)&&E1f(this,R-Math.min(R,this.policy.Nv));return(R-this.timestampOffset)*F};
g.X.qC=function(){return this.timestampOffset};
g.X.isSeeking=function(){return this.PB.isSeeking()};
g.X.nE=function(){this.N.nE()};
g.X.HX=function(R,F,n){F=F===void 0?!1:F;n=n===void 0?{}:n;this.policy.T?this.W.HX(R,F,n):this.T.HX(R,F,n)};
g.X.AG=function(R,F){if(this.policy.U&&(this.Z4||this.isSeeking()))return this.m2("sdai",{ignoreSkip:"1",isSkip:this.Z4,isSeek:this.isSeeking(),t:R.toFixed(3)}),!1;var n=this.policy.U&&(this.policy.W||this.policy.Tl),V=this.videoTrack.A1.index.kc(R),r=!1;if(n){var v;if(r=!((v=this.jQ)==null||!v.Hs(R,V,this.timestampOffset)))if(SF(this,R,R,V),this.vI){var f;(f=this.vI)==null||f.Hs(R,V)}}else this.vI&&(r=!!this.N.AG(R,this.vI));if(!r)return this.handleError("ad.skipfailed",{dec:!!this.vI,t:R.toFixed(3),
sq:V}),!1;this.policy.U&&(this.m2("sdai",{skipAdStd:"1"}),this.Z4=!0);if(this.policy.fl){var z;(z=this.eB)==null||z.clear()}E1f(this,this.timestampOffset-F);jb(this);this.policy.U&&(vp(this.X2),a6(this.audioTrack),a6(this.videoTrack),this.L4());return!0};
g.X.getManifest=function(){return this.X2};
g.X.isOffline=function(){return!!this.TH.getVideoData().cotn};
g.X.wl=function(R,F){this.TH.wl(R,F)};
g.X.xO=function(R,F){if(this.policy.T)PFj(this,R,!0,F),this.U.cY(!0,"utc"),this.pX();else if(F=this.TH.getVideoData().K4){var n=this.Z;n.Bt=R;n.K4=F;iB(this)}};
g.X.EX=function(R){this.videoTrack.Z=!1;this.audioTrack.Z=!1;this.PB.T=!1;this.TH.EX(R)};
g.X.Ih=function(R){this.PB.Ih(R-this.qC())};
g.X.jp=function(){this.TH.jp()};
g.X.yM=function(R){R!==this.policy.Ow&&((this.policy.Ow=R)||this.pX())};
g.X.vX=function(R){this.TH.vX(R)};
g.X.fv=function(R){this.TH.fv(R)};
g.X.WY=function(R,F,n,V){var r;(r=this.jQ)==null||r.WY(R,F,n,V);this.policy.W&&(this.U.X=void 0,this.pX())};
g.X.Ce=function(R){var F;(F=this.jQ)==null||F.Ce(R)};
g.X.US=function(R){this.policy.Mq&&this.TH.getVideoData().Zt()&&!R.oZ&&(this.m2("liveUmpMissing",{segmentNum:R.QB,headerId:R.QJ,startMs:R.startMs,durationMs:R.durationMs}),this.policy.Mq=!1)};
g.X.CD=function(R,F){if(this.policy.W){var n,V=(n=R.Ks)==null?void 0:n[0];n=zKk(this.TH.getVideoData());var r;(r=this.jQ)==null||r.CD(R,F,this.vI||void 0,n,this.policy.RV?this.X2:void 0);var v,f,z;this.m2("clidai",{onqlst:1,len:((v=R.Ks)==null?void 0:v.length)||0,rn:F,evt:AWj(V==null?void 0:(f=V.J0)==null?void 0:f.event),cid:(V==null?void 0:(z=V.J0)==null?void 0:z.identifier)||"null",sq:(V==null?void 0:V.QB)||-1,trk:(V==null?void 0:V.trackType)||"null",disr:n})}};
g.X.Yg=function(R){if(this.policy.Mq){var F;(F=this.vI)==null||F.Yg(R)}};
g.X.prefetchKeyPlay=function(R,F){var n=this;NC(this)&&(this.WX||(this.WX=new Is(function(V){n.TH.N5(V)}),g.d(this,this.WX)),kp6(this.WX,{SV:R,
Wn:F,t8:2}),this.pX())};
g.X.hS=function(){this.on++};
g.X.Na=function(){this.on=0};g.a(Ep,g.fG);g.a($r,Ep);$r.prototype.Z=function(R,F){if(R&&F){var n=Number(Ym(R,"cpi"))*1+1;isNaN(n)||n<=0||n<this.N?(this.J.stop(),this.U.stop(),this.N=-1,this.T={}):(n>this.N&&(this.N=n,g.g7(this.T)||(this.T={},this.J.stop(),this.U.stop())),this.T[F]=R,g.eI(this.U))}};
$r.prototype.W=function(){for(var R=g.m(Object.keys(this.T)),F=R.next();!F.done;F=R.next()){var n=F.value;F=this.publish;for(var V=this.N,r=g.Wa(this.T[n]),v=[],f=g.m(r[6].split("&")),z=f.next();!z.done;z=f.next())z=z.value,z.indexOf("cpi=")===0?v.push("cpi="+V.toString()):z.indexOf("ek=")===0?v.push("ek="+g.N3(n)):v.push(z);r[6]="?"+v.join("&");n="skd://"+r.slice(2).join("");r=n.length*2;V=new Uint8Array(r+4);V[0]=r%256;V[1]=(r-V[0])/256;for(r=0;r<n.length;++r)V[r*2+4]=n.charCodeAt(r);F.call(this,
"rotated_need_key_info_ready",new lG(V,"fairplay",!0))}this.T={}};
$r.prototype.oG=function(){this.T={};Ep.prototype.oG.call(this)};g.a(P6,Ep);
P6.prototype.J=function(R){var F;a:{if((F=R.cryptoPeriodIndex)&&this.T.length>0)for(var n=g.m(this.T),V=n.next();!V.done;V=n.next())if(F===V.value.info.cryptoPeriodIndex){F=!0;break a}F=!1}if(!F){F=(0,g.h1)();a:{n=R.cryptoPeriodIndex;if(!isNaN(n)){V=g.m(this.N.values());for(var r=V.next();!r.done;r=V.next())if(Math.abs(r.value.cryptoPeriodIndex-n)<=1){n=!0;break a}}n=!1}n?(n=R.T,n=Math.max(0,Math.random()*((isNaN(n)?120:n)-30))*1E3):n=0;this.publish("log_qoe",{wvagt:"delay."+n,cpi:R.cryptoPeriodIndex,reqlen:this.T.length});
n<=0?Zi9(this,R):(this.T.push({time:F+n,info:R}),g.eI(this.U,n))}};
P6.prototype.oG=function(){this.T=[];Ep.prototype.oG.call(this)};var CH={},rf9=(CH.DRM_TRACK_TYPE_AUDIO="AUDIO",CH.DRM_TRACK_TYPE_SD="SD",CH.DRM_TRACK_TYPE_HD="HD",CH.DRM_TRACK_TYPE_UHD1="UHD1",CH);g.a(nzk,g.G);g.a(f9v,g.fG);g.X=f9v.prototype;g.X.u0=function(R){var F=this;if(!(this.Zo()||R.size<=0)){var n={};R.forEach(function(V,r){var v=Xa(F.U)?r:V;r=new Uint8Array(Xa(F.U)?V:r);Xa(F.U)&&UHV(r);V=g.dQ(r,4);UHV(r);r=g.dQ(r,4);F.T[V]?F.T[V].status=v:F.T[r]?F.T[r].status=v:F.T[V]={type:"",status:v};ozV(F,F.T[V].type,n)});
CZj(this,",");bf(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}};
g.X.error=function(R,F,n,V){this.Zo()||(this.publish("licenseerror",R,F,n,V),R==="drm.provision"&&(R=(Date.now()-this.Z)/1E3,this.Z=NaN,this.publish("ctmp","provf",{et:R.toFixed(3)})));qL(F)&&this.dispose()};
g.X.shouldRetry=function(R,F){return!R&&this.requestNumber===F.requestNumber};
g.X.oG=function(){this.T={};g.fG.prototype.oG.call(this)};
g.X.fC=function(){var R={ctype:this.V.contentType||"",length:this.V.initData.length,requestedKeyIds:this.lS,cryptoPeriodIndex:this.cryptoPeriodIndex};this.N&&(R.keyStatuses=this.T);return R};
g.X.getInfo=function(){var R=this.J.join();if(ZQ(this)){var F=new Set,n;for(n in this.T)this.T[n].status!=="usable"&&F.add(this.T[n].type);R+="/UKS."+Array.from(F)}return R+="/"+this.cryptoPeriodIndex};
g.X.rD=function(){return this.url};g.a(R3,g.G);g.X=R3.prototype;g.X.JU=function(R){if(this.W){var F=R.messageType||"license-request";this.W(new Uint8Array(R.message),F)}};
g.X.u0=function(){this.X&&this.X(this.T.keyStatuses)};
g.X.onClosed=function(){this.Zo()||g.E2("xboxone")&&this.N&&this.N("closedShouldNotRetry")};
g.X.Wr=function(R){this.W&&this.W(R.message,"license-request")};
g.X.Qi=function(R){if(this.N){if(this.U){var F=this.U.error.code;R=this.U.error.systemCode}else F=R.errorCode,R=R.systemCode;this.N("t.prefixedKeyError;c."+F+";sc."+R,F,R)}};
g.X.Aa=function(){this.Z&&this.Z()};
g.X.update=function(R){var F=this;if(this.T)return this.T.update(R).then(null,pQ(function(n){H0v(F,"t.update",n)}));
this.U?this.U.update(R):this.element.addKey?this.element.addKey(this.V.keySystem,R,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.V.keySystem,R,this.initData,this.sessionId);return D_()};
g.X.oG=function(){this.T&&(this.UZ?this.T.close().catch(g.mq):this.T.close());this.element=null;g.G.prototype.oG.call(this)};g.a(FH,g.G);g.X=FH.prototype;g.X.setServerCertificate=function(){return this.U.setServerCertificate?this.T.flavor==="widevine"&&this.T.OT?this.U.setServerCertificate(this.T.OT):Cp(this.T)&&this.T.qT?this.U.setServerCertificate(this.T.qT):null:null};
g.X.createSession=function(R,F){var n=R.initData;if(this.T.keySystemAccess){F&&F("createsession");var V=this.U.createSession();ac(this.T)?n=u9E(n,this.T.qT):Cp(this.T)&&(n=biE(n)||new Uint8Array(0));F&&F("genreq");R=V.generateRequest(R.contentType,n);var r=new R3(null,null,null,V,null,this.X);R.then(function(){F&&F("genreqsuccess")},pQ(function(f){H0v(r,"t.generateRequest",f)}));
return r}if(pp(this.T))return mHN(this,n);if(AW(this.T))return BAE(this,n);if((V=this.element)==null?0:V.generateKeyRequest)this.element.generateKeyRequest(this.T.keySystem,n);else{var v;(v=this.element)==null||v.webkitGenerateKeyRequest(this.T.keySystem,n)}return this.J=new R3(this.element,this.T,n,null,null,this.X)};
g.X.sx=function(R){var F=gzV(this,R);F&&F.Wr(R)};
g.X.jW=function(R){var F=gzV(this,R);F&&F.Qi(R)};
g.X.cR=function(R){var F=gzV(this,R);F&&F.Aa(R)};
g.X.getMetrics=function(){var R=null;if(this.U&&this.U.getMetrics)try{R=this.U.getMetrics()}catch(F){}return R};
g.X.oG=function(){this.N=this.U=null;var R;(R=this.J)==null||R.dispose();R=g.m(Object.values(this.Z));for(var F=R.next();!F.done;F=R.next())F.value.dispose();this.Z={};g.G.prototype.oG.call(this);delete this.element};g.X=nP.prototype;g.X.get=function(R){R=this.findIndex(R);return R!==-1?this.values[R]:null};
g.X.remove=function(R){R=this.findIndex(R);R!==-1&&(this.keys.splice(R,1),this.values.splice(R,1))};
g.X.removeAll=function(){this.keys=[];this.values=[]};
g.X.set=function(R,F){var n=this.findIndex(R);n!==-1?this.values[n]=F:(this.keys.push(R),this.values.push(F))};
g.X.findIndex=function(R){return g.PM(this.keys,function(F){return g.Xu(R,F)})};g.a(KT6,g.fG);g.X=KT6.prototype;g.X.HX5=function(R){this.PW({onecpt:1});R.initData&&xHV(this,new Uint8Array(R.initData),R.initDataType)};
g.X.ww2=function(R){this.PW({onndky:1});xHV(this,R.initData,R.contentType)};
g.X.Ws=function(R){this.PW({onneedkeyinfo:1});this.G.B("html5_eme_loader_sync")&&(this.X.get(R.initData)||this.X.set(R.initData,R));i0k(this,R)};
g.X.Mx=function(R){this.N.push(R);VE(this)};
g.X.createSession=function(R){var F=YnV(this)?eR_(R):g.dQ(R.initData);this.U.get(F);this.lS=!0;R=new f9v(this.videoData,this.G,R,this.drmSessionId,this.rp);this.U.set(F,R);R.subscribe("ctmp",this.fp,this);R.subscribe("keystatuseschange",this.u0,this);R.subscribe("licenseerror",this.lm,this);R.subscribe("newlicense",this.Ja,this);R.subscribe("newsession",this.jR,this);R.subscribe("sessionready",this.XT,this);R.subscribe("fairplay_next_need_key_info",this.TG,this);this.G.B("html5_enable_vp9_fairplay")&&
R.subscribe("qualitychange",this.vK,this);R.subscribe("sabrlicenseconstraint",this.DLH,this);cfJ(R,this.J)};
g.X.Ja=function(R){this.Zo()||(this.PW({onnelcswhb:1}),R&&!this.heartbeatParams&&(this.heartbeatParams=R,this.publish("heartbeatparams",R)))};
g.X.jR=function(){this.Zo()||(this.PW({newlcssn:1}),this.N.shift(),this.lS=!1,VE(this))};
g.X.XT=function(){if(pp(this.T)&&(this.PW({onsnrdy:1}),this.bS--,this.bS===0)){var R=this.Nq,F,n;(F=R.element)==null||(n=F.msSetMediaKeys)==null||n.call(F,R.N)}};
g.X.u0=function(R){if(!this.Zo()){this.Mq||(this.Mq=!0,this.G.CC()&&Jfk(this));this.PW({onksch:1});var F=this.vK;if(!ZQ(R)&&g.Nx&&R.U.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var n="large";else{n=[];var V=!0;if(ZQ(R))for(var r=g.m(Object.keys(R.T)),v=r.next();!v.done;v=r.next())v=v.value,R.T[v].status==="usable"&&n.push(R.T[v].type),R.T[v].status!=="unknown"&&(V=!1);if(!ZQ(R)||V)n=R.J;n=a9e(n)}F.call(this,n);if(R.G.B("html5_enable_vp9_fairplay")&&Cp(R.U))F=R.UZ;
else{if(!ZQ(R))for(F={},n=g.m(R.J),V=n.next();!V.done;V=n.next())ozV(R,V.value,F);F=R.authorizedFormats}this.videoData.authorizedFormats=F;this.publish("keystatuseschange",R)}};
g.X.fp=function(R,F){this.Zo()||this.publish("ctmp",R,F)};
g.X.TG=function(R,F){this.Zo()||this.publish("fairplay_next_need_key_info",R,F)};
g.X.lm=function(R,F,n,V){this.Zo()||(this.videoData.B("html5_log_drm_metrics_on_error")&&Jfk(this),this.publish("licenseerror",R,F,n,V))};
g.X.F0=function(){return this.V};
g.X.vK=function(R){var F=g.M4("auto",R,!1,"l");if(this.videoData.Ab){if(this.V.equals(F))return}else if(POW(this.V,R))return;this.V=F;this.publish("qualitychange");this.PW({updtlq:R})};
g.X.DLH=function(R){this.videoData.sabrLicenseConstraint=R};
g.X.oG=function(){var R,F;this.T.keySystemAccess&&this.element&&!((R=this.mediaElement)==null?0:(F=R.vG)==null?0:F.K5())&&(this.jQ?this.element.setMediaKeys(null).catch(g.mq):this.element.setMediaKeys(null));this.element=null;this.N=[];R=g.m(this.U.values());for(F=R.next();!F.done;F=R.next())F=F.value,F.unsubscribe("ctmp",this.fp,this),F.unsubscribe("keystatuseschange",this.u0,this),F.unsubscribe("licenseerror",this.lm,this),F.unsubscribe("newlicense",this.Ja,this),F.unsubscribe("newsession",this.jR,
this),F.unsubscribe("sessionready",this.XT,this),F.unsubscribe("fairplay_next_need_key_info",this.TG,this),this.G.B("html5_enable_vp9_fairplay")&&F.unsubscribe("qualitychange",this.vK,this),F.dispose();this.U.clear();this.Z.removeAll();this.X.removeAll();this.heartbeatParams=null;g.fG.prototype.oG.call(this)};
g.X.fC=function(){for(var R={systemInfo:this.T.fC(),sessions:[]},F=g.m(this.U.values()),n=F.next();!n.done;n=F.next())R.sessions.push(n.value.fC());return R};
g.X.getInfo=function(){return this.U.size<=0?"no session":""+this.U.values().next().value.getInfo()+(this.W?"/KR":"")};
g.X.PW=function(R,F){F=F===void 0?!1:F;this.Zo()||(tQ(R),(this.G.CC()||F)&&this.publish("ctmp","drmlog",R))};var l96=!1,Ezv=!1;g.a(PZj,g.G);g.X=PZj.prototype;g.X.Ov=function(){return!!this.pE};
g.X.RN=function(){return this.U};
g.X.handleError=function(R){var F=this;ngj(this,R);var n;if(n=!((R.errorCode==="html5.invalidstate"||R.errorCode==="fmt.unplayable"||R.errorCode==="fmt.unparseable")&&Fn_(this,R.errorCode,R.details)))if(n=!f59(this,R))this.videoData.errorDetail==="7"&&g.ad(this.Qz)?(vgR(this,"innertube_player_reload_required"),n=!0):n=!1,n=!n;if(n)if(this.Qz.Nq!=="yt"&&rZj(this,R)&&this.videoData.t0&&(0,g.h1)()/1E3>this.videoData.t0&&ao(this.videoData)&&(n=Object.assign({e:R.errorCode},R.details),n.stalesigexp="1",
n.expire=Math.round(this.videoData.t0*1E3),n.init=Math.round(this.videoData.Db),n.now=Math.round((0,g.h1)()),R=new g.z$(R.errorCode,n,2),this.TH.Rr(R.errorCode,2,"SIGNATURE_EXPIRED",tQ(R.details))),qL(R.severity)){var V;n=(V=this.TH.loader)==null?void 0:V.T.T;if(this.Qz.B("html5_use_network_error_code_enums"))if(VFI(R)&&n&&n.isLocked())var r="FORMAT_UNAVAILABLE";else if(this.Qz.Z||R.errorCode!=="auth"||R.details.rc!==429)R.errorCode==="ump.spsrejectfailure"&&(r="HTML5_SPS_UMP_STATUS_REJECTED");else{r=
"TOO_MANY_REQUESTS";var v="6"}else VFI(R)&&n&&n.isLocked()?r="FORMAT_UNAVAILABLE":this.Qz.Z||R.errorCode!=="auth"||R.details.rc!=="429"?R.errorCode==="ump.spsrejectfailure"&&(r="HTML5_SPS_UMP_STATUS_REJECTED"):(r="TOO_MANY_REQUESTS",v="6");this.TH.Rr(R.errorCode,R.severity,r,tQ(R.details),v)}else this.TH.publish("nonfatalerror",R),V=/^pp/.test(this.videoData.clientPlaybackNonce),this.Tk(R.errorCode,R.details),V&&R.errorCode==="manifest.net.connect"&&(R="https://www.youtube.com/generate_204?cpn="+
this.videoData.clientPlaybackNonce+"&t="+(0,g.h1)(),VP(R,"manifest",function(f){F.Z=!0;F.m2("pathprobe",f)},function(f){F.Tk(f.errorCode,f.details)}))};
g.X.m2=function(R,F){this.TH.Dt.m2(R,F)};
g.X.Tk=function(R,F){F=tQ(F);this.TH.Dt.Tk(R,F)};vY.prototype.SZ=function(R){var F=QsI(this);if(!R)return{Rp:LM,CN:LM,Jy:LM,zw:LM,Rc:LM,jA:LM,FB:F};var n=LM;if(N4(F)||this.B("html5_perf_cap_override_sticky"))n=TjJ(this,R);return{Rp:n,CN:pse(this,R),Jy:Ln6(this,R),zw:ogN(this,R.videoData),Rc:yZj(this,R.videoData,R),jA:wsv(this,R),FB:F}};
vY.prototype.ZZ=function(R){if(g.ad(this.G)&&fn(this.G.W,tI.HEIGHT))var F=R.T.videoInfos[0].video.qualityOrdinal;else{var n=this.KJ(!!R.T.T);Wh(R.videoData)||SH(R.videoData);R=R.T.videoInfos;if(R.length){var V=.85,r=R[0].video;r.projectionType!=="MESH"&&r.projectionType!=="EQUIRECTANGULAR"&&r.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||eU||(V=.45);r=g.Vn(this.G.experiments,"html5_viewport_undersend_maximum");for(var v=0;v<R.length;v++){F=R[v];var f=F.video;if(n===null||f.width*V<n.width&&
f.height*V<n.height){r&&v&&f.width<n.width*r&&f.height<n.height*r&&(F=R[v-1]);break}}n=F.video;F=new dv(0,F.itag==="93"?g.g8[mG(n.width,n.height)]:n.qualityOrdinal,!1,"r")}else F=LM;F=F.T}F&&(F=Math.max(F,360));return new dv(0,F,!1,"r")};
vY.prototype.KJ=function(R){var F;g.Fk(this.G)&&(F=window.screen&&window.screen.width?new g.QX(window.screen.width,window.screen.height):null);F||(F=this.G.r8?this.G.r8.clone():this.Yz.p5());(FA||gj||R)&&F.scale(g.p9());return F};
vY.prototype.B=function(R){return this.G.B(R)};g.a(t5,g.G);t5.prototype.OM=function(){var R=g.kr(this.provider);this.T<0&&(this.T=R,this.delay.start());this.J=this.U=R};
t5.prototype.onError=function(R){if(R!=="player.fatalexception"||this.provider.B("html5_exception_to_health"))R==="sabr.fallback"&&(this.encounteredSabrFallback=!0),R.match(hTh)?this.networkErrorCount++:this.nonNetworkErrorCount++};
t5.prototype.send=function(){if(!(this.N||this.T<0)){HmI(this);var R=g.kr(this.provider)-this.T,F="PLAYER_PLAYBACK_STATE_UNKNOWN",n=this.playerState.z_;this.playerState.isError()?F=n&&n.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.E(this.playerState,2)?F="PLAYER_PLAYBACK_STATE_ENDED":g.E(this.playerState,64)?F="PLAYER_PLAYBACK_STATE_UNSTARTED":g.E(this.playerState,16)||g.E(this.playerState,32)?F="PLAYER_PLAYBACK_STATE_SEEKING":g.E(this.playerState,1)&&g.E(this.playerState,
4)?F="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.E(this.playerState,1)?F="PLAYER_PLAYBACK_STATE_BUFFERING":g.E(this.playerState,4)?F="PLAYER_PLAYBACK_STATE_PAUSED":g.E(this.playerState,8)&&(F="PLAYER_PLAYBACK_STATE_PLAYING");n=Sj7[NF(this.provider.videoData)];a:switch(this.provider.G.playerCanaryState){case "canary":var V="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":V="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:V="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var r=hrN(this.provider),
v=this.U<0?R:this.U-this.T;R=this.provider.G.H_+36E5<(0,g.h1)();F={started:this.U>=0,stateAtSend:F,joinLatencySecs:v,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:V,playerCanaryStage:r,isAd:this.provider.videoData.isAd(),liveMode:n,hasDrm:!!g.MF(this.provider.videoData),isGapless:this.provider.videoData.X,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,
encounteredSabrFallback:this.encounteredSabrFallback,isSabr:MA(this.provider.videoData)};R||g.LJ("html5PlayerHealthEvent",F);this.N=!0;this.dispose()}};
t5.prototype.oG=function(){this.N||this.send();window.removeEventListener("error",this.S8);window.removeEventListener("unhandledrejection",this.S8);g.G.prototype.oG.call(this)};
var hTh=/\bnet\b/;WnR.prototype.update=function(){if(this.V){var R=this.uX()||0,F=g.kr(this.provider);R>=this.provider.TH.getDuration()-.1&&(this.previouslyEnded=!0);if(R!==this.U||ggN(this,R,F)){var n;if(!(n=R<this.U||R-this.U>F-this.qH+2||ggN(this,R,F))){n=this.provider.TH.getVolume();var V=n!==this.Nq,r=this.provider.TH.isMuted()?1:0;r!==this.UZ?(this.UZ=r,n=!0):(!V||this.J>=0||(this.Nq=n,this.J=F),n=F-this.J,this.J>=0&&n>2?(this.J=-1,n=!0):n=!1)}n&&(q7(this),this.N=R);this.qH=F;this.U=R}}};
WnR.prototype.uX=function(){var R=this.provider.TH.uX();return Bh(this.provider.videoData)?R+this.provider.TH.qC():R};OmN.prototype.send=function(R){var F=this;if(!this.uS){var n=KnW(this),V=g.DI(this.uri,n);this.G.B("vss_through_gel_double")&&Dk_(V);this.lS&&!this.G.B("html5_simplify_pings")?JZe(this,V):I5N(this,R).then(function(r){if(F.HT){r=r||{};r.method="POST";var v=GBk(F);v&&(r.postBody=v)}F.lS&&(r=r||{},r.method="POST",r.postParams={atr:F.attestationResponse});gM9(V,r,{token:F.J1,AY:F.mQ,mdxEnvironment:F.mdxEnvironment},F.G,R,F.PG,F.isFinal&&F.h7||F.Mq||F.N&&F.Ru)});
this.uS=!0}};
OmN.prototype.U=function(R){R===void 0&&(R=NaN);return Number(R.toFixed(3)).toString()};
var T1={},kBj=(T1.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,T1.LIVING_ROOM_APP_MODE_MAIN=1,T1.LIVING_ROOM_APP_MODE_KIDS=2,T1.LIVING_ROOM_APP_MODE_MUSIC=3,T1.LIVING_ROOM_APP_MODE_UNPLUGGED=4,T1.LIVING_ROOM_APP_MODE_GAMING=5,T1),o9={},xkW=(o9.EMBEDDED_PLAYER_MODE_UNKNOWN=0,o9.EMBEDDED_PLAYER_MODE_DEFAULT=1,o9.EMBEDDED_PLAYER_MODE_PFP=2,o9.EMBEDDED_PLAYER_MODE_PFL=3,o9);g.a(cY,g.G);g.X=cY.prototype;
g.X.OM=function(){if(!this.J){this.provider.videoData.I4===16623&&g.mq(Error("Playback for EmbedPage"));var R=LP(this,"playback");this.V=dkW(this);mkj(this.T);R.X=ww(this);this.N>0&&(R.T-=this.N);R.send();if(this.provider.videoData.qY){R=this.provider.G;var F=this.provider.videoData,n={html5:"1",video_id:F.videoId,cpn:F.clientPlaybackNonce,ei:F.eventId,ptk:F.qY,oid:F.LT,ptchn:F.Vi,pltype:F.Hr,content_v:z9(F)};F.kh&&Object.assign(n,{m:F.kh});R=g.DI(R.rK+"ptracking",n);$kk(this,R)}this.provider.videoData.l0||
(PG9(this),bmj(this));this.J=!0;R=this.T;R.U=R.uX();R.qH=g.kr(R.provider);!(R.N===0&&R.U<5)&&R.U-R.N>2&&(R.N=R.U);R.V=!0}};
g.X.onProgress=function(){this.T.update();Egk(this)&&(PG9(this),bmj(this))};
g.X.oG=function(){g.G.prototype.oG.call(this);SQ(this);BjE(this.T)};
g.X.fC=function(){return KnW(LP(this,"playback"))};
g.X.Uq=function(R){var F=LP(this,"engage");F.jQ=R;return ime(F,nZj(this.provider))};FMR.prototype.isEmpty=function(){return this.endTime===this.startTime};XH.prototype.B=function(R){return this.G.B(R)};
XH.prototype.getCurrentTime=function(){return this.TH.getCurrentTime()};
XH.prototype.uX=function(){return this.TH.uX()};
var VzI={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.a(g.A5,g.G);g.X=g.A5.prototype;g.X.OM=function(){this.T&&this.T.OM();this.U&&this.U.OM()};
g.X.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.pm){var R;(R=this.N.get(this.pm))==null||R.onProgress()}else if(this.T)this.T.onProgress()};
g.X.S7=function(R){this.qoe&&this.qoe.S7(R)};
g.X.Pt=i9(25);g.X.d2=i9(31);g.X.Yp=function(R,F){this.qoe&&this.qoe.Yp(R,F)};
g.X.oN=function(){if(this.provider.videoData.enableServerStitchedDai&&this.pm){var R;(R=this.N.get(this.pm))!=null&&q7(R.T)}else this.T&&q7(this.T.T)};
g.X.Tk=function(R,F){this.qoe&&tKV(this.qoe,R,F);if(this.U)this.U.onError(R)};
g.X.h6=function(R,F){switch(R){case "M":var n;(n=this.qoe)==null||n.h6(R,F);break;case "A":var V;(V=this.qoe)==null||V.h6(R)}};
g.X.onPlaybackRateChange=function(R){if(this.qoe)this.qoe.onPlaybackRateChange(R);this.T&&q7(this.T.T)};
g.X.TU=i9(48);g.X.m2=function(R,F,n){this.qoe&&this.qoe.m2(R,F,n)};
g.X.XD=function(R,F,n){this.qoe&&this.qoe.XD(R,F,n)};
g.X.Hv=function(R){var F;(F=this.qoe)==null||F.Hv(R)};
g.X.WV=function(R){var F;(F=this.qoe)==null||F.WV(R)};
g.X.ej=function(R,F,n,V){var r;(r=this.qoe)==null||r.ej(R,F,n,V)};
g.X.fv=function(R){this.qoe&&this.qoe.fv(R)};
g.X.Gf=function(R,F,n){this.qoe&&this.qoe.Gf(R,F,n)};
g.X.EF=i9(19);g.X.Us=function(){if(this.qoe)return this.qoe.Us()};
g.X.fC=function(){if(this.provider.videoData.enableServerStitchedDai&&this.pm){var R,F;return(F=(R=this.N.get(this.pm))==null?void 0:R.fC())!=null?F:{}}return this.T?this.T.fC():{}};
g.X.Po=function(){var R;return(R=this.qoe)==null?void 0:R.Po()};
g.X.V_=function(R,F){var n;(n=this.qoe)==null||n.V_(R,F)};
g.X.Uq=function(R){return this.T?this.T.Uq(R):function(){}};
g.X.getVideoData=function(){return this.provider.videoData};
g.X.resume=function(){this.qoe&&this.qoe.resume()};g.a(g.CP,g.G);g.X=g.CP.prototype;g.X.iL=function(R,F){this.sync();F&&this.T.array.length>=2E3&&this.ZH("captions",1E4);F=this.T;if(R.length>1&&R.length>F.array.length)F.array=F.array.concat(R),F.array.sort(F.T);else{R=g.m(R);for(var n=R.next();!n.done;n=R.next())n=n.value,!F.array.length||F.T(n,F.array[F.array.length-1])>0?F.array.push(n):g.Ax(F.array,n,F.T)}this.N=NaN;this.sync()};
g.X.rG=function(R){R.length>1E4&&g.mq(new g.UR("Over 10k cueRanges removal occurs with a sample: ",R[0]));if(!this.Zo()){var F=new Set(R);this.U=this.U.filter(function(n){return!F.has(n)});
s6N(this.T,F);this.sync()}};
g.X.BN=function(R){if(!this.Zo()){var F=this.n5().find(function(n){return n.id===void 0&&n.namespace===R});
F&&this.rG([F])}};
g.X.ZH=function(R,F){var n=(isNaN(this.N)?A2e(this):this.N)-F;F=this.n5().filter(function(V){return V.namespace===R&&V.end<n});
this.rG(F);return F};
g.X.n5=function(){return this.Zo()?[]:this.T.array};
g.X.reset=function(){this.started=!1;this.J.stop();this.T.array=[];this.U=[];this.sync()};
g.X.Bw=function(R){var F=this.n5().filter(function(n){return n.namespace===R});
this.rG(F);return F};
g.X.CQ=i9(37);g.X.ai=function(R){var F=[],n=a3(this.T,0x7ffffffffffff),V=[];n=g.m(n);for(var r=n.next();!r.done;r=n.next())r=r.value,r.active&&R===r.associatedClipId&&V.push(r);F=F.concat(pfJ(this,V));awI(this,F);F=[];n=[];r=g.m(this.U);for(var v=r.next();!v.done;v=r.next())v=v.value,v.active&&v.associatedClipId===R&&v.start===0x7ffffffffffff&&n.push(v);F=F.concat(XfI(this,n));awI(this,F);return V.length};
g.X.ZP=function(R){var F=a3(this.T,0x7ffffffffffff),n=[];F=g.m(F);for(var V=F.next();!V.done;V=F.next())V=V.value,V.active&&R===V.associatedClipId&&n.push(V);this.rG(n)};
g.X.sync=function(){this.W=!0;if(!this.Z){for(var R=3;this.W&&R;)this.W=!1,this.Z=!0,CBI(this),this.Z=!1,R--;this.TH.getPlayerState().isPlaying()&&(R=LMR(this.T,this.N),!isNaN(R)&&R<0x7ffffffffffff&&(R=(R-this.N)/this.TH.getPlaybackRate(),this.J.start(R)))}};
g.X.isEnded=function(R,F){F=this.TH.Uf()*1E3-F;F=this.TH.F$()&&g.E(R,1)&&F<500;return g.E(R,2)||this.TH.D().B("html5_pseudogapless_shorts")&&F};
g.X.oG=function(){this.U=[];this.T.array=[];g.G.prototype.oG.call(this)};o3.prototype.add=function(R){this.T=(this.T+1)%this.data.length;this.data[this.T]=R};
o3.prototype.forEach=function(R){for(var F=this.T+1;F<this.data.length;F++)R(this.data[F]||0);for(F=0;F<=this.T;F++)R(this.data[F]||0)};
o3.prototype.PH=function(){var R=[];this.forEach(function(F){R.push(F)});
return R};
o3.prototype.clear=function(){for(var R=this.data.length,F=0;F<R;F++)this.data[F]=0;this.U=this.T=this.data.length-1};g.a(Ue,g.fG);Ue.prototype.S_=function(){return this.X};
Ue.prototype.t5=function(){return this.policy.J1&&this.videoData.T?this.videoData.T.jV:Math.max(this.W()-h5(this)*this.T,this.videoData.RC())};g.a(BY,g.G);BY.prototype.pX=function(){var R=this,F=this.TH.LX(),n=this.TH.getPlayerState();if(F&&!n.isError()){var V=F.getCurrentTime(),r=n.state===8&&V>this.T,v=g.E(n,8)&&g.E(n,16),f=this.TH.y6().isBackground()||n.isSuspended();mN(this,this.SQ,v&&!f,r,"qoe.slowseek",function(){},"timeout");
var z=isFinite(this.T);z=v&&z&&dOf(F,this.T);var q=!V||Math.abs(V-this.T)>10,Q=this.G.B("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),c=V===0&&this.U&&[11,10].includes(this.U);mN(this,this.uS,z&&q&&!f&&(!Q||!c),r,"qoe.slowseek",function(){F.seekTo(R.T)},"set_cmt");
q=z&&rl(F.vB(),this.T);var w=this.TH.loader;z=!w||w.D3();var L=function(){F.seekTo(R.T+.001)};
mN(this,this.Mq,q&&z&&!f,r,"qoe.slowseek",L,"jiggle_cmt");z=function(){return R.TH.Yc()};
mN(this,this.Y5,q&&!f,r,"qoe.slowseek",z,"new_elem");var S=K6(n);c=n.isBuffering();var p=F.vB(),C=V4(p,V),y=C>=0&&p.end(C)>V+5;q=S&&c&&y;Q=this.TH.getVideoData();mN(this,this.bS,V<.002&&this.T<.002&&v&&g.ad(this.G)&&g.tg(Q)&&!f,r,"qoe.slowseek",z,"slow_seek_shorts");mN(this,this.UZ,Q.X7()&&v&&!f&&!Q.V,r,"qoe.slowseek",z,"slow_seek_gapless_shorts");mN(this,this.Nq,q&&!f,S&&!c,"qoe.longrebuffer",L,"jiggle_cmt");mN(this,this.J1,q&&!f,S&&!c,"qoe.longrebuffer",z,"new_elem_nnr");if(w){var u=w.getCurrentTime();
v=F.Wo();v=O5W(v,u);v=!w.isSeeking()&&V===v;mN(this,this.KC,S&&c&&v&&!f,S&&!c&&!v,"qoe.longrebuffer",function(){F.seekTo(u)},"seek_to_loader")}v={};
L=V4(p,Math.max(V-3.5,0));var B=L>=0&&V>p.end(L)-1.1,O=L>=0&&L+1<p.length?p.start(L+1)-p.end(L):9999;v.mindex=C;v.disIndex=L;v.isdisc=L>=0&&B&&O<11;v.close2edge=B;v.gapsize=O;v.buflen=p.length;this.U&&(v.seekSour=this.U);mN(this,this.jQ,S&&c&&!f,S&&!c,"qoe.longrebuffer",function(){},"timeout",v);
v=n.isSuspended();v=this.TH.PX()&&!v;mN(this,this.X,v,!v,"qoe.start15s",function(){R.TH.wK("ad")},"ads_preroll_timeout");
v=this.G.experiments.GH("html5_use_playback_rate_in_skip_slow_ad")?this.TH.getPlaybackRate()*1E3:1E3;C=V-this.J<v/1E3/2;B=(L=Q.isAd())&&S&&!c&&C;v=function(){var K=R.TH,M=K.CX.getVideoData();(!M||!K.videoData.isAd()||M.Zh!==K.getVideoData().Zh)&&K.videoData.OY||K.Rr("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+K.videoData.videoId)};
mN(this,this.aG,B,!B,"ad.rebuftimeout",v,"skip_slow_ad");C=L&&c&&rl(F.vB(),V+5)&&C;mN(this,this.mQ,C&&!f,!C,"ad.rebuftimeout",v,"skip_slow_ad_buf");v=n.isOrWillBePlaying()&&g.E(n,64)&&!f;mN(this,this.on,v,r,"qoe.start15s",function(){},"timeout");
w=!!w&&!w.IG&&n.isOrWillBePlaying();mN(this,this.lS,w,r,"qoe.start15s",z,"newElemMse");w=zr(p,0);p=g.E(n,16)||g.E(n,32);w=!f&&n.isOrWillBePlaying()&&c&&!p&&(g.E(n,64)||V===0)&&w>5;mN(this,this.dX,w,S&&!c,"qoe.longrebuffer",function(){R.TH.vX()},"reset_media_source");
mN(this,this.gX,w,S&&!c,"qoe.longrebuffer",z,"reset_media_element");this.J===0&&(this.Z=V);w=c&&this.T===0&&V>1&&V===this.Z;mN(this,this.PG,g.tg(Q)&&w,S&&!c,"qoe.slowseek",function(){F.seekTo(0)},"reseek_after_time_jump");
f=n.isOrWillBePlaying()&&!f;y=this.TH.Uf()-V<6&&!y&&this.TH.F$();mN(this,this.V,Q.X7()&&f&&c&&y,S&&!c,"qoe.longrebuffer",function(){R.TH.Yc(!1,!0)},"handoff_end_long_buffer_reload");
f=this.U===104||this.TH.Pg;n=hu(Q)&&Q.isAd()&&!Q.V&&f&&(c||g.E(n,8)&&g.E(n,16));mN(this,this.h1,n,r,"qoe.start15s",z,"gapless_ad_slow_start");n=hu(Q)&&!Q.V&&f&&q;mN(this,this.k5,n,r,"qoe.longrebuffer",z,"gapless_slow_start");this.J=V;this.W.start()}};
BY.prototype.Tk=function(R,F,n){F=this.fC(F);F.wn=n;F.wdup=this.N[R]?"1":"0";this.TH.Tk(new g.z$(R,F));this.N[R]=!0};
BY.prototype.fC=function(R){R=Object.assign(this.TH.fC(!0),R.fC());this.T&&(R.stt=this.T.toFixed(3));this.TH.getVideoData().isLivePlayback&&(R.ct=this.TH.getCurrentTime().toFixed(3),R.to=this.TH.qC().toFixed(3));delete R.uga;delete R.euri;delete R.referrer;delete R.fexp;delete R.vm;return R};
um.prototype.reset=function(){this.T=this.U=this.N=this.startTimestamp=0;this.J=!1};
um.prototype.test=function(R){if(!this.W||this.U)return!1;if(!R)return this.reset(),!1;R=(0,g.h1)();if(!this.startTimestamp)this.startTimestamp=R,this.N=0;else if(this.N>=this.W)return this.U=R,!0;this.N+=1;return!1};
um.prototype.fC=function(){var R={},F=(0,g.h1)();this.startTimestamp&&(R.wsd=(F-this.startTimestamp).toFixed());this.U&&(R.wtd=(F-this.U).toFixed());this.T&&(R.wssd=(F-this.T).toFixed());return R};g.a(DnV,g.G);g.X=DnV.prototype;g.X.setMediaElement=function(R){(this.mediaElement=R)?(this.mediaElement&&(this.W||this.N||!this.mediaElement.Uu()||this.seekTo(.01,{gW:"seektimeline_setupMediaElement"})),gw(this)):I3(this)};
g.X.getCurrentTime=function(R){R=R===void 0?!1:R;if(Oe(this.TH)){if(this.B("html5_use_centralized_player_time")&&!R&&!isNaN(this.Z))return this.Z;if(!isNaN(this.U))return this.U}else{if(this.B("html5_use_centralized_player_time")&&!R&&!isNaN(this.Z)&&isFinite(this.Z))return this.Z;if(!isNaN(this.U)&&isFinite(this.U))return this.U}return this.mediaElement&&bFf(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.N||0};
g.X.QO=function(){return this.h1};
g.X.uX=function(){return this.getCurrentTime()-this.qC()};
g.X.t5=function(){return this.T?this.T.t5():Infinity};
g.X.isAtLiveHead=function(R){if(!this.T)return!1;R===void 0&&(R=this.getCurrentTime());return HY(this.T,R)};
g.X.S_=function(){return!!this.T&&this.T.S_()};
g.X.seekTo=function(R,F){var n=F===void 0?{}:F;F=n.VH===void 0?!1:n.VH;var V=n.Zy===void 0?0:n.Zy;var r=n.eP===void 0?!1:n.eP;var v=n.Qv===void 0?0:n.Qv;var f=n.gW===void 0?"":n.gW;var z=n.seekSource===void 0?void 0:n.seekSource;var q=n.c8===void 0?!1:n.c8;var Q=n.Ho===void 0?!1:n.Ho;n=n.xe===void 0?!1:n.xe;q&&(R+=this.qC());MA(this.videoData)&&z===29&&(this.h1=void 0);q=R<this.bS&&!!this.loader;var c=MA(this.videoData)&&Q;if(q&&!c&&(this.TH.m2("sdai",{sk2bk:R.toFixed(3),mt:(R-this.timestampOffset).toFixed(3),
lstadj:this.bS.toFixed(3)}),this.bS=NaN,this.timestampOffset-=1E3,(c=this.loader)!=null)){E1f(c,c.timestampOffset-1E3);var w=c.X2,L=new Set;for(y in w.T){var S=w.T[y].index,p=S.lK();p&&!L.has(p)&&(p.startTime+=1E3,p.endTime=p.startTime+p.duration,L.add(p));S.segments.length&&(p=S.segments[S.segments.length-1],S.segments=[],S.segments.push(p))}c.vI&&c.vI.cP();if(c.policy.Tl&&c.policy.U){var C;(C=c.jQ)==null||C.cP()}XW(c.N,0,0,!0);c.Z4=!1}var y=R;(C=MA(this.videoData))&&Q?y=!0:(c=this.B("html5_always_allow_sqless_sync")&&
this.videoData.Zt(),(C||c)&&f==="chunkSelectorSynchronize"?y=!0:(C=!isFinite(y)||(this.T?HY(this.T,y):y>=this.fX())||!g.Zh(this.videoData),C||(y={st:y,mst:this.fX()},this.T&&this.B("html5_high_res_seek_logging")&&(y.ht=this.T.t5(),y.adft=jQ(this.T)),this.TH.m2("seeknotallowed",y)),y=C));if(!y)return this.J&&(this.J=null,EZf(this)),g.KT(this.getCurrentTime());y=.005;Q&&this.B("html5_sabr_seek_no_shift_tolerance")&&(y=0);if(Math.abs(R-this.U)<=y&&this.PG)return this.W;this.B("html5_reset_rate_limiter_on_user_seek")&&
(y=this.loader)!=null&&(y.U.J1.g$=0);this.B("html5_reset_backoff_on_user_seek")&&(y=this.loader)!=null&&(y.U.X=void 0);f&&(y=R,this.G.CC()||this.B("html5_log_seek_reasons"))&&(f={reason:f,tgt:y},this.B("html5_sabr_csdai_seek_log")&&(f.source=z),this.TH.m2("seekreason",f));z&&(this.Nq.U=z);this.PG&&I3(this);this.W||(this.W=new oi);R&&!isFinite(R)&&Yz6(this,!1);(f=n||q)||(f=R,f=!(this.videoData.isLivePlayback&&this.videoData.N&&!this.videoData.N.T&&!(this.mediaElement&&this.mediaElement.Is()>0&&U8(this.mediaElement)>
0)||xG(this.videoData)&&this.RC()===this.fX(!1)?0:isFinite(f)||!xG(this.videoData)));f||(R=KP(this,R,r));R&&!isFinite(R)&&Yz6(this,!1);this.B("html5_use_centralized_player_time")?this.Z=R:this.U=this.N=R;this.dX=v;this.X=0;this.T&&(r=this.T,v=R,BOe(r,v,!1),mnj(r,v));r=this.TH;v=R;f={VH:F,seekSource:z};r.BT.N=v;n=r.yV;n.mediaTime=v;n.T=!0;f.VH&&r.vM(f);f=v>r.videoData.endSeconds&&v>r.videoData.limitedPlaybackDurationInSeconds;r.OJ&&f&&isFinite(v)&&grJ(r);v<r.fX()-.01&&(f=gl(r.playerState,2),g.E(f,
8)&&(f=gl(f,4)),r.md(f));r.publish("SEEK_TO",v);this.Y5>0&&R<this.Y5&&(this.Y5=0,this.TH.Yc());this.W&&(F?V&&this.SQ.start(V):KMR(this,{Ho:Q,seekSource:z}));(F=this.TH.OJ)&&R>F.start&&grJ(this.TH);return this.W};
g.X.fX=function(R){if(!this.videoData.isLivePlayback)return this.TH.videoData.fX();var F;return CK(this.videoData)&&((F=this.mediaElement)==null?0:F.isPaused())&&this.videoData.T?(R=this.getCurrentTime(),V1E(this.wD(R)*1E3)+R):this.B("html5_sabr_parse_live_metadata_playback_boundaries")&&MA(this.videoData)&&this.videoData.T?R?this.videoData.T.jQ||0:this.videoData.T.jV||0:xG(this.videoData)&&this.videoData.Xb&&this.videoData.T?this.videoData.T.fX()+this.timestampOffset:this.videoData.N&&this.videoData.N.T?
!R&&this.T?this.T.t5():this.TH.videoData.fX()+this.timestampOffset:this.mediaElement?bx()?V1E(this.mediaElement.Bf().getTime()):U8(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.X.RC=function(){if(this.B("html5_sabr_parse_live_metadata_playback_boundaries")&&MA(this.videoData)){var R;return((R=this.videoData.T)==null?void 0:R.dl)||0}R=this.videoData?this.videoData.RC()+this.timestampOffset:this.timestampOffset;if(CK(this.videoData)&&this.videoData.T){var F,n=Number((F=this.videoData.progressBarStartPosition)==null?void 0:F.utcTimeMillis)/1E3;if(!isNaN(n)&&(F=this.Jp(n),!isNaN(F)))return Math.max(R,F)}return R};
g.X.eZ=function(){this.W||this.seekTo(this.N,{gW:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})};
g.X.G7=function(){return this.PG&&!isFinite(this.U)};
g.X.oG=function(){J2R(this,null);this.Nq.dispose();g.G.prototype.oG.call(this)};
g.X.fC=function(){var R={};this.loader&&Object.assign(R,this.loader.fC());this.mediaElement&&Object.assign(R,this.mediaElement.fC());return R};
g.X.Ui=function(R){this.timestampOffset=R};
g.X.getStreamTimeOffset=function(){return xG(this.videoData)?0:this.videoData.T?this.videoData.T.getStreamTimeOffset():0};
g.X.qC=function(){return this.timestampOffset};
g.X.wD=function(R){return this.videoData&&this.videoData.T?this.videoData.T.wD(R-this.timestampOffset):NaN};
g.X.Ki=function(){if(!this.mediaElement)return 0;if(eZ(this.videoData)){var R=this.mediaElement,F=R.vB();R=(tz(F)&&R.getDuration()?F.end(F.length-1):0)+this.timestampOffset-this.RC();F=this.fX()-this.RC();return Math.max(0,Math.min(1,R/F))}return this.mediaElement.Ki()};
g.X.Zu=function(R){this.V&&(this.V.T=R)};
g.X.xO=function(R,F,n){this.TH.m2("requestUtcSeek",{time:R});MA(this.videoData)&&(this.h1=R);var V;(V=this.loader)==null||V.xO(R,n);F&&(this.lS=F)};
g.X.EX=function(R){MA(this.videoData)&&(this.h1=void 0);this.lS?(this.TH.m2("utcSeekingFallback",{source:"streamTime",timeSeconds:this.lS}),this.TH.seekTo(this.lS,{gW:"utcSeekingFallback_streamTime"}),this.lS=0):(R=this.Jp(R),isNaN(R)||(this.TH.m2("utcSeekingFallback",{source:"estimate",timeSeconds:R}),this.TH.seekTo(R,{gW:"utcSeekingFallback_estimate"})))};
g.X.jp=function(){this.lS=0};
g.X.fY=function(R){this.Y5=R};
g.X.Jp=function(R){var F=this.getCurrentTime();if(isNaN(F))return NaN;var n=this.wD(F);return isNaN(n)?NaN:R-(n-F)};
g.X.B=function(R){return this.G&&this.G.B(R)};g.a(DM,g.G);DM.prototype.start=function(){this.U.start()};
DM.prototype.stop=function(){this.U.stop()};
DM.prototype.clear=function(){for(var R=g.m(this.T.values()),F=R.next();!F.done;F=R.next())F.value.clear()};
DM.prototype.sample=function(){for(var R=g.m(this.N),F=R.next();!F.done;F=R.next()){var n=g.m(F.value);F=n.next().value;n=n.next().value;this.T.has(F)||this.T.set(F,new Vbj(Wr5.has(F)));this.T.get(F).update(n())}this.U.start()};
var Wr5=new Set(["networkactivity"]);Vbj.prototype.update=function(R){this.U?(this.buffer.add(R-this.T||0),this.T=R):this.buffer.add(R)};
Vbj.prototype.clear=function(){this.buffer.clear();this.T=0};k5.prototype.rZ=function(){return this.started};
k5.prototype.start=function(){this.started=!0};
k5.prototype.reset=function(){this.finished=this.started=!1};var qpJ=!1;g.a(g.dw,g.fG);g.X=g.dw.prototype;g.X.oG=function(){g.ok(this.Rb);MhJ(this.QG);this.visibility.unsubscribe("visibilitystatechange",this.QG);vZV(this.Dt);g.Cv(this.Dt);$5(this);g.M1.iq(this.qO);this.AD();this.J7=null;g.Cv(this.videoData);g.Cv(this.V5);g.Cv(this.oE);g.Cv(this.jd);g.TW(this.TW5);this.OJ=null;g.fG.prototype.oG.call(this)};
g.X.Gf=function(R,F,n,V,r){if(this.G.B("html5_log_ad_playback_docid")){var v=this.Dt;if(v.qoe){v=v.qoe;var f=this.G.Nq||"yt";g.Kh(v,g.kr(v.provider),"ad_playback",[R,F,n,r,f])}}else this.Dt.Gf(R,F,n);this.B("html5_log_media_perf_info")&&this.m2("adloudness",{ld:V.toFixed(3),cpn:R})};
g.X.MU=function(){var R;return(R=this.loader)==null?void 0:R.MU()};
g.X.n3=function(){var R;return(R=this.loader)==null?void 0:R.n3()};
g.X.nQ=function(){var R;return(R=this.loader)==null?void 0:R.nQ()};
g.X.RP=function(){var R;return(R=this.loader)==null?void 0:R.RP()};
g.X.iX=function(){return this.videoData.iX()};
g.X.K5=function(){return this.B("html5_not_reset_media_source")&&this.videoData.isLivePlayback||this.B("html5_not_reset_media_source_non_drm_vod")&&!this.videoData.isLivePlayback&&!this.videoData.iX()};
g.X.zj=function(){this.videoData.X&&(this.videoData.o8=this.videoData.o8||this.CX.rX().MU(),this.videoData.w4=this.videoData.w4||this.CX.rX().n3());if(M2I(this.videoData)||!Ag(this.videoData)){var R=this.videoData.errorDetail;this.Rr(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),R,R,this.videoData.kK||void 0)}this.B("html5_generate_content_po_token")&&this.Wq();this.Y_()};
g.X.getVideoData=function(){return this.videoData};
g.X.D=function(){return this.G};
g.X.SZ=function(){return this.TY.SZ(this.J7)};
g.X.y6=function(){return this.visibility};
g.X.Zw=function(){return this.mediaElement&&this.mediaElement.Ik()?this.mediaElement.Fs():null};
g.X.LX=function(){return this.mediaElement};
g.X.yT=function(){if(this.videoData.errorCode)return!1;this.D().Z&&this.D().houseBrandUserStatus&&this.m2("hbut",{status:this.D().houseBrandUserStatus},!0);if(this.videoData.XP())return!0;this.Rr("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.X.mx=function(R){(R=R===void 0?!1:R)||r29(this.Dt);this.S0=R;!this.yT()||this.Vu.rZ()?UCW(this)&&this.Vu.rZ()&&!this.Vu.finished&&!this.S0&&this.XM():(this.Vu.start(),R=this.Dt,g.kr(R.provider),R.qoe&&v1I(R.qoe),this.XM())};
g.X.XM=function(){if(this.videoData.isLoaded()){var R=this.V5;g.Vn(R.Qz.experiments,"html5_player_min_build_cl")>0&&g.Vn(R.Qz.experiments,"html5_player_min_build_cl")>856451506&&vgR(R,"oldplayer");Wdv(this)}else this.videoData.Yy||this.videoData.hD?this.S0&&UCW(this)||(this.videoData.Yy?hck(this.videoData):(R=this.Dt,R.qoe&&(R=R.qoe,JK(R,"protected"),R.provider.videoData.W?R.u1():R.provider.videoData.subscribe("dataloaded",R.u1,R)),oEv(this.videoData))):!this.videoData.loading&&this.h2&&jOv(this)};
g.X.u6=function(R){this.vI=R;this.loader&&(G6N(this.loader,R),this.m2("sdai",{sdsstm:1}))};
g.X.WY=function(R,F,n,V){var r;(r=this.loader)==null||r.WY(R,F,n,V)};
g.X.Ce=function(R){var F;(F=this.loader)==null||F.Ce(R)};
g.X.B5=function(){var R;return((R=this.loader)==null?void 0:R.q$())||null};
g.X.isFullscreen=function(){return this.visibility.isFullscreen()};
g.X.isBackground=function(){return this.visibility.isBackground()};
g.X.hp=function(){var R=this;lm(this).then(function(){return N7(R)});
this.playerState.isOrWillBePlaying()&&this.playVideo()};
g.X.gA=function(){this.mediaElement&&this.mediaElement.activate();this.mx();this.yT()&&!g.E(this.playerState,128)&&(this.LD.rZ()||(this.LD.start(),this.videoData.H_?this.md(mZ(this.playerState,4)):this.md(mZ(mZ(this.playerState,8),1))),HhR(this))};
g.X.oM=function(){return this.Vu.finished};
g.X.sendAbandonmentPing=function(){g.E(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.qR(!0),vZV(this.Dt),g.Cv(this.Dt),g.M1.iq(this.qO))};
g.X.q0=function(R,F,n){R=R===void 0?!0:R;(F===void 0||F)&&this.mediaElement&&this.mediaElement.pause();R&&n&&this.loader&&xG(this.videoData)&&this.loader.ej(n);this.md(R?new g.Wz(14):new g.Wz)};
g.X.Qw=function(){this.Dt.oN()};
g.X.Rr=function(R,F,n,V,r,v){var f,z;g.Wo(YmD,n)?f=n:n?z=n:f="GENERIC_WITHOUT_LINK";V=(V||"")+(";a6s."+tT());if(R==="auth"||R==="drm.auth"||R==="heartbeat.stop")n&&(V+=";r."+n.replaceAll(" ","_")),v&&(V+="sr."+v.replaceAll(" ","_"));F={errorCode:R,errorDetail:r,errorMessage:z||g.iK[f]||"",KL:f,kK:v||"",Aw:V,mP:F,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=R;Ee(this,"dataloaderror");this.md(Bz(this.playerState,128,F));g.M1.iq(this.qO);$5(this);this.Md()};
g.X.wK=function(R){this.rY=this.rY.filter(function(F){return R!==F});
this.LD.rZ()&&HhR(this)};
g.X.xb=function(){var R;(R=!!this.rY.length)||(R=this.a9.T.array[0],R=!!R&&R.start<=-0x8000000000000);return R};
g.X.S_=function(){return this.BT.S_()};
g.X.isPlaying=function(){return this.playerState.isPlaying()};
g.X.dZ=function(){return this.playerState.dZ()&&this.videoData.H_};
g.X.getPlayerState=function(){return this.playerState};
g.X.BM=function(R){var F;(F=this.loader)==null||F.BM(R)};
g.X.KG=function(R){var F;(F=this.loader)==null||F.KG(R)};
g.X.getPlayerType=function(){return this.playerType};
g.X.getPreferredQuality=function(){if(this.J7){var R=this.J7;R=R.videoData.Dl.compose(R.videoData.dR);R=$2(R)}else R="auto";return R};
g.X.Xk=i9(12);g.X.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.X.setMediaElement=function(R){if(this.mediaElement&&R.Fs()===this.mediaElement.Fs()&&(R.isView()||this.mediaElement.isView())){if(R.isView()||!this.mediaElement.isView())this.pR(),this.mediaElement=R,this.mediaElement.vG=this,$Cv(this),this.BT.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.AD();if(!this.playerState.isError()){var F=gl(this.playerState,512);g.E(F,8)&&!g.E(F,2)&&(F=mZ(F,1));R.isView()&&(F=gl(F,64));this.md(F)}this.mediaElement=R;this.mediaElement.vG=this;!g.ad(this.G)&&
this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);$Cv(this);this.BT.setMediaElement(this.mediaElement);this.B("html5_prewarm_media_source")&&!this.V5.Ov()&&kFR(this.mediaElement)}};
g.X.AD=function(R,F,n){R=R===void 0?!1:R;F=F===void 0?!1:F;n=n===void 0?!1:n;if(this.mediaElement){var V=this.getCurrentTime();V>0&&(this.BT.N=V);this.BT.setMediaElement(null);!R&&this.K5()?MbE(this):this.Tv(n);this.loader&&(jb(this.loader),eQ(this,F));this.kH.stop();if(this.mediaElement&&(!this.LD.rZ()&&!this.PX()||this.playerState.isError()||g.E(this.playerState,2)||this.md(mZ(this.playerState,512)),this.mediaElement)){this.pR();if(R||!this.mediaElement.isView())this.Qc.kp("mesv_s"),this.mediaElement.stopVideo(),
RG(this);this.mediaElement=this.mediaElement.vG=null}}};
g.X.playVideo=function(R,F){R=R===void 0?!1:R;F=F===void 0?!1:F;var n=this,V,r,v,f,z,q;return g.Y(function(Q){if(Q.T==1){var c=window.google_image_requests;c&&c.length>10&&(window.google_image_requests=c.slice(-10));if(g.E(n.playerState,128))return Q.return();if(n.V5.RN())return n.publish("signatureexpired"),Q.return();n.mediaElement&&r29(n.Dt);n.gA();(g.E(n.playerState,64)||R)&&n.md(mZ(n.playerState,8));return n.LD.finished&&n.mediaElement?n.J7||!n.fh?Q.wX(2):g.k(Q,n.fh,3):Q.return()}if(Q.T!=2&&
g.E(n.playerState,128))return Q.return();if(!n.videoData.N)return n.videoData.isLivePlayback&&!g.Ic(n.G.W,!0)?(V="html5.unsupportedlive",r=2):(V=n.videoData.iX()?"fmt.unplayable":"fmt.noneavailable",r=1),g.mq(Error("selectableFormats")),n.Rr(V,r,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),Q.return();if(n.oa()&&n.videoData.N.T)return Q.return(lm(n));if(Oe(n))c=n.BT,Io(c.videoData)&&!c.isAtLiveHead(c.getCurrentTime())&&c.S_()&&c.TH.seekTo(Infinity,{gW:"seektimeline_peggedToLive",
seekSource:34});else if(Io(n.videoData)&&(v=n.getCurrentTime()<n.RC()-15,f=g.Zh(n.videoData)&&n.playerState.isPaused(),z=g.E(n.playerState,1024),c=n.BT,c.videoData.Zt()&&pK(c.videoData)||z||!v&&!f||(f?n.seekTo(Infinity,{gW:"videoplayer_unpauseLiveOnly",seekSource:102}):n.seekTo(n.RC(),{gW:"videoplayer_outOfWindow",seekSource:102})),!n.isAtLiveHead(void 0,!0)&&n.S_()&&(q={gW:"videoplayer_peggedToLive",seekSource:34},n.seekTo(Infinity,q)),g.E(n.playerState,256)&&n.videoData.V&&n.BT.G7()))return n.md(O8(n.playerState,
8,4)),Q.return();g.E(n.playerState,4)&&g.E(n.playerState,16)&&n.md(O8(n.playerState,9,4));if(N7(n,F))return FN9(n),Q.return();R$J(n);g.rq(Q)})};
g.X.vX=function(R){R&&this.Tk(new g.z$("qoe.restart",R));this.md(mZ(this.playerState,2048));this.Tv();R=this.videoData.T&&Fx(this.videoData.T);var F=this.mediaElement&&this.mediaElement.isView();R||F?(this.loader&&jLf(this.loader),this.Yc()):(N7(this),this.playerState.isOrWillBePlaying()&&this.playVideo());this.playerState.isOrWillBePlaying()||this.md(gl(this.playerState,2048))};
g.X.y3=function(){if(!this.J7)return[];var R=qCe(this.TY,this.J7,this.F0());return this.J7.T.y3(R)};
g.X.yn=function(){if(!this.J7)return[];var R=qCe(this.TY,this.J7,this.F0());return this.J7.T.yn(R)};
g.X.KJ=function(){var R,F;return this.TY.KJ(!!((R=this.J7)==null?0:(F=R.T)==null?0:F.T))};
g.X.ZZ=function(){return this.J7?this.TY.ZZ(this.J7):LM};
g.X.F0=function(){var R=this.uL?this.uL.F0():Hh(this.videoData)&&this.videoData.T&&Fx(this.videoData.T)?this.videoData.Ab?LM:O0v:LM;this.AR&&(R=R.compose(zTz));return R};
g.X.LJ=function(){return this.J7?qCe(this.TY,this.J7,this.F0()):LM};
g.X.tE=function(){var R=this.B_(),F=this.CX.aC().videoId;return this.CX.T2.tE(R)||this.CX.T2.tE(F)};
g.X.h6=function(R){if(R.T===LM.T)this.Dt.h6("A");else{var F,n,V,r,v=(F=this.J7)==null?void 0:(n=F.T)==null?void 0:(V=n.yn(R))==null?void 0:(r=V.map(function(q){return q.video}))==null?void 0:r.sort(function(q,Q){var c,w;
return((c=Q.U)!=null?c:0)-((w=q.U)!=null?w:0)}),f,z;
this.Dt.h6("M",(z=v==null?void 0:(f=v[0])==null?void 0:f.U)!=null?z:H59(R.T)?R.T:0)}};
g.X.xJ=function(R,F,n){this.h6(R);this.videoData.Dl=R;if(this.J7&&F){F=this.TY;var V=this.J7;if(V.T.T){var r=g.Vn(F.G.experiments,"html5_max_quality_sel_upgrade"),v=r?R.T:g.g8[$2(R)],f=V.T.videoInfos[0].video.qualityOrdinal,z=f!==0&&R.T===f;f=OT()>f;if(!z||!f){r&&z&&(v=Math.max(v,r));var q;r=cZI(F,(q=V.T)==null?void 0:q.videoInfos);q=F.TH.getPlaybackRate();q>1&&r&&(q=IDj(F.G.W,V.T.videoInfos,q),R.T!==0&&q<R.T&&F.TH.setPlaybackRate(1));var Q,c;R=((Q=V.videoData.U)==null?void 0:(c=Q.video)==null?void 0:
c.qualityOrdinal)||0;g.i6("yt-player-quality",{quality:v,previousQuality:R},31104E3);F.AJ.policy.J=OT()>=480;if(F.B("html5_perf_cap_override_sticky")){Q=F.N;F=F.B("html5_perserve_av1_perf_cap");F=F===void 0?!1:F;if(F===void 0?0:F){c=KQ();R=g.m(Object.keys(c));for(v=R.next();!v.done;v=R.next())v=v.value,v.indexOf("1")!==0&&delete c[v];g.i6("yt-player-performance-cap",c,2592E3)}else g.kh("yt-player-performance-cap");iR_(F);if(F){F=g.m(cp.keys());for(c=F.next();!c.done;c=F.next())c=c.value,c.startsWith("1")||
cp.delete(c);F=g.m(fP.values());for(c=F.next();!c.done;c=F.next())c=c.value,c.startsWith("1")||fP.delete(c);F=g.m(Q.keys());for(c=F.next();!c.done;c=F.next())c=c.value,c.startsWith("1")||Q.delete(c)}else cp.clear(),fP.clear(),Q.clear()}}}}this.loader&&(F=this.loader,n=n||"",F.policy.T?UC(F.W.T,n):UC(F.T.W,n));this.Z1()};
g.X.getUserPlaybackQualityPreference=function(){return this.videoData.N&&!this.videoData.N.T?$2(this.videoData.Dl):ET[OT()]};
g.X.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.X.setUserAudio51Preference=function(R,F){this.getUserAudio51Preference()!==R&&(this.m2("toggle51",{pref:R}),g.i6("yt-player-audio51",R,F?31536E3:2592E3),this.hp())};
g.X.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()};
g.X.setProximaLatencyPreference=function(R){var F=this.getProximaLatencyPreference();this.m2("proxima",{pref:R});g.i6("yt-player-proxima-pref",R,31536E3);F!==R&&(R=this.BT,R.k5=!0,R.TH.seekTo(Infinity,{gW:"seektimeline_proximaSeekToHead",seekSource:34}))};
g.X.getProximaLatencyPreference=function(){var R;return(R=I4())!=null?R:0};
g.X.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible};
g.X.Wq=function(){this.videoData.videoId?this.CX.Wq(this.videoData):this.m2("povid",{})};
g.X.Y_=function(){this.videoData.videoId?this.CX.Y_(this.videoData):this.m2("piavid",{})};
g.X.Z1=function(){if(!this.Zo()&&!g.E(this.playerState,128)&&this.videoData.N){if(this.videoData.N.T)J5(this);else{var R=ZM(this),F=this.videoData;a:{var n=this.videoData.k5;if(R.T){for(var V=g.m(n),r=V.next();!r.done;r=V.next()){r=r.value;var v=r.getInfo(),f=g.g8[v.video.quality];if((!R.N||v.video.quality!=="auto")&&f<=R.T){n=r;break a}}n=n[n.length-1]}else n=n[0]}F.PG=n;Ohe(this,R.reason,ZhW(this,this.videoData.PG))}if(this.B("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.BT.UZ=
!1,this.playVideo()}};
g.X.QY=function(R,F){if(this.Zo()||g.E(this.playerState,128))return!1;var n,V=!((n=this.videoData.N)==null||!n.T);n=V&&F?this.getCurrentTime()-this.qC():NaN;if(R.z9&&R.z9.id){var r=this.Dt;if(r.qoe){r=r.qoe;var v=[R.z9.id,isNaN(n)?"m":"t"];g.Kh(r,g.kr(r.provider),"afi",v)}}if(V)return F&&(V=Gh6(this.BT),this.m2("aswh",{id:R.id,xtags:R.xtags,bh:V.toFixed(3)})),this.loader.setAudioTrack(R,n,F),!0;if(KdN(this)){a:{F=this.mediaElement.audioTracks();V=!1;for(n=0;n<F.length;++n)if(r=F[n],(ihJ[r.label]||
r.label)===R.z9.getName()){if(r.enabled){F=!1;break a}V=r.enabled=!0}else r.enabled&&(r.enabled=!1);F=V?!0:void 0}F&&this.m2("hlsaudio",{id:R.id})}else{a:if(F=this.videoData,F.J&&!$Q(F.J)||R===F.iI||!F.k5||F.k5.length<=0)F=!1;else{V=g.m(F.k5);for(n=V.next();!n.done;n=V.next()){n=n.value;if(!(n instanceof gg)){F=!1;break a}r=R.z9.getId();n.U&&(OfW(n.U,r),n.jn=null)}F.iI=R;F=!0}F&&N7(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.m2("hlsaudio",{id:R.id}))}return!0};
g.X.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.X.getAudioTrack=function(){if(KdN(this)){var R=xC9(this);if(R)return R}return this.videoData.getAudioTrack()};
g.X.Zr=function(){return this.videoData.J};
g.X.a8=function(R){return this.Oo?this.Oo.a8(R):1};
g.X.y7=function(){this.Oo&&this.Oo.y7()};
g.X.jj=function(){if(this.videoData.B("html5_trigger_loader_when_idle_network")&&!this.videoData.Zt()&&MA(this.videoData)){var R;(R=this.loader)!=null&&R.pX()}};
g.X.Tm=function(){if(hu(this.videoData)&&this.videoData.B("html5_gapless_append_early")){var R;(R=this.loader)!=null&&R.pX()}};
g.X.onPlayerRequestSent=function(R){this.CX.onPlayerRequestSent(R)};
g.X.Aj=function(R){R=R===void 0?!1:R;if(this.loader){var F=this.loader,n=F.Aj;var V=this.videoData;V=V.B("html5_ssdai_use_post_for_media")&&V.enableServerStitchedDai?!1:xG(V)&&V.OY&&!V.isAd();n.call(F,V,R)}};
g.X.Tv=function(R){R=R===void 0?!1:R;this.IG&&(xOv(this.IG),this.Aj(R),this.IG.dispose(),this.IG=null)};
g.X.Hy=function(){return this.IG};
g.X.WM=function(R,F,n,V){function r(f){try{var z=F,q=n;z=z===void 0?!1:z;q=q===void 0?!1:q;if(v.IG&&(!f||v.IG===f)){var Q=v.getDuration();!Q&&xG(v.videoData)&&(Q=25200,v.B("html5_use_centralized_player_time")&&(Q=46800));v.IG.isView?(f=Q,f>v.IG.getDuration()&&Erv(v,f)):Erv(v,Q);var c=v.loader,w=v.IG;z=z===void 0?!1:z;q=q===void 0?!1:q;c.policy.Y5&&(c.policy.gX&&c.m2("loader",{setsmb:0}),c.L4(),c.policy.Y5=!1);HiR(c,q);if(!ai(w)){var L=ol(c.videoTrack),S=ol(c.audioTrack),p=(L?L.info.A1:c.videoTrack.A1).info,
C=(S?S.info.A1:c.audioTrack.A1).info,y=c.policy.dG,u=p.mimeType+(y===void 0?"":y),B=C.mimeType,O=p.x5,K=C.x5,M;w.Nq=(M=w.IG)==null?void 0:M.addSourceBuffer(B);var J;w.J1=u.split(";")[0]==="fakesb"?void 0:(J=w.IG)==null?void 0:J.addSourceBuffer(u);w.w2&&(w.w2.webkitSourceAddId("0",B),w.w2.webkitSourceAddId("1",u));var b=new wl(w.Nq,w.w2,"0",kQ(B),K,!1),RJ=new wl(w.J1,w.w2,"1",kQ(u),O,!0);DO6(w,b,RJ)}L=z;S=q;L=L===void 0?!1:L;S=S===void 0?!1:S;Vc(c.videoTrack,w.U||null,S);Vc(c.audioTrack,w.T||null,
S);c.IG=w;c.IG.J=!0;L||c.resume();w.T.WA(c.dX,c);w.U.WA(c.dX,c);try{c.pX()}catch(Fj){g.uX(Fj)}v.publish("mediasourceattached")}}catch(Fj){g.mq(Fj),v.handleError(new g.z$("fmt.unplayable",{msi:"1",ename:Fj&&typeof Fj==="object"&&"name"in Fj?String(Fj.name):void 0,trg:"setmediasrc"},1))}}
var v=this;F=F===void 0?!1:F;n=n===void 0?!1:n;Nx9(this,V===void 0?!1:V);this.IG=R;this.K5()&&C6(this.IG)==="open"?r(this.IG):KzJ(this.IG,r)};
g.X.Ws=function(R){this.hP.set(R.initData,R);this.uL&&(this.uL.Ws(R),this.B("html5_eme_loader_sync")||this.hP.remove(R.initData))};
g.X.NQ=function(R){this.videoData.d4=g.M4("auto",R,!1,"u");J5(this)};
g.X.Zu=function(R){var F=R.reason,n=R.T.info,V=R.source,r=R.token,v=this.Dt,f=this.videoData;if(n!==f.J){var z=!f.J;f.J=n;var q=F==="m"||F==="t";q||(F=z?"i":"a");this.G.experiments.GH("html5_refactor_sabr_audio_format_selection_logging")?this.Uv=new zrj(n,F,"",V,r):(F=new zrj(n,F,"",V,r),v.qoe&&(v=v.qoe,n=g.kr(v.provider),LSN(v,n,F)));this.publish("internalaudioformatchange",f,!z&&q)}this.y7();this.BT.Zu(R.T.index)};
g.X.t6=function(R){this.publish("localmediachange",R)};
g.X.HX=function(R){R=R===void 0?{}:R;var F;(F=this.loader)==null||F.HX(this.G,ut(this.videoData),R)};
g.X.RN=function(){return this.V5.RN()};
g.X.l6=function(R){this.Tk(new g.z$("staleconfig",{reason:R}))};
g.X.handleError=function(R){this.V5.handleError(R)};
g.X.Ov=function(){return this.V5.Ov()};
g.X.EX=function(R){this.BT.EX(R)};
g.X.Yc=function(R,F){R=R===void 0?!1:R;F=F===void 0?!1:F;var n=this,V,r,v;return g.Y(function(f){if(f.T==1){n.loader&&n.loader.nE();n.loader&&n.loader.Zo()&&$5(n);if(n.B("html5_enable_vp9_fairplay")&&n.iX()&&(V=n.videoData.T)!=null)for(var z in V.T)V.T.hasOwnProperty(z)&&(V.T[z].T=null,V.T[z].N=!1);n.md(mZ(n.playerState,2048));n.publish("newelementrequired");return R?g.k(f,lm(n),2):f.wX(2)}n.videoData.Zt()&&((r=n.loader)==null?0:r.lS)&&!Oe(n)&&((v=n.isAtLiveHead())&&Io(n.videoData)?n.seekTo(Infinity,
{gW:"videoPlayer_getNewElement"}):n.videoData.Kl&&n.loader&&(z=n.loader,z.X2.Zt&&(z.X2.Kl||z.X2.X||z.X2.isPremiere?(z.seek(0,{gW:"loader_resetSqless"}),z.videoTrack.Z=!0,z.audioTrack.Z=!0,z.videoTrack.J=!0,z.audioTrack.J=!0):zp(z.X2)&&iB(z))));F&&n.seekTo(0,{seekSource:105});g.E(n.playerState,8)&&n.playVideo();g.rq(f)})};
g.X.Z3=function(R){this.m2("hgte",{ne:+R});this.videoData.X=!1;R&&this.Yc();this.loader&&jLf(this.loader)};
g.X.xW=function(R){this.m2("newelem",{r:R});this.Yc()};
g.X.pauseVideo=function(R){R=R===void 0?!1:R;if((g.E(this.playerState,64)||g.E(this.playerState,2))&&!R)if(g.E(this.playerState,8))this.md(O8(this.playerState,4,8));else if(this.dZ())N7(this);else return;g.E(this.playerState,128)||(R?this.md(mZ(this.playerState,256)):this.md(O8(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.Zh(this.videoData)&&this.loader&&eQ(this,!1)};
g.X.stopVideo=function(){this.pauseVideo();this.loader&&(eQ(this,!1),this.loader.L4())};
g.X.Md=function(R,F){R=R===void 0?!1:R;F=F===void 0?!1:F;if(this.K5()&&F){var n;(n=this.mediaElement)==null||n.Md()}else{var V;(V=this.mediaElement)==null||V.stopVideo()}RG(this);$5(this);g.E(this.playerState,128)||(R?this.md(gl(gl(mZ(this.playerState,4),8),16)):this.md(Bz(this.playerState)));this.videoData.videoId&&this.G.bS.remove(this.videoData.videoId)};
g.X.seekTo=function(R,F){F=F===void 0?{}:F;g.E(this.playerState,2)&&N7(this);F.D0X&&this.md(mZ(this.playerState,2048));if((F.seekSource===58||F.seekSource===60)&&this.B("html5_update_vss_during_gapless_seeking")){var n=this.Dt;n.T&&(n=n.T,F.seekSource===58?n.T.update():n.J&&(SQ(n),pP(n).send(),n.U=NaN))}this.BT.seekTo(R,F);this.a9.sync()};
g.X.vM=function(R){this.Qc.J.U=(0,g.h1)();g.E(this.playerState,32)||(this.md(mZ(this.playerState,32,R==null?void 0:R.seekSource)),g.E(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.M5()};
g.X.bF=function(R){R=R==null?void 0:R.seekSource;g.E(this.playerState,32)?(this.md(O8(this.playerState,16,32,R)),this.publish("endseeking")):g.E(this.playerState,2)||this.md(mZ(this.playerState,16,R));R=this.Qc.J;var F=this.videoData,n=this.playerState.isPaused();if(F.clientPlaybackNonce&&!isNaN(R.T)){if(Math.random()<.01){n=n?"pbp":"pbs";var V={startTime:R.T};F.Z&&(V.cttAuthInfo={token:F.Z,videoId:F.videoId});mc("seek",V);g.B8({clientPlaybackNonce:F.clientPlaybackNonce},"seek");isNaN(R.U)||uj("pl_ss",
R.U,"seek");uj(n,(0,g.h1)(),"seek")}R.reset()}};
g.X.Lh=function(R){this.bF(R)};
g.X.aO=function(){this.publish("SEEK_COMPLETE")};
g.X.MO=function(R){var F=this.CX,n=this.videoData.clientPlaybackNonce,V=this.playerType;if(R.scope===4){var r=R.type;if(r){var v=F.UN(),f=v.getVideoData().clientPlaybackNonce;V===1&&(f=n);if(V=FDk(F,f)){if(n=V.getVideoData())R.writePolicy===2&&n.sabrContextUpdates.has(r)||(R.sendByDefault&&n.bS.add(r),n.sabrContextUpdates.set(r,R)),F.B("html5_enable_t1_enf_on_sabr")&&(R=r===5,r=YD_(n.playerResponse),R?(R=r?1:0,qO(R,"m.p_",{}),ZJ("MBSTAT",R)):R=1,R===0&&F.eQ.HG("onAbnormalityDetected"))}else v.m2("scuset",
{ncpf:"1",ccpn:f,crcpn:n})}else g.mq(Error("b/380308491: contextUpdateType is undefined"))}};
g.X.hW=function(){if(this.playerType===2)return this.CX.hW("")};
g.X.getCurrentTime=function(R){return this.BT.getCurrentTime(R===void 0?!1:R)};
g.X.QO=function(){return this.BT.QO()};
g.X.uX=function(){return this.BT.uX()};
g.X.Gg=function(){return this.uX()};
g.X.t5=function(){return this.BT.t5()};
g.X.getPlaylistSequenceForTime=function(R){return this.videoData.getPlaylistSequenceForTime(R-this.qC())};
g.X.LW=function(){var R=NaN;this.mediaElement&&(R=this.mediaElement.LW());return R>=0?R:this.getCurrentTime()};
g.X.wD=function(){var R;return((R=this.videoData.T)==null?0:R.wD)?this.videoData.T.wD(this.getCurrentTime()-this.qC()):this.mediaElement&&(R=this.mediaElement.Bf())&&(R=R.getTime(),!isNaN(R))?R/1E3+this.getCurrentTime():NaN};
g.X.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.qC():this.fX()?this.fX():0};
g.X.lj=function(){var R=new qzj;if(this.loader){var F=this.AJ,n=this.G.CC();n=n===void 0?!1:n;R.A_=F.jQ;R.EK=F.dX;R.bandwidthEstimate=tf(F);if(n){n=(F.V.Cm()*1E3).toFixed();var V=(F.PG.Cm()*1E3).toFixed(),r=v9(F).toFixed(2),v=((F.X.Cm()||0)*1E9).toFixed(2),f=F.N.Cm().toFixed(0),z=F.Mq.Cm().toFixed(0),q=F.UZ.percentile(.5).toFixed(2),Q=F.UZ.percentile(.92).toFixed(2),c=F.UZ.percentile(.96).toFixed(2),w=F.UZ.percentile(.98).toFixed(2);F.T?F.T.reset():F.T=new Un;F.T.add(F.lS);F.T.add(F.interruptions.length);
for(var L=0,S=F.interruptions.length-1;S>=0;S--){var p=F.interruptions[S];F.T.add(p-L);L=p}L=0;for(S=F.J.length-1;S>=0;S--){p=F.J[S];var C=p.stamp/36E5;F.T.add(C-L);L=C;F.T.add(p.net/1E3);F.T.add(p.max)}F=F.T.F6();R.T={ttr:n,ttm:V,d:r,st:v,bw:f,abw:z,v50:q,v92:Q,v96:c,v98:w,"int":F}}F=this.loader;F.IG&&F.IG.J&&!F.IG.D7()&&(R.h3=Sz(F.videoTrack),R.U=Sz(F.audioTrack),F.policy.N&&(n=cf(F.videoTrack),V=cf(F.audioTrack),r=n6(F.IG.U.TI(),"_",5),v=n6(F.IG.T.TI(),"_",5),Object.assign(R.T,{lvq:n,laq:V,lvb:r,
lab:v})));R.bandwidthEstimate=f0(F.UZ);var y;(y=F.audioTrack.V)==null||y.flush();var u;(u=F.videoTrack.V)==null||u.flush()}else this.mediaElement&&(R.h3=jL(this.mediaElement));R.A_=this.A_;R.EK=this.EK;R.N=this.isAtLiveHead()&&this.isPlaying()?ore(this):NaN;y=this.BT;y=y.T?jQ(y.T):0;R.J=y;return R};
g.X.wl=function(R,F){this.EK+=R;this.A_+=F};
g.X.Ki=function(){return this.mediaElement?g.Zh(this.videoData)?1:eZ(this.videoData)?this.isAtLiveHead()||this.S_()?1:this.BT.Ki():this.mediaElement.Ki():0};
g.X.Sk=function(){var R=this.pV,F=x5(R,"bandwidth"),n=x5(R,"bufferhealth"),V=x5(R,"livelatency"),r=x5(R,"networkactivity"),v=im(R,"bandwidth"),f=im(R,"bufferhealth"),z=im(R,"livelatency");R=im(R,"networkactivity");var q=this.bj(),Q=q.droppedVideoFrames;q=q.totalVideoFrames;var c=this.getCurrentTime();if(this.uL){var w="IT/"+(this.uL.T.getInfo()+"/"+$2(this.F0()));w+="/"+this.uL.getInfo()}else w="";var L=this.isGapless(),S=this.UF(),p=this.Us(),C=g.bm(this),y=this.getPlayerState().state.toString(16),
u=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var B=0;var O="";if(this.vI){if(this.vI.xK){O="D,";break a}B=this.vI.Jb;O=this.vI.Oq.substring(0,4)}B>0?(B="AD"+B+", ",O&&(B+=O+", "),O=B):O=""}return{Rv:v,OL:f,currentTime:c,vp:w,droppedVideoFrames:Q,isGapless:L,UF:S,PC:p,fz:F,O4:n,E4:V,pz:r,Nl:z,rq:R,SR:C,O$:y,E$:u,Dx:O,totalVideoFrames:q}};
g.X.fC=function(R){var F={};if(R===void 0?0:R){Object.assign(F,this.Dt.fC());this.mediaElement&&(Object.assign(F,this.mediaElement.fC()),R=this.bj(),F.dvf=R.droppedVideoFrames,F.tvf=R.totalVideoFrames);this.loader&&Object.assign(F,this.loader.fC());this.uL&&(F.drm=JSON.stringify(this.uL.fC()));F.state=this.playerState.state.toString(16);g.E(this.playerState,128)&&(F.debug_error=JSON.stringify(this.playerState.z_));this.xb()&&(F.prerolls=this.rY.join(","));this.videoData.AK&&(F.ismb=this.videoData.AK);
this.videoData.latencyClass!=="UNKNOWN"&&(F.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(F.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)F.is_mosaic=1;this.videoData.cotn&&(F.is_offline=1,F.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(F.playerResponseCpn=this.videoData.playerResponseCpn);this.CX.isOrchestrationLeader()&&(F.leader=1);this.videoData.isLivePlayback&&
(this.videoData.T&&r3(this.videoData.T)&&(F.segduration=r3(this.videoData.T)),R=this.BT,F.lat=R.V?Unj(R.V.J):0,F.liveutcstart=this.videoData.liveUtcStartSeconds);F.relative_loudness=this.videoData.Rm.toFixed(3);if(R=g.bm(this))F.optimal_format=R.video.qualityLabel;F.user_qual=OT();F.release_version=t[29]}F.debug_videoId=this.videoData.videoId;return F};
g.X.addCueRange=function(R){this.DJ([R])};
g.X.removeCueRange=function(R){this.a9.rG([R])};
g.X.gM=function(){var R=this.a9;if(R.TH.D().B("html5_sort_cueranges_on_update")&&!(R.n5().length<=0||R.Zo())){var F=R.T;F.array.sort(F.T)}R.sync()};
g.X.ZH=function(R,F){return this.a9.ZH(R,F)};
g.X.DJ=function(R,F){this.a9.iL(R,F)};
g.X.xg=function(R){this.a9.rG(R)};
g.X.n5=function(){return this.a9.n5()||[]};
g.X.M$=function(){return this.oT};
g.X.oa=function(){return this.visibility.oa()};
g.X.DB=function(){this.mediaElement&&this.mediaElement.DB()};
g.X.s9G=function(){Ee(this)};
g.X.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.X.pR=function(){g.Kw(this.dN)};
g.X.ju2=function(){this.M5();this.publish("onLoadProgress",this.Ki())};
g.X.CT=function(R){var F=R.target.Eq();if(this.mediaElement&&this.mediaElement.Eq()&&this.mediaElement.Eq()===F){v56(this,R.type);switch(R.type){case "error":var n=hz(this.mediaElement)||"",V=this.mediaElement.xk();if(n==="capability.changed"){this.B("html5_restart_on_capability_change")?(this.m2("capchg",{msg:V}),this.Yc(!0)):lm(this);return}if(this.mediaElement.hasError()&&Fn_(this.V5,n,{msg:V,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.T_()===4){this.Md();PY(this,"unplayable");
return}break;case "durationchange":n=this.mediaElement.getDuration();isFinite(n)&&(!this.IG||n>0)&&n!==1&&this.sU(n);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());n=this.a9;n.started=!0;n.sync();this.Dt.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":(this.rg().T.pH(JvM)||this.B("html5_prevent_mobile_background_play_on_event_shared"))&&Gt(this,!1);tQv(this);this.publish("onLoadedMetadata");bhN(this);n=this.wD();this.videoData.qy&&
(this.videoData.qy=n);break;case "loadstart":bhN(this);break;case "progress":case "suspend":this.KT.lU();break;case "seeked":(n=this.loader)!=null&&n.policy.U&&n.Z4&&(n.m2("sdai",{skipAdSked:"1"}),n.Z4=!1);break;case "playing":(this.rg().T.pH(JvM)||this.B("html5_prevent_mobile_background_play_on_event_shared"))&&Gt(this,!1);this.Qc.kp("plev");this.KV&&!Oe(this)&&(this.KV=!1,this.isAtLiveHead()||this.seekTo(Infinity,{gW:"videoplayer_onPlaying"}));break;case "timeupdate":(this.rg().T.pH(JvM)||this.B("html5_prevent_mobile_background_play_on_event_shared"))&&
Gt(this,!1);n=this.mediaElement&&!this.mediaElement.getCurrentTime();V=this.mediaElement&&this.mediaElement.Is()===0;if(n&&(!this.yC||V))return;this.yC=this.yC||!!this.mediaElement.getCurrentTime();PfN(this);this.M5();if(!this.mediaElement||this.mediaElement.Eq()!==F)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.Wo().length>0&&this.mediaElement.vB().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;
this.B("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Is()>2||!this.mediaElement.isSeeking()&&rl(this.mediaElement.vB(),this.mediaElement.getCurrentTime()))&&(n=this.mediaElement.fC(),n.bh=jL(this.mediaElement).toFixed(3),this.m2("uwe",n));break;case "resize":tQv(this);this.videoData.U&&this.videoData.U.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.VW&&g.E(this.playerState,8)&&!g.E(this.playerState,
1024)&&this.getCurrentTime()===0&&g.A1){PY(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Eq()===F){Rk_(this.BT,R);this.publish("videoelementevent",R);F=this.playerState;V=this.yV;var r=this.mediaElement;n=this.videoData.clientPlaybackNonce;if(!g.E(F,128)){var v=F.state;r=r?r:R.target;var f=r.getCurrentTime();if(!g.E(F,64)||R.type!=="ended"&&R.type!=="pause"){var z=r.getDuration();z=r.isEnded()||f>1&&Math.abs(f-z)<1.1;var q=R.type==="pause"&&r.isEnded();f=R.type===
"ended"||R.type==="waiting"||R.type==="timeupdate"&&!g.E(F,4)&&!Tt(V,f);if(q||z&&f)r.CJ()>0&&r.Eq()&&(v=14);else switch(R.type){case "error":hz(r)&&(v|=128);break;case "pause":g.E(F,256)?(v^=256)||(v=64):g.E(F,32)||g.E(F,2)||g.E(F,4)||(v=4,g.E(F,1)&&g.E(F,8)&&(v|=1));break;case "playing":f=v;v=(v|8)&-1093;f&4?(v|=1,u_(V,r,!0)):Tt(V,r.getCurrentTime())&&(v&=-2);g.E(F,1)&&u_(V,r)&&(v|=1);break;case "seeking":v|=16;g.E(F,8)&&(v|=1);v&=-3;break;case "seeked":v&=-17;u_(V,r,!0);break;case "waiting":g.E(F,
2)||(v|=1);u_(V,r);break;case "timeupdate":f=g.E(F,16),z=g.E(F,4),(g.E(F,8)||f)&&!z&&Tt(V,r.getCurrentTime())&&(v=8),u_(V,r)&&(v|=1)}}V=v;v=null;V&128&&(v=R.target,r=hz(v),f=1,r?(r==="capability.changed"&&(f=2),z="GENERIC_WITHOUT_LINK",q=v.fC(),q.mediaElem="1",q.trg="melem",/AUDIO_RENDERER/.test(v.xk())&&(z="HTML5_AUDIO_RENDERER_ERROR"),v={errorCode:r,errorMessage:g.iK[z]||"",KL:z,Aw:tQ(q),mP:f,cpn:F.z_?F.z_.cpn:""}):v=null,v&&(v.cpn=n));F=Bz(F,V,v)}!g.E(this.playerState,1)&&g.E(F,1)&&r59(this,"evt"+
R.type);this.md(F)}}};
g.X.cXG=function(R){R=R.T.availability==="available";R!==this.oT&&(this.oT=R,this.publish("airplayavailabilitychange"))};
g.X.oy2=function(){var R=(0,g.h1)(),F=this.mediaElement.oa();this.m2("airplay",{ia:F});!F&&!isNaN(this.Bn)&&R-this.Bn<2E3||(this.Bn=R,F!==this.oa()&&(R=this.visibility,R.T!==F&&(R.T=F,R.QG()),this.m2("airplay",{rbld:F}),this.hp()),this.publish("airplayactivechange"))};
g.X.tQ=function(R){if(this.loader){var F=this.loader,n=F.N,V=F.getCurrentTime(),r=Date.now()-n.V;n.V=NaN;n.m2("sdai",{adfetchdone:R,d:r});R&&!isNaN(n.Z)&&n.U!==3&&SF(n.loader,V,n.Z,n.W);n.policy.U?n.N=NaN:n.J=NaN;wj(n,4,n.U===3?"adfps":"adf");jb(F)}};
g.X.MJ=function(){g.ok(this.Rb);this.kH.stop();this.videoData.V=!0;this.G.z3=!0;this.G.on=0;var R=this.V5;if(R.videoData.U){var F=R.Qz.W,n=R.videoData.U.x5;F.N.has(n)&&(F.N.delete(n),F.T=!0)}R.T.stop();this.Ns();g.E(this.playerState,8)&&this.md(gl(this.playerState,65));this.S0=!1;this.Dt.OM();g.eI(this.oE);this.publish("playbackstarted");(R=g.WM("yt.scheduler.instance.clearPriorityThreshold"))?R():rS(0)};
g.X.Ns=function(){var R=this.CX.aC(),F={},n={};!gV("pbs",this.Qc.timerName)&&As.measure&&As.getEntriesByName&&(As.getEntriesByName("mark_nr")[0]?kRI("mark_nr"):kRI());R.videoId&&(F.videoId=R.videoId);R.clientPlaybackNonce&&!this.B("web_player_early_cpn")&&(F.clientPlaybackNonce=R.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(n.isPausedOnLoad=!0);n.itag=R.U?Number(R.U.itag):-1;R.uZ&&(n.preloadType=String(this.JF?2:1));F.liveStreamMode=Sj7[NF(R)];F.playerInfo=n;this.Qc.infoGel(F);
if(this.loader){R=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(R.N&&(F=window.performance.getEntriesByName(R.N),F.length&&(F=F[0],R.tick("vri",F.fetchStart),R.tick("vdns",F.domainLookupEnd),R.tick("vreq",F.requestStart),R.tick("vrc",F.responseEnd))),R.U&&(F=window.performance.getEntriesByName(R.U),F.length&&(F=F[0],R.tick("ari",F.fetchStart),R.tick("adns",F.domainLookupEnd),R.tick("areq",F.requestStart),R.tick("arc",F.responseEnd))));R=R.ticks;for(var V in R)R.hasOwnProperty(V)&&
this.Qc.tick(V,R[V])}};
g.X.M5=function(R){var F=this;R=R===void 0?!1:R;if(this.mediaElement&&this.videoData){dnI(this.BT,this.isPlaying());var n=this.getCurrentTime();if(this.loader&&(g.E(this.playerState,4)&&g.Zh(this.videoData)||g.E(this.playerState,32)&&MA(this.videoData)||MKf(this.loader,n),this.B("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-lf(this.loader))>10)){var V;this.m2("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(V=this.loader)==null?void 0:lf(V)},!0)}n>5&&(this.BT.N=n);
(V=g.VM())?g.M1.iq(this.qO):g.Tg(this.qO);var r=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!r||CK(this.videoData))&&!g.E(this.playerState,128)){var v=function(){if(F.mediaElement&&!g.E(F.playerState,128)){F.G.CC()&&v56(F,"pfx");var f=F.getCurrentTime();F.B("html5_buffer_underrun_transition_fix")&&(f-=F.qC());var z=jL(F.mediaElement),q=g.E(F.playerState,8),Q=Tt(F.yV,f),c=lzk(F.yV,f,(0,g.h1)(),z);q&&Q?F.md(gl(F.playerState,1)):q&&c?(q=F.getDuration(),Q=Io(F.videoData),q&&Math.abs(q-
f)<1.1?(F.m2("setended",{ct:f,bh:z,dur:q,live:Q}),F.mediaElement.N7()?F.seekTo(0,{gW:"videoplayer_loop",seekSource:37}):F.q0()):(F.playerState.isBuffering()||r59(F,"progress_fix"),F.md(mZ(F.playerState,1)))):(q&&!Q&&!c&&f>0&&(q=(Date.now()-F.pE)/1E3,Q=F.getDuration(),f>Q-1&&F.m2("misspg",{t:f.toFixed(2),d:Q.toFixed(2),r:q.toFixed(2),bh:z.toFixed(2)})),F.playerState.isPaused()&&F.playerState.isBuffering()&&jL(F.mediaElement)>5&&F.md(gl(F.playerState,1)));F.M5()}};
this.mediaElement.Wo().length===0?this.qO=V?g.M1.dK(v,100):g.ak(v,100):this.qO=V?g.M1.dK(v,500):g.ak(v,500)}this.videoData.KC=n;!R&&this.isPlaying()&&ekW(this);CGk(this.TY,this.J7,this.LX(),this.isBackground())&&J5(this);this.publish("progresssync",R);r&&CK(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}};
g.X.A1o=function(){this.Rr("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.X.Us=function(){return this.Dt.Us()};
g.X.rf=function(){return this.loader?this.loader.rf():tf(this.AJ,!0)};
g.X.md=function(R){if(!g.Ii(this.playerState,R)){var F=new g.cP(R,this.playerState);this.playerState=R;fMN(this);var n=!this.xj.length;this.xj.push(F);var V=this.mediaElement&&this.mediaElement.isSeeking();g.Sx(F,1)&&this.loader&&UJ6(this.loader);V=F.oldState.state===8&&!V;if(g.Sx(F,1)&&V&&g.E(this.playerState,8)&&!g.E(this.playerState,64)&&this.loader){V=this.loader;V.BO=!0;if(V.policy.QZ&&V.IG){var r,v,f,z;V.m2("lr_rb",{c:V.getCurrentTime(),s:V.isSeeking(),ab:n6(V.IG.T.TI()),ala:(r=rO(V.audioTrack))==
null?void 0:r.KX(),alr:(v=V.audioTrack.T)==null?void 0:v.KX(),vb:n6(V.IG.U.TI()),vla:(f=rO(V.videoTrack))==null?void 0:f.KX(),vlr:(z=V.videoTrack.T)==null?void 0:z.KX()})}V.Ri!==0&&V.m2("sps_rebuffer",{c:V.getCurrentTime()});this.mediaElement&&jL(this.mediaElement)>=5&&(r=this.TY,v=this.J7,!v.videoData.U||r.B("html5_disable_performance_downgrade")?r=!1:(Date.now()-r.X>6E4&&(r.U=0),r.U++,r.X=Date.now(),r.U!==4?r=!1:(AZ_(r,v.videoData.U),r=!0)),r&&J5(this))}(r=g.Vn(this.G.experiments,"html5_ad_timeout_ms"))&&
this.videoData.isAd()&&g.E(R,1)&&(g.E(R,8)||g.E(R,16))?this.OG.start(r):this.OG.stop();(wr(F,8)<0||g.Sx(F,1024))&&this.kH.stop();!g.Sx(F,8)||this.videoData.V||g.E(F.state,1024)||this.kH.start();g.E(F.state,8)&&wr(F,16)<0&&!g.E(F.state,32)&&!g.E(F.state,2)&&this.playVideo();g.E(F.state,2)&&eZ(this.videoData)&&(this.sU(this.getCurrentTime()),this.M5(!0));g.Sx(F,2)&&(this.qR(!0),this.G.CC()&&this.B("html5_sabr_parse_live_metadata_playback_boundaries")&&MA(this.videoData)&&this.videoData.T&&(R={minst:""+
this.videoData.T.dl,cminst:""+(this.videoData.T.RC()+this.qC()),maxst:""+this.videoData.T.jV,hts:""+this.videoData.T.jQ,cmaxst:""+(this.videoData.T.fX()+this.qC())},this.m2("sabrSeekableBoundaries",R)));g.Sx(F,128)&&this.Md();this.videoData.T&&this.videoData.isLivePlayback&&!this.Ad&&(wr(F,8)<0?(R=this.videoData.T,R.J&&R.J.stop()):g.Sx(F,8)&&this.videoData.T.resume());R=this.BT;g.eI(R.Nq.W);if(R.mediaElement)if(F.oldState.state===8&&K6(F.state)&&F.state.isBuffering()){var q=R.mediaElement.getCurrentTime();
r=R.mediaElement.vB();v=R.B("manifestless_post_live_ufph")||R.B("manifestless_post_live")?V4(r,Math.max(q-3.5,0)):V4(r,q-3.5);v>=0&&q>r.end(v)-1.1&&v+1<r.length&&r.start(v+1)-r.end(v)<11&&(v=r.start(v+1)+.2+R.qC(),Math.abs(R.on-v)<.2||(R.TH.m2("seekover",{b:n6(r,"_"),cmt:q}),R.on=v,R.seekTo(v,{eP:!0,gW:"seektimeline_postLiveDisc"})))}else((q=F.state)==null?0:q.state===8)&&!R.uS&&(R.videoData.limitedPlaybackDurationInSeconds>0?(M7(R.TH,R.getCurrentTime()+R.videoData.limitedPlaybackDurationInSeconds),
R.uS=!0):R.videoData.isLivePlayback&&R.videoData.endSeconds>0&&(M7(R.TH,R.getCurrentTime()+R.videoData.endSeconds),R.uS=!0));q=this.Dt;if(g.Sx(F,1024)||g.Sx(F,512)||g.Sx(F,4))q.U&&(R=q.U,R.U>=0||(R.T=-1,R.delay.stop())),q.qoe&&(R=q.qoe,R.X||(R.N=-1));if(q.provider.videoData.enableServerStitchedDai&&q.pm){var Q;(Q=q.N.get(q.pm))==null||erN(Q,F)}else q.T&&erN(q.T,F);q.qoe&&(Q=q.qoe,R=F.state,r=g.kr(Q.provider),v=Q.getPlayerState(R),f=R.seekSource||void 0,v!==Q.Ll&&(Q.jQ||r<Q.U||(Q.Ll==="PL"?Q.playTimeSecs+=
r-Q.U:Q.Ll==="B"&&Q.isBuffering&&(Q.isBuffering=!1,Q.rebufferTimeSecs+=r-Q.Nq,!Q.k5&&Q.rebufferTimeSecs>=10&&Q.playTimeSecs<=180&&(Q.T.set("qoealert",["1"]),Q.k5=!0)),v!=="B"||Q.Ll!=="PL"&&Q.Ll!=="PB"||(Q.isBuffering=!0),Q.U=r),Q.Ll==="PL"&&(v==="B"||v==="S")||Q.provider.G.CC()?Yr(Q,r):(Q.aG||v!=="PL"||(Q.aG=!0,RWe(Q,r,Q.provider.TH.lj())),ZK_(Q,r)),v==="PL"&&g.eI(Q.oC),z=[v],v==="S"&&f&&z.push("ss."+f),g.Kh(Q,r,"vps",z),Q.Ll=v,Q.Nq=r,Q.U=r,Q.J=!0),v=R.z_,g.E(R,128)&&v&&(v.Aw=v.Aw||"",fHk(Q,r,v.errorCode,
v.mP,v.Aw)),(g.E(R,2)||g.E(R,128))&&Q.reportStats(r),R.isPlaying()&&!Q.X&&(Q.N>=0&&Q.T.set("user_intent",[Q.N.toString()]),Q.X=!0),rik(Q));q.U&&(Q=q.U,HmI(Q),Q.playerState=F.state,Q.U>=0&&g.Sx(F,16)&&Q.seekCount++,F.state.isError()&&Q.send());if(n&&!this.Zo())try{for(var c=g.m(this.xj),w=c.next();!w.done;w=c.next()){var L=w.value,S=this.a9;if(S.started&&(S.sync(),g.E(L.oldState,16))){F=S;var p=LMR(F.T,Math.max(F.N-2E3,0));!isNaN(p)&&p<0x7ffffffffffff&&F.J.start()}this.publish("statechange",L)}}finally{this.xj.length=
0}}};
g.X.k7=function(){this.Qc.tick("qoes")};
g.X.eZ=function(){this.BT.eZ()};
g.X.lm=function(R,F,n,V){a:{var r=this.V5;V=V===void 0?"LICENSE":V;n=n.substring(0,256);var v=qL(F);R==="drm.keyerror"&&this.uL&&this.uL.U.keys.length>1&&r.J<96&&(R="drm.sessionlimitexhausted",v=!1);var f=r.Qz.experiments.GH("html5_retry_on_drm_unavailable"),z=r.Qz.experiments.GH("html5_retry_on_drm_key_error"),q=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(f&&R==="drm.unavailable"||z&&R==="drm.keyerror"&&!n.match(q))r.Tk("qoe.restart",{retryOnDrmError:1,e:R,detail:n}),r.TH.Yc(!0);else{if(v)if(r.videoData.U&&
r.videoData.U.video.isHdr())tF9(r,R);else{if(r.TH.Rr(R,F,V,n),Z0R(r,{detail:n}))break a}else r.Tk(R,{detail:n});R==="drm.sessionlimitexhausted"&&(r.m2("retrydrm",{sessionLimitExhausted:1}),r.J++,VQ_(r.TH))}}};
g.X.yXG=function(){var R=this,F=g.Vn(this.G.experiments,"html5_license_constraint_delay"),n=fw();F&&n?(F=new g.ZK(function(){R.Z1();Ee(R)},F),g.d(this,F),F.start()):(this.Z1(),Ee(this))};
g.X.gh=function(R){this.publish("heartbeatparams",R)};
g.X.u0=function(R){this.m2("keystatuses",TAN(R));var F="auto",n=!1;this.videoData.U&&(F=this.videoData.U.video.quality,n=this.videoData.U.video.isHdr());a:{switch(F){case "highres":case "hd2880":F="UHD2";break;case "hd2160":case "hd1440":F="UHD1";break;case "hd1080":case "hd720":F="HD";break;case "large":case "medium":case "small":case "light":case "tiny":F="SD";break;default:F="";break a}n&&(F+="HDR")}F=ZQ(R)?eb(R,F):R.J.includes(F);if(this.B("html5_enable_vp9_fairplay")){if(n)if(R.X){var V;if((V=
this.uL)==null?0:Cp(V.T))if((n=this.uL)==null)n=0;else{for(var r=V=void 0,v=g.m(n.U.values()),f=v.next();!f.done;f=v.next())f=f.value,V||(V=yfW(f,"SD")),r||(r=yfW(f,"AUDIO"));n.PW({sd:V,audio:r});n=V==="output-restricted"||r==="output-restricted"}else n=!F;if(n){this.m2("drm",{dshdr:1});tF9(this.V5);return}}else{this.videoData.Xn||(this.videoData.Xn=!0,this.m2("drm",{dphdr:1}),this.Yc(!0));return}var z;if((z=this.uL)==null?0:Cp(z.T))return}else if(z=R.X&&F,n&&!z){tF9(this.V5);return}F||eb(R,"AUDIO")&&
eb(R,"SD")||(R=TAN(R),this.AR?(this.publish("drmoutputrestricted"),this.B("html5_report_fatal_drm_restricted_error_killswitch")||this.Rr("drm.keyerror",2,void 0,"info."+R)):(this.AR=!0,this.Tk(new g.z$("qoe.restart",Object.assign({},{retrydrm:1},R))),J5(this),VQ_(this)))};
g.X.TDo=function(){if(!this.videoData.V&&this.mediaElement&&!this.isBackground()){var R="0";this.mediaElement.Is()>0&&jL(this.mediaElement)>=5&&this.videoData.N&&this.videoData.N.T&&(this.md(mZ(this.playerState,1)),r59(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),R="1");fMN(this);var F=this.videoData.N;R={restartmsg:R,mfmt:!Hh(this.videoData),mdrm:!(!(F&&F.videoInfos&&F.videoInfos.length&&F.videoInfos[0].lL)||this.uL),mfmtinfo:!this.videoData.U,prerolls:this.xb()?this.rY.join(","):
"0"};if(this.uL){F=this.uL;if(F.U.size<=0){var n="ns;";F.UZ||(n+="nr;");F=n+="ql."+F.N.length}else F=TAN(F.U.values().next().value),F=tQ(F);R.drmp=F}var V;Object.assign(R,((V=this.loader)==null?void 0:V.fC())||{});var r;Object.assign(R,((r=this.mediaElement)==null?void 0:r.fC())||{});this.Dt.Tk("qoe.start15s",tQ(R));this.publish("loadsofttimeout")}};
g.X.sU=function(R){this.videoData.lengthSeconds!==R&&(this.videoData.lengthSeconds=R,Ee(this))};
g.X.qR=function(R,F){var n=this;R=R===void 0?!1:R;if(!this.T5)if(gV("att_s","player_att")||IV("att_s",void 0,"player_att"),this.B("use_rta_for_player"))(function(){var r,v,f,z,q;return g.Y(function(Q){switch(Q.T){case 1:if(!(r=R)){Q.wX(2);break}return g.k(Q,g.WCN(),3);case 3:r=!Q.U;case 2:if(r)return Q.return();g.zv(Q,4);v=tzW(n.Dt);if(!v)throw Error();f={};return g.k(Q,g.h5f((f.cpn=n.videoData.clientPlaybackNonce,f.encryptedVideoId=n.videoData.videoId||"",f),g.Vn(n.G.experiments,"html5_att_playback_timeout_ms")||
3E4),6);case 6:z=Q.U;if(n.T5)throw Error();if(!z.challenge)throw q=z.error?"; error: "+z.error:"",g.mq(Error("Not sending atr ping; missing challenge string"+q)),Error();n.T5=!0;var c=[z.challenge];if(z.error){var w=Fhs();w=G2N(w).get(z.error)||0;c.push("r1c="+w)}else z.webResponse&&c.push("r1a="+z.webResponse);var L;((L=z.adblockReporting)==null?void 0:L.reportingStatus)!==void 0&&c.push("r6a="+z.adblockReporting.reportingStatus);var S;((S=z.adblockReporting)==null?void 0:S.broadSpectrumDetectionResult)!==
void 0&&c.push("r6b="+z.adblockReporting.broadSpectrumDetectionResult);v(c.join("&"));IV("att_f",void 0,"player_att");g.Qz(Q,0);break;case 4:g.cM(Q),IV("att_e",void 0,"player_att"),g.rq(Q)}})})().then(function(){F==null||F()});
else{var V=new g.uif(this.videoData);if("c1a"in V.HA&&!g.uW.isInitialized()){IV("att_wb",void 0,"player_att");this.Jz===2&&Math.random()<.01&&g.mq(Error("Botguard not available after 2 attempts"));if(R)return;if(this.Jz<5){g.eI(this.jd);this.Jz++;return}}(V=g.BnN(V))?(IV("att_f",void 0,"player_att"),fwf(this.Dt,V),this.T5=!0):IV("att_e",void 0,"player_att")}};
g.X.Uf=function(R){R=R===void 0?!1:R;return Io(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.S_()||g.Zh(this.videoData))?this.getCurrentTime():this.fX(R)};
g.X.AQ=function(){return this.RC()};
g.X.fX=function(R){return this.BT.fX(R===void 0?!1:R)};
g.X.RC=function(){return this.BT.RC()};
g.X.qC=function(){return this.BT?this.BT.qC():0};
g.X.getStreamTimeOffset=function(){return this.BT?this.BT.getStreamTimeOffset():0};
g.X.e_=function(){return this.getStreamTimeOffset()===0?this.qC():this.getStreamTimeOffset()};
g.X.setPlaybackRate=function(R){var F;this.playbackRate!==R&&cZI(this.TY,(F=this.videoData.N)==null?void 0:F.videoInfos)&&(this.playbackRate=R,J5(this));this.playbackRate=R;this.mediaElement&&this.mediaElement.setPlaybackRate(R)};
g.X.getPlaybackRate=function(){return this.playbackRate};
g.X.getPlaybackQuality=function(){var R="unknown";if(this.videoData.U&&(R=this.videoData.U.video.quality,R==="auto"&&this.mediaElement)){var F=this.Zw();F&&F.videoHeight>0&&(R=mG(F.videoWidth,F.videoHeight))}return R};
g.X.isHdr=function(){return!!(this.videoData.U&&this.videoData.U.video&&this.videoData.U.video.isHdr())};
g.X.sendVideoStatsEngageEvent=function(R,F){var n=this.Dt;n.T?(n=LP(n.T,"engage"),n.jQ=R,n.send(F)):F&&F()};
g.X.Uq=function(R){return this.Dt.Uq(R)};
g.X.isAtLiveHead=function(R,F){F=F===void 0?!1:F;return Io(this.videoData)&&(this.E6||F)?this.BT.isAtLiveHead(R):!1};
g.X.L2=function(){var R=this.fX(),F=this.getCurrentTime(),n;(n=!Io(this.videoData))||(n=this.BT,n=!(n.T&&n.T.N));return n||this.S_()||isNaN(R)||isNaN(F)?0:Math.max(0,R-F)};
g.X.nu=function(R){(this.E6=R)||this.kH.stop();if(this.videoData.T)if(R)this.videoData.T.resume();else{var F=this.videoData.T;F.J&&F.J.stop()}this.loader&&(F=this.videoData.B("html5_disable_preload_for_ssdai_with_preroll")&&this.PX()&&this.videoData.isLivePlayback,R&&!F?this.loader.resume():eQ(this,!0));g.E(this.playerState,2)||R?g.E(this.playerState,512)&&R&&this.md(gl(this.playerState,512)):this.md(mZ(this.playerState,512));F=this.Dt;F.qoe&&(F=F.qoe,g.Kh(F,g.kr(F.provider),"stream",[R?"A":"I"]))};
g.X.Q2=function(R){this.Dt.Tk("player.exception",tQ({n:R.name,m:R.message}))};
g.X.EF=i9(18);g.X.TU=i9(47);g.X.S7=function(R){this.Dt.S7(R)};
g.X.Hv=function(R){this.Dt.Hv(R)};
g.X.fv=function(R){this.Dt.fv(R)};
g.X.Pt=i9(24);g.X.d2=i9(30);g.X.WV=function(R){this.Dt.WV(R)};
g.X.ej=function(R,F,n,V){this.Dt.ej(R,F,n,V)};
g.X.IT=function(){this.m2("hidden",{},!0)};
g.X.bj=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
g.X.D3=function(){return this.loader?this.loader.D3():!0};
g.X.setLoop=function(R){this.loop=R;this.mediaElement&&!g.ad(this.G)&&this.mediaElement.setLoop(R)};
g.X.N7=function(){return this.mediaElement&&!g.ad(this.G)?this.mediaElement.N7():this.loop};
g.X.Ui=function(R){this.m2("timestamp",{o:R.toString()});this.BT.Ui(R)};
g.X.N5=function(R){this.Qc.tick(R)};
g.X.R9=function(R){return this.Qc.R9(R)};
g.X.kp=function(R){this.Qc.kp(R)};
g.X.m2=function(R,F,n){this.Dt.m2(R,F,n===void 0?!1:n)};
g.X.R1=function(R,F,n){this.Dt.m2(R,F,n===void 0?!1:n)};
g.X.Tk=function(R){this.Dt.Tk(R.errorCode,tQ(R.details));R=R.errorCode;if(this.videoData.isLivePlayback&&(R==="qoe.longrebuffer"||R==="qoe.slowseek")||R==="qoe.restart"){R=this.loader?o_j(this.loader.videoTrack):{};var F,n;this.m2("lasoe",Object.assign(this.loader?o_j(this.loader.audioTrack):{},(F=this.IG)==null?void 0:(n=F.T)==null?void 0:n.YW()));var V,r;this.m2("lvsoe",Object.assign(R,(V=this.IG)==null?void 0:(r=V.U)==null?void 0:r.YW()))}if(this.B("html5_log_centralized_player_time")){var v;this.m2("sabrSeekRefactorCmt",
{cmt:this.getCurrentTime(),loaderCmt:(v=this.loader)==null?void 0:lf(v)})}};
g.X.XD=function(R,F,n){this.Dt.XD(R,F,n)};
g.X.PV=function(R,F,n,V,r,v,f,z){var q;if((q=this.videoData.T)!=null&&q.isLive){var Q=F.playerType===2?F:R,c=R.videoData.videoId,w=F.videoData.videoId;if(c&&w){q=this.Dt;if(z==null?0:z.Ql){if(q.qoe){c=q.qoe;w=z.Ql;c.reportStats();var L=c.provider.videoData.clientPlaybackNonce,S=c.provider.videoData.videoId||"",p,C=((p=c.VY)==null?void 0:p.join("."))||L,y;p=((y=c.Hq)==null?void 0:y.join("."))||S;dx(c,v?4:r?2:0,w.UM.join(".")||L,w.b9.join(".")||S,V);c.reportStats();c.VY=w.UM;c.Hq=w.b9;c.Gn=w.adFormats;
c.cV=w.serializedQoeContextData;dx(c,v?5:r?3:1,C,p,n);c.reportStats()}}else if(q.qoe){y=q.qoe;p=R.cpn;L=F.cpn;S=Q.videoData.aG;var u=y.provider.videoData.clientPlaybackNonce,B=y.provider.videoData.videoId;C=L!==u&&w!==B;u=p!==u&&c!==B;y.reportStats();y.adCpn&&y.adCpn!==p||(y.adCpn=u?p:"",y.Lt=u?c:"",y.adFormat=u?S:void 0,dx(y,v?4:r?2:0,L,w,V),y.reportStats(),y.adCpn=C?L:"",y.Lt=C?w:"",y.adFormat=C?S:void 0,dx(y,v?5:r?3:1,p,c,n),y.reportStats())}if(z==null?0:z.Yd){var O=z.Yd;if((V=q.T)!=null){Q=V.T.W;
var K=V.provider.G.rg().T.pH(x6v)||4E3;Q>K&&se(V,!isNaN(V.U)).send()}var M;(M=q.T)!=null&&q7(M.T);(V=q.T)!=null&&(V=V.T,M=O.serializedStitchedClipLoggingMetadata,V.serializedPlaybackPingContextLoggingData=O.serializedPlaybackPingContextLoggingData,V.serializedStitchedClipLoggingMetadata=M);var J;(J=q.T)!=null&&q7(J.T);var b;(b=q.T)==null||se(b,!0,!0).send();(q=q.T)!=null&&(q.X=0)}else J=R.cpn,q.N.has(J)?(b=q.N.get(J),pP(b,!0).send(),SQ(b),J!==q.provider.videoData.clientPlaybackNonce&&(Zmj(b),(K=q.T)==
null||MF9(K),q.N.delete(J))):(q.pm=q.provider.videoData.clientPlaybackNonce,q.pm&&q.T&&(q.N.set(q.pm,q.T),pP(q.T).send(),SQ(q.T))),J=F.cpn,b=Q.videoData,V-=this.e_(),q.N.has(J)?(O=q.N.get(J),b=O.J&&isNaN(O.W)?ww(O):NaN,O=se(O,!1),isNaN(b)||(O.X=b),O.send()):(b=zSN(q,q.provider,b,V),q.N.set(J,b),erN(b,new g.cP(mZ(new g.Wz,8),new g.Wz)),b.OM(),(O=q.T)==null||SQ(O)),q.pm=J;if(this.B("html5_unify_csi_server_stitched_transition_logging")){if(q=this.Qc,b=R.cpn,R=F.cpn,O=this.videoData.clientPlaybackNonce,
J=F.videoData,F=(0,g.h1)(),b=(b===O?"video":"ad")+"_to_"+(R===O?"video":"ad"),b!=="video_to_ad"){O=b==="ad_to_video"?void 0:J;V=O==null?void 0:O.IB;M={};if(J==null?0:J.Z)M.cttAuthInfo={token:J.Z,videoId:J.videoId};f&&(M.startTime=f);mc(b,M);var RJ,Fj,fW;f={targetVideoId:(RJ=J==null?void 0:J.videoId)!=null?RJ:"empty_video",targetCpn:R,adVideoId:(Fj=O==null?void 0:O.videoId)!=null?Fj:"empty_video",adClientPlaybackNonce:(fW=V==null?void 0:V.cpn)!=null?fW:O==null?void 0:O.clientPlaybackNonce};V&&(f.adBreakType=
V.adBreakType,f.adType=V.adType);g.B8(f,b);qE(q,F,b)}}else RJ=this.Qc,q=this.videoData.clientPlaybackNonce,Fj=(0,g.h1)(),fW=F.videoData,R=(R.cpn===q?"video":"ad")+"_to_"+(F.cpn===q?"video":"ad"),q={},fW.Z&&(q.cttAuthInfo={token:fW.Z,videoId:fW.videoId}),f&&(q.startTime=f),mc(R,q),g.B8({targetVideoId:fW.videoId,targetCpn:F.cpn,isSsdai:!0},R),f||qE(RJ,Fj,R)}}else g.mW(this.logger,360717806,"SSTEvent for nonSS")};
g.X.qt=function(){var R=this.CX,F=R.tR;R.tR=[];return F};
g.X.sb=function(R){this.videoData.aD=!0;this.Tk(new g.z$("sabr.fallback",R));this.Yc(!0)};
g.X.HL=function(R,F){this.videoData.A3=!0;if(F===void 0||F)this.Tk(new g.z$("qoe.restart",R)),this.Yc(!0)};
g.X.wE=function(R){this.m2("sdai",{aftimeout:R});this.Tk(new g.z$("ad.fetchtimeout",{timeout:R}))};
g.X.Ph=function(R,F){this.m2("timelineerror",R);R=new g.z$("dai.timelineerror",R);F?this.Rr("dai.timelineerror",1,"RETRYABLE_ERROR",tQ(R.details)):this.Tk(R)};
g.X.HE=function(){return g.kr(this.Dt.provider)};
g.X.getPlayerSize=function(){return this.Yz.getPlayerSize()};
g.X.p5=function(){return this.Yz.p5()};
g.X.Mc=function(){return this.Qc};
g.X.NF=function(){return this.CX.NF()};
g.X.getVolume=function(){return this.CX.getVolume()};
g.X.dT=function(){return this.CX.dT()};
g.X.isMuted=function(){return this.CX.isMuted()};
g.X.zO=function(){return this.CX.zO()};
g.X.Hh=function(){this.Ad=!0};
g.X.B=function(R){return this.G.B(R)};
g.X.rg=function(){return this.G.rg()};
g.X.Ai=function(R,F,n,V,r){this.m2("xvt",{m:R,g:F?1:0,tt:n?1:0,np:V?1:0,c:r})};
g.X.e4=function(){var R;(R=this.loader)==null||R.resume()};
g.X.PX=function(){return g.Rz(this.rY,"ad")};
g.X.AG=function(){var R=this.getCurrentTime(),F=R-this.qC();var n=this.mediaElement?f6(this.mediaElement.vB()):0;n=Math.floor(Math.max(n-F,0))+100;var V;return((V=this.loader)==null?0:V.AG(F,n))?(this.m2("sdai",{skipad:1,ct:F.toFixed(3),adj:n.toFixed(3)}),MA(this.videoData)&&this.loader.seek(F+n,{seekSource:89,gW:"videoplayer_skipServerStitchedAd"}),nrJ(this.BT,R),!0):!1};
g.X.CC=function(){return this.G.CC()};
g.X.cX=function(){if(this.B("html5_generate_content_po_token"))return this.videoData.S9||"";this.CX.eG();return this.G.Ru||""};
g.X.dn=function(){if(this.videoData.videoId)return this.videoData.z3};
g.X.B_=function(){return this.videoData.videoId};
g.X.C3=function(){return this.CX.eI};
g.X.j8=function(){return this.S0};
g.X.F$=function(){return this.CX.F$()};
g.X.xO=function(R,F,n){this.md(mZ(this.playerState,16,n));this.BT.xO(R,F,n)};
g.X.prefetchKeyPlay=function(R,F){var n;(n=this.loader)==null||n.prefetchKeyPlay(R,F)};
g.X.Jp=function(R){return this.BT.Jp(R)};
g.X.jp=function(){this.BT.jp()};
g.X.yp=function(R,F){var n=this.B("html5_generate_content_po_token")?this.videoData:void 0;this.CX.yp(R,F,n)};
g.X.V_=function(R,F){this.Dt.V_(R,F)};
g.X.Po=function(){return this.Dt.Po()};
g.X.UF=function(){return this.CX.UF()};
g.X.Qb=function(){return this.CX.Qb(this)};
g.X.MY=function(){this.Pg=!0};
g.X.yM=function(R){var F;(F=this.loader)==null||F.yM(R)};
g.X.fY=function(R){this.BT.fY(R)};
var ihJ={primary:"Primary",secondary:"Secondary"};g.a(z$I,pi);g.a(nN,yk);nN.prototype.T=function(R){R&&UY(this,this.K.getLoopVideo());this.K.logVisibility(this.element,R)};
nN.prototype.logClick=function(){this.K.logClick(this.element)};
nN.prototype.onLoopChange=function(R){UY(this,R)};
nN.prototype.U=function(R){this.K.setLoopVideo(R)};g.a(qe6,pi);g.a(Q3N,pi);g.X=Q3N.prototype;g.X.seekToChapterWithAnimation=function(R){var F=this;if(g.KK(this.api)&&!(R<0)){var n=this.api.getVideoData(),V=n.oC;if(V&&R<V.length){V=g.m(V);for(var r=V.next();!r.done;r=V.next())if(r=r.value,r.index===R){c5_(this,r.startTime,r.title);return}}this.B("web_key_moments_markers")&&(n=n.gR)&&R<n.length&&n.forEach(function(v,f){f===R&&c5_(F,v.timeRangeStartMillis,v.title)})}};
g.X.seekToTimeWithAnimation=function(R,F){g.KK(this.api)&&c5_(this,R,F)};
g.X.setMacroMarkers=function(R,F){F={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:F}}}}}};R=R.getVideoData();R.getWatchNextResponse();R&&R.getWatchNextResponse()==null&&(XV(R,{raw_watch_next_response:F}),R.publish("dataupdated"))};
g.X.changeMarkerVisibility=function(R,F,n){var V=this.api.getVideoData();if(V){var r=!1;if(R)for(R=g.m(F),F=R.next();!F.done;F=R.next()){F=F.value;var v=V.Mq;if(v&&!v.includes(F))switch(n){case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_SAME_TYPE":SeN(F,V)||(r=!0,v=void 0,(v=V.Mq)==null||v.push(F));break;case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_ANY_TYPE":v.length===0&&(r=!0,v=void 0,(v=V.Mq)==null||v.push(F));break;default:r=!0,v=void 0,(v=V.Mq)==null||v.push(F)}}else for(n=
g.m(F),R=n.next();!R.done;R=n.next())R=R.value,V.visibleOnLoadKeys.includes(R)||g.VK(V.Mq,R)&&(r=!0);r&&this.api.publish("updatemarkervisibility")}};
g.X.isSameMarkerTypeVisible=function(R){var F=this.api.getVideoData();return F?SeN(R,F):!1};g.a(V3,pi);
V3.prototype.updateMetadata=function(){var R=this,F=this.api.getVideoData();if(F!=null&&F.XP()){var n=this.api.D(),V=[],r="";if(!n.J1){var v=XYj(this);g.Dz(n)&&v?(V=A59(v.thumbnailDetails),v.album&&(r=sT(v.album))):V=[{src:F.BB("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}var f;((f=this.api.getVideoData())==null?0:t1E(f))&&s3W(this);LNJ(this);pY_(this);navigator.mediaSession.metadata=new MediaMetadata({title:F.title,artist:F.author,artwork:V,album:r});n=F=null;g.PK(this.api)&&(F=function(){R.api.nextVideo()},
n=function(){R.api.previousVideo()});
rK("nexttrack",F);rK("previoustrack",n)}};
V3.prototype.oG=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var R=g.m("nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ")),F=R.next();!F.done;F=R.next())rK(F.value,null);var n;((n=this.api.getVideoData())==null?0:t1E(n))&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({});pi.prototype.oG.call(this)};g.a(fN,pi);fN.prototype.setCompositeVideoOverlayRendererComponent=function(R){this.N&&(this.N.remove(),g.Qj(this.N,"ytp-composite-video-overlay-renderer"),this.N=void 0);R&&(g.z0(R,"ytp-composite-video-overlay-renderer"),g.RL(this.api,R,4),this.N=R)};
fN.prototype.W=function(R){return R.compositeEmbargo!==void 0};
fN.prototype.oG=function(){pi.prototype.oG.call(this);this.U.clear()};g.a(y5W,pi);g.X=y5W.prototype;g.X.queueOfflineAction=function(R,F,n,V){var r=this,v,f;return g.Y(function(z){return z.T==1?(v=hr(r.api.WI()))?g.k(z,v.WN([R],F,n,V),3):z.wX(2):z.T!=2&&(f=z.U,f.length)?z.return(f[0]):z.return(Promise.reject())})};
g.X.updateDownloadState=function(R,F){var n=hr(this.api.WI());return n?n.updateDownloadState(R,F):Promise.reject()};
g.X.pauseVideoDownload=function(R){var F=hr(this.api.WI());F&&F.l3(R)};
g.X.resumeVideoDownload=function(R){var F=this,n;return g.Y(function(V){return(n=hr(F.api.WI()))?V.return(n.Ca(R)):V.return(Promise.reject())})};
g.X.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()};
g.X.refreshAllStaleEntities=function(R){R===void 0&&(R=14400);var F=hr(this.api.WI());return F?F.refreshAllStaleEntities(R):Promise.reject()};
g.X.setUpPositionSyncInterval=function(R){var F=hr(this.api.WI());F&&F.setUpPositionSyncInterval(R)};g.a(U7I,pi);g.X=U7I.prototype;g.X.Wy=function(){var R=this.api.getVideoData();return R.Zn&&!R.xX};
g.X.load=function(){var R=this;this.loaded||g.Vw(this.api.D())||(this.overlay=new g.N({j:"div",BG:["ytp-ypc-clickwrap-overlay","ytp-player-content"],L:[{j:"h2",Y:"ytp-ypc-clickwrap-header",cG:"Would you like to start this rental?"},{j:"div",Y:"ytp-ypc-clickwrap-description",cG:this.api.getVideoData().R3},{j:"button",BG:["ytp-ypc-clickwrap-confirm","ytp-button"],cG:"Start rental period"}]}),g.d(this,this.overlay),g.RL(this.api,this.overlay.element,4),this.overlay.C(this.overlay.sZ("ytp-ypc-clickwrap-confirm"),
"click",function(){R.onConfirm()}),this.loaded=!0)};
g.X.onConfirm=function(){var R=this;this.overlay&&this.overlay.hide();this.T.C(this.api,"videodatachange",function(){R.api.wK("ypcRentalActivation")});
this.api.wK("ypcRentalActivation")};
g.X.unload=function(){this.loaded&&(this.overlay&&(this.overlay.dispose(),this.overlay=null),g.Kw(this.T),this.loaded=!1)};
g.X.oG=function(){this.unload();pi.prototype.oG.call(this)};g.a(tX,pi);tX.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}};
tX.prototype.getAvailableQualityData=function(){var R=this.api.getVideoData();if(!R)return[];var F=[],n,V,r=(n=R.getPlayerResponse())==null?void 0:(V=n.playabilityStatus)==null?void 0:V.paygatedQualitiesMetadata;V=(r==null?void 0:r.qualityDetails)||[];n=new Map;n=g.ID(V)&&!Array.isArray(V)?new Map(Object.entries(V)):new Map(V.map(function(f){return[f.key,f.value]}));
if(V=r==null?void 0:r.restrictedAdaptiveFormats){r=[];V=g.m(V);for(var v=V.next();!v.done;v=V.next())v=v.value,v=Ri(v.mimeType,v.quality,v.itag.toString(),v.width.toString(),v.height.toString(),v.qualityLabel,v.qualityOrdinal&&eY6[v.qualityOrdinal]),r.push(v);R=g.mJ(R);Vs(r);V=[];r=g.m(r);for(v=r.next();!v.done;v=r.next())v=v.value,R0(R,v,this.api.D().W)===!0&&V.push(v);F=F.concat(j3e(V,!1,n))}R=this.api.yn();F=F.concat(j3e(R,!0,n));n=[];if(this.api.B("web_player_enable_premium_hbr_in_h5_api"))return F=
h$I(F),HPk(F),F;R={};F=g.m(F);for(r=F.next();!r.done;r=F.next())r=r.value,V=r.quality,R[V]||(r.formatId=void 0,n.push(r),R[V]=!0);return n};var yh={},ugO=(yh["internal-error"]=-1,yh["non-recoverable-error"]=-2,yh["api-disabled-by-application"]=-3,yh["invalid-argument"]=-4,yh["token-provider-invalid"]=-5,yh);g.a(zO,pi);zO.prototype.Y_=function(R){var F=this;if(uHV())if(!this.U&&this.T){R.z3={coldStartInfo:{clientState:this.N}};try{this.T.then(function(){m7J(F,R)},function(n){qf(n,"player_update");
F.handleError(n,R)})}catch(n){qf(n,"player_update_catch"),this.handleError(n,R)}}else this.U?m7J(this,R):this.api.m2("pf",{m:this.U?1:0,
p:this.T?1:0})};
zO.prototype.handleError=function(R,F){g.mq(R);var n=0;R.mediaIntegrityErrorName?n||(n=ugO[R.mediaIntegrityErrorName]):R.code&&(n=R.code());F.z3={nSX:{code:n}}};g.a(Q3,g.N);Q3.prototype.CH=function(R){R=R?"Exit picture-in-picture":"Picture-in-picture";this.api.D().B("player_tooltip_data_title_killswitch")?this.update({title:R,"data-title-no-tooltip":R}):this.update({"data-tooltip-title":R,"data-title-no-tooltip":R});this.api.Ew()};
Q3.prototype.onClick=function(){this.api.togglePictureInPicture()};g.a(cB,pi);cB.prototype.createButton=function(){var R=this;this.button=new Q3(this.api);g.d(this,this.button);this.api.hT(this.button);this.events.C(this.api,"videodatachange",function(){g5j(R)});
g5j(this)};
cB.prototype.setDocumentPictureInPicture=function(R){this.api.y6().rI(R);R=this.api.Yw();var F=Zz6(this.api.WI());F&&(R?F.load():F.unload());this.api.publish("documentpictureinpicturechange")};g.a(OPN,pi);g.X=OPN.prototype;g.X.Wy=function(){return this.api.getVideoData().D0.includes("playableSequences")};
g.X.load=function(){var R=this;if(!this.loaded){this.W||(this.W=new g.N({j:"div",BG:["ytp-player-content","ytp-yto-overlay"],L:[{j:"div",BG:["ytp-yto-preroll-message"],cG:"Video will begin shortly"}]}),g.d(this,this.W),IMN(this,!1),g.RL(this.api,this.W.element,4));var F=this.api.getPresentingPlayerType();this.U.C(this.api,"playbackChange",function(){var n=R.api.getPresentingPlayerType()===5;g.ws(R.api.getRootNode(),"ytp-yto-preroll",n);IMN(R,n)});
this.U.C(this.api,"presentingplayerstatechange",function(n){R.onStateChange(n)});
this.U.C(this.api,g.$A("yto"),function(n,V){R.onCueRangeEnter(n,V)});
this.U.C(this.api,"ytoprerollinternstitialnext",function(){iPI(R)});
KNW(this);this.loaded=!0;this.api.wK("playableSequences",F)}};
g.X.onCueRangeEnter=function(R){R=R.getId();if(!this.T){if(g.E(this.api.getPlayerStateObject(1),2)){if(this.Z)return}else this.Z=!1;this.N.includes(R)||this.N.push(R);this.api.getPresentingPlayerType()===1&&D76(this)}};
g.X.onStateChange=function(R){var F=this.api.getPresentingPlayerType();R=R.state;this.T||F!==5&&F!==6&&F!==7||g.E(R,1)||g.E(R,16)||g.E(R,32)||(F=g.E(R,128),(g.E(R,2)||F)&&iPI(this))};
g.X.unload=function(){this.loaded&&(this.V=0,this.Z=this.T=!1,this.X={},this.J=0,this.N.length=0,g.Kw(this.U),this.loaded=!1)};
g.X.oG=function(){this.unload();pi.prototype.oG.call(this)};g.a(x7W,pi);g.a(LN,g.N);g.X=LN.prototype;g.X.X3=function(){};
g.X.An=function(){};
g.X.Le=function(){return!0};
g.X.azG=function(){if(this.expanded){this.k5.show();var R=this.J.element.scrollWidth}else R=this.J.element.scrollWidth,this.k5.hide();this.us=this.gX+R;g.ws(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?this.gX:this.us)+"px";this.h1.start()};
g.X.G4=function(){this.badge.element.style.width=(this.expanded?this.us:this.gX)+"px";this.aG.start()};
g.X.rL=function(){this.U&&this.K.logVisibility(this.badge.element,this.Le());this.Nq&&this.K.logVisibility(this.dismissButton.element,this.Le()&&this.i6())};
g.X.Aq=function(R){this.jQ=R;S6(this);wK(this);this.RI()};
g.X.qFq=function(){g.ws(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.X.i6=function(){return this.J1||this.jQ||!this.X};
g.X.RI=function(){this.Le()?(this.show(),this.V.show()):this.V.hide();this.rL()};
g.X.Uc=function(){this.enabled=!1;this.RI()};
g.X.aq=function(R){R?this.Nq&&this.K.logClick(this.dismissButton.element):this.U&&this.K.logClick(this.badge.element)};
g.X.SFo=function(){this.RI()};
g.X.ZX2=function(R){this.KC=R===1;this.RI();g.ws(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.X.fO5=function(){g.ws(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.K.isFullscreen());this.RI()};g.a(sb,g.c5);g.X=sb.prototype;g.X.Er=function(){this.publish("size-change")};
g.X.U6=function(){return Yev(this)};
g.X.mA=function(){return Yev(this)};
g.X.focus=function(){this.content.focus()};
g.X.xL=function(){this.publish("back")};g.a(g.pN,sb);g.X=g.pN.prototype;g.X.xF=function(R,F){if(F===void 0?0:F)this.items.push(R),this.menuItems.element.appendChild(R.element);else{F=g.L4(this.items,R,J5k);if(F>=0)return;F=~F;g.co(this.items,F,0,R);DT(this.menuItems.element,R.element,F)}R.subscribe("size-change",this.Vp,this);this.menuItems.publish("size-change")};
g.X.U6=function(){Yev(this)||this.items[0].focus();return!0};
g.X.mA=function(){this.items[this.items.length-1].focus();return!0};
g.X.W_=function(R){R.unsubscribe("size-change",this.Vp,this);this.Zo()||(g.VK(this.items,R),this.menuItems.element.removeChild(R.element),this.menuItems.publish("size-change"))};
g.X.Vp=function(){this.menuItems.publish("size-change")};
g.X.focus=function(){for(var R=0,F=0;F<this.items.length;F++){var n=this.items[F].element;if(n.getAttribute("role")==="menuitemradio"){if(n.getAttribute("aria-checked")==="true"){R=F;break}}else break}this.items[R].focus()};
g.X.rr=function(){return this.items.length};g.a(g.AX,ti);g.X=g.AX.prototype;g.X.x5X=function(R){this.T[this.T.length-1].mA()||R.preventDefault()};
g.X.uh2=function(R){this.T[this.T.length-1].U6()||R.preventDefault()};
g.X.show=function(){ti.prototype.show.call(this);this.hN()};
g.X.hide=function(){ti.prototype.hide.call(this);this.T.length>1&&g.CN(this)};
g.X.hN=function(){MQR(this);this.JJ&&(Gt6(this),g.X6(this.element,this.size))};
g.X.UD=function(){var R=this.T.pop();d79(this,R,this.T[this.T.length-1],!0)};
g.X.gK=function(R){if(!R.defaultPrevented)switch(R.keyCode){case 27:this.nC();R.preventDefault();break;case 37:this.T.length>1&&this.UD();R.preventDefault();break;case 39:R.preventDefault()}};
g.X.focus=function(){this.T.length&&this.T[this.T.length-1].focus()};
g.X.oG=function(){ti.prototype.oG.call(this);this.N&&this.N.dispose();this.J&&this.J.dispose()};g.a(TO,g.AX);TO.prototype.open=function(R,F){this.initialize(R.items)&&this.rW(F,!!F)};
TO.prototype.initialize=function(R){g.X7(this.kq);if(R===void 0||R.length===0)return!1;var F=R.length;R=g.m(R);for(var n=R.next();!n.done;n=R.next())this.xF(n.value,F--);return!0};
TO.prototype.xF=function(R,F){R.menuNavigationItemRenderer?E5E(this,R.menuNavigationItemRenderer,F):R.menuServiceItemRenderer&&$76(this,R.menuServiceItemRenderer,F)};g.a(oG,LN);g.X=oG.prototype;g.X.X3=function(R){R.target!==this.dismissButton.element&&R.target!==this.overflowButton.element&&(this.aq(),this.onClickCommand&&this.K.HG("innertubeCommand",this.onClickCommand))};
g.X.An=function(){this.enabled=!1;this.V.hide()};
g.X.Le=function(){return!!this.T&&this.enabled};
g.X.onVideoDataChange=function(R,F){this.hI(F);if(this.T){this.Gs();a:if(!this.isCounterfactual){var n,V,r;this.banner.update({title:(n=this.T)==null?void 0:n.title,subtitle:(V=this.T)==null?void 0:V.subtitle,metadata:(r=this.T)==null?void 0:r.metadataText});var v;this.onClickCommand=g.A((v=this.T)==null?void 0:v.onTap,IQ);var f;if(R=g.A((f=this.T)==null?void 0:f.onOverflow,IQ))this.Z=g.A(R,Kh$);var z;if((z=this.T)==null?0:z.thumbnailImage){var q,Q;f=((q=this.T)==null?void 0:(Q=q.thumbnailImage)==
null?void 0:Q.sources)||[];if(f.length===0)break a;this.thumbnailImage.update({url:f[0].url})}else{var c;if((c=this.T)==null?0:c.thumbnailIconName){var w;this.thumbnailIcon.update({icon:(w=this.T)==null?void 0:w.thumbnailIconName})}}var L;this.shouldShowOverflowButton=!((L=this.T)==null||!L.shouldShowOverflowButton);var S;this.shouldHideDismissButton=!((S=this.T)==null||!S.shouldHideDismissButton)}var p;this.banner.element.setAttribute("aria-label",((p=this.T)==null?void 0:p.a11yLabel)||"");var C;
this.dX=(C=this.T)==null?void 0:C.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;bPI(this)}};
g.X.heG=function(){this.isVisible=!0;bPI(this)};
g.X.GuG=function(){this.isVisible=!1;bPI(this)};
g.X.rL=function(){LN.prototype.rL.call(this);this.N&&this.K.logVisibility(this.banner.element,this.isVisible)};
g.X.aq=function(){LN.prototype.aq.call(this,!1);this.N&&this.K.logClick(this.banner.element)};
g.X.AU=function(R){this.W||(this.W=new TO(this.K),g.d(this,this.W));var F,n;if((F=this.Z)==null?0:(n=F.menu)==null?0:n.menuRenderer)this.W.open(this.Z.menu.menuRenderer,R.target),R.preventDefault()};
g.X.hI=function(){};
g.X.Gs=function(){};
g.X.oG=function(){this.K.Bw("suggested_action_view_model");LN.prototype.oG.call(this)};g.a(y3,oG);
y3.prototype.hI=function(R){var F,n,V;this.productUpsellSuggestedActionViewModel=g.A((F=R.getWatchNextResponse())==null?void 0:(n=F.playerOverlays)==null?void 0:(V=n.playerOverlayRenderer)==null?void 0:V.suggestedActionViewModel,$sD);var r;if((r=this.productUpsellSuggestedActionViewModel)==null?0:r.content){var v;this.T=g.A((v=this.productUpsellSuggestedActionViewModel)==null?void 0:v.content,g$h)}var f,z;if(this.N=!!((f=this.productUpsellSuggestedActionViewModel)==null?0:(z=f.loggingDirectives)==null?
0:z.trackingParams)){var q,Q;this.K.setTrackingParams(this.banner.element,((q=this.productUpsellSuggestedActionViewModel)==null?void 0:(Q=q.loggingDirectives)==null?void 0:Q.trackingParams)||null)}var c;this.isCounterfactual=!((c=this.productUpsellSuggestedActionViewModel)==null||!c.isCounterfactualServing)};
y3.prototype.Gs=function(){var R=[],F,n=g.m(((F=this.productUpsellSuggestedActionViewModel)==null?void 0:F.ranges)||[]);for(F=n.next();!F.done;F=n.next()){var V=F.value;V&&(F=Number(V.startTimeMilliseconds),V=Number(V.endTimeMilliseconds),isNaN(F)||isNaN(V)||R.push(new g.NQ(F,V,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.K.iL(R)};g.a(ZPf,pi);g.a(Ub,pi);Ub.prototype.onVideoDataChange=function(R,F){var n=this;if(!wZ(F)&&(R==="newdata"&&Fbk(this),this.T&&R==="dataloaded")){this.T=!1;var V;q4(z4(hP(this.api.D(),(V=this.api.getVideoData())==null?void 0:g.Ql(V)),function(r){t6J(n,r)}),function(){n.T=!0})}};
Ub.prototype.i_=function(){var R=this;if(g.ad(this.api.D())){var F,n=g.HV(this.api.D(),(F=this.api.getVideoData())==null?void 0:g.Ql(F));return z4(rv(n),function(V){var r=r$();vN(r,V);return R.api.i_(r)})}return rv(this.api.i_())};g.a(g.j6,g.w$);g.X=g.j6.prototype;g.X.open=function(){g.aG(this.T9,this.Xh)};
g.X.hO=function(R){qbJ(this);var F=this.options[R];F&&(F.element.setAttribute("aria-checked","true"),this.setContent(this.lq(R)),this.N=R)};
g.X.n2=function(R){g.X7(this.Xh);for(var F={},n=!1,V=0;V<R.length;V++){var r=R[V],v=this.options[r],f=r===this.N;f&&(n=!0);v&&v.priority===-V?(g.cN(this.options[r],this.lq(r,!0)),delete this.options[r]):v=this.Rk(r,-V,f);F[r]=v;this.Xh.xF(v,!0)}n||(this.N=null);R=g.m(Object.keys(this.options));for(n=R.next();!n.done;n=R.next())this.options[n.value].dispose();this.options=F};
g.X.Rk=function(R,F,n,V){var r=this;n={j:"div",BG:["ytp-menuitem",V?"ytp-menuitem-with-footer":""],S:{tabindex:"0",role:"menuitemradio","aria-checked":n?"true":"false"},L:[{j:"div",BG:["ytp-menuitem-label"],cG:"{{label}}"}]};V&&(V={j:"div",Y:"ytp-menuitem-footer",L:[V]},n.L?n.L.push(V):n.L=[V]);F=new g.w$(n,F,this.lq(R,!0));F.listen("click",function(){r.zB(R)});
return F};
g.X.enable=function(R){this.V?R||(this.V=!1,this.t_(!1)):R&&(this.V=!0,this.t_(!0))};
g.X.t_=function(R){R?this.T9.xF(this):this.T9.W_(this)};
g.X.xS=function(R){this.publish("select",R)};
g.X.zB=function(R){this.xS(R)};
g.X.lq=function(R){return R.toString()};
g.X.gK=function(R){R.defaultPrevented||R.keyCode!==39||(this.open(),R.preventDefault())};
g.X.oG=function(){this.V&&this.T9.W_(this);g.w$.prototype.oG.call(this);for(var R=g.m(Object.keys(this.options)),F=R.next();!F.done;F=R.next())this.options[F.value].dispose()};g.a(cXJ,g.j6);g.X=cXJ.prototype;g.X.CH=function(){var R=this.ek("Off");this.K.getPresentingPlayerType()!==2?(wB9(this),this.hO(this.J),this.T&&(this.J===R?this.T="":this.setSleepTimerTimeLeft(this.T)),this.W&&this.setVideoTimeLeft(this.W),this.enable(!0)):(this.n2([]),this.enable(!1))};
g.X.xS=function(R){SbN(this,R);this.T9.UD()};
g.X.ek=function(R){switch(R){case "Off":return"Off";case "End of video":return"End of video";case "End of playlist":return"End of playlist";default:return(R.toString()+" Minutes").toLowerCase()}};
g.X.onVideoDataChange=function(R){R==="dataloaded"&&wB9(this)};
g.X.QI=function(R){this.K.logVisibility(this.element,R)};
g.X.onClick=function(){this.K.logClick(this.element)};
g.X.resetSleepTimerMenuSettings=function(){SbN(this,this.ek("Off"))};
g.X.setSleepTimerTimeLeft=function(R){this.T=R;this.setContent(R)};
g.X.setVideoTimeLeft=function(R){this.W=R;this.U.setContent(R)};g.a(HB,pi);HB.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()};
HB.prototype.setSleepTimerTimeLeft=function(R){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(R)};
HB.prototype.setVideoTimeLeft=function(R){this.menuItem&&this.menuItem.setVideoTimeLeft(R)};g.a(LbR,pi);g.a(g.WB,g.fG);g.X=g.WB.prototype;g.X.C=function(R,F){this.J.C(this.V,R,F,void 0,!this.T)};
g.X.cancel=function(){this.N&&(this.N=!1,this.publish("dragend",0,0,null));this.U&&(this.U=!1,this.publish("hoverend",0,0,null),uq(this),hX(this))};
g.X.NO=function(R){uq(this);this.C(BB("move"),this.mY);this.C(BB("out"),this.g0);this.C("touchstart",this.IU);this.T&&this.C(BB("down"),this.CO);var F=R.target;R=new g.z5(R.pageX,R.pageY);this.U=!0;this.publish("hoverstart",R.x,R.y,F);this.publish("hovermove",R.x,R.y,F)};
g.X.mY=function(R){var F=R.target;R=new g.z5(R.pageX,R.pageY);if(this.W){var n=this.W;this.W=null;if(n.relatedTarget===F&&q2(new g.z5(n.pageX,n.pageY),R))return}this.publish("hovermove",R.x,R.y,F)};
g.X.g0=function(R){var F=new g.z5(R.pageX,R.pageY),n=R.relatedTarget;try{if(n&&g.xW(this.target,n)){this.W=R;this.publish("hovermove",F.x,F.y,n);return}}catch(V){}uq(this);hX(this);this.U=!1;this.publish("hoverend",F.x,F.y,n)};
g.X.ftG=function(R){this.NO(R);this.CO(R)};
g.X.CO=function(R){if(typeof R.button!=="number"||R.button===0){uq(this);this.J.C(gK(R.target),BB("move"),this.xCS);this.J.C(gK(R.target),BB("up"),this.WR);var F=R.target;if(g.WI)this.C("dragstart",this.v1);else if(R.preventDefault(),(g.TV||t_)&&F)a:{for(var n=F;n;){if(YW(n)||n.getAttribute("tabindex")==="-1"){n.focus();break a}n=n.parentElement}gK(F).activeElement.blur()}this.N=!0;R=new g.z5(R.pageX,R.pageY);this.publish("dragstart",R.x,R.y,F);this.publish("dragmove",R.x,R.y,F)}};
g.X.v1=function(R){R.preventDefault()};
g.X.xCS=function(R){var F=R.target;F===gK(R.target)&&(F=null);R=new g.z5(R.pageX,R.pageY);this.publish("hovermove",R.x,R.y,F);this.publish("dragmove",R.x,R.y,F)};
g.X.WR=function(R){uq(this);this.N=!1;var F=ml(R),n=R.target;R=new g.z5(R.pageX,R.pageY);F&&g.xW(this.target,F)?(this.C(BB("move"),this.mY),this.C(BB("out"),this.g0),this.C(BB("down"),this.CO),this.C("touchstart",this.IU),this.publish("dragend",R.x,R.y,n)):(hX(this),this.U=!1,this.publish("dragend",R.x,R.y,n),this.publish("hoverend",R.x,R.y,n))};
g.X.IU=function(R){var F=R.changedTouches[0];F&&(uq(this),this.UZ||(this.C("touchmove",this.BKG),this.C("touchend",this.Nx),this.C("touchcancel",this.Nx),this.Z=F.identifier,R=R.target,this.U||(this.U=!0,this.publish("hoverstart",F.pageX,F.pageY,R)),this.publish("hovermove",F.pageX,F.pageY,R),this.T&&(this.N=!0,this.publish("dragstart",F.pageX,F.pageY,R),this.publish("dragmove",F.pageX,F.pageY,R))))};
g.X.BKG=function(R){var F=sGv(this,R);F&&(this.T&&R.preventDefault(),R=R.target,this.publish("hovermove",F.pageX,F.pageY,R),this.T&&this.publish("dragmove",F.pageX,F.pageY,R))};
g.X.Nx=function(R){var F=sGv(this,R);if(F){uq(this);hX(this);this.U=!1;var n=R.target;this.T&&(this.X||R.preventDefault(),this.N=!1,this.publish("dragend",F.pageX,F.pageY,n));this.publish("hoverend",F.pageX,F.pageY,n)}};
g.X.oG=function(){this.T&&(g.WI&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");uq(this);g.fG.prototype.oG.call(this)};
var pB9=!1;g.a(AX9,g.N);AX9.prototype.TZ=function(){g.fY(this.element,"display","none");this.K.logVisibility(this.T,!1)};g.a(IG,pi);IG.prototype.J1=function(R,F){this.Zo()||(this.V=[R,F],this.T.subscribe("dragmove",this.Z,this),this.T.subscribe("dragend",this.W,this),this.N||g.eI(this.delay))};
IG.prototype.lS=function(){if(this.J){this.N=!0;this.jQ=this.api.getPlaybackRate();this.PG=this.api.getPlayerStateObject().isPaused();var R=this.speedmasterUserEdu;g.fY(R.element,"display","");R.K.logVisibility(R.T,!0);this.api.setPlaybackRate(2);this.api.hideControls();this.api.playVideo();this.X&&(this.X.Oy=!0);this.Nq&&(this.Nq.CE=!0);this.B("enable_smart_skip_speedmaster_on_web")&&this.api.publish("speedmasterchanged",!0)}};
IG.prototype.Z=function(R,F){if(!this.N){R=[R,F];var n=this.V;n&&R&&n.length===2&&R.length===2?(F=Math.abs(n[0]-R[0]),n=Math.abs(n[1]-R[1]),F=Math.sqrt(F*F+n*n)):F=-1;F<10?this.V=R:KN(this)}};
IG.prototype.W=function(){KN(this)};g.a(TKR,pi);g.a(DV,g.v2);DV.prototype.preventDefault=function(){g.v2.prototype.preventDefault.call(this);this.T&&this.T.preventDefault()};
DV.prototype.stopPropagation=function(){g.v2.prototype.stopPropagation.call(this);this.T&&this.T.stopPropagation()};g.a(g.iq,y4);g.X=g.iq.prototype;g.X.Ik=function(){return!0};
g.X.isView=function(){return!1};
g.X.Uu=function(){return!1};
g.X.Fs=function(){return this.T};
g.X.Eq=function(){return this.T.src};
g.X.Gz=function(R){var F=this.getPlaybackRate();this.T.src=R;this.setPlaybackRate(F)};
g.X.b6=function(){this.T.removeAttribute("src")};
g.X.getPlaybackRate=function(){try{return this.T.playbackRate>=0?this.T.playbackRate:1}catch(R){return 1}};
g.X.setPlaybackRate=function(R){this.getPlaybackRate()!==R&&(this.T.playbackRate=R);return R};
g.X.N7=function(){return this.T.loop};
g.X.setLoop=function(R){this.T.loop=R};
g.X.canPlayType=function(R,F){return this.T.canPlayType(R,F)};
g.X.isPaused=function(){return this.T.paused};
g.X.isSeeking=function(){return this.T.seeking};
g.X.isEnded=function(){return this.T.ended};
g.X.vH=function(){return this.T.muted};
g.X.wA=function(R){pb();this.T.muted=R};
g.X.Wo=function(){return this.T.played||Fn([],[])};
g.X.vB=function(){try{var R=this.T.buffered}catch(F){}return R||Fn([],[])};
g.X.Dr=function(){return this.T.seekable||Fn([],[])};
g.X.Bf=function(){var R=this.T;return R.getStartDate?R.getStartDate():null};
g.X.getCurrentTime=function(){return this.T.currentTime};
g.X.setCurrentTime=function(R){this.T.currentTime=R};
g.X.getDuration=function(){return this.T.duration};
g.X.load=function(){var R=this.T.playbackRate;try{this.T.load()}catch(F){}this.T.playbackRate=R};
g.X.pause=function(){this.T.pause()};
g.X.play=function(){var R=this.T.play();if(!R||!R.then)return null;R.then(void 0,function(){});
return R};
g.X.Is=function(){return this.T.readyState};
g.X.CJ=function(){return this.T.networkState};
g.X.T_=function(){return this.T.error?this.T.error.code:null};
g.X.xk=function(){return this.T.error?this.T.error.message:""};
g.X.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.T instanceof window.HTMLVideoElement&&this.T.getVideoPlaybackQuality)return this.T.getVideoPlaybackQuality();if(this.T){var R=this.T,F=R.webkitDroppedFrameCount;if(R=R.webkitDecodedFrameCount)return{droppedVideoFrames:F||0,totalVideoFrames:R}}return{}};
g.X.oa=function(){return!!this.T.webkitCurrentPlaybackTargetIsWireless};
g.X.DB=function(){return!!this.T.webkitShowPlaybackTargetPicker()};
g.X.togglePictureInPicture=function(){var R=this.T,F=window.document;window.document.pictureInPictureEnabled?this.T!==F.pictureInPictureElement?R.requestPictureInPicture():F.exitPictureInPicture():sy()&&R.webkitSetPresentationMode(R.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")};
g.X.wZ=function(){var R=this.T;return new g.z5(R.offsetLeft,R.offsetTop)};
g.X.getSize=function(){return g.A_(this.T)};
g.X.setSize=function(R){g.X6(this.T,R)};
g.X.getVolume=function(){return this.T.volume};
g.X.setVolume=function(R){pb();this.T.volume=R};
g.X.FU=function(R){this.W[R]||(this.T.addEventListener(R,this.listener),this.W[R]=this.listener)};
g.X.setAttribute=function(R,F){this.T.setAttribute(R,F)};
g.X.removeAttribute=function(R){this.T.removeAttribute(R)};
g.X.hasAttribute=function(R){return this.T.hasAttribute(R)};
g.X.xU=i9(52);g.X.wN=i9(54);g.X.PD=i9(56);g.X.a_=i9(58);g.X.qs=function(){return j3(this.T)};
g.X.Ig=function(R){g.z0(this.T,R)};
g.X.Fu=function(R){return g.qu(this.T,R)};
g.X.Nm=function(){return g.xW(document.body,this.T)};
g.X.audioTracks=function(){var R=this.T;if("audioTracks"in R)return R.audioTracks};
g.X.oG=function(){for(var R=g.m(Object.keys(this.W)),F=R.next();!F.done;F=R.next())F=F.value,this.T.removeEventListener(F,this.W[F]);y4.prototype.oG.call(this)};
g.X.Ye=function(R){this.T.disableRemotePlayback=R};g.a(x3,g.N);g.a(Y3,g.N);Y3.prototype.show=function(){g.N.prototype.show.call(this);this.CH()};
Y3.prototype.hide=function(){g.N.prototype.hide.call(this);this.delay.stop();this.J.stop()};
Y3.prototype.CH=function(){var R=(0,g.h1)(),F=yXV(this.eQ);k3(this.T,F.bandwidth_samples);k3(this.Z,F.network_activity_samples);k3(this.N,F.live_latency_samples);k3(this.U,F.buffer_health_samples);var n={};F=g.m(Object.entries(F));for(var V=F.next();!V.done;V=F.next()){var r=g.m(V.value);V=r.next().value;r=r.next().value;this.X[V]!==r&&(n[V]=" "+String(r));this.X[V]=r}this.update(n);R=(0,g.h1)()-R>25?5E3:500;this.delay.start(R)};
Y3.prototype.V=function(){this.W?(this.position+=1,this.position>15&&(this.W=!1)):(--this.position,this.position<=0&&(this.W=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.J.start(2E4)};g.a(HN_,pi);g.a(JX,g.G);JX.prototype.T=function(){var R=(0,g.h1)()-this.startTime;R=R<this.duration?R/this.duration:1;this.U(UA(Boq,R));R<1&&this.delay.start()};
var Boq=new yj(0,0,.4,0,.2,1,1,1),g3E=/[0-9.-]+|[^0-9.-]+/g;g.a(GO,g.N);GO.prototype.onClick=function(){var R=this.api.app;var F=R.B("web_log_theater_mode_visibility")?!R.ey():!R.F8;R.eQ.HG("SIZE_CLICKED",F);this.api.logClick(this.element)};
GO.prototype.CH=function(){this.dg(this.api.Pe()&&!this.api.isFullscreen()&&this.api.getPresentingPlayerType()!==3);if(this.JJ){var R=this.api.ey();this.ey!==R&&this.tN(R)}this.api.logVisibility(this.element,this.JJ)};
GO.prototype.tN=function(R){var F=this.api.B("delhi_modern_web_player_icons")?this.api.B("web_player_imax_theater_mode")?R?{j:"svg",S:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M3 19h11v2H3l-.20-.01a2 2 0 0 1-1.78-1.78L1 19v-7h2v7Zm19.00-5a1 1 0 1 1 0 2h-4v4a1 1 0 1 1-2 0v-6h6ZM21 3a2 2 0 0 1 2 2v7h-2V5H10V3h11ZM7.00 3a1 1 0 0 1 1 1v6h-6a1 1 0 0 1 0-2h4V4a1 1 0 0 1 1-1Z"}}]}:{j:"svg",S:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",
S:{d:"M21 3a2 2 0 0 1 2 2v14a2 2 0 0 1-1.79 1.99L21 21H3l-.20-.01a2 2 0 0 1-1.78-1.78L1 19V5a2 2 0 0 1 2-2h18ZM3 19h18V5H3v14Zm15-8a1 1 0 0 1 1 1v5h-5a1 1 0 1 1 0-2h3v-3a1 1 0 0 1 1-1Zm-8-4a1 1 0 1 1 0 2H7v3a1 1 0 1 1-2 0V7h5Z"}}]}:R?{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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 15V5H21V15H3ZM16.87 6.72H16.86L16.79 6.79L13.58 10L16.79 13.20C16.88 13.30 16.99 13.37 17.11 13.43C17.23 13.48 17.37 13.51 17.50 13.51C17.63 13.51 17.76 13.48 17.89 13.43C18.01 13.38 18.12 13.31 18.21 13.21C18.31 13.12 18.38 13.01 18.43 12.89C18.48 12.76 18.51 12.63 18.51 12.50C18.51 12.37 18.48 12.23 18.43 12.11C18.37 11.99 18.30 11.88 18.20 11.79L16.41 10L18.20 8.20L18.27 8.13C18.42 7.93 18.50 7.69 18.49 7.45C18.47 7.20 18.37 6.97 18.20 6.79C18.02 6.62 17.79 6.52 17.55 6.50C17.30 6.49 17.06 6.57 16.87 6.72ZM5.79 6.79C5.60 6.98 5.50 7.23 5.50 7.5C5.50 7.76 5.60 8.01 5.79 8.20L7.58 10L5.79 11.79L5.72 11.86C5.57 12.06 5.49 12.30 5.50 12.54C5.51 12.79 5.62 13.02 5.79 13.20C5.97 13.37 6.20 13.48 6.45 13.49C6.69 13.50 6.93 13.42 7.13 13.27L7.20 13.20L10.41 10L7.20 6.79C7.01 6.60 6.76 6.50 6.5 6.50C6.23 6.50 5.98 6.60 5.79 6.79ZM3 19V17H21V19H3Z",
fill:"white"}}]}:{j:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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 15V5H21V15H3ZM7.87 6.72L7.79 6.79L4.58 10L7.79 13.20C7.88 13.30 7.99 13.37 8.11 13.43C8.23 13.48 8.37 13.51 8.50 13.51C8.63 13.51 8.76 13.48 8.89 13.43C9.01 13.38 9.12 13.31 9.21 13.21C9.31 13.12 9.38 13.01 9.43 12.89C9.48 12.76 9.51 12.63 9.51 12.50C9.51 12.37 9.48 12.23 9.43 12.11C9.37 11.99 9.30 11.88 9.20 11.79L7.41 10L9.20 8.20L9.27 8.13C9.42 7.93 9.50 7.69 9.48 7.45C9.47 7.20 9.36 6.97 9.19 6.80C9.02 6.63 8.79 6.52 8.54 6.51C8.30 6.49 8.06 6.57 7.87 6.72ZM14.79 6.79C14.60 6.98 14.50 7.23 14.50 7.5C14.50 7.76 14.60 8.01 14.79 8.20L16.58 10L14.79 11.79L14.72 11.86C14.57 12.06 14.49 12.30 14.50 12.54C14.51 12.79 14.62 13.02 14.79 13.20C14.97 13.37 15.20 13.48 15.45 13.49C15.69 13.50 15.93 13.42 16.13 13.27L16.20 13.20L19.41 10L16.20 6.79C16.01 6.60 15.76 6.50 15.5 6.50C15.23 6.50 14.98 6.60 14.79 6.79ZM3 19V17H21V19H3Z",
fill:"white"}}]}:R?{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,S:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,S:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};this.ey==null||this.api.B("delhi_modern_web_player_icons")?this.updateValue("icon",F):mfI(this.transition,
this.element,F);R=(this.ey=R)?"Default view":"Theater mode";this.api.B("player_tooltip_data_title_killswitch")?this.update({title:g.Mj(this.api,R,"t"),"data-title-no-tooltip":R}):this.update({"tooltip-title":g.Mj(this.api,R,"t"),"data-title-no-tooltip":R});this.api.Ew()};g.a(ONE,pi);g.a(iN9,pi);g.X=iN9.prototype;g.X.onVideoDataChange=function(R){this.rG();this.videoId=R.videoId;this.N=this.T=void 0;this.timelyActions=KbR(R);xfI(this);Mf(this);this.iL()};
g.X.yB=function(R){var F=R.oldState,n=R.state,V=n.seekSource;!g.E(F,16)&&g.E(n,16)?this.Lh(V!=null?V:void 0):g.E(F,16)&&!g.E(n,16)&&this.aO();R=R.state;R=!R.isCued()&&!g.E(R,1024);this.U.dg(R)};
g.X.iL=function(){var R=this.n5();R&&this.api.iL(R)};
g.X.rG=function(){this.api.Bw("timelyAction",1);if(this.T!==void 0)this.onCueRangeExit(this.T)};
g.X.n5=function(){if(this.timelyActions){for(var R=[],F=g.m(this.timelyActions),n=F.next();!n.done;n=F.next())n=n.value,n=n.startTimeMilliseconds!=null&&n.endTimeMilliseconds!=null&&n.cueRangeId!=null?new g.NQ(Number(n.startTimeMilliseconds),Number(n.endTimeMilliseconds),{id:n.cueRangeId,namespace:"timelyAction"}):void 0,n&&R.push(n);return R}};
g.X.onCueRangeEnter=function(R){var F=dK(this,R);F&&this.J[R]!==void 0&&(F.maxShowCount===void 0||(F==null?void 0:F.maxShowCount)>this.J[R])&&(this.T=R,this.Ta())};
g.X.onCueRangeExit=function(R){var F=kO6(this,R);F&&this.T===R&&this.api.HG("innertubeCommand",F);Mf(this);this.T=void 0};
g.X.Lh=function(R){this.N=R};
g.X.aO=function(){this.Ta();this.N=void 0};
g.X.Ta=function(){if(this.T!==void 0){var R=(R=dK(this,this.T))&&R.onCueRangeEnter?Dt(R.onCueRangeEnter):void 0;var F=dK(this,this.T);a:if(F&&F.additionalTrigger){var n=g.m(F.additionalTrigger);for(var V=n.next();!V.done;V=n.next())if(V=V.value,V.type){var r=void 0,v=void 0;if((r=this.lS[V.type])==null?0:r((v=V.args)!=null?v:{})){n=!0;break a}}n=!1}else n=!0;R&&n&&(this.api.HG("innertubeCommand",R),YbN(this,F),this.J[this.T]!==void 0&&this.J[this.T]++,this.UZ=!0)}};
g.X.oG=function(){this.timelyActions=this.N=this.T=this.videoId=void 0;this.J={};this.rG();Mf(this);pi.prototype.oG.call(this)};g.a(dfN,pi);g.a(lq,yk);lq.prototype.J=function(R){this.N(R?2:1)};
lq.prototype.v_=function(){var R=this.K.getPresentingPlayerType();R===2||R===3?this.T&&(this.T=!1,this.T9.W_(this)):(R=this.getVoiceBoostState(),R!==1?(R===0?(UY(this,this.U()===2),this.setEnabled(!0)):(UY(this,!1),this.setEnabled(!1)),this.T||(this.T9.xF(this),this.T=!0)):this.T&&(this.T9.W_(this),this.T=!1))};
lq.prototype.oG=function(){this.T9.W_(this);yk.prototype.oG.call(this)};g.a(Nf,pi);Nf.prototype.getVoiceBoostUserPreference=function(){return this.T};
Nf.prototype.setVoiceBoostUserPreference=function(R){this.api.m2("vb_set",{pref:R});g.i6("yt-player-voice-boost",R,31536E4);R!==this.T&&(this.T=R,this.updateEnvironmentData(),this.getVoiceBoostState()!==1&&this.api.hp(),this.api.y7())};
Nf.prototype.getVoiceBoostState=function(){return this.api.a8(1)};
Nf.prototype.updateEnvironmentData=function(){this.api.D().L7=this.T};g.a($3,pi);$3.prototype.oG=function(){this.V&&(g.ok(this.V),this.V=void 0);pi.prototype.oG.call(this)};
$3.prototype.eG=function(){(this.U?!this.T:this.N)&&ZV(this)};
$3.prototype.jy=function(R,F,n){var V=this;if(NK9(R)){var r=n||"";if(this.T)F=e6(this,r),E3W(R,F);else{var v=new g.pa;F.push(v.promise);this.W.promise.then(function(){var f=e6(V,r);E3W(R,f);v.resolve()})}}};
$3.prototype.Wq=function(R){var F=this;if(this.U||this.N)R.S9=e6(this,R.videoId),this.T||(this.J=new oi,this.W.promise.then(function(){F.Qc.R9("pot_if");R.S9=e6(F,R.videoId)}))};g.a(Ra,g.N);g.X=Ra.prototype;g.X.Dq=function(){var R=this.K.getVideoData({playerType:1}),F,n,V=(n=((R==null?0:(F=R.suggestions)==null?0:F.length)?R.suggestions:(R==null?0:g.yq(R))?[g.yq(R)]:[])[0])==null?void 0:n.BB("mqdefault.jpg");this.U&&V&&g.fY(this.U,"background-image",V?'url("'+V+'")':"")};
g.X.onClick=function(){this.K.logClick(this.element)};
g.X.nX=function(R){this.dg([1,2].includes(R));vYf(this,R)};
g.X.dg=function(R){g.N.prototype.dg.call(this,R);this.element.setAttribute("aria-hidden",String(!R));R&&this.Dq()};
g.X.oG=function(){g.N.prototype.oG.call(this)};g.a(g.nz,g.N);g.nz.prototype.select=function(){this.api.bu(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.wC||void 0)&&this.api.logClick(this.element)};
g.nz.prototype.onClick=function(R){if(g.Pp(this.api.D())&&this.api.B("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var F=this.suggestion.n6(),n={};g.b4(this.api,n);F=g.DI(F,n);g.HN(F,this.api,R)}else g.jK(R,this.api,this.U,this.suggestion.sessionData||void 0)&&this.select()};
g.nz.prototype.onKeyPress=function(R){switch(R.keyCode){case 13:case 32:R.defaultPrevented||(this.select(),R.preventDefault())}};
g.nz.prototype.onVideoDataChange=function(){var R=this.api.getVideoData(),F=this.api.D();this.U=R.On?!1:F.J};g.a(tkN,g.N);g.X=tkN.prototype;g.X.oG=function(){this.hide();g.Kw(this.X);g.TW(this.stills);this.stills.length=0;this.N&&(this.N.remove(),this.N=void 0);this.T&&(this.T.remove(),this.T=void 0);this.U&&(this.U.remove(),this.U=void 0);g.N.prototype.oG.call(this)};
g.X.setCommentsButton=function(R){R!==this.T&&(this.T&&this.T.remove(),this.T=R)&&(g.z0(this.T,"ytp-fullscreen-grid-action-button"),this.V.appendChild(this.T))};
g.X.setDescriptionButton=function(R){R!==this.U&&(this.U&&this.U.remove(),this.U=R)&&(g.z0(this.U,"ytp-fullscreen-grid-action-button"),DT(this.V,this.U,0))};
g.X.g5=function(R){this.jQ&&this.jQ(R)};
g.X.onVideoDataChange=function(){if(!this.J1){this.videoData=this.player.getVideoData({playerType:1});var R,F,n,V,r;var v=(((R=this.videoData)==null?0:(F=R.suggestions)==null?0:F.length)?(n=this.videoData)==null?void 0:n.suggestions:((V=this.videoData)==null?0:g.yq(V))?[(r=this.videoData)==null?void 0:g.yq(r)]:[]).slice(0,18);if((R=this.Nq)&&this.J)if(g.Ko(R),v.length)for(this.stills.length>v.length&&g.TW(this.stills.splice(v.length)),this.stills.length=v.length,F=0;F<v.length;F++){if(n=v[F])V=this.stills[F],
V||(V=new g.nz(this.player),this.stills[F]=V),g.fRN(V,n),R&&R.appendChild(V.element)}else g.TW(this.stills),this.stills.length=0}};
g.X.nX=function(R,F){F=F===void 0?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":F;if(this.currentState!==R){this.currentState=R;this.Z&&this.W?this.W.nX(R):this.update({icon:R===2?MPR():{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"g",S:{filter:"url(#filter0_d_3104_799356)"},L:[{j:"path",S:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z",
fill:"white"}}]},{j:"defs",L:[{j:"filter",S:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},L:[{j:"feFlood",S:{"flood-opacity":"0",result:"BackgroundImageFix"}},{j:"feColorMatrix",S:{"in":"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{j:"feOffset"},{j:"feGaussianBlur",S:{stdDeviation:"0.5"}},{j:"feComposite",S:{in2:"hardAlpha",operator:"out"}},{j:"feColorMatrix",S:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}},
{j:"feBlend",S:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{j:"feBlend",S:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}});this.J.scrollTop=0;this.dg(this.currentState!==0);if(R===2){var n=g.CJ(),V=this.J.visualElement;n&&V&&VH(n,V,F)}if(R!==0)this.element.setAttribute("tabindex","0"),zhv(this,R);else if(this.element.setAttribute("tabindex","-1"),zhv(this,R),!this.Z&&(R=this.sZ("ytp-fullscreen-grid-expand-button"))&&
(R.removeAttribute("title"),R.removeAttribute("data-title-no-tooltip"),R.removeAttribute("aria-label")),R=this.sZ("ytp-fullscreen-grid-hover-overlay"))R.removeAttribute("title"),R.removeAttribute("data-title-no-tooltip"),R.removeAttribute("aria-label");this.player.Ew()}};g.a(Qa9,pi);g.X=Qa9.prototype;g.X.F2G=function(){this.J&&this.N!==0&&this.O9("INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")};
g.X.O9=function(R){var F=this;this.J&&(R==="INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"&&(this.Nq&&clearTimeout(this.Nq),this.Nq=window.setTimeout(function(){F.Nq=null},1E3)),this.N===1?r9(this,2,R):r9(this,1,R))};
g.X.setFullscreenGrid=function(R){if(this.lS&&this.U){var F=this.U;F.J1&&R!==F.N&&(F.N&&F.N.remove(),F.N=R,F.N&&F.J.appendChild(F.N))}};
g.X.setCommentsButton=function(R){this.U&&this.U.setCommentsButton(R)};
g.X.setDescriptionButton=function(R){this.U&&this.U.setDescriptionButton(R)};
g.X.setFullscreenQuickActions=function(R){this.J1&&this.J1.remove();R?(g.z0(R,"ytp-fullscreen-quick-actions"),this.B("web_player_overlay_positioned_layout")?(R.setAttribute("data-overlay-order","13"),this.api.B6(R,4)):(g.z0(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.RL(this.api,R,4))):g.Qj(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions");this.J1=R;VT(this)};
g.X.setPlayerOverlayVideoDetailsRenderer=function(R){this.playerOverlayVideoDetailsRenderer&&this.playerOverlayVideoDetailsRenderer.remove();if(R){g.z0(R,"ytp-fullscreen-metadata");g.z0(this.api.getRootNode(),"ytp-hide-fullscreen-title");R.setAttribute("data-overlay-order","1");var F=this.api.B("delhi_modern_web_player_fullscreen_metadata_bottom"),n=F?3:1;F=F?"ytp-fullscreen-metadata-bottom":"ytp-fullscreen-metadata-top";g.z0(this.api.getRootNode(),F);this.B("web_player_overlay_positioned_layout")?
this.api.B6(R,n):g.RL(this.api,R,4)}else g.Qj(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.Qj(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"),g.Qj(this.api.getRootNode(),"ytp-fullscreen-metadata-top");this.playerOverlayVideoDetailsRenderer=R;VT(this)};g.a(sav,pi);g.a(zs,g.G);zs.prototype.T=function(){for(var R=g.m(g.Cq.apply(0,arguments)),F=R.next();!F.done;F=R.next())(F=F.value)&&this.features.push(F)};
zs.prototype.oG=function(){for(var R=this.features.length-1;R>=0;R--)this.features[R].dispose();this.features.length=0;g.G.prototype.oG.call(this)};pRW.prototype.reset=function(){this.T=this.U=NaN};g.X=XRI.prototype;g.X.reset=function(){H8(this.timerName)};
g.X.tick=function(R,F){uj(R,F,this.timerName)};
g.X.R9=function(R){return OI(R,void 0,this.timerName)};
g.X.kp=function(R){g.Jz(R,void 0,this.timerName)};
g.X.infoGel=function(R){g.B8(R,this.timerName)};g.a(CKE,g.fG);g.X=CKE.prototype;g.X.hasNext=function(R){return this.loop||!!R||this.index+1<this.length};
g.X.hasPrevious=function(R){return this.loop||!!R||this.index-1>=0};
g.X.setShuffle=function(R){this.shuffle=R;R=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var F=0;F<this.items.length;F++)this.order.push(F);this.index=R;this.U++;if(this.shuffle){R=this.order[this.index];for(F=1;F<this.order.length;F++){var n=Math.floor(Math.random()*(F+1)),V=this.order[F];this.order[F]=this.order[n];this.order[n]=V}for(F=0;F<this.order.length;F++)this.order[F]===R&&(this.index=F);this.U++}this.publish("shuffle")};
g.X.BB=function(R){R=R||"hqdefault.jpg";var F=this.Su[R];if(F||this.Qz.J1||R==="sddefault.jpg"||R==="hq720.jpg"||R==="maxresdefault.jpg")return F;if(this.N.length)return ST(this.Qz,this.N[0],R)};
g.X.findIndex=function(R){if(R&&(R=R.videoId,!this.items[this.index]||this.items[this.index].video_id!==R))for(var F=0;F<this.items.length;F++)if(this.items[F].video_id===R){this.index=F;break}};
g.X.onReady=function(R){this.T=R;this.loaded&&g.ak(this.T,0)};
g.X.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.X.n6=function(){return this.Qz.getVideoUrl(g.cR(this).videoId,this.getPlaylistId())};
g.X.oG=function(){this.T=null;g.TW(this.items);g.fG.prototype.oG.call(this)};var w9=new Map;g.a(g.Lz,g.fG);g.X=g.Lz.prototype;g.X.create=function(){};
g.X.load=function(){this.loaded=!0};
g.X.unload=function(){this.loaded=!1};
g.X.xc=function(){};
g.X.yu=function(){return!0};
g.X.oG=function(){this.loaded&&this.unload();g.fG.prototype.oG.call(this)};
g.X.fC=function(){return{}};
g.X.getOptions=function(){return[]};g.a(g.pz,g.G);g.X=g.pz.prototype;g.X.zf=i9(61);g.X.MF=function(){};
g.X.Lx=function(){};
g.X.Bo=function(){return""};
g.X.XX=i9(62);g.X.jy=function(R,F){var n=this;if(this.eQ.D().B("html5_dispatch_tracklist_loaded_event")){this.N&&(this.N.reject(),this.N=null);var V=[];this.eQ.publish("trackListLoaded",this.T,V,F);V.length?(F=new g.pa,F.promise.then(R.jy,function(){}),this.N=F,Promise.all(V).then(F.resolve,F.reject).finally(function(){n.N=null})):R.jy()}else R.jy()};
g.X.oG=function(){this.N&&(this.N.reject(),this.N=null);this.Lx();g.G.prototype.oG.call(this)};g.a(g.XP,g.pz);g.XP.prototype.zf=i9(60);g.XP.prototype.MF=function(R){if(this.audioTrack)for(var F=g.m(this.audioTrack.captionTracks),n=F.next();!n.done;n=F.next())g.s0(this.T,n.value);this.jy(R,this.videoData.videoId)};
g.XP.prototype.Bo=function(R,F){var n=R.rD(),V={fmt:F};if(F==="srv3"||F==="3"||F==="json3")g.PC()?Object.assign(V,{xorb:2,xobt:1,xovt:1}):Object.assign(V,{xorb:2,xobt:3,xovt:3});R.translationLanguage&&(V.tlang=g.x_(R));this.J&&(V.xosf="1");Object.assign(V,this.eQ.D().T);return ql(n,V)};
g.XP.prototype.Lx=function(){this.U&&this.U.abort()};g.m3v=new Map;g.a(g.aa,g.pz);g.aa.prototype.zf=i9(59);
g.aa.prototype.MF=function(R){var F=this,n=this.J,V={type:"list",tlangs:1,v:this.videoId,vssids:1};this.Kz&&(V.asrs=1);n=ql(n,V);this.Lx();this.U=g.ux(n,{format:"RAW",onSuccess:function(r){F.U=null;if((r=r.responseXML)&&r.firstChild){for(var v=r.getElementsByTagName("track"),f=0;f<v.length;f++){var z=v[f],q=z.getAttribute("lang_code"),Q=z.getAttribute("lang_translated"),c=z.getAttribute("name"),w=z.getAttribute("kind"),L=z.getAttribute("id"),S=z.getAttribute("lang_default")==="true",p=z.getAttribute("cantran")===
"true";z=z.getAttribute("vss_id");g.s0(F.T,new g.K9({languageCode:q,languageName:Q,name:c,kind:w,id:L,is_servable:!0,is_translateable:p,vss_id:z,is_default:S}))}r=r.getElementsByTagName("target");v=r.length;for(f=0;f<v;f++)q={languageCode:r[f].getAttribute("lang_code"),languageName:r[f].getAttribute("lang_translated"),languageOriginal:r[f].getAttribute("lang_original"),id:r[f].getAttribute("id"),isDefault:r[f].getAttribute("lang_default")==="true"},F.Z[q.languageCode]=q.languageName,F.W.push(q)}F.jy(R,
F.videoId)},
withCredentials:!0})};
g.aa.prototype.Bo=function(R,F){var n=this.J;F={v:this.videoId,type:"track",lang:R.languageCode,name:R.getName(),kind:R.kind,fmt:F};var V=this.eQ.D();V.B("captions_url_add_ei")&&(F.ei=this.eventId);R.translationLanguage&&(F.tlang=g.x_(R));Object.assign(F,V.T);return n=ql(n,F)};
g.aa.prototype.Lx=function(){this.U&&this.U.abort()};g.a(IRN,g.G);g.X=IRN.prototype;g.X.createSubtitlesModuleIfNeeded=function(){ks6(this)&&oa(this,"captions");return!!g.Cz(this)};
g.X.EH=function(){return this.K.getVideoData().EH()};
g.X.Vk=function(){return this.K.getVideoData().Vk()};
g.X.bk=function(){var R=this.A7.get("heartbeat");oa(this,"heartbeat",!1,!0,this.bk);!R&&this.A7.has("heartbeat")&&this.K.publish("offlineslatestatechange")};
g.X.CK=function(){oa(this,"annotations_module",!0,void 0,this.CK);var R=this.A7.get("annotations_module");if(R)for(var F in this.U)if(this.U.hasOwnProperty(F)){var n=F;R.subscribe(n,this.U[n])}};
g.X.fI=function(){if(!this.A7.get("ad"))try{DE9(this)?oa(this,"ad",!1,!0,this.fI):yT(this,"ad")}catch(R){yT(this,"ad"),g.uX(R)}};
g.X.Mc=function(){return this.T};
g.X.NF=function(){var R={},F=g.Cz(this);F&&Object.assign(R,F.NF());return R};
g.X.bQ=function(R,F){Object.assign(this.T,R||null);Object.assign(this.IX,F||null)};
g.X.onVideoDataChange=function(){var R=this.K.getVideoData();this.K.B("enable_wn_infocards")&&g.rZ(R)&&!g.WR(this)&&this.CK()};
g.X.oG=function(){g.G.prototype.oG.call(this);U0(this,1,!0);for(var R=g.m(Object.entries(ndV)),F=R.next();!F.done;F=R.next()){var n=g.m(F.value);F=n.next().value;n=n.next().value;this.J.has(n)&&w9.delete(F)}this.J.clear()};
var UW={},ndV=(UW.ad="ad.js",UW.annotations_module="annotations_module.js",UW.asmjs="asmjs.js",UW.creatorendscreen="annotations_module.js",UW.embed="embed.js",UW.endscreen="endscreen.js",UW.heartbeat="heartbeat.js",UW.kids="kids.js",UW.remote="remote.js",UW.miniplayer="miniplayer.js",UW.offline="offline.js",UW.captions="captions.js",UW.unplugged="unplugged.js",UW.ux="ux.js",UW.webgl="webgl.js",UW.ypc="ypc.js",UW),j_={},$EW=(j_.ad=["ad"],j_.annotations_module=[],j_.asmjs=[],j_.creatorendscreen=[],
j_.embed=[],j_.endscreen=[],j_.heartbeat=["heartbeat"],j_.kids=[],j_.remote=["mdx"],j_.miniplayer=[],j_.offline=[],j_.captions=[],j_.unplugged=[],j_.ux=[],j_.webgl=["webgl"],j_.ypc=[],j_),PKN="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat kids remote miniplayer offline captions webgl ypc unplugged ux".split(" ");g.a(rGN,g.fG);g.X=rGN.prototype;g.X.wv=function(R){R=new g.z5(R.pageX,R.pageY);if(!q2(R,this.J)){var F=2;this.Z&&(F|=8);this.J=R;BR(this,F,!0)}};
g.X.TG2=function(){BR(this,2048,!0)};
g.X.OCG=function(R){this.Z&&BR(this,8,!0);if(this.api.B("allow_autohide_on_paused_videos")){R=R.relatedTarget;var F=this.target instanceof HTMLElement?this.target:this.target.element;if(R instanceof Element&&(F=F.getBoundingClientRect(),R=R.getBoundingClientRect(),R.top>=F.top&&R.right<=F.right&&R.bottom<=F.bottom&&R.left>=F.left))return}BR(this,2,!1)};
g.X.NO=function(R){var F=new g.z5(R.pageX,R.pageY);q2(F,this.J)||(this.J=F,(R=R.target)&&this.KK(R)&&(BR(this,4,!0),this.T.ZO(this.N),this.N=this.T.C(this.target,"mouseover",this.g0),this.X=this.T.C(this.target,"mouseout",this.g0)))};
g.X.g0=function(R){R=R.relatedTarget;R&&this.KK(R)||(this.J=new g.z5(NaN,NaN),vdk(this))};
g.X.snG=function(){BR(this,1,!0)};
g.X.le=function(R){R=R.target;R instanceof Element&&!(R.tabIndex>0)||BR(this,1,!0)};
g.X.cj=function(){this.Z=!0;this.T.ZO(this.W);this.W=this.T.C(document,"mouseup",this.PR)};
g.X.PR=function(){this.Z=!1;BR(this,8,!1);this.T.ZO(this.W);this.W=this.T.C(this.target,"mousedown",this.cj)};
g.X.ov=function(R){if(R=(R=R.changedTouches)&&R[0])this.lS=R.identifier,this.T.ZO(this.V),this.V=this.T.C(this.target,"touchend",this.lC,void 0,!0),BR(this,1024,!0)};
g.X.lC=function(R){if(R=R.changedTouches)for(var F=0;F<R.length;F++){var n=R[F];if(n.identifier===this.lS){var V=n;break}}V&&(this.T.ZO(this.V),this.V=this.T.C(this.target,"touchstart",this.ov,void 0,!0),BR(this,1024,!1))};
g.X.K7=function(){BR(this,2,!0)};
g.X.resize=function(){g.Sl&&vdk(this)};
g.X.toString=function(){return g.fG.prototype.toString.call(this)};g.a(g.O0,g.N);g.X=g.O0.prototype;g.X.dXG=function(){this.CH()};
g.X.CH=function(){var R=this.api.getVideoData(),F=this.api.D(),n=!!this.api.isEmbedsShortsMode();g.ws(this.element,"ytp-shorts-mode",n);n?F=[{j:"svg",S:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},L:[{j:"path",S:{"clip-rule":"evenodd",d:"M83.99 10.81C90.08 21.24 86.62 34.66 76.26 40.79L69.05 45.06L74.17 47.38C81.58 50.74 86.52 57.99 86.96 66.17C87.40 74.34 83.27 82.09 76.26 86.24L32.76 111.97C22.41 118.10 9.08 114.61 3.00 104.18C-3.08 93.75 .37 80.33 10.73 74.20L17.94 69.93L12.82 67.61C5.41 64.25 .47 57.00 .03 48.82C-0.40 40.65 3.72 32.90 10.73 28.75L54.23 3.02C64.58 -3.10 77.91 .38 83.99 10.81Z",
fill:"#f00","fill-rule":"evenodd"}},{j:"path",S:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:R.On?F=[{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},L:[{j:"path",Y:"ytp-dni-large-play-button-bg",S:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{j:"path",S:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:R.On&&R.B8?F=[{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},L:[{j:"path",Y:"ytp-dni-large-play-button-bg",
S:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{j:"path",S:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:F.Z?(g.ws(this.element,"ytp-touch-device",F.U),F=[F.Z?{j:"svg",S:{height:"100%",version:"1.1",
viewBox:"0 0 60 60",width:"100%"},L:[{j:"path",Y:"ytp-large-play-button-bg",S:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{j:"path",S:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},L:[{j:"path",Y:"ytp-large-play-button-bg",S:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{j:"path",S:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):F=[{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},L:[{j:"path",Y:"ytp-large-play-button-bg",S:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#f03"}},{j:"path",S:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",F);R.On&&R.B8&&this.sZ("ytp-dni-large-play-button-bg").setAttribute("fill",R.B8?R.B8:"#1f1f1f")};
g.X.show=function(){g.N.prototype.show.call(this);this.api.D().B("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)};
g.X.QGG=function(){this.api.getVideoData().mutedAutoplay||(this.api.tP(),this.api.playVideo())};
g.X.Hm2=function(R){this.api.getVideoData().mutedAutoplay||R.preventDefault()};g.a(g.Ia,g.N);g.X=g.Ia.prototype;g.X.show=function(){var R=this;this.JJ||(this.U.C(this.api,"videodatachange",function(){g.eI(R.T)}),this.U.C(this.api,"videoplayerreset",function(){g.eI(R.T)}));
g.N.prototype.show.call(this)};
g.X.hide=function(){this.U&&g.Kw(this.U);g.N.prototype.hide.call(this)};
g.X.G9=function(){g.eI(this.T)};
g.X.onStateChange=function(){g.eI(this.T)};
g.X.l7X=function(){g.eI(this.T)};
g.X.onReset=function(){this.fade.stop();this.hide();g.eI(this.T)};
g.X.CH=function(){var R=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(R.isPlaying()||R.isPaused()))var F=!0;else(F=this.api.WI().A7.get("ypc"))&&F.D_?F=!0:(F=this.api.D(),F=g.E(R,2)&&g.Nj(this.api)&&F.NP?!0:!1);F?(F=!0,this.N.hide()):(this.N.show(),F=R.isCued()&&this.api.getPresentingPlayerType()!==2||g.E(R,2)&&!g.Nj(this.api)&&!this.api.xx()||g.E(R,1024)?!0:!1);var n=this.api.getVideoData();F&&!n.e9?(this.fade.show(),this.H4H(this.api.getPlaylist(),n)):(this.fade.hide(),
g.E(R,1)||this.fade.stop())};
g.X.H4H=function(){for(var R=this.api.D(),F,n=g.m(g.Cq.apply(0,arguments)),V=n.next();!V.done;V=n.next())if(V=V.value,!(!V||V instanceof g.sr&&!V.videoId)){F=this.api.fH().getPlayerSize();var r=g.p9(),v=F.width*r;r*=F.height;if(v>1280||r>720)if(F=V.BB("maxresdefault.jpg"))break;if(v>640||r>480)if(F=V.BB("maxresdefault.jpg"))break;if(v>320||r>180)if(F=V.BB("sddefault.jpg")||V.BB("hqdefault.jpg")||V.BB("mqdefault.jpg"))break;if(F=V.BB("default.jpg"))break}g.C9(R)&&(R=new Image,R.addEventListener("load",
function(){MaR()}),R.src=F?F:"",this.api.Mc().tick("ftr"));
this.J.style.backgroundImage=F?"url("+F+")":""};g.a(g.Kz,g.N);g.Kz.prototype.resize=function(){};
g.Kz.prototype.U=function(R){var F=this;this.N=!1;zG_(this);var n=R.KL,V=this.api.D();n!=="GENERIC_WITHOUT_LINK"||V.Z?n==="TOO_MANY_REQUESTS"?(V=this.api.getVideoData(),this.setContent(xY(this,"TOO_MANY_REQUESTS_WITH_LINK",V.n6(),void 0,void 0,void 0,!1))):n!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||V.Z?this.api.D().B("html5_enable_bandaid_error_screen")&&n==="HTML5_SPS_UMP_STATUS_REJECTED"&&!V.Z?(V=V.hostLanguage,R="//support.google.com/youtube?p=videoError",V&&(R=g.DI(R,{hl:V})),this.setContent(xY(this,
"HTML5_SPS_UMP_STATUS_REJECTED",R))):this.api.D().B("enable_adb_handling_in_sabr")&&n==="BROWSER_OR_EXTENSION_ERROR"&&!V.Z?(V=V.hostLanguage,R="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",V&&(R=g.DI(R,{hl:V})),this.setContent(xY(this,"BROWSER_OR_EXTENSION_ERROR",R))):this.setContent(g.DR(R.errorMessage)):this.setContent(xY(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(R=V.hostLanguage,n=
"//support.google.com/youtube/?p=player_error1",R&&(n=g.DI(n,{hl:R})),this.setContent(xY(this,"GENERIC_WITH_LINK_AND_CPN",n,!0)),V.HI&&!V.J&&tyN(this,function(v){if(g.jK(v,F.api,!L9(F.api.D()))){v={as3:!1,html5:!0,player:!0,cpn:F.api.getVideoData().clientPlaybackNonce};var f=F.api;f.yZ("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:v});f.isFullscreen()&&f.toggleFullscreen()}}));
if(this.N){var r=this.sZ("ytp-error-link");r&&(this.api.createClientVe(r,this,216104),this.api.logVisibility(r,!0),tyN(this,function(){F.api.logClick(r)}))}};
var fdk=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.a(qcE,g.N);qcE.prototype.B6=function(R,F,n){n=n===void 0?!1:n;switch(F){case 1:kY(this,R,this.N,n);break;case 2:kY(this,R,this.J,n);break;case 3:kY(this,R,this.T,n);break;case 4:kY(this,R,this.U,n)}};g.a(Qnj,g.N);g.X=Qnj.prototype;g.X.onClick=function(R){this.innertubeCommand?(this.K.HG("innertubeCommand",this.innertubeCommand),R.preventDefault()):g.jK(R,this.K,!0);this.K.logClick(this.element)};
g.X.onVideoDataChange=function(R,F){wyj(this,F);this.Ll&&ScW(this,this.Ll)};
g.X.Fj=function(R){var F=this.K.getVideoData();this.videoId!==F.videoId&&wyj(this,F);this.T&&ScW(this,R.state);this.Ll=R.state};
g.X.rW=function(){this.fade.show();this.K.publish("paidcontentoverlayvisibilitychange",!0);this.K.logVisibility(this.element,!0)};
g.X.nC=function(){this.fade.hide();this.K.publish("paidcontentoverlayvisibilitychange",!1);this.K.logVisibility(this.element,!1)};g.a(YY,g.N);YY.prototype.hide=function(){this.T.stop();this.message.style.display="none";g.N.prototype.hide.call(this)};
YY.prototype.onStateChange=function(R){this.nX(R.state)};
YY.prototype.nX=function(R){if(g.E(R,128)||this.api.j8())var F=!1;else{var n;F=this.api.B("web_watch_enable_multiview_manager")&&((n=this.api.getVideoData())==null?0:wZ(n))?!1:g.E(R,16)||g.E(R,1)?!0:!1}F?this.T.start():this.hide()};
YY.prototype.U=function(){this.message.style.display="block"};g.a(Jr,ti);Jr.prototype.onMutedAutoplayChange=function(R){this.U&&(R?(LUe(this),this.rW()):(this.T&&this.logClick(),this.nC()))};
Jr.prototype.yB=function(R){this.api.isMutedByMutedAutoplay()&&g.Sx(R,2)&&this.nC()};
Jr.prototype.onClick=function(){this.api.unMute();this.logClick()};
Jr.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.a(g.Gs,g.AQ);g.X=g.Gs.prototype;g.X.init=function(){var R=this.api,F=R.getPlayerStateObject();this.Nn=R.getPlayerSize();this.md(F);this.zv();this.G9();this.api.publish("basechromeinitialized",this);this.w5()&&this.api.publish("standardControlsInitialized")};
g.X.onVideoDataChange=function(R,F){var n=this.Es!==F.videoId;if(n||R==="newdata")R=this.api,R.isFullscreen()||(this.Nn=R.getPlayerSize());n&&(this.Es=F.videoId,n=this.Ck,n.PG=3E3,BR(n,512,!0),this.zv());this.api.B("web_render_jump_buttons")&&F.showSeekingControls&&(this.Nj=572)};
g.X.z6Z=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.X.M4=function(){var R=this.api.OD()&&this.api.oY(),F=this.api.Pn();return this.uT||R||this.LU||F};
g.X.N2=function(){var R=!this.M4();g.ws(this.api.getRootNode(),"ytp-menu-shown",!R)};
g.X.KK=function(R){try{if(!g.xW(this.api.getRootNode(),R))return!1}catch(F){return!1}for(;R&&!YW(R);)R=R===this.api.getRootNode()?null:R.parentElement||null;return!!R};
g.X.d0=function(R){var F=this.api.getRootNode();g.ws(F,"ytp-autohide",R);g.ws(F,"ytp-autohide-active",!0);this.qx.start(R?250:100);R&&(this.P3=!1,g.Qj(F,"ytp-touch-mode"));this.xM=!R;this.api.Ln(!R);this.api.B("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate",R)};
g.X.wh=function(){var R=this.api.getRootNode();g.ws(R,"ytp-autohide-active",!1)};
g.X.vkZ=function(){this.l$=!0};
g.X.gkG=function(R){if(this.api.D().B("player_doubletap_to_seek")||this.api.D().X)this.l$=!1,this.Fr&&this.ZO(this.Fr),this.nh===0&&d9(this,R)?(this.hk(),this.RX.start(),this.Fr=this.C(this.api.fH(),"touchmove",this.vkZ,void 0,!0)):this.RX.stop();AGj(this)&&d9(this,R)&&!this.api.D().X&&pyW(this);var F=this.tY.mw();if(!g.Pp(this.api.D())&&li&&adN(this,R))F&&R.preventDefault();else if(this.P3=!0,g.z0(this.api.getRootNode(),"ytp-touch-mode"),this.Ck.K7(),this.api.D().B("player_doubletap_to_seek")||this.api.D().X)if(F=
this.api.getPlayerStateObject(),!(!this.api.dV()||g.E(F,2)&&g.Nj(this.api)||g.E(F,64))){F=Date.now()-this.G8;this.nh+=1;if(F<=350){this.gi=!0;F=this.api.getPlayerSize().width/3;var n=this.api.getRootNode().getBoundingClientRect(),V=R.targetTouches[0].clientX-n.left;n=R.targetTouches[0].clientY-n.top;var r=(this.nh-1)*10;V>0&&V<F?(this.y4(-1,V,n,r),this.api.seekBy(-10*this.api.getPlaybackRate())):V>F*2&&V<F*3&&(this.y4(1,V,n,r),this.api.seekBy(10*this.api.getPlaybackRate()));R.preventDefault()}else g9&&
this.api.D().X&&d9(this,R)&&R.preventDefault();this.G8=Date.now();this.eg.start()}};
g.X.eqo=function(){this.fb.Oy=!1;this.api.publish("rootnodemousedown",this.fb)};
g.X.MJq=function(R){if(this.api.D().B("web_fix_fine_scrubbing_false_play")){if(adN(this,R)||this.fb.Oy)return}else if(this.fb.Oy||adN(this,R))return;AGj(this)||!d9(this,R)||this.RX.isActive()||(pyW(this),R.preventDefault());this.gi&&(this.gi=!1)};
g.X.hk=function(){};
g.X.yf=function(){};
g.X.y4=function(){};
g.X.renderChapterSeekingAnimation=function(){};
g.X.sC=function(){var R=this.api.getPlayerStateObject();g.E(R,2)&&g.Nj(this.api)||(R.isOrWillBePlaying()?this.api.pauseVideo():(this.Gy&&(R.isCued()||g.E(R,1024))&&this.api.publish("largeplaybuttonclicked",this.Gy.N.element),this.api.tP(),this.api.playVideo(),this.Gy&&document.activeElement===this.Gy.N.element&&((R=this.w5())==null?R=0:R.playButton?(R.playButton.focus(),R=!0):R=!1,R||this.api.getRootNode().focus())))};
g.X.nkX=function(R){var F=this,n=this.api.getPresentingPlayerType();if(!XyE(this,ml(R)))if(R=this.api.D(),(this.api.D().B("player_doubletap_to_seek")||this.api.D().X)&&this.gi)this.gi=!1;else if(R.aG&&n!==3)try{this.api.toggleFullscreen().catch(function(V){F.Mu(V)}),this.api.B("web_player_fullscreen_double_click_ve")&&this.api.logClick(this.api.fH().element)}catch(V){this.Mu(V)}};
g.X.Mu=function(R){String(R).includes("fullscreen error")?g.mq(R):g.uX(R)};
g.X.YYX=function(R){Cv9(this,.3,R.scale);R.preventDefault()};
g.X.X_2=function(R){Cv9(this,.1,R.scale)};
g.X.G9=function(){var R=this.api.fH().getPlayerSize(),F=this.api.getRootNode(),n=R.width>=650,V=R.width<528;this.Ck.resize();if(this.api.B("web_player_use_screen_width_for_big_mode")){var r,v=R.width>=((r=g.Vn(this.api.D().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?r:2E3);g.ws(F,"ytp-big-mode",v)}g.ws(F,"ytp-fullscreen",this.api.isFullscreen());g.ws(F,"ytp-large-width-mode",n);this.api.B("delhi_modern_web_player")?g.ws(F,"ytp-xsmall-width-mode",V):g.ws(F,"ytp-small-mode",this.SE());
g.ws(F,"ytp-tiny-mode",this.lV());g.ws(F,"ytp-big-mode",this.ju());this.Km&&this.Km.resize(R)};
g.X.yB=function(R){this.md(R.state);this.zv()};
g.X.PM=i9(5);g.X.kG=function(){var R=!!this.Es&&!this.api.sY()&&!this.Qs,F=this.api.getPresentingPlayerType()===2,n=this.api.D();if(F)return n=jk(this.api.WI()),R&&(n&&n.player?R=(R=n.player.getVideoData({playerType:2}))?R.isListed&&!g.Xi(n.player.D()):!1:(Q2("showInfoBarDuringAd: this is null"),R=!1)),R;F=n.B("web_player_imax_theater_mode")&&this.api.ey()&&!this.api.isInline();return R&&(n.d8||F||this.api.isFullscreen()||n.mz)};
g.X.zv=function(){var R=this.kG();this.w$!==R&&(this.w$=R,g.ws(this.api.getRootNode(),"ytp-hide-info-bar",!R))};
g.X.md=function(R){var F=R.isCued()||this.api.xb()&&this.api.getPresentingPlayerType()!==3;F!==this.isCued&&(this.isCued=F,this.Kd&&this.ZO(this.Kd),this.Kd=this.C(this.api.fH(),"touchstart",this.gkG,void 0,F));var n=this.Ck,V=R.isPlaying()&&!g.E(R,32)||this.api.Rw();BR(n,128,!V);n=this.Ck;V=this.api.getPresentingPlayerType()===3;BR(n,256,V);n=this.api.getRootNode();g.E(R,2)?V=[lR.ENDED]:(V=[],g.E(R,8)?V.push(lR.PLAYING):g.E(R,4)&&V.push(lR.PAUSED),g.E(R,1)&&!g.E(R,32)&&V.push(lR.BUFFERING),g.E(R,
32)&&V.push(lR.SEEKING),g.E(R,64)&&V.push(lR.UNSTARTED));g.Xu(this.fO,V)||(g.ct(n,this.fO),this.fO=V,g.qX(n,V));V=this.api.D();var r=g.E(R,2);a:{var v=this.api.D();var f=v.controlsType;switch(f){case "2":case "0":v=!1;break a}v=f==="3"&&!g.E(R,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:iXI(jk(this.api.WI())))||this.api.Pn()||g.Pp(v)&&this.api.getPresentingPlayerType()===2?!1:!0}g.ws(n,"ytp-hide-controls",!v);g.ws(n,"ytp-native-controls",V.controlsType==="3"&&!F&&!r&&!this.LU);g.E(R,
128)&&!g.Pp(V)?(this.Km||(this.Km=new g.Kz(this.api),g.d(this,this.Km),g.RL(this.api,this.Km.element,4)),this.Km.U(R.z_),this.Km.show()):this.Km&&(this.Km.dispose(),this.Km=null)};
g.X.EJ=function(){return this.api.OD()&&this.api.oY()?(this.api.QH(!1,!1),!0):this.api.sY()?(g.E6(this.api,!0),!0):!1};
g.X.onMutedAutoplayChange=function(R){this.LU=R;this.N2()};
g.X.ju=function(){return!1};
g.X.SE=function(){return!this.ju()&&(this.api.getPlayerSize().width<this.Nj||this.api.getPlayerSize().height<290)};
g.X.lV=function(){return this.SE()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140)};
g.X.J8=function(){return this.P3};
g.X.MX=function(){return null};
g.X.A$=function(){return null};
g.X.Rs=function(){var R=this.api.fH().getPlayerSize();return new g.VO(0,0,R.width,R.height)};
g.X.handleGlobalKeyDown=function(){return!1};
g.X.handleGlobalKeyUp=function(){return!1};
g.X.Du=function(){};
g.X.showControls=function(R){R!==void 0&&this.api.fH().Ln(R)};
g.X.K7=function(){};
g.X.w5=function(){return null};g.a(g.ME,g.N);g.ME.prototype.show=function(){g.N.prototype.show.call(this);g.eI(this.T)};
g.ME.prototype.hide=function(){this.U.stop();g.N.prototype.hide.call(this)};
g.ME.prototype.yf=function(R){var F=this.K.B("delhi_modern_web_player_icons");R?g.E(this.K.getPlayerStateObject(),64)||(F=F?hn():H5(),lK(this,F,"Play")):(R=this.K.getVideoData(),R.isLivePlayback&&!R.allowLiveDvr?(F=F?LlN():Swj(),lK(this,F,"Stop playback")):(F=F?t3J():fg_(),lK(this,F,"Pause")))};g.a(yGJ,g.N);g.X=yGJ.prototype;g.X.ud=function(R){R?this.T=dZ(this.K,this.element,null):(this.T=this.T,this.T(),this.T=null)};
g.X.rW=function(){this.K.D().B("player_new_info_card_format")&&g.t$(this.K.getRootNode(),"ytp-cards-teaser-shown")&&!g.Pp(this.K.D())||(this.fade.show(),g.V9("iv-button-shown"))};
g.X.nC=function(){g.V9("iv-button-hidden");this.fade.hide()};
g.X.mw=function(){return this.JJ&&this.fade.state!==4};
g.X.oG=function(){this.T&&this.T();g.N.prototype.oG.call(this)};
g.X.onHover=function(){g.V9("iv-button-mouseover")};
g.X.onClicked=function(R){this.K.OD();var F=g.t$(this.K.getRootNode(),"ytp-cards-teaser-shown");g.V9("iv-teaser-clicked",F);var n;if((n=this.K.getVideoData())==null?0:g.Vl(n)){var V;R=(V=this.K.getVideoData())==null?void 0:g.rZ(V);(R==null?0:R.onIconTapCommand)&&this.K.HG("innertubeCommand",R.onIconTapCommand)}else V=R.screenX===0&&R.screenY===0,this.K.QH(!this.K.oY(),V,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.a(U_9,g.N);g.X=U_9.prototype;g.X.oB=function(){this.K.OD()&&this.K.oY()&&this.mw()&&this.nC()};
g.X.JY=function(){this.nC();!this.K.OD()&&this.K.D().B("enable_error_corrections_infocards_icon_web")&&this.gV.nC();g.V9("iv-teaser-clicked",this.T!=null);if(this.onClickCommand)this.K.HG("innertubeCommand",this.onClickCommand);else{var R;((R=this.K.getVideoData())==null?0:g.Vl(R))||this.K.QH(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
g.X.BR=function(){g.V9("iv-teaser-mouseover");this.T&&this.T.stop()};
g.X.ajG=function(R){this.K.D().B("player_new_info_card_format")&&!g.Pp(this.K.D())?this.gV.nC():this.K.D().B("enable_error_corrections_infocards_icon_web")&&this.gV.rW();this.T||!R||this.K.oY()||this.N&&this.N.isActive()||(this.rW(R),g.V9("iv-teaser-shown"))};
g.X.rW=function(R){this.onClickCommand=R.onClickCommand;this.updateValue("text",R.teaserText);this.element.setAttribute("dir",g.A$(R.teaserText));this.fade.show();if(this.K.D().B("player_new_info_card_format")){var F=this.sZ("ytp-cards-teaser-info-icon"),n=this.sZ("ytp-cards-teaser-channel-avatar");n&&R.FZ&&g.dn(R.FZ)&&(n.src=R.FZ,n.style.display="block",F.style.display="none")}this.N=new g.ZK(function(){g.z0(this.K.getRootNode(),"ytp-cards-teaser-shown");this.K.B("player_new_info_card_format")&&
!g.Pp(this.K.D())&&this.gV.nC();this.SC()},0,this);
this.N.start();this.gV.ud(!1);this.T=new g.ZK(this.nC,580+R.durationMs,this);this.T.start();this.J.push(this.listen("mouseover",this.QW,this));this.J.push(this.listen("mouseout",this.AB,this))};
g.X.SC=function(){if(!this.K.D().B("player_new_info_card_format")&&g.Pp(this.K.D())&&this.JJ){var R=this.gV.element.offsetLeft,F=g.HI("ytp-cards-button-icon"),n=this.K.isFullscreen()?54:36;if(F){var V=R+F.offsetLeft;this.element.style.marginRight=this.gV.element.offsetParent.offsetWidth-R-F.offsetLeft-n+"px";this.element.style.marginLeft=V+"px"}}};
g.X.aR=function(){g.Pp(this.K.D())&&this.K.SE()&&this.JJ&&this.X.start()};
g.X.QW=function(){this.W.stop();this.T&&this.T.isActive()&&this.Z.start()};
g.X.AB=function(){this.Z.stop();this.T&&!this.T.isActive()&&this.W.start()};
g.X.Qr2=function(){this.T&&this.T.stop()};
g.X.A0z=function(){this.nC()};
g.X.K1=function(){this.nC()};
g.X.nC=function(){!this.T||this.U&&this.U.isActive()||(g.V9("iv-teaser-hidden"),this.fade.hide(),g.Qj(this.K.getRootNode(),"ytp-cards-teaser-shown"),this.U=new g.ZK(function(){for(var R=g.m(this.J),F=R.next();!F.done;F=R.next())this.ZO(F.value);this.J=[];this.T&&(this.T.dispose(),this.T=null);this.gV.ud(!0);!this.K.OD()&&this.K.D().B("enable_error_corrections_infocards_icon_web")&&this.gV.nC()},330,this),this.U.start())};
g.X.mw=function(){return this.JJ&&this.fade.state!==4};
g.X.oG=function(){var R=this.K.getRootNode();R&&g.Qj(R,"ytp-cards-teaser-shown");g.TW(this.N,this.U,this.T);g.N.prototype.oG.call(this)};var HX={},E0=(HX.BUTTON="ytp-button",HX.TITLE_NOTIFICATIONS="ytp-title-notifications",HX.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",HX.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",HX.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",HX);g.a(jne,g.N);jne.prototype.onClick=function(){this.api.logClick(this.element);var R=!this.T;this.updateValue("label",R?"Stop getting notified about every new video":"Get notified about every new video");this.updateValue("pressed",R);HUv(this,R)};g.h7("yt.pubsub.publish",g.V9);g.a(g.$Y,g.N);g.$Y.prototype.J=function(){window.location.reload()};
g.$Y.prototype.T=function(){g.z0(this.element,"ytp-sb-subscribed")};
g.$Y.prototype.U=function(){g.Qj(this.element,"ytp-sb-subscribed")};g.a(m_v,g.N);g.X=m_v.prototype;g.X.nyZ=function(R){this.api.logClick(this.U);var F=this.api.D();F.U||F.gX?KUJ(this)&&(this.isExpanded()?this.dH():this.b8()):g.Ie(window,BUe(this));R.preventDefault()};
g.X.mM=function(){IdN(this);this.channel.classList.remove("ytp-title-expanded")};
g.X.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.X.b8=function(){if(KUJ(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.N&&this.N.stop();this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));var R=this.api.getVideoData();this.T&&R.Ru&&R.subscribed&&(this.T.show(),
this.api.logVisibility(this.T.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.X.dH=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.N&&this.N.start()};
g.X.CH=function(){var R=this.api.D();this.dg(!this.api.isEmbedsShortsMode());var F=this.api.getVideoData(),n=this.api.D(),V=this.api.getVideoData();this.J=!1;var r=!!V.videoId&&!!V.Y5&&!!V.profilePicture;this.api.getPresentingPlayerType()===2?this.J=r&&!!V.isListed&&!!V.author:g.Pp(n)&&(this.J=r&&!V.On&&!n.N&&!(n.X&&this.api.getPlayerSize().width<200));n=F.profilePicture;R=g.Pp(R)?F.expandedTitle:F.author;n=n===void 0?"":n;R=R===void 0?"":R;this.J?(this.Z!==n&&(this.U.style.backgroundImage="url("+
n+")",this.Z=n),this.updateValue("channelLink",BUe(this)),this.updateValue("channelLogoLabel",g.fy("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:R})),g.z0(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Qj(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.U,this.J&&this.UZ);this.subscribeButton&&(this.subscribeButton.channelId=F.By);this.updateValue("expandedTitle",F.expandedTitle);this.updateValue("expandedSubtitle",F.expandedSubtitle)};
g.X.Un=function(R){g.N.prototype.Un.call(this,R);this.api.logVisibility(this.U,this.J&&R)};g.a(PR,g.w$);PR.prototype.gK=function(R){R.defaultPrevented||R.keyCode!==39||(this.element.click(),R.preventDefault())};g.a(D_R,g.N);g.X=D_R.prototype;g.X.show=function(){g.N.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
g.X.hide=function(){g.N.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
g.X.bC=function(R){var F=ml(R),n=g.xW(this.closeButton.element,F),V=g.xW(this.element,F);R=this.sourceElement&&g.xW(this.sourceElement,F)&&g.y2(R);F&&(V||R)&&!n||this.hide()};
g.X.ZW=function(){WU_(g.wg(this.eQ.D()),"user_info_panel",function(){window.location.reload()})};
g.X.CH=function(){var R=this.eQ.D(),F={USER_NAME:R.userDisplayName,USER_EMAIL:R.u_};this.updateValue("icon",zXj());this.updateValue("watchingAsUsername",g.fy("Watching as $USER_NAME",F));R.u_?this.updateValue("watchingAsEmail",g.fy("($USER_EMAIL)",F)):this.updateValue("watchingAsEmail","")};g.a(JG9,g.pN);g.X=JG9.prototype;g.X.UW=function(){this.T9.nC()};
g.X.vyG=function(){uF(this.ot.element)};
g.X.OX5=function(){ZR(this,this.K.getDebugText(!0))&&lK(this.zk,pG())};
g.X.iX2=function(){ZR(this,this.K.getVideoEmbedCode())&&lK(this.zk,$lf());this.K.logClick(this.U8.element)};
g.X.kuS=function(){ZR(this,this.K.getVideoUrl(!0,!0))&&lK(this.zk,oh());this.K.logClick(this.getVideoUrl.element)};
g.X.Ey5=function(){ZR(this,this.K.getVideoUrl(!1,!0))&&lK(this.zk,oh());this.K.logClick(this.jh.element)};
g.X.onLoopChange=function(R){var F;(F=this.Ef)==null||UY(F,R)};
g.X.m8H=function(){this.K.setLoopVideo(this.Ef.getValue());this.T9.nC();this.K.logClick(this.Ef.element)};
g.X.sr5=function(){this.K.HG("onCollapseMiniplayer");this.T9.nC()};
g.X.Zl1=function(){this.K.HG("onCollapseMiniplayer",!0);this.T9.nC()};
g.X.bk1=function(R){this.K.reportPlaybackIssue();if(g.jK(R,this.K,!L9(this.K.D()))){R=this.K;var F=R.app.getFeedbackProductData();R.yZ("onFeedbackStartRequest",F);R.isFullscreen()&&R.toggleFullscreen()}this.T9.nC()};
g.X.hq2=function(){g.u4(this.K,"isVideoInfoVisible",[])?g.u4(this.K,"hideVideoInfo",[]):g.u4(this.K,"showVideoInfo",[]);this.T9.nC()};
g.X.HkG=function(){this.wr&&(this.Co||(this.Co=new D_R(this.K,this.wr.element),g.d(this,this.Co),g.RL(this.K,this.Co.element,4)),this.Co.show(),this.T9.nC(),this.K.logClick(this.wr.element))};
g.X.onVideoDataChange=function(R,F){YcN(this,F)};
g.X.Un=function(R){g.pN.prototype.Un.call(this,R);this.K.logVisibility(this.U8.element,R);this.K.logVisibility(this.getVideoUrl.element,R);this.K.logVisibility(this.jh.element,R);this.Ef&&this.K.logVisibility(this.Ef.element,R);this.wr&&this.K.logVisibility(this.wr.element,R);this.ew&&this.K.logVisibility(this.ew.element,R)};g.a(My9,g.AX);g.X=My9.prototype;g.X.onTouchStart=function(R){var F=ml(R);if(!(F&&(G5(F,"a")||G5(F,null,"ytp-no-contextmenu"))||this.JJ)){var n;this.V=(R=(n=R.touches)==null?void 0:n.item(0))?new g.z5(R.clientX,R.clientY):new g.z5(0,0);this.X.start()}};
g.X.g9=function(){this.X.stop()};
g.X.NVo=function(){this.open(this.V)};
g.X.N1=function(){if(this.Xh&&GoV(this.Xh)){var R=GoV(this.Xh).element;R.tabIndex=-1;R.focus()}else this.element.tabIndex=-1,this.element.focus()};
g.X.show=function(){this.Xh||(this.Xh=new JG9(this.K,this,this.zk),g.d(this,this.Xh),g.aG(this,this.Xh));this.Xh.onLoopChange(this.K.getLoopVideo());g.AX.prototype.show.call(this);this.K.logVisibility(this.element,!0);this.Xh.Un(!0)};
g.X.hide=function(){d_V(this);g.AX.prototype.hide.call(this);this.K.logVisibility(this.element,!1);this.Xh&&this.Xh.Un(!1)};
g.X.eeG=function(R){var F=ml(R);this.JJ||F&&(G5(F,"a")||G5(F,null,"ytp-no-contextmenu"))||(R.preventDefault(),this.open(new g.z5(R.pageX,R.pageY)))};
g.X.rW=function(R){if(R){var F=R.getBoundingClientRect();this.open(new g.z5(F.x,F.y))}g.AX.prototype.rW.call(this,R)};
g.X.open=function(R){ldk(this);var F=this.K.getVideoData();g.ws(this.element,"ytp-dni",F.On);this.element.style.left="";this.element.style.top="";R.x++;R.y++;g.AX.prototype.rW.call(this);var n=z6(this).body;F=new eR(0,Infinity,Infinity,0);var V=Co(n);for(var r=V.T.body,v=V.T.documentElement,f=tWR(V.T);n=szI(n);)if((!g.WI||n.clientHeight!=0||n!=r)&&n!=r&&n!=v&&cE(n,"overflow")!="visible"){var z=g.sM(n),q=new g.z5(n.clientLeft,n.clientTop);z.x+=q.x;z.y+=q.y;F.top=Math.max(F.top,z.y);F.right=Math.min(F.right,
z.x+n.clientWidth);F.bottom=Math.min(F.bottom,z.y+n.clientHeight);F.left=Math.max(F.left,z.x)}r=f.scrollLeft;f=f.scrollTop;F.left=Math.max(F.left,r);F.top=Math.max(F.top,f);V=fi9(V.T.defaultView||window);F.right=Math.min(F.right,r+V.width);F.bottom=Math.min(F.bottom,f+V.height);V=F.top>=0&&F.left>=0&&F.bottom>F.top&&F.right>F.left?F:null;F=this.size;R=R.clone();F=F.clone();V&&(f=F,r=5,(r&65)==65&&(R.x<V.left||R.x>=V.right)&&(r&=-2),(r&132)==132&&(R.y<V.top||R.y>=V.bottom)&&(r&=-5),R.x<V.left&&r&1&&
(R.x=V.left),r&16&&(v=R.x,R.x<V.left&&(R.x=V.left),R.x+f.width>V.right&&(f.width=Math.min(V.right-R.x,v+f.width-V.left),f.width=Math.max(f.width,0))),R.x+f.width>V.right&&r&1&&(R.x=Math.max(V.right-f.width,V.left)),R.y<V.top&&r&4&&(R.y=V.top),r&32&&(v=R.y,R.y<V.top&&(R.y=V.top),R.y+f.height>V.bottom&&(f.height=Math.min(V.bottom-R.y,v+f.height-V.top),f.height=Math.max(f.height,0))),R.y+f.height>V.bottom&&r&4&&(R.y=Math.max(V.bottom-f.height,V.top)));V=new g.VO(0,0,0,0);V.left=R.x;V.top=R.y;V.width=
F.width;V.height=F.height;g.Sm(this.element,new g.z5(V.left,V.top));g.Kw(this.U);this.U.C(z6(this),"contextmenu",this.qn1);this.U.C(this.K,"fullscreentoggled",this.onFullscreenToggled);this.U.C(this.K,"pageTransition",this.tU)};
g.X.qn1=function(R){if(!R.defaultPrevented){var F=ml(R);g.xW(this.element,F)||this.nC();this.K.D().disableNativeContextMenu&&R.preventDefault()}};
g.X.onFullscreenToggled=function(){this.nC();ldk(this)};
g.X.tU=function(){this.nC()};g.a(ek,g.N);ek.prototype.onClick=function(){var R=this,F,n,V,r;return g.Y(function(v){if(v.T==1)return F=R.api.D(),n=R.api.getVideoData(),V=R.api.getPlaylistId(),r=F.getVideoUrl(n.videoId,V,void 0,!0),g.k(v,$_V(R,r),2);v.U&&Edv(R);R.api.logClick(R.element);g.rq(v)})};
ek.prototype.CH=function(){this.updateValue("icon",{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3  c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.updateValue("tooltip-title","Copy link");this.visible=NUE(this);g.ws(this.element,
"ytp-copylink-button-visible",this.visible);this.dg(this.visible);this.tooltip.Ew();this.api.logVisibility(this.element,this.visible&&this.UZ)};
ek.prototype.Un=function(R){g.N.prototype.Un.call(this,R);this.api.logVisibility(this.element,this.visible&&R)};
ek.prototype.oG=function(){g.N.prototype.oG.call(this);g.Qj(this.element,"ytp-copylink-button-visible")};g.a(PvV,g.N);g.X=PvV.prototype;g.X.show=function(){g.N.prototype.show.call(this);g.eI(this.U)};
g.X.hide=function(){this.J.stop();this.N=0;this.sZ("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.Qj(this.element,"ytp-chapter-seek");g.Qj(this.element,"ytp-time-seeking");g.N.prototype.hide.call(this)};
g.X.y4=function(R,F,n,V){this.N=R===this.Z?this.N+V:V;this.Z=R;var r=R===-1?this.V:this.X;r&&this.K.logClick(r);this.W?this.U.stop():g.FK(this.U);this.J.start();this.element.setAttribute("data-side",R===-1?"back":"forward");var v=3*this.K.fH().getPlayerSize().height;r=this.K.fH().getPlayerSize();r=r.width/3-3*r.height;this.T.style.width=v+"px";this.T.style.height=v+"px";R===1?(this.T.style.left="",this.T.style.right=r+"px"):R===-1&&(this.T.style.right="",this.T.style.left=r+"px");var f=v*2.5;v=f/
2;var z=this.sZ("ytp-doubletap-ripple");z.style.width=f+"px";z.style.height=f+"px";R===1?(R=this.K.fH().getPlayerSize().width-F+Math.abs(r),z.style.left="",z.style.right=R-v+"px"):R===-1&&(R=Math.abs(r)+F,z.style.right="",z.style.left=R-v+"px");z.style.top="calc((33% + "+Math.round(n)+"px) - "+v+"px)";if(n=this.sZ("ytp-doubletap-ripple"))n.classList.remove("ytp-doubletap-ripple"),n.classList.add("ytp-doubletap-ripple");bUE(this,this.W?this.N:V)};
g.X.UJ=function(R,F,n){if(n=n===void 0?null:n){var V=R===-1?this.V.visualElement:this.X.visualElement;n={seekData:n};var r=g.CJ();r&&VH(r,V,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",n)}this.N=R===this.Z?this.N+F:F;this.Z=R;V=this.K.fH().getPlayerSize();this.W?this.U.stop():g.FK(this.U);this.J.start();this.element.setAttribute("data-side",R===-1?"back":"forward");g.z0(this.element,"ytp-time-seeking");this.T.style.width="110px";this.T.style.height="110px";n=V.width*.1-15;R===1?this.Nq?(this.T.style.right=
n+"px",this.T.style.left=""):(this.T.style.right="",this.T.style.left=V.width*.8-30+"px"):R===-1&&(this.Nq?(this.T.style.right="",this.T.style.left=n+"px"):(this.T.style.right="",this.T.style.left=V.width*.1-15+"px"));this.T.style.top=V.height*.5+15+"px";bUE(this,this.W?this.N:F)};
g.X.zq=function(R,F,n){n=n===void 0?null:n;g.FK(this.U);this.J.start();switch(R){case -1:R="back";break;case 1:R="forward";break;default:R=""}this.element.setAttribute("data-side",R);this.T.style.width="0";this.T.style.height="0";g.z0(this.element,"ytp-chapter-seek");this.updateValue("seekText",F);this.updateValue("seekTime","");F=this.sZ("ytp-seek-icon");if(n){a:if(n){switch(n){case "PREMIUM_STANDALONE":n=qwW();break a;case "PREMIUM_STANDALONE_CAIRO":n=QxV();break a}n=void 0}else n=null;this.updateValue("seekIcon",
n);F.style.display="inline-block"}else F.style.display="none"};g.a(eG9,LN);g.X=eG9.prototype;g.X.zW=function(R){this.bS||(this.bS=new TO(this.K),g.d(this,this.bS));var F,n;if((F=this.on)==null?0:(n=F.menu)==null?0:n.menuRenderer)this.bS.open(this.on.menu.menuRenderer,R.target),R.preventDefault()};
g.X.Le=function(){return!!this.T};
g.X.i6=function(){return!!this.T};
g.X.X3=function(R){R.target===this.overflowButton.element?R.preventDefault():(this.pC&&this.K.HG("innertubeCommand",this.pC),this.aq(!1))};
g.X.An=function(){this.aq(!0);var R,F;if((R=this.T)==null?0:(F=R.bannerData)==null?0:F.dismissedStatusKey){if(this.uS.includes(this.T.bannerData.dismissedStatusKey))return;this.uS.push(this.T.bannerData.dismissedStatusKey)}this.BV();this.K.B("web_enable_shopping_timely_shelf_client")&&(R={},g.iX(R,Bqq,{overlayId:"player_overlay_timely_shelf"}),this.K.HG("innertubeCommand",R))};
g.X.Uc=function(){this.BV();nU(this)};
g.X.IzH=function(R){var F=this,n;if(R.id!==((n=this.T)==null?void 0:n.identifier)){this.BV();n=g.m(this.lS);for(var V=n.next();!V.done;V=n.next()){var r=V.value,v=void 0,f=void 0;if((V=(v=r)==null?void 0:(f=v.bannerData)==null?void 0:f.itemData)&&r.identifier===R.id){f=v=void 0;var z=((v=r)==null?void 0:(f=v.bannerData)==null?void 0:f.dismissedStatusKey)||"";if(this.uS.includes(z))return;this.T=r;this.banner.element.setAttribute("aria-label",V.accessibilityLabel||"");V.trackingParams&&(this.U=!0,
this.K.setTrackingParams(this.badge.element,V.trackingParams));this.show();this.V.show();S6(this);this.PG.dg(!V.stayInApp);cUk(this);F_E(this);Fw(this);this.pC=g.A(V.onTapCommand,IQ);if(r=g.A(V.menuOnTap,IQ))this.on=g.A(r,Kh$);r=void 0;this.banner.update({thumbnail:(r=(V.thumbnailSources||[])[0])==null?void 0:r.url,title:V.productTitle,price:V.priceReplacementText?V.priceReplacementText:V.price,salesOriginalPrice:rU9(this),priceDropReferencePrice:vJJ(this),promotionText:VvW(this),priceA11yText:fSN(this),
affiliateDisclaimer:V.affiliateDisclaimer,vendor:tvv(this)});z=f=v=r=void 0;((r=V)==null?0:(v=r.hiddenProductOptions)==null?0:v.showDropCountdown)&&((f=V)==null?0:(z=f.hiddenProductOptions)==null?0:z.dropTimestampMs)&&(this.YF=new g.ZK(function(){Qg6(F)},1E3),this.PG.hide(),this.countdownTimer.show(),Qg6(this));
this.K.B("web_player_enable_featured_product_banner_exclusives_on_desktop")&&RZj(this)&&(this.QZ=new g.ZK(function(){nJv(F)},1E3),nJv(this))}}this.K.getRootNode()&&g.z0(this.K.getRootNode(),"ytp-featured-product-shown")}};
g.X.BV=function(){this.T&&(this.T=void 0,this.RI(),this.K.getRootNode()&&g.Qj(this.K.getRootNode(),"ytp-featured-product-shown"))};
g.X.onVideoDataChange=function(R,F){var n=this;ZUe(this,F);R==="dataloaded"&&nU(this);var V,r,v;R=g.A((V=F.getWatchNextResponse())==null?void 0:(r=V.playerOverlays)==null?void 0:(v=r.playerOverlayRenderer)==null?void 0:v.productsInVideoOverlayRenderer,OqU);this.overflowButton.show();this.dismissButton.hide();var f=R==null?void 0:R.featuredProductsEntityKey;this.trendingOfferEntityKey=R==null?void 0:R.trendingOfferEntityKey;this.lS.length||(qLR(this,f),Fw(this));var z;(z=this.oC)==null||z.call(this);
this.oC=g.jZ.subscribe(function(){qLR(n,f);Fw(n)})};
g.X.oG=function(){nU(this);cUk(this);F_E(this);LN.prototype.oG.call(this)};g.a(AUN,g.N);AUN.prototype.onClick=function(){this.K.logClick(this.element,this.N);if(this.T&&this.feedbackToken){var R=this.K.i_();if(R==null?0:qgR(this.T,R.aX))Da(R,this.T,{feedbackTokens:[this.feedbackToken]}),this.K.publish("infopaneldetaildismissed")}};g.a(aSV,ti);g.X=aSV.prototype;g.X.show=function(){ti.prototype.show.call(this);this.K.publish("infopaneldetailvisibilitychange",!0);this.K.logVisibility(this.element,!0);CPR(this,!0)};
g.X.hide=function(){ti.prototype.hide.call(this);this.K.publish("infopaneldetailvisibilitychange",!1);this.K.logVisibility(this.element,!1);CPR(this,!1)};
g.X.getId=function(){return this.N};
g.X.rr=function(){return this.itemData.length};
g.X.onVideoDataChange=function(R,F){if(F){var n,V,r,v;this.update({title:((n=F.Kk)==null?void 0:(V=n.title)==null?void 0:V.content)||"",body:((r=F.Kk)==null?void 0:(v=r.bodyText)==null?void 0:v.content)||""});var f;R=((f=F.Kk)==null?void 0:f.trackingParams)||null;this.K.setTrackingParams(this.element,R);f=g.m(this.itemData);for(R=f.next();!R.done;R=f.next())R.value.dispose();this.itemData=[];var z;if((z=F.Kk)==null?0:z.ctaButtons)for(F=g.m(F.Kk.ctaButtons),z=F.next();!z.done;z=F.next())if(z=g.A(z.value,
Hq5))z=new AUN(this.K,z,this.T),z.XP&&(this.itemData.push(z),z.KH(this.items))}};
g.X.oG=function(){this.hide();ti.prototype.oG.call(this)};g.a(yUk,g.N);g.X=yUk.prototype;g.X.onVideoDataChange=function(R,F){oJE(this,F);this.Ll&&jgj(this,this.Ll)};
g.X.ZV=function(R){var F=this.K.getVideoData();this.videoId!==F.videoId&&oJE(this,F);jgj(this,R.state);this.Ll=R.state};
g.X.aF=function(R){(this.N=R)?this.hide():this.T&&!this.isDismissed&&this.show()};
g.X.Bc=function(){this.U||this.rW();this.showControls=!0};
g.X.Kj=function(){this.U||this.nC();this.showControls=!1};
g.X.rW=function(){if(!this.isDismissed){var R,F=(R=this.K)==null?void 0:R.getPlayerSize();R=F.width<380;var n;F=F.height<(((n=this.K)==null?0:n.isEmbedsShortsMode())?400:280);var V,r;(((V=this.K)==null?0:V.getPlayerStateObject().isCued())||((r=this.K)==null?0:g.E(r.getPlayerStateObject(),1024)))&&R&&F||!this.T||this.N||(this.fade.show(),this.K.publish("infopanelpreviewvisibilitychange",!0),this.K.logVisibility(this.element,!0))}};
g.X.nC=function(){this.T&&!this.N&&(this.fade.hide(),this.K.publish("infopanelpreviewvisibilitychange",!1),this.K.logVisibility(this.element,!1))};
g.X.VuH=function(){this.U=!1;this.showControls||this.nC()};var g67={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(g67).reduce(function(R,F){R[g67[F]]=F;return R},{});
var Ots={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(Ots).reduce(function(R,F){R[Ots[F]]=F;return R},{});
var I$v={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(I$v).reduce(function(R,F){R[I$v[F]]=F;return R},{});var Krv,D3r;Krv=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];D3r=[{option:0,text:VJ(0)},{option:.25,text:VJ(.25)},{option:.5,text:VJ(.5)},{option:.75,text:VJ(.75)},{option:1,text:VJ(1)}];
g.tG=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:Krv},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:VJ(.5)},{option:-1,text:VJ(.75)},{option:0,text:VJ(1)},{option:1,text:VJ(1.5)},{option:2,
text:VJ(2)},{option:3,text:VJ(3)},{option:4,text:VJ(4)}]},{option:"background",text:"Background color",options:Krv},{option:"backgroundOpacity",text:"Background opacity",options:D3r},{option:"windowColor",text:"Window color",options:Krv},{option:"windowOpacity",text:"Window opacity",options:D3r},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity",
text:"Font opacity",options:[{option:.25,text:VJ(.25)},{option:.5,text:VJ(.5)},{option:.75,text:VJ(.75)},{option:1,text:VJ(1)}]}];var itU=[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.a(mYR,g.AQ);g.X=mYR.prototype;
g.X.uA=function(R){R.repeat||(this.N.CE=!1);var F=!1,n=R.keyCode,V=ml(R),r=!R.altKey&&!R.ctrlKey&&!R.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||itU.includes(n)),v=!1,f=!1,z=this.api.D();R.defaultPrevented?(r=!1,f=!0):z.t0&&!this.api.isMutedByEmbedsMutedAutoplay()&&(r=!1);if(n===9)F=!0;else{if(V)switch(n){case 32:case 13:if(V.tagName==="BUTTON"||V.tagName==="A"||V.tagName==="INPUT")F=!0,r=!1;else if(r){var q=V.getAttribute("role");!q||q!=="option"&&q!=="button"&&q.indexOf("menuitem")!==0||
(F=!0,V.click(),v=!0)}break;case 37:case 39:case 36:case 35:F=V.getAttribute("role")==="slider";break;case 38:case 40:q=V.getAttribute("role"),V=n===38?V.previousSibling:V.nextSibling,q==="slider"?F=!0:r&&(q==="option"?(V&&V.getAttribute("role")==="option"&&V.focus(),v=F=!0):q&&q.indexOf("menuitem")===0&&(V&&V.hasAttribute("role")&&V.getAttribute("role").indexOf("menuitem")===0&&V.focus(),v=F=!0))}if(r&&!v)switch(n){case 38:v=Math.min(this.api.getVolume()+5,100);NE(this.zk,v,!1);this.api.setVolume(v);
f=v=!0;break;case 40:v=Math.max(this.api.getVolume()-5,0);NE(this.zk,v,!0);this.api.setVolume(v);f=v=!0;break;case 36:this.api.dV()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),f=v=!0);break;case 35:this.api.dV()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),f=v=!0)}}F&&vy(this,!0);(F||f)&&this.Ck.K7();(v||r&&this.handleGlobalKeyDown(n,R.shiftKey,R.ctrlKey,R.altKey,R.metaKey,R.key,R.code,R.repeat))&&R.preventDefault();z.V&&(R={keyCode:R.keyCode,
altKey:R.altKey,ctrlKey:R.ctrlKey,metaKey:R.metaKey,shiftKey:R.shiftKey,handled:R.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.t7("onKeyPress",R))};
g.X.fA=function(R){var F=R.keyCode;!this.N.Mm&&this.handleGlobalKeyUp(F,R.shiftKey,R.ctrlKey,R.altKey,R.metaKey,R.key,R.code)&&R.preventDefault()};
g.X.handleGlobalKeyUp=function(R,F,n,V,r,v,f){this.api.publish("keyboardserviceglobalkeyup",{keyCode:R,shiftKey:F,ctrlKey:n,altKey:V,metaKey:r,key:v,code:f});F=!1;if(this.N.CE)return F;(v=g.ZU(this.api.WI()))&&(v=v.UC)&&v.JJ&&(v.R6(R),F=!0);switch(R){case 9:vy(this,!0);F=!0;break;case 32:if(this.api.B("web_speedmaster_spacebar_control")&&!this.api.D().t0){var z,q;R=(z=this.progressBar)==null?void 0:(q=z.U)==null?void 0:q.isEnabled;F=this.sC(R)}break;case 39:(this.api.B("web_player_chapter_seeking_keyboard_shortcut_killswitch")||
!(r||n&&V))&&(gj?V:n)&&this.api.dV()&&this.api.B("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),z=(z=this.api.getVideoData())?z.oC:[],q=hZe(z,this.api.getCurrentTime()*1E3),q!==-1&&this.T!=null&&(this.T.zq(1,z[q].title),this.api.seekTo(z[q].startTime/1E3,void 0,void 0,void 0,52),F=!0))}return F};
g.X.handleGlobalKeyDown=function(R,F,n,V,r,v,f,z){z||(this.N.CE=!1);var q=!1,Q=this.api.D();if(Q.t0&&!this.api.isMutedByEmbedsMutedAutoplay())return q;var c=g.ZU(this.api.WI());if(c&&(c=c.UC)&&c.JJ)switch(R){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:q=c.h$(R)}Q.Z||q||(q=v||String.fromCharCode(R).toLowerCase(),this.U+=q,"awesome".indexOf(this.U)===0||this.api.B("web_player_rtr_ctrls")&&"bday".indexOf(this.U)===0?(q=!0,4===this.U.length&&this.U==="bday"&&this.api.B("web_player_rtr_ctrls")&&
(VsJ(this.W),this.Ck.K7()),7===this.U.length&&this.U==="awesome"&&tNf(this.api.getRootNode(),"ytp-color-party")):(this.U=q,q="awesome".indexOf(this.U)===0||"bday".indexOf(this.U)===0));if(!q&&(!this.api.isMutedByEmbedsMutedAutoplay()||itU.includes(R))){var w=this.api.getVideoData(),L,S;c=(L=this.progressBar)==null?void 0:(S=L.U)==null?void 0:S.isEnabled;L=w?w.oC:[];S=gj?V:n;switch(R){case 80:F&&!Q.Y5&&(lK(this.zk,cL6(),"Previous"),this.api.previousVideo(),q=!0);break;case 78:F&&!Q.Y5&&(lK(this.zk,
yH(),"Next"),this.api.nextVideo(),q=!0);break;case 74:this.api.dV()&&(this.api.startSeekCsiAction(),this.T?this.api.B("enable_key_press_seek_logging")?(q=fU(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.T.UJ(-1,10,q)):this.T.UJ(-1,10):lK(this.zk,{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{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),q=!0);break;case 76:this.api.dV()&&(this.api.startSeekCsiAction(),this.T?this.api.B("enable_key_press_seek_logging")?(q=fU(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.T.UJ(1,10,q)):this.T.UJ(1,10):lK(this.zk,{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{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),q=!0);break;case 37:if(this.api.dV())if(this.api.startSeekCsiAction(),S){if(this.api.B("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(r||n&&V))S=W_J(L,this.api.getCurrentTime()*1E3),S!==-1&&this.T!=null&&(this.T.zq(-1,L[S].title),this.api.seekTo(L[S].startTime/1E3,void 0,void 0,void 0,53),q=!0)}else this.T?this.api.B("enable_key_press_seek_logging")?(q=fU(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),
this.T.UJ(-1,5,q)):this.T.UJ(-1,5):lK(this.zk,{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{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),q=!0;break;case 39:this.api.dV()&&(this.api.startSeekCsiAction(),S?this.api.B("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.B("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(r||n&&V)||(S=hZe(L,this.api.getCurrentTime()*1E3),S!==-1&&this.T!=null&&(this.T.zq(1,L[S].title),this.api.seekTo(L[S].startTime/1E3,void 0,void 0,void 0,52),q=!0)):(this.T!=null?this.api.B("enable_key_press_seek_logging")?(q=fU(this,5*
this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.T.UJ(1,5,q)):this.T.UJ(1,5):lK(this.zk,{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{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),q=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),NE(this.zk,this.api.getVolume(),!1)):(this.api.mute(),NE(this.zk,0,!0));q=!0;break;case 32:q=this.api.B("web_speedmaster_spacebar_control")?!this.api.D().Y5:this.sC(c);break;case 75:q=this.sC(c);break;case 190:F?Q.enableSpeedOptions&&O7N(this)&&(q=this.api.getPlaybackRate(),this.api.setPlaybackRate(q+.25,!0),TUE(this.zk,!1),q=!0):this.api.dV()&&(this.step(1),q=!0);break;case 188:F?
Q.enableSpeedOptions&&O7N(this)&&(q=this.api.getPlaybackRate(),this.api.setPlaybackRate(q-.25,!0),TUE(this.zk,!0),q=!0):this.api.dV()&&(this.step(-1),q=!0);break;case 70:E2E(this.api)&&(this.api.toggleFullscreen().catch(function(){}),q=!0);
break;case 27:c?(this.progressBar.w6(),q=!0):this.X()&&(q=!0)}if(Q.controlsType!=="3")switch(R){case 67:g.Cz(this.api.WI())&&(Q=this.api.getOption("captions","track"),this.api.toggleSubtitles(),od_(this.zk,!Q||Q&&!Q.displayName),q=!0);break;case 79:zo(this,"textOpacity");break;case 87:zo(this,"windowOpacity");break;case 187:case 61:zo(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:zo(this,"fontSizeIncrement",!0,!0)}var p;F||n||V||(R>=48&&R<=57?p=R-48:R>=96&&R<=105&&(p=R-96));p!=null&&this.api.dV()&&
!this.api.B("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),Q=this.api.getProgressState(),this.api.seekTo(p/10*(Q.seekableEnd-Q.seekableStart)+Q.seekableStart,void 0,void 0,void 0,81),q=!0);q&&this.Ck.K7()}this.N.WK=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:R,shiftKey:F,ctrlKey:n,altKey:V,metaKey:r,key:v,code:f,repeat:z},this.N);this.N.WK&&(q=!0,this.Ck.K7());return q};
g.X.step=function(R){this.api.dV();if(this.api.getPlayerStateObject().isPaused()){var F=this.api.getVideoData().U;F&&(F=F.video)&&this.api.seekBy(R/(F.fps||30),void 0,void 0,R>0?77:78)}};
g.X.sC=function(R){if(!this.api.D().Y5){var F;var n,V=(F=this.api.getVideoData())==null?void 0:(n=F.getPlayerResponse())==null?void 0:n.playabilityStatus;if(V){var r;F=((r=g.A(V.miniplayer,Gv7))==null?void 0:r.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else F=!1;F&&this.api.HG("onExpandMiniplayer");R?this.progressBar.Mt():(R=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.zk.yf(R),R?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
g.X.oG=function(){g.FK(this.J);g.AQ.prototype.oG.call(this)};g.a(q_,g.N);q_.prototype.CH=function(){var R=this.K.D(),F=R.N||this.K.B("web_player_hide_overflow_button_if_empty_menu")&&this.sF.isEmpty();R=g.Pp(R)&&g.PK(this.K)&&g.E(this.K.getPlayerStateObject(),128);var n=this.K.getPlayerSize();this.visible=this.K.SE()&&!R&&n.width>=240&&!this.K.getVideoData().On&&!F&&!this.K.isEmbedsShortsMode();g.ws(this.element,"ytp-overflow-button-visible",this.visible);this.dg(this.visible);this.visible&&this.K.Ew();this.K.logVisibility(this.element,this.visible&&this.UZ)};
q_.prototype.Un=function(R){g.N.prototype.Un.call(this,R);this.K.logVisibility(this.element,this.visible&&R)};
q_.prototype.oG=function(){g.N.prototype.oG.call(this);g.Qj(this.element,"ytp-overflow-button-visible")};g.a(ISN,ti);g.X=ISN.prototype;g.X.tZ=function(R){R=ml(R);g.xW(this.element,R)&&(g.xW(this.T,R)||g.xW(this.closeButton,R)||qJ(this))};
g.X.nC=function(){ti.prototype.nC.call(this);this.K.I$(this.element)};
g.X.show=function(){this.JJ&&this.K.publish("OVERFLOW_PANEL_OPENED");ti.prototype.show.call(this);this.element.setAttribute("aria-modal","true");DYe(this,!0)};
g.X.hide=function(){ti.prototype.hide.call(this);this.element.removeAttribute("aria-modal");DYe(this,!1)};
g.X.onFullscreenToggled=function(R){!R&&this.mw()&&qJ(this)};
g.X.isEmpty=function(){return this.actionButtons.length===0};
g.X.focus=function(){for(var R=g.m(this.actionButtons),F=R.next();!F.done;F=R.next())if(F=F.value,F.JJ){F.focus();break}};g.a(i7J,g.N);i7J.prototype.onClick=function(R){g.jK(R,this.api)&&this.api.playVideoAt(this.index)};g.a(xYk,ti);g.X=xYk.prototype;g.X.show=function(){ti.prototype.show.call(this);this.T.C(this.api,"videodatachange",this.iJ);this.T.C(this.api,"onPlaylistUpdate",this.iJ);this.iJ()};
g.X.hide=function(){ti.prototype.hide.call(this);g.Kw(this.T);this.updatePlaylist(null)};
g.X.iJ=function(){this.updatePlaylist(this.api.getPlaylist());this.api.D().N&&(this.sZ("ytp-playlist-menu-title-name").removeAttribute("href"),this.U&&(this.ZO(this.U),this.U=null))};
g.X.Yl=function(){var R=this.playlist,F=R.author,n=F?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",V={CURRENT_POSITION:String(R.index+1),PLAYLIST_LENGTH:String(R.length)};F&&(V.AUTHOR=F);this.update({title:R.title,subtitle:g.fy(n,V),playlisturl:this.api.getVideoUrl(!0)});F=R.U;if(F===this.N)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[R.index];else{n=g.m(this.playlistData);for(V=n.next();!V.done;V=n.next())V.value.dispose();
n=R.length;this.playlistData=[];for(V=0;V<n;V++){var r=new i7J(this.api,R,V);this.playlistData.push(r);r.KH(this.items)}this.selected=this.playlistData[R.index];this.N=F}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.X.UPG=function(R){var F=this.api.getVideoUrl(!0);g.HN(F,this.api,R)};
g.X.updatePlaylist=function(R){this.playlist!==R?(this.playlist&&this.playlist.unsubscribe("shuffle",this.Yl,this),this.playlist=R,this.N=null,R?(R.subscribe("shuffle",this.Yl,this),this.Yl()):this.JJ&&this.hide()):this.playlist&&this.Yl()};
g.X.focus=function(){this.selected.focus()};
g.X.oG=function(){this.hide();ti.prototype.oG.call(this)};g.a(QJ,g.N);QJ.prototype.hide=function(){g.N.prototype.hide.call(this);this.Un(!1);this.api.Ew()};
QJ.prototype.CH=function(){var R=g.Pp(this.api.D());g.ws(this.element,"ytp-playlist-menu-button-tiny",this.api.fH().getPlayerSize().width<400&&!R);this.api.isEmbedsShortsMode()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.fy("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.fy("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title}),"tooltip-title":g.fy("Playlist: $PLAYLIST_NAME",
{PLAYLIST_NAME:this.playlist.title})}),this.api.B("delhi_modern_web_player")&&this.update({playlistTitle:g.fy("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.JJ||(this.show(),this.api.Ew()),this.visible=!0,this.Un(!0)):this.JJ&&this.hide()};
QJ.prototype.Un=function(R){g.N.prototype.Un.call(this,R);this.api.logVisibility(this.element,this.visible&&R)};
QJ.prototype.T=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.CH,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.CH,this);this.CH()};g.a(kEv,g.N);g.X=kEv.prototype;g.X.nj=function(){this.N?dYV(this):GEN(this)};
g.X.Mv=function(){this.N?(cy(this),this.W=!0):GEN(this)};
g.X.U5G=function(){this.J=!0;this.La(1);this.K.publish("promotooltipacceptbuttonclicked",this.acceptButton);cy(this);this.U&&this.K.logClick(this.acceptButton)};
g.X.Snz=function(){this.J=!0;this.La(2);cy(this);this.U&&this.K.logClick(this.dismissButton)};
g.X.YZ=function(R){if(this.K.getPresentingPlayerType()===1||this.K.getPresentingPlayerType()===2&&this.Z){var F=!0,n=g.HI("ytp-ad-overlay-ad-info-dialog-container"),V=g.HI("ytp-ad-player-overlay-layout"),r=ml(R);if(this.sourceElement&&r&&g.xW(this.sourceElement,r))this.sourceElement=null;else{this.K.getPresentingPlayerType()===1&&r&&Array.from(r.classList).forEach(function(q){if(q.startsWith("ytp-ad")||q.startsWith("ytp-skip-ad"))F=!1});
var v=MvI(this.tooltipRenderer),f;if(((f=this.tooltipRenderer.dismissStrategy)==null?void 0:f.type)==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE")v&&(F=F&&!g.xW(this.element,r));else{var z;((z=this.tooltipRenderer.dismissStrategy)==null?void 0:z.type)==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(F=v?!1:F&&g.xW(this.element,r))}this.T&&this.JJ&&!n&&!V&&(!r||F&&g.y2(R))&&(this.J=!0,cy(this))}}};
g.X.La=function(R){var F=this.tooltipRenderer.promoConfig;if(F){switch(R){case 0:var n;if((n=F.impressionEndpoints)==null?0:n.length)var V=F.impressionEndpoints[0];break;case 1:V=F.acceptCommand;break;case 2:V=F.dismissCommand}var r;R=(r=g.A(V,pLf))==null?void 0:r.feedbackToken;V&&R&&(r={feedbackTokens:[R]},R=this.K.i_(),(R==null?0:qgR(V,R.aX))&&Da(R,V,r))}};
g.X.G9=function(){this.W||(this.T||(this.T=YLf(this)),dYV(this))};
var JUV={"ytp-settings-button":g.us()};g.a(wU,g.N);wU.prototype.onStateChange=function(R){this.nX(R.state)};
wU.prototype.nX=function(R){this.dg(g.E(R,2))};
wU.prototype.onClick=function(){this.K.getPlayerStateObject().isOrWillBePlaying();this.K.playVideo()};g.a(Sy,g.N);Sy.prototype.onClick=function(R){this.api.logClick(this.element);var F=g.DI(this.api.D().rK,{focusSearch:"true"}),n={};g.u4(this.api,"addEmbedsConversionTrackingParams",[n]);F=g.DI(F,n);var V;(n=(V=this.api.getVideoData().S3)==null?void 0:V.params)&&(F=g.DI(F,{bp:n}));g.Ie(window,F);R.preventDefault()};
Sy.prototype.T=function(){if(this.api.B("embeds_web_enable_search_button")){var R=this.api.D();var F=this.api.getVideoData(),n=this.api.fH().getPlayerSize().width;R=g.Pp(R)&&n>=this.U&&!R.N&&!F.isAd()&&!this.api.isEmbedsShortsMode()}else R=!1;this.visible=R;this.dg(this.visible);g.ws(this.element,"ytp-search-button-visible",this.visible);g.ws(this.element,"ytp-show-search-title",!this.api.SE());this.api.logVisibility(this.element,this.visible&&this.UZ)};
Sy.prototype.Un=function(R){g.N.prototype.Un.call(this,R);this.api.logVisibility(this.element,this.visible&&R)};g.a(LU,g.N);
LU.prototype.trigger=function(R,F,n,V){this.show();if(this.U&&R!==this.U){var r=1;this.N&&(r=b76(this));lSv(this,r,!1);PPN(this)}this.U=R;this.J=this.U===-1?this.X:this.V;R="";F?(this.U===-1&&this.K.getCurrentTime()<=F?this.W=F:this.W+=F,R=(this.U===-1?"\u2212":"+")+" "+this.W):this.W=0;this.updateValue(this.U===-1?"durationBack":"durationForward",R);if(this.T==="hidden"||this.T==="fading-out")F=0,this.T==="fading-out"&&(F=b76(this),$Yf(this)),NXj(this,F),this.T!=="fading-out"&&EJV(this,this.J.querySelector(".ytp-seek-overlay-arrow-persistent")),
this.T="fading-in";else if(this.T==="fading-in"||this.T==="lingering")F=this.J.querySelector(".ytp-seek-overlay-duration"),R=g.Vn(this.K.D().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,F.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("+R+")"},{offset:1,transform:"scale(1)"}],{duration:184}),$Yf(this),this.T==="lingering"&&(this.Z.stop(),this.Z.start());n&&Z7E(this,
n,V)};
LU.prototype.y4=function(R,F,n,V){this.trigger(R,V)};
LU.prototype.UJ=function(R,F,n){this.trigger(R,F);n&&(R=R===-1?this.V.visualElement:this.X.visualElement,n={seekData:n},(F=g.CJ())&&VH(F,R,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",n))};
LU.prototype.zq=function(R,F,n){this.trigger(R,void 0,F,n)};g.a(sc,g.N);sc.prototype.onClick=function(){var R=this,F=this.api.D(),n=this.api.getVideoData({playerType:this.api.getPresentingPlayerType()}),V=this.api.getPlaylistId();F=this.api.B("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):F.getVideoUrl(n.videoId,V,void 0,!0);if(navigator.share)try{var r=navigator.share({title:n.title,url:F});r instanceof Promise&&r.catch(function(v){RfJ(R,v)})}catch(v){v instanceof Error&&RfJ(this,v)}else this.T.EJ(),qJ(this.U,this.element,!1);
this.api.logClick(this.element)};
sc.prototype.CH=function(){var R=this.api.D(),F=this.api.isEmbedsShortsMode();g.ws(this.element,"ytp-show-share-title",g.Pp(R)&&!F);this.T.ju()&&F?(R=(this.api.fH().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.fY(this.element,"right",R+"px")):F&&g.fY(this.element,"right","0px");this.updateValue("icon",{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{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=eZW(this);g.ws(this.element,"ytp-share-button-visible",this.visible);this.dg(this.visible);this.tooltip.Ew();this.api.logVisibility(this.element,eZW(this)&&this.UZ)};
sc.prototype.Un=function(R){g.N.prototype.Un.call(this,R);this.api.logVisibility(this.element,this.visible&&R)};
sc.prototype.oG=function(){g.N.prototype.oG.call(this);g.Qj(this.element,"ytp-share-button-visible")};g.a(nOV,ti);g.X=nOV.prototype;g.X.XF=function(R){R=ml(R);g.xW(this.J,R)||g.xW(this.closeButton,R)||qJ(this)};
g.X.nC=function(){ti.prototype.nC.call(this);this.tooltip.I$(this.element);this.api.logVisibility(this.T,!1);for(var R=g.m(this.U),F=R.next();!F.done;F=R.next())F=F.value,this.api.hasVe(F.element)&&this.api.logVisibility(F.element,!1)};
g.X.show=function(){var R=this.JJ;ti.prototype.show.call(this);this.CH();R||this.api.HG("onSharePanelOpened")};
g.X.epG=function(){this.JJ&&this.CH()};
g.X.CH=function(){var R=this;g.z0(this.element,"ytp-share-panel-loading");g.Qj(this.element,"ytp-share-panel-fail");var F=this.api.getVideoData(),n=this.api.getPlaylistId()&&this.N.checked;F.getSharePanelCommand&&Da(this.api.i_(),F.getSharePanelCommand,{includeListId:n}).then(function(V){R.Zo()||(g.Qj(R.element,"ytp-share-panel-loading"),vON(R,V))});
F=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",F);this.updateValue("linkText",F);this.updateValue("shareLinkWithUrl",g.fy("Share link $URL",{URL:F}));uF(this.T);this.api.logVisibility(this.T,!0)};
g.X.onFullscreenToggled=function(R){!R&&this.mw()&&qJ(this)};
g.X.focus=function(){this.T.focus()};
g.X.oG=function(){ti.prototype.oG.call(this);VOe(this)};g.a(zfv,LN);g.X=zfv.prototype;g.X.oG=function(){StV(this);LN.prototype.oG.call(this)};
g.X.X3=function(R){R.target!==this.dismissButton.element&&(this.aq(!1),this.K.HG("innertubeCommand",this.onClickCommand))};
g.X.An=function(){this.SQ=!0;this.aq(!0);this.RI()};
g.X.y02=function(R){this.Z=R;this.RI()};
g.X.onVideoDataChange=function(R,F){if(R=!!F.videoId&&this.videoId!==F.videoId)this.videoId=F.videoId,this.SQ=!1,this.jQ=!0,this.X=this.J1=!1,StV(this),wiN(this,!1),this.N=this.T=!1,Xw(this),qtk(this);if(R||!F.videoId)this.Nq=this.U=!1;var n,V;if(F==null?0:(n=F.getPlayerResponse())==null?0:(V=n.videoDetails)==null?0:V.isLiveContent)this.QG(!1);else{var r,v,f;F=g.A((r=F.getWatchNextResponse())==null?void 0:(v=r.playerOverlays)==null?void 0:(f=v.playerOverlayRenderer)==null?void 0:f.productsInVideoOverlayRenderer,
OqU);this.Z=this.enabled=!1;if(F){if(r=F==null?void 0:F.featuredProductsEntityKey){v=g.jZ.getState().entities;var z;if((z=RK(v,"featuredProductsEntity",r))==null?0:z.productsData){this.QG(!1);return}}if(!F.text||!F.onClickCommand||!F.timing){this.QG(!1);return}this.enabled=!0;if(!this.U){var q;z=(q=F.badgeInteractionLogging)==null?void 0:q.trackingParams;(this.U=!!z)&&this.K.setTrackingParams(this.badge.element,z||null)}if(!this.Nq){var Q;if(this.Nq=!((Q=F.dismissButton)==null||!Q.trackingParams)){var c;
this.K.setTrackingParams(this.dismissButton.element,((c=F.dismissButton)==null?void 0:c.trackingParams)||null)}}F.isContentForward&&(q=F.productsData,wiN(this,!0),qtk(this),q=cY6(this,q),Q=[],q.length>0&&Q.push(q[0]),q.length>1&&(c=new g.N({j:"div",Y:"ytp-suggested-action-more-products-icon"}),g.d(this,c),Q.push(c),Q.push.apply(Q,g.I(q.slice(1)))),this.W=new g.N({j:"div",L:Q,Y:"ytp-suggested-action-content-forward-container"}),g.d(this,this.W),this.Mq.element.append(this.W.element));this.text=g.LG(F.text);
var w;if(q=(w=F.dismissButton)==null?void 0:w.a11yLabel)this.dX=g.LG(q);this.onClickCommand=F.onClickCommand;this.timing=F.timing;this.iL()}ktE(this);S6(this);this.RI()}};
g.X.Le=function(){return!this.Z&&this.enabled&&!this.SQ&&!this.K.SE()&&!this.KC&&(this.X||this.jQ)};
g.X.Aq=function(R){LN.prototype.Aq.call(this,R);if(this.T||this.N)this.timing&&pU(this.timing.preview)&&(this.T=!1,Xw(this),this.N=!1,Xw(this),this.K.Bw("shopping_overlay_preview_collapsed"),this.K.Bw("shopping_overlay_preview_expanded"),R=AG(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),pU(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.K.Bw("shopping_overlay_expanded"),R.end=this.timing.expanded.endSec*1E3),this.K.iL([R])),
this.J1=!0,S6(this);Xw(this)};
g.X.QG=function(R){(this.X=R)?(wK(this),S6(this,!1)):(StV(this),this.Y5.start());this.RI()};
g.X.iL=function(R){var F=this.timing;R=(R===void 0?0:R)+this.K.getCurrentTime();var n=[],V=F.visible,r=F.preview;F=F.expanded;pU(V)&&(flf(V,R),n.push(AG(V.startSec,V.endSec,"shopping_overlay_visible")));pU(r)&&(flf(r,R),V=r.startSec+1,n.push(AG(r.startSec,V,"shopping_overlay_preview_collapsed")),n.push(AG(V,r.endSec,"shopping_overlay_preview_expanded")));pU(F)&&(flf(F,R),n.push(AG(F.startSec,F.endSec,"shopping_overlay_expanded")));this.K.iL(n)};
g.X.RI=function(){LN.prototype.RI.call(this);this.K.getRootNode()&&g.ws(this.K.getRootNode(),"ytp-shopping-pill-shown",this.Le())};g.a(pi_,g.N);
pi_.prototype.CH=function(){var R=this.api.D();this.dg(g.Pp(R)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.JJ);var F=this.api.getVideoData(),n=!1;this.api.getPresentingPlayerType()===2?n=!!F.videoId&&!!F.isListed&&!!F.author&&!!F.Y5&&!!F.profilePicture:g.Pp(R)&&(n=!!F.videoId&&!!F.Y5&&!!F.profilePicture&&!F.On&&!R.N&&!(R.X&&this.api.getPlayerSize().width<200));var V=F.profilePicture;R=g.Pp(R)?F.expandedTitle:F.author;V=V===void 0?
"":V;R=R===void 0?"":R;n?(this.U!==V&&(this.T.style.backgroundImage="url("+V+")",this.U=V),this.updateValue("channelLogoLabel",g.fy("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:R})),g.z0(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Qj(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.T,n&&this.UZ);this.api.logVisibility(this.channelName,n&&this.UZ);this.subscribeButton&&(this.subscribeButton.channelId=F.By);this.updateValue("expandedTitle",F.expandedTitle)};g.a(an,ti);an.prototype.show=function(){ti.prototype.show.call(this);this.T.start()};
an.prototype.hide=function(){ti.prototype.hide.call(this);this.T.stop()};
an.prototype.GP=function(R,F){R==="dataloaded"&&((this.v5=F.v5,this.Iq=F.Iq,isNaN(this.v5)||isNaN(this.Iq))?this.U&&(this.K.Bw("intro"),this.K.removeEventListener(g.$A("intro"),this.X),this.K.removeEventListener(g.Pl("intro"),this.J),this.K.removeEventListener("onShowControls",this.N),this.hide(),this.U=!1):(this.K.addEventListener(g.$A("intro"),this.X),this.K.addEventListener(g.Pl("intro"),this.J),this.K.addEventListener("onShowControls",this.N),R=new g.NQ(this.v5,this.Iq,{priority:9,namespace:"intro"}),
this.K.iL([R]),this.U=!0))};g.a(CU,g.N);CU.prototype.onClick=function(){this.K.DB()};
CU.prototype.CH=function(){var R=!0;g.Pp(this.K.D())&&(R=R&&this.K.fH().getPlayerSize().width>=480);this.dg(R);R=this.updateValue;var F=this.K.B("delhi_modern_web_player_icons"),n=F?{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z",
fill:"white"}}]}:{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,S:{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"}}]};F=F?{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z",
fill:"white"}}]}:{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{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"}}]};R.call(this,"icon",this.K.oa()?n:F)};g.a(AY9,g.N);AY9.prototype.oG=function(){this.T=null;g.N.prototype.oG.call(this)};g.a(To,g.N);To.prototype.onClick=function(){this.K.HG("innertubeCommand",this.U)};
To.prototype.V=function(){if(this.K.B("delhi_modern_web_player")){var R=this.K.getPlayerSize();R.width&&(this.element.style.maxWidth=R.width*.25+"px")}};
To.prototype.J1=function(R){R!==this.Z&&(this.update({chapterTitle:R,ariaLabel:R}),this.Z=R);R?this.show():this.hide()};
To.prototype.Nq=function(){this.T.disabled=this.U==null;g.ws(this.T,"ytp-chapter-container-disabled",this.T.disabled);this.M5()};g.a(on,To);on.prototype.onClickCommand=function(R){g.A(R,Ur)&&this.M5()};
on.prototype.updateVideoData=function(R,F){var n,V,r;R=g.A((n=F.getWatchNextResponse())==null?void 0:(V=n.playerOverlays)==null?void 0:(r=V.playerOverlayRenderer)==null?void 0:r.decoratedPlayerBarRenderer,bk);n=g.A(R==null?void 0:R.playerBarActionButton,Iw);if(this.K.B("web_player_updated_entrypoint")){this.X=sT(n==null?void 0:n.text);var v;V=(v=n==null?void 0:n.tooltip)!=null?v:"View chapter";this.W.setAttribute("title",V)}this.U=n==null?void 0:n.command;To.prototype.Nq.call(this)};
on.prototype.M5=function(){var R=this.X,F=this.J.T,n,V=((n=this.K.getLoopRange())==null?void 0:n.type)==="clips";if(F.length>1&&!V){R=this.K.getProgressState().current*1E3;n=rU(F,R);R=F[n].title||"Chapters";if(n!==this.currentIndex||this.N)this.K.HG("innertubeCommand",F[n].onActiveCommand),this.currentIndex=n;this.N=!1}else this.N=!0;To.prototype.J1.call(this,R)};g.a(yJ,g.c5);yJ.prototype.U=function(){var R;(R=this.element.parentElement)==null||R.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")};
yJ.prototype.isExpanded=function(){return this.T};g.a(Uc,g.N);Uc.prototype.N=function(R){g.E(R.state,32)?C1_(this,this.api.n4()):this.JJ&&(g.E(R.state,16)||g.E(R.state,1))||this.fade.hide()};
Uc.prototype.onProgress=function(){var R=this.api.getPlayerStateObject();(g.E(R,32)||g.E(R,16))&&Thv(this)};
Uc.prototype.J=function(){this.frameIndex=NaN;Thv(this)};
Uc.prototype.hide=function(){this.T&&C1_(this,null);g.N.prototype.hide.call(this)};g.a(oO9,g.N);g.X=oO9.prototype;g.X.onClick=function(){var R=this;if(this.K.D().aG||this.K.D().X){this.K.logClick(this.element);try{this.K.toggleFullscreen().catch(function(F){R.Mu(F)})}catch(F){this.Mu(F)}}else qJ(this.message,this.element,!0)};
g.X.Mu=function(R){String(R).includes("fullscreen error")?g.mq(R):g.uX(R);this.XN()};
g.X.XN=function(){this.disable();this.message.rW(this.element,!0)};
g.X.by=function(){Uw()===this.K.getRootNode()?this.N.start():(this.N.stop(),this.message&&this.message.hide())};
g.X.xn=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var R=window.screen.width*.9,F=window.screen.height*.9,n=Math.max(window.outerWidth,window.innerWidth),V=Math.max(window.outerHeight,window.innerHeight);if(n>V!==R>F){var r=n;n=V;V=r}R>n&&F>V&&this.XN()}};
g.X.disable=function(){var R=this;if(!this.message){var F=(TQ(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new ti(this.K,{j:"div",BG:["ytp-popup","ytp-generic-popup"],S:{role:"alert",tabindex:"0"},L:[F[0],{j:"a",S:{href:"https://support.google.com/youtube/answer/6276924",
target:this.K.D().UZ},cG:F[2]},F[4]]},100,!0);this.message.hide();g.d(this,this.message);this.message.subscribe("show",function(n){R.U.Da(R.message,n)});
g.RL(this.K,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.T)();this.T=null}};
g.X.CH=function(){var R=E2E(this.K),F=this.K.D().X&&this.K.getPlayerSize().width<250;this.dg(R&&!F);this.K.logVisibility(this.element,this.JJ)};
g.X.Ax=function(R){if(R){var F=g.Mj(this.K,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.K.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(n){g.mq(n)})}else F=g.Mj(this.K,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});
R=yYN(this,R);F=this.message?null:F;this.K.D().B("player_tooltip_data_title_killswitch")?this.update({title:F,icon:R}):this.update({"tooltip-title":F,"aria-label":F,icon:R});this.U.q8().Ew()};
g.X.oG=function(){this.message||((0,this.T)(),this.T=null);g.N.prototype.oG.call(this)};
g.X.Un=function(R){g.N.prototype.Un.call(this,R)};g.a(jy,g.N);jy.prototype.onClick=function(){this.K.logClick(this.element);this.K.seekBy(this.T,!0);var R=this.T>0?1:-1,F=Math.abs(this.T),n=this.K.Z0().iP;n&&n.UJ(R,F);this.U.isActive()?this.N=!0:(R=["ytp-jump-spin"],this.T<0&&R.push("backwards"),this.element.classList.add.apply(this.element.classList,g.I(R)),g.eI(this.U))};g.a(Hy,To);Hy.prototype.onClickCommand=function(R){g.A(R,msM)&&this.M5()};
Hy.prototype.updateVideoData=function(){var R,F;this.U=(R=jPJ(this))==null?void 0:(F=R.onTap)==null?void 0:F.innertubeCommand;To.prototype.Nq.call(this)};
Hy.prototype.M5=function(){var R="",F=this.J.X,n,V=(n=jPJ(this))==null?void 0:n.headerTitle;n=V?g.LG(V):"";var r;V=((r=this.K.getLoopRange())==null?void 0:r.type)==="clips";F.length>1&&!V&&(R=this.K.getProgressState().current*1E3,r=H7f(F,R),R=r!=null?F[r].title:n,r!=null&&r!==this.currentIndex&&(this.K.HG("innertubeCommand",F[r].onActiveCommand),this.currentIndex=r));To.prototype.J1.call(this,R)};g.a(hG,g.N);hG.prototype.onClick=function(){this.K.HG("onCollapseMiniplayer");this.K.logClick(this.element)};
hG.prototype.CH=function(){this.visible=!this.K.isFullscreen();this.dg(this.visible);this.K.logVisibility(this.element,this.visible&&this.UZ)};
hG.prototype.Un=function(R){g.N.prototype.Un.call(this,R);this.K.logVisibility(this.element,this.visible&&R)};var Bhj=new yj(0,0,.05,0,0,1,1,1);g.a(Wy,g.N);Wy.prototype.init=function(){this.update({minvalue:this.N,maxvalue:this.W,stepvalue:this.Z,slidervalue:this.T,ariaValueNow:this.T,ariaMinValue:this.N,ariaMaxValue:this.W});uLN(this,this.T)};
Wy.prototype.Ch=function(){uv(this,Number(this.U.value));this.U.focus()};
Wy.prototype.Ez=function(R){if(!R.defaultPrevented){switch(R.code){case "ArrowDown":R=-this.Z;break;case "ArrowUp":R=this.Z;break;default:return}uv(this,Math.min(this.W,Math.max(Number((this.T+R).toFixed(2)),this.N)))}};g.a(By,Wy);By.prototype.onVolumeChange=function(R){if(this.X)this.X=!1;else{var F=R.volume;F===0||R.muted?uv(this,0):uv(this,F)}};
By.prototype.Ch=function(){Wy.prototype.Ch.call(this);this.V(this.T)};
By.prototype.Nq=function(R){var F=-R.deltaY;F=R.deltaMode===WheelEvent.DOM_DELTA_LINE||R.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.vI(this.T+F,0,100):g.vI(this.T+g.vI(F/10,-10,10),0,100);F===0?uv(this,0):uv(this,F);this.V(F);R.preventDefault();R.stopPropagation()};
By.prototype.J1=function(R,F){this.X=!0;R===0||F?this.K.mute():(this.K.isMuted()&&this.K.unMute(),this.K.setVolume(R))};g.a(mpf,g.N);g.a(gU,g.N);g.X=gU.prototype;g.X.Ld=function(){if(!this.K.J8()){this.updateValue("dataTooltipOffsetY",-120);var R;(R=this.T)!=null&&mU(R,!0);var F;(F=this.T)!=null&&F.T.stop()}};
g.X.Wb=function(){var R;(R=this.T)!=null&&R.T.start()};
g.X.HK=function(R){this.visible=R.width>=300||this.bS;this.dg(this.visible);this.K.logVisibility(this.element,this.visible&&this.UZ)};
g.X.HS=function(){this.K.D().Mq?this.K.isMuted()?this.K.unMute():this.K.mute():qJ(this.message,this.element,!0);this.K.logClick(this.element)};
g.X.AmH=function(R){if(this.K.D().Mq&&this.T)if(R.target===this.N){var F;if(!this.K.J8()||((F=this.T)==null?0:F.isVisible))this.HS();else{var n;(n=this.T)!=null&&mU(n,!0)}}else{var V;(V=this.T)!=null&&mU(V,!0)}else this.HS()};
g.X.onVolumeChange=function(R){this.setVolume(R.volume,R.muted)};
g.X.setVolume=function(R,F){var n=this,V=F?0:R/100;R=V===0?1:R>50?1:0;if(this.V!==R){var r=this.X;isNaN(r)?Dpk(this,R):u7W(this.Mq,function(f){Dpk(n,r+(n.V-r)*f)},250);
this.V=R}V=V===0?1:0;if(this.Z!==V){var v=this.jQ;isNaN(v)?ice(this,V):u7W(this.lS,function(f){ice(n,v+(n.Z-v)*f)},250);
this.Z=V}Ock(this,F)};
g.X.Un=function(R){g.N.prototype.Un.call(this,R);this.K.logVisibility(this.element,this.visible&&R)};
var Ilf=["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"],Kif=["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.a(g.Oc,g.N);g.X=g.Oc.prototype;g.X.onStateChange=function(R){this.nX(R.state)};
g.X.nX=function(R){var F=g.Zh(this.K.getVideoData()),n=!1;R.isOrWillBePlaying()?R=F?4:2:g.E(R,2)?(R=3,n=F):R=1;this.element.disabled=n;if(this.T!==R){F=null;switch(R){case 2:F=g.Mj(this.K,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:F="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:F=g.Mj(this.K,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:F="Stop playback",this.update({"data-title-no-tooltip":"Stop playback"})}R===3?this.K.D().B("player_tooltip_data_title_killswitch")?
this.update({title:F,icon:xpR(this,R)}):this.update({"tooltip-title":F,icon:xpR(this,R)}):(this.K.B("player_tooltip_data_title_killswitch")?this.update({title:F}):this.update({"tooltip-title":F}),(F=xpR(this,R))&&this.T&&this.T!==3?mfI(this.transition,this.element,F):this.updateValue("icon",F));this.tooltip.Ew();this.T=R}};
g.X.onVideoDataChange=function(){g.ws(this.element,"ytp-play-button-playlist",g.PK(this.K))};
g.X.sC=function(R){this.K.logClick(this.element);if(this.K.getPlayerStateObject().isOrWillBePlaying())this.K.pauseVideo();else{if(this.K.isMinimized()&&this.K.getPlayerStateObject().isCued()){var F={},n;if((n=this.K.getVideoData())==null?0:n.Z)F.cttAuthInfo={token:this.K.getVideoData().Z,videoId:this.K.getVideoData().videoId};mc("direct_playback",F);this.K.Mc().timerName="direct_playback"}this.K.playVideo()}this.K.isMinimized()&&(R==null?void 0:R.type)==="click"&&this.element.blur()};
g.X.Un=function(R){g.N.prototype.Un.call(this,R)};g.a(g.In,g.N);g.X=g.In.prototype;g.X.onVideoDataChange=function(){JYk(this);this.J&&(this.ZO(this.J),this.J=null);this.videoData=this.K.getVideoData({playerType:1});if(this.playlist=this.K.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.J=this.C(this.K,"progresssync",this.eF);this.N=GJ6(this);Yte(this);this.pu(this.K.fH().getPlayerSize())};
g.X.pu=function(R){R=R===void 0?this.K.fH().getPlayerSize():R;var F,n=((F=this.K.getLoopRange())==null?void 0:F.type)==="clips";F=g.PK(this.K)||this.T&&g.Fp(this.K)&&!this.K.B("web_hide_next_button")||dpf(this);var V=!this.T&&R.width<400;R=this.K.B("delhi_modern_web_player_horizontal_volume_controls")&&R.width<640;n=F&&!n&&!V&&!R;this.dg(n);this.K.logVisibility(this.element,n)};
g.X.onClick=function(R){this.K.logClick(this.element);var F=!0;this.Z?F=g.jK(R,this.K):R.preventDefault();F&&(this.T&&this.K.getPresentingPlayerType()===5?this.K.publish("ytoprerollinternstitialnext"):this.T?(QT(this.K.Mc()),this.K.publish("playlistnextbuttonclicked",this.element),this.K.nextVideo(!0)):this.N?this.K.seekTo(0):(QT(this.K.Mc()),this.K.publish("playlistprevbuttonclicked",this.element),this.K.previousVideo(!0)))};
g.X.eF=function(){var R=GJ6(this);R!==this.N&&(this.N=R,Yte(this))};
g.X.oG=function(){this.U&&(this.U(),this.U=null);JYk(this);g.N.prototype.oG.call(this)};g.a(lle,g.N);g.X=lle.prototype;g.X.vc=function(R){this.T1(R.pageX);this.y$(R.pageX+R.deltaX);NhN(this)};
g.X.T1=function(R){this.Nq=R-this.bS};
g.X.y$=function(R){R-=this.bS;!isNaN(this.Nq)&&this.thumbnails.length>0&&(this.V=R-this.Nq,this.thumbnails.length>0&&this.V!==0&&(this.N=this.X+this.V,R=Zce(this,this.N),this.N<=this.T/2&&this.N>=bcI(this)?(this.api.seekTo(R,!1,void 0,void 0,25),g.fY(this.jQ,"transform","translateX("+(this.N-this.T/2)+"px)"),MO6(this,R)):this.N=this.X))};
g.X.gO=function(){this.J1&&(this.J1.Oy=!0);var R=(0,g.h1)()-this.gX<300;if(Math.abs(this.V)<5&&!R){this.gX=(0,g.h1)();R=this.Nq+this.V;var F=this.T/2-R;this.T1(R);this.y$(R+F);NhN(this);this.api.logClick(this.W)}NhN(this)};
g.X.Cj=function(){KU(this,this.api.getCurrentTime())};
g.X.play=function(R){this.api.seekTo(Zce(this,this.N),void 0,void 0,void 0,26);this.api.playVideo();R&&this.api.logClick(this.playButton)};
g.X.onExit=function(R){this.api.seekTo(this.Y5,void 0,void 0,void 0,63);this.api.playVideo();R&&this.api.logClick(this.dismissButton)};
g.X.G9=function(R,F){this.bS=R;this.T=F;KU(this,this.api.getCurrentTime())};
g.X.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Y5=this.api.getCurrentTime(),MO6(this,this.Y5),g.ws(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Mq=this.C(this.element,"wheel",this.vc),this.logVisibility(this.isEnabled))};
g.X.disable=function(){this.isEnabled=!1;this.hide();g.ws(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Mq&&this.ZO(this.Mq);this.logVisibility(this.isEnabled)};
g.X.reset=function(){this.disable();this.J=[];this.PG=!1};
g.X.logVisibility=function(R){this.api.logVisibility(this.element,R);this.api.logVisibility(this.W,R);this.api.logVisibility(this.dismissButton,R);this.api.logVisibility(this.playButton,R)};
g.X.oG=function(){for(;this.U.length;){var R=void 0;(R=this.U.pop())==null||R.dispose()}g.N.prototype.oG.call(this)};
g.a(EOj,g.N);g.a($p9,g.N);g.a(efv,g.N);g.a(Dd,g.N);Dd.prototype.Fs=function(R){return R==="PLAY_PROGRESS"?this.X:R==="LOAD_PROGRESS"?this.Z:R==="LIVE_BUFFER"?this.W:this.N};nke.prototype.update=function(R,F,n,V){n=n===void 0?0:n;this.width=F;this.J=n;this.T=F-n-(V===void 0?0:V);this.position=g.vI(R,n,n+this.T);this.N=this.position-n;this.U=this.N/this.T};g.a(VJ6,g.N);g.a(g.kd,g.c5);g.X=g.kd.prototype;
g.X.sV=function(){var R=!1,F=this.api.getVideoData();if(!F)return R;this.api.Bw("timedMarkerCueRange");fuN(this);for(var n=g.m(F.Mq),V=n.next();!V.done;V=n.next()){V=V.value;var r=void 0,v=(r=this.SQ[V])==null?void 0:r.markerType,f=void 0;r=(f=this.SQ[V])==null?void 0:f.markers;if(!r)break;if(v==="MARKER_TYPE_TIMESTAMPS"){R=g.m(r);for(v=R.next();!v.done;v=R.next()){f=v.value;v=new VJ6;var z=void 0;v.title=((z=f.title)==null?void 0:z.simpleText)||"";v.timeRangeStartMillis=Number(f.startMillis);v.T=
Number(f.durationMillis);var q=z=void 0;v.onActiveCommand=(q=(z=f.onActive)==null?void 0:z.innertubeCommand)!=null?q:void 0;wwI(this,v)}SSj(this,this.X);R=this.X;v=this.G_;f=[];z=null;for(q=0;q<R.length;q++){var Q=R[q].timeRangeStartMillis;if(!isNaN(Q)&&R[q].onActiveCommand){var c=void 0,w=(c=R[q].T)!=null?c:1E4;z&&z.end>Q&&(z.end=Q);Q=uJe(Q,Q+w);f.push(Q);z=Q;v[Q.id]=R[q].onActiveCommand}}this.api.iL(f);a:{R=g.m(r);for(r=R.next();!r.done;r=R.next())if(r.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){R=
!1;break a}R=!0}R&&(this.hD=this.SQ[V]);R=!0}else if(v==="MARKER_TYPE_HEATMAP"){V=this.SQ[V];c=Q=v=q=z=f=void 0;if(V&&V.markers){r=(v=(c=V.markersMetadata)==null?void 0:(Q=c.heatmapMetadata)==null?void 0:Q.minHeightDp)!=null?v:0;v=(f=(q=V.markersMetadata)==null?void 0:(z=q.heatmapMetadata)==null?void 0:z.maxHeightDp)!=null?f:60;f=this.T.length;z=null;for(q=0;q<f;q++){c=this.T[q].startTime;w=q===f-1?Infinity:this.T[q+1].startTime;q===this.J.length&&vkR(this);Q=[];z&&Q.push(z);for(var L=g.m(V.markers),
S=L.next();!S.done;S=L.next()){S=S.value;var p=Number(S.startMillis);p>=c&&p<=w&&Q.push(S)}v>0&&(this.J1.style.height=v+"px");c=this.J[q];w=Q;S=r;var C=v,y=q===0;y=y===void 0?!1:y;RIV(c,C);L=w;p=c.U;y=y===void 0?!1:y;var u=1E3/L.length,B=[];B.push({x:0,y:100});for(var O=0;O<L.length;O++){var K=(O+.5)*u,M=100-g.vI((L[O].intensityScoreNormalized||0)*100,S/p*100,C/p*100);O!==0||y||B.push({x:0,y:M});B.push({x:K,y:M});O===L.length-1&&B.push({x:1E3,y:M})}B.push({x:1E3,y:100});L=B;w=w.length===0?"":trJ(L);
c.api.B("delhi_modern_web_player")?c.N.setAttribute("d",w):c.W.setAttribute("d",w);c.XP=w!=="";g.ws(c.api.getRootNode(),"ytp-heat-map",c.XP);c.api.B("delhi_modern_web_player")?(c.J.style.display="none",c.T.style.display="none"):c.N.style.display="none";Q.length>0&&(z=Q[Q.length-1])}g.Yd(this)}v=void 0;r=[];if(V=(v=V.markersDecoration)==null?void 0:v.timedMarkerDecorations)for(V=g.m(V),v=V.next();!v.done;v=V.next())v=v.value,q=z=f=void 0,r.push({visibleTimeRangeStartMillis:(f=v.visibleTimeRangeStartMillis)!=
null?f:-1,visibleTimeRangeEndMillis:(z=v.visibleTimeRangeEndMillis)!=null?z:-1,decorationTimeMillis:(q=v.decorationTimeMillis)!=null?q:NaN,label:v.label?g.LG(v.label):""});V=r;this.heatMarkersDecorations=V}}F.gR=this.X;g.ws(this.element,"ytp-timed-markers-enabled",R);return R};
g.X.G9=function(){g.Yd(this);dU(this);SSj(this,this.X);if(this.U){var R=g.sM(this.element).x||0;this.U.G9(R,this.Z)}};
g.X.zqZ=function(){var R=this.api.getVideoData();R&&Uef(this,R)};
g.X.onClickCommand=function(R){if(R=g.A(R,Ur)){var F=R.key;R.isVisible&&F&&XwE(this,F)}};
g.X.TV2=function(R){this.api.HG("innertubeCommand",this.G_[R.id])};
g.X.M5=function(){dU(this);var R=this.api.getCurrentTime();(R<this.clipStart||R>this.clipEnd)&&this.Bh()};
g.X.gK=function(R){if(!R.defaultPrevented){var F=!1;switch(R.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);F=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);F=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);F=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);F=!0;break;case 38:this.api.B("enable_key_press_seek_logging")&&Py(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);F=!0;break;case 40:this.api.B("enable_key_press_seek_logging")&&Py(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),F=!0}F&&R.preventDefault()}};
g.X.GP=function(R,F){this.updateVideoData(F,R==="newdata")};
g.X.tQ1=function(){this.GP("newdata",this.api.getVideoData())};
g.X.updateVideoData=function(R,F){F=F===void 0?!1:F;var n=!!R&&R.XP();n&&(CK(R)||okN(this)?this.u_=!1:this.u_=R.allowLiveDvr,g.ws(this.api.getRootNode(),"ytp-enable-live-buffer",!(R==null||!CK(R))),Uef(this,R));xee(this,this.api.dV());if(F){if(n){F=R.clipEnd;this.clipStart=R.clipStart;this.clipEnd=F;bv(this);for(N_(this,this.Nq,this.on);this.J.length>0;)this.J.pop().dispose();this.heatMarkersDecorations=[];this.YF={};var V;(V=this.U)==null||V.reset();Rg(this);g.ws(this.api.getRootNode(),"ytp-fine-scrubbing-exp",
xd(this))}else this.Bh();this.TZ()}if(R){var r;V=((r=this.wg)==null?void 0:r.type)==="clips";if(r=!R.isLivePlayback){r=this.api.getVideoData();F=g.Zv(r);n=zI6(r);var v;r=F!=null||n!=null&&n.length>0||((v=r.XW)==null?void 0:v.length)>0}if(r&&!V){v=this.api.getVideoData();V=g.Zv(v);r=!1;if(V==null?0:V.markersMap){r=this.api.getVideoData();var f;r.nZ=((f=V.visibleOnLoad)==null?void 0:f.key)||r.nZ;f=g.m(V.markersMap);for(V=f.next();!V.done;V=f.next())V=V.value,V.key&&V.value&&(this.YF[V.key]=V.value,
V.value.onChapterRepeat&&(r.zE=V.value.onChapterRepeat));r.nZ!=null&&XwE(this,r.nZ);r=!0}var z;if(((z=v.XW)==null?void 0:z.length)>0){z=g.jZ.getState().entities;f=g.m(v.XW);for(V=f.next();!V.done;V=f.next()){V=V.value;n=void 0;F=(n=RK(z,"macroMarkersListEntity",V))==null?void 0:n.markersList;var q=n=void 0;if(((n=F)==null?void 0:n.markerType)==="MARKER_TYPE_TIMESTAMPS"||((q=F)==null?void 0:q.markerType)==="MARKER_TYPE_HEATMAP")this.SQ[V]=F}r=this.sV()||r}!r&&(z=zI6(v))&&(QbR(this,z),v.oC=this.T,qSR(this));
jbN(this,null);R.lH&&this.J.length===0&&(R=R.lH,z=R.key,R.isVisible&&z&&XwE(this,z))}else rVR(this),fuN(this)}dU(this)};
g.X.vz=function(R){this.V&&!g.E(R.state,32)&&this.api.getPresentingPlayerType()!==3&&this.V.cancel();var F;((F=this.U)==null?0:F.isEnabled)&&g.E(R.state,8)&&this.api.pauseVideo();R=this.api.getPresentingPlayerType()===2||!this.api.dV()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.ws(this.NP,"ytp-hide-scrubber-button",R)};
g.X.hY=function(R){var F=!!this.wg!==!!R,n=this.wg;this.wg=R;jbN(this,n);(R==null?void 0:R.type)!=="clips"&&R||(R?(this.updateValue("clipstarticon",Fl9()),this.updateValue("clipendicon",Fl9()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",Ei_()),this.updateValue("clipendicon",Nze()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),F&&(this.updateVideoData(this.api.getVideoData(),
!0),g.Yd(this)),bv(this));N_(this,this.Nq,this.on)};
g.X.UL5=function(){this.api.publish("progressBarHoverStart")};
g.X.NuG=function(R,F,n){var V=g.sM(this.element),r=Go(this).T,v=n?n.getAttribute("data-tooltip"):void 0,f=n?n.getAttribute("data-position"):void 0,z=n?n.getAttribute("data-offset-y"):void 0;z=z?Number(z):0;f&&(R=Oq(this.N,Number(n.getAttribute("data-position")),0)*r+g.sM(this.progressBar).x);this.mQ.x=R-V.x;this.mQ.y=F-V.y;R=Go(this);n=$d(this,R);F=0;var q;if((q=this.api.getVideoData())==null?0:CK(q))(q=this.api.getProgressState().seekableEnd)&&n>q&&(n=q,R.position=Oq(this.N,q)*Go(this).T),F=this.N.U;
okN(this)&&(F=this.N.U);q=v||g.ot(this.u_?n-this.N.T:n-F);F=R.position+this.iI;n-=this.api.qC();var Q;if((Q=this.U)==null||!Q.isEnabled)if(this.api.n4()){if(this.T.length>1){Q=Ec(this,this.mQ.x,!0);if(!this.wg)for(V=0;V<this.T.length;)g.ws(this.T[V].T,"ytp-exp-chapter-hover-effect",V===Q),V++;if(this.J.length>1)for(V=0;V<this.T.length;V++)g.ws(this.J[V].element,"ytp-heatmap-hover",V===Q)}if(this.X.length>0)for(Q=this.mQ.x,V=g.m(this.X),r=V.next();!r.done;r=V.next())r=r.value,f=JG(this,r.timeRangeStartMillis/
(this.N.T*1E3),Go(this)),g.ws(r.element,"ytp-timed-marker-hover",f<=Q&&f+6>=Q);V=this.tooltip.scale;Q=this.api.B("delhi_modern_web_player")?67:45;z=(isNaN(z)?0:z)-Q*V;this.api.B("web_key_moments_markers")?this.hD?(Q=H7f(this.X,n*1E3),Q=Q!=null?this.X[Q].title:""):(Q=rU(this.T,n*1E3),Q=this.T[Q].title):(Q=rU(this.T,n*1E3),Q=this.T[Q].title);Q||(z+=16*V);this.tooltip.scale===.6&&(g.Xk(this.api.D())?(z=this.api.fH().getPlayerSize().height-225,V=this.api.B("delhi_modern_web_player")?70:110,z=Q?z+V:z+
V+16):z=Q?110:126);V=rU(this.T,n*1E3);this.Mq=hI9(this,n,V)?V:hI9(this,n,V+1)?V+1:-1;g.ws(this.api.getRootNode(),"ytp-progress-bar-snap",this.Mq!==-1&&this.T.length>1);V=!1;r=g.m(this.heatMarkersDecorations);for(f=r.next();!f.done;f=r.next()){f=f.value;var c=n*1E3;c>=f.visibleTimeRangeStartMillis&&c<=f.visibleTimeRangeEndMillis&&(Q=f.label,q=g.ot($d(this,R)),V=!0)}this.Kk!==V&&(this.Kk=V,this.api.logVisibility(this.lX,this.Kk));g.ws(this.api.getRootNode(),"ytp-progress-bar-decoration",V);V=160*this.tooltip.scale*
2;r=Q.length*(this.W?8.55:5.7);r=r<=V?r:V;f=r<160*this.tooltip.scale;V=3;!f&&r/2>R.position&&(V=1);!f&&r/2>this.Z-R.position&&(V=2);this.api.D().X&&(z-=10);this.J.length&&this.J[0].XP&&(z-=14*(this.W?2:1),this.gX||(this.gX=!0,this.api.logVisibility(this.J1,this.gX)));var w;if(xd(this)&&(((w=this.U)==null?0:w.isEnabled)||this.h1>0)){var L;z-=((L=this.U)==null?0:L.isEnabled)?(this.W?135:90)-this.jQ:this.h1}w=void 0;xd(this)&&!this.api.B("web_player_hide_fine_scrubbing_edu")&&(w="Pull up for precise seeking",
this.Y5||(this.Y5=!0,this.api.logVisibility(this.fl,this.Y5)));this.tooltip.T6(F,n,q,!!v,z,Q,V,w)}else this.tooltip.T6(F,n,q,!!v,z);g.z0(this.api.getRootNode(),"ytp-progress-bar-hover");Tcv(this)};
g.X.mL5=function(){this.TZ();g.Qj(this.api.getRootNode(),"ytp-progress-bar-hover");this.gX&&(this.gX=!1,this.api.logVisibility(this.J1,this.gX));this.Y5&&(this.Y5=!1,this.api.logVisibility(this.fl,this.Y5));this.api.B("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")};
g.X.Tuo=function(R,F){var n=g.sM(this.element);this.eB=R-n.x;xd(this)&&this.U&&(this.U.PG?KU(this.U,this.api.getCurrentTime()):P19(this.U),this.U.show(),g.ws(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.U.isEnabled));this.Ru&&(this.Ru.dispose(),this.Ru=null);this.mz=F;this.h7=this.api.getCurrentTime();this.T.length>1&&this.Mq!==-1?this.api.seekTo(this.T[this.Mq].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo($d(this,Go(this)),!1,void 0,void 0,7);g.z0(this.element,"ytp-drag");(this.tD=
this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()};
g.X.J7q=function(){if(xd(this)&&this.U){var R=(this.W?135:90)-this.jQ;this.h1>=R*.5?(this.U.enable(),KU(this.U,this.api.getCurrentTime()),iEJ(this,R)):Rg(this)}if(g.E(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var F;if((F=this.U)==null?0:F.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.T.length>1&&this.Mq!==-1)this.api.B("html5_enable_progress_bar_slide_seek_logging")&&Py(this,this.h7,this.T[this.Mq].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER",
"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.T[this.Mq].startTime/1E3,void 0,void 0,void 0,7);else{R=$d(this,Go(this));this.api.B("html5_enable_progress_bar_slide_seek_logging")&&Py(this,this.h7,R,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(R,void 0,void 0,void 0,7);F=g.m(this.heatMarkersDecorations);for(var n=F.next();!n.done;n=F.next())n=n.value,R*1E3>=n.visibleTimeRangeStartMillis&&R*1E3<=n.visibleTimeRangeEndMillis&&
this.api.logClick(this.lX)}g.Qj(this.element,"ytp-drag");this.PG&&(this.lS.src=this.PG);this.tD&&!g.E(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}};
g.X.c7X=function(R,F){var n=this,V=Go(this),r=$d(this,V);this.api.fH().Cx||(V.position>this.eB+2?this.oC&&(this.lS.src=this.oC):V.position<this.eB-2?this.Yy&&(this.lS.src=this.Yy):this.PG&&(this.lS.src=this.PG),setTimeout(function(){var f=g.sM(n.element).x||0;n.eB=R-f},150));
this.api.seekTo(r,!1,void 0,void 0,7);var v;xd(this)&&((v=this.U)==null?0:v.PG)&&(KU(this.U,r),this.U.isEnabled||(this.h1=g.vI(this.mz-F-10,0,(this.W?135:90)-this.jQ),iEJ(this,this.h1)))};
g.X.TZ=function(){this.tooltip.RJ()};
g.X.iM=function(){this.wg||(this.updateValue("clipstarticon",l__()),this.updateValue("clipendicon",l__()),g.z0(this.element,"ytp-clip-hover"))};
g.X.Or=function(){this.wg||(this.updateValue("clipstarticon",Ei_()),this.updateValue("clipendicon",Nze()),g.Qj(this.element,"ytp-clip-hover"))};
g.X.Bh=function(){this.clipStart=0;this.clipEnd=Infinity;bv(this);N_(this,this.Nq,this.on)};
g.X.VyQ=function(R){R=g.m(R);for(var F=R.next();!F.done;F=R.next())if(F=F.value,F.visible){var n=F.getId();if(!this.dX[n]){var V=g.gu("DIV");F.tooltip&&V.setAttribute("data-tooltip",F.tooltip);this.dX[n]=F;this.pC[n]=V;g.fO(V,F.style);WBf(this,n);this.api.D().B("disable_ad_markers_on_content_progress_bar")||this.T[0].J.appendChild(V)}}else Dek(this,F)};
g.X.JOZ=function(R){R=g.m(R);for(var F=R.next();!F.done;F=R.next())Dek(this,F.value)};
g.X.w6=function(R){this.U&&(this.U.onExit(R!=null),Rg(this))};
g.X.Mt=function(R){this.U&&(this.U.play(R!=null),Rg(this))};
g.X.L85=function(){xee(this,this.api.dV())};
g.X.oG=function(){xee(this,!1);g.c5.prototype.oG.call(this)};g.a(FJ,g.N);FJ.prototype.isActive=function(){return!!this.K.getOption("remote","casting")};
FJ.prototype.CH=function(){var R=!1;this.K.getOptions().includes("remote")&&(R=this.K.getOption("remote","receivers").length>1);this.dg(R&&this.K.fH().getPlayerSize().width>=400);this.K.logVisibility(this.element,this.JJ);var F=1;R&&this.isActive()&&(F=2);if(this.T!==F){this.T=F;R=this.K.B("delhi_modern_web_player_icons");switch(F){case 1:this.updateValue("icon",R?{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z",
fill:"white"}}]}:{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{j:"path",AX:!0,S:{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",
R?{j:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{j:"path",S:{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.dl_())}g.ws(this.element,"ytp-remote-button-active",this.isActive())}};
FJ.prototype.U=function(){if(this.K.getOption("remote","quickCast"))this.K.setOption("remote","quickCast",!0);else{var R=this.T9,F=this.element;if(R.mw())R.nC();else{R.initialize();a:{var n=g.m(R.kq.items);for(var V=n.next();!V.done;V=n.next())if(V=V.value,V.priority===1){n=V;break a}n=null}n&&(n.open(),R.rW(F));R.rW(F)}}this.K.logClick(this.element)};g.a(n7,g.N);n7.prototype.T=function(R){var F=this.K.D(),n=400;F.Z?n=300:F.X&&(n=200);R=this.U&&R.width>=n;this.dg(R);this.K.logVisibility(this.element,R)};
n7.prototype.N=function(){if(this.T9.JJ)this.T9.nC();else{var R=g.Cz(this.K.WI());R&&!R.loaded&&(R.xc("tracklist",{includeAsr:!0}).length||R.load());this.K.logClick(this.element);this.T9.rW(this.element)}};
n7.prototype.updateBadge=function(){var R=this.K.isHdr(),F=this.K.getPresentingPlayerType(),n=F!==2&&F!==3,V=g.eH(this.K),r=n&&!!g.ZU(this.K.WI());F=r&&V.displayMode===1;V=r&&V.displayMode===2;n=(r=F||V)||!n?null:this.K.getPlaybackQuality();g.ws(this.element,"ytp-hdr-quality-badge",R);g.ws(this.element,"ytp-hd-quality-badge",!R&&(n==="hd1080"||n==="hd1440"));g.ws(this.element,"ytp-4k-quality-badge",!R&&n==="hd2160");g.ws(this.element,"ytp-5k-quality-badge",!R&&n==="hd2880");g.ws(this.element,"ytp-8k-quality-badge",
!R&&n==="highres");g.ws(this.element,"ytp-3d-badge-grey",!R&&r&&F);g.ws(this.element,"ytp-3d-badge",!R&&r&&V)};g.a(Vx,g.j6);g.X=Vx.prototype;g.X.CH=function(){var R=this.K.getAvailableAudioTracks();if(R.length>1){var F=R.filter(function(r){return r.isAutoDubbed()}),n=R.filter(function(r){return!r.isAutoDubbed()}).map(this.Ua);
F.length>0&&(this.K.m2("ad_grp",{ad_c:F.length,t_c:R.length}),n.push(new zxI),n.push.apply(n,g.I(F.map(this.Ua))));QG_(this,n);this.tracks=g.C4(R,this.Ua,this);this.countLabel.setContent(R.length?" ("+R.length+")":"");this.publish("size-change");R=this.Ua(this.K.getAudioTrack());this.hO(R);if(this.K.B("html5_enable_new_audio_settings_menu")){var V;(V=this.T)!=null&&V.setContent(R.toString())}this.enable(!0)}else this.K.B("html5_enable_new_audio_settings_menu")&&(F=this.T)!=null&&F.setContent(""),
this.enable(!1)};
g.X.xS=function(R){g.j6.prototype.xS.call(this,R);R=this.tracks[R];this.K.setAudioTrack(R);this.T9.UD();this.K.m2("ad_sel",{lang:R.z9.id})};
g.X.Ua=function(R){return R.toString()};
g.X.t_=function(R){this.K.B("html5_enable_new_audio_settings_menu")?this.T&&(R?this.T.xF(this):this.T.W_(this)):g.j6.prototype.t_.call(this,R)};
g.X.onClick=function(){this.K.logClick(this.element)};g.a(YSk,g.w$);g.X=YSk.prototype;g.X.y7=function(){this.K.y7()};
g.X.open=function(){this.Xh.rr()>0&&g.aG(this.T9,this.Xh)};
g.X.v_=function(){this.Xh.rr()>0&&this.K.getPresentingPlayerType()!==2&&this.K.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};
g.X.gK=function(R){R.defaultPrevented||(this.open(),R.preventDefault())};
g.X.xF=function(R){this.Xh.xF(R)};
g.X.W_=function(R){this.Xh.W_(R)};g.a(rX,yk);
rX.prototype.v_=function(){var R=this.K.getPresentingPlayerType();if(R!==2&&R!==3&&g.Fp(this.K))this.T||(this.T9.xF(this),this.T=!0,this.U.push(this.C(this.K,"videodatachange",this.v_)),this.U.push(this.C(this.K,"videoplayerreset",this.v_)),this.U.push(this.C(this.K,"onPlaylistUpdate",this.v_)),this.U.push(this.C(this.K,"autonavchange",this.N)),R=this.K.getVideoData(),this.N(R.autonavState),this.K.logVisibility(this.element,this.T));else if(this.T){this.T9.W_(this);this.T=!1;R=g.m(this.U);for(var F=
R.next();!F.done;F=R.next())this.ZO(F.value)}};
rX.prototype.N=function(R){UY(this,R!==1)};
rX.prototype.onSelect=function(R){this.K.zz(R?2:1);this.T&&(this.K.logVisibility(this.element,this.T),this.K.logClick(this.element))};
rX.prototype.oG=function(){this.T&&this.T9.W_(this);yk.prototype.oG.call(this)};g.a(JVR,g.w$);JVR.prototype.onClick=function(R){R.preventDefault();var F,n;(F=g.KK(this.K))==null||(n=F.MX())==null||n.nC();var V,r;(V=g.KK(this.K))==null||(r=V.A$())==null||r.rW(R.target)};g.a(GcJ,g.j6);g.X=GcJ.prototype;
g.X.v_=function(){var R=this.K.getPresentingPlayerType();if(R!==2&&R!==3){this.J1=this.K.y3();var F=this.K.getAvailableQualityLevels();if(this.T){this.U={};R=g.u4(this.K,"getAvailableQualityData",[]);R=g.m(R);for(var n=R.next();!n.done;n=R.next())n=n.value,this.U[n.qualityLabel]=n;R=Object.keys(this.U);F[F.length-1]==="auto"&&R.push("auto");this.jQ=new Set(F)}else if(this.J){n=g.u4(this.K,"getAvailableQualityData",[]);R=[];n=g.m(n);for(var V=n.next();!V.done;V=n.next())V=V.value,this.Z[V.quality]=
V,V.quality&&R.push(V.quality);F[F.length-1]==="auto"&&R.push("auto")}else R=F;g.D4v(this.K)&&this.K.tb()&&R.unshift("missing-qualities");F=this.K.app.rX();n=F.getVideoData();if(!n.U||!n.U.video||n.U.video.qualityOrdinal<1080||n.e1)F=!1;else{V=/^qsa/.test(n.clientPlaybackNonce);var r="r";n.U.id.indexOf(";")>=0&&(V=/^[a-p]/.test(n.clientPlaybackNonce),r="x");V?(F.m2("iqss",{trigger:r},!0),F=!0):F=!1}F&&R.unshift("inline-survey");this.n2(R);F=this.K.getVideoData().cotn?!0:!1;n=this.Nq.AO();n=!g.Xk(this.K.D())||
!(F===void 0?0:F)||!(n===void 0||n);F=this.Xh;n=n===void 0?!1:n;F.y0&&g.ws(F.sZ("ytp-panel-footer"),"ytp-panel-hide-footer",n===void 0?!1:n);if(R.length){this.R7();this.enable(!0);return}}this.enable(!1)};
g.X.R7=function(){if(this.T){var R=this.K.getPreferredQuality();this.jQ.has(R)&&(this.W=this.K.getPlaybackQuality(),this.X=this.K.getPlaybackQualityLabel(),R==="auto"?(this.hO(R),this.setContent(this.lq(R))):this.hO(this.X))}else R=this.K.getPreferredQuality(),this.options[R]&&(this.W=this.K.getPlaybackQuality(),this.hO(R),R==="auto"&&this.setContent(this.lq(R)))};
g.X.xS=function(R){if(R!=="missing-qualities"){g.j6.prototype.xS.call(this,R);var F=this.T?this.U[R]:this.Z[R];var n=F==null?void 0:F.quality,V=F==null?void 0:F.formatId,r=F==null?void 0:F.paygatedQualityDetails;F=r==null?void 0:r.endpoint;if(r){var v;r=(v=this.options[R])==null?void 0:v.element;this.K.logClick(r)}if(this.T){var f,z;if((f=g.A(F,jD$))==null?0:(z=f.popup)==null?0:z.notificationActionRenderer)this.K.HG("innertubeCommand",F);else if(F){this.K.HG("innertubeCommand",F);return}V?this.K.setPlaybackQuality(n,
V):this.K.setPlaybackQuality(n)}else{if(this.J){var q,Q;if((q=g.A(F,jD$))==null?0:(Q=q.popup)==null?0:Q.notificationActionRenderer)this.K.HG("innertubeCommand",F);else if(F){this.K.HG("innertubeCommand",F);return}}this.K.setPlaybackQuality(R)}this.T9.nC();this.v_()}};
g.X.open=function(){for(var R=g.m(Object.values(this.options)),F=R.next();!F.done;F=R.next()){F=F.value;var n=void 0;this.K.hasVe((n=F)==null?void 0:n.element)&&(n=void 0,this.K.logVisibility((n=F)==null?void 0:n.element,!0))}g.j6.prototype.open.call(this);this.K.logClick(this.element)};
g.X.Rk=function(R,F,n){var V=this;if(R==="missing-qualities")return new g.w$({j:"a",BG:["ytp-menuitem"],S:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.K.D().UZ,tabindex:"0",role:"menuitemradio"},L:[{j:"div",BG:["ytp-menuitem-label"],cG:"{{label}}"}]},F,this.lq(R));if(R!=="inline-survey"){var r,v=(r=this.T?this.U[R]:this.Z[R])==null?void 0:r.paygatedQualityDetails;r=v==null?void 0:v.veType;v=v==null?void 0:v.trackingParams;F=g.j6.prototype.Rk.call(this,R,F,n);v?(this.K.createServerVe(F.element,
this,!0),this.K.setTrackingParams(F.element,v)):r&&this.K.createClientVe(F.element,this,r,!0);return F}R=[{j:"span",cG:"Looks good?"}];n=g.m([!0,!1]);v=n.next();for(r={};!v.done;r={xi:void 0},v=n.next())r.xi=v.value,v=new g.N({j:"span",Y:"ytp-menuitem-inline-survey-response",L:[r.xi?RXe():PxI()],S:{tabindex:"0",role:"button"}}),v.listen("click",function(f){return function(){var z=V.K.app.rX();z.m2("iqsr",{tu:f.xi});z.getVideoData().e1=!0;V.T9.nC();V.v_()}}(r)),R.push(v);
return new g.w$({j:"div",Y:"ytp-menuitem",S:{"aria-disabled":"true"},L:[{j:"div",BG:["ytp-menuitem-label"],L:R}]},F)};
g.X.lq=function(R,F){F=F===void 0?!1:F;if(R==="missing-qualities")return{j:"div",cG:"Missing options?"};if(R==="inline-survey")return"";var n=this.J||this.T?[luN(this,R,F,!1)]:[MJ6(this,R)];var V=this.K.getPreferredQuality();F||V!=="auto"||R!=="auto"||(n.push(" "),this.T?n.push(luN(this,this.X,F,!0,["ytp-menu-label-secondary"])):this.J?n.push(luN(this,this.W,F,!0,["ytp-menu-label-secondary"])):n.push(MJ6(this,this.W,["ytp-menu-label-secondary"])));return{j:"div",L:n}};g.a(vL,Wy);g.X=vL.prototype;g.X.Ch=function(){Wy.prototype.Ch.call(this);this.X&&this.ME()};
g.X.MBZ=function(){this.K.B("enable_web_premium_varispeed")&&uv(this,Math.round(this.T/.05)*.05);this.V()};
g.X.I5=function(){this.K.setPlaybackRate(this.T,!0)};
g.X.ME=function(){this.X.textContent=this.T.toFixed(2)+"x";var R=this.T>2&&this.K.B("enable_web_premium_varispeed");this.Nq.classList.toggle("ytp-speedslider-premium-badge",R);this.Nq.setAttribute("aria-label",R?"Premium":"")};
g.X.Ez=function(R){Wy.prototype.Ez.call(this,R);this.V();this.ME();this.K.B("web_enable_varispeed_panel")?(R.code==="ArrowUp"||R.code==="ArrowDown")&&R.preventDefault():R.preventDefault()};g.a(f7,g.N);g.X=f7.prototype;g.X.init=function(){this.M2(this.T);this.updateValue("minvalue",this.U);this.updateValue("maxvalue",this.N)};
g.X.qv=function(R){if(!R.defaultPrevented){switch(R.keyCode){case 37:case 40:var F=-this.X;break;case 39:case 38:F=this.X;break;default:return}this.M2(this.T+F);R.preventDefault()}};
g.X.dO=function(R){var F=this.T;F+=(R.deltaX||-R.deltaY)<0?-this.V:this.V;this.M2(F);R.preventDefault()};
g.X.SF=function(R){R=(R-g.sM(this.J).x)/this.Nq*this.range+this.U;this.M2(R)};
g.X.M2=function(R,F){F=F===void 0?"":F;R=g.vI(R,this.U,this.N);F===""&&(F=R.toString());this.updateValue("valuenow",R);this.updateValue("valuetext",F);this.J1.style.left=(R-this.U)/this.range*(this.Nq-this.PG)+"px";this.T=R};
g.X.focus=function(){this.Mq.focus()};g.a(tU,f7);tU.prototype.jQ=function(){this.K.setPlaybackRate(this.T,!0)};
tU.prototype.ME=function(){this.W.textContent=NcV(this,this.T)+"x"};
tU.prototype.M2=function(R){f7.prototype.M2.call(this,R,NcV(this,R).toString());this.W&&(this.ME(),this.lS())};
tU.prototype.updateValues=function(){var R=this.K.getPlaybackRate();NcV(this,this.T)!==R&&(this.M2(R),this.ME())};g.a(EkW,g.c5);EkW.prototype.focus=function(){this.T.focus()};g.a($eE,sb);g.a(bEN,g.j6);g.X=bEN.prototype;g.X.onVideoDataChange=function(R){R==="dataloaded"&&(R=this.K.getAvailablePlaybackRates(),g.Xu(this.J,R)||(this.J=R,this.Q3.dispose(),this.Q3=new vL(this.K)),this.CH())};
g.X.lq=function(R){return R==="1"?"Normal":R.toLocaleString()};
g.X.CH=function(){var R,F=(R=this.K.getVideoData())==null?void 0:R.iZ();R=this.K.getPresentingPlayerType(F);this.enable(R!==2&&R!==3);RFV(this)};
g.X.n2=function(R){g.j6.prototype.n2.call(this,R);this.Q3&&this.Q3.U.focus()};
g.X.t_=function(R){g.j6.prototype.t_.call(this,R);R?(this.Nq=this.C(this.K,"onPlaybackRateChange",this.onPlaybackRateChange),RFV(this),ZEN(this,this.K.getPlaybackRate()),this.K.B("enable_web_premium_varispeed_upsell")&&(this.K.logVisibility(this.element,!0),this.U&&this.K.logVisibility(this.X.element,!0))):(this.ZO(this.Nq),this.Nq=null)};
g.X.onPlaybackRateChange=function(R){var F=this.K.getPlaybackRate();!this.W&&this.J.includes(F)||eIW(this,F);ZEN(this,R)};
g.X.Rk=function(R,F,n){return R===this.T&&nf9(this.K)?g.j6.prototype.Rk.call(this,R,F,n,{j:"div",Y:"ytp-speed-slider-menu-footer",L:[this.Q3]}):R===this.U&&PzI(this.K,this.J1)?FAR(this,R,F,n):g.j6.prototype.Rk.call(this,R,F,n)};
g.X.xS=function(R){g.j6.prototype.xS.call(this,R);R===this.U?(this.K.logClick(this.X.element),this.K.HG("innertubeCommand",this.J1)):R===this.T?this.K.setPlaybackRate(this.Z,!0):this.K.setPlaybackRate(Number(R),!0);(!nf9(this.K)||R!==this.T&&R!==this.U)&&this.T9.UD()};
g.X.zB=function(R){var F=R===this.T;this.W=!1;F&&zE(this.K)&&!nf9(this.K)?(R=new $eE(this.K),g.aG(this.T9,R)):g.j6.prototype.zB.call(this,R)};g.a(rOj,g.j6);g.X=rOj.prototype;g.X.hO=function(R){g.j6.prototype.hO.call(this,R)};
g.X.Gr=function(R){return R.option.toString()};
g.X.getOption=function(R){return this.settings[R]};
g.X.lq=function(R){return this.getOption(R).text||""};
g.X.xS=function(R){g.j6.prototype.xS.call(this,R);this.publish("settingChange",this.setting,this.settings[R].option)};g.a(Qx,g.pN);Qx.prototype.P6=function(R){for(var F=g.m(Object.keys(R)),n=F.next();!n.done;n=F.next()){var V=n.value;if(n=this.UK[V]){var r=R[V].toString();V=!!R[V+"Override"];n.options[r]&&(n.hO(r),n.U.element.setAttribute("aria-checked",String(!V)),n.T.element.setAttribute("aria-checked",String(V)))}}};
Qx.prototype.lW=function(R,F){this.publish("settingChange",R,F)};g.a(cL,g.j6);cL.prototype.T=function(R){return R.languageCode};
cL.prototype.lq=function(R){return this.languages[R].languageName||""};
cL.prototype.xS=function(R){this.publish("select",R);this.K.logClick(this.element);g.CN(this.T9)};g.a(tVV,g.j6);g.X=tVV.prototype;g.X.Jh=function(R){return g.g7(R)?"__off__":R.displayName};
g.X.lq=function(R){return R==="__off__"?"Off":R==="__translate__"?"Auto-translate":R==="__contribute__"?"Add subtitles/CC":R==="__correction__"?"Suggest caption corrections":(R==="__off__"?{}:this.tracks[R]).displayName};
g.X.xS=function(R){if(R==="__translate__")this.T.open();else if(R==="__contribute__"){this.K.pauseVideo();this.K.isFullscreen()&&this.K.toggleFullscreen();var F=g.m$(this.K.D(),this.K.getVideoData());g.MO(F)}else if(R==="__correction__"){this.K.pauseVideo();this.K.isFullscreen()&&this.K.toggleFullscreen();var n=zFv(this);wX(this,n);g.j6.prototype.xS.call(this,this.Jh(n));var V,r;n=(F=this.K.getVideoData().getPlayerResponse())==null?void 0:(V=F.captions)==null?void 0:(r=V.playerCaptionsTracklistRenderer)==
null?void 0:r.openTranscriptCommand;this.K.HG("innertubeCommand",n);this.T9.UD();this.U&&this.K.logClick(this.U)}else{if(R==="__correction__"){this.K.pauseVideo();this.K.isFullscreen()&&this.K.toggleFullscreen();F=zFv(this);wX(this,F);g.j6.prototype.xS.call(this,this.Jh(F));var v,f;F=(n=this.K.getVideoData().getPlayerResponse())==null?void 0:(v=n.captions)==null?void 0:(f=v.playerCaptionsTracklistRenderer)==null?void 0:f.openTranscriptCommand;this.K.HG("innertubeCommand",F)}else this.K.logClick(this.element),
wX(this,R==="__off__"?{}:this.tracks[R]),g.j6.prototype.xS.call(this,R);this.T9.UD()}};
g.X.CH=function(){var R=this.K.getOptions();R=R&&R.indexOf("captions")!==-1;var F=this.K.getVideoData(),n=F&&F.BL,V,r=!((V=this.K.getVideoData())==null||!g.XY(V));V={};if(R||n){var v;if(R){var f=this.K.getOption("captions","track");V=this.K.getOption("captions","tracklist",{includeAsr:!0});var z=r?[]:this.K.getOption("captions","translationLanguages");this.tracks=g.C4(V,this.Jh,this);r=g.OM(V,this.Jh);var q,Q;zFv(this)&&((v=F.getPlayerResponse())==null?0:(q=v.captions)==null?0:(Q=q.playerCaptionsTracklistRenderer)==
null?0:Q.openTranscriptCommand)&&r.push("__correction__");if(z.length&&!g.g7(f)){if((v=f.translationLanguage)&&v.languageName){var c=v.languageName;v=z.findIndex(function(w){return w.languageName===c});
V7I(z,v)}vfW(this.T,z);r.push("__translate__")}v=this.Jh(f)}else this.tracks={},r=[],v="__off__";r.unshift("__off__");this.tracks.__off__={};n&&r.unshift("__contribute__");this.tracks[v]||(this.tracks[v]=f,r.push(v));this.n2(r);this.hO(v);f&&f.translationLanguage?this.T.hO(this.T.T(f.translationLanguage)):qbJ(this.T);R&&this.J.P6(this.K.getSubtitlesUserSettings());this.countLabel.setContent(V&&V.length?" ("+V.length+")":"");this.publish("size-change");this.K.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.X.rO=function(R){var F=this.K.getOption("captions","track");F=g.Di(F);F.translationLanguage=this.T.languages[R];wX(this,F)};
g.X.lW=function(R,F){if(R==="reset")this.K.resetSubtitlesUserSettings();else{var n={};n[R]=F;this.K.updateSubtitlesUserSettings(n)}fON(this,!0);this.W.start();this.J.P6(this.K.getSubtitlesUserSettings())};
g.X.LgZ=function(R){R||g.FK(this.W)};
g.X.oG=function(){g.FK(this.W);g.j6.prototype.oG.call(this)};
g.X.open=function(){g.j6.prototype.open.call(this);this.options.__correction__&&!this.U&&(this.U=this.options.__correction__.element,this.K.createClientVe(this.U,this,167341),this.K.logVisibility(this.U,!0))};g.a(Sv,sb);Sv.prototype.onPlaybackRateChange=function(R){uv(this.Q3,R,!0);this.ME(R)};
Sv.prototype.ME=function(R){R=Math.round(R*20)/20;this.sE.element.textContent=R.toFixed(2)+"x";this.NN.element.classList.toggle("ytp-variable-speed-panel-premium-badge-visible",R>2)};
Sv.prototype.Qt=function(){for(var R=this.K.getPlayerSize().width,F=g.m(this.element.getElementsByClassName("ytp-variable-speed-panel-preset-button-wrapper")),n=F.next();!n.done;n=F.next()){n=n.value;var V=void 0,r=Number((V=n.dataset.priority)!=null?V:0);V=!0;R<680?V=r>1:R<1900&&(V=r>0);g.av(n,V);n.setAttribute("aria-hidden",V?"false":"true")}};g.a(L7,g.j6);L7.prototype.T=function(){var R,F=(R=this.K.getVideoData())==null?void 0:R.iZ();R=this.K.getPresentingPlayerType(F);this.enable(R!==2&&R!==3)};
L7.prototype.U=function(R){this.setContent(R===1?"Normal":R.toString())};
L7.prototype.open=function(){g.aG(this.T9,new Sv(this.K))};g.a(qxj,g.AX);g.X=qxj.prototype;
g.X.initialize=function(){if(!this.isInitialized){var R=this.K.D();this.isInitialized=!0;try{this.Vs=new GcJ(this.K,this)}catch(n){g.mq(Error("QualityMenuItem creation failed"))}g.d(this,this.Vs);var F=new tVV(this.K,this);g.d(this,F);R.enableSpeedOptions&&(R.B("web_enable_varispeed_panel")?(F=new L7(this.K,this),g.d(this,F)):(F=new bEN(this.K,this),g.d(this,F)));(g.Pp(R)||R.Z)&&(R.U||R.gX)&&(F=new JVR(this.K,this),g.d(this,F));R.uZ&&!R.B("web_player_move_autonav_toggle")&&(F=new rX(this.K,this),
g.d(this,F));R.B("html5_enable_new_audio_settings_menu")?(this.m_=new YSk(this.K,this),g.d(this,this.m_)):(R=new Vx(this.K,this),g.d(this,R));this.K.publish("settingsMenuInitialized");kcj(this.settingsButton,this.kq.rr())}};
g.X.xF=function(R){this.initialize();this.kq.xF(R);kcj(this.settingsButton,this.kq.rr())};
g.X.W_=function(R){this.Zo()||(this.JJ&&this.kq.rr()<=1&&this.hide(),this.kq.W_(R),kcj(this.settingsButton,this.kq.rr()))};
g.X.rW=function(R){this.initialize();this.kq.rr()>0&&g.AX.prototype.rW.call(this,R)};
g.X.nC=function(){this.d_?this.d_=!1:g.AX.prototype.nC.call(this)};
g.X.show=function(){g.AX.prototype.show.call(this);g.z0(this.K.getRootNode(),"ytp-settings-shown")};
g.X.hide=function(){g.AX.prototype.hide.call(this);g.Qj(this.K.getRootNode(),"ytp-settings-shown")};
g.X.QG=function(R){this.K.logVisibility(this.element,R);this.K.publish("settingsMenuVisibilityChanged",R)};
g.X.y7=function(){this.K.y7()};g.a(wnN,g.N);g.X=wnN.prototype;g.X.onClick=function(){if(sL(this)&&(this.K.toggleSubtitles(),this.K.logClick(this.element),!this.isEnabled())){var R=!1,F=g.M8().pH(65);g.Xk(this.K.D())&&F!=null&&(R=!F);R&&this.K.D().B("web_player_nitrate_promo_tooltip")&&this.K.publish("showpromotooltip",this.element)}};
g.X.mP5=function(R){var F,n;(F=g.KK(this.K))==null||(n=F.MX())==null||n.rW(R)};
g.X.isEnabled=function(){var R=this.K.getOption("captions","track");return!(!R||!R.displayName)};
g.X.CH=function(){var R=sL(this),F=300;this.K.D().X&&(F=480);this.K.B("delhi_modern_web_player_icons")&&this.updateValue("icon",cOR(this));var n=this.K.D();if(n.B("html5_hide_unavailable_subtitles_button")?0:!n.Z){if(R){var V;(V=this.sZ("ytp-subtitles-button-icon"))==null||V.setAttribute("fill-opacity","1");this.K.D().B("player_tooltip_data_title_killswitch")?this.updateValue("title",g.Mj(this.K,"Subtitles/closed captions","c")):this.update({"tooltip-title":g.Mj(this.K,"Subtitles/closed captions",
"c")});this.update({"data-title-no-tooltip":"Subtitles/closed captions"})}else{if(this.K.B("delhi_modern_web_player_icons")){var r;(r=this.sZ("ytp-subtitles-button-icon"))==null||r.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var v;(v=this.sZ("ytp-subtitles-button-icon"))==null||v.setAttribute("fill-opacity","0.3")}this.updateValue("title","Subtitles/closed captions unavailable");this.update({"tooltip-title":"Subtitles/closed captions unavailable"});this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}n=
this.K.B("player_disable_caption_button_if_captions_not_available")&&this.K.B("delhi_modern_web_player")?R:!0}else this.updateValue("title",g.Mj(this.K,"Subtitles/closed captions","c")),this.update({"tooltip-title":g.Mj(this.K,"Subtitles/closed captions","c")}),this.update({"data-title-no-tooltip":"Subtitles/closed captions"}),n=R;this.tooltip.Ew();n=n&&this.K.fH().getPlayerSize().width>=F;this.dg(n);this.K.logVisibility(this.element,n);R?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",
!1)};
g.X.Un=function(R){g.N.prototype.Un.call(this,R)};g.a(g.p7,g.N);g.X=g.p7.prototype;g.X.canShowCountdown=function(){return!AU(this)&&!XJ(this)};
g.X.M5=function(){var R=this.api.fH().getPlayerSize().width,F=this.Nq;this.api.D().X&&(F=400);F=R>=F&&(!XJ(this)||!g.E(this.api.getPlayerStateObject(),64));this.dg(F);g.ws(this.element,"ytp-time-display-allow-autohide",F&&R<400);R=this.api.getProgressState();if(F){var n=this.api.getPresentingPlayerType();F=this.api.getCurrentTime(n,!1);this.U&&(F-=R.airingStart);AU(this)&&(F-=this.wg.startTimeMs/1E3);this.canShowCountdown()&&this.N&&(F-=this.api.getDuration(n,!1));var V=g.ot(F);this.J!==V&&(this.updateValue("currenttime",
V),this.J=V);n=AU(this)?(this.wg.endTimeMs-this.wg.startTimeMs)/1E3:this.api.getDuration(n,!1);V=g.ot(n);this.W!==V&&(this.updateValue("duration",V),this.W=V);F=g.fy("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.ot(F,!0),DURATION:g.ot(n,!0)});this.updateValue("timeDisplayAriaLabel",F)}Sx6(this,R.isAtLiveHead);LA_(this,this.api.getLoopRange())};
g.X.onLoopRangeChange=function(R){var F=this.wg!==R;this.wg=R;F&&(this.M5(),s1e(this))};
g.X.Q9H=function(){this.api.setLoopRange(null)};
g.X.CZ2=function(){this.N=!this.N;this.M5()};
g.X.onVideoDataChange=function(R,F,n){this.updateVideoData((this.api.D().B("enable_topsoil_wta_for_halftime")||this.api.D().B("enable_topsoil_wta_for_halftime_live_infra"))&&n===2?this.api.getVideoData({playerType:1}):F);this.M5();s1e(this)};
g.X.updateVideoData=function(R){this.hM=R.isLivePlayback&&!R.Fi;this.U=CK(R);this.isPremiere=R.isPremiere;var F,n,V;this.liveIndicatorText=(R=(F=R.getWatchNextResponse())==null?void 0:(n=F.playerOverlays)==null?void 0:(V=n.playerOverlayRenderer)==null?void 0:V.liveIndicatorText)?sT(R):null;g.ws(this.element,"ytp-live",XJ(this));this.api.B("delhi_modern_web_player")&&this.sZ("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())};
g.X.onClick=function(R){R.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())};
g.X.oG=function(){this.T&&this.T();g.N.prototype.oG.call(this)};g.a(AOV,g.N);g.X=AOV.prototype;g.X.by=function(){aON(this)};
g.X.PZ2=function(R){pn9(this,R);this.V&&aON(this)};
g.X.Hc=function(R){if(!R.defaultPrevented){var F=R.keyCode,n=null;F===37?n=this.volume-5:F===39?n=this.volume+5:F===36?n=0:F===35&&(n=100);n!==null&&(n=g.vI(n,0,100),n===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(n)),R.preventDefault())}};
g.X.Vg=function(R){var F=R.deltaX||-R.deltaY;R.deltaMode?this.api.setVolume(this.volume+(F<0?-10:10)):this.api.setVolume(this.volume+g.vI(F/10,-10,10));R.preventDefault();var n,V;((n=this.api.D())==null?0:(V=n.getWebPlayerContextConfig())==null?0:V.enableFullscreenComponentsFeature)&&R.stopPropagation()};
g.X.GIG=function(){ag(this,this.T,!0,this.U,this.api.J8());this.Nq=this.volume;this.api.isMuted()&&this.api.unMute()};
g.X.Lj=function(R){var F=this.N?78:52,n=this.N?18:12;R-=g.sM(this.X).x;n=g.vI((R-n/2)/(F-n),0,1);this.V&&(n=g.vI(R/F,0,1));F=n;F=this.api.B("web_player_non_linear_volume_controls")?F<=.25?F/.25*.1:.1+(F-.25)/.75*.9:F;this.api.setVolume(F*100)};
g.X.Rq5=function(){ag(this,this.T,!1,this.U,this.api.J8());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Nq))};
g.X.onVolumeChange=function(R){XnJ(this,R.volume,R.muted)};
g.X.Ne=function(){ag(this,this.T,this.isDragging,this.U,this.api.J8())};
g.X.oG=function(){g.N.prototype.oG.call(this);g.Qj(this.Z,"ytp-volume-slider-active")};g.a(C7,g.N);
C7.prototype.onVideoDataChange=function(){var R=this.api.D();this.G9();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData({playerType:1}).On;this.dg(this.visible);this.api.logVisibility(this.element,this.visible&&this.UZ);if(this.visible){var F=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",F)}R.N&&(this.T&&(this.ZO(this.T),this.T=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.z0(this.element,"no-link"));
F=this.api.D();R=this.api.getVideoData();var n="";F.N||(F=g.wg(F),F.indexOf("www.")===0&&(F=F.substring(4)),n=g.T9(R)?"Watch on YouTube Music":F==="youtube.com"?"Watch on YouTube":g.fy("Watch on $WEBSITE",{WEBSITE:F}));this.api.B("player_tooltip_data_title_killswitch")?this.updateValue("title",n):this.updateValue("tooltip-title",n)};
C7.prototype.onClick=function(R){this.api.B("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var F=this.api.D(),n=this.api.getVideoUrl(!g.y2(R),!1,!0,!0);if(g.Pp(F)){var V={};g.Pp(F)&&g.u4(this.api,"addEmbedsConversionTrackingParams",[V]);n=g.DI(n,V)}g.HN(n,this.api,R);this.api.B("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
C7.prototype.G9=function(){var R={j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{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 "}}]},
F=28666,n=this.api.getVideoData();this.api.isEmbedsShortsMode()?R={j:"svg",S:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},L:[{j:"path",S:{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.T9(n)&&(R={j:"svg",S:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},L:[{j:"path",S:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{j:"path",S:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z",
fill:"white"}},{j:"path",S:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{j:"path",S:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{j:"path",S:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z",
fill:"white"}},{j:"path",S:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{j:"path",S:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z",
fill:"white"}},{j:"path",S:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{j:"path",S:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z",
fill:"white"}},{j:"path",S:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z",
fill:"white"}},{j:"path",S:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{j:"path",S:{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"}}]},F=216163);g.T9(n)?g.z0(this.element,"ytp-youtube-music-button"):g.Qj(this.element,"ytp-youtube-music-button");R.S=Object.assign({},R.S,{"aria-hidden":"true"});this.updateValue("logoSvg",R);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,F,!0)};
C7.prototype.Un=function(R){g.N.prototype.Un.call(this,R);this.api.logVisibility(this.element,this.visible&&R)};g.a(ofI,g.AQ);g.X=ofI.prototype;g.X.onProgress=function(){if(this.K.B("web_player_max_seekable_on_ended")||!g.E(this.K.getPlayerStateObject(),2))mo(this.Ck),this.progressBar.M5(),this.J_.M5()};
g.X.d0=function(){this.g1();if(mo(this.Ck))this.progressBar.TZ();else this.onProgress()};
g.X.hZ=function(){this.onProgress();this.V.start()};
g.X.g1=function(){var R;if(R=!this.K.D().U){R=this.progressBar;var F=2*g.p9()*R.Z,n=R.N;R=(n.T-n.U)*1E3/R.api.getPlaybackRate()/F<300}R=R&&this.K.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;F=!R;mo(this.Ck)&&(R=F=!1);F?this.J1||(this.J1=this.C(this.K,"progresssync",this.onProgress)):this.J1&&(this.ZO(this.J1),this.J1=null);R?this.V.isActive()||this.V.start():this.V.stop()};
g.X.G9=function(){var R=this.K.ju(),F=this.K.fH().getPlayerSize(),n=this.K.fH().Cx,V=U$E(this),r=j1v(this),v=Math.max(F.width-V*2,100);if(this.h1!==F.width||this.uS!==R||this.K.B("web_player_rtr_ctrls")&&this.yr!==n)this.h1=F.width,this.uS=R,this.yr=n,this.T.element.style.width=r+"px",this.T.element.style.left=V+"px",g.KBV(this.progressBar,V,r,R),this.K.q8().u$=r;n=this.U;v=Math.min(570*(R?1.5:1),v);R=Math.min(413*(R?1.5:1),Math.round((F.height-HCN(this))*.82));n.maxWidth=v;n.maxHeight=R;n.hN();this.g1();
this.aG&&Xiv(this.dX,F.height)};
g.X.onVideoDataChange=function(){var R=this.K.getVideoData();this.bS.style.background=R.On?R.B8:"";this.Nq&&Up_(this.Nq,R.showSeekingControls);this.UZ&&Up_(this.UZ,R.showSeekingControls)};
g.X.Fs=function(){return this.T.element};g.a(WAk,LN);g.X=WAk.prototype;g.X.X3=function(R){R.target===this.dismissButton.element?this.T&&pl6(T4(),this.T):(this.onClickCommand&&(this.aq(!1),this.K.HG("innertubeCommand",this.onClickCommand)),this.An())};
g.X.An=function(){this.enabled=!1;this.V.hide()};
g.X.onVideoDataChange=function(R,F){R==="dataloaded"&&uz9(this);R=[];var n,V,r,v;if(F=(v=g.A((n=F.getWatchNextResponse())==null?void 0:(V=n.playerOverlays)==null?void 0:(r=V.playerOverlayRenderer)==null?void 0:r.suggestedActionsRenderer,bq7))==null?void 0:v.suggestedActions)for(n=g.m(F),V=n.next();!V.done;V=n.next())(V=g.A(V.value,Zqh))&&g.A(V.trigger,PU7)&&R.push(V);if(R.length!==0){n=[];R=g.m(R);for(V=R.next();!V.done;V=R.next())if(V=V.value,r=g.A(V.trigger,PU7)){v=(v=V.title)?g.LG(v):"View Chapters";
F=r.timeRangeStartMillis;var f=r.timeRangeEndMillis;r=r.onlyTriggersOnPlayerPause;V.tapCommand&&(F!=null&&f!=null&&n.push(new g.NQ(F,f,{priority:9,namespace:"suggested_action_button_visible",id:v})),F!=null&&f!=null||r)&&(this.suggestedActions[v]=V,V.rendererContext&&!this.U&&(v=g.A(V.rendererContext,u5q))&&(r=void 0,v=(r=v.loggingDirectives)==null?void 0:r.trackingParams)&&(this.K.setTrackingParams(this.badge.element,v),this.U=!0),r=void 0,((r=V.dismissButtonClientVeSpec)==null?0:r.uiType)&&!this.T&&
(this.T=XS(V.dismissButtonClientVeSpec.uiType),yW(T4(),this.T)))}this.K.iL(n)}};
g.X.Le=function(){return this.enabled};
g.X.QG=function(){this.enabled?this.Y5.start():wK(this);this.RI()};
g.X.onStateChange=function(R){for(var F=g.m(Object.keys(this.suggestedActions)),n=F.next();!n.done;n=F.next()){n=n.value;var V=void 0;if((V=g.A(this.suggestedActions[n].trigger,PU7))==null?0:V.onlyTriggersOnPlayerPause){R.state.isPaused()?(hFf(this,n),this.enabled=!0,this.QG()):R.oldState.isPaused()&&(this.enabled=!1,this.QG());break}}};
g.X.oG=function(){uz9(this);LN.prototype.oG.call(this)};var hh={},UL=(hh.CHANNEL_NAME="ytp-title-channel-name",hh.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",hh.LINK="ytp-title-link",hh.SESSIONLINK="yt-uix-sessionlink",hh.SUBTEXT="ytp-title-subtext",hh.TEXT="ytp-title-text",hh.TITLE="ytp-title",hh);g.a(jv,g.N);jv.prototype.onClick=function(R){this.api.logClick(this.element);var F=this.api.D(),n=this.api.getVideoUrl(!g.y2(R),!1,!0);g.Pp(F)&&(F={},g.u4(this.api,"addEmbedsConversionTrackingParams",[F]),n=g.DI(n,F));g.HN(n,this.api,R)};
jv.prototype.CH=function(){var R=this.api.getVideoData(),F=this.api.D();this.updateValue("title",R.title);var n={j:"a",Y:UL.CHANNEL_NAME,S:{href:"{{channelLink}}",target:"_blank"},cG:"{{channelName}}"};this.api.D().N?n={j:"span",Y:UL.CHANNEL_NAME,cG:"{{channelName}}",S:{tabIndex:"{{channelSubtextFocusable}}"}}:R.Bq&&(n={j:"span",Y:UL.SUBTEXT,cG:R.Bq});this.updateValue("subtextElement",n);BR6(this);this.api.getPresentingPlayerType()===2&&(n=this.api.getVideoData(),n.videoId&&n.isListed&&n.author&&
n.Y5&&n.profilePicture?(this.updateValue("channelLink",n.Y5),this.updateValue("channelName",n.author),this.updateValue("channelTitleFocusable","0")):BR6(this));n=F.externalFullscreen||!this.api.isFullscreen()&&F.mz;g.ws(this.link,UL.FULLERSCREEN_LINK,n);F.J1||!R.videoId||n||R.On||F.N?this.T&&(this.updateValue("url",null),this.ZO(this.T),this.T=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.T||(this.T=this.C(this.link,"click",this.onClick)));F.N&&(this.element.classList.add("ytp-no-link"),
this.updateValue("channelName",g.Pp(F)?R.expandedTitle:R.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.a(g.HL,g.N);g.X=g.HL.prototype;g.X.setEnabled=function(R){if(this.type!=null)if(R)switch(this.type){case 3:case 2:hU(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.Z=R};
g.X.T6=function(R,F,n,V,r,v,f,z){if(!this.lS||this.env.X){this.type===3&&this.TZ();this.type!==1&&(g.fO(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.Z&&this.fade.show(),this.U&&this.U.dispose(),(this.U=this.api.n4())&&this.U.subscribe("l",this.U$,this));if(z){var q=g.A_(this.bg).height||141;this.PG.style.bottom=q+2+"px"}else this.PG.style.display="none";this.env.B("delhi_modern_web_player")?(this.update({pillTimeStamp:n,pillTitle:v!=null?v:"",eduText:z!=null?z:""}),g.z0(this.element,"ytp-tooltip-progress-bar-style")):
(this.update({text:n,title:v!=null?v:"",eduText:z!=null?z:""}),g.ws(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!v));this.api.isInline()&&g.z0(this.bottomText,"ytp-modern-tooltip-text");g.ws(this.element,"ytp-text-detail",!!V);n=-1;this.U&&(n=tu(this.U,243*this.scale),this.env.B("web_l3_storyboard")&&this.U.levels.length===4&&(n=this.U.levels.length-1),n=Rcv(this.U,n,F));IOR(this,n);if(f)switch(F=g.A_(this.element).width,f){case 1:this.title.style.right="0";this.title.style.textAlign=
"left";break;case 2:this.title.style.right=F+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=F/2+"px",this.title.style.textAlign="center"}OCV(this,!!V,R,r)}};
g.X.RJ=function(){this.type===1&&this.TZ()};
g.X.TT=function(R,F){if(this.type)if(this.type===3)this.TZ();else return;m$I(this,R,3,F)};
g.X.Ew=function(){this.T&&!this.X&&(this.env.B("player_tooltip_data_title_killswitch")?this.T.hasAttribute("title")&&(this.N=this.T.getAttribute("title")||"",this.T.removeAttribute("title"),this.Z&&hU(this)):this.T.hasAttribute("data-tooltip-title")&&(this.N=this.T.getAttribute("data-tooltip-title")||"",this.T.removeAttribute("data-tooltip-title"),this.Z&&hU(this)))};
g.X.U$=function(R,F){R<=this.J&&this.J<=F&&(R=this.J,this.J=NaN,IOR(this,R))};
g.X.KQ5=function(){Zjj(this.U,this.J,243*this.scale)};
g.X.TZ=function(){switch(this.type){case 2:var R=this.T;R.removeEventListener("mouseout",this.V);R.addEventListener("mouseover",this.W);R.removeEventListener("blur",this.V);R.addEventListener("focus",this.W);KA6(this);break;case 3:KA6(this);break;case 1:this.U&&(this.U.unsubscribe("l",this.U$,this),this.U=null),this.api.removeEventListener("videoready",this.Nq),this.J1.stop()}this.type=null;this.Z&&this.fade.hide()};
g.X.I$=function(){if(this.T)for(var R=0;R<arguments.length;R++)g.xW(arguments[R],this.T)&&this.TZ()};
g.X.oG=function(){this.type!=null&&this.TZ();this.U&&this.U.dispose();g.N.prototype.oG.call(this)};g.a(iCe,g.N);g.X=iCe.prototype;g.X.cF=function(){this.visible=x$_(this);this.dg(this.visible);this.icon&&Yxe(this,this.icon);this.K.logVisibility(this.element,this.visible&&this.UZ)};
g.X.B_=function(){return this.K.getVideoData().videoId};
g.X.onClick=function(){this.K.logClick(this.element);var R=this.K.D(),F=this.B_();R.lS?D$e(this):kIW(this,F)};
g.X.onReset=function(){this.isRequestPending=this.T=!1;this.CH(2);this.cF()};
g.X.CH=function(R,F){var n=this.K.D();Yxe(this,R);F?this.K.B("player_tooltip_data_title_killswitch")?this.update({title:F,image:null}):this.update({"tooltip-title":F,image:null}):n.userDisplayName?(R={USER_NAME:n.userDisplayName},this.K.B("player_tooltip_data_title_killswitch")?this.update({title:this.T?g.fy("Added as $USER_NAME",R):g.fy("Watch later as $USER_NAME",R),image:UP(n)}):this.update({"tooltip-title":this.T?g.fy("Added as $USER_NAME",R):g.fy("Watch later as $USER_NAME",R),image:UP(n)})):
this.K.B("player_tooltip_data_title_killswitch")?this.update({title:"Watch later",image:null}):this.update({"tooltip-title":"Watch later",image:null});this.K.Ew()};
g.X.Un=function(R){g.N.prototype.Un.call(this,R);this.K.logVisibility(this.element,this.visible&&R)};g.a(JOR,g.Gs);g.X=JOR.prototype;
g.X.init=function(){var R=this;this.zk=new g.ME(this.api);this.api.B("web_player_delhi_dtts")?this.iP=new LU(this.api):this.iP=new PvV(this.api);this.F7=new g.N({j:"div",Y:"ytp-chrome-top"});this.tooltip=new g.HL(this.api,this);this.channelAvatar=new m_v(this.api);this.title=new jv(this.api);this.wV=new g.ze({j:"div",Y:"ytp-chrome-top-buttons"});this.gV=new yGJ(this.api,this.F7.element);this.nm=this.api.D().controlsType==="1"?new ofI(this.api,this,this.Ck):null;this.contextMenu=new My9(this.api,this.zk);
this.RK=new g.N({j:"div",S:{tabindex:"0"}});this.hA=new g.N({j:"div",S:{tabindex:"0"}});var F=this.api.fH(),n=this.api.D(),V=this.api.getVideoData();this.PO&&(g.z0(this.api.getRootNode(),"ytp-embed"),g.z0(this.api.getRootNode(),"ytp-embed-playlist"),this.s2&&(g.z0(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.z0(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.gH=60,this.vl=89);this.api.D().N&&g.z0(this.api.getRootNode(),"ytp-embed-pfl");this.api.D().U&&(g.z0(this.api.getRootNode(),
"ytp-mobile"),this.api.D().X&&g.z0(this.api.getRootNode(),"ytp-embed-mobile"));V&&V.videoId&&(this.zZ=V&&V.getEmbeddedPlayerResponse());g.d(this,this.zk);g.RL(this.api,this.zk.element,4);g.d(this,this.iP);g.RL(this.api,this.iP.element,4);V=new g.N({j:"div",Y:"ytp-gradient-top"});g.d(this,V);g.RL(this.api,V.element,1);this.wS=new g.n5(V,250,!0,100);g.d(this,this.wS);g.d(this,this.F7);g.RL(this.api,this.F7.element,1);this.W3=new g.n5(this.F7,250,!0,100);g.d(this,this.W3);g.d(this,this.tooltip);g.RL(this.api,
this.tooltip.element,4);var r=new xYk(this.api);g.d(this,r);g.RL(this.api,r.element,5);r.subscribe("show",function(q){R.Wu(r,q)});
this.tL.push(r);this.Im=new QJ(this.api,r);g.d(this,this.Im);!this.PO&&(this.II&&this.api.B("delhi_modern_web_player")?this.II.B6(this.Im.element,2):this.Im.KH(this.F7.element));g.d(this,this.channelAvatar);this.channelAvatar.KH(this.F7.element);g.d(this,this.title);this.title.KH(this.F7.element);this.PO&&(V=new pi_(this.api),g.d(this,V),V.KH(this.F7.element));g.d(this,this.wV);this.II?(this.wV.element.setAttribute("data-overlay-order","2"),this.II.B6(this.wV.element,2)):this.wV.KH(this.F7.element);
var v=new nOV(this.api,this);g.d(this,v);g.RL(this.api,v.element,5);v.subscribe("show",function(q){R.Wu(v,q)});
this.tL.push(v);this.searchButton=new Sy(this.api);g.d(this,this.searchButton);this.searchButton.KH(this.wV.element);V=this.api.D().getWebPlayerContextConfig();this.O8=new iCe(this.api);g.d(this,this.O8);(V==null?0:V.hideTopWatchNextButton)||this.O8.KH(this.wV.element);this.shareButton=new sc(this.api,this,v);g.d(this,this.shareButton);(V==null?0:V.hideTopShareButton)||this.shareButton.KH(this.wV.element);this.copyLinkButton=new ek(this.api,this);g.d(this,this.copyLinkButton);this.copyLinkButton.KH(this.wV.element);
this.PO&&this.Im.KH(this.wV.element);g.d(this,this.gV);this.gV.KH(this.wV.element);n.vU&&(V=new an(this.api),g.d(this,V),g.RL(this.api,V.element,4));n.N||(V=new U_9(this.api,this.gV),g.d(this,V),V.KH(this.wV.element));this.sF=new ISN(this.api);g.d(this,this.sF);g.RL(this.api,this.sF.element,5);this.sF.subscribe("show",function(){R.Wu(R.sF,R.sF.mw())});
this.tL.push(this.sF);this.overflowButton=new q_(this.api,this.sF);g.d(this,this.overflowButton);this.overflowButton.KH(this.wV.element);this.nm&&g.d(this,this.nm);n.controlsType==="3"&&(V=new wU(this.api),g.d(this,V),g.RL(this.api,V.element,9));g.d(this,this.contextMenu);this.contextMenu.subscribe("show",this.lD,this);this.RK.listen("focus",this.FK,this);g.d(this,this.RK);this.hA.listen("focus",this.KP,this);g.d(this,this.hA);var f;(this.Go=n.zy?null:new mYR(this.api,F,this.contextMenu,this.Ck,this.zk,
this.iP,function(){return R.EJ()},(f=this.nm)==null?void 0:f.progressBar))&&g.d(this,this.Go);
this.PO||(this.tW=new eG9(this.api),g.d(this,this.tW),this.II?this.II.B6(this.tW.element,3):g.RL(this.api,this.tW.element,4),this.qa=new zfv(this.api),g.d(this,this.qa),this.II?this.II.B6(this.qa.element,3):g.RL(this.api,this.qa.element,4));this.Nb=new WAk(this.api);g.d(this,this.Nb);this.II?this.II.B6(this.Nb.element,3):g.RL(this.api,this.Nb.element,4);if(this.PO){var z=new aSV(this.api,this.api.D().gX);g.d(this,z);g.RL(this.api,z.element,5);z.subscribe("show",function(q){R.Wu(z,q)});
F=new yUk(this.api,z);g.d(this,F);g.RL(this.api,F.element,4)}this.zX.push(this.zk.element);this.C(this.api,"fullscreentoggled",this.by);this.C(this.api,"offlineslatestatechange",function(){R.api.Rw()&&BR(R.Ck,128,!1)});
this.C(this.api,"cardstatechange",function(){R.N2()});
this.C(this.api,"resize",this.gyo);this.C(this.api,"videoplayerreset",this.onReset);this.C(this.api,"showpromotooltip",this.J0G);g.Gs.prototype.init.call(this)};
g.X.q8=function(){return this.tooltip};
g.X.w5=function(){return this.nm};
g.X.Wu=function(R,F){F?this.Bp=R:this.Bp=null;this.N2()};
g.X.Da=function(R,F){if(F)this.oi.push(R);else for(F=this.oi.length;F>=0;F--)if(this.oi[F]===R){this.oi.splice(F,1);break}BR(this.Ck,64,this.oi.length>0)};
g.X.M4=function(){this.api.OD()&&this.api.oY();return!!this.Bp||GIJ(this)||g.Gs.prototype.M4.call(this)};
g.X.N2=function(){var R=!this.M4(),F=R&&this.api.OD()&&!g.E(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().On&&!this.api.D().N&&!this.api.isEmbedsShortsMode(),n=this.PO&&g.PK(this.api)&&g.E(this.api.getPlayerStateObject(),128);R||n?(this.W3.show(),this.wS.show()):(this.W3.hide(),this.wS.hide(),this.api.I$(this.F7.element));F?this.gV.rW():this.gV.nC();this.nm&&yO_(this.nm,this.Fhq||!R);this.api.B("web_player_hide_overflow_button_if_empty_menu")&&d$I(this);g.Gs.prototype.N2.call(this)};
g.X.Du=function(R,F,n,V,r){R.style.left="";R.style.top="";R.style.bottom="";var v=g.A_(R),f=V||this.nm&&g.xW(this.nm.Fs(),F),z=V=null;n!=null&&f||(V=g.A_(F),z=g.pY(F,this.api.getRootNode()),n==null&&(n=z.x+V.width/2));n-=v.width/2;f?(F=this.nm,V=U$E(F),z=j1v(F),f=this.api.fH().getPlayerSize().height,n=g.vI(n,V,V+z-v.width),v=f-HCN(F)-v.height):g.xW(this.F7.element,F)?(F=this.api.fH().getPlayerSize().width,n=g.vI(n,12,F-v.width-12),v=this.ju()?this.vl:this.gH,this.api.D().playerStyle==="gvn"&&(v+=
20),this.PO&&(v-=this.ju()?26:18)):(F=this.api.fH().getPlayerSize(),n=g.vI(n,12,F.width-v.width-12),v=z.y>(F.height-V.height)/2?z.y-v.height-12:z.y+V.height+12);R.style.top=v+(r||0)+"px";R.style.left=n+"px"};
g.X.d0=function(R){R&&(this.api.I$(this.F7.element),this.nm&&this.api.I$(this.nm.Fs()));this.s2&&(g.ws(this.contextMenu.element,"ytp-autohide",R),g.ws(this.contextMenu.element,"ytp-autohide-active",!0));g.Gs.prototype.d0.call(this,R)};
g.X.wh=function(){g.Gs.prototype.wh.call(this);this.s2&&(g.ws(this.contextMenu.element,"ytp-autohide-active",!1),this.s2&&(this.contextMenu.hide(),this.sF&&this.sF.hide()))};
g.X.Rs=function(R,F){var n=this.api.fH().getPlayerSize();n=new g.VO(0,0,n.width,n.height);if(R||!mo(this.Ck)&&!this.M4()){if(this.api.D().d8||F)R=this.ju()?this.vl:this.gH,n.top+=R,n.height-=R;this.nm&&(n.height-=HCN(this.nm))}return n};
g.X.by=function(R){var F=this.api.getRootNode();R?F.parentElement?(F.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.D().externalFullscreen||(F.parentElement.insertBefore(this.RK.element,F),F.parentElement.insertBefore(this.hA.element,F.nextSibling))):g.uX(Error("Player not in DOM.")):(F.setAttribute("aria-label","YouTube Video Player"),this.RK.detach(),this.hA.detach());this.G9();this.zv()};
g.X.ju=function(){if(this.api.B("web_player_use_screen_width_for_big_mode")){var R;return this.api.fH().getPlayerSize().width>=((R=g.Vn(this.api.D().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?R:2E3)}R=this.api.D();return this.api.isFullscreen()&&!R.X||!1};
g.X.showControls=function(R){this.uT=!R;this.N2()};
g.X.G9=function(){var R=this.ju();this.tooltip.scale=R?1.5:1;this.contextMenu&&g.ws(this.contextMenu.element,"ytp-big-mode",R);this.N2();this.api.B("web_player_hide_overflow_button_if_empty_menu")||d$I(this);this.zv();var F=this.api.isEmbedsShortsMode();F&&R?(R=(this.api.fH().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.fY(this.F7.element,"padding-left",R+"px"),g.fY(this.F7.element,"padding-right",R+"px")):F&&(g.fY(this.F7.element,"padding-left",""),g.fY(this.F7.element,"padding-right",
""));g.Gs.prototype.G9.call(this)};
g.X.kG=function(){if(GIJ(this)&&!g.PK(this.api))return!1;var R=this.api.getVideoData();return!g.Pp(this.api.D())||this.api.getPresentingPlayerType()===2||!this.zZ||((R=this.zZ||R.zZ)?(R=R.embedPreview)?(R=R.thumbnailPreviewRenderer,R=R.videoDetails&&g.A(R.videoDetails,Jq_)||null):R=null:R=null,R&&R.collapsedRenderer&&R.expandedRenderer)?g.Gs.prototype.kG.call(this):!1};
g.X.zv=function(){g.Gs.prototype.zv.call(this);this.api.logVisibility(this.title.element,!!this.w$);this.Im&&this.Im.Un(!!this.w$);this.channelAvatar.Un(!!this.w$);this.overflowButton&&this.overflowButton.Un(this.SE()&&!!this.w$);this.shareButton&&this.shareButton.Un(!this.SE()&&!!this.w$);this.O8&&this.O8.Un(!this.SE()&&!!this.w$);this.searchButton&&this.searchButton.Un(!this.SE()&&!!this.w$);this.copyLinkButton&&this.copyLinkButton.Un(!this.SE()&&!!this.w$);if(!this.w$){this.api.I$(this.F7.element);
for(var R=0;R<this.tL.length;R++){var F=this.tL[R];F.mw()&&F.nC()}}};
g.X.md=function(R){this.nm&&yO_(this.nm,this.M4());this.N2();g.Gs.prototype.md.call(this,R)};
g.X.handleGlobalKeyDown=function(R,F,n,V,r,v,f,z){return this.Go?this.Go.handleGlobalKeyDown(R,F,n,V,r,v,f,z):!1};
g.X.handleGlobalKeyUp=function(R,F,n,V,r,v,f){return this.Go?this.Go.handleGlobalKeyUp(R,F,n,V,r,v,f):!1};
g.X.EJ=function(){if(this.contextMenu.JJ)return this.contextMenu.nC(),!0;if(this.oi.length)return this.oi[this.oi.length-1].nC(),!0;if(this.Bp)return this.Bp.nC(),!0;this.nm&&this.api.I$(this.nm.Fs());this.wV&&this.api.I$(this.wV.element);return g.Gs.prototype.EJ.call(this)};
g.X.eM=function(R,F){this.xm=F;this.Da(R,F);this.lD()};
g.X.lD=function(){var R=this.xm||this.contextMenu.mw();this.sR!==R&&(this.sR=R,this.api.HG("onAutonavPauseRequest",this.sR))};
g.X.FK=function(){MVj(this,this.api.getRootNode(),!0).focus()};
g.X.KP=function(){MVj(this,this.api.getRootNode(),!1).focus()};
g.X.MX=function(){return this.nm&&this.nm.U};
g.X.K7=function(){this.Ck.K7()};
g.X.hk=function(){this.zk.hide()};
g.X.yf=function(R){this.zk.yf(!R.isOrWillBePlaying())};
g.X.y4=function(R,F,n,V){this.iP.y4(R,F,n,V)};
g.X.renderChapterSeekingAnimation=function(R,F,n){this.iP.zq(R,F,n)};
g.X.gyo=function(){lOV(this,!0)};
g.X.onReset=function(){d$I(this)};
g.X.J0G=function(R){lOV(this,!1,R)};
g.X.A$=function(){return this.contextMenu};
g.X.hT=function(R,F){var n;if((n=this.nm)!=null){var V=Number(R.element.getAttribute("data-priority"))||0,r=0,v=n.N.element;F&&n.K.B("delhi_modern_web_player")&&(v=n.N.sZ(og[F]));F=g.m(v.children);for(n=F.next();!(n.done||V<(Number(n.value.getAttribute("data-priority"))||0));n=F.next())r++;R.KH(v,r)}};
g.X.w6=function(){var R,F=(R=this.nm)==null?void 0:R.progressBar;if(F){var n;((n=F.U)==null?0:n.isEnabled)&&F.w6()}};
g.X.B6=function(R,F,n){var V;(V=this.II)==null||V.B6(R,F,n)};g.a(g.WL,g.Lz);g.WL.prototype.yu=function(){return!1};
g.WL.prototype.create=function(){var R=this.player.D();g.Dz(R)&&R.U||R.disableOrganicUi?this.chrome=new g.Gs(this.player):this.chrome=new JOR(this.player);g.d(this,this.chrome);this.chrome.init()};
g.WL.prototype.Z0=function(){return this.chrome};var uP=[],NRN=!1;g.a(BL,g.G);BL.prototype.X=function(){this.T!=null&&this.app.getVideoData()!==this.T&&pM(this.T)&&kSf(this.app,this.T,void 0,void 0,this.N)};
BL.prototype.Z=function(){if(this.T!=null&&this.app.getVideoData()!==this.T&&this.U!=null&&this.J!=null&&this.W!=null&&pM(this.T)){var R=PRk(this.U,this.J,this.W);R==null?kSf(this.app,this.T,void 0,void 0,this.N):(this.U.m2("sgap",R),this.U.getVideoData().X&&this.U.Z3(!1),this.app.D().B("html5_remove_loop_range_on_gapless_fallback")&&(mi(this.app,"gaplessshortslooprange"),this.app.setLoopRange(null)))}};
BL.prototype.V=function(R){var F=this.app.rX();if(F){var n=this.app.getCurrentTime();Math.abs(n-R.end/1E3)>5&&F.m2("glrs",{cmt:n});F.seekTo(0,{seekSource:58});F.m2("glrre",{cmt:n})}};
BL.prototype.oG=function(){this.T=null;g.G.prototype.oG.call(this)};g.a(g.m_,y4);g.X=g.m_.prototype;g.X.isView=function(){return!0};
g.X.Uu=function(){var R=this.mediaElement.getCurrentTime();if(R<this.start)try{var F=this.mediaElement.vB(),n=vz(F,R);return!(this.start<n)}catch(V){}return!1};
g.X.Wo=function(){return q5(this.mediaElement.Wo(),this.start,this.end)};
g.X.vB=function(){return q5(this.mediaElement.vB(),this.start,this.end)};
g.X.Dr=function(){return q5(this.mediaElement.Dr(),this.start,this.end)};
g.X.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
g.X.setCurrentTime=function(R){this.mediaElement.setCurrentTime(R+this.start)};
g.X.getDuration=function(){return isFinite(this.end)&&!this.T?this.end-this.start:this.mediaElement.getDuration()-this.start};
g.X.play=function(){if(this.Uu()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(R){}}return this.mediaElement.play()};
g.X.fC=function(){var R=y4.prototype.fC.call(this);R.view=this.start+"-"+this.end;return R};
g.X.addEventListener=function(R,F){this.mediaElement.addEventListener(R,F)};
g.X.removeEventListener=function(R,F){this.mediaElement.removeEventListener(R,F)};
g.X.Kg=function(){return this.mediaElement.Kg()};
g.X.activate=function(R){this.mediaElement.activate(R)};
g.X.Hy=function(){return this.mediaElement.Hy()};
g.X.playVideo=function(){return this.mediaElement.playVideo()};
g.X.wf=function(){this.mediaElement.wf()};
g.X.jZ=function(){this.mediaElement.jZ()};
g.X.Ik=function(){return this.mediaElement.Ik()};
g.X.Fs=function(){return this.mediaElement.Fs()};
g.X.Eq=function(){return this.mediaElement.Eq()};
g.X.Gz=function(R){this.mediaElement.Gz(R)};
g.X.b6=function(){this.mediaElement.b6()};
g.X.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.X.setPlaybackRate=function(R){return this.mediaElement.setPlaybackRate(R)};
g.X.N7=function(){return this.mediaElement.N7()};
g.X.setLoop=function(R){this.mediaElement.setLoop(R)};
g.X.canPlayType=function(R,F){return this.mediaElement.canPlayType(R,F)};
g.X.isPaused=function(){return this.mediaElement.isPaused()};
g.X.isSeeking=function(){return this.mediaElement.isSeeking()};
g.X.isEnded=function(){return this.mediaElement.isEnded()};
g.X.vH=function(){return this.mediaElement.vH()};
g.X.wA=function(R){this.mediaElement.wA(R)};
g.X.Bf=function(){return this.mediaElement.Bf()};
g.X.load=function(){this.mediaElement.load()};
g.X.pause=function(){this.mediaElement.pause()};
g.X.Is=function(){return this.mediaElement.Is()};
g.X.CJ=function(){return this.mediaElement.CJ()};
g.X.T_=function(){return this.mediaElement.T_()};
g.X.xk=function(){return this.mediaElement.xk()};
g.X.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
g.X.oa=function(){return this.mediaElement.oa()};
g.X.DB=function(){return this.mediaElement.DB()};
g.X.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.X.wZ=function(){return this.mediaElement.wZ()};
g.X.getSize=function(){return this.mediaElement.getSize()};
g.X.setSize=function(R){this.mediaElement.setSize(R)};
g.X.getVolume=function(){return this.mediaElement.getVolume()};
g.X.setVolume=function(R){this.mediaElement.setVolume(R)};
g.X.setAttribute=function(R,F){this.mediaElement.setAttribute(R,F)};
g.X.removeAttribute=function(R){this.mediaElement.removeAttribute(R)};
g.X.hasAttribute=function(R){return this.mediaElement.hasAttribute(R)};
g.X.xU=i9(51);g.X.wN=i9(53);g.X.PD=i9(55);g.X.a_=i9(57);g.X.qs=function(){return this.mediaElement.qs()};
g.X.Ig=function(R){this.mediaElement.Ig(R)};
g.X.Fu=function(R){return this.mediaElement.Fu(R)};
g.X.Nm=function(){return this.mediaElement.Nm()};
g.X.stopVideo=function(){this.mediaElement.stopVideo()};
g.X.FU=function(R){this.mediaElement.FU(R)};
g.X.audioTracks=function(){return this.mediaElement.audioTracks()};
g.X.Ye=function(R){this.mediaElement.Ye(R)};g.a(eFE,g.G);g.X=eFE.prototype;g.X.getStatus=function(){return this.status};
g.X.Lf=function(){var R=this.T.getVideoData(),F=this.U.getVideoData(),n;if((n=R.N)&&!(n=!R.T)){n=R.T;for(var V=!1,r=!1,v=g.m(Object.values(n.T)),f=v.next();!f.done;f=v.next())f=f.value,f.info.audio&&f.index.isLoaded()&&(V=!0),f.info.video&&f.index.isLoaded()&&(r=!0);n.T["0"]&&(r=!0);n=V&&r}if(n)if(this.T.LX()){v=$$N(this.policy,this.T,this.U,this.PA);f=gX(this);n=f.Xv;r=f.aT;V=f.Y0;f=f.VU;if(!this.X){var z=this.U.uX()*1E3,q=this.T.uX();q=(V-n-q)*1E3;v&&v.msg==="in-the-past"&&(q=0);R=R.isAd();this.U.XD(z,
q,R);this.X=!0}v?(F="cannot_apply"+v.msg,delete v.msg,this.HB(F,v)):this.status.status===2?vIk(this):(R=this.T.Hy())&&ai(R)&&(!p6(R)&&g.PC()?this.HB("mse_closed"):F.T&&Fx(F.T)&&R.U&&!R.U.nJ()?this.HB("encr_upgrade"):(F=this.T.LX(),F.isEnded()?this.HB("elem_ended"):r<0?this.HB("next_player_future"):(this.Z=V,this.currentVideoDuration=V-n,this.N=i5j(R,n,V,!0),this.J=i5j(R,r,f,!1),R=this.U.getVideoData().clientPlaybackNonce,this.T.m2("gaplessPrep",{cpn:R}),this.T.WM(this.N,!1,nIE(this),this.CX.D().B("html5_shorts_gapless_keep_pending_requests")&&
hu(this.T.getVideoData())),this.T.setMediaElement(R9W(F,n,V,!this.T.getVideoData().isAd())),OL(this,2),vIk(this))))}else this.HB("no-elem")};
g.X.MV=function(R){var F=R===rhV(this).SM,n=F?this.N.T:this.N.U;F=F?this.J.T:this.J.U;if(n.isActive&&!F.isActive){var V=this.Z,r=this.CX.D().B("html5_gapless_disable_on_discontinuous_buffer")&&this.W!==0&&n.TI().length>1;rl(R.TI(),V-.01)&&!r&&(OL(this,4),n.isActive=!1,n.Vd=n.Vd||n.isActive,(this.W===1?this.T:this.U).m2("sbh",{}),F.isActive=!0,F.Vd=F.Vd||F.isActive,this.W!==0&&(this.T.getVideoData().CY=!0));R=this.J.U;if(this.J.T.isActive&&R.isActive&&(OL(this,5),this.W!==0)){R=this.U.nQ();n=this.T.nQ();
this.T.m2("sbs",{citag:n==null?void 0:n.itag,nitag:R==null?void 0:R.itag});this.U.m2("gitags",{pitag:n==null?void 0:n.itag,citag:R==null?void 0:R.itag});var v;(v=this.U)==null||v.Tm()}}};
g.X.NK=function(){this.F$()&&this.HB("player-reload-after-handoff")};
g.X.HB=function(R,F){F=F===void 0?{}:F;if(!this.Zo()&&this.status.status!==6){var n=this.status.status>=4&&R!=="player-reload-after-handoff";this.status={status:Infinity,error:R};if(this.T&&this.U){var V=this.U.getVideoData().clientPlaybackNonce;this.T.Tk(new g.z$("dai.transitionfailure",Object.assign(F,{cpn:V,transitionTimeMs:this.PA,msg:R})));this.T.Z3(n)}this.F9.reject(R);this.dispose()}};
g.X.F$=function(){return this.status.status>=4&&this.status.status<6};
g.X.oG=function(){V_N(this);this.T.unsubscribe("newelementrequired",this.NK,this);if(this.N){var R=this.N.U;this.N.T.En.unsubscribe("updateend",this.MV,this);R.En.unsubscribe("updateend",this.MV,this)}g.G.prototype.oG.call(this)};
g.X.xB=function(R){g.Sx(R,128)&&this.HB("player-error-event")};g.a(Ig,g.G);Ig.prototype.clearQueue=function(R,F){R=R===void 0?!1:R;F=F===void 0?!1:F;K7(this);this.J&&this.J.reject("Queue cleared");this.app.D().B("html5_gapless_fallback_on_qoe_restart_v2")||F&&this.U&&this.U.Z3(!1);DS(this,R)};
Ig.prototype.UF=function(){return!this.T};
Ig.prototype.F$=function(){var R;return((R=this.N)==null?void 0:R.F$())||!1};
Ig.prototype.oG=function(){K7(this);DS(this);g.G.prototype.oG.call(this)};g.a(Lyv,g.fG);g.X=Lyv.prototype;g.X.getVisibilityState=function(R,F,n,V,r,v,f,z){return R?4:r&&Ezv?7:l96&&!(rw()||document.hasFocus&&document.hasFocus())||rw()?3:F?2:n?1:V?5:r&&!Ezv?7:v?8:f?9:z?10:0};
g.X.Ax=function(R){this.fullscreen!==R&&(this.fullscreen=R,this.QG())};
g.X.setMinimized=function(R){this.U!==R&&(this.U=R,this.QG())};
g.X.setInline=function(R){this.inline!==R&&(this.inline=R,this.QG())};
g.X.rI=function(R){this.pictureInPicture!==R&&(this.pictureInPicture=R,this.QG())};
g.X.setSqueezeback=function(R){this.N!==R&&(this.N=R,this.QG())};
g.X.tN=function(R){this.J!==R&&(this.J=R,this.QG())};
g.X.oa=function(){return this.T};
g.X.dT=function(){return this.fullscreen!==0};
g.X.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4};
g.X.aK=function(){return this.fullscreen};
g.X.isMinimized=function(){return this.U};
g.X.isInline=function(){return this.inline};
g.X.isBackground=function(){return rw()};
g.X.Yw=function(){return this.pictureInPicture};
g.X.No=function(){return!1};
g.X.w0=function(){return this.N};
g.X.ey=function(){return this.J};
g.X.QG=function(){this.publish("visibilitychange");var R=this.getVisibilityState(this.oa(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Yw(),this.No(),this.w0(),this.ey());R!==this.Z&&this.publish("visibilitystatechange");this.Z=R};
g.X.oG=function(){MhJ(this.W);g.fG.prototype.oG.call(this)};g.a(g.iP,g.G);g.X=g.iP.prototype;g.X.oG=function(){this.videoData=this.playerState=null;g.G.prototype.oG.call(this)};
g.X.addCueRange=function(){};
g.X.DJ=function(){};
g.X.Ns=function(){};
g.X.yT=function(){return!1};
g.X.KN=function(){return!1};
g.X.oN=function(){};
g.X.HL=function(){};
g.X.ZH=function(){return[]};
g.X.y7=function(){};
g.X.bF=function(){};
g.X.a8=function(){return 1};
g.X.getAudioTrack=function(){return this.getVideoData().FG};
g.X.Zr=function(){return null};
g.X.getAvailableAudioTracks=function(){return[]};
g.X.y3=function(){return[]};
g.X.yn=function(){return[]};
g.X.du=function(){return this.G.B("web_player_misc_bugfix_b")?this.getVideoData().clientPlaybackNonce:""};
g.X.n5=function(){return[]};
g.X.MU=function(){};
g.X.uX=function(){return 0};
g.X.getCurrentTime=function(){return 0};
g.X.n3=function(){};
g.X.nQ=function(){};
g.X.fC=function(){return{}};
g.X.getDuration=function(){return 0};
g.X.t5=function(){return 0};
g.X.wD=function(){return 0};
g.X.M$=function(){return!1};
g.X.L2=function(){return 0};
g.X.LW=function(){return 0};
g.X.B5=function(){return null};
g.X.HE=function(){return 0};
g.X.N7=function(){return!1};
g.X.Uf=function(){return 0};
g.X.LX=function(){return null};
g.X.Hy=function(){return null};
g.X.RC=function(){return 0};
g.X.AQ=function(){return 0};
g.X.Yc=function(){return g.Y(function(R){g.rq(R)})};
g.X.Xk=i9(11);g.X.getPlaybackQuality=function(){return"auto"};
g.X.getPlaybackRate=function(){return 1};
g.X.getPlayerState=function(){this.playerState||(this.playerState=new g.Wz);return this.playerState};
g.X.getPlayerType=function(){return 0};
g.X.getPlaylistSequenceForTime=function(){return null};
g.X.Uq=function(){return function(){}};
g.X.cX=function(){return""};
g.X.getPreferredQuality=function(){return"unknown"};
g.X.Po=function(){};
g.X.getProximaLatencyPreference=function(){return 0};
g.X.LJ=function(){return LM};
g.X.getStartTime=function(){return NaN};
g.X.n4=function(){return null};
g.X.getStoryboardFormat=function(){return null};
g.X.getStreamTimeOffset=function(){return 0};
g.X.e_=function(){return 0};
g.X.qC=function(){return 0};
g.X.Sk=function(){return{Rv:[],OL:[],currentTime:0,vp:"",droppedVideoFrames:0,isGapless:!1,UF:!0,PC:0,fz:0,O4:0,E4:0,pz:0,Nl:[],rq:[],SR:null,O$:"0",E$:null,Dx:"",totalVideoFrames:0}};
g.X.getUserAudio51Preference=function(){return 0};
g.X.getUserPlaybackQualityPreference=function(){return""};
g.X.getVideoData=function(){if(!this.videoData){var R=this.G.B("web_player_misc_bugfix_b")?{cpn:""}:void 0;this.videoData=new g.sr(this.G,R);g.d(this,this.videoData)}return this.videoData};
g.X.KU=function(){return null};
g.X.Zw=function(){return null};
g.X.B_=function(){};
g.X.getVideoLoadedFraction=function(){return 0};
g.X.tQ=function(){};
g.X.handleError=function(){};
g.X.Z3=function(){};
g.X.xW=function(){};
g.X.CQ=i9(36);g.X.xb=function(){return!1};
g.X.hasSupportedAudio51Tracks=function(){return!1};
g.X.isAd=function(){return!1};
g.X.PX=function(){return!1};
g.X.oa=function(){return!1};
g.X.isAtLiveHead=function(){return!1};
g.X.D3=function(){return!0};
g.X.isGapless=function(){return!1};
g.X.isHdr=function(){return!1};
g.X.dZ=function(){return!1};
g.X.oM=function(){return!1};
g.X.j8=function(){return!1};
g.X.isProximaLatencyEligible=function(){return!1};
g.X.UF=function(){return!0};
g.X.Q4=function(){return!1};
g.X.RN=function(){return!1};
g.X.IT=function(){};
g.X.yM=function(){};
g.X.Tm=function(){};
g.X.jj=function(){};
g.X.MJ=function(){};
g.X.gM=function(){};
g.X.Q2=function(){};
g.X.TU=i9(46);g.X.EF=i9(17);g.X.MY=function(){};
g.X.pauseVideo=function(){};
g.X.prefetchKeyPlay=function(){};
g.X.playVideo=function(){return g.Y(function(R){return R.return()})};
g.X.Gf=function(){};
g.X.Pt=i9(23);g.X.d2=i9(29);g.X.Ai=function(){};
g.X.m2=function(){};
g.X.S7=function(){};
g.X.Yp=function(){};
g.X.XD=function(){};
g.X.Tk=function(){};
g.X.wE=function(){};
g.X.Ph=function(){};
g.X.PV=function(){};
g.X.FE=function(){};
g.X.l6=function(){};
g.X.Md=function(){};
g.X.removeCueRange=function(){};
g.X.xg=function(){};
g.X.Bw=function(){return[]};
g.X.Tv=function(){};
g.X.AD=function(){};
g.X.pR=function(){};
g.X.Ce=function(){};
g.X.XE=function(){};
g.X.e4=function(){};
g.X.xO=function(){};
g.X.seekTo=function(){};
g.X.sendAbandonmentPing=function(){};
g.X.sendVideoStatsEngageEvent=function(){};
g.X.q0=function(){};
g.X.setLoop=function(){};
g.X.Hh=function(){};
g.X.setMediaElement=function(){};
g.X.WM=function(){};
g.X.setPlaybackRate=function(){};
g.X.Rr=function(){};
g.X.V_=function(){};
g.X.wK=function(){};
g.X.setProximaLatencyPreference=function(){};
g.X.KG=function(){};
g.X.BM=function(){};
g.X.WY=function(){};
g.X.zj=function(){};
g.X.u6=function(){};
g.X.setUserAudio51Preference=function(){};
g.X.xJ=function(){};
g.X.K5=function(){return!1};
g.X.DB=function(){};
g.X.AG=function(){return!1};
g.X.mx=function(){};
g.X.gA=function(){};
g.X.vM=function(){};
g.X.stopVideo=function(){};
g.X.subscribe=function(){return NaN};
g.X.WA=function(){};
g.X.togglePictureInPicture=function(){};
g.X.ai=function(){return 0};
g.X.ZP=function(){};
g.X.unsubscribe=function(){return!1};
g.X.mq=function(){};
g.X.QY=function(){return!1};
g.X.Z1=function(){};
g.X.nu=function(){};
g.X.hp=function(){};g.a(pXe,g.G);g.X=pXe.prototype;g.X.get=function(R){xJ(this);var F=this.data.find(function(n){return n.key===R});
return F?F.value:null};
g.X.PH=function(){xJ(this);return this.data.map(function(R){return R.value})};
g.X.set=function(R,F,n){this.remove(R,!0);xJ(this);R={key:R,value:F,expire:Infinity};n&&isFinite(n)&&(n*=1E3,R.expire=(0,g.h1)()+n);for(this.data.push(R);this.data.length>this.N;)(n=this.data.shift())&&YJ(this,n,!0);kJ(this)};
g.X.remove=function(R,F){F=F===void 0?!1:F;var n=this.data.find(function(V){return V.key===R});
n&&(YJ(this,n,F),g.r7(this.data,function(V){return V.key===R}),kJ(this))};
g.X.removeAll=function(R){if(R=R===void 0?!1:R)for(var F=g.m(this.data),n=F.next();!n.done;n=F.next())YJ(this,n.value,R);this.data=[];kJ(this)};
g.X.oG=function(){var R=this;g.G.prototype.oG.call(this);this.data.forEach(function(F){YJ(R,F,!0)});
this.data=[]};
g.a(s9J,g.G);g.X=s9J.prototype;g.X.get=function(R){var F=this.map.get(R);return F?F.F_<=(0,g.h1)()?(this.remove(R,!0),null):F.value:null};
g.X.PH=function(){for(var R=[],F=(0,g.h1)(),n=[],V=g.m(this.map.entries()),r=V.next();!r.done;r=V.next()){var v=g.m(r.value);r=v.next().value;v=v.next().value;v.F_<=F?n.push(r):R.push(v.value)}if(n.length>0){F=g.m(n);for(n=F.next();!n.done;n=F.next())JU(this,n.value,!0);GE(this)}return R};
g.X.set=function(R,F,n){this.map.has(R)&&JU(this,R,!0);var V=(0,g.h1)(),r=Infinity;n!==void 0&&n!==null&&isFinite(n)&&(r=V+n*1E3);this.map.set(R,{value:F,F_:r});isFinite(r)&&(this.T.enqueue(r,R),J$(this.T)===r&&GE(this));if(!Number.isNaN(this.J))for(R=this.map.keys();this.map.size>this.J;){F=R.next();if(F.done)break;JU(this,F.value,!0)}};
g.X.remove=function(R,F){JU(this,R,F===void 0?!1:F)&&GE(this)};
g.X.removeAll=function(R){if((R===void 0?0:R)&&this.U){R=g.m(this.map.values());for(var F=R.next();!F.done;F=R.next())this.U(F.value.value)}this.map.clear();this.T.clear();this.N.stop()};
g.X.oG=function(){g.G.prototype.oG.call(this);this.removeAll(!0)};g.a(g.dX,g.G);g.X=g.dX.prototype;g.X.oG=function(){for(var R=g.m(Object.values(this.N)),F=R.next();!F.done;F=R.next())F.value.dispose();aoE(this);this.Z.dispose();g.G.prototype.oG.call(this)};
g.X.mW=function(R){return R?R===1?this.UZ:this.U.getVideoData().enableServerStitchedDai&&R===2?this.U.getVideoData().fK?this.N[2]||this.U:this.U:this.N[R]||null:this.U};
g.X.Jm=function(R){var F=R.cpn;R=R.playerType;if(F)a:{R=g.m(Object.values(this.N));for(var n=R.next();!n.done;n=R.next())if(n=n.value,n.du()===F){F=n;break a}F=this.J[F]||null}else F=R?this.mW(R):this.U;return F};
g.X.UN=function(){return this.UZ};
g.X.VL=function(R){this.UZ=R};
g.X.rX=function(){return this.U};
g.X.ao=function(R){var F=[R],n=[this.U];this.U=R;MY(this,F,n)};
g.X.Gq=i9(42);g.X.bd=i9(44);DWk.prototype.Sy=function(R,F){for(var n=0;n<10;n++){var V=this.T[n],r=V+(n===0?R:0),v=1*Math.pow(2,n);if(r<=v)break;V=Math.min(1,(r-v*.5)/V);for(r=0;r<16;r++)v=this.values[n*16+r]*V,this.values[(n+1)*16+r]+=v,this.T[n+1]+=v,this.values[n*16+r]-=v,this.T[n]-=v}V=n=0;r=8192;F>8192&&(n=Math.ceil(Math.log(F/8192)/Math.log(2)),V=8192*Math.pow(2,n-1),r=V*2);n+2>16?this.values[15]+=R:(F=(F-V)/(r-V),this.values[n]+=R*(1-F),this.values[n+1]+=R*F);this.T[0]+=R};
DWk.prototype.Cm=function(){var R=R===void 0?this.U:R;var F=F===void 0?.02:F;var n=n===void 0?.98:n;for(var V=this.N,r=0;r<16;r++)V[r]=this.values[r];r=this.T[0];for(var v=1;v<11;v++){var f=this.T[v];if(f===0)break;for(var z=Math.min(1,(R-r)/f),q=0;q<16;q++)V[q]+=this.values[v*16+q]*z;r+=f*z;if(z<1)break}for(v=R=f=0;v<16;v++){z=f+V[v]/r;R+=Math.max(0,Math.min(z,n)-Math.max(f,F))*(v>0?8192*Math.pow(2,v-1):0);if(z>n)break;f=z}return R/(n-F)};NY.prototype.Sy=function(R,F){R=Math.min(this.T,Math.max(1,Math.round(R*this.resolution)));R+this.U>=this.T&&(this.N=!0);for(;R--;)this.values[this.U]=F,this.U=(this.U+1)%this.T;this.Fk=!0};
NY.prototype.percentile=function(R){var F=this;if(!this.N&&this.U===0)return 0;this.Fk&&(g.p4(this.W,function(n,V){return F.values[n]-F.values[V]}),this.Fk=!1);
return this.values[this.W[Math.round(R*((this.N?this.T:this.U)-1))]]||0};
NY.prototype.Cm=function(){return this.Z?(this.percentile(this.J-this.Z)+this.percentile(this.J)+this.percentile(this.J+this.Z))/3:this.percentile(this.J)};g.a(iHv,g.G);iHv.prototype.SQ=function(){var R;(R=this.gX)==null||R.start();Bf(this)&&this.policy.V&&this.uS()};YWJ.prototype.B=function(R){return this.experiments.GH(R)};g.a(G1I,g.fi);g.X=G1I.prototype;g.X.Sz=function(){};
g.X.du=function(){return this.videoData.clientPlaybackNonce};
g.X.getVideoData=function(){return this.videoData};
g.X.getCurrentTime=function(R){var F=g.fi.prototype.getCurrentTime.call(this);this.T===0?R||(F-=this.startTimeSecs,g.fi.prototype.getVideoData.call(this).B("html5_ssdai_log_missed_ad_impressions")&&this.U&&this.N&&F>1&&this.m2("sdai-admiss",{cpn:this.du(),ct:F.toFixed(3),pfs:this.N}),this.U=!1):R&&(F=this.T);return F};
g.X.getDuration=function(){return this.duration};
g.X.getPlayerType=function(){return 2};
g.X.getStartTime=function(){return this.startTimeSecs};
g.X.sU=function(R){this.duration=R};g.PL.prototype.dC=function(R,F){if(F===1)return this.T.get(R);if(F===2)return this.N.get(R);if(F===3)return this.U.get(R)};
g.PL.prototype.MZ=i9(64);g.PL.prototype.pw=function(R,F,n,V){n={jP:V,RD:n};F?this.N.set(R,n):this.T.set(R,n)};
g.PL.prototype.clearAll=function(){this.T.clear();this.N.clear();this.U.clear()};
M_R.prototype.clear=function(){this.U=[];this.N.clear();this.J.clear();this.T.clear()};
M_R.prototype.Jm=function(R){return this.N.get(R)};
g.a(g.bP,g.G);g.X=g.bP.prototype;g.X.ZH=function(){var R=this.playback.ZH("serverstitchedcuerange",36E5);R=g.m(R);for(var F=R.next();!F.done;F=R.next())this.U.delete(F.value.getId())};
g.X.onCueRangeEnter=function(R){var F=R.getId();this.BI({oncueEnter:1,cpn:F,start:R.start,end:R.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.uX()||0).toFixed(3)});var n=this.T.Jm(F);this.BI({enterAdCueRange:1});var V=this.Oq||this.Td().cpn,r;V=(r=this.T.Jm(V))!=null?r:this.Td();n&&(r=this.playback.getCurrentTime(),n.startTimeSecs=R.start/1E3,n={JE:V,TN:n,U9:r},hEI(this,F,R.start/1E3,r),rh(this,n));this.dX=!1};
g.X.OM=function(R,F,n){var V;if(R&&F&&R!==((V=this.app.I9().T)==null?void 0:V.du()))if((this.app.I9().J[R]||null)===null){var r;this.BI({nocpn:R,active:(r=this.app.I9().T)==null?void 0:r.du()})}else{this.dX=n!=null?n:!1;var v;n=((v=this.app.I9().T)==null?void 0:v.du())||this.playback.du();var f;v=(f=this.T.Jm(n))!=null?f:this.Td();var z;f=(z=this.T.Jm(R))!=null?z:this.Td();f.startTimeSecs=F;f.playerType===2&&(f.Xo=f.Xo!=null?Math.min(f.Xo,F):F);z=this.playback.getCurrentTime();hEI(this,n,F,z);rh(this,
{JE:v,TN:f,U9:z});if(this.playback.getVideoData().iZ()&&R===this.playback.du())if(F=this.YF.get(n)){var q;R=g.m((q=this.bS.get(F))!=null?q:[]);for(q=R.next();!q.done;q=R.next()){q=q.value;f=z=void 0;v=this.app.I9();f=f===void 0?"":f;if(n=v.J[q])v.T===n&&(v.T=null),v.X===n&&(v.X=null),q===((z=v.V.get(f))==null?void 0:z.du())&&v.V.delete(f),delete v.J[q];this.jQ.delete(q);this.YF.delete(q)}this.bS.delete(F)}else this.BI({no_abid:R})}};
g.X.Mf=function(R,F){if(R===this.playback.du())lP(this.app.I9(),this.playback,!1);else{var n=this.jQ.get(R);n?(R=!this.dX,n.T=0,n.startTimeSecs=F,n.N=R===void 0?!0:R,n.U=!0,lP(this.app.I9(),n,!0)):this.BI({nop_s:R})}};
g.X.onCueRangeExit=function(R){var F=this.playback.getCurrentTime()*1E3,n=R.getId();this.BI({oncueExit:1,cpn:n,start:R.start,end:R.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.uX()||0).toFixed(3)});for(var V=g.m(this.U.values()),r=V.next();!r.done;r=V.next())if(r=r.value,r.getId()!==n&&F>=r.start&&F<=r.end)return;if(n=this.T.Jm(n))F=this.playback.getCurrentTime(),V=this.Td(),V.startTimeSecs=R.end/1E3,n={JE:n,TN:V,U9:F},hEI(this,this.playback.du(),R.end/1E3,F),rh(this,n)};
g.X.Td=function(){return{cpn:this.playback.du(),durationMs:0,PT:0,playerType:1,Pw:0,videoData:this.playback.getVideoData(),errorCount:0,uq:""}};
g.X.seekTo=function(R,F,n,V){R=R===void 0?0:R;F=F===void 0?{}:F;n=n===void 0?!1:n;V=V===void 0?null:V;VV(this,this.Oq);if(this.playback.getVideoData().iZ()&&R<=this.lS)this.playback.pauseVideo(),this.lS=0,WXj(this,R);else if(this.dX=this.UZ=!0,n)ZHk(this,R,F);else{n=this.app.rX();var r=n===this.Mq?this.aG:null;FL(this,!1);this.KC=R;this.on=F;V!=null&&this.mQ.start(V);n&&(this.aG=r||n.getPlayerState(),n.vM(F),this.Mq=n)}};
g.X.oG=function(){FL(this,!1);cMN(this);wkW(this);g.G.prototype.oG.call(this)};
g.X.xC=function(R,F,n){if(n&&F){var V=this.uu.get(R);if(V){V.locations||(V.locations=new Map);var r=Number(F.split(";")[0]);n=new g.LW(n);this.BI({hdlredir:1,itag:F,seg:R,hostport:pW(77,n)});V.locations.set(r,n)}}};
g.X.BH=function(R,F,n,V,r,v){var f=Number(n.split(";")[0]),z=V===3;R=sIV(this,R,F,V,n,v);this.BI({gdu:1,seg:F,itag:f,pb:""+!!R});if(!R)return nc(this,F,z),null;R.locations||(R.locations=new Map);if(!R.locations.has(f)){var q,Q;v=(q=R.videoData.getPlayerResponse())==null?void 0:(Q=q.streamingData)==null?void 0:Q.adaptiveFormats;if(!v)return this.BI({gdu:"noadpfmts",seg:F,itag:f}),nc(this,F,z),null;q=v.find(function(L){return L.itag===f});
if(!q||!q.url){var c=R.videoData.videoId;R=[];var w=g.m(v);for(V=w.next();!V.done;V=w.next())R.push(V.value.itag);this.BI({gdu:"nofmt",seg:F,vid:c,itag:f,fullitag:n,itags:R.join(",")});nc(this,F,z);return null}R.locations.set(f,new g.LW(q.url,!0))}v=R.locations.get(f);if(!v)return this.BI({gdu:"nourl",seg:F,itag:f}),nc(this,F,z),null;v=new Nc(v);this.pC&&(v.get("dvc")?this.BI({dvc:v.get("dvc")||""}):v.set("dvc","webm"));(V=(w=this.dC(F-1,V,r))==null?void 0:w.jP)&&v.set("daistate",V);R.d$&&F>=R.d$&&
v.set("skipsq",""+R.d$);(w=this.playback.getVideoData().clientPlaybackNonce)&&v.set("cpn",w);w=[];R.uq&&(w=Xkk(this,R.uq),w.length>0&&v.set("acpns",w.join(",")));z||this.uu.set(F,R);z=null;z=v.get("aids");V=v.rD();(V==null?void 0:V.length)>2048&&this.BI({urltoolong:1,sq:F,itag:f,len:V.length});this.uS&&(V&&(v=R.cpn,r=R.uq,UR_(this,v,r),r&&!this.uZ.has(r)&&(v=oo9(this,v,r),q=yMI(this,r),this.BI({iofa:v}),this.BI({noawnzd:q-v}),this.BI({acpns:w.join("."),aids:(c=z)==null?void 0:c.replace(/,/g,".")}),
this.uZ.add(r))),this.BI({gdu:"v",seg:F,itag:n,ast:R.PT.toFixed(3),alen:R.durationMs.toFixed(3),acpn:R.cpn,avid:R.videoData.videoId}));return V};
g.X.Hs=function(R,F,n){n=n===void 0?!1:n;var V=LXe(this,R,F);if(V){this.fl&&(this.PG=V);var r=void 0,v=V.uq;if(v){this.BI({skipadonsq:F,sts:n,abid:v,acpn:V.cpn,avid:V.videoData.videoId});n=this.T.T.get(v);if(!n)return;n=g.m(n);for(v=n.next();!v.done;v=n.next())v=v.value,v.d$=F,v.i5=R,v.PT>V.PT&&(r=v)}VV(this,this.Oq);this.N=V.cpn;AM9(this);this.api.B("html5_ssdai_enable_media_end_cue_range")&&this.playback.ZP(this.N);R=this.playback.getCurrentTime();CHj(this,V,r,R,R,!1,!0);Hxe(this)}};
g.X.cP=function(){for(var R=g.m(this.T.U),F=R.next();!F.done;F=R.next())F=F.value,F.d$=NaN,F.i5=NaN;AM9(this);this.BI({rsac:"resetSkipAd",sac:this.N});this.k5.delete(this.N);this.N="";this.fl&&(this.PG=void 0)};
g.X.dC=function(R,F,n){return this.Nq.dC(R,F,n)};
g.X.MZ=i9(63);
g.X.Yg=function(R){var F=R.trackType,n;R=g.m((n=R.metadata)!=null?n:[]);for(n=R.next();!n.done;n=R.next()){var V=void 0;n=g.m((V=n.value.dPS)!=null?V:[]);for(V=n.next();!V.done;V=n.next()){var r=V.value,v=r.j$,f=r.T4;V=r.cpn;var z=r.loggingMetadata,q=r.U7;r=r.wJ;if(V&&V!==this.playback.getVideoData().clientPlaybackNonce){var Q=this.T.Jm(V);if(F===2){if(v&&v.startTicks!==void 0&&v.EC!==void 0&&v.timescale!==void 0&&f&&f.startTicks!==void 0&&f.EC!==void 0&&f.timescale!==void 0&&q!==void 0){var c=v.startTicks/
v.timescale;v=f.startTicks/f.timescale;f=f.EC/f.timescale;Q&&(Q.Xo=Q.Xo!==void 0?Math.min(Q.Xo,c):c,z&&(Q.Lc=g.Hu(z)));z=(c-v)*1E3;f=(v+f)*1E3;q=z+(r?f:Math.max(f+1E3,q));(r=this.U.get(V))?(r.start=z,r.end=q,this.playback.gM()):(r=fsR(z,q,V),this.U.set(V,r),this.playback.addCueRange(r))}this.ZH()}else F===1&&Q&&z&&(Q.Vl=g.Hu(z))}}}};
g.X.pw=function(R,F,n,V,r,v,f,z){n.length>0&&this.BI({onssinfo:1,sq:R,start:F.toFixed(3),cpns:n.join(","),ds:V.join(","),isVideo:v?1:0});if(this.fl&&this.PG&&this.PG.d$&&n.length>0)for(var q=g.m(n),Q=q.next();!Q.done;Q=q.next())if(Q=Q.value,Q===this.PG.cpn){this.FG!==Q&&(this.BI({skiperror:1,sq:R,acpn:this.PG.cpn,skipsq:this.PG.d$||0}),this.FG=Q);break}z&&this.Nq.pw(R,v,f,z);if(v){if(n.length&&V.length)for(this.k5.has(n[0])&&this.BI({skipfail:1,sq:R,acpn:n[0]}),R=F+this.e_(),v=0;v<n.length;v++)if(q=
n[v],z=R,R=z+V[v],q=this.T.Jm(q))z-=r[v],q.Xo=q.Xo!=null?Math.min(q.Xo,z):z;if(n.length&&V.length)for(F=(F+this.e_())*1E3,R=0;R<n.length;R++)v=n[R],z=V[R]*1E3,v===this.playback.getVideoData().clientPlaybackNonce?F+=z:(this.eB.has(v)||(this.BI({adCpnFromEmsg:1}),this.eB.add(v)),q=0,R<r.length&&(q=r[R]*1E3),(Q=this.U.get(v))?(Q.start=F-q,Q.end=F+z,R===n.length-1&&(Q.end+=Ta9(this,v,f)),this.playback.gM()):(Q=fsR(F-q,F+z,v),this.U.set(v,Q),this.BI({newAdCR:1,cpn:v,startTime:Q.start,endTime:Q.end}),R===
n.length-1&&(Q.end+=Ta9(this,v,f)),this.playback.addCueRange(Q),this.ZH()),F=Q.end)}};
g.X.e_=function(){return this.playback.e_()};
g.X.f4=function(R){this.playback.m2("timelineerror",{e:R})};
g.X.tQ=function(R){this.X&&this.W&&this.V.push(this.W);R&&this.W&&this.Y5.push(this.W);this.W=null;this.playback.tQ(R)};
g.X.nE=function(){this.BI({rstdaist:1});this.Nq.clearAll()};
g.X.wI=function(R){var F;if(R!==((F=this.W)==null?void 0:F.identifier))this.BI({ignorenoad:R});else{this.t0.add(R);this.BI({noadrcv:R});var n;((n=this.W)==null?void 0:n.identifier)===R&&ev(this)}};
g.X.Q_=function(R){if(this.xK)return this.BI({dai_disabled:R.event}),!1;if(!this.G.experiments.rg().T.pH(iWh)&&this.playback.getVideoData().iZ()&&(R.event==="continue"||R.event==="stop"))return!1;var F=jk(this.api.WI());if(F=F?F.Q_(R):!1)this.J={pI:R.identifier,RS:R.startSecs};else if(this.J&&this.J.pI===R.identifier&&R.startSecs>this.J.RS+1){this.BI({cueStChg:R.identifier,oldSt:this.J.RS.toFixed(3),newSt:R.startSecs.toFixed(3),abid:this.J.hc});if(this.J.hc){var n=R.startSecs-this.J.RS,V=this.T.T.get(this.J.hc);
if(V){V=g.m(V);for(var r=V.next();!r.done;r=V.next())r=r.value,r.PT>=0&&(r.PT+=n*1E3,this.BI({newApEt:r.PT,newApPrt:r.Pw,acpn:r.cpn}))}}this.J.RS=R.startSecs}F?this.gX.add(R.identifier):this.gX.has(R.identifier)&&this.gX.delete(R.identifier);return F};
g.X.Ou=function(R){var F=this;if(this.G.B("html5_lifa_ignore_multiple_skips")&&this.J1)return this.BI({ufs_ad:this.N,ufs_cur:this.Oq,ufs_cont:this.Td().cpn}),!1;VV(this,this.Oq);this.playback.pauseVideo();var n=this.playback.getCurrentTime(),V=this.T.Jm(this.Oq);if(!V)return this.BI({skipFail:n}),!1;this.N=this.Oq;this.UZ=!1;this.api.B("html5_ssdai_enable_media_end_cue_range")&&this.playback.ZP(this.N);this.yP(V.uq);u0W(this,V,this.Td(),R);WXj(this,n,{seekSource:89,gW:"lifa_skip"});this.J1||(this.J1=
this.events.C(this.api,"progresssync",function(){qE(F.api.Mc(),(0,g.h1)(),"ad_to_video");F.J1&&(F.events.ZO(F.J1),F.J1=null)}));
return!0};
g.X.yP=function(R){if(this.playback.getVideoData().iZ()){var F=this.T.T.get(R);if(F){F=g.m(F);for(var n=F.next();!n.done;n=F.next()){n=n.value;var V=this.U.get(n.cpn);this.U.delete(n.cpn);V&&this.playback.removeCueRange(V);bHv(this.T,n)}this.uu.clear();F=this.T;var r;n=(r=F.T.get(R))!=null?r:[];r=g.m(n);for(n=r.next();!n.done;n=r.next())bHv(F,n.value);F.T.delete(R);(R=this.HI.get(R))&&this.lX&&this.playback.Ce(R)}}};
g.X.BI=function(R,F){((F===void 0?0:F)||this.uS)&&this.playback.m2("sdai",R)};g.a(mRe,g.G);g.X=mRe.prototype;g.X.onCueRangeEnter=function(R){if(this.T===this.app.rX()){var F=this.W.get(R);F?ixe(this,F.target,F.PA,R):this.Tk("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:R.toString()})}else if(F=this.U.find(function(r){return r.pZ.tO===R})){var n=F.pZ,V=n.target;
n=n.PA;V?ixe(this,V,n,R):DR_(this,F.Pw,n,R)}};
g.X.onQueuedVideoLoaded=function(){var R=this.X;zJ(this);if(R){if(!tY(this,R)){var F=this.app.rX();this.Tk("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:F==null?void 0:F.getVideoData().clientPlaybackNonce,ccpn:""+R.playerVars.cpn})}this.app.rX().addCueRange(R.pZ.tO)}};
g.X.seekTo=function(R,F,n,V){R=R===void 0?0:R;F=F===void 0?{}:F;V=V===void 0?null:V;if(n===void 0?0:n)Ba6(this,R,F);else{n=this.app.rX()||null;var r=n===this.J?this.Z:null;qp(this,!1);this.Nq=R;this.UZ=F;V!=null&&this.V.start(V);n&&(this.Z=r||n.getPlayerState(),n.vM(),this.J=n)}};
g.X.yB=function(R){g.Sx(R,128)&&GiV(this)};
g.X.isManifestless=function(){return xG(this.T.getVideoData())};
g.X.oG=function(){qp(this,!1);MDf(this);g.G.prototype.oG.call(this)};
g.X.Tk=function(R,F){this.T.Tk(new g.z$(R,F))};
var goj=0;var lsW="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_APPS 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.a(QV,g.G);QV.prototype.tE=function(R){if(R)return this.U.get(R)};
QV.prototype.oG=function(){this.T.removeAll();this.U.removeAll();g.G.prototype.oG.call(this)};g.x3v=PI(function(){var R=window.AudioContext||window.webkitAudioContext;try{return new R}catch(F){return F.name}});g.a(bxI,g.N);g.X=bxI.prototype;g.X.Ig=function(){g.qX(this.element,g.Cq.apply(0,arguments))};
g.X.AD=function(){this.yc&&(this.yc.removeEventListener("focus",this.nw),g.iY(this.yc),this.yc=null)};
g.X.JW=function(){this.Zo();var R=this.app.D();R.qE||this.Ig("tag-pool-enabled");R.Z&&this.Ig(g.k2.HOUSE_BRAND);R.playerStyle==="gvn"&&(this.Ig("ytp-gvn"),this.element.style.backgroundColor="transparent");R.HI&&(this.RE=g.Fm("yt-dom-content-change",this.resize,this));this.C(window,"orientationchange",this.resize,this);this.C(window,"resize",this.resize,this)};
g.X.Ln=function(R){g.Fk(this.app.D());this.pJ=!R;ci(this)};
g.X.resize=function(){if(this.yc){var R=this.p5();if(!R.isEmpty()){this.app.eQ.isFullscreen()&&$i()&&this.X5.start();var F=!g.cI(R,this.fR.getSize()),n=n4W(this);F&&(this.fR.width=R.width,this.fR.height=R.height);R=this.app.D();(n||F||this.oh||R.HI)&&this.app.eQ.publish("resize",this.getPlayerSize())}}};
g.X.GP=function(R,F){this.updateVideoData(F)};
g.X.updateVideoData=function(R){if(this.yc){var F=this.app.D();lV&&(this.yc.setAttribute("x-webkit-airplay","allow"),R.title?this.yc.setAttribute("title",R.title):this.yc.removeAttribute("title"));this.yc.setAttribute("controlslist","nodownload");F.lP&&R.videoId?this.yc.poster=R.BB("default.jpg"):vc()&&(R$!=null?R$:0)>=10&&(this.yc.poster="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}F=g.Er(R,"yt:bgcolor");this.Ut.style.backgroundColor=F?F:"";this.OA=wf(g.Er(R,
"yt:stretch"));this.iY=wf(g.Er(R,"yt:crop"),!0);g.ws(this.element,"ytp-dni",R.On);this.resize()};
g.X.setGlobalCrop=function(R){this.Zg=wf(R,!0);this.resize()};
g.X.setCenterCrop=function(R){this.UQ=R;this.resize()};
g.X.Ax=function(){};
g.X.getPlayerSize=function(){var R=this.app.D(),F=this.app.eQ.isFullscreen(),n=R.externalFullscreen&&g.Pp(R);if(F&&$i()&&!n)return new g.QX(window.outerWidth,window.outerHeight);n=!isNaN(this.Hp.width)&&!isNaN(this.Hp.height);var V=this.app.D().B("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.D().B("web_watch_enable_fs_squeezeback_panels");if(F&&!n&&V)return new g.QX(this.element.clientWidth,this.element.clientHeight);if(F||R.fZ){if(window.matchMedia){R="(width: "+window.innerWidth+
"px) and (height: "+window.innerHeight+"px)";this.Wd&&this.Wd.media===R||(this.Wd=window.matchMedia(R));var r=this.Wd&&this.Wd.matches}if(r)return new g.QX(window.innerWidth,window.innerHeight)}else if(n)return this.Hp.clone();return new g.QX(this.element.clientWidth,this.element.clientHeight)};
g.X.p5=function(){var R=this.app.D().B("enable_desktop_player_underlay"),F=this.getPlayerSize(),n=g.Vn(this.app.D().experiments,"player_underlay_min_player_width");return R&&this.Ys&&F.width>n?(R=g.Vn(this.app.D().experiments,"player_underlay_video_width_fraction"),new g.QX(Math.min(F.height*this.getVideoAspectRatio(),F.width*R),Math.min(F.height,F.width*R/this.getVideoAspectRatio()))):F};
g.X.getVideoAspectRatio=function(){return isNaN(this.OA)?eE6(this):this.OA};
g.X.getVideoContentRect=function(R){var F=this.p5();R=Rej(this,F,this.getVideoAspectRatio(),R);return new g.VO((F.width-R.width)/2,(F.height-R.height)/2,R.width,R.height)};
g.X.As=function(R){this.Ys=R;this.resize()};
g.X.AP=function(){return this.Oe};
g.X.onMutedAutoplayChange=function(){ci(this)};
g.X.setInternalSize=function(R){g.cI(this.Hp,R)||(this.Hp=R,this.resize())};
g.X.oG=function(){this.RE&&g.nr(this.RE);this.AD();g.N.prototype.oG.call(this)};g.X=rJk.prototype;g.X.click=function(R,F){this.elements.has(R);this.T.has(R);var n=g.CJ();n&&R.visualElement&&g.nG(n,R.visualElement,F)};
g.X.createClientVe=function(R,F,n,V){var r=this;V=V===void 0?!1:V;this.elements.has(R);this.elements.add(R);n=XS(n);R.visualElement=n;var v=g.CJ(),f=g.aQ();v&&f&&(g.U2("combine_ve_grafts")?yW(T4(),n,f):g.Vb(g.Mz)(void 0,v,f,n));F.addOnDisposeCallback(function(){r.elements.has(R)&&r.destroyVe(R)});
V&&this.U.add(R)};
g.X.createServerVe=function(R,F,n){var V=this;n=n===void 0?!1:n;this.elements.has(R);this.elements.add(R);F.addOnDisposeCallback(function(){V.destroyVe(R)});
n&&this.U.add(R)};
g.X.destroyVe=function(R){this.elements.has(R);this.elements.delete(R);this.N.delete(R);this.T.delete(R);this.U.delete(R)};
g.X.z$=function(R,F){this.clientPlaybackNonce!==F&&(this.clientPlaybackNonce=F,o4(T4(),R),v49(this))};
g.X.setTrackingParams=function(R,F){this.elements.has(R);F&&(R.visualElement=g.pJ(F))};
g.X.dg=function(R,F,n){this.elements.has(R);F?this.T.add(R):this.T.delete(R);var V=g.CJ(),r=R.visualElement;this.U.has(R)?V&&r&&(F?g.Rh(V,[r]):g.Fs(V,[r])):F&&!this.N.has(R)&&(V&&r&&g.eg(V,r,void 0,n),this.N.add(R))};
g.X.hasVe=function(R){return this.elements.has(R)};var kx5={j$S:0,eaQ:1,PWo:2,VU2:3,0:"ECHO",1:"TRANSFER_MEDIA_SOURCE",2:"BUSY_WAIT",3:"IS_TYPE_SUPPORTED"};g.a(SO,g.G);SO.prototype.sendRequest=function(){var R=Object.values(kx5).filter(function(F){return typeof F==="number"});
switch(R[Math.floor(Math.random()*R.length)]){case 0:tsV(this,this.X);break;case 1:ze9(this);break;case 2:quf(this,this.W);break;case 3:Quf(this)}};
SO.prototype.request=function(R){this.Gt&&this.Gt.postMessage(R)};
SO.prototype.receive=function(R){if(!(this.J>=5E3)){var F=R.timeStamp,n=performance.now();R=R.data;var V=R[1];this.m2("worker",{type:R[0],t1:(R[2]-performance.timeOrigin-V).toFixed(3),t2:(R[3]-performance.timeOrigin-V).toFixed(3),t3:(F-V).toFixed(3),t4:(n-V).toFixed(3)});this.J++}};
SO.prototype.oG=function(){this.U!==void 0&&(clearInterval(this.U),this.U=void 0);var R;(R=this.Gt)==null||R.terminate();this.T=this.Gt=void 0;this.m2("workerDtor",{});g.G.prototype.oG.call(this)};g.a(g.Lc,g.G);g.Lc.create=function(R,F,n,V){try{var r=typeof R==="string"?R:"player"+g.x$(R),v=WX[r];if(v){try{v.dispose()}catch(z){g.uX(z)}WX[r]=null}var f=new g.Lc(R,F,n,V);f.addOnDisposeCallback(function(){WX[r]=null;f.UV&&f.UV()});
return WX[r]=f}catch(z){throw g.uX(z),(z&&z instanceof Error?z:Error(String(z))).stack;}};
g.X=g.Lc.prototype;g.X.y6=function(){return this.visibility};
g.X.VL=function(R){var F=this.UN();if(R!==F){R.getVideoData().autonavState=F.getVideoData().autonavState;F.mq(this.Np,this);var n=F.getPlaybackRate();F.dispose();this.IC.VL(R);R.setPlaybackRate(n);R.WA(this.Np,this);X0W(this)}};
g.X.i_=function(){this.TE||(this.TE=g.nV(r$(),a7W(),{b0:this.G.b0(),clientInterface:Wp(this.G)}));return this.TE};
g.X.AD=function(R){if(this.mediaElement){this.fG&&(this.events.ZO(this.fG),this.fG=null);g.Kw(this.yO);this.rX().AD(!0,!1,R);this.template.AD();try{this.B("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.b6()}catch(F){g.mq(F)}this.mediaElement=null}};
g.X.ao=function(R,F,n){if(R!==this.rX()){var V=null;if(n===void 0||!n){n=this.rX();V=n.getPlayerState();U0(this.Hw,3);xO(this,"cuerangesremoved",n.n5());this.QN&&!R.isGapless()&&n.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo();n=R.K5()&&n.K5();this.Qc.kp("iv_s");n=n===void 0?!0:n;var r;if(r=this.dD){r=this.dD;var v=this.mediaElement;r=!!v&&v===r.mediaElement}r&&(this.AD(),XL(this));r=this.rX();r.AD(!n);r.mq(this.JI,this);r.getPlayerType()!==1&&r.dispose();n=this.IC;r=[n.U];n.U=n.Z;
MY(n,[],r)}R.getPlayerType()===1&&this.VL(R);n=R.getPlayerType();r=this.IC.N[n]||null;R!==this.UN()&&R!==r&&(r==null||r.dispose(),this.IC.N[n]=R);this.IC.ao(R);this.mediaElement&&R.setMediaElement(this.mediaElement);R.WA(this.JI,this);R.RN()?bsW(this,"setPresenting",!1):(this.GP("newdata",R,R.getVideoData()),V&&!g.Ii(V,R.getPlayerState())&&this.Pr(new g.cP(R.getPlayerState(),V)),F=F&&R.getPlayerType()===1,R.oM()&&!F&&this.GP("dataloaded",R,R.getVideoData()),(F=(F=R.getVideoData().U)&&F.video)&&this.eQ.t7("onPlaybackQualityChange",
F.quality),xO(this,"cuerangesadded",R.n5()),F=R.getPlayerState(),g.E(F,2)?heJ(this):g.E(F,8)?R.playVideo():R.dZ()&&R.pauseVideo(),F=this.UN(),R.getPlayerType()===2&&(R.getVideoData().Xq=F.getVideoData().clientPlaybackNonce),R.getPlayerType()!==2||this.OY()||(R=R.getVideoData(),F.Gf(R.clientPlaybackNonce,R.aG||"",R.breakType||0,R.Rm,R.videoId||"")))}};
g.X.uy=function(){this.UN()!==this.rX()&&this.ao(this.UN())};
g.X.I9=function(){return this.IC};
g.X.Jm=function(R){return this.IC.Jm(R)};
g.X.mW=function(R){return this.IC.mW(R)};
g.X.UN=function(){return this.IC.UN()};
g.X.rX=function(){return this.IC.rX()};
g.X.Fy=i9(40);g.X.QCq=function(){oP(this)||this.sJ(5)};
g.X.LvG=function(){if(!oP(this)){NLW(this);var R=this.rX(),F=R.getVideoData();this.G.B("html5_allow_multiview_tile_preload")&&F.HT&&R.seekTo(Infinity);F=R.getPlayerState();R.dZ()?this.pauseVideo():F.isOrWillBePlaying()&&this.playVideo()}};
g.X.canPlayType=function(R){return w8(R)};
g.X.D=function(){return this.G};
g.X.getVideoData=function(){return this.rX().getVideoData()};
g.X.q$=function(){return this.rX().B5()};
g.X.aC=function(){return this.UN().getVideoData()};
g.X.getVideoLoadedFraction=function(R){return g.aP(this,{playerType:R}).getVideoLoadedFraction()};
g.X.fH=function(){return this.template};
g.X.WI=function(){return this.Hw};
g.X.Mc=function(){return this.Qc};
g.X.Ft=function(R,F,n){g.aP(this,{playerType:F===void 0?1:F}).q0(R,void 0,n)};
g.X.NF=function(){var R=this.Hw.NF();this.eQ.publish("videoStatsPingCreated",R);return R};
g.X.getVolume=function(){return Math.round(this.eQ.getVolume())};
g.X.isMuted=function(){return this.eQ.isMuted()};
g.X.zO=function(){if(this.UN()===this.rX()&&this.wg)return this.wg.postId};
g.X.ESz=function(){var R=this;this.B("use_rta_for_player")||(g.ad(this.G)?g.HV(this.G,g.Ql(this.getVideoData())).then(function(F){vN(r$(),F);Tv9(R.getVideoData(),R.G,R.i_())}):Tv9(this.getVideoData(),this.G,this.i_()))};
g.X.Wq=function(R){this.eQ.publish("poTokenVideoBindingChange",R)};
g.X.Y_=function(R){this.eQ.publish("d6de4videobindingchange",R)};
g.X.eG=function(){this.pT&&this.pT.eG()};
g.X.vP=function(R){this.pT=R};
g.X.mR=function(R){if(R===1){this.Qc.tick("vr");var F=this.rX();F.Ns();Ark(this.Qc,F.getVideoData(),lEk(this));EYN(this.Hw)}F=this.G;if(yw(F)&&F.V||g.Vw(F)){var n;(((n=this.rX().getVideoData())==null?0:n.enableServerStitchedDai)||!this.OY())&&this.eQ.t7("onAdStateChange",R)}};
g.X.setLoopVideo=function(R){var F=this.rX();F===this.UN()&&F.N7()!==R&&(F.setLoop(R),this.eQ.HG("onLoopChange",R))};
g.X.getLoopVideo=function(){return this.rX().N7()};
g.X.setLoopRange=function(R){var F=!1;!!this.wg!==!!R?F=!0:this.wg&&R&&(F=this.wg.startTimeMs!==R.startTimeMs||this.wg.endTimeMs!==R.endTimeMs||this.wg.postId!==R.postId||this.wg.type!==R.type);if(F){F=this.rX();hu(F.getVideoData())&&F.m2("slr",{et:(R==null?void 0:R.endTimeMs)||-1});F=this.UN();F.Bw("applooprange");if(R){var n=new g.NQ(R.startTimeMs,R.endTimeMs,{id:"looprange",namespace:"applooprange"});F.addCueRange(n)}else{this.aC().clipConfig=void 0;var V;((n=this.wg)==null?void 0:n.type)!=="repeatChapter"||
isNaN(Number((V=this.wg)==null?void 0:V.loopCount))||(n={loopCount:String(this.wg.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.LJ("repeatChapterLoopEvent",n))}this.wg=R;this.eQ.HG("onLoopRangeChange",R||void 0);this.UN()===this.rX()&&(this.dE(),F.oN())}};
g.X.getLoopRange=function(){return this.wg};
g.X.dE=function(){var R="",F=this.UN();this.wg?F!==this.rX()?R="pnea":IEV(this,F.getCurrentTime())&&(this.wg.loopCount=0,R="ilr"):R="nlr";var n=this.rX();if(hu(n.getVideoData()))if(this.B("html5_gapless_log_loop_range_info")){var V,r;n.m2("slrre",{rej:R,ct:F.getCurrentTime(),lst:(V=this.wg)==null?void 0:V.startTimeMs,let:(r=this.wg)==null?void 0:r.endTimeMs})}else n.m2("slrre",{});R||DUv(this)};
g.X.setPlaybackRate=function(R,F){if(!isNaN(R)){R=UUk(this,R);var n=this.UN();n.getPlaybackRate()!==R&&(n.setPlaybackRate(R),F&&!this.G.J&&g.i6("yt-player-playback-rate",R),this.eQ.t7("onPlaybackRateChange",R))}};
g.X.getCurrentTime=function(R,F){F=F===void 0?!0:F;var n=this.IC.c6;if(n)return n.getCurrentTime();R=(n=R===2&&this.getVideoData().enableServerStitchedDai)?this.rX():g.aP(this,{playerType:R});return n&&this.h0?(n=this.IC.X)?n.getCurrentTime(F):R.getCurrentTime():F?(F=TJ(this,R),gh(this,F.getCurrentTime(),F)):R.getCurrentTime()};
g.X.LW=function(){var R=g.aP(this,{playerType:void 0});R=TJ(this,R);return gh(this,R.LW(),R)};
g.X.getDuration=function(R,F){F=F===void 0?!0:F;var n=this.IC.c6;if(n)return n.getDuration();n=this.getVideoData();var V=R===2&&n.enableServerStitchedDai;var r=V?this.rX():g.aP(this,{playerType:R});if(n.hasProgressBarBoundaries()&&!V){var v,f=Number((v=n.progressBarStartPosition)==null?void 0:v.utcTimeMillis),z;v=Number((z=n.progressBarEndPosition)==null?void 0:z.utcTimeMillis);if(!isNaN(f)&&!isNaN(v))return(v-f)/1E3}return hu(n)&&!n.isLivePlayback?Bi(this,R):F?(R=Cc(this,r),gh(this,R.getDuration(),
R)):V&&this.h0?(R=this.IC,R=R.T===R.X?R.T:null,(R==null?void 0:R.getDuration())||0):r.getDuration()};
g.X.wD=function(R){var F=g.aP(this,{playerType:R});return this.OY(F)?(F=Cc(this,F),F.wD()-F.getCurrentTime()+this.getCurrentTime(R)):F.wD()};
g.X.finishSegmentByCpn=function(){return[]};
g.X.JW=function(){this.template.JW();var R=this.eQ;R.state.element=this.template.element;var F=R.state.element,n;for(n in R.state.T)R.state.T.hasOwnProperty(n)&&(F[n]=R.state.T[n]);(R=Sij(this.template.element))&&this.events.C(this.template,R,this.onFullscreenChange)};
g.X.getDebugText=function(R){var F=this.UN().fC(R),n=this.rX();if(n!==this.UN()){n=n.fC(R);for(var V=g.m(Object.keys(n)),r=V.next();!r.done;r=V.next())r=r.value,F["ad"+r]=n[r];if(R){n=F;V={};if(r=T5(document,"movie_player"))V.bounds=r.getBoundingClientRect(),V["class"]=r.className;r={};var v=g.HI("video-ads");v?(RBk(v,r),r.html=v.outerHTML):r.missing=1;v={};var f=g.HI("videoAdUiSkipContainer"),z=g.HI("ytp-ad-skip-button-container"),q=g.HI("ytp-skip-ad-button"),Q=f||z||q;Q?(RBk(Q,v),v.ima=f?1:0,v.bulleit=
z?1:0,v.component=q?1:0):v.missing=1;V=JSON.stringify({player:V,videoAds:r,skipButton:v});n.ad_skipBtnDbgInfo=V}}R&&this.mediaElement&&(F["0sz"]=""+(+wu(this.mediaElement.getSize())===0),F.op=this.mediaElement.Fu("opacity"),n=this.mediaElement.wZ().y+this.mediaElement.getSize().height,F.yof=""+(+n<=0),F.dis=this.mediaElement.Fu("display"));R&&((R=(0,g.Gd)())&&(F.gpu=R),(R=this.G.playerStyle)&&(F.ps=R),this.G.gX&&(F.webview=1),(R=this.webPlayerContextConfig.jsUrl)&&(F.js=R));F.debug_playbackQuality=
this.eQ.getPlaybackQuality(1);F.debug_date=(new Date).toString();F.origin=window.origin;F.timestamp=Date.now();delete F.uga;delete F.q;return JSON.stringify(F,null,2)};
g.X.getFeedbackProductData=function(){var R={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.D().experiments.experimentIds.join(", "),player_release:t[29]},F=this.getPlayerStateObject().z_;F&&(R.player_error_code=F.errorCode,R.player_error_details=JSON.stringify(F.errorDetail));return R};
g.X.getPresentingPlayerType=function(R){if(this.appState===1)return 1;if(oP(this))return 3;var F,n,V;return(R&&this.G.rg().T.pH(is_)?(V=(F=this.IC.T)==null?void 0:F.isAd())!=null&&V:(n=this.h0)==null?0:zEk(n,this.getCurrentTime()))?2:this.rX().getPlayerType()};
g.X.Pn=function(){return!1};
g.X.getPlayerStateObject=function(R){var F=this.IC.c6;return F?F.getPlayerState():g.aP(this,{playerType:R}).getPlayerState()};
g.X.getAppState=function(){return this.appState};
g.X.Eq2=function(R){switch(R.type){case "loadedmetadata":this.Xa.start();R=g.m(this.JN);for(var F=R.next();!F.done;F=R.next())F=F.value,MsJ(this,F.id,F.O4G,F.fN5,void 0,!1);this.JN=[];break;case "loadstart":this.Qc.kp("gv");break;case "progress":case "timeupdate":f6(R.target.vB())>=2&&this.Qc.kp("l2s");break;case "playing":g.TV&&this.Xa.start();if(g.ad(this.G))R=!1;else{F=g.ZU(this.WI());R=this.mediaElement.Fu("display")==="none"||wu(this.mediaElement.getSize())===0;var n=wh(this.template),V=this.rX().getVideoData(),
r=g.Dz(this.G);V=Wh(V);F=!n||F||r||V||this.G.h1;R=R&&!F}R&&(R=this.rX(),R.IT(),this.getVideoData().dX||(this.getVideoData().dX=1,this.w9(),R.playVideo()))}};
g.X.SlG=function(R){this.eQ.yZ("onLoadProgress",R)};
g.X.il1=function(){this.eQ.publish("playbackstalledatstart")};
g.X.Gkq=function(R,F){this.eQ.publish("sabrCaptionsDataLoaded",R,F)};
g.X.Ij1=function(R){this.rX().BM(R)};
g.X.CX2=function(R){this.rX().KG(R)};
g.X.pwG=function(R){R=TJ(this,this.rX());R=gh(this,R.getCurrentTime(),R);this.eQ.t7("onVideoProgress",R);this.G.E8&&Yuj(this,this.visibility.Yw())&&this.pauseVideo()};
g.X.e6q=function(){this.eQ.t7("onAutoplayBlocked");var R=this.rX().getVideoData();R&&(R.ID=!0);g.Pp(this.G)&&(R={autoplayBrowserPolicy:Y2(),autoplayIntended:J0(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.LJ("embedsAutoplayStatusChanged",R))};
g.X.h6S=function(){this.eQ.publish("progresssync")};
g.X.VlQ=function(){this.eQ.yZ("onPlaybackPauseAtStart")};
g.X.wTS=function(R){if(this.getPresentingPlayerType()===1){g.Sx(R,1)&&!g.E(R.state,64)&&this.aC().isLivePlayback&&this.UN().isAtLiveHead()&&this.eQ.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Sx(R,2)){if(this.wg&&this.wg.endTimeMs>=(this.getDuration()-1)*1E3){DUv(this);return}heJ(this)}if(g.E(R.state,128)){var F=R.state;this.cancelPlayback(5);F=F.z_;JSON.stringify({errorData:F,debugInfo:this.getDebugText(!0)});this.eQ.t7("onError",OQJ(F.errorCode));this.eQ.yZ("onDetailedError",{errorCode:F.errorCode,
errorDetail:F.errorDetail,message:F.errorMessage,messageKey:F.KL,cpn:F.cpn});(0,g.h1)()-this.G.H_>6048E5&&this.eQ.yZ("onReloadRequired")}F={};if(R.state.isPlaying()&&!R.state.isBuffering()&&!gV("pbresume","ad_to_video")&&gV("_start","ad_to_video")){var n=this.getVideoData();F.clientPlaybackNonce=n.clientPlaybackNonce;n.videoId&&(F.videoId=n.videoId);g.B8(F,"ad_to_video");uj("pbresume",void 0,"ad_to_video");EYN(this.Hw)}this.eQ.publish("applicationplayerstatechange",R)}};
g.X.Pr=function(R){this.IC.c6||this.eQ.publish("presentingplayerstatechange",R)};
g.X.yB=function(R){AY(this,DD(R.state));g.E(R.state,1024)&&this.eQ.isMutedByMutedAutoplay()&&(Wi(this,{muted:!1,volume:this.C4.volume},!1),u1(this,!1))};
g.X.onPlayerRequestSent=function(R){this.eQ.HG("onPlayerRequestSent",R)};
g.X.WS=function(R,F){R==="newdata"&&X0W(this);this.eQ.publish("applicationvideodatachange",R,F)};
g.X.XwQ=function(R,F){NLW(this);this.eQ.yZ("onPlaybackAudioChange",this.eQ.getAudioTrack().z9.name);this.eQ.publish("internalaudioformatchange",this.eQ.getAudioTrack().z9.id,F)};
g.X.ah5=function(R){var F=this.rX().getVideoData();R===F&&this.eQ.t7("onPlaybackQualityChange",R.U.video.quality)};
g.X.MM=function(){var R=this.IC.N[2]||null;R&&(R=R.getVideoData(),this.rX().m2("ssdai",{cleanaply:1,acpn:R==null?void 0:R.clientPlaybackNonce,avid:R.videoId,isDai:this.aC().enableServerStitchedDai?1:0}),delete this.IC.N[2])};
g.X.kkZ=function(R,F){this.GP(R,this.rX(),F)};
g.X.GP=function(R,F,n){this.G.CC()&&F.m2("vdc",{type:R,vid:n.videoId||"",cpn:n.clientPlaybackNonce||""});F===this.UN()&&(this.G.RV=n.oauthToken);F===this.UN()&&(this.getVideoData().enableServerStitchedDai&&!this.h0?(this.UN().m2("sdai",{initSstm:1}),this.h0=new g.bP(this.eQ,this.G,this.UN(),this)):!this.getVideoData().enableServerStitchedDai&&this.h0&&(this.h0.dispose(),this.h0=null));if(R==="newdata")U0(this.Hw,2),this.eQ.publish("videoplayerreset",F);else{if(!this.mediaElement)return;if(R==="dataloaded")if(this.UN()===
this.rX()){if(zV(n.Qz,n.HD),!this.UN().getPlayerState().isError()){var V=oP(this);this.aC().isLoaded();V&&this.sJ(6);BL_(this);lRJ(this.Hw)||uIj(this)}}else BL_(this);if(F.getPlayerType()===1&&(this.G.Mq&&eeJ(this),this.getVideoData().isLivePlayback&&!this.G.zR&&this.HB("html5.unsupportedlive",2,"DEVICE_FALLBACK"),n.isLoaded()&&((k_v(n)||this.getVideoData().Kf)&&this.eQ.publish("legacyadtrackingpingchange",this.getVideoData()),n.hasProgressBarBoundaries()))){var r;V=Number((r=this.getVideoData().progressBarEndPosition)==
null?void 0:r.utcTimeMillis)/1E3;!isNaN(V)&&(r=this.wD())&&(r-=this.getCurrentTime(),V=(V-r)*1E3,r=this.Jw.progressEndBoundary,(r==null?void 0:r.start)!==V&&(r&&this.xg([r]),V=new g.NQ(V,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.UN().addCueRange(V),this.Jw.progressEndBoundary=V))}this.eQ.publish("videodatachange",R,n,F.getPlayerType())}this.eQ.t7("onVideoDataChange",{type:R,playertype:F.getPlayerType()});this.dE();(R=n.I4)?this.WO.z$(R,n.clientPlaybackNonce):
v49(this.WO)};
g.X.IE=function(){Ut(this,null);this.eQ.yZ("onPlaylistUpdate")};
g.X.ok5=function(R){delete this.Jw[R.getId()];this.UN().removeCueRange(R);a:{R=this.getVideoData();var F,n,V,r,v,f,z,q,Q,c,w=((F=R.jQ)==null?void 0:(n=F.contents)==null?void 0:(V=n.singleColumnWatchNextResults)==null?void 0:(r=V.autoplay)==null?void 0:(v=r.autoplay)==null?void 0:v.sets)||((f=R.jQ)==null?void 0:(z=f.contents)==null?void 0:(q=z.twoColumnWatchNextResults)==null?void 0:(Q=q.autoplay)==null?void 0:(c=Q.autoplay)==null?void 0:c.sets);if(w)for(F=g.m(w),n=F.next();!n.done;n=F.next())if(n=
n.value,r=V=void 0,n=n.autoplayVideo||((V=n.autoplayVideoRenderer)==null?void 0:(r=V.autoplayEndpointRenderer)==null?void 0:r.endpoint),V=g.A(n,g.oo),v=r=void 0,n!=null&&((r=V)==null?void 0:r.videoId)===R.videoId&&((v=V)==null?0:v.continuePlayback)){R=n;break a}R=null}(F=g.A(R,g.oo))&&this.eQ.HG("onPlayVideo",{sessionData:{autonav:"1",itct:R==null?void 0:R.clickTrackingParams},videoId:F.videoId,watchEndpoint:F})};
g.X.sJ=function(R){R!==this.appState&&(R===2&&this.getPresentingPlayerType()===1&&(AY(this,-1),AY(this,5)),this.appState=R,this.eQ.publish("appstatechange",R))};
g.X.HB=function(R,F,n,V,r){this.UN().Rr(R,F,n,V,r)};
g.X.Qn=i9(9);g.X.isAtLiveHead=function(R,F){F=F===void 0?!1:F;var n=g.aP(this,{playerType:R});R=Cc(this,n);n=TJ(this,n);return R!==n?R.isAtLiveHead(gh(this,n.getCurrentTime(),n),!0):R.isAtLiveHead(void 0,F)};
g.X.L2=function(){var R=g.aP(this,{playerType:void 0});return Cc(this,R).L2()};
g.X.seekTo=function(R,F,n,V,r,v){F=F!==!1;V=g.aP(this,{playerType:V});this.appState===2&&Hi(this);if(this.OY(V))Ot(this)?this.h0.seekTo(R,{seekSource:r},F,n):this.vI.seekTo(R,{seekSource:r},F,n);else{this.B("html5_sabr_csdai_seek_log")||(v="");var f;V.seekTo(R,{VH:!F,Zy:n,gW:"application"+((f=v)!=null?f:""),seekSource:r})}};
g.X.seekBy=function(R,F,n,V){this.seekTo(this.getCurrentTime()+R,F,n,V,void 0,"_by")};
g.X.uPX=function(){this.eQ.t7("SEEK_COMPLETE")};
g.X.Ml2=function(){this.eQ.HG("onAbnormalityDetected")};
g.X.OlG=function(R){this.eQ.HG("onSnackbarMessage",R)};
g.X.x8z=function(R){var F=this.rX(),n=F.getVideoData();if(this.appState===1||this.appState===2)n.startSeconds=R;this.appState===2?g.E(F.getPlayerState(),512)||Hi(this):this.eQ.t7("SEEK_TO",R)};
g.X.nqG=function(){this.eQ.publish("airplayactivechange")};
g.X.YlZ=function(){this.eQ.publish("airplayavailabilitychange")};
g.X.showAirplayPicker=function(){this.rX().DB()};
g.X.gqG=function(){this.eQ.publish("beginseeking")};
g.X.CLq=function(){this.eQ.publish("endseeking")};
g.X.getStoryboardFormat=function(R){R=g.aP(this,{playerType:R});return Cc(this,R).getStoryboardFormat()};
g.X.n4=function(R){R=g.aP(this,{playerType:R});return Cc(this,R).getVideoData().n4()};
g.X.OY=function(R){R=(R||this.rX()).getVideoData();if(Ot(this))R=R===this.h0.playback.getVideoData();else a:{var F=this.vI;if(R===F.T.getVideoData()&&F.U.length)R=!0;else{F=g.m(F.U);for(var n=F.next();!n.done;n=F.next())if(R.Zh===n.value.Zh){R=!0;break a}R=!1}}return R};
g.X.uc=function(R,F,n,V,r,v,f,z){var q=Ot(this);this.rX().m2("appattl",{sstm:this.h0?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:q});q?(n=rMN(this.h0,R,F,n,V,r,v,f,(z==null?void 0:z.G3)||""),R=(n==null?void 0:n.clientPlaybackNonce)||"",(this.B("html5_ssdai_new_decoration_logic")||this.UN().getVideoData().eV)&&this.UN().WY((z==null?void 0:z.G3)||"",F,(n==null?void 0:n.clientPlaybackNonce)||"",(z==null?void 0:z.tileContext)||"")):R=KX_(this.vI,R,n,V,r,v);return R};
g.X.dF=function(R,F,n,V,r,v,f,z){if(Ot(this)){var q,Q=(q=this.h0)==null?void 0:rMN(q,R,F,n,V,r,v,f,(z==null?void 0:z.G3)||"");this.UN().getVideoData().eV&&this.G.rg().T.pH(Gks)&&this.UN().WY((z==null?void 0:z.G3)||"",F,(Q==null?void 0:Q.clientPlaybackNonce)||"",(z==null?void 0:z.tileContext)||"")}};
g.X.wI=function(R){(this.B("html5_ssdai_new_decoration_logic")||this.UN().getVideoData().eV)&&this.UN().WY(R.G3||"","","",R.tileContext||"");var F;(F=this.h0)==null||F.wI(R.G3||"")};
g.X.kQ=function(R,F){R=R===void 0?-1:R;F=F===void 0?Infinity:F;Ot(this)||MDf(this.vI,R,F)};
g.X.XZ=function(R,F,n){if(Ot(this)){var V=this.h0,r=V.T.Jm(R);r?(n===void 0&&(n=r.Pw),QII(V,r,F,n)):V.f4("Invalid_cpn_"+R+"_specified")}else{V=this.vI;r=null;for(var v=g.m(V.U),f=v.next();!f.done;f=v.next())if(f=f.value,f.Zh===R){r=f;break}r?(n===void 0&&(n=r.Pw),dRf(V,r,F,n)):vi(V,"InvalidTimelinePlaybackId timelinePlaybackId="+R)}};
g.X.enqueueVideoByPlayerVars=function(R,F,n,V){n=n===void 0?Infinity:n;V=V===void 0?"":V;this.OY();R=new g.sr(this.G,R);V&&(R.Zh=V);kSf(this,R,F,n)};
g.X.queueNextVideo=function(R,F,n,V,r){n=n===void 0?NaN:n;R=this.preloadVideoByPlayerVars(R,F===void 0?1:F,n,V===void 0?"":V,r===void 0?"":r);F=this.rX();R&&(this.B("html5_check_queue_on_data_loaded")?this.D().supportsGaplessShorts()&&F.getVideoData().X&&(n=this.D9,V=this.QN.W,n.J!==R&&(n.U=F,n.J=R,n.N=1,n.T=R.getVideoData(),n.W=V,n.T.isLoaded()?n.Z():n.T.subscribe("dataloaded",n.Z,n))):(n=PRk(F,R,this.QN.W),n!=null?(F.m2("sgap",n),F.getVideoData().X&&F.Z3(!1)):(R=R.getVideoData(),F=this.D9,F.T!==
R&&(F.T=R,F.N=1,R.isLoaded()?F.X():F.T.subscribe("dataloaded",F.X,F)))))};
g.X.pK=function(R,F,n,V){var r=this;n=n===void 0?0:n;V=V===void 0?0:V;Cc(this,this.rX()).Hh();t_j(this.QN,R,F,n,V).then(function(){r.eQ.yZ("onQueuedVideoLoaded")},function(){})};
g.X.UF=function(){return this.QN.UF()};
g.X.Qb=function(R){var F=this.QN.T;return F?F.KN(R):!1};
g.X.clearQueue=function(R,F){this.QN.clearQueue(R===void 0?!1:R,F===void 0?!1:F)};
g.X.loadVideoByPlayerVars=function(R,F,n,V,r,v){F=F===void 0?1:F;var f=this.UN();if(F===2&&this.aC().enableServerStitchedDai&&f&&!f.PX())return f.m2("lvonss",{vid:(R==null?void 0:R.videoId)||"",ptype:F}),!1;var z=!1;f=new g.sr(this.G,R);f.xw=v;g.C9(this.G)&&!f.Lm&&QT(this.Qc);var q;v=this.Qc;var Q=(q=f.UZ)!=null?q:"";v.timerName=Q;this.Qc.R9("pl_i");this.B("web_player_early_cpn")&&f.clientPlaybackNonce&&this.Qc.infoGel({clientPlaybackNonce:f.clientPlaybackNonce});XQ9(f).supportsVp9Encoding===!1&&
this.rX().m2("noVp9enc",{});if(this.D().supportsGaplessShorts()){q=SWj(this.QN,f,F);if(q==null){AY(this,-1);var c;((c=this.QN.T)==null?0:c.getVideoData().isAd())||IP(this);R=this.QN;R.app.D().B("html5_gapless_new_slr")?mi(R.app,"gaplessshortslooprange"):R.app.setLoopRange(null);R.app.getVideoData().vU=!0;var w;(w=R.T)==null||w.e4();var L;(L=R.T)==null||L.FE();n={gW:"gapless_to_next_video",seekSource:60,xe:R.W.T};V=wXV(R);if(R.W.T){var S;r=((S=R.N)==null?void 0:gX(S))||{};S=r.Xv;r=r.aT;r!=null&&S!=
null&&(V=r-S+.001)}var p;(p=R.app.rX())==null||p.seekTo(V,n);if(!R.app.getPlayerStateObject(F).isPlaying()){var C;(C=R.app.rX())==null||C.playVideo(!0)}chv(R,V);var y;(y=R.app.rX())==null||y.pR();R.V();return!0}p=this.B("html5_shorts_gapless_preload_fallback");C=this.QN.T;p&&C&&!C.Zo()&&(y=C.getVideoData(),this.IC.W.set(Kc(F,y),C,3600));this.QN.clearQueue(p);this.rX().m2("sgap",{f:q})}if(r){for(;f.a$.length&&f.a$[0].isExpired();)f.a$.shift();p=f.a$.length-1;z=p>0&&r.U(f.a$[p])&&r.U(f.a$[p-1]);f.a$.push(r)}n||
(R&&T9R(R)?(L9(this.G)&&!this.bq&&(R.fetch=0),Ut(this,R)):this.playlist&&Ut(this,null),R&&(this.bq=zQ(!1,R.external_list)));this.eQ.publish("loadvideo");p=this.OX(f,F,V);z&&this.HB("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+f.a$.join()).replace(/[;:,]/g,"_"));return p};
g.X.preloadVideoByPlayerVars=function(R,F,n,V,r){F=F===void 0?1:F;n=n===void 0?NaN:n;r=r===void 0?"":r;V=F;var v=r,f=S3(R);if(V=this.IC.W.get(V+"_"+f+"_"+v+"_"+ +(R.autonav==="1"||R.autonav===!0)+ +(R.autoplay==="1"||R.autoplay===!0||R.autoplay===1))||null)return V;R=new g.sr(this.G,R);r&&(R.Zh=r);r=Kc(F,R);V=this.rX();v=Kc(V.getPlayerType(),V.getVideoData());r===v?(V.mx(!0),R.dispose(),n=null):(R.uZ=!0,R.k_=!0,V=pc(this,F,R,!0),(F!==1||!AP(this.G)||this.G.B("html5_allow_multiview_tile_preload")&&
R.HT)&&V.mx(!0),this.IC.W.set(r,V,n||3600),n=V);return n};
g.X.setMinimized=function(R){this.visibility.setMinimized(R);(R=Zz6(this.Hw))&&(this.isMinimized()?R.load():R.unload());this.eQ.publish("minimized")};
g.X.setInline=function(R){this.visibility.setInline(R)};
g.X.setInlinePreview=function(R){this.visibility.setInline(R)};
g.X.rI=function(R){JJN(this,R)||this.visibility.rI(R)};
g.X.setSqueezeback=function(R){this.visibility.setSqueezeback(R)};
g.X.kA=function(){var R,F=(R=this.mediaElement)==null?void 0:R.Fs();F&&(this.G.Uk&&q4(fQ(function(){return document.exitFullscreen()}),function(){}),q4(fQ(function(){return j3(F)}),function(){}))};
g.X.dL1=function(){this.mediaElement.Fs();this.mediaElement.Fs().webkitPresentationMode==="picture-in-picture"?this.rI(!0):this.rI(!1)};
g.X.togglePictureInPicture=function(){this.rX().togglePictureInPicture()};
g.X.OX=function(R,F,n){F=F===void 0?1:F;gV("_start",this.Qc.timerName)||g.Vb(oV)(void 0,this.Qc.timerName);var V=!1,r=Osv(this,F,R,!1);r?(V=!0,R.dispose(),r.getVideoData().HT&&r.m2("app_lv",{pdl:r.oM()})):(r=pc(this,F,R,!0,n),(this.B("html5_onesie")||this.B("html5_load_before_stop"))&&r.yT()&&r.mx(),this.Xa.stop(),F===1&&F!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,F),this.ao(r));R.videoId&&this.Hb.includes(R.videoId)&&r.m2("mvt",{});r===this.UN()&&(this.G.RV=R.oauthToken);
if(!r.yT())return!1;if(r===this.UN())return this.sJ(1),R=Hi(this),V&&this.B("html5_player_preload_ad_fix")&&r.getPlayerType()===1&&r.oM()&&this.GP("dataloaded",r,r.getVideoData()),R;r.gA();return!0};
g.X.cueVideoByPlayerVars=function(R,F){var n=this;F=F===void 0?1:F;var V=this.UN();if(this.aC().enableServerStitchedDai&&V&&!V.PX()&&R&&Object.keys(R).length>0)V.m2("qvonss",{vid:(R==null?void 0:R.videoId)||"",ptype:F});else if(R&&T9R(R))if(this.VM=!0,Ut(this,R),(R=g.cR(this.playlist))&&R.XP())i1(this,R,F);else this.playlist.onReady(function(){jO(n)});
else{F||(F=this.getPresentingPlayerType());F===1&&this.IE();V=new g.sr(this.G,R);var r=g.Pp(this.G)&&!this.G.J1&&F===1&&!V.isAd()&&!V.aG;this.eQ.publish("cuevideo",F);r?(this.rX().getVideoData().loading=!0,Woj(V,R?R:{}).then(function(v){i1(n,v,F)}),V.dispose()):i1(this,V,F)}};
g.X.bu=function(R,F,n,V,r,v,f){if(!R&&!n)throw Error("Playback source is invalid");if(Z0(this.G)||g.Xi(this.G))return F=F||{},F.lact=aS(),F.vis=this.eQ.getVisibilityState(),this.eQ.HG("onPlayVideo",{videoId:R,watchEndpoint:v,sessionData:F,listId:n}),!1;aRI(this.Qc);this.Qc.reset();R={video_id:R};V&&(R.autoplay="1");V&&(R.autonav="1");v&&(R.player_params=v.playerParams);f&&(R.oauth_token=f);n?(R.list=n,this.loadPlaylist(R)):this.loadVideoByPlayerVars(R,1);return!0};
g.X.cuePlaylist=function(R,F,n,V){this.VM=!0;GSR(this,R,F,n,V)};
g.X.loadPlaylist=function(R,F,n,V){this.VM=!1;GSR(this,R,F,n,V)};
g.X.xx=function(){return this.eQ.isMutedByMutedAutoplay()?!1:this.IC.c6?!0:!(!this.playlist||!this.playlist.hasNext())};
g.X.JQ=i9(7);
g.X.nextVideo=function(R,F){var n=g.yq(this.UN().getVideoData());g.Fp(this.eQ)&&n?this.bu(n.videoId,F?n.Sp:n.sessionData,n.playlistId,F,void 0,n.rz||void 0):this.bq?this.eQ.yZ("onPlaylistNext"):this.getPresentingPlayerType()===3?$M(this.Hw).nextVideo():!this.playlist||L9(this.G)&&!this.eQ.isFullscreen()||(this.playlist.hasNext(R)&&UER(this.playlist,oYV(this.playlist)),this.playlist.loaded?(R=F&&this.G.B("html5_player_autonav_logging"),F&&this.eQ.publish("playlistautonextvideo"),this.OX(g.cR(this.playlist,void 0,
F,R),1)):this.VM=!1)};
g.X.previousVideo=function(R){this.bq?this.eQ.yZ("onPlaylistPrevious"):this.getPresentingPlayerType()===3?$M(this.Hw).Tz():!this.playlist||L9(this.G)&&!this.eQ.isFullscreen()||(this.playlist.hasPrevious(R)&&UER(this.playlist,yrj(this.playlist)),this.playlist.loaded?this.OX(g.cR(this.playlist),1):this.VM=!1)};
g.X.playVideoAt=function(R){this.bq?this.eQ.yZ("onPlaylistIndex",R):this.playlist&&(this.playlist.loaded?this.OX(g.cR(this.playlist,R),1):this.VM=!1,UER(this.playlist,R))};
g.X.getPlaylist=function(){return this.playlist};
g.X.AM=i9(15);g.X.BN=function(R){this.JN=g.dk(this.JN,function(v){return v.id!==R});
for(var F=this.UN(),n=F.n5(),V=0;V<n.length;V++){var r=n[V];if(r.getId()===R)return F.removeCueRange(r),xO(this,"cuerangesremoved",[r]),!0}return!1};
g.X.jC2=function(R){this.eQ.t7("onCueRangeEnter",R.getId())};
g.X.sC2=function(R){this.eQ.t7("onCueRangeExit",R.getId())};
g.X.DJ=function(R,F,n){var V=g.aP(this,{playerType:F});if(this.B("html5_ssdai_enable_media_end_cue_range")&&this.h0){var r,v,f;if(V.getPlayerType()===2&&this.G.rg().T.pH(is_)?(f=(r=this.IC.T)==null?void 0:r.isAd())!=null&&f:(v=this.h0)==null?0:zEk(v,this.getCurrentTime()))V=this.UN();r=g.m(R);for(v=r.next();!v.done;v=r.next())v.value.associatedClipId=this.h0.Oq}V.DJ(R,n);F&&this.getPresentingPlayerType()!==F||xO(this,"cuerangesadded",R)};
g.X.xg=function(R,F){g.aP(this,{playerType:F}).xg(R);F&&this.getPresentingPlayerType()!==F||xO(this,"cuerangesremoved",R)};
g.X.ai=function(R){return this.rX().ai(R)};
g.X.Wd1=function(R){var F=this;if(!R||R===this.UN().du()||!this.G.B("html5_use_new_ssdai_transition_detector")){R=this.rX();this.getPresentingPlayerType();Ark(this.Qc,R.getVideoData(),lEk(this));yV(this)&&this.G.J&&fK(this.aC())==="embedded"&&this.QU&&Math.random()<.01&&g.LJ("autoplayTriggered",{intentional:this.intentionalPlayback});this.QU=!1;R=function(){var n=F.screenLayer||(F.isMinimized()?3:0),V=g.CJ(n);if(V&&V!=="UNDEFINED_CSN"){var r=F.G.B("web_player_attach_player_response_ve"),v=F.G.B("web_playback_associated_ve");
n={cpn:F.getVideoData().clientPlaybackNonce,csn:V};F.getVideoData().Nq&&(r||v)&&(r=g.pJ(F.getVideoData().Nq),g.eg(V,r),v&&(n.playbackVe=r.getAsJson()));F.getVideoData().queueInfo&&(n.queueInfo=F.getVideoData().queueInfo);V={};F.getVideoData().Z&&(V.cttAuthInfo={token:F.getVideoData().Z,videoId:F.getVideoData().videoId});g.LJ("playbackAssociated",n,V)}else g.mq(new g.UR("CSN Missing or undefined during playback association"))};
EYN(this.Hw);this.B("web_player_defer_ad")&&uIj(this);this.eQ.yZ("onPlaybackStartExternal");(this.G.B("mweb_client_log_screen_associated"),qA(this.G))||R();R={};this.getVideoData().Z&&(R.cttAuthInfo={token:this.getVideoData().Z,videoId:this.getVideoData().videoId});R.sampleRate=20;mc("player_att",R);if(this.getVideoData().botguardData||this.B("fetch_att_independently"))g.Xk(this.G)||Wp(this.G)==="MWEB"?g.R8(g.n3(),function(){hY(F)}):hY(this);
this.dE();KKW(this);g.Pp(this.G)&&(R={autoplayBrowserPolicy:Y2(),autoplayIntended:J0(this.getVideoData()),autoplayStatus:dQ_(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.LJ("embedsAutoplayStatusChanged",R))}};
g.X.D85=function(){this.eQ.publish("internalAbandon");IP(this)};
g.X.onApiChange=function(){var R=this.rX();this.G.V?this.eQ.t7("onApiChange",R.getPlayerType()):this.eQ.t7("onApiChange")};
g.X.jr5=function(){var R=this.mediaElement;R={volume:g.vI(Math.floor(R.getVolume()*100),0,100),muted:R.vH()};R.muted||u1(this,!1);this.C4=g.Di(R);this.eQ.t7("onVolumeChange",R)};
g.X.mutedAutoplay=function(R){var F=this.getVideoData().videoId;isNaN(this.JS)&&(this.JS=this.getVideoData().startSeconds);if((R==null?0:R.videoId)||F)this.loadVideoByPlayerVars({video_id:(R==null?0:R.videoId)?R==null?void 0:R.videoId:F,playmuted:!0,start:this.JS,muted_autoplay_duration_mode:R==null?void 0:R.durationMode}),this.eQ.yZ("onMutedAutoplayStarts")};
g.X.onFullscreenChange=function(){var R=E4k(this);this.Ax(R?1:0);Pd_(this,!!R)};
g.X.Ax=function(R){var F=!!R,n=!!this.aK()!==F;this.visibility.Ax(R);this.template.Ax(F);this.B("html5_media_fullscreen")&&!F&&this.mediaElement&&E4k(this)===this.mediaElement.Fs()&&this.mediaElement.qs();this.template.resize();n&&this.Qc.tick("fsc");n&&(this.eQ.publish("fullscreentoggled",F),R=this.aC(),F={fullscreen:F,videoId:R.qV||R.videoId,time:this.getCurrentTime()},this.eQ.getPlaylistId()&&(F.listId=this.eQ.getPlaylistId()),this.eQ.t7("onFullscreenChange",F))};
g.X.dT=function(){return this.visibility.dT()};
g.X.isFullscreen=function(){return this.visibility.isFullscreen()};
g.X.aK=function(){return this.visibility.aK()};
g.X.tJ2=function(){var R=this.aK();R!==0&&R!==1||this.Ax(E4k(this)?1:0);R=window.screen.width*window.screen.height;var F=window.outerHeight*window.outerWidth;this.G.A3?(this.He=Math.max(this.He,R,F),R=F/this.He<this.G.Pk,this.visibility.rI(R),this.G.d4&&JJN(this,R)):this.mediaElement&&Yuj(this,F/R<.33)&&this.mediaElement.qs()};
g.X.d81=function(R){this.IC.c6||this.eQ.publish("liveviewshift",R)};
g.X.playVideo=function(R,F){R=g.aP(this,{playerType:R});this.appState===2?(g.C9(this.G)&&QT(this.Qc),Hi(this)):g.E(R.getPlayerState(),2)?(F=36,this.getVideoData().X7()&&(F=37),this.seekTo(0,void 0,void 0,void 0,F,"_play")):R.playVideo(!1,F)};
g.X.pauseVideo=function(R,F){g.aP(this,{playerType:R}).pauseVideo(F)};
g.X.stopVideo=function(R){R=R===void 0?!1:R;var F=this.UN().getVideoData(),n=new g.sr(this.G,{video_id:F.qV||F.videoId,oauth_token:F.oauthToken});n.Su=g.Di(F.Su);R&&!this.webPlayerContextConfig.disableStaleness&&(n.e9=!0);this.cancelPlayback(6);i1(this,n,1)};
g.X.cancelPlayback=function(R,F){var n=g.aP(this,{playerType:F});F===2&&n.getPlayerType()===1&&LK(this.aC())?n.m2("canclpb",{r:"no_adpb_ssdai"}):(this.G.CC()&&n.m2("canclpb",{r:R}),this.appState!==1&&this.appState!==2&&(n===this.rX()&&U0(this.Hw,R),F===1&&(n.stopVideo(),IP(this)),n.Md(void 0,!0),xO(this,"cuerangesremoved",n.n5()),n.XE(),this.QN&&n.isGapless()&&(n.AD(!0),n.setMediaElement(this.mediaElement)),this.Hb=TMJ(n.getVideoData()).map(function(V){var r;return(r=V.videoId)!=null?r:""}).filter(function(V){return!!V})))};
g.X.sendVideoStatsEngageEvent=function(R,F,n){F=g.aP(this,{playerType:F});opE(this.G,R)?F.sendVideoStatsEngageEvent(R,n):n&&n()};
g.X.Uq=function(R){var F=g.aP(this,{playerType:void 0});return opE(this.G,R)?F.Uq(R):null};
g.X.updatePlaylist=function(){!L9(this.G)&&g.Pp(this.G)&&mUR(this);this.eQ.yZ("onPlaylistUpdate")};
g.X.setSizeStyle=function(R,F){this.mK=R;this.B("web_log_theater_mode_visibility")?this.tN(F):this.F8=F;this.eQ.publish("sizestylechange",R,F);this.template.resize()};
g.X.tN=function(R){this.visibility.tN(R)};
g.X.ey=function(){return this.B("web_log_theater_mode_visibility")?this.visibility.ey():this.F8};
g.X.isMinimized=function(){return this.visibility.isMinimized()};
g.X.isInline=function(){return this.visibility.isInline()};
g.X.Yw=function(){return this.visibility.Yw()};
g.X.No=function(){return this.visibility.No()};
g.X.w0=function(){return this.visibility.w0()};
g.X.Pe=function(){return this.mK};
g.X.getAdState=function(){if(this.getPresentingPlayerType()===3)return $M(this.Hw).getAdState();if(!this.OY()){var R=jk(this.WI());if(R)return R.getAdState()}return-1};
g.X.ZkH=function(R){var F=this.template.getVideoContentRect();rQ(this.uR,F)||(this.uR=F,this.rX().Z1(),(F=this.UN())&&F===this.rX()&&F.Z1(),this.aK()===1&&this.xT&&Pd_(this,!0));F=this.fH().Cx!==this.yr;this.yr=this.fH().Cx;this.C0&&g.cI(this.C0,R)&&!F||(this.eQ.publish("appresize",R),this.C0=R)};
g.X.dV=function(){return this.eQ.dV()};
g.X.fhG=function(){this.getPresentingPlayerType()===2&&this.vI.isManifestless()?GiV(this.vI):(this.h0&&(cMN(this.h0),IP(this)),this.AJ.Y5=(0,g.h1)(),bsW(this,"signature"))};
g.X.R6S=function(R){R&&bsW(this,"reloadPlayerEvent",void 0,R)};
g.X.w9=function(R){this.AD(R);XL(this)};
g.X.r05=function(R){if(R.errorCode==="manifest.net.badstatus"){var F=this.G.experiments.GH("html5_use_network_error_code_enums")?401:"401";R.details.rc===F&&this.eQ.HG("onPlayerRequestAuthFailed")}};
g.X.Ih2=function(R){this.eQ.publish("heartbeatparams",R)};
g.X.zz=function(R){this.eQ.HG("onAutonavChangeRequest",R!==1)};
g.X.LX=function(){return this.mediaElement};
g.X.setBlackout=function(R){if(this.G.h1!==R){this.G.h1=R;var F=this.rX();F.oN();this.G.Mq&&eeJ(this);F.S7(R)}};
g.X.lhX=function(){var R=this.rX(),F=!this.eQ.Rw();R.nu(F)};
g.X.ql2=function(){this.eQ.yZ("onLoadedMetadata")};
g.X.vqH=function(){this.eQ.yZ("onDrmOutputRestricted")};
g.X.tP=function(){this.intentionalPlayback=!0};
g.X.oG=function(){this.Hw.dispose();this.Ae.dispose();this.vI.dispose();this.h0&&this.h0.dispose();this.UN().dispose();this.AD();this.IC.dispose();g.TW(this.playlist);g.G.prototype.oG.call(this)};
g.X.B=function(R){return this.G.B(R)};
g.X.rg=function(){return this.G.rg()};
g.X.Qr=function(){return this.G.Qr()};
g.X.setScreenLayer=function(R){this.screenLayer=R};
g.X.getInternalApi=function(){return this.eQ.getInternalApi()};
g.X.createSubtitlesModuleIfNeeded=function(){return this.Hw.createSubtitlesModuleIfNeeded()};
g.X.isOrchestrationLeader=function(){var R=hr(this.Hw);return R?R.isOrchestrationLeader():!1};
g.X.getVideoUrl=function(R,F,n,V,r){if(this.wg&&this.wg.postId)return R=this.G.getVideoUrl(R),R=JB(R,"v"),R.replace("/watch","/clip/"+this.wg.postId);var v=this.eQ.isEmbedsShortsMode()||this.G.jQ==="shortspage",f=g.T9(this.getVideoData());return this.G.getVideoUrl(R,F,n,V,r,v,f)};
g.X.F$=function(){return this.QN.F$()};
g.X.yp=function(R,F,n){this.eQ.publish("spsumpreject",R,F,n)};
g.X.jj=function(){try{for(var R=g.m(Object.values(this.IC.N)),F=R.next();!F.done;F=R.next()){var n=F.value;n.Zo()||n.jj()}if(this.B("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var V=g.m(this.IC.W.PH()),r=V.next();!r.done;r=V.next()){var v=r.value;v.Zo()||v.jj()}this.UN().jj()}catch(f){g.mq(f)}};
g.X.Ou=function(){if(this.h0){var R=(0,g.h1)();return this.h0.Ou(R)}return!1};
g.X.hW=function(R){var F=this.UN();R&&(F=FDk(this,R));if(F){var n=F.getVideoData();R=new Map;n=g.m(n.sabrContextUpdates);for(var V=n.next();!V.done;V=n.next()){var r=g.m(V.value);V=r.next().value;r=r.next().value;var v=void 0;r.scope===4&&((v=F)==null?0:v.Q4(V))&&R.set(V,r)}return R}this.UN().m2("scuget",{ncpf:"1",ccpn:R})};
g.X.G0=function(R,F){this.tR.push({key:R,value:F})};
var WX={};var YjM={YO:[{H8:/Unable to load player module/,weight:20},{H8:/Failed to fetch/,weight:500},{H8:/XHR API fetch failed/,weight:10},{H8:/JSON parsing failed after XHR fetch/,weight:10},{H8:/Retrying OnePlatform request/,weight:10},{H8:/CSN Missing or undefined during playback association/,weight:100},{H8:/Non-recoverable error. Do not retry./,weight:0},{H8:/Internal Error. Retry with an exponential backoff./,weight:0},{H8:/API disabled by application./,weight:0},{H8:/Unexpected end of JSON input/,
weight:0}],Gv:[{callback:n9R,weight:500}]};var sye=/[&\?]action_proxy=1/,LD_=/[&\?]token=([\w-]*)/,pJk=/[&\?]video_id=([\w-]*)/,XJv=/[&\?]index=([\d-]*)/,A49=/[&\?]m_pos_ms=([\d-]*)/,ClN=/[&\?]vvt=([\w-]*)/,fnf="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),an6="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),q4e={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"},QyE={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},wJ9={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};JY.prototype.bQ=function(R){this.player.Mc().tick(R)};
JY.prototype.fetch=function(R,F){var n=this;if(!R.match(/\[BISCOTTI_ID\]/g))return this.U(R,F);var V=this.T===1;V&&this.bQ("a_bid_s");var r=r4N();if(r!==null)return V&&this.bQ("a_bid_f"),this.U(R,F,r);r=v9N();V&&g.xv(r,function(){n.bQ("a_bid_f")});
return r.then(function(v){return n.U(R,F,v)})};
JY.prototype.U=function(R,F,n){var V=this,r=F===void 0?{}:F;F=r.NI;var v=r.tO;var f=r.cueProcessedMs;n=n===void 0?"":n;var z=this.player.getVideoData({playerType:1});r=this.player.D().GZ;var q=0;if(f&&v&&!F){var Q=v.end-v.start;Q>0&&(q=Math.floor(Q/1E3))}q=F?F.FP:q;var c={AD_BLOCK:this.T++,AD_BREAK_LENGTH:q,AUTONAV_STATE:YO(this.player.D()),CA_TYPE:"image",CPN:z.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.L2()*1E3,LACT:aS(),LIVE_INDEX:F?this.N++:1,LIVE_TARGETING_CONTEXT:F&&F.context?F.context:
"",MIDROLL_POS:v?Math.round(v.start/1E3):0,MIDROLL_POS_MS:v?Math.round(v.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.fH().p5().height,P_W:this.player.fH().p5().width,YT_REMOTE:r?r.join(","):""},w=s2(L$);Object.keys(w).forEach(function(S){w[S]!=null&&(c[S.toUpperCase()]=w[S].toString())});
n!==""&&(c.BISCOTTI_ID=n);n={};SP(R)&&(n.sts="20467",(F=this.player.D().forcedExperiments)&&(n.forced_experiments=F));var L=Qb(g.OB(R,c),n);return L.split("?").length!==2?DB(Error("Invalid AdBreakInfo URL")):g.HV(this.player.D(),z==null?void 0:z.oauthToken).then(function(S){if(S&&wz()){var p=r$();vN(p,S)}S=V.player.i_(p);p=T1_(V,L,c,z.isMdxPlayback,f);return g.ij(S,p,"/youtubei/v1/player/ad_break").then(function(C){return C})})};
JY.prototype.reset=function(){this.N=this.T=1};g.a(o9f,JY);
o9f.prototype.U=function(R,F,n){F=F===void 0?{}:F;var V=F.NI;var r=F.tO;var v=F.cueProcessedMs;n=n===void 0?"":n;F=this.T;this.T++;var f=this.player.D().B("h5_disable_macro_substitution_in_get_ad_break")?R:y4N(this,R,{NI:V,tO:r,cueProcessedMs:v},n,F);if(f.split("?").length!==2)return Math.random()<.1&&g.mq(Error("Invalid AdBreakInfo URL")),DB(Error("Invalid AdBreakInfo URL"));var z=GJ(this).isMdxPlayback,q=n;n=LD_.exec(f);n=n!=null&&n.length>=2?n[1]:"";R=sye.test(f);var Q=pJk.exec(f);Q=Q!=null&&Q.length>=
2?Q[1]:"";var c=XJv.exec(f);c=c!=null&&c.length>=2&&!Number.isNaN(Number(c[1]))?Number(c[1]):1;var w=A49.exec(f);w=w!=null&&w.length>=2?w[1]:"0";var L=tP(this.player.D().rK),S=g.Zz(GJ(this).Nq,!0);zBW(this,S,f,q===""?"":q,this.player.D(),GJ(this));q={splay:!1,lactMilliseconds:String(aS()),playerHeightPixels:Math.trunc(this.player.fH().p5().height),playerWidthPixels:Math.trunc(this.player.fH().p5().width),vis:Math.trunc(this.player.getVisibilityState()),signatureTimestamp:20467,autonavState:YO(this.player.D())};
if(z){z={};var p=this.player.D().GZ;c4E(z,p?p.join(","):"")&&(q.mdxContext=z)}if(z=an6.includes(L)?void 0:g.Yi("PREF")){p=z.split(RegExp("[:&]"));for(var C=0,y=p.length;C<y;C++){var u=p[C].split("=");if((u[0].toUpperCase()==="SML"||u[0].toUpperCase()==="GSML")&&u.length>1&&u[1].toUpperCase()==="TRUE"){S.user.lockedSafetyMode=!0;break}}q.autoCaptionsDefaultOn=S4J(z)}f=ClN.exec(f);(f=f!=null&&f.length>=2?f[1]:"")&&Q&&(S.user.credentialTransferTokens=[{token:f,scope:"VIDEO"}]);f={contentPlaybackContext:q};
q=GJ(this).getGetAdBreakContext();z=GJ(this).clientPlaybackNonce;p=v!==void 0?Math.round(v).toString():void 0;C=(V==null?0:V.context)?V.context:void 0;y=0;v&&r&&!V&&(r=r.end-r.start,r>0&&(y=Math.floor(r/1E3)));V=(V=Math.trunc((V?V.FP:y)*1E3))?String(V):void 0;r=this.player.L2()*1E3;r=Number.isNaN(r)?0:Math.trunc(r);F={adBlock:F,params:n,breakIndex:c,breakPositionMs:w,clientPlaybackNonce:z,topLevelDomain:L,isProxyAdTagRequest:R,context:S,overridePlaybackContext:f,cueProcessedMs:p,videoId:Q?Q:void 0,
liveTargetingParams:C,breakLengthMs:V,driftFromHeadMs:r?String(r):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:q?q:void 0};return UbI(this,F)};var J8z={dHz:"replaceUrlMacros",S8q:"onAboutThisAdPopupClosed",XyQ:"executeCommand"};jyk.prototype.Tf=function(){return"adPingingEndpoint"};
jyk.prototype.zi=function(R,F,n){q9N(this.zH.get(),R,F,n)};HZj.prototype.Tf=function(){return"changeEngagementPanelVisibilityAction"};
HZj.prototype.zi=function(R){this.K.HG("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:R})};hBI.prototype.Tf=function(){return"loggingUrls"};
hBI.prototype.zi=function(R,F,n){R=g.m(R);for(var V=R.next();!V.done;V=R.next())V=V.value,q9N(this.zH.get(),V.baseUrl,F,n,V.attributionSrcMode)};g.a(uXk,g.G);B1N.prototype.BI=function(R,F){var n={};F=Object.assign({},F,(n.cc=this.NT.Hm(),n));this.NT.K.m2(R,F)};g.a(Mp,g.G);g.X=Mp.prototype;g.X.addListener=function(R){this.listeners.push(R)};
g.X.removeListener=function(R){this.listeners=this.listeners.filter(function(F){return F!==R})};
g.X.vW=function(R,F,n,V,r,v,f,z){if(R==="")Q2("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(R!==this.T||n){this.T=R;this.F2.get().vW(R,F,n,V,r,v,f,z);this.Do.get().vW(R,F,n,V,r,v,f,z);var q;(q=this.Sl)==null||q.get().vW(R,F,n,V,r,v,f,z);this.U.vW(R,F,n,V,r,v,f,z);q=g.m(this.listeners);for(var Q=q.next();!Q.done;Q=q.next())Q.value.vW(R,F,n,V,r,v,f,z)}else Q2("Duplicate content video loaded signal")};
g.X.aOo=function(){this.T&&this.y8(this.T)};
g.X.y8=function(R){this.T=void 0;for(var F=g.m(this.listeners),n=F.next();!n.done;n=F.next())n.value.y8(R)};l1.prototype.cL=function(R,F,n,V,r){mbV(this);this.W=!F&&n===0;var v=this.K.getVideoData({playerType:1}),f=this.K.getVideoData({playerType:2});v&&(this.contentCpn=v.clientPlaybackNonce,this.videoId=v.videoId,this.T=v.Z);f&&(this.adCpn=f.clientPlaybackNonce,this.adVideoId=f.videoId,this.adFormat=f.adFormat);this.J=R;V<=0?(mbV(this),this.W=!F&&n===0):(this.actionType=this.W?F?"unknown_type":"video_to_ad":F?"ad_to_video":"ad_to_ad",this.videoStreamType=r?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",
this.actionType!=="unknown_type"&&(this.N=!0,gV("_start",this.actionType)&&InJ(this)))};
l1.prototype.reset=function(){return new l1(this.K)};g.a(Np,g.G);Np.prototype.addCueRange=function(R,F,n,V,r,v,f,z,q){v=v===void 0?3:v;f=f===void 0?1:f;this.T.has(R)?Q2("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:R}):(R=new KDN(R,F,n,V,v,z,q),this.T.set(R.id,{tO:R,listener:r,uG:f}),this.K.iL([R],f))};
Np.prototype.removeCueRange=function(R){var F=this.T.get(R);F?(this.K.rG([F.tO],F.uG),this.T.delete(F.tO.id)):Q2("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:R})};
Np.prototype.onCueRangeEnter=function(R){if(this.T.has(R.id))this.T.get(R.id).listener.onCueRangeEnter(R.id)};
Np.prototype.onCueRangeExit=function(R){if(this.T.has(R.id))this.T.get(R.id).listener.onCueRangeExit(R.id)};
g.a(KDN,g.NQ);Et.prototype.addPlayerResponseForAssociation=function(R){this.K.addPlayerResponseForAssociation(R)};$O.prototype.mR=function(R){this.K.mR(R)};
$O.prototype.b7=function(R){var F=g.Cq.apply(1,arguments);R==="onAdStart"||R==="onAdEnd"?this.K.t7.apply(this.K,[R].concat(g.I(F))):this.K.HG.apply(this.K,[R].concat(g.I(F)))};var E9k=null;g.a(N1k,g.fG);N1k.prototype.Ob=function(R){return this.T.hasOwnProperty(R)?this.T[R].Ob():{}};
g.h7("ytads.bulleit.getVideoMetadata",function(R){return b1().Ob(R)});
g.h7("ytads.bulleit.triggerExternalActivityEvent",function(R,F,n){var V=b1();n=lnW(n);n!==null&&V.publish(n,{queryId:R,viewabilityString:F})});g.X=Zl.prototype;g.X.qc=function(R,F){if(!this.T.has(R))return{};if(F==="seek"){F=!1;F=F===void 0?!1:F;var n=i$(tH).Rl(R,{});n?Vr(n):F&&(R=i$(tH).Ka(null,b5(),!1,R),R.jK=3,EBJ([R]));return{}}F=Plk(F);if(F===null)return{};var V=this.K.Zw();if(!V)return{};var r=this.K.getPresentingPlayerType(!0);if((n=this.K.getVideoData({playerType:r}))==null||!n.isAd())return{};n={opt_adElement:V,opt_fullscreen:this.F2.get().isFullscreen()};return EDf(F,R,n)};
g.X.J3=function(R,F,n,V,r){this.T.has(R)&&(V<=0||r<=0||i$(tH).J3(R,F,n,V,r))};
g.X.FY=function(R){var F;(F=this.T.get(R.queryId))==null||F.FY()};
g.X.ly=function(R){var F;(F=this.T.get(R.queryId))==null||F.ly()};
g.X.Kv=function(R){var F;(F=this.T.get(R.queryId))==null||F.Kv()};
g.X.Wv=function(R){var F;(F=this.T.get(R.queryId))==null||F.Wv()};
g.X.Pv=function(R){var F;(F=this.T.get(R.queryId))==null||F.Pv()};rkf.prototype.send=function(R,F,n,V){try{vPf(this,R,F,n,V===void 0?!1:V)}catch(r){}};g.a(fcW,rkf);tdf.prototype.send=function(R,F,n,V){var r=!1;try{if(V==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||V==="ATTRIBUTION_SRC_MODE_XHR_OPTION")r=!0,R=iON(R);V=r;var v=g.Wa(R);if(v[1]==="https")var f=R;else v[1]="https",f=hB("https",v[2],v[3],v[4],v[5],v[6],v[7]);var z=O_e(f);v=[];var q=HT_(f)&&this.WG.get().K.D().experiments.GH("add_auth_headers_to_remarketing_google_dot_com_ping");if(SP(f)||q)v.push({headerType:"USER_AUTH"}),v.push({headerType:"PLUS_PAGE_ID"}),v.push({headerType:"VISITOR_ID"}),v.push({headerType:"EOM_VISITOR_ID"}),
v.push({headerType:"AUTH_USER"}),v.push({headerType:"DATASYNC_ID"});this.T.send({baseUrl:f,scrubReferrer:z,headers:v},F,n,V)}catch(Q){}};VC.prototype.Uq=function(){return this.K.Uq(1)};g.a(rc,g.G);g.X=rc.prototype;g.X.Hm=function(){return this.K.getVideoData({playerType:1}).clientPlaybackNonce};
g.X.addListener=function(R){this.listeners.push(R)};
g.X.removeListener=function(R){this.listeners=this.listeners.filter(function(F){return F!==R})};
g.X.vW=function(){this.fg.clear();this.Y6=null;this.r$.get().clear()};
g.X.y8=function(){};
g.X.j9G=function(R,F,n){F.videoId==="nPpU29QrbiU"&&this.K.m2("ads_ssm_vdc_s",{pt:n,dvt:R});so(this.WG.get())&&R!=="dataloaded"||pO6(this,F,n)};
g.X.tlo=function(R){if(this.K.getVideoData({playerType:1}).enableServerStitchedDai){R=g.m(R.started);for(var F=R.next();!F.done;F=R.next()){F=F.value;var n=this.K.getStartTime({cpn:F.cpn}),V=this.K.getVideoData({cpn:F.cpn}),r=this.K.getPlayerType(F.cpn),v=null;r===2&&(this.Y6=F.cpn,n===void 0?Q2("Expected ad video start time on SS video changed"):this.fg.set(F.cpn,n),v=R4(this.r$.get(),F.cpn));var f=void 0,z=void 0;this.K.getVideoData({playerType:1}).m2("ads_ssvc",{pt:r,cpn:(f=V)==null?void 0:f.clientPlaybackNonce,
crtt:this.K.getCurrentTime(1,!1),atlh:this.K.isAtLiveHead(),adstt:n,pid:F.cpn,slid:(z=v)==null?void 0:z.layoutId});V&&r?pO6(this,V,r):Q2("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.K.getVideoData({playerType:1}).clientPlaybackNonce,timelinePlaybackId:F.cpn})}}};
g.X.r72=function(R,F){R!==void 0&&(this.Y6=R,F===void 0||isNaN(F)?Q2("Expected ad video start time on SS video changed"):this.fg.set(R,F));var n=this.K.getPresentingPlayerType(!0),V=this.K.getVideoData({playerType:n}),r=R===void 0?null:R4(this.r$.get(),R);this.K.getVideoData({playerType:1}).m2("ads_ssvc",{pt:n,cpn:V==null?void 0:V.clientPlaybackNonce,crtt:this.K.getCurrentTime(1,!1),atlh:this.K.isAtLiveHead(),adstt:F,pid:R,slid:r==null?void 0:r.layoutId});V?pO6(this,V,n):Q2("Expected video data on server stitched video changed",
void 0,void 0,{cpn:this.K.getVideoData({playerType:1}).clientPlaybackNonce,timelinePlaybackId:R})};
g.X.oX=function(R,F){var n=R.author,V=R.clientPlaybackNonce,r=R.isListed,v=R.Zh,f=R.title,z=R.J5,q=R.nW,Q=R.isMdxPlayback,c=R.BA,w=R.mdxEnvironment,L=R.isAutonav,S=R.jm,p=R.Lm,C=R.xa,y=R.videoId||"",u=R.profilePicture||"",B=R.By||"",O=R.X7()||!1,K=R.iZ()||!1;R=R.AA||void 0;v=R4(this.r$.get(),v)||{layoutId:null,slotId:null};var M=this.K.getVideoData({playerType:1}),J=M.Zt();M=M.getPlayerResponse();F=1E3*this.K.getDuration(F);var b=1E3*this.K.getDuration(1),RJ,Fj,fW=(M==null?void 0:(RJ=M.playerConfig)==
null?void 0:(Fj=RJ.daiConfig)==null?void 0:Fj.enableDai)||!1,SE,nW;RJ=(M==null?void 0:(SE=M.playerConfig)==null?void 0:(nW=SE.daiConfig)==null?void 0:nW.enablePreroll)||!1;return Object.assign({},v,{videoId:y,author:n,clientPlaybackNonce:V,GG:F,ZN:b,daiEnabled:fW,gU:RJ,isListed:r,Zt:J,profilePicture:u,title:f,By:B,J5:z,nW:q,AA:R,isMdxPlayback:Q,BA:c,mdxEnvironment:w,isAutonav:L,jm:S,Lm:p,xa:C,X7:O,iZ:K})};
g.X.oG=function(){this.listeners.length=0;this.c5=null;g.G.prototype.oG.call(this)};g.a(vw,g.G);g.X=vw.prototype;g.X.vW=function(){var R=this;this.Xy=bY(function(){R.K.Zo()||R.K.wK("ad",1)})};
g.X.y8=function(){};
g.X.addListener=function(R){this.listeners.push(R)};
g.X.removeListener=function(R){this.listeners=this.listeners.filter(function(F){return F!==R})};
g.X.Kw=function(){};
g.X.playVideo=function(){this.K.playVideo()};
g.X.pauseVideo=function(){this.K.pauseVideo()};
g.X.resumeVideo=function(R){this.Kx(R)&&this.K.playVideo()};
g.X.Kx=function(R){return this.K.getPlayerState(R)===2};
g.X.getCurrentTimeSec=function(R,F){var n=this.Do.get().Y6;return R!==2||F||n===null?this.K.getCurrentTime(R,F):tV(this,n)};
g.X.getVolume=function(){return this.K.getVolume()};
g.X.isMuted=function(){return this.K.isMuted()};
g.X.getPresentingPlayerType=function(){return this.K.getPresentingPlayerType(!0)};
g.X.getPlayerState=function(R){return this.K.getPlayerState(R)};
g.X.getGetAdBreakContext=function(){return this.K.getGetAdBreakContext()};
g.X.isFullscreen=function(){return this.K.isFullscreen()};
g.X.isAtLiveHead=function(){return this.K.isAtLiveHead()};
g.X.As=function(R){this.K.As(R)};
g.X.suG=function(){var R=this.K.getPresentingPlayerType(!0),F=this.getCurrentTimeSec(R,!1);if(R===2){R=g.m(this.listeners);for(var n=R.next();!n.done;n=R.next())n.value.gG(F)}else if(R===1)for(R=g.m(this.Pp),n=R.next();!n.done;n=R.next())n.value.Kw(F)};
g.X.HlG=function(R){for(var F=g.m(this.listeners),n=F.next();!n.done;n=F.next())n.value.aV(R,this.getPresentingPlayerType())};
g.X.onFullscreenToggled=function(R){for(var F=g.m(this.listeners),n=F.next();!n.done;n=F.next())n.value.onFullscreenToggled(R)};
g.X.onVolumeChange=function(){for(var R=g.m(this.listeners),F=R.next();!F.done;F=R.next())F.value.onVolumeChange()};
g.X.oV=function(){for(var R=this.K.isMinimized(),F=g.m(this.listeners),n=F.next();!n.done;n=F.next())n.value.oV(R)};
g.X.PE=function(R){for(var F=g.m(this.listeners),n=F.next();!n.done;n=F.next())n.value.PE(R)};
g.X.G9=function(){for(var R=this.K.fH().p5(),F=g.m(this.listeners),n=F.next();!n.done;n=F.next())n.value.Q5(R)};
g.X.WE=function(R){for(var F=g.m(this.listeners),n=F.next();!n.done;n=F.next())n.value.WE(R)};
g.X.Fd=function(){for(var R=g.m(this.listeners),F=R.next();!F.done;F=R.next())F.value.Fd()};g.a(T0E,g.G);g.a(QC,g.G);QC.prototype.oG=function(){this.ZB.Zo()||this.ZB.get().removeListener(this);g.G.prototype.oG.call(this)};cw.prototype.fetch=function(R){var F=R.yx;return this.T.fetch(R.Cd,{NI:R.NI===void 0?void 0:R.NI,tO:F,cueProcessedMs:R.cueProcessedMs===void 0?0:R.cueProcessedMs}).then(function(n){return oPf(n,F)})};g.a(wc,g.G);g.X=wc.prototype;g.X.addListener=function(R){this.listeners.push(R)};
g.X.removeListener=function(R){this.listeners=this.listeners.filter(function(F){return F!==R})};
g.X.pn=function(R){yke(this,R,1)};
g.X.onAdUxClicked=function(R,F){SJ(this,function(n){n.fk(R,F)})};
g.X.Qp=function(R){SJ(this,function(F){F.nU(R)})};
g.X.AS=function(R){SJ(this,function(F){F.M9(R)})};
g.X.JX2=function(R){SJ(this,function(F){F.uf(R)})};LE.prototype.reduce=function(R){switch(R.event){case "unknown":return}var F=R.identifier;var n=this.T[F];n?F=n:(n={Za:null,iR:-Infinity},F=this.T[F]=n);n=R.startSecs+R.T/1E3;if(!(n<F.iR))if(F.iR=n,F.Za){if(n<F.Za.end){a:{n=F.Za;switch(R.event){case "start":case "continue":case "stop":break;default:R=null;break a}R=n.start+R.FP;R=n.end<=R?null:R}if(R!==null)for(F.Za.end=R,F=this.U,g.Ax(F.N.T,R*1E3),F=g.m(F.listeners),n=F.next();!n.done;n=F.next())n.value.BS(R)}}else if(R=Uo6(R,this.N))n=R.E5Q,F.Za=
R.Fl,H8e(this.U,n)};
LE.prototype.updateTime=function(){};g.a(sS,g.G);g.X=sS.prototype;
g.X.vW=function(){this.W=new LE(this,xbf(this.WG.get()));this.N=new j_E;var R=this.K.getVideoData({playerType:1});if(!R.enableServerStitchedDai){var F=this.K.getVideoData({playerType:1}),n;((n=this.U)==null?void 0:n.clientPlaybackNonce)!==F.clientPlaybackNonce&&(this.U!=null&&this.U.unsubscribe("cuepointupdated",this.bv,this),F.subscribe("cuepointupdated",this.bv,this),this.U=F)}this.rA.length=0;var V;F=((V=R.T)==null?void 0:nuN(V,0))||[];V=g.m(F);for(F=V.next();!F.done;F=V.next())F=F.value,this.Q_(F)&&
(pB(this.WG.get())&&tA(this.zH.get(),"ocvl","cpi."+F.identifier+";cpe."+F.event+";cps."+F.startSecs),Q2("Unexpected a GetAdBreak to go out without player waiting",void 0,void 0,{cuePointId:F.identifier,cuePointEvent:F.event,contentCpn:R.clientPlaybackNonce}))};
g.X.y8=function(){};
g.X.addListener=function(R){this.listeners.push(R)};
g.X.removeListener=function(R){this.listeners=this.listeners.filter(function(F){return F!==R})};
g.X.Q_=function(R){WsI(this,R);var F;if(this.K.D().experiments.rg().T.pH(iWh)&&((F=this.K.getVideoData({playerType:1}))==null?0:F.iZ())&&(R.event==="continue"||R.event==="stop")||Y4J(this.WG.get())&&this.K.getCurrentTime(1)===0&&this.K.getVideoData({playerType:1}).iZ())return!1;this.W.reduce(R);R=this.J;this.J=!1;return R};
g.X.bv=function(R){var F=this.K.getVideoData({playerType:1}).isDaiEnabled();if(F||!g.Xi(this.K.D())){R=g.m(R);for(var n=R.next();!n.done;n=R.next())if(n=n.value,WsI(this,n),pB(this.WG.get())&&this.K.getCurrentTime(1)===0&&n.event==="start"&&tA(this.zH.get(),"ocuz","cpi."+n.identifier+";cpe."+n.event+";cps."+n.startSecs+";cpd."+n.FP),F)Y4J(this.WG.get())&&this.K.getCurrentTime(1)===0&&this.K.getVideoData({playerType:1}).iZ()||this.W.reduce(n);else if(this.K.getCurrentTime(1)!==0&&n.event==="start")if(this.WG.get().K.D().experiments.GH("ignore_overlapping_cue_points_on_endemic_live_html5")&&
(this.T==null||this.WG.get().K.D().experiments.GH("enable_only_drop_overlapping_cuepoints_with_same_identifier")&&this.T.identifier!==n.identifier?0:n.startSecs+n.FP>=this.T.startSecs&&n.startSecs<=this.T.startSecs+this.T.FP)){var V=void 0;if(pB(this.WG.get())&&n.identifier!==((V=this.T)==null?void 0:V.identifier)){var r=V=void 0,v=void 0,f=void 0;tA(this.zH.get(),"ocud","ccpi."+n.identifier+";ccpe."+n.event+";ccps."+n.startSecs+";\n               ccpd."+n.FP+";pcpi."+((V=this.T)==null?void 0:V.identifier)+
";pcpe."+((r=this.T)==null?void 0:r.event)+";\n               pcps."+((v=this.T)==null?void 0:v.startSecs)+";pcpd."+((f=this.T)==null?void 0:f.FP)+";")}V=void 0;n.identifier!==((V=this.T)==null?void 0:V.identifier)&&Q2("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.T=n,H8e(this,n)}};
g.X.oG=function(){this.U!=null&&(this.U.unsubscribe("cuepointupdated",this.bv,this),this.U=null);this.listeners.length=0;this.rA.length=0;g.G.prototype.oG.call(this)};g.X=XZ.prototype;g.X.uc=function(R,F,n,V,r,v,f,z){return this.K.uc(R,F,n,V,r,v,f,z!==void 0?{G3:z}:void 0)};
g.X.kQ=function(R,F){this.K.kQ(R,F)};
g.X.XZ=function(R,F,n){this.K.XZ(R,F,n)};
g.X.wI=function(R){this.K.wI({G3:R})};
g.X.dF=function(R,F,n,V,r,v,f,z){this.K.dF(R,F,n,V,r,v,f,z!==void 0?{G3:z}:void 0)};
g.X.AG=function(R){return this.K.AG(R)};
g.X.finishSegmentByCpn=function(R,F,n){n=uhj(n);this.K.finishSegmentByCpn(R,F,n)};g.a(AV,g.G);g.a(moJ,g.G);g.a(gP9,g.G);g.a(O8V,g.G);g.a(Icv,g.G);g.a(Ksk,g.G);g.a(i8E,g.G);i8E.prototype.N=function(){return this.U};g.a(xoI,MB);
xoI.prototype.N=function(R){var F=R.content;if(F.componentType==="shopping-companion")switch(R.actionType){case 1:case 2:R=this.T.getVideoData({playerType:1});this.T.HG("updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId,shoppingCompanionCarouselRenderer:F.renderer,layoutId:F.layoutId,macros:F.macros,onLayoutVisibleCallback:F.T,interactionLoggingClientData:F.interactionLoggingClientData});break;case 3:this.T.HG("updateKevlarOrC3Companion",{})}else if(F.componentType==="action-companion")switch(R.actionType){case 1:case 2:R=this.T.getVideoData({playerType:1});
this.T.HG("updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId,actionCompanionAdRenderer:F.renderer,layoutId:F.layoutId,macros:F.macros,onLayoutVisibleCallback:F.T,interactionLoggingClientData:F.interactionLoggingClientData});break;case 3:F.renderer&&(F=this.T.getVideoData({playerType:1}),this.T.HG("updateKevlarOrC3Companion",{contentVideoId:F&&F.videoId})),this.T.HG("updateKevlarOrC3Companion",{})}else if(F.componentType==="image-companion")switch(R.actionType){case 1:case 2:R=this.T.getVideoData({playerType:1});
this.T.HG("updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId,imageCompanionAdRenderer:F.renderer,layoutId:F.layoutId,macros:F.macros,onLayoutVisibleCallback:F.T,interactionLoggingClientData:F.interactionLoggingClientData});break;case 3:F=this.T.getVideoData({playerType:1}),this.T.HG("updateKevlarOrC3Companion",{contentVideoId:F&&F.videoId}),this.T.HG("updateKevlarOrC3Companion",{})}else if(F.componentType==="top-banner-image-text-icon-buttoned")switch(R.actionType){case 1:case 2:R=this.T.getVideoData({playerType:1});
this.T.HG("updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId,topBannerImageTextIconButtonedLayoutViewModel:F.renderer,layoutId:F.layoutId,macros:F.macros,onLayoutVisibleCallback:F.T,interactionLoggingClientData:F.interactionLoggingClientData});break;case 3:F.renderer&&(F=this.T.getVideoData({playerType:1}),this.T.HG("updateKevlarOrC3Companion",{contentVideoId:F&&F.videoId})),this.T.HG("updateKevlarOrC3Companion",{})}else if(F.componentType==="banner-image")switch(R.actionType){case 1:case 2:R=
this.T.getVideoData({playerType:1});this.T.HG("updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId,bannerImageLayoutViewModel:F.renderer,layoutId:F.layoutId,macros:F.macros,onLayoutVisibleCallback:F.T,interactionLoggingClientData:F.interactionLoggingClientData});break;case 3:F=this.T.getVideoData({playerType:1}),this.T.HG("updateKevlarOrC3Companion",{contentVideoId:F&&F.videoId}),this.T.HG("updateKevlarOrC3Companion",{})}else if(F.componentType==="ads-engagement-panel")switch(F=F.renderer,R.actionType){case 1:case 2:this.T.HG("updateEngagementPanelAction",
F.addAction);this.T.HG("changeEngagementPanelVisibility",F.expandAction);break;case 3:this.T.HG("changeEngagementPanelVisibility",F.hideAction),this.T.HG("updateEngagementPanelAction",F.removeAction)}else if(F.componentType==="ads-engagement-panel-layout"){var n=F.renderer;switch(R.actionType){case 1:case 2:this.T.HG("updateEngagementPanelAction",{action:Dt(n.addAction),layoutId:F.layoutId,onLayoutVisibleCallback:F.T,interactionLoggingClientData:F.interactionLoggingClientData});this.T.HG("changeEngagementPanelVisibility",
Dt(n.expandAction));break;case 3:this.T.HG("changeEngagementPanelVisibility",Dt(n.hideAction)),this.T.HG("updateEngagementPanelAction",{action:Dt(n.removeAction)})}}};g.a(kD6,e8);g.X=kD6.prototype;g.X.init=function(R,F,n){e8.prototype.init.call(this,R,F,n);g.fY(this.N,"stroke-dasharray","0 "+this.U);this.N.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.W.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.J.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()};
g.X.clear=function(){this.hide()};
g.X.hide=function(){FU(this);e8.prototype.hide.call(this)};
g.X.show=function(){Rt(this);e8.prototype.show.call(this)};
g.X.cA=function(){this.hide()};
g.X.o$=function(){if(this.T){var R=this.T.getProgressState();R!=null&&R.current!=null&&g.fY(this.N,"stroke-dasharray",R.current/R.seekableEnd*this.U+" "+this.U)}};g.a(Y9I,w_);g.X=Y9I.prototype;
g.X.init=function(R,F,n){w_.prototype.init.call(this,R,F,n);if(F.image&&F.image.thumbnail)if(F.headline)if(F.description)if(F.backgroundImage&&F.backgroundImage.thumbnail)if(F.actionButton&&g.A(F.actionButton,Iw))if(R=F.durationMilliseconds||0,typeof R!=="number"||R<=0)g.uX(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+R));else if(F.navigationEndpoint){var V=this.api.getVideoData({playerType:2});if(V!=null){var r=F.image.thumbnail.thumbnails;
r!=null&&r.length>0&&g.Re(g.P$(r[0].url))&&(r[0].url=V.profilePicture,g.Re(g.P$(V.profilePicture))&&yQN("VideoPlayer",239976093,"Expected non-empty profile picture."));r=F.backgroundImage.thumbnail.thumbnails;r!=null&&r.length>0&&g.Re(g.P$(r[0].url))&&(r[0].url=V.BB());r=F.headline;r!=null&&g.Re(g.P$(r.text))&&(r.text=V.author)}this.V.init(r_("ad-image"),F.image,n);this.W.init(r_("ad-text"),F.headline,n);this.N.init(r_("ad-text"),F.description,n);this.gX.init(r_("ad-image"),F.backgroundImage,n);V=
["ytp-ad-action-interstitial-action-button","ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.W.element.classList.add("ytp-ad-action-interstitial-headline-light");this.N.element.classList.add("ytp-ad-action-interstitial-description-light");this.api.D().B("enable_default_mono_cta_migration_web_client")?V.push("ytp-ad-action-interstitial-action-button-mono-dark"):V.push("ytp-ad-action-interstitial-action-button-dark");
this.api.D().U&&(V.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),this.api.D().B("enable_default_mono_cta_migration_web_client")?V.push("ytp-ad-action-interstitial-action-button-mono-dark"):V.push("ytp-ad-action-interstitial-action-button-dark"));this.api.D().B("enable_unified_action_endcap_on_web")&&!this.api.D().U&&(this.api.D().B("enable_default_mono_cta_migration_web_client")?V.push("ytp-ad-action-interstitial-action-button-unified-mono"):V.push("ytp-ad-action-interstitial-action-button-unified"),
this.SQ.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.V.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.h1.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.zI.classList.add("ytp-ad-action-interstitial-card-unified"),this.J1.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.PG.classList.add("ytp-ad-action-interstitial-headline-container-unified"),
this.W.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.bS.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Y5.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Oa(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,V);g.d(this,this.actionButton);this.actionButton.KH(this.SQ);this.actionButton.init(r_("button"),g.A(F.actionButton,Iw),
n);N1(this.actionButton.element);V=PD(this.actionButton.element);$x(this.actionButton.element,V+" This link opens in new tab");this.navigationEndpoint=F.navigationEndpoint;this.J.C(this.bS,"click",this.Bm,this);this.J.C(this.J1,"click",this.Bm,this);this.api.D().U||this.J.C(this.PG,"click",this.Bm,this);this.T=this.hR?new C5(this.api,R):new TF(R);g.d(this,this.T);if(F.skipButton){(R=g.A(F.skipButton,qvD))&&this.T&&(this.skipButton=new L5(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,
this.T,this.OI),g.d(this,this.skipButton),this.skipButton.KH(this.element),this.skipButton.init(r_("skip-button"),R,n));if(n=F.adBadgeRenderer)if(n=g.A(n,zOv))R=new Ae(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,!0,!0),R.KH(this.Y5),R.init(r_("simple-ad-badge"),n,this.macros),g.d(this,R);if(n=F.adInfoRenderer)if(n=g.A(n,g6))R=new P5(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.element,void 0,!0),R.KH(this.Y5),R.init(r_("ad-info-hover-text-button"),n,this.macros),
g.d(this,R)}else F.nonskippableOverlayRenderer&&(R=g.A(F.nonskippableOverlayRenderer,Of))&&this.T&&(this.U=new rr(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.T,!1),g.d(this,this.U),this.U.KH(this.element),this.U.init(r_("ad-preview"),R,n));F.countdownRenderer&&(F=F.countdownRenderer,g.A(F,QDh)&&this.T&&(n=new kD6(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.T),g.d(this,n),n.KH(this.element),n.init(r_("timed-pie-countdown"),g.A(F,QDh),this.macros)));
this.show();this.element.focus()}else g.uX(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.uX(Error("AdActionInterstitialRenderer has no button."));else g.uX(Error("AdActionInterstitialRenderer has no background AdImage."));else g.uX(Error("AdActionInterstitialRenderer has no description AdText."));else g.uX(Error("AdActionInterstitialRenderer has no headline AdText."));else g.uX(Error("AdActionInterstitialRenderer has no image."))};
g.X.clear=function(){g.Kw(this.J);this.hide()};
g.X.show=function(){JkJ(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.U&&this.U.show();w_.prototype.show.call(this)};
g.X.hide=function(){JkJ(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.U&&this.U.hide();w_.prototype.hide.call(this)};
g.X.Bm=function(){this.navigationEndpoint&&(this.layoutId?this.Vz.executeCommand(this.navigationEndpoint,this.layoutId):g.uX(Error("Missing layoutId for ad action interstitial.")))};var N0I={iconType:"CLOSE"},ob=new g.QX(320,63);g.a(lce,w_);g.X=lce.prototype;
g.X.init=function(R,F,n){w_.prototype.init.call(this,R,F,n);this.J=F;this.V=g.f4(this.J.onClickCommands||[]);this.Y5=this.J.onErrorCommand||null;if(R=this.J.contentSupportedRenderer)R=this.J.contentSupportedRenderer,F=this.J.adInfoRenderer||null,g.A(R,v$5)?(this.W=g.HI("ytp-ad-overlay-ad-info-button-container",this.N.element),EPJ(this,F),R=PuJ(this,g.A(R,v$5))):g.A(R,frD)?(this.W=g.HI("ytp-ad-overlay-ad-info-button-container",this.U.element),EPJ(this,F),R=b8k(this,g.A(R,frD))):g.A(R,t7h)?(this.W=
g.HI("ytp-ad-overlay-ad-info-button-container",this.T.element),EPJ(this,F),R=Z8N(this,g.A(R,t7h))):(g.uX(Error("InvideoOverlayAdRenderer content could not be initialized.")),R=!1);R&&(this.show(),emI(this,!0))};
g.X.clear=function(){emI(this,!1);this.bS.reset();this.J1=0;this.N.hide();this.logVisibility(this.N.element,!1);this.U.hide();this.logVisibility(this.U.element,!1);this.T.hide();this.logVisibility(this.T.element,!1);this.hide();this.dispose()};
g.X.p_X=function(){this.SQ&&(this.layoutId?this.Vz.executeCommand(this.SQ,this.layoutId):g.uX(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
g.X.UG=function(){a:{if(this.J&&this.J.closeButton&&this.J.closeButton.buttonRenderer){var R=this.J.closeButton.buttonRenderer;if(R.serviceEndpoint){R=[R.serviceEndpoint];break a}}R=[]}R=g.m(R);for(var F=R.next();!F.done;F=R.next())F=F.value,this.layoutId?this.Vz.executeCommand(F,this.layoutId):g.uX(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.X.m5z=function(){this.gX||this.api.getPlayerState(1)!==2||this.api.playVideo()};
g.X.Lw=function(){this.gX||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.Lw("invideo-overlay")};
g.X.NW2=function(R){R.target===this.W&&g.HI("ytp-ad-button",this.h1.element).click()};g.a(R69,e8);g.X=R69.prototype;g.X.init=function(R,F,n){e8.prototype.init.call(this,R,F,n);R=F.durationMs;this.N=R==null||R===0?0:R+this.T.getProgressState().current*1E3;if(F.text)var V=F.text.templatedAdText;else F.staticMessage&&(V=F.staticMessage);this.messageText.init(r_("ad-text"),V,n);this.messageText.KH(this.U.element);this.J.show(100);this.show()};
g.X.clear=function(){this.hide()};
g.X.hide=function(){Fv9(this,!1);e8.prototype.hide.call(this);this.U.hide();this.messageText.hide();FU(this)};
g.X.show=function(){Fv9(this,!0);e8.prototype.show.call(this);Rt(this);this.U.show();this.messageText.show()};
g.X.cA=function(){this.hide()};
g.X.o$=function(){if(this.T!=null){var R=this.T.getProgressState();R!=null&&R.current!=null&&(R=1E3*R.current,!this.J1&&R>=this.N?(this.J.hide(),this.J1=!0):this.messageText&&this.messageText.isTemplated()&&(R=Math.max(0,Math.ceil((this.N-R)/1E3)),R!==this.W&&(ZC(this.messageText,{TIME_REMAINING:String(R)}),this.W=R)))}};g.a(nXJ,w_);g.X=nXJ.prototype;
g.X.init=function(R,F,n){w_.prototype.init.call(this,R,F,{});F.image&&F.image.thumbnail?F.headline?F.description?F.actionButton&&g.A(F.actionButton,Iw)?(this.N.init(r_("ad-image"),F.image,n),this.U.init(r_("ad-text"),F.headline,n),this.J.init(r_("ad-text"),F.description,n),this.actionButton=new Oa(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,["ytp-ad-underlay-action-button"]),F.backgroundColor&&g.fY(this.element,"background-color",g.iN(F.backgroundColor)),g.d(this,this.actionButton),
this.actionButton.KH(this.W),this.actionButton.init(r_("button"),g.A(F.actionButton,Iw),n),R=g.Vn(this.api.D().experiments,"player_underlay_video_width_fraction"),this.api.D().B("place_shrunken_video_on_left_of_player")?(F=this.T,g.Qj(F,"ytp-ad-underlay-left-container"),g.z0(F,"ytp-ad-underlay-right-container"),g.fY(this.T,"margin-left",Math.round((R+.02)*100)+"%")):(F=this.T,g.Qj(F,"ytp-ad-underlay-right-container"),g.z0(F,"ytp-ad-underlay-left-container")),g.fY(this.T,"width",Math.round((1-R-.04)*
100)+"%"),this.api.AP()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Om.bind(this)),this.api.addEventListener("resize",this.fd.bind(this))):g.uX(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.uX(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.uX(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.uX(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.X.show=function(){VY9(!0);this.actionButton&&this.actionButton.show();w_.prototype.show.call(this)};
g.X.hide=function(){VY9(!1);this.actionButton&&this.actionButton.hide();w_.prototype.hide.call(this)};
g.X.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.Om.bind(this));this.api.removeEventListener("resize",this.fd.bind(this));this.hide()};
g.X.onClick=function(R){w_.prototype.onClick.call(this,R);this.actionButton&&g.xW(this.actionButton.element,R.target)&&this.api.pauseVideo()};
g.X.Om=function(R){R==="transitioning"?(this.T.classList.remove("ytp-ad-underlay-clickable"),this.show()):R==="visible"?this.T.classList.add("ytp-ad-underlay-clickable"):R==="hidden"&&(this.hide(),this.T.classList.remove("ytp-ad-underlay-clickable"))};
g.X.fd=function(R){R.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):R.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.fY(this.U.element,"font-size",R.width/40+"px")};g.a(yC,w_);
yC.prototype.init=function(R,F,n){w_.prototype.init.call(this,R,F,n);F.toggledLoggingParams&&(this.toggledLoggingParams=F.toggledLoggingParams);F.answer&&g.A(F.answer,Iw)?(R=new Oa(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),R.KH(this.answer),R.init(r_("ytp-ad-survey-answer-button"),g.A(F.answer,Iw),n),R.show()):F.answer&&g.A(F.answer,o1)&&(this.T=new Ge(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,
["ytp-ad-survey-answer-toggle-button"]),this.T.KH(this.answer),g.d(this,this.T),this.T.init(r_("survey-answer-button"),g.A(F.answer,o1),n));this.show()};
yC.prototype.DP=function(R){this.layoutId?D7(this.Vz,R,this.layoutId,this.macros):(R=new g.UR("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.uX(R))};
yC.prototype.onClick=function(R){w_.prototype.onClick.call(this,R);if(this.api.D().B("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)};
yC.prototype.clear=function(){this.hide()};g.a(rlN,w_);rlN.prototype.init=function(R,F,n){w_.prototype.init.call(this,R,F,n);F.answer&&g.A(F.answer,o1)&&(this.button=new Ge(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.KH(this.T),this.button.init(r_("survey-none-of-the-above-button"),g.A(F.answer,o1),n));this.show()};g.a(US,Oa);US.prototype.init=function(R,F,n){Oa.prototype.init.call(this,R,F,n);R=!1;F.text&&(F=g.LG(F.text),R=!g.Re(F));R||g.mq(Error("No submit text was present in the renderer."))};
US.prototype.onClick=function(R){this.publish("l");Oa.prototype.onClick.call(this,R)};g.a(jJ,w_);
jJ.prototype.init=function(R,F,n){w_.prototype.init.call(this,R,F,n);if(R=F.skipOrPreviewRenderer)g.A(R,cg)?(R=g.A(R,cg),n=new p5(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.J,!0),n.KH(this.skipOrPreview),n.init(r_("skip-button"),R,this.macros),g.d(this,n),this.T=n):g.A(R,Of)&&(R=g.A(R,Of),n=new rr(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.J,!1),n.KH(this.skipOrPreview),n.init(r_("ad-preview"),R,this.macros),n.J1.show(100),n.show(),g.d(this,n),
this.T=n);this.T==null&&(R=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(F)),g.uX(R));F.submitButton&&(R=F.submitButton,g.A(R,Iw)&&(R=g.A(R,Iw),n=new US(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz),n.KH(this.submitButton),n.init(r_("survey-submit"),R,this.macros),g.d(this,n),this.U=n));if(R=F.adBadgeRenderer)R=g.A(R,zOv),n=new Ae(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,!0,!0,!0),n.KH(this.N),n.init(r_("simple-ad-badge"),
R,this.macros),this.adBadge=n.element,g.d(this,n);if(R=F.adDurationRemaining)R=g.A(R,n$O),n=new Uq(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.J,void 0,!0),n.KH(this.N),n.init(r_("ad-duration-remaining"),R,this.macros),g.d(this,n);(F=F.adInfoRenderer)&&g.A(F,g6)&&(R=new P5(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.element,void 0,!0),g.d(this,R),this.adBadge!==void 0?this.N.insertBefore(R.element,this.adBadge.nextSibling):R.KH(this.N),R.init(r_("ad-info-hover-text-button"),
g.A(F,g6),this.macros));this.show()};
jJ.prototype.clear=function(){this.hide()};g.a(Hw,w_);Hw.prototype.init=function(R,F,n){w_.prototype.init.call(this,R,F,n);qN_(this)};
Hw.prototype.show=function(){this.N=Date.now();w_.prototype.show.call(this)};
Hw.prototype.Kc=function(){};g.a(Qj_,Hw);g.X=Qj_.prototype;g.X.init=function(R,F,n){var V=this;Hw.prototype.init.call(this,R,F,n);F.questionText&&vXf(this,F.questionText);F.answers&&F.answers.forEach(function(r,v){g.A(r,CC)&&fpv(V,g.A(r,CC),n,v)});
this.W=new Set(this.U.map(function(r){return r.T.T}));
(R=F.noneOfTheAbove)&&(R=g.A(R,r75))&&clf(this,R,n);F.surveyAdQuestionCommon&&z6R(this,F.surveyAdQuestionCommon);F.submitEndpoints&&(this.submitEndpoints=F.submitEndpoints);this.C(this.element,"change",this.onChange);this.show()};
g.X.Kc=function(){wZJ(this,!1);this.J.U.subscribe("l",this.EkH,this)};
g.X.onChange=function(R){R.target===this.noneOfTheAbove.button.T?SN9(this):this.W.has(R.target)&&(this.noneOfTheAbove.button.toggleButton(!1),wZJ(this,!0))};
g.X.EkH=function(){var R=[],F=this.U.reduce(function(r,v,f){var z=v.toggledLoggingParams;v.T&&v.T.isToggled()&&z&&(r.push(z),R.push(f));return r},[]).join("&"),n=this.submitEndpoints.map(function(r){if(!r.loggingUrls)return r;
r=g.ie(r);r.loggingUrls=r.loggingUrls.map(function(v){v.baseUrl&&(v.baseUrl=i5(v.baseUrl,F));return v});
return r});
if(n){n=g.m(n);for(var V=n.next();!V.done;V=n.next())V=V.value,this.layoutId?D7(this.Vz,V,this.layoutId,this.macros):g.uX(Error("Missing layoutId for multi_select_question."))}this.api.D().B("supports_multi_step_on_desktop")&&this.J1(R)};
g.X.clear=function(){this.api.D().B("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.a(hV,Hw);hV.prototype.init=function(R,F,n){var V=this;Hw.prototype.init.call(this,R,F,n);F.questionText&&vXf(this,F.questionText);F.answers&&F.answers.forEach(function(r,v){g.A(r,CC)&&fpv(V,g.A(r,CC),n,v)});
F.surveyAdQuestionCommon?z6R(this,F.surveyAdQuestionCommon):Be(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(F)));this.show()};
hV.prototype.clear=function(){this.api.D().B("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.a(Ww,w_);Ww.prototype.init=function(R,F,n){var V=this;w_.prototype.init.call(this,R,F,n);if(this.api.D().B("supports_multi_step_on_desktop")){var r;this.conditioningRules=(r=F.conditioningRules)!=null?r:[];var v;this.U=(v=F.questions)!=null?v:[];var f;((f=F.questions)==null?0:f.length)&&XZ9(this,0)}else(F.questions||[]).forEach(function(z){g.A(z,BS)?sjI(V,g.A(z,BS),n):g.A(z,u8)&&pZR(V,g.A(z,u8),n)});
this.show()};
Ww.prototype.clear=function(){this.api.D().B("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
Ww.prototype.J=function(R){var F=this;if(this.api.D().B("supports_multi_step_on_desktop")){var n;if((n=this.conditioningRules)==null?0:n.length){var V;if(R.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(r){return r.questionIndex===F.T})==null)g.uX(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);
else if(this.conditioningRules.forEach(function(r){if(r.questionIndex===F.T)switch(r.condition){case "CONDITION_ALL_OF":var v;if((v=r.answerIndices)==null?0:v.every(function(z){return R.includes(z)}))V=r.nextQuestionIndex;
break;case "CONDITION_ANY_OF":var f;if((f=r.answerIndices)==null?0:f.some(function(z){return R.includes(z)}))V=r.nextQuestionIndex;
break;default:g.uX(Error("Expected specified condition in survey conditioning rules."))}}),V!=null)XZ9(this,V);
else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.uX(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.a(uz,w_);
uz.prototype.init=function(R,F,n){var V=this;w_.prototype.init.call(this,R,F,n);R=F.timeoutSeconds||0;if(typeof R!=="number"||R<0)g.uX(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+R));else if(F.timeoutCommands)if(F.text)if(F.ctaButton&&g.A(F.ctaButton,Iw))if(F.brandImage)if(F.backgroundImage&&g.A(F.backgroundImage,Kj)&&g.A(F.backgroundImage,Kj).landscape){this.layoutId||g.uX(Error("Missing layoutId for survey interstitial."));Al_(this.interstitial,g.A(F.backgroundImage,
Kj).landscape);Al_(this.logoImage,F.brandImage);g.kW(this.text,g.LG(F.text));var r=["ytp-ad-survey-interstitial-action-button"];r.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Oa(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,r);g.d(this,this.actionButton);this.actionButton.KH(this.U);this.actionButton.init(r_("button"),g.A(F.ctaButton,Iw),n);this.actionButton.show();this.T=new C5(this.api,R*1E3);this.T.subscribe("g",function(){V.transition.hide()});
g.d(this,this.T);this.C(this.element,"click",function(v){var f=v.target===V.interstitial;v=V.actionButton.element.contains(v.target);if(f||v)if(V.transition.hide(),f)V.api.onAdUxClicked(V.componentType,V.layoutId)});
this.transition.show(100)}else g.uX(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.uX(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.uX(Error("SurveyTextInterstitialRenderer has no button."));else g.uX(Error("SurveyTextInterstitialRenderer has no text."));else g.uX(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
uz.prototype.clear=function(){this.hide()};
uz.prototype.show=function(){ap9(!0);w_.prototype.show.call(this)};
uz.prototype.hide=function(){ap9(!1);w_.prototype.hide.call(this)};g.a(Bw,e8);g.X=Bw.prototype;
g.X.init=function(R,F){e8.prototype.init.call(this,R,F,{});if(F.durationMilliseconds){if(F.durationMilliseconds<0){g.uX(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+F.durationMilliseconds));return}this.U=F.durationMilliseconds}else this.U=this.T.bf();var n;if((n=F.previewText)==null||!n.text||g.Re(F.previewText.text))g.uX(Error("No text is returned for AdPreview."));else{this.W=F.previewText;F.previewText.isTemplated||g.kW(this.N,F.previewText.text);var V;
if(((V=this.api.getVideoData({playerType:1}))==null?0:V.nG)&&F.previewImage){var r,v;(R=((v=pL(((r=F.previewImage)==null?void 0:r.sources)||[],52,!1))==null?void 0:v.url)||"")&&R.length?(this.previewImage=new g.c5({j:"img",Y:"ytp-preview-ad__image",S:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",R),g.d(this,this.previewImage),this.previewImage.KH(this.element)):g.uX(Error("Failed to get imageUrl in AdPreview."))}else this.N.classList.add("ytp-preview-ad__text--padding--wide")}};
g.X.clear=function(){this.hide()};
g.X.hide=function(){FU(this);e8.prototype.hide.call(this)};
g.X.show=function(){Rt(this);e8.prototype.show.call(this)};
g.X.cA=function(){this.hide()};
g.X.o$=function(){if(this.T){var R=this.T.getProgressState();if(R!=null&&R.current)if(R=1E3*R.current,R>=this.U)this.transition.hide();else{var F;if((F=this.W)==null?0:F.isTemplated)if(F=Math.max(0,Math.ceil((this.U-R)/1E3)),F!==this.J){var n,V;(R=(n=this.W)==null?void 0:(V=n.text)==null?void 0:V.replace("{TIME_REMAINING}",String(F)))&&g.kW(this.N,R);this.J=F}}}};g.a(mB,w_);
mB.prototype.init=function(R,F){w_.prototype.init.call(this,R,F,{});var n,V;if((R=((V=pL(((n=F.image)==null?void 0:n.sources)||[],Ccj(F),!0))==null?void 0:V.url)||"")&&R.length){n=this.sZ("ytp-ad-avatar");n.src=R;var r,v;if(V=(r=F.interaction)==null?void 0:(v=r.accessibility)==null?void 0:v.label)n.alt=V;switch(F.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(F.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.uX(Error("Failed to get imageUrl in AdAvatar."))};
mB.prototype.clear=function(){this.hide()};
mB.prototype.onClick=function(R){w_.prototype.onClick.call(this,R)};g.a(OS,w_);
OS.prototype.init=function(R,F){w_.prototype.init.call(this,R,F,{});var n;R=(n=F.label)==null?void 0:n.content;if((n=R!=null&&!g.Re(R))||F.iconImage){n&&(this.buttonText=new g.c5({j:"span",Y:"ytp-ad-button-vm__text",cG:R}),g.d(this,this.buttonText),this.buttonText.KH(this.element));var V,r,v=((V=F.interaction)==null?0:(r=V.accessibility)==null?0:r.label)||n?R:"";v&&$x(this.element,v+" This link opens in new tab");N1(this.element);if(F.iconImage){V=void 0;if(F.iconImage){a:{r=F.iconImage;if(r.sources)for(r=
g.m(r.sources),R=r.next();!R.done;R=r.next())if(R=R.value,v=void 0,(v=R.clientResource)==null?0:v.imageName){r=R;break a}r=void 0}if(r){var f;V={iconType:(f=r.clientResource)==null?void 0:f.imageName}}}f=g_(V,!1,this.U);f!=null&&(this.buttonIcon=new g.c5({j:"span",Y:"ytp-ad-button-vm__icon",L:[f]}),g.d(this,this.buttonIcon),F.iconLeading?(DT(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):n?(this.buttonIcon.KH(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")):
(this.buttonIcon.KH(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(F.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_MONO_FILLED":this.element.classList.add("ytp-ad-button-vm--style-mono-filled");break;case "AD_BUTTON_STYLE_FILLED":this.api.B("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(F.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.mq(Error("AdButton does not have label or an icon."))};
OS.prototype.clear=function(){this.hide()};
OS.prototype.onClick=function(R){w_.prototype.onClick.call(this,R)};g.a(T4N,e8);g.X=T4N.prototype;
g.X.init=function(R,F){e8.prototype.init.call(this,R,F,{});if(R=g.A(F.avatar,Gc)){var n=F.headline;if(n){var V=F.description;if(V){var r=g.A(F.button,Me);r?(this.adAvatar.init(r_("ad-avatar"),R),this.headline.init(r_("ad-simple-attributed-string"),new HP(n)),this.description.init(r_("ad-simple-attributed-string"),new HP(V)),n.content&&n.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(r_("ad-button"),r),
this.startMilliseconds=F.startMs||0,this.api.AP()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.i$.bind(this)),Rt(this)):g.uX(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.uX(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.uX(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.uX(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))};
g.X.o$=function(){if(this.T){var R=this.T.getProgressState();R&&R.current&&1E3*R.current>=this.startMilliseconds&&(FU(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}};
g.X.cA=function(){this.clear()};
g.X.onClick=function(R){this.api.pauseVideo();e8.prototype.onClick.call(this,R)};
g.X.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.i$.bind(this))};
g.X.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();e8.prototype.show.call(this)};
g.X.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();e8.prototype.hide.call(this)};
g.X.i$=function(R){R==="hidden"?this.show():this.hide()};g.a(Ib,w_);g.X=Ib.prototype;
g.X.init=function(R,F){w_.prototype.init.call(this,R,F,{});if(!F.label||g.Re(F.label))g.uX(Error("No label is returned for SkipAdButton."));else if(g.kW(this.J,F.label),R=g_({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.B("delhi_modern_web_player_icons")),R==null)g.uX(Error("Unable to retrieve icon for SkipAdButton"));else if(this.N=new g.c5({j:"span",Y:"ytp-skip-ad-button__icon",L:[R]}),g.d(this,this.N),this.N.KH(this.element),this.api.D().experiments.GH("enable_skip_to_next_messaging")&&(F=g.P$(F.targetId)))this.U=
!0,this.element.setAttribute("data-tooltip-target-id",F),this.element.setAttribute("data-tooltip-target-fixed","")};
g.X.onClick=function(R){R&&R.preventDefault();var F,n;D8N(R,{contentCpn:(n=(F=this.api.getVideoData({playerType:1}))==null?void 0:F.clientPlaybackNonce)!=null?n:""})===0?this.api.HG("onAbnormalityDetected"):(w_.prototype.onClick.call(this,R),this.api.HG("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))};
g.X.clear=function(){this.T.reset();this.hide()};
g.X.hide=function(){w_.prototype.hide.call(this)};
g.X.show=function(){this.T.start();w_.prototype.show.call(this);this.U&&this.api.D().experiments.GH("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.a(oXj,e8);g.X=oXj.prototype;
g.X.init=function(R,F){e8.prototype.init.call(this,R,F,{});R=g.A(F.preskipState,XM7);var n;if((n=this.api.getVideoData())==null?0:n.isDaiEnabled()){if(!R){g.uX(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.U=new Bw(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.T);g.d(this,this.U);this.U.KH(this.element);var V;(V=this.U)==null||V.init(r_("preview-ad"),R);(n=this.U)!=null&&(n.transition.show(100),n.show())}(n=g.A(F.skippableState,arU))?(F.skipOffsetMilliseconds!=
null?this.skipOffsetMilliseconds=F.skipOffsetMilliseconds:(g.mq(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.N.init(r_("skip-button"),n),this.show()):g.uX(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))};
g.X.show=function(){Rt(this);e8.prototype.show.call(this)};
g.X.hide=function(){!this.isSkippable&&this.U?this.U.hide():this.N&&this.N.hide();FU(this);e8.prototype.hide.call(this)};
g.X.clear=function(){var R;(R=this.U)==null||R.clear();this.N&&this.N.clear();FU(this);e8.prototype.hide.call(this)};
g.X.cA=function(){this.hide()};
g.X.o$=function(){if(1E3*this.T.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var R;(R=this.U)!=null&&R.transition.hide();(R=this.N)!=null&&(R.transition.show(),R.show())}};g.a(KE,w_);
KE.prototype.init=function(R,F){w_.prototype.init.call(this,R,F,{});if(F.label){var n;((n=F.label)==null?0:n.content)&&!g.Re(F.label.content)&&(this.linkText=new g.c5({j:"span",Y:"ytp-visit-advertiser-link__text",cG:F.label.content}),g.d(this,this.linkText),this.linkText.KH(this.element));var V,r;if((V=F.interaction)==null?0:(r=V.accessibility)==null?0:r.label)$x(this.element,F.interaction.accessibility.label+" This link opens in new tab");else{var v;((v=F.label)==null?0:v.content)&&!g.Re(F.label.content)&&$x(this.element,
F.label.content+" This link opens in new tab")}N1(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.uX(Error("No label found in VisitAdvertiserLink."))};
KE.prototype.onClick=function(R){w_.prototype.onClick.call(this,R);this.api.onAdUxClicked(this.componentType,this.layoutId)};
KE.prototype.clear=function(){this.hide()};g.a(Du,w_);
Du.prototype.init=function(R,F,n,V){w_.prototype.init.call(this,R,F,{});if(F.skipOrPreview){n=F.skipOrPreview;R=g.A(n,CU$);n=g.A(n,XM7);if(R)this.Hs=new oXj(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.U),g.d(this,this.Hs),this.Hs.KH(this.V),this.Hs.init(r_("skip-ad"),R);else{var r;n&&((r=this.api.getVideoData())==null?0:r.isDaiEnabled())&&(this.J=new Bw(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.U,1),g.d(this,this.J),this.J.KH(this.V),this.J.init(r_("ad-preview"),
n),r=this.J,r.transition.show(100),r.show())}if(r=g.A(F.skipOrPreview,CU$))var v=r.skipOffsetMilliseconds}F.playerAdCard&&(r=g.A(F.playerAdCard,A7U))&&(this.playerAdCard=new T4N(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.U),g.d(this,this.playerAdCard),this.playerAdCard.KH(this.PG),this.playerAdCard.init(r_("ad-avatar-lockup-card"),r));F.adBadgeRenderer&&((r=g.A(F.adBadgeRenderer,dc))?(this.N=new WP(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,!0),g.d(this,
this.N),this.N.KH(this.T),this.N.init(r_("ad-badge"),r)):g.uX(Error("AdBadgeViewModel is not found in player overlay layout.")));F.adPodIndex&&(r=g.A(F.adPodIndex,SvM))&&(this.adPodIndex=new uN(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz),g.d(this,this.adPodIndex),this.adPodIndex.KH(this.T),this.adPodIndex.init(r_("ad-pod-index"),r));F.adInfoRenderer&&((r=g.A(F.adInfoRenderer,g6))?(this.adInfoButton=new P5(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.element,
void 0,!0),g.d(this,this.adInfoButton),this.N!==void 0?this.T.insertBefore(this.adInfoButton.element,this.N.element.nextSibling):this.adInfoButton.KH(this.T),this.adInfoButton.init(r_("ad-info-hover-text-button"),r,this.macros)):g.mq(Error("AdInfoRenderer is not found in player overlay layout.")));var f;r=(f=this.api.getVideoData())==null?void 0:f.isDaiEnabled();F.adDurationRemaining&&r&&(f=g.A(F.adDurationRemaining,n$O))&&(this.adDurationRemaining=new Uq(this.api,this.layoutId,this.interactionLoggingClientData,
this.Vz,this.U,V.videoAdDurationSeconds,!0),g.d(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.T.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.KH(this.T),this.adDurationRemaining.init(r_("ad-duration-remaining"),f,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));F.visitAdvertiserLink&&(V=g.A(F.visitAdvertiserLink,o$7))&&(this.visitAdvertiserLink=new KE(this.api,this.layoutId,
this.interactionLoggingClientData,this.Vz),g.d(this,this.visitAdvertiserLink),this.visitAdvertiserLink.KH(this.T),this.visitAdvertiserLink.init(r_("visit-advertiser-link"),V));F.adDisclosureBanner&&(F=g.A(F.adDisclosureBanner,wMh))&&(this.adDisclosureBanner=new BP(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz),g.d(this,this.adDisclosureBanner),this.adDisclosureBanner.KH(this.J1),this.adDisclosureBanner.init(r_("ad-disclosure-banner"),F));this.W=new It(this.api,this.U,v,!0);g.d(this,
this.W);g.RL(this.api,this.W.element,4);this.show()};
Du.prototype.clear=function(){this.hide()};g.a(ylv,w_);g.X=ylv.prototype;
g.X.init=function(R,F){w_.prototype.init.call(this,R,F,{});if(F!=null&&F.title)if(R=F.title)if(this.headline.init(r_("ad-simple-attributed-string"),new HP(R)),R=g.A(F.moreInfoButton,Me)){if(this.moreInfoButton.init(r_("ad-button"),R),F.descriptions)F.descriptions.length>0&&(R=F.descriptions[0])&&(this.T=new he(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz),g.d(this,this.T),this.T.KH(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.T.init(r_("ad-simple-attributed-string"),
new HP(R))),F.descriptions.length>1&&(F=F.descriptions[1])&&(this.U=new he(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz),g.d(this,this.U),this.U.KH(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.U.init(r_("ad-simple-attributed-string"),new HP(F)))}else g.uX(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.uX(Error("No headline found in AdGridCardText."));else g.uX(Error("No headline found in AdGridCardText."))};
g.X.onClick=function(R){w_.prototype.onClick.call(this,R);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.X.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var R;(R=this.T)==null||R.clear();var F;(F=this.U)==null||F.clear()};
g.X.hide=function(){this.headline.hide();this.moreInfoButton.hide();var R;(R=this.T)==null||R.hide();var F;(F=this.U)==null||F.hide();w_.prototype.hide.call(this)};
g.X.show=function(){w_.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var R;(R=this.T)==null||R.show();var F;(F=this.U)==null||F.show()};g.a(iz,w_);iz.prototype.init=function(R,F){w_.prototype.init.call(this,R,F,{});if(F!=null&&F.gridCards)if(F.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.uX(Error("Only single column style is currently supported in AdGridCardCollection."));else for(R=g.m(F.gridCards),F=R.next();!F.done;F=R.next()){if(F=g.A(F.value,pMU)){var n=new ylv(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz);g.d(this,n);n.KH(this.element);n.init(r_("ad-grid-card-text"),F);this.T.push(n)}}else g.uX(Error("No grid cards found in AdGridCardCollection."))};
iz.prototype.show=function(){for(var R=g.m(this.T),F=R.next();!F.done;F=R.next())F.value.show();w_.prototype.show.call(this)};
iz.prototype.clear=function(){this.hide();for(var R=g.m(this.T),F=R.next();!F.done;F=R.next())F.value.clear()};
iz.prototype.hide=function(){for(var R=g.m(this.T),F=R.next();!F.done;F=R.next())F.value.hide();w_.prototype.hide.call(this)};g.a(xk,e8);g.X=xk.prototype;g.X.init=function(R,F,n,V,r){r=r===void 0?0:r;e8.prototype.init.call(this,R,F,n,V);this.playerProgressOffsetMs=r;Rt(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.O6.bind(this));this.api.addEventListener("resize",this.kB.bind(this));this.api.AP()?(this.U=!0,this.api.As(!0),this.show()):this.hide()};
g.X.o$=function(){if(this.T){var R=this.T.getProgressState();R&&R.current&&!this.U&&1E3*R.current>=this.playerProgressOffsetMs&&(this.U=!0,this.api.As(!0),this.show())}};
g.X.cA=function(){this.U&&this.api.As(!1);this.hide()};
g.X.clear=function(){this.api.As(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.O6.bind(this));this.api.removeEventListener("resize",this.kB.bind(this));FU(this);this.hide()};
g.X.hide=function(){Uhf(!1);e8.prototype.hide.call(this)};
g.X.show=function(){Uhf(!0);e8.prototype.show.call(this)};g.a(jj9,xk);g.X=jj9.prototype;
g.X.init=function(R,F,n,V){if(F!=null&&F.adGridCardCollection)if(F!=null&&F.adButton){var r=Number(F.playerProgressOffsetMs||"0");isNaN(r)?xk.prototype.init.call(this,R,F,n,V):xk.prototype.init.call(this,R,F,n,V,r);R=F.headline;n=g.A(F.adAvatar,Gc);R&&n?(this.headline=new he(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz),g.d(this,this.headline),this.headline.KH(this.sZ("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(r_("ad-simple-attributed-string"),new HP(R)),
this.adAvatar=new mB(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz),g.d(this,this.adAvatar),this.adAvatar.KH(this.sZ("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(r_("ad-avatar"),n)):this.J.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");R=g.A(F.adGridCardCollection,sD7);this.adGridCardCollection.init(r_("ad-grid-card-collection"),R);F=g.A(F.adButton,Me);this.adButton.init(r_("ad-button"),F);
this.hide()}else g.uX(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.uX(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))};
g.X.onClick=function(R){(this.adButton&&g.xW(this.adButton.element,R.target)||this.adAvatar&&g.xW(this.adAvatar.element,R.target))&&this.api.pauseVideo();xk.prototype.onClick.call(this,R);this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.X.kB=function(){};
g.X.clear=function(){this.hide();var R;(R=this.headline)==null||R.clear();var F;(F=this.adAvatar)==null||F.clear();this.adGridCardCollection.clear();this.adButton.clear();xk.prototype.clear.call(this)};
g.X.show=function(){var R;(R=this.headline)==null||R.show();var F;(F=this.adAvatar)==null||F.show();this.adGridCardCollection.show();this.adButton.show();xk.prototype.show.call(this)};
g.X.hide=function(){var R;(R=this.headline)==null||R.hide();var F;(F=this.adAvatar)==null||F.hide();this.adGridCardCollection.hide();this.adButton.hide();xk.prototype.hide.call(this)};
g.X.O6=function(R){R==="transitioning"?(this.N.classList.remove("ytp-ad-underlay-clickable"),this.show()):R==="visible"?this.N.classList.add("ytp-ad-underlay-clickable"):R==="hidden"&&(this.hide(),this.N.classList.remove("ytp-ad-underlay-clickable"))};g.a(kk,w_);
kk.prototype.init=function(R,F){w_.prototype.init.call(this,R,F,{});if(F.attributes===void 0)g.uX(Error("No attributes found in AdDetailsLineViewModel."));else if(F.style===void 0)g.uX(Error("No style found in AdDetailsLineViewModel."));else{R=g.m(F.attributes);for(var n=R.next();!n.done;n=R.next())if(n=n.value,n.text!==void 0){n=n.text;var V=F.style,r=new he(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz);g.d(this,r);r.KH(this.element);a:switch(V){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":V="ytp-ad-details-line__text--style-responsive";
break a;default:V="ytp-ad-details-line__text--style-standard"}r.element.classList.add(V);r.init(r_("ad-simple-attributed-string"),new HP(n));this.T.push(r)}this.show()}};
kk.prototype.show=function(){this.T.forEach(function(R){R.show()});
w_.prototype.show.call(this)};
kk.prototype.clear=function(){this.hide()};
kk.prototype.hide=function(){this.T.forEach(function(R){R.hide()});
w_.prototype.hide.call(this)};g.a(Yk,w_);Yk.prototype.init=function(R,F){w_.prototype.init.call(this,R,F,{});var n,V;(R=((V=pL(((n=F.image)==null?void 0:n.sources)||[]))==null?void 0:V.url)||"")&&R.length?(n=this.sZ("ytp-image-background-image"),g.fY(n,"backgroundImage","url("+R+")"),F.blurLevel!==void 0&&g.fY(n,"filter","blur("+F.blurLevel+"px)"),F.gradient!==void 0&&(F=new g.N({j:"div",BG:["ytp-image-background--gradient-vertical"]}),g.d(this,F),F.KH(this.element)),this.show()):g.uX(Error("Failed to get imageUrl in ImageBackground."))};
Yk.prototype.clear=function(){this.hide()};g.a(HXN,e8);g.X=HXN.prototype;g.X.init=function(R,F){e8.prototype.init.call(this,R,F,{});g.fY(this.N,"stroke-dasharray","0 "+this.U);this.show()};
g.X.clear=function(){this.hide()};
g.X.hide=function(){FU(this);e8.prototype.hide.call(this)};
g.X.show=function(){Rt(this);e8.prototype.show.call(this)};
g.X.cA=function(){this.hide()};
g.X.o$=function(){if(this.T){var R=this.T.getProgressState();R!=null&&R.current!=null&&g.fY(this.N,"stroke-dasharray",R.current/R.seekableEnd*this.U+" "+this.U)}};g.a(JV,w_);
JV.prototype.init=function(R,F){w_.prototype.init.call(this,R,F,{});if(Wve(F)){this.adAvatar=new mB(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz);g.d(this,this.adAvatar);this.adAvatar.KH(this.sZ("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(r_("ad-avatar"),g.A(F.adAvatar,Gc));this.headline=new he(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz);g.d(this,this.headline);this.headline.KH(this.sZ("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(r_("ad-simple-attributed-string"),new HP(F.headline));if(R=g.A(F.adDetailsLine,c7q))this.detailsLine=new kk(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz),g.d(this,this.detailsLine),this.detailsLine.KH(this.sZ("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(r_("ad-details-line"),R);this.adButton=new OS(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,!0);g.d(this,this.adButton);
this.adButton.KH(this.sZ("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(r_("ad-button"),g.A(F.adButton,Me));this.adBadge=new WP(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,!0);g.d(this,this.adBadge);this.adBadge.KH(this.J);this.adBadge.init(r_("ad-badge"),g.A(F.adBadge,dc));this.adInfoButton=new P5(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.element,void 0,!0);g.d(this,this.adInfoButton);this.adInfoButton.KH(this.J);
this.adInfoButton.init(r_("ad-info-hover-text-button"),g.A(F.adInfoRenderer,g6),this.macros);if(R=g.A(F.skipAdButton,arU))this.skipAdButton=new Ib(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz),g.d(this,this.skipAdButton),this.skipAdButton.KH(this.element),this.skipAdButton.init(r_("skip-button"),R);this.U=new TF(F.durationMilliseconds);g.d(this,this.U);if(R=g.A(F.countdownViewModel,TqM))this.T=new HXN(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz,this.U),g.d(this,
this.T),this.T.KH(this.sZ("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.T.init(r_("timed-pie-countdown"),R);if(F=g.A(F.imageBackground,Lhq))this.imageBackground=new Yk(this.api,this.layoutId,this.interactionLoggingClientData,this.Vz),g.d(this,this.imageBackground),this.imageBackground.KH(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(r_("image-background"),
F);this.show();this.element.focus()}};
JV.prototype.clear=function(){g.Kw(this.N);this.hide()};
JV.prototype.show=function(){h69(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();w_.prototype.show.call(this)};
JV.prototype.hide=function(){h69(!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();w_.prototype.hide.call(this)};g.a(lz,g.fG);g.X=lz.prototype;g.X.bf=function(){return 1E3*this.api.getDuration(this.uG,!1)};
g.X.stop=function(){this.T&&this.handler.ZO(this.T)};
g.X.M5=function(){var R=this.api.getProgressState(this.uG);this.U={seekableStart:R.seekableStart,seekableEnd:R.seekableEnd,current:this.api.getCurrentTime(this.uG,!1)};this.publish("h")};
g.X.getProgressState=function(){return this.U};
g.X.Gb=function(R){g.Sx(R,2)&&this.publish("g")};var Gxq="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.a(Ne,MB);
Ne.prototype.N=function(R){var F=R.id,n=R.content,V=n.componentType;if(!Gxq.includes(V))switch(R.actionType){case 1:R=this.api;var r=this.Vz,v=n.layoutId,f=n.interactionLoggingClientData,z=n instanceof xl?n.hR:!1,q=n instanceof xl||n instanceof at?n.OI:!1;f=f===void 0?{}:f;z=z===void 0?!1:z;q=q===void 0?!1:q;switch(V){case "invideo-overlay":R=new lce(R,v,f,r);break;case "player-overlay":R=new K5(R,v,f,r,new lz(R),q);break;case "player-overlay-layout":R=new Du(R,v,f,r,new lz(R));break;case "survey":R=
new Ww(R,v,f,r);break;case "ad-action-interstitial":R=new Y9I(R,v,f,r,z,q);break;case "video-interstitial-buttoned-centered":R=new JV(R,v,f,r);break;case "survey-interstitial":R=new uz(R,v,f,r);break;case "ad-message":R=new R69(R,v,f,r,new lz(R,1));break;case "player-underlay":R=new nXJ(R,v,f,r);break;case "display-underlay-text-grid-cards":R=new jj9(R,v,f,r,new lz(R));break;default:R=null}if(!R){g.mq(Error("No UI component returned from ComponentFactory for type: "+V));break}g.hx(this.components,
F)?g.mq(Error("Ad UI component already registered: "+F)):this.components[F]=R;R.bind(n);n instanceof DX?this.U?this.U.append(R.WP):g.mq(Error("Underlay view was not created but UnderlayRenderer was created")):this.J.append(R.WP);break;case 2:F=u2_(this,R);if(F==null)break;F.bind(n);break;case 3:n=u2_(this,R),n!=null&&(g.Cv(n),g.hx(this.components,F)?(n=this.components,F in n&&delete n[F]):g.mq(Error("Ad UI component does not exist: "+F)))}};
Ne.prototype.oG=function(){g.TW(Object.values(this.components));this.components={};MB.prototype.oG.call(this)};g.a(B4E,g.Lz);g.X=B4E.prototype;g.X.create=function(){try{mhR(this),this.load(),this.created=!0,mhR(this)}catch(R){Q2(R instanceof Error?R:String(R))}};
g.X.load=function(){IpJ(this)};
g.X.destroy=function(){var R=this.player.getVideoData({playerType:1});this.T.T.Bv.y8(R&&R.clientPlaybackNonce||"");this.unload();this.created=!1};
g.X.unload=function(){g.Lz.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(F){Q2(F instanceof Error?F:String(F))}if(this.U!=null){var R=this.U;this.U=null;R.dispose()}this.N.reset()};
g.X.yu=function(){return!1};
g.X.getAdState=function(){return-1};
g.X.getOptions=function(){return Object.values(J8z)};
g.X.xc=function(R,F){F=F===void 0?{}:F;switch(R){case "replaceUrlMacros":return R=F,R.url?(F=Rmf(this.player),Object.assign(F,R.xFS),R=g.OB(R.url,F)):R=null,R;case "onAboutThisAdPopupClosed":this.Gl(F);break;case "executeCommand":R=F;R.command&&R.layoutId&&this.executeCommand(R);break;default:return null}};
g.X.Q_=function(R){var F;return!((F=this.T.T.Sl)==null||!F.get().Q_(R))};
g.X.Gl=function(R){R.isMuted&&TGj(CE(this.T).iW,CE(this.T).zd,R.layoutId);this.ea&&this.ea.Gl()};
g.X.executeCommand=function(R){CE(this.T).Vz.executeCommand(R.command,R.layoutId)};g.h7("yt.player.Application.create",g.Lc.create);g.h7("yt.player.Application.createAlternate",g.Lc.create);LHe(jg(),YjM);var d3z=g.WM("ytcsi.tick");d3z&&d3z("pe");g.Sk("ad",B4E);g.a(g.Pw,g.G);g.Pw.prototype.start=function(R,F,n){this.config={from:R,to:F,duration:n,startTime:(0,g.h1)()};this.next()};
g.Pw.prototype.stop=function(){this.delay.stop();this.config=void 0};
g.Pw.prototype.next=function(){if(this.config){var R=this.config,F=R.from,n=R.to,V=R.duration;R=R.startTime;R=(0,g.h1)()-R;var r=this.T;V=g.vI(yHe(r,UGJ(r,R/V)),0,1);this.callback(F+(n-F)*V);V<1&&this.delay.start()}};g.a(g.bz,g.N);g.X=g.bz.prototype;g.X.hasSuggestions=function(){return this.suggestionData.length>0};
g.X.uw=function(){this.U&&this.scrollTo(this.scrollPosition-this.containerWidth)};
g.X.show=function(){g.N.prototype.show.call(this);YN_(this)};
g.X.xZ=function(){this.U&&this.scrollTo(this.scrollPosition+this.containerWidth)};
g.X.by=function(){this.G9(this.api.fH().getPlayerSize())};
g.X.G9=function(R){var F=this.api.isEmbedsShortsMode()?.5625:16/9,n=this.api.ju();R=R.width-(n?112:58);n=Math.ceil(R/(n?320:192));var V=(R-n*8)/n;F=Math.floor(V/F);for(var r=g.m(this.T),v=r.next();!v.done;v=r.next())v=v.value.sZ("ytp-suggestion-image"),v.style.width=V+"px",v.style.height=F+"px";this.suggestions.element.style.height=F+"px";this.J=V;this.X=F;this.containerWidth=R;this.columns=n;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Zu(this)};
g.X.onVideoDataChange=function(){var R=this.api.D(),F=this.api.getVideoData();this.W=F.On?!1:R.J;this.suggestionData=F.suggestions?g.dk(F.suggestions,function(n){return n&&!n.playlistId}):[];
GUN(this);F.On?this.title.update({title:g.fy("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:F.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})};
g.X.scrollTo=function(R){R=g.vI(R,this.containerWidth-this.suggestionData.length*(this.J+8),0);this.Z.start(this.scrollPosition,R,1E3);this.scrollPosition=R;g.Zu(this);YN_(this)};})(_yt_player);
